/* 젠티 매니저 전용(젠티 콘솔 스타일 위에 더하는 것) */
.nav-child-icon { display: none; } /* 하위 메뉴 아이콘은 펼친 사이드바에서만(glass.css) */
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.page-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.topbar-hospital { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--text-2); font-weight: 600; min-width: 0; }
.topbar-hospital .icon { width: 16px; height: 16px; flex: none; }
/* 상단바 병원 CI(shell.js loadCi) — 있으면 건물 아이콘 대신. 투명 배경의 검은 로고도 어느 테마에서나 보이게 흰 판 위에 */
.topbar-ci { display: none; }
.topbar-hospital.has-ci { gap: var(--s-3); }
.topbar-hospital.has-ci .topbar-hospital-icon { display: none; }
.topbar-hospital.has-ci .topbar-ci { display: flex; align-items: center; justify-content: center; flex: none; height: 40px; padding: 3px; overflow: hidden;
  background: #ffffff; border-radius: 10px; box-shadow: 0 0 0 1px var(--border); }
.topbar-ci img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.topbar-hospital.ci-square .topbar-ci { width: 40px; }
.topbar-hospital.ci-wide .topbar-ci { height: 44px; max-width: 180px; padding: 4px 10px; }
@media (max-width: 767px) { /* 휴대폰: 상단바가 좁아 조금 작게, 가로형은 더 짧게 */
  .topbar-hospital.has-ci .topbar-ci { height: 34px; }
  .topbar-hospital.ci-square .topbar-ci { width: 34px; }
  .topbar-hospital.ci-wide .topbar-ci { max-width: 104px; }
}
.gate-brand { margin: 0 0 var(--s-2); text-align: center; font-weight: 800; letter-spacing: .02em; color: var(--accent); }
.gate-actions { display: flex; gap: var(--s-2); justify-content: center; flex-wrap: wrap; margin-top: var(--s-4); }
.btn-row { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.fld { min-width: 0; }
.fld + .fld { margin-top: 0; }
.form-grid-2 .fld .field-label, .create-form .fld .field-label { margin-top: var(--s-3); }
.is-muted { opacity: .6; }
.row-title { color: var(--text-1); font-weight: 700; text-decoration: none; }
.row-title:hover { color: var(--accent); text-decoration: underline; }
.me-chip { margin-left: var(--s-1); font-size: 11px; padding: 1px 6px; }

/* 세그먼트(탭) — 선택 표시는 aria-selected / 라디오 */
.seg-btn[aria-selected="true"], .seg-btn[aria-checked="true"] { background: var(--accent-strong); color: var(--on-accent); }
.seg-sm .seg-radio span { height: 26px; font-size: 12px; }
.seg-radio { position: relative; display: inline-flex; }
.seg-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-radio span { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 7px; color: var(--text-2); font-weight: 600; font-size: 13px; cursor: pointer; }
.seg-radio input:checked + span { background: var(--accent-strong); color: var(--on-accent); }
.seg-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 홈 */
.quick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: var(--s-2); }
.quick-link { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-1); text-decoration: none; font-weight: 600; }
.quick-link:hover { border-color: var(--accent); color: var(--accent); }
.steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: var(--s-2); color: var(--text-2); }
.steps strong { color: var(--text-1); }

/* 직원 */
.staff-head { flex-wrap: wrap; gap: var(--s-3); }
.staff-search { width: min(260px, 100%); }
.acct-acts { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--border); }

/* 권한 */
.pm-matrix { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pm-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-2) var(--s-3); }
.pm-row + .pm-row { border-top: 1px solid var(--border); }
.pm-name { display: flex; flex-direction: column; min-width: 0; flex: 1 1 200px; }
.pm-select { width: auto; min-width: 140px; }
.pm-owners { margin-top: var(--s-3); }
/* 권한 설정: 메뉴와 같은 묶음 제목 — 켜짐/꺼짐 메뉴(모든 직원 메뉴)는 보기·수정 칸과 섞이지 않게 제목으로 나눈다 */
.pm-sections { display: flex; flex-direction: column; gap: var(--s-4); }
.pm-sec-title { margin: 0 0 var(--s-1); font-size: 13px; font-weight: 700; color: var(--text-2); letter-spacing: .02em; }
.pm-sec-note { margin: 0 0 var(--s-2); }
.pm-row.is-toggle .seg { min-width: 112px; }
/* 모달의 켜짐/꺼짐 선택: 꺼짐을 고르면 표와 같은 danger 톤 */
.pm-row.is-toggle .seg-radio input[value="off"]:checked + span { background: var(--danger-bg); color: var(--danger-fg); box-shadow: inset 0 0 0 1.5px var(--danger-border); font-weight: 700; }
/* 열 수 있는 메뉴가 없는 직원: 검색칸 숨기고 안내 카드를 위쪽 20%쯤에 */
.sidebar.is-empty .side-search { display: none; }
.no-menu-wrap { padding-top: 12vh; }
.no-menu-wrap .btn { margin-top: var(--s-3); }

/* 부서·직급·직책 */
.code-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s-4); align-items: start; }
.code-list { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: flex; flex-direction: column; }
.code-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-1) 0; border-bottom: 1px solid var(--border); min-height: 36px; }
.code-name { min-width: 0; overflow-wrap: anywhere; }
.code-acts { display: inline-flex; gap: 2px; flex: none; }

/* 이미지·의료진 */
.img-row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.img-acts { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.img-preview { width: 120px; height: 120px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
  /* 투명 배경 이미지(검은 로고 등)가 다크 모드에서도 보이게 바둑판 바탕 */
  background-color: #f4f4f5; background-image: conic-gradient(#e4e4e7 25%, transparent 0 50%, #e4e4e7 0 75%, transparent 0); background-size: 12px 12px; }
.img-preview .cell-sub { color: #71717a; }
.img-preview.is-wide { width: 240px; height: 120px; max-width: 100%; }
.img-preview.is-fallback { border-style: dotted; }
.img-preview.is-fallback img { opacity: .8; }
.img-preview img { max-width: 100%; max-height: 100%; object-fit: contain; } /* grid로 두면 max-height:100%가 안 먹어 세로로 긴 이미지의 위아래가 잘렸다 → flex */
.img-preview.is-round { width: 96px; height: 96px; border-radius: 50%; background: var(--glass); }
.img-preview.is-round .cell-sub { color: var(--text-3, var(--text-2)); }
.img-preview.is-round img { width: 100%; height: 100%; object-fit: cover; }
.doc-profile { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
@media (max-width: 720px) { .doc-profile { grid-template-columns: minmax(0, 1fr); } }
.check-row { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-3); }
.check-row label { display: inline-flex; align-items: center; gap: var(--s-1); cursor: pointer; }
.check-row input { width: 16px; height: 16px; accent-color: var(--accent); }
.exc-form { margin-bottom: var(--s-3); }
.exc-kind { width: auto; flex: none; }

/* 기록 */
.log-table td { vertical-align: top; }
.log-table td:last-child { overflow-wrap: anywhere; white-space: normal; }
.log-pager { margin-top: var(--s-3); justify-content: flex-end; }

/* 홈(두 디자인 공통 뼈대) */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-4); align-items: stretch; }
.home-top.is-single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) { .home-top { grid-template-columns: minmax(0, 1fr); } }
.hero-eyebrow { margin: 0; font-size: 12px; color: var(--text-2); }
.hero-title { margin: var(--s-1) 0 var(--s-3); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.hero-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); min-height: 32px; }
.hero-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--glass); font-size: 13px; color: var(--text-1); }
.hero-chip .icon { width: 15px; height: 15px; color: var(--text-2); }
.hero-chip.is-warn { border-color: var(--warning-border); background: var(--warning-bg); color: var(--warning-fg); }
.hero-chip.is-warn .icon { color: currentColor; }
.hero-chip.is-ok { border-color: var(--success-border); background: var(--success-bg); color: var(--success-fg); }
.hero-chip.is-ok .icon { color: currentColor; }
.hero-text { margin: var(--s-4) 0 0; max-width: 62ch; color: var(--text-2); line-height: 1.7; }
.hero-label { margin: var(--s-6) 0 var(--s-2); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--text-3); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: var(--s-2); }
.tile { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--glass); color: var(--text-1); text-decoration: none; min-width: 0; transition: border-color 120ms ease, background 120ms ease; }
.tile:hover { border-color: var(--border-strong); background: var(--glass-strong); }
.tile-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--glass-strong); }
.tile-text { display: flex; flex-direction: column; min-width: 0; }
.tile-text strong { font-size: 14px; }
.tile-text span { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.today-list li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.today-list li.is-off { opacity: .6; }
.today-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--glass-strong); flex: none; }
.today-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.today-name span { font-size: 12px; color: var(--text-2); }
.today-time { font-size: 13px; color: var(--text-1); white-space: nowrap; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 176px), 1fr)); gap: var(--s-4); }
.stat-row:empty { display: none; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: var(--s-4) var(--s-6); color: var(--text-1); text-decoration: none; }
.stat-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.stat-label .icon { width: 16px; height: 16px; }
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stat-value small { font-size: 14px; font-weight: 500; margin-left: 3px; color: var(--text-2); }
.stat-sub { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) { .hero-title { font-size: 24px; } }
/* 화면 전환 때 본문으로 옮긴 포커스(스크린리더용)는 테두리를 그리지 않는다 */
.content:focus { outline: none; }

/* 인사관리(직원) */
.st-toolbar { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; margin-bottom: var(--s-3); }
.st-toolbar select.input { width: auto; min-width: 120px; }
.st-toolbar .staff-search { flex: 1 1 200px; width: auto; }
.st-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.st-avatar img { width: 100%; height: 100%; object-fit: cover; }
.st-avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.st-avatar.lg { width: 72px; height: 72px; font-size: 26px; }
.st-row { gap: var(--s-3); }
.st-empty { padding: var(--s-4) 0; }
.st-table td, .st-table th { vertical-align: middle; }
.st-table tr.is-link { cursor: pointer; }
.st-table tr.is-link:hover td { background: var(--glass-strong); }
.st-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: var(--s-4); align-items: start; }
@media (max-width: 1100px) { .st-detail { grid-template-columns: minmax(0, 1fr); } }
.st-col { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.st-head { display: flex; gap: var(--s-4); align-items: center; }
.st-head .btn-row { margin-top: 6px; }
.st-photo-acts { margin-top: var(--s-2) !important; }
.st-ended { padding: var(--s-3); border-radius: 12px; background: var(--well, var(--glass)); margin-top: var(--s-3); }
.st-eff { margin-top: var(--s-2); padding: var(--s-3); border-radius: 12px; border: 1px dashed var(--accent-ring); background: var(--accent-soft); }
.st-acts { margin-top: var(--s-3); }
.mode-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-2); }
.mode-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; }
.mode-opt:has(input:checked) { border-color: var(--accent-ring); background: var(--accent-soft); }
.mode-opt input { margin-top: 4px; accent-color: var(--accent-strong); }
.mode-opt > span { display: flex; flex-direction: column; }
/* 인사 이력 타임라인 */
.hist { list-style: none; margin: 0; padding: 0 0 0 6px; display: flex; flex-direction: column; }
.hist-item { position: relative; display: flex; gap: var(--s-3); align-items: flex-start; padding: 0 0 var(--s-4) 18px; border-left: 2px solid var(--border); }
.hist-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.hist-dot { position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-3); box-shadow: 0 0 0 3px var(--bg-1); }
.hist-dot.tone-success { background: var(--success); } .hist-dot.tone-info { background: var(--accent-strong); } .hist-dot.tone-warning { background: var(--warning); }
.hist-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hist-top { display: flex; gap: var(--s-2); align-items: center; }
/* 권한 한눈에 보기 */
.pm-table th, .pm-table td { white-space: nowrap; vertical-align: middle; }
.pm-cell { width: auto; min-width: 76px; padding-top: 4px; padding-bottom: 4px; font-size: 13px; }
.pm-cell.pm-tg { min-width: 64px; }
.pm-cell.lv-edit { border-color: var(--success-border); color: var(--success-fg); }
.pm-cell.lv-view { border-color: var(--info-border); color: var(--info-fg); }
.pm-cell.lv-none { color: var(--text-3); }
.pm-cell.lv-on { color: var(--text-2); }
/* 꺼짐 칸: 색에만 기대지 않게 옅은 배경 틴트 + 1.5px 테두리 + 굵은 글자 */
.pm-cell.lv-off { border: 1.5px solid var(--danger-border); background-color: var(--danger-bg); color: var(--danger-fg); font-weight: 700; }
/* 한눈에 보기 표: 직원 열 고정, 묶음 제목은 밀어도 화면 왼쪽에 붙어 있게 */
.pm-table { --pm-first: 150px; }
@media (max-width: 559px) { .pm-table { --pm-first: 96px; } }
.dt-scroll.pm-scroll { margin: 0; padding: 0; } /* 직원 열을 고정(sticky)하려면 가로 여백이 없어야 뒤로 비치지 않는다 */
.pm-secpick { max-width: 100%; overflow-x: auto; }
.pm-secpick .seg-btn { white-space: nowrap; flex: none; }
.pm-secpick.has-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); }
.pm-secpick.has-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 16px), transparent); }
.pm-secpick.has-l.has-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
@media (max-width: 767px) { .pm-secpick .seg-btn { min-height: 38px; } } /* 폰에서 누르기 쉬운 높이 */
.pm-table .pm-first { position: sticky; left: 0; z-index: 2; width: var(--pm-first); min-width: var(--pm-first); max-width: var(--pm-first); text-align: left; background: linear-gradient(var(--glass-strong), var(--glass-strong)), var(--bg-1); }
.pm-table .pm-first .cell-sub { overflow: hidden; text-overflow: ellipsis; }
.pm-table .pm-first strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.pm-table .pm-sec-row th { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pm-table .pm-sec-th { padding: 0; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-2); background: var(--well); }
.pm-table .pm-sec-name { position: sticky; left: var(--pm-first); display: inline-block; padding: 6px 10px; }
.pm-table .pm-sec-start { border-left: 1px solid var(--border); }
.pm-table .pm-th-toggle { min-width: 84px; }
.pm-table td.pm-off { background: var(--danger-bg); }

/* 숨김(hidden)은 그리드·플렉스 표시보다 우선 — 카드·창 안에서만(사이드바 메뉴는 hidden을 일부러 덮어 씀) */
.card [hidden], .modal [hidden] { display: none !important; }

/* 의료진 경력·논문 등 */
.di-groups { display: flex; flex-direction: column; gap: var(--s-3); }
.di-group { border: 1px solid var(--border); border-radius: 16px; padding: 10px 12px; background: var(--well, transparent); }
.di-head { display: flex; align-items: center; gap: var(--s-2); }
.di-head .btn-row { margin-left: auto; }
.di-list { display: flex; flex-direction: column; gap: 6px; margin-top: var(--s-2); }
.di-row { display: flex; gap: 6px; align-items: center; }
.di-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: 110px minmax(0, 2fr) minmax(0, 1fr); gap: 6px; }
.di-fields.has-link { grid-template-columns: 110px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 760px) { .di-fields, .di-fields.has-link { grid-template-columns: 90px minmax(0, 1fr); } .di-detail, .di-link { grid-column: 1 / -1; } }
.di-empty { margin: 6px 0 0; }

/* 로그인·안내 화면의 링크 버튼: 빈 상태(.empty a)의 링크 색이 버튼 글자색을 덮지 않게 */
.empty a.btn { text-decoration: none; }
.empty a.btn-primary { color: var(--on-accent); }
.empty a.btn-ghost { color: var(--text-1); }

/* 젠티 지원 접속 표시줄 — 화면 맨 아래에 항상 */
.support-bar { position: fixed; z-index: 80; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(820px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #f5c26b; color: #2b1d02; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-size: 13px; }
.support-bar .icon { width: 18px; height: 18px; flex: none; }
.support-bar span { flex: 1; min-width: 0; }
.support-end { flex: none; border: 1px solid rgba(43, 29, 2, .35); background: rgba(255, 255, 255, .55); color: #2b1d02; border-radius: 10px; padding: 6px 10px; font: inherit; font-weight: 700; cursor: pointer; }
body.is-support .content { padding-bottom: 90px; }
@media (max-width: 600px) { .support-bar { flex-wrap: wrap; } .support-end { width: 100%; } }

.shadow-bar { background: #2b2f3a; color: #eef1f6; border: 1px solid rgba(255,255,255,.18); }
.shadow-bar .support-end { background: rgba(255,255,255,.12); color: #eef1f6; border-color: rgba(255,255,255,.3); }

/* ── 내 정보 ── */
.my-rows { display: flex; flex-direction: column; }
.my-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.my-row:first-child { border-top: 0; padding-top: 0; }
.my-val { display: flex; align-items: baseline; gap: var(--s-3); min-width: 0; flex: 1; flex-wrap: wrap; }
.my-label { color: var(--text-2); font-size: 13px; min-width: 88px; }
.my-edit { display: flex; flex-direction: column; gap: var(--s-2); flex: 1; min-width: 0; }
.my-photo { margin: var(--s-2) 0 var(--s-4); align-items: center; }
.my-req { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); padding: var(--s-3); margin-bottom: var(--s-3);
  border-radius: var(--radius-md); border: 1px solid var(--warning-border); background: var(--warning-bg); flex-wrap: wrap; }
.my-req.is-rejected { border-color: var(--danger-border); background: var(--danger-bg); display: block; }
.my-req-list { margin: var(--s-2) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.my-req-list li { display: flex; gap: var(--s-3); align-items: center; }
.my-req-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.my-perms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.my-perms li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 8px 0; border-top: 1px solid var(--border); }
.my-perms li:first-child { border-top: 0; }

/* ── 인사 항목 설정: [쓰기] 항목 … [본인 수정 요청] ── */
.hr-set { display: flex; flex-direction: column; }
.hr-set-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 9px 0; border-top: 1px solid var(--border); }
.hr-set-row:first-child { border-top: 0; }
.hr-set-use, .hr-set-self { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 32px; }
.hr-set-self { color: var(--text-2); font-size: 13px; }
.hr-set-self:has(input:disabled) { opacity: .45; }
.hr-set-base { font-size: 11px; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); }

/* ── 변경 요청: 목록 알림·상세 카드·검토 창 ── */
.req-banner { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.req-banner > .icon { color: var(--accent-strong); }
.req-banner-text { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.req-card { border-color: var(--warning-border); }
.req-diff { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.req-diff th, .req-diff td { text-align: left; padding: 7px 8px; border-top: 1px solid var(--border); vertical-align: middle; }
.req-diff thead th { border-top: 0; color: var(--text-2); font-weight: 500; font-size: 12px; }
.req-diff tbody th { color: var(--text-2); font-weight: 500; white-space: nowrap; }
.req-new { font-weight: 600; }
.req-list { display: flex; flex-direction: column; gap: var(--s-4); }
.req-item { padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--radius-md); }
.req-item-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-2); }

/* 이미지 맞추기(components/image-editor.js) — 콘솔·매니저 같은 내용 */
.ie { display: grid; gap: var(--s-3); }
.ie-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; justify-self: start; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--border); }
.ie-seg-item { position: relative; display: inline-flex; }
.ie-seg-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ie-seg-item span { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 7px; color: var(--text-2); font-weight: 600; font-size: 13px; cursor: pointer; }
.ie-seg-item input:checked + span { background: var(--accent-strong); color: var(--on-accent); }
.ie-seg-item input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ie-stage { position: relative; justify-self: center; width: min(100%, 480px, max(200px, calc((100dvh - 470px) * var(--ie-ar, 1)))); border-radius: var(--radius-sm); overflow: hidden; outline: 1px solid var(--border-strong);
  background-color: #f4f4f5; background-image: conic-gradient(#e4e4e7 25%, transparent 0 50%, #e4e4e7 0 75%, transparent 0); background-size: 16px 16px; }
.ie-stage.is-white { background: #ffffff; }
.ie-canvas { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; }
.ie-canvas:active { cursor: grabbing; }
.ie-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ie-stage.is-round::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .45); }
.ie-stage { container-type: inline-size; }
.ie-sample { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; text-align: center; padding: 4cqw; color: #fff; background: rgba(0, 0, 0, .32); pointer-events: none; }
.ie-sample[hidden], .ie-guide[hidden] { display: none; }
.ie-sample.is-end { align-content: end; }
.ie-sample p { margin: 0; }
.ie-zone { position: absolute; z-index: 1; box-sizing: border-box; border: 2px dashed rgba(255, 220, 120, .95); background: rgba(255, 220, 120, .12); pointer-events: none; }
.ie-zone[hidden] { display: none; }
.ie-zone span { position: absolute; right: 4px; top: 2px; font-size: 11px; line-height: 1.2; padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #ffdc78; }
.ie-sample-eb { font-size: calc(var(--ie-sub) * .75); letter-spacing: .12em; opacity: .8; }
.ie-sample-h1 { font-size: var(--ie-h1); line-height: 1.2; font-weight: 700; letter-spacing: -0.03em; margin-top: .3em !important; }
.ie-sample-sub { font-size: var(--ie-sub); margin-top: .6em !important; opacity: .92; }
.ie-guide { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); box-sizing: border-box; border: 2px dashed rgba(255, 255, 255, .95); outline: 1px solid rgba(0, 0, 0, .55); pointer-events: none; box-shadow: 0 0 0 999px rgba(0, 0, 0, .28); }
.ie-guide.is-alt { border-style: dotted; }
.ie-guide.is-alt span { bottom: auto; top: 4px; }
.ie-guide span { position: absolute; left: 6px; bottom: 4px; font-size: 11px; line-height: 1.2; padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; }
.ie-views { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.ie-zoom-row { display: flex; align-items: center; gap: var(--s-2); color: var(--text-2); }
.ie-zoom { flex: 1; accent-color: var(--accent-strong); }
.ie-tools { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ie-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.ie-help { margin: 0; }

/* ── 예약 관리(pages/reservations.js) ── */
.rv-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3); }
.rv-filters .input { width: auto; min-width: 0; }
.rv-filters input[type=search] { flex: 1 1 220px; }
.rv-table td { vertical-align: top; }
.rv-row { cursor: pointer; }
.rv-row:hover td, .rv-row:focus-visible td { background: var(--glass); }
.rv-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rv-when, .rv-name { font-weight: 600; }
.rv-range { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.rv-range-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.rv-range .input { flex: 1 1 140px; }
.rv-mk { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 11px; line-height: 18px; color: var(--text-2); }
.rv-memo-line { display: flex; align-items: center; gap: 4px; max-width: 260px; margin-top: 2px; font-size: 13px; color: var(--text-2); }
.rv-memo-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rv-memo-line .icon, .rv-last .icon { flex: none; width: 14px; height: 14px; }
.rv-last { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; font-weight: 600; }
.rv-empty { padding: var(--s-6) var(--s-3); text-align: center; }
.rv-detail { display: grid; gap: var(--s-4); }
.rv-detail-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.rv-dl > div { align-items: start; }
.rv-items { display: grid; gap: 4px; }
.rv-items > div { display: flex; justify-content: space-between; gap: var(--s-3); }
.rv-total { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--border); text-align: right; }
.rv-pre { white-space: pre-wrap; font-weight: 400; }
.rv-sub { margin: var(--s-2) 0 0; font-size: 15px; }
.rv-contact { display: grid; gap: var(--s-2); padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--glass); }
.rv-contact .btn { justify-self: start; }
.rv-events { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.rv-ev { display: grid; gap: 2px; padding: var(--s-2) var(--s-3); border-left: 3px solid var(--border-strong); background: var(--glass); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.rv-ev-contact { border-left-color: var(--accent); }
.rv-ev-confirm { border-left-color: var(--success-fg, #22a06b); }
.rv-ev-cancel, .rv-ev-delete { border-left-color: var(--danger-fg, #d44); }
.rv-ev-kind { font-weight: 600; }
.rv-ev-detail { font-size: 14px; overflow-wrap: anywhere; }
.rv-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; max-height: 220px; overflow: auto; padding: 2px; }
.rv-slot { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--glass); color: var(--text-1); cursor: pointer; font: inherit; font-weight: 600; }
.rv-slot-left { font-size: 11px; font-weight: 500; color: var(--text-2); }
.rv-slot.is-full { opacity: .55; }
.rv-slot[aria-checked="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); opacity: 1; }
.rv-slot[aria-checked="true"] .rv-slot-left { color: var(--on-accent); }
.rv-slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rv-slot-note { margin: 0 0 var(--s-2); }
.rv-over { margin-top: var(--s-2); }
.rv-pick { display: grid; gap: 2px; align-content: start; height: min(200px, 50vh); overflow: auto; margin-top: var(--s-2); padding: var(--s-1); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.rv-pick-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); padding: 6px var(--s-2); border-radius: 6px; cursor: pointer; }
.rv-pick-row:hover { background: var(--glass); }
.rv-pick-row input { width: 16px; height: 16px; accent-color: var(--accent); }
.rv-form .field-label .num { font-weight: 500; color: var(--text-2); margin-left: var(--s-2); }
@media (max-width: 600px) { .rv-filters .input { flex: 1 1 140px; } }

/* 안내 화면 안의 젠티 계정 로그인(js/login-panel.js) — 버튼을 누르면 카드 안에 폼이 펼쳐진다 */
.gate-panel { flex: 1 1 100%; display: grid; justify-items: center; gap: var(--s-2); }
.gate-who { display: grid; justify-items: center; gap: var(--s-2); }
.gate-who-mail { font-size: 13px; color: var(--text-2); }
.gate-other { font-size: 13px; font-weight: 500; color: var(--text-2); }
.gate-login { width: 100%; text-align: left; display: grid; }
.gate-login .field-label:first-child { margin-top: var(--s-2); }
.gate-login .check-row { margin-top: var(--s-3); font-size: 13px; color: var(--text-2); }
.gate-submit { margin-top: var(--s-4); width: 100%; justify-content: center; }
.gate-fallback { margin-top: var(--s-3); justify-content: center; }
.gate-help { display: flex; gap: 6px; align-items: flex-start; margin: var(--s-4) 0 0; font-size: 12px; line-height: 1.5; }
.gate-help .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* 공지(pages/notices.js · js/notices.js) — 본문은 평문 그대로(줄바꿈 유지) */
.nt-list { list-style: none; margin: 0; padding: 0; }
.nt-item + .nt-item { border-top: 1px solid var(--border); }
.nt-head { width: 100%; display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-2); border: 0; background: none; color: var(--text-1); font: inherit; text-align: left; cursor: pointer; border-radius: var(--radius-sm); }
.nt-head:hover { background: var(--glass); }
.nt-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nt-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-item.is-unread .nt-title { font-weight: 800; }
.nt-item.is-open .nt-title { white-space: normal; }
.nt-date { flex: none; }
.nt-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent-strong); }
.nt-dot[hidden] { display: none; }
.nt-chev { width: 16px; height: 16px; flex: none; color: var(--text-3); transition: transform .2s; }
.nt-item.is-open .nt-chev { transform: rotate(180deg); }
.nt-panel { padding: 0 var(--s-2) var(--s-4) calc(var(--s-2) + 16px); }
.nt-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; color: var(--text-1); }
.nt-meta { margin: var(--s-3) 0 0; }
.nt-modal { display: grid; gap: var(--s-3); }
.nt-modal-meta { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.nt-modal .nt-body { max-height: 55vh; overflow: auto; }
.nt-badge { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--warning-fg, #fbbf24); background: var(--warning-bg, rgba(251,191,36,.16)); border: 1px solid var(--warning-border, rgba(251,191,36,.4)); }
.nt-badge .icon { width: 13px; height: 13px; }

/* 본사 요청(pages/requests.js) — 목록, 대화(병원 오른쪽·본사 왼쪽·상태 변경 가운데), 덧붙이기. 본문은 평문 그대로 */
.rq-list { list-style: none; margin: 0; padding: 0; }
.rq-item + .rq-item { border-top: 1px solid var(--border); }
.rq-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-2); color: var(--text-1); text-decoration: none; border-radius: var(--radius-sm); }
.rq-row:hover { background: var(--glass); }
.rq-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rq-cat { flex: none; font-size: 12px; font-weight: 600; color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.rq-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rq-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-item.is-unread .rq-title { font-weight: 800; }
.rq-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-new { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--accent); }
.rq-new .icon { width: 14px; height: 14px; }
@media (max-width: 767px) { .rq-row { flex-wrap: wrap; } .rq-main { flex-basis: calc(100% - 90px); } }
.rq-form { display: grid; }
.rq-card { display: grid; gap: var(--s-4); }
.page-head.is-chat, .rq-chat { max-width: 860px; width: 100%; margin-inline: auto; } /* 본사 요청 대화 폭: 교육 화면(.ay-chapter)과 같게 — 넓은 PC에서 한 줄이 너무 길지 않게, 좁은 화면은 그대로(채용 확인 카드의 .rq-card와 구분) */
.rq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.rq-head-main { min-width: 0; }
.rq-head-main .cell-sub { margin: 0 0 4px; }
.rq-head-title { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.rq-thread { display: grid; gap: var(--s-3); max-height: 60vh; overflow: auto; padding: var(--s-2) 2px; }
.rq-msg { max-width: 86%; padding: var(--s-3) var(--s-4); border-radius: 14px; border: 1px solid var(--border); background: var(--glass); }
.rq-msg.is-hospital { justify-self: end; background: var(--accent-soft); border-color: var(--accent-ring); border-bottom-right-radius: 4px; }
.rq-msg.is-hq { justify-self: start; border-bottom-left-radius: 4px; }
.rq-who { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.rq-who .icon { width: 14px; height: 14px; }
.rq-who .cell-sub { font-weight: 400; margin-left: 4px; }
.rq-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.rq-event { justify-self: center; margin: 0; font-size: 12px; color: var(--text-3); text-align: center; }
.rq-compose { display: grid; gap: var(--s-2); border-top: 1px solid var(--border); padding-top: var(--s-4); }
.rq-compose .cell-sub { margin: 0; }
.rq-compose-act { justify-content: flex-end; }

/* 실시간 표시(js/live.js) — 상단바: 초록 점 "실시간" / 회색 점 "2분마다 확인" */
.live-ind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); white-space: nowrap; margin-right: var(--s-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.live-ind.is-live { color: var(--success-fg, #34d399); }
.live-ind.is-live .live-dot { background: var(--success-fg, #34d399); box-shadow: 0 0 0 3px var(--success-bg, rgba(52,211,153,.18)); }
@media (prefers-reduced-motion: no-preference) { .live-ind.is-live .live-dot { animation: live-pulse 2.4s ease-in-out infinite; } }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 6px transparent; } }
@media (max-width: 767px) { .live-label { display: none; } .live-ind { margin-right: 0; } }
/* 입력 중인 화면에 다른 곳의 변경이 오면 다시 그리지 않고 알려 준다 */
.live-stale { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin: 0 0 var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm);
  background: var(--info-bg, rgba(96,165,250,.14)); border: 1px solid var(--info-border, rgba(96,165,250,.4)); color: var(--text-1); font-size: 13px; }
.live-stale .icon { width: 16px; height: 16px; }
/* 콘솔에서 홈페이지가 꺼진 병원: 홈페이지 콘텐츠 화면 위 안내(편집은 그대로) */
.platform-notice { display: flex; align-items: flex-start; gap: var(--s-2); margin: 0 0 var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--warning) 14%, var(--bg-1)); border: 1px solid var(--warning-border); color: var(--text-1); font-size: 13px; line-height: 1.5; } /* 바탕이 비치지 않는 면(뒤 사진이 비쳐 대비가 떨어지지 않게, 디자인 검수) */
.platform-notice[hidden] { display: none; }
.platform-notice .icon { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--warning-fg); }
.platform-notice strong { font-weight: 700; }
/* 실시간으로 다시 그릴 새 화면을 미리 그려 두는 곳(화면 밖, 보이지 않음) */
.live-staging { position: fixed; left: -10000px; top: 0; width: 1200px; visibility: hidden; pointer-events: none; }

/* 근무 스케줄(pages/schedule.js) — 직원 × 날짜 표. 앞 세 칸(부서·이름·직책)은 옆으로 넘겨도 고정. 칸 색은 원래 스케줄러 색을 다크·라이트에 맞게 */
.ws-monthnav { display: inline-flex; align-items: center; gap: 6px; }
.ws-month { min-width: 92px; text-align: center; font-size: 15px; }
.ws-head { flex-wrap: wrap; }
.ws-legend { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ws-status { min-width: 52px; }
.ws-scroll { overflow: auto; max-width: 100%; border-radius: 12px; background: var(--ws-surface); border: 1px solid var(--ws-line-strong); }
.ws-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ws-table { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; }
.ws-table th, .ws-table td { border-bottom: 1px solid var(--ws-line); border-right: 1px solid var(--ws-line); padding: 0; text-align: center; white-space: nowrap; height: 30px; background-clip: padding-box; }
.ws-table thead th { font-weight: 600; font-size: 11.5px; color: var(--text-2); padding: 4px 2px; position: sticky; top: 0; z-index: 2; background: var(--ws-head); }
.ws-table thead tr + tr th { top: 28px; border-bottom-color: var(--ws-line-strong); font-weight: 500; font-size: 11px; color: var(--text-3); }
.ws-table thead tr:first-child th { letter-spacing: .01em; }
.ws-day, .ws-dow { min-width: 34px; }
.ws-fix { position: sticky; z-index: 1; background: var(--ws-surface); text-align: left !important; padding: 0 10px !important; overflow: hidden; text-overflow: ellipsis; }
.ws-table thead .ws-fix { z-index: 3; background: var(--ws-head); color: var(--text-2); font-size: 11.5px; }
.ws-f1 { left: 0; width: 76px; min-width: 76px; max-width: 76px; }
.ws-f2 { left: var(--ws-l2, 76px); width: 86px; min-width: 86px; max-width: 120px; }
.ws-f3 { left: var(--ws-l3, 162px); width: 68px; min-width: 68px; max-width: 90px; border-right: 1px solid var(--ws-line-strong) !important; box-shadow: 8px 0 10px -8px var(--ws-shadow); }
/* 표 색: 테마 강조색을 아주 조금 섞은 면(머리글은 조금 더) — 라이트·다크 모두 바탕과 어울리게 */
:root { --ws-surface: color-mix(in srgb, var(--accent) 4%, #14181f); --ws-head: color-mix(in srgb, var(--accent) 10%, #191e26); --ws-line: rgba(255,255,255,.06); --ws-line-strong: rgba(255,255,255,.13); --ws-shadow: rgba(0,0,0,.55); --ws-solid: var(--ws-surface); }
:root[data-theme="light"] { --ws-surface: color-mix(in srgb, var(--accent) 2%, #ffffff); --ws-head: color-mix(in srgb, var(--accent) 7%, #f7f6f3); --ws-line: rgba(15,23,42,.06); --ws-line-strong: rgba(15,23,42,.13); --ws-shadow: rgba(15,23,42,.18); }
.ws-table tbody tr:hover > td, .ws-table tbody tr:hover > th { background-color: color-mix(in srgb, var(--accent) 6%, var(--ws-surface)); }
.ws-table .ws-day.is-today { color: var(--on-accent); background: var(--accent); }
.ws-table td.is-today { background-color: color-mix(in srgb, var(--accent) 8%, var(--ws-surface)); }
.ws-sum-h { background: color-mix(in srgb, var(--accent) 14%, var(--ws-head)) !important; color: var(--text-1); }
.ws-sum { background: color-mix(in srgb, var(--accent) 5%, var(--ws-surface)); }
.ws-table tfoot td, .ws-table tfoot th { background: color-mix(in srgb, var(--accent) 3%, var(--ws-head)); }
.ws-table tfoot tr:first-child > * { border-top: 1px solid var(--ws-line-strong); }
.ws-foot-label { left: 0; z-index: 1; box-shadow: 8px 0 10px -8px var(--ws-shadow); border-right: 1px solid var(--ws-line-strong) !important; }
.is-sat { color: #60a5fa; } .is-sun { color: #f87171; }
:root[data-theme="light"] .is-sat { color: #2563eb; } :root[data-theme="light"] .is-sun { color: #dc2626; }
.ws-table th.is-holiday { background: color-mix(in srgb, #ef4444 18%, var(--ws-head)); color: #fca5a5; }
.ws-name { font-weight: 700; color: var(--text-1); }
:root[data-theme="light"] .ws-table th.is-holiday { color: #b91c1c; }
.ws-cell.is-closed, .ws-table th.is-closed { color: var(--text-3); }
.ws-cell.is-closed { background: color-mix(in srgb, var(--text-3) 12%, transparent); font-size: 11px; }
.ws-cell.is-out { color: var(--text-3); font-size: 10px; background: color-mix(in srgb, var(--text-3) 8%, transparent); }
.ws-sel { width: 100%; height: 30px; border: 0; margin: 0; padding: 0 2px; background: transparent; color: var(--text-2); font: inherit; font-weight: 700; font-size: 11.5px;
  text-align: center; text-align-last: center; cursor: pointer; appearance: none; -webkit-appearance: none; border-radius: 0; }
.ws-sel:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ws-sel option { background: var(--ws-solid); color: var(--text-1); }
.ws-code { display: inline-block; padding: 1px 6px; border-radius: 6px; font-weight: 700; font-size: 11.5px; }
.ws-sum, .ws-sum-h { min-width: 38px; font-weight: 700; }
.ws-foot td, .ws-foot th { font-size: 11.5px; color: var(--text-2); }
.ws-foot-label { text-align: right !important; padding-right: 10px !important; }
.ws-foot td.is-short { color: #f87171; font-weight: 800; background: color-mix(in srgb, #ef4444 14%, transparent); }
.ws-short-row th { color: #f87171; }
.ws-need { margin: 0 0 var(--s-3); overflow-x: auto; }
.ws-need-table { border-collapse: collapse; font-size: 12px; }
.ws-need-table { background: var(--ws-surface); border-radius: 10px; overflow: hidden; border-collapse: separate; border-spacing: 0; border: 1px solid var(--ws-line-strong); }
.ws-need-table th, .ws-need-table td { border-bottom: 1px solid var(--ws-line); border-right: 1px solid var(--ws-line); padding: 4px 10px; text-align: center; }
.ws-need-table tr:last-child > * { border-bottom: 0; } .ws-need-table tr > :last-child { border-right: 0; }
.ws-need-table thead th, .ws-need-table tbody th { background: var(--ws-head); font-weight: 600; color: var(--text-2); }
.ws-need-edit td { padding: 3px; }
.ws-need-in { width: 56px; text-align: center; padding: 4px; }
.ws-hide-list { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ws-hide { margin-top: var(--s-2); }
.ws-hol-add { flex-wrap: wrap; margin: var(--s-3) 0; }
.ws-hol-add .input { width: auto; }
.ws-hol-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 520px; }
.ws-hol-list li { display: grid; grid-template-columns: 110px 1fr auto; gap: var(--s-3); align-items: center; padding: 4px 0; border-bottom: 1px solid var(--border); }
.ws-warn { display: inline-flex; align-items: center; gap: 3px; color: #f87171; font-weight: 700; }
.ws-warn .icon { width: 14px; height: 14px; }
/* 근무 코드 색(원래 스케줄러: 근무 주황, OFF 빨강 글자, 연차 보라, 반차 초록, 대휴 연두, 경조 노랑, 무급 검정, 지각·결근 분홍·빨강) */
.ws-c-work { background: rgba(251,146,60,.24); color: #fdba74; }
.ws-c-off { color: #f87171; }
.ws-c-vac { background: rgba(167,139,250,.24); color: #c4b5fd; }
.ws-c-half { background: rgba(74,222,128,.2); color: #86efac; }
.ws-c-sub { background: rgba(45,212,191,.2); color: #5eead4; }
.ws-c-cond { background: rgba(250,204,21,.2); color: #fde047; }
.ws-c-unpaid { background: rgba(148,163,184,.4); color: #f1f5f9; }
.ws-c-late { background: rgba(251,113,133,.22); color: #fda4af; }
.ws-c-absent { background: rgba(239,68,68,.38); color: #fee2e2; }
:root[data-theme="light"] .ws-c-work { background: #fce4d6; color: #c2410c; }
:root[data-theme="light"] .ws-c-off { color: #dc2626; }
:root[data-theme="light"] .ws-c-vac { background: #ede4f7; color: #6d28d9; }
:root[data-theme="light"] .ws-c-half { background: #dcf5e3; color: #15803d; }
:root[data-theme="light"] .ws-c-sub { background: #d5f3ee; color: #0f766e; }
:root[data-theme="light"] .ws-c-cond { background: #fff2cc; color: #92400e; }
:root[data-theme="light"] .ws-c-unpaid { background: #1f2937; color: #ffffff; }
:root[data-theme="light"] .ws-c-late { background: #ffe4e6; color: #be123c; }
:root[data-theme="light"] .ws-c-absent { background: #fecaca; color: #991b1b; }
.ws-sum.ws-k-off, .ws-sum-h.ws-k-off { color: #f87171; }
/* 달력 */
.wc-table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; }
.wc-table th { padding: 6px; font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.wc-table td { vertical-align: top; height: 104px; padding: 6px; border: 1px solid var(--border); }
.wc-empty { background: color-mix(in srgb, var(--text-3) 6%, transparent); }
.wc-num { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 4px; font-weight: 700; }
.wc-day.is-closed { background: color-mix(in srgb, var(--text-3) 10%, transparent); }
.wc-tag { font-size: 10.5px; font-weight: 600; color: #f87171; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-item { font-size: 12.5px; font-weight: 700; padding: 1px 4px; border-radius: 5px; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-team { font-size: 10.5px; font-weight: 500; opacity: .85; }

/* 인센티브(pages/incentive.js) — 원래 계산기 배치: 왼쪽 규칙 ①~⑤, 오른쪽 요약·⑥, 아래 ⑦ 정산 */
.ic-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: var(--s-4); align-items: start; }
@media (max-width: 1100px) { .ic-grid { grid-template-columns: 1fr; } }
.ic-side { position: sticky; top: calc(var(--topbar-h, 72px) + var(--s-3)); }
@media (max-width: 1100px) { .ic-side { position: static; } }
.ic-title { display: flex; align-items: center; gap: 8px; }
.ic-no { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; font-size: 12px; background: var(--accent-soft); color: var(--accent); }
.ic-desc { margin: 4px 0 var(--s-3); line-height: 1.6; }
.ic-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ic-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 0 6px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ic-table th[scope="row"] { vertical-align: middle; padding: 4px 6px; border-bottom: 1px solid var(--border); }
.ic-table td { padding: 4px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ic-table .input { padding: 6px 8px; min-width: 0; }
.ic-money { text-align: right; min-width: 120px; }
.ic-num { width: 100%; min-width: 64px; text-align: right; }
.ic-r { text-align: right !important; }
.ic-strong { font-weight: 800; color: var(--accent); }
.ic-del { width: 30px; height: 30px; color: var(--danger-fg, #f87171); }
.ic-addrow { margin-top: var(--s-2); width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 7px 12px; border: 1px dashed var(--border-strong, var(--border));
  border-radius: var(--radius-sm); background: none; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; }
.ic-addrow:hover { background: var(--accent-soft); }
.ic-addrow .icon { width: 14px; height: 14px; }
.ic-add { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: var(--s-2); margin-bottom: var(--s-3); }
@media (max-width: 600px) { .ic-add { grid-template-columns: 1fr; } }
.ic-row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s-4); }
@media (max-width: 800px) { .ic-row3 { grid-template-columns: 1fr; } }
.ic-sub-title { margin: 0 0 6px; font-weight: 700; font-size: 13px; }
.ic-expected { margin-top: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); background: var(--accent-soft); }
.ic-expected p { margin: 0; }
.ic-exp-title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); }
.ic-exp-title .icon { width: 16px; height: 16px; }
.ic-exp-total { font-size: 22px; font-weight: 800; margin: 4px 0 !important; }
.ic-tag { font-size: 11.5px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border); }
.ic-ok { color: var(--accent); font-weight: 700; }
.ic-cut { margin-left: 4px; font-size: 11px; padding: 1px 5px; border-radius: 5px; background: var(--danger-bg, rgba(248,113,113,.16)); color: var(--danger-fg, #f87171); }
.ic-settle tr.is-mgr td { color: var(--text-2); }
.ic-settle tfoot td { font-weight: 800; border-top: 2px solid var(--border); }
.ic-staff { display: grid; gap: 2px; }
.ic-staff .check-row { margin-top: 6px; }
.ic-hero { border-radius: var(--radius-lg); padding: 22px 22px; color: #f4f1e8; background: linear-gradient(155deg, #1c2b28 0%, #24413a 100%); box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.2)); }
.ic-hero-label { margin: 0 0 var(--s-3); font-size: 12px; letter-spacing: .06em; opacity: .75; }
.ic-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.ic-hero .k { font-size: 12px; opacity: .75; margin-bottom: 3px; }
.ic-hero .v { font-size: 20px; font-weight: 800; }
.ic-hero-total { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid rgba(255,255,255,.18); }
.ic-hero-total .v { font-size: 28px; }
.ic-banner { display: flex; align-items: flex-start; gap: 8px; padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); background: var(--info-bg, rgba(96,165,250,.14));
  border: 1px solid var(--info-border, rgba(96,165,250,.4)); font-size: 13px; }
.ic-banner.is-stale { background: var(--warning-bg); border-color: var(--warning-border); }
.ic-banner .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.ws-hol-note { display: flex; gap: 6px; align-items: flex-start; margin: var(--s-3) 0; padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm); font-size: 13px;
  background: var(--info-bg, rgba(96,165,250,.14)); border: 1px solid var(--info-border, rgba(96,165,250,.4)); }
.ws-hol-note .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* ── 근로계약(lc-) ── */
.lc-fld { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-width: 0; } /* 칸 이름 위아래 간격은 .field-label 여백 그대로(공통 select()와 입력칸 높이가 맞게). 열을 minmax(0,1fr)로 묶어야 사파리 날짜 칸이 자기 폭으로 칸을 밀어내지 않음 */
.lc-mt { margin-top: var(--s-3); }
.lc-scroll { overflow-x: auto; max-width: 100%; }
.lc-money { text-align: right; min-width: 120px; }
.lc-c { text-align: center !important; }
.lc-page { display: grid; gap: var(--s-4); }
.lc-page > * { min-width: 0; }
.lc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.lc-bar-meta { margin-left: auto; }
.lc-status { margin-left: 6px; }
.lc-grid { align-items: start; }
.lc-form { display: grid; gap: var(--s-4); min-width: 0; }
.lc-days { min-width: 560px; }
.lc-days .input { padding: 6px 8px; }
.lc-days .lc-break { width: 84px; text-align: right; }
.lc-days tr.is-weekend th { color: var(--text-2); }
.lc-dow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; cursor: pointer; }
.lc-copy { margin: var(--s-2) 0 0; font-size: 13px; }
.lc-patbar { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-bottom: var(--s-3); }
.lc-patbar .input { width: auto; min-width: 200px; }
.lc-tax { margin-top: var(--s-3); padding: var(--s-2) var(--s-3); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.lc-tax summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.lc-actions { display: grid; gap: var(--s-2); }
.lc-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: flex-end; }
.lc-calc { display: grid; gap: var(--s-3); }
.lc-box { padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.lc-sum td { font-weight: 700; }
.lc-warn { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lc-warn li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5; border: 1px solid var(--border); }
.lc-warn li .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.lc-warn li.is-danger { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger-fg); }
.lc-warn li.is-warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-fg); }
.lc-warn li.is-info { background: var(--info-bg); border-color: var(--info-border); color: var(--info-fg); }
.lc-okline { display: flex; gap: 6px; align-items: center; margin: 0; color: var(--success-fg); font-size: 13px; }
.lc-okline .icon { width: 16px; height: 16px; }
.lc-ref { margin: 0; }
.lc-listhead { flex-wrap: wrap; align-items: center; }
.lc-listhead .input { width: 200px; max-width: 100%; }
.lc-list { min-width: 640px; }
.lc-row { cursor: pointer; }
.lc-row:hover td, .lc-row:focus-visible td { background: var(--accent-soft); }
.lc-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lc-alert { background: var(--warning-bg); border-color: var(--warning-border); }
.lc-alert-title { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--s-2); font-weight: 700; }
.lc-alert-title .icon { width: 16px; height: 16px; }
.lc-alert ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.lc-alert li .link-btn { margin-left: 10px; font-size: 13px; }
.lc-hint { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm); font-size: 13px;
  background: var(--info-bg); border: 1px solid var(--info-border); }
.lc-hint .icon { width: 16px; height: 16px; flex: none; }
.lc-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
@media (max-width: 1000px) { .lc-settings { grid-template-columns: 1fr; } }
.lc-col { display: grid; gap: var(--s-4); }
.lc-modes { display: grid; gap: var(--s-2); }
.lc-mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.lc-mode > span { display: grid; gap: 2px; }
.lc-mode.is-on { border-color: var(--accent); background: var(--accent-soft); }
.lc-mode input { margin-top: 3px; }
.lc-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.lc-items li { display: flex; justify-content: space-between; gap: var(--s-3); align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.lc-items li p { margin: 2px 0 0; }
.lc-item-acts { display: flex; gap: 6px; flex: none; }
.lc-chip { margin-left: 6px; }
.lc-clauses { display: grid; gap: var(--s-3); }
.lc-clause-ed { display: grid; gap: 6px; }
.lc-clause-head { display: flex; gap: 6px; align-items: center; }
.lc-clause-head .input { flex: 1; font-weight: 700; }
.lc-ph { font-size: 12.5px; word-break: keep-all; line-height: 1.8; }
.lc-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.lc-preview { background: #e9e7e1; padding: var(--s-4); border-radius: var(--radius-sm); }

/* 계약서 문서 — 화면 테마와 상관없이 흰 종이 */
.lc-doc { position: relative; background: #fff; color: #111; padding: 48px 52px; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.18);
  font-family: "Pretendard", "Noto Sans KR", sans-serif; font-size: 13.5px; line-height: 1.75; max-width: 820px; margin: 0 auto; }
.lc-doc-title { text-align: center; font-size: 24px; letter-spacing: .4em; margin: 0 0 24px; color: #111; }
.lc-lead { margin: 0 0 18px; }
.lc-clause { margin: 0 0 14px; break-inside: avoid; }
.lc-clause h3 { font-size: 14px; margin: 0 0 4px; color: #111; }
.lc-clause p { margin: 0 0 4px; white-space: pre-wrap; }
.lc-dt { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 12.5px; table-layout: fixed; }
.lc-dt th, .lc-dt td { border: 1px solid #9a9a9a; padding: 5px 8px; color: #111; vertical-align: middle; word-break: keep-all; overflow-wrap: anywhere; }
.lc-dt th { background: #f1f1ee; font-weight: 600; }
.lc-dt thead th { text-align: center; }
.lc-pair col.k { width: 16%; }
.lc-pair th { white-space: nowrap; }
.lc-pair th { text-align: center; }
.lc-grid-t td { text-align: center; }
.lc-grid-t tbody th { text-align: center; }
.lc-week td.is-off { color: #888; }
.lc-week thead th:nth-child(1) { width: 11%; } .lc-week thead th:nth-child(2) { width: 22%; } .lc-week thead th:nth-child(3) { width: 25%; } .lc-week thead th:nth-child(4) { width: 13%; }
.lc-week td.lc-note-cell { text-align: left; vertical-align: top; font-size: 12px; }
.lc-note p { margin: 0 0 4px !important; }
.lc-pay td:nth-child(2), .lc-pay td:nth-child(5) { text-align: right; }
.lc-pay thead th:nth-child(4), .lc-pay tbody th:nth-child(4) { border-left: 2px solid #777; }
.lc-pay tbody td:nth-child(4) { border-left: 2px solid #777; }
.lc-pay thead th:nth-child(1), .lc-pay thead th:nth-child(4) { width: 21%; }
.lc-dt-note { font-size: 12px; color: #444; margin: 2px 0 6px !important; }
.lc-date { text-align: center; margin: 28px 0 18px; font-weight: 600; }
.lc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lc-party-title { font-weight: 800; margin: 0 0 6px; }
.lc-party-row { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; min-height: 26px; border-bottom: 1px solid #ccc; }
.lc-party-row .k { width: 64px; flex: none; color: #555; font-size: 12.5px; }
.lc-party-row .v { flex: 1; }
.lc-seal { color: #777; font-size: 12px; }
.lc-stamp { width: 52px; height: 52px; object-fit: contain; margin: -10px 0; }
.lc-mark { position: absolute; top: 16px; right: 18px; margin: 0; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fde68a; color: #7c5300; }
.lc-doc.is-void .lc-mark { background: #e5e7eb; color: #374151; }
.lc-doc.is-void { opacity: .8; }
@media (max-width: 700px) { .lc-doc { padding: 28px 18px; } .lc-parties { grid-template-columns: 1fr; } }

/* 인쇄·PDF — printDoc()이 계약서만 복사해 body 아래 .lc-print-root로 두고, 나머지는 인쇄에서 뺀다 */
.lc-print-root { display: none; }
@media print {
  html.lc-printing, html.lc-printing body { background: #fff !important; overflow: visible !important; height: auto !important; min-height: 0 !important; position: static !important; top: auto !important; }
  html.lc-printing body::before, html.lc-printing body::after { display: none !important; }
  html.lc-printing body > :not(.lc-print-root) { display: none !important; }
  html.lc-printing .lc-print-root { display: block !important; }
  .lc-print-root .lc-doc { box-shadow: none; padding: 0; margin: 0; max-width: none; border-radius: 0; font-size: 10.5pt; line-height: 1.6; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .lc-print-root .lc-dt { font-size: 9.5pt; }
  .lc-print-root .lc-dt tr, .lc-print-root .lc-signblock { break-inside: avoid; }
  .lc-print-root .lc-clause h3 { break-after: avoid; }
  .lc-print-root .lc-mark { border: 1px solid #999; }
  @page { size: A4; margin: 15mm 14mm; }
}

.lc-dt td.num.is-c { text-align: center; }
.lc-daysum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: var(--s-3); padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--accent-ring, var(--border)); font-size: 13px; }
.lc-daysum:empty { display: none; }
.lc-daysum-big { font-size: 18px; font-weight: 800; color: var(--accent); }
/* 본사 표준 근로계약서 새 판 */
.lc-std { background: var(--info-bg); border-color: var(--info-border); }
.lc-std-note { margin: 0 0 6px; font-weight: 600; }
.lc-std-btns { justify-content: flex-start; margin-top: var(--s-2); }
.lc-std-modal { display: grid; gap: var(--s-3); }
.lc-std-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--s-3); display: grid; gap: var(--s-2); }
.lc-std-item.is-both { border-color: var(--warning-border); }
.lc-std-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lc-std-cols { display: grid; gap: var(--s-2); }
.lc-std-cols.n2 { grid-template-columns: 1fr 1fr; } .lc-std-cols.n3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 800px) { .lc-std-cols.n2, .lc-std-cols.n3 { grid-template-columns: 1fr; } }
.lc-std-body { font-size: 12.5px; line-height: 1.6; padding: 8px 10px; border-radius: 8px; background: var(--glass); border: 1px solid var(--border); }
.lc-std-body p { margin: 0 0 2px; white-space: pre-wrap; }
.lc-std-choice { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.lc-std-opt { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }
/* 시술 항목 */
.pi-tools { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between; align-items: center; margin-bottom: var(--s-3); }
.pi-tools .input { width: 220px; max-width: 100%; }
.pi-last { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.pi-last .icon { width: 12px; height: 12px; flex: none; }
.pi-none { padding: var(--s-3); }
.pi-hist { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border); display: grid; gap: var(--s-3); }
.pi-hist > li { position: relative; }
.pi-hist > li::before { content: ''; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.pi-hist > li.is-baseline::before { background: var(--text-3); }
.pi-hist > li.is-delete::before { background: var(--danger-fg); }
.pi-hist-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 13px; }
.pi-hist ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }
/* 계약서 종류(직원용·원장용)·작성 안내 */
.lc-doc-sub { text-align: center; margin: -16px 0 20px; font-size: 12.5px; color: #555; letter-spacing: .05em; }
.lc-guide-card { margin-top: var(--s-3); }
.lc-guide-card summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.lc-guide-card summary::-webkit-details-marker { display: none; }
.lc-guide-card summary .icon { width: 16px; height: 16px; }
.lc-guide { margin-top: var(--s-2); max-height: 420px; overflow: auto; }
.lc-guide-text { margin: 0; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; font: inherit; font-size: 13px; line-height: 1.7; color: var(--text-2); }
.lc-tplgroup { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.lc-tplgroup + .lc-tplgroup { padding-top: var(--s-3); border-top: 1px solid var(--border); }
.lc-tplgroup-head { display: flex; align-items: center; gap: 8px; }
.lc-tplgroup-head .btn { margin-left: auto; }
.lc-chip0 { margin-right: 4px; font-size: 11px; }
/* 원장(네트제) 계약서: 상자 조항(근무확인서·개인정보 활용 동의서), 별지(퇴직금 선지급 합의서) */
.lc-boxclause { border: 1px solid #777; padding: 10px 14px; border-radius: 4px; }
.lc-boxsign { text-align: right; margin: 8px 0 0 !important; }
.lc-boxsign-name { display: inline-block; min-width: 90px; border-bottom: 1px solid #999; text-align: center; padding: 0 6px; }
.lc-annex { margin-top: 36px; padding-top: 24px; border-top: 2px dashed #bbb; }
.lc-annex-title { text-align: center; font-size: 18px !important; margin-bottom: 12px !important; }
.lc-annex-sign { text-align: right; }
.lc-annex-warn { margin: 6px 0; padding: 6px 10px; border-radius: 6px; font-size: 12.5px; background: #fff4d6; color: #7c5300; border: 1px solid #f0d58a; }
.lc-netpay td { text-align: center; font-weight: 700; }
@media print {
  .lc-print-root .lc-screen-only { display: none !important; }
  .lc-print-root .lc-annex { break-before: page; border-top: 0; margin-top: 0; padding-top: 0; }
  .lc-print-root .lc-boxclause { break-inside: avoid; }
}
.lc-week tbody th, .lc-week td:nth-child(2), .lc-week td:nth-child(4) { white-space: nowrap; }
/* 전자 서명 */
.lc-sigimg { height: 44px; max-width: 140px; object-fit: contain; margin: -12px 0; vertical-align: middle; }
.lc-cert { margin-top: 36px; padding-top: 24px; border-top: 2px dashed #bbb; }
.lc-cert-lead { font-size: 12.5px; color: #444; }
.lc-hash { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; word-break: break-all; }
.lc-cert-ev { font-size: 11.5px; }
.lc-signcard .btn { margin-top: var(--s-2); }
.sg-panel { max-width: 820px; margin: var(--s-4) auto 0; width: 100%; }
.sg-agree { align-items: flex-start; line-height: 1.6; }
.sg-pad { position: relative; margin-top: var(--s-3); }
.sg-canvas { display: block; width: 100%; max-width: 560px; aspect-ratio: 560 / 200; background: #fff; border: 1.5px dashed var(--border-strong); border-radius: 10px; touch-action: none; cursor: crosshair; }
.sg-hint { position: absolute; left: 0; top: 0; width: 100%; max-width: 560px; aspect-ratio: 560 / 200; display: grid; place-items: center; color: #999; pointer-events: none; font-size: 14px; }
.sg-clear { margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.sg-clear .icon { width: 14px; height: 14px; }
@media print { .lc-print-root .lc-cert { break-before: page; border-top: 0; margin-top: 0; padding-top: 0; } }

/* 인사카드 탭(직원 상세) */
.st-tabs { align-self: flex-start; margin-bottom: var(--s-4); }
.hc-row .dm-main { min-width: 0; }
.hc-sum { margin: 0 0 var(--s-3); font-weight: 600; color: var(--text-1); }
.hc-sum span { font-weight: 400; color: var(--text-3); }
.hc-check { margin-top: var(--s-5); }
.hr-set-h { margin: var(--s-5) 0 var(--s-1); font-size: 14px; }
.sx-box { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--well); }
.sx-value { font-size: 20px; font-weight: 700; letter-spacing: .04em; user-select: all; overflow-wrap: anywhere; }
.sx-log { margin-top: var(--s-3); } .sx-log summary { cursor: pointer; font-size: 13px; color: var(--text-2); } .sx-log ul { margin: var(--s-2) 0 0; padding-left: 1.2em; display: grid; gap: 2px; }
.dx-preview { display: block; max-width: 100%; max-height: 60vh; margin: 0 auto; border-radius: var(--radius-sm); background: var(--well); }

/* 증명서·인사카드 출력(종이 모양은 .lc-doc 재사용) */
.hc-cert-wrap { max-height: 70vh; overflow: auto; padding: var(--s-2); }
.hc-cert { max-width: 760px; margin: 0 auto; }
.hc-cert .lc-doc-title { margin: 10px 0 28px; font-size: 26px; }
.hc-cert-tbl col.k { width: 24%; }
.hc-card-base col.k { width: 18%; }
.hc-cert-tbl td, .hc-cert-tbl th { padding: 9px 10px; }
.hc-cert-text { text-align: center; margin: 30px 0 14px; font-size: 14.5px; }
.hc-cert-date { text-align: center; margin: 20px 0 28px; font-size: 14.5px; }
.hc-cert-sign { display: grid; justify-items: center; gap: 2px; font-size: 13px; color: #333; }
.hc-cert-hos { font-size: 19px; color: #111; }
.hc-cert-rep { position: relative; margin-top: 8px; font-size: 15px; color: #111; padding-right: 54px; }
.hc-cert-stamp { position: absolute; right: -4px; top: 50%; width: 62px; height: 62px; object-fit: contain; transform: translateY(-50%); }
.hc-cert-foot { margin: 28px 0 0; padding-top: 10px; border-top: 1px solid #ccc; font-size: 11px; color: #666; text-align: center; line-height: 1.7; word-break: break-all; }
.hc-cert-sub { margin: 18px 0 4px; font-weight: 700; font-size: 13px; color: #111; }
.hc-cert-hist .hc-cert-sub { margin-top: 24px; }
.hc-card-top { display: flex; gap: 14px; align-items: flex-start; }
.hc-card-photo { width: 96px; height: 120px; object-fit: cover; border: 1px solid #9a9a9a; flex: none; background: #f1f1ee; }
.hc-card-base { flex: 1; }
@media print { .lc-print-root .hc-cert { max-width: none; } .lc-print-root .hc-cert-foot { break-inside: avoid; } .lc-print-root .hc-cert-sign { break-inside: avoid; } }

/* 세무·노무 전달 창 */
.hd-wrap { display: grid; gap: var(--s-4); min-height: 320px; }
.hd-staff { max-height: 280px; overflow: auto; }
.hd-inc { margin-top: 0; }
.hd-chips { margin-top: calc(var(--s-1) * -1); }
.hd-chip { cursor: pointer; border: 0; }
.hd-chip:hover { filter: brightness(1.15); }
.hd-sum { font-weight: 600; color: var(--text-1); }
.hd-send { justify-content: flex-end; }
/* 예약 창 PC 두 단: 오른쪽 단은 시술 목록을 더 길게 */
@media (min-width: 1024px) { .rv-form .rv-pick { height: min(300px, 50vh); } .rv-form .rv-slots { max-height: 300px; } }

/* 채용 확인 */
.rq-group-sel { min-width: 240px; }
.rq-positions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.rq-pos { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--glass); color: var(--text-1); font: inherit; font-size: 13px; cursor: pointer; }
.rq-pos[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-ring); font-weight: 600; }
.rq-pending { position: static; }
.rq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s-3); }
.rq-card { display: grid; gap: var(--s-2); text-align: left; padding: var(--s-4); border-radius: 14px; border: 1px solid var(--border); background: var(--glass); color: var(--text-1); font: inherit; cursor: pointer; min-width: 0; }
.rq-card:hover { border-color: var(--accent-ring); }
.rq-card.is-wait { border-color: var(--warning-border); }
.rq-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-2); }
.rq-name { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.rq-name strong { font-size: 16px; }
.rq-big { font-size: 20px !important; }
.rq-new { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); align-self: center; }
.rq-meta { margin: 0; font-size: 13px; color: var(--text-2); }
.rq-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rq-tag { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--text-2); }
.rq-tag .icon { width: 13px; height: 13px; }
.rq-stars { color: var(--warning); letter-spacing: 1px; font-size: 13px; }
.rq-stars-off { color: var(--text-3); }
.rq-comment { margin: 0; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.rq-head > div { display: grid; gap: 6px; }
.rq-sec { display: grid; gap: var(--s-2); }
.rq-sec h3 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.rq-sec h3 .icon { width: 16px; height: 16px; color: var(--accent); }
.rq-reco { padding: var(--s-3) var(--s-4); border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-ring); }
.rq-reco p { margin: 0; line-height: 1.6; white-space: pre-line; }
.rq-opinion { font-weight: 600; }
.rq-dl { display: grid; gap: 6px; margin: 0; }
.rq-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-2); }
.rq-row dt { font-size: 13px; color: var(--text-2); }
.rq-row dd { margin: 0; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; } /* 면접 기록·근거의 줄바꿈 글자를 그대로 */
.rq-nowrap { display: inline-block; max-width: 100%; overflow-wrap: anywhere; } /* 기간은 한 덩어리로 다음 줄에 — 좁은 폰에서 칸보다 길면 그 안에서만 감긴다(잘리지 않게) */
.rq-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.rq-est { white-space: nowrap; }
.rq-decision { padding-top: var(--s-3); border-top: 1px solid var(--border); }
.rq-decide { width: 100%; }
.rq-decide .seg-btn { flex: 1; }
.rq-dec-confirm[aria-checked="true"] { background: var(--success-bg); color: var(--success-fg); }
.rq-dec-hold[aria-checked="true"] { background: var(--warning-bg); color: var(--warning-fg); }
.rq-dec-decline[aria-checked="true"] { background: var(--danger-bg); color: var(--danger-fg); }
.rq-offer { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.rq-offer .input[type="number"] { width: 120px; }
.rq-offer select.input { width: auto; }
.rq-hire { cursor: default; }
.rq-hire-foot { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-1); }
.rq-hire-foot a { font-size: 13px; }

/* 전자결재 */
.ap-boxes { flex-wrap: wrap; }
.ap-todo { position: static; margin-left: 4px; }
.ap-search { margin: var(--s-3) 0; max-width: 360px; }
.ap-list { display: grid; gap: var(--s-2); }
.ap-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border-radius: 12px; border: 1px solid var(--border); background: var(--glass); color: var(--text-1); text-decoration: none; }
.ap-row:hover { border-color: var(--accent-ring); }
.ap-row.is-turn { border-color: var(--warning-border); }
.ap-row-main { min-width: 0; display: grid; gap: 2px; }
.ap-row-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ap-row-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); flex: none; }
.ap-row-line { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.ap-step { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); }
.ap-step-approved { background: var(--success-bg); border-color: var(--success-border); color: var(--success-fg); }
.ap-step-pending { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-fg); font-weight: 600; }
.ap-step-rejected { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger-fg); }
.ap-step-skipped { opacity: .5; }
.ap-row-side { display: grid; justify-items: end; gap: 4px; }
@media (max-width: 760px) { .ap-row { grid-template-columns: minmax(0, 1fr); } .ap-row-side { justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; } }
.ap-forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--s-2); }
.ap-form { display: grid; gap: 4px; justify-items: start; text-align: left; padding: var(--s-4); border-radius: 12px; border: 1px solid var(--border); background: var(--glass); color: var(--text-1); font: inherit; cursor: pointer; }
.ap-form:hover { border-color: var(--accent-ring); }
.ap-form .icon { width: 22px; height: 22px; color: var(--accent); }
.ap-h3 { margin: var(--s-2) 0 0; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.ap-h3 .icon { width: 16px; height: 16px; color: var(--accent); }
.ap-fields { display: grid; gap: var(--s-3); }
.ap-days { margin-left: 4px; }
.ap-items { width: 100%; border-collapse: collapse; }
.ap-items th, .ap-items td { padding: 4px; text-align: left; font-size: 13px; }
.ap-items td .input { min-width: 0; }
.ap-items th:nth-child(2), .ap-items td:nth-child(2) { width: 130px; }
.ap-items th:last-child, .ap-items td:last-child { width: 36px; }
.ap-items-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-2); }
.ap-line-edit { display: grid; gap: var(--s-2); }
.ap-line-row { display: grid; grid-template-columns: 36px 96px minmax(0, 1fr) auto; gap: var(--s-2); align-items: center; }
.ap-line-row:has(> :nth-child(5)) { grid-template-columns: 36px 96px 140px minmax(0, 1fr) auto; }
.ap-line-no { font-size: 12px; color: var(--text-2); text-align: center; }
@media (max-width: 600px) { .ap-line-row, .ap-line-row:has(> :nth-child(5)) { grid-template-columns: 36px minmax(0, 1fr); } .ap-line-row > .btn-row { grid-column: 2; } }
.ap-files { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.ap-file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--glass); color: var(--text-1); font: inherit; font-size: 13px; }
.ap-file .icon { width: 14px; height: 14px; }
.ap-file-open { cursor: pointer; }
.ap-doc-wrap { align-items: start; }
@media (min-width: 1024px) { .ap-doc-wrap { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .ap-doc-wrap > .mc-col + .mc-col { border-left: 0; padding-left: 0; } }
.ap-side { display: grid; gap: var(--s-3); align-content: start; }
.ap-side-head { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.ap-events { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.ap-events li { padding-bottom: var(--s-2); border-bottom: 1px solid var(--border); }
.ap-events p { margin: 4px 0 0; font-size: 13px; white-space: pre-wrap; }
.ap-comment { display: grid; gap: var(--s-2); justify-items: start; }
.ap-comment .fld { width: 100%; }
.ap-turn { border-color: var(--warning-border); background: var(--warning-bg); }
/* 종이 문서 */
.ap-paper { padding: 36px 40px; }
.ap-paper-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ap-paper-title { margin: 0 0 10px; font-size: 22px; letter-spacing: 0.2em; color: #111; }
.ap-meta, .ap-body, .ap-signs { border-collapse: collapse; color: #111; }
.ap-meta th, .ap-meta td { border: 1px solid #999; padding: 4px 10px; font-size: 13px; text-align: left; }
.ap-meta th { background: #f2f2f0; font-weight: 600; white-space: nowrap; }
.ap-signs td { border: 1px solid #777; width: 84px; padding: 0; text-align: center; vertical-align: top; }
.ap-sign-role { background: #f2f2f0; border-bottom: 1px solid #999; font-size: 12px; padding: 3px 0; }
.ap-sign-name { font-size: 13px; padding: 6px 2px 0; }
.ap-sign-mark { height: 30px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.ap-sign-approved .ap-sign-mark { color: #b91c1c; }
.ap-sign-approved .ap-sign-mark::before { content: ''; }
.ap-sign-rejected .ap-sign-mark { color: #1d4ed8; }
.ap-sign-pending .ap-sign-mark { color: #92400e; font-weight: 500; font-size: 11px; }
.ap-sign-at { font-size: 10.5px; color: #555; padding-bottom: 4px; min-height: 14px; }
.ap-refs { margin: 0 0 10px; font-size: 13px; color: #333; }
.ap-body { width: 100%; }
.ap-body > tbody > tr > th { width: 120px; background: #f2f2f0; border: 1px solid #999; padding: 8px 10px; text-align: left; font-size: 13px; vertical-align: top; }
.ap-body > tbody > tr > td { border: 1px solid #999; padding: 8px 10px; font-size: 14px; }
.ap-pre { white-space: pre-wrap; line-height: 1.7; }
.ap-empty { color: #999; }
.ap-items-view { color: #111; }
.ap-items-view th, .ap-items-view td { border: 1px solid #bbb; padding: 4px 8px; }
.ap-items-view tfoot th { background: #f7f7f5; }
.ap-line-comment { margin: 8px 0 0; font-size: 13px; color: #333; }
.ap-form-list { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.ap-form-item { display: grid; gap: 4px; }
.ap-form-item .ap-warn { margin: 0; }
.ap-form-row { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: 12px; border: 1px solid var(--border); background: var(--glass); }
.ap-form-row.is-off { opacity: .6; }
.ap-form-row strong { margin-right: 6px; }
.ap-form-line { margin: 4px 0 0; font-size: 13px; }
.ap-form-line em { font-style: normal; font-weight: 600; color: var(--accent); }
@media (max-width: 600px) { .ap-paper { padding: 20px 16px; } .ap-signs td { width: 64px; } }
.ap-paper { width: 100%; box-sizing: border-box; margin: 0; }
.ap-doc-wrap > .mc-col.ap-side { padding: var(--s-5); }
@media (max-width: 600px) {
  .ap-line-row, .ap-line-row:has(> :nth-child(5)) { display: flex; flex-wrap: wrap; align-items: center; }
  .ap-line-row > select { flex: 1 1 130px; min-width: 0; }
  .ap-line-row > .btn-row { margin-left: auto; }
}

/* 전자결재: 결재 칸이 빠지는 경고 — 알리기만 하면 경고 톤, 올릴 수 없으면(.is-block) 오류 톤 */
.ap-warn { display: flex; gap: var(--s-2); align-items: flex-start; margin: var(--s-2) 0; padding: var(--s-2) var(--s-3); border: 1px solid var(--warning-border); border-radius: var(--radius-sm); background: var(--warning-bg); color: var(--warning-fg); font-size: 13px; }
.ap-warn.is-block { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger-fg); }
.ap-warn > svg, .ap-warn > .ico { flex: none; margin-top: 2px; }
.ap-warn > div { min-width: 0; overflow-wrap: anywhere; }
.ap-warn p, .ap-warn ul { margin: 0; }
.ap-warn ul { padding-left: 18px; }
.ap-warn-title { font-weight: 700; }
.ap-warn li, .ap-warn-todo { color: var(--text-1); } /* 제목·아이콘·테두리·배경만 톤색, 목록·할 일 글자는 본문색(대비) */
.ap-warn-todo { margin-top: 2px; }
.ap-warn a { color: inherit; text-decoration: underline; font-weight: 700; }
