:root {
  --navy: #122232;
  --navy-2: #1c3145;
  --teal: #0d7182;
  --teal-soft: #dff0f1;
  --coral: #e86f45;
  --coral-soft: #fbe8df;
  --gold: #b7872e;
  --gold-soft: #f7eed9;
  --green: #287b5b;
  --green-soft: #e1f0e9;
  --red: #bc463f;
  --red-soft: #f8e5e3;
  --blue: #356b9a;
  --blue-soft: #e4eef7;
  --paper: #f2f4f3;
  --surface: #ffffff;
  --surface-2: #f7f8f7;
  --ink: #172635;
  --muted: #64717d;
  --line: #dbe0df;
  --shadow: 0 18px 45px rgba(22, 40, 54, .08);
  --sidebar-width: 246px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); color: var(--ink); font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(13, 113, 130, .26); outline-offset: 2px; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); display: flex; flex-direction: column; background: var(--navy); color: #fff; }
.brand-block { min-height: 96px; padding: 22px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark, .login-logo { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px 14px 4px 14px; background: var(--coral); color: #fff; font-family: Georgia, serif; font-size: 25px; font-weight: 700; box-shadow: 0 7px 18px rgba(232,111,69,.24); }
.brand span:last-child { display: grid; min-width: 0; }
.brand strong { max-width: 145px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; letter-spacing: -.03em; }
.brand small { margin-top: 3px; color: rgba(255,255,255,.47); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.sidebar-close { display: none; border: 0; background: transparent; color: #fff; font-size: 25px; }
.main-nav { flex: 1; padding: 22px 12px; overflow-y: auto; }
.nav-item { min-height: 48px; margin-bottom: 4px; padding: 0 13px; display: flex; align-items: center; gap: 12px; border-radius: 9px; color: rgba(255,255,255,.66); font-size: 13px; font-weight: 700; text-decoration: none; transition: background .16s ease, color .16s ease, transform .16s ease; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; transform: translateX(2px); }
.nav-item.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-icon { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; font-family: Georgia, serif; font-size: 11px; }
.nav-item.active .nav-icon { border-color: var(--coral); background: var(--coral); }
.sidebar-user { margin: 12px; padding: 14px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.04); }
.sidebar-user > span:nth-child(2) { min-width: 0; display: grid; }
.sidebar-user strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.sidebar-user small { margin-top: 2px; color: rgba(255,255,255,.45); font-size: 10px; }
.sidebar-user .icon-button { color: rgba(255,255,255,.65); border-color: rgba(255,255,255,.12); }
.user-avatar, .mobile-avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-weight: 800; font-size: 12px; }
.app-shell { min-height: 100vh; margin-left: var(--sidebar-width); }
.mobile-header { display: none; }
.sidebar-overlay { display: none; }
.content-shell { width: min(1500px, 100%); margin: 0 auto; padding: 42px clamp(24px, 4vw, 62px) 72px; }

.page-header { min-height: 124px; margin-bottom: 28px; display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; }
.page-header h1 { margin: 4px 0 9px; color: var(--navy); font-size: clamp(30px, 3vw, 44px); line-height: 1.12; letter-spacing: -.055em; }
.page-header p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.eyebrow, .section-kicker { margin: 0; color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.section-kicker { margin-bottom: 6px; font-size: 9px; }
.button { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; font-weight: 760; font-size: 12px; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 18px rgba(13,113,130,.16); }
.button-dark { background: var(--navy); color: #fff; }
.button-accent { background: var(--coral); color: #fff; box-shadow: 0 8px 18px rgba(232,111,69,.19); }
.button-secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.button-large { min-height: 52px; padding: 0 24px; }
.button-large span { font-size: 14px; }
.button-large small { color: inherit; opacity: .65; font-size: 10px; }
.button.compact { min-height: 34px; padding: 0 12px; }
.icon-button, .menu-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: transparent; text-decoration: none; }
.text-link { color: var(--teal); font-size: 11px; font-weight: 750; text-decoration: none; }

.flash-stack { position: fixed; z-index: 80; top: 20px; right: 24px; width: min(420px, calc(100vw - 32px)); }
.alert { padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); color: var(--ink); font-size: 12px; line-height: 1.5; }
.alert + .alert { margin-top: 8px; }
.alert-success { border-color: #acd4c1; background: var(--green-soft); color: #1b6448; }
.alert-error { border-color: #e2b2af; background: var(--red-soft); color: #92342f; }
.alert-warning { border-color: #dec792; background: var(--gold-soft); color: #765618; }
.alert strong { display: block; margin-bottom: 3px; }

.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 7px 25px rgba(22,40,54,.035); }
.panel-heading { min-height: 76px; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.035em; }
.panel-wide { min-width: 0; }

.dashboard-header { align-items: center; }
.dashboard-header h1 { font-size: clamp(33px, 3.2vw, 50px); }
.attendance-actions { flex: 0 0 auto; }
.attendance-complete { min-width: 190px; padding: 13px 16px; display: grid; gap: 3px; border: 1px solid #aed7c4; border-radius: 9px; background: var(--green-soft); color: var(--green); }
.attendance-complete strong { font-size: 12px; }.attendance-complete span { font-size: 11px; }
.metric-grid { margin-bottom: 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.metric-card { min-height: 128px; padding: 20px; display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.metric-card > span { grid-column: 1/-1; align-self: start; color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-card strong { color: var(--navy); font-family: Georgia, serif; font-size: 42px; font-weight: 400; line-height: .9; }
.metric-card small { color: var(--muted); font-size: 11px; }
.metric-card.warning { border-top: 3px solid var(--gold); }.metric-card.danger { border-top: 3px solid var(--coral); }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 16px; }
.team-list { display: grid; }
.team-row { min-height: 70px; padding: 12px 20px; display: grid; grid-template-columns: 38px minmax(130px,1fr) auto minmax(110px,auto); align-items: center; gap: 11px; border-bottom: 1px solid #edf0ef; }
.team-row:last-child { border-bottom: 0; }
.team-name { display: grid; }.team-name strong { font-size: 12px; }.team-name small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.time-range { color: var(--muted); font-size: 11px; text-align: right; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 25px; padding: 0 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 800; }
.status-badge.muted, .status-pending { background: #ecefed; color: #68747a; }
.status-approved, .status-normal, .status-done, .status-resolved { background: var(--green-soft); color: var(--green); }
.status-rejected, .status-absent { background: var(--red-soft); color: var(--red); }
.status-late, .status-early_leave, .status-high, .status-urgent { background: var(--coral-soft); color: #a14b2c; }
.status-issued { background: var(--gold-soft); color: #80601d; }.status-partial { background: var(--blue-soft); color: var(--blue); }.status-paid { background: var(--green-soft); color: var(--green); }.status-cancelled { background: #ecefed; color: #68747a; }
.compact-list article { padding: 18px 20px; border-bottom: 1px solid #edf0ef; }.compact-list article:last-child { border-bottom: 0; }
.compact-list article > div { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 9px; }
.compact-list article > div span { color: var(--coral); font-weight: 800; }.compact-list h3 { margin: 8px 0 5px; font-size: 13px; }.compact-list p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.empty-copy { margin: 0; padding: 24px; color: var(--muted); text-align: center; font-size: 11px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.data-table th { padding: 12px 15px; background: var(--surface-2); color: #778087; font-size: 10px; font-weight: 750; text-align: left; white-space: nowrap; }
.data-table td { padding: 15px; border-top: 1px solid #edf0ef; color: #3a4852; font-size: 11px; vertical-align: middle; }
.data-table td > strong { color: var(--ink); font-size: 12px; }.data-table tbody tr:hover { background: #fbfcfb; }
.person-cell { display: flex; align-items: center; gap: 10px; min-width: 145px; }.person-cell > span:last-child { display: grid; }.person-cell strong { font-size: 12px; }.person-cell small, .table-subtext { margin-top: 3px; display: block; color: var(--muted); font-size: 9px; }
.status-dot { width: 7px; height: 7px; margin-right: 6px; display: inline-block; border-radius: 50%; background: #b5bcbd; }.status-dot.online { background: #37a273; box-shadow: 0 0 0 4px rgba(55,162,115,.11); }
.table-action { padding: 5px 8px; border: 0; border-radius: 5px; background: #eef3f3; color: var(--teal); font-size: 10px; font-weight: 800; white-space: nowrap; }
.table-action.approve { background: var(--green-soft); color: var(--green); }.table-action.reject { background: var(--red-soft); color: var(--red); }
.decision-actions { display: flex; gap: 5px; }
.truncate-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.empty-cell { padding: 45px !important; text-align: center; color: var(--muted) !important; }

.month-toolbar { min-height: 76px; padding: 15px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.month-toolbar div { min-width: 120px; display: grid; }.month-toolbar strong { font-size: 17px; }.month-toolbar small { margin-top: 2px; color: var(--muted); font-size: 9px; }.month-toolbar .button { margin-left: auto; }
.calendar-legend { padding: 11px 20px; display: flex; flex-wrap: wrap; gap: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.calendar-legend span { display: flex; align-items: center; gap: 5px; }.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: #ccd2d1; }.legend-dot.normal { background: var(--green); }.legend-dot.late { background: var(--coral); }.legend-dot.leave { background: var(--blue); }.legend-dot.holiday { background: #9da5a6; }.legend-dot.absent { background: var(--red); }
.attendance-scroll { overflow-x: auto; }
.attendance-calendar { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.attendance-calendar th, .attendance-calendar td { width: 82px; min-width: 82px; height: 62px; padding: 7px; border-right: 1px solid #e6e9e8; border-bottom: 1px solid #e6e9e8; text-align: center; }
.attendance-calendar thead th { height: 50px; background: var(--surface-2); color: var(--ink); font-weight: 700; }.attendance-calendar thead th span { font-size: 11px; }.attendance-calendar thead th small { margin-left: 3px; color: var(--muted); font-size: 8px; }.attendance-calendar thead th.weekend { background: #f5f2f0; color: var(--coral); }
.attendance-calendar .employee-column { position: sticky; left: 0; z-index: 2; width: 150px; min-width: 150px; padding-left: 16px; background: #fff; text-align: left; box-shadow: 5px 0 10px rgba(22,40,54,.035); }.attendance-calendar thead .employee-column { z-index: 3; background: var(--surface-2); }.attendance-calendar .employee-column strong { display: block; font-size: 11px; }.attendance-calendar .employee-column small { color: var(--muted); font-size: 8px; }
.attendance-calendar td strong { display: block; font-size: 9px; }.attendance-calendar td small { margin-top: 3px; display: block; color: inherit; opacity: .75; font-size: 7px; white-space: nowrap; }.cell-normal { background: #f4fbf7; color: var(--green); }.cell-warning { background: #fff5ef; color: #ae512e; }.cell-leave { background: #f0f6fb; color: var(--blue); }.cell-holiday { background: #f3f3f1; color: #858e91; }.cell-absent { background: #fff1ef; color: var(--red); }
.attendance-summary-panel { margin-bottom: 15px; }.attendance-summary-panel .panel-heading > small, .customer-panel .panel-heading > small { color: var(--muted); font-size: 9px; }.compact-table { min-width: 940px; }.compact-table th, .compact-table td { padding: 10px 13px; }.summary-alert { color: var(--red) !important; font-weight: 800; }.cell-editable { cursor: pointer; transition: box-shadow .15s ease, filter .15s ease; }.cell-editable:hover, .cell-editable:focus-visible { position: relative; z-index: 1; box-shadow: inset 0 0 0 2px var(--teal); filter: saturate(1.15); outline: none; }

.balance-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.balance-card { padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.balance-values { margin: 18px 0 13px; display: grid; grid-template-columns: repeat(3,1fr); }.balance-values span { display: grid; border-right: 1px solid var(--line); text-align: center; }.balance-values span:last-child { border: 0; }.balance-values small { color: var(--muted); font-size: 9px; }.balance-values strong { margin-top: 3px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }.balance-values .remaining strong { color: var(--teal); }
.progress { height: 5px; overflow: hidden; border-radius: 999px; background: #edf0ef; }.progress i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.leave-bucket-grid { margin-top: 17px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.leave-bucket-grid > div { padding: 13px; display: grid; gap: 4px; border-radius: 8px; background: var(--surface-2); }.leave-bucket-grid span { color: var(--muted); font-size: 9px; font-weight: 800; }.leave-bucket-grid strong { color: var(--teal); font-family: Georgia,serif; font-size: 22px; font-weight: 400; }.leave-bucket-grid small { color: var(--muted); font-size: 8px; }.pending-caption { margin: 10px 0 0; color: var(--gold); font-size: 9px; font-weight: 800; }.field-help { margin: -5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.inline-filter select, .month-selector input { min-height: 37px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }

.kanban-grid { display: grid; grid-template-columns: repeat(4, minmax(225px,1fr)); gap: 12px; overflow-x: auto; align-items: start; }
.kanban-column { min-width: 225px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #e9edec; }
.kanban-column > header { min-height: 52px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; color: #4e5d65; font-size: 11px; font-weight: 800; }.kanban-column > header strong { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.7); font-size: 10px; }
.kanban-list { padding: 0 8px 8px; display: grid; gap: 8px; }
.work-card { position: relative; padding: 15px; overflow: hidden; border: 1px solid #dbe0df; border-radius: 9px; background: #fff; box-shadow: 0 5px 12px rgba(22,40,54,.035); }
.work-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--teal); }.severity-urgent::before, .priority-high::before { background: var(--red); }.severity-high::before { background: var(--coral); }.severity-low::before, .priority-low::before { background: #97a2a4; }
.card-meta, .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; color: var(--muted); font-size: 8px; }.work-card h3 { margin: 12px 0 7px; font-size: 13px; line-height: 1.45; }.work-card p { margin: 0 0 15px; color: var(--muted); font-size: 10px; line-height: 1.6; }.card-footer { padding-top: 11px; border-top: 1px solid #edf0ef; }.card-edit { width: 100%; min-height: 32px; margin-top: 10px; border: 0; border-radius: 6px; background: #edf5f5; color: var(--teal); font-size: 10px; font-weight: 800; }.card-status-form { margin-top: 11px; }.card-status-form select { width: 100%; min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfa; font-size: 10px; }

.notice-board { display: grid; gap: 11px; }.notice-card { padding: 24px 26px; display: grid; grid-template-columns: 52px 1fr; gap: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.notice-card.pinned { border-left: 4px solid var(--coral); }.notice-index { color: #b2b9ba; font-family: Georgia, serif; font-size: 28px; }.notice-content .card-meta { justify-content: flex-start; }.notice-content .card-meta span { color: var(--coral); font-weight: 800; }.notice-content h2 { margin: 10px 0 9px; font-size: 18px; }.notice-content p { margin: 0 0 14px; color: #4f5e67; font-size: 12px; line-height: 1.8; }.notice-content > small { color: var(--muted); font-size: 9px; }
.empty-panel { padding: 50px; text-align: center; color: var(--muted); }

.report-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.report-card { min-height: 190px; padding: 24px; display: grid; grid-template-columns: 48px 1fr; gap: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.report-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: var(--navy); color: #fff; font-family: Georgia, serif; font-size: 18px; }.report-card h2 { margin: 5px 0 8px; font-size: 18px; }.report-card p:not(.section-kicker) { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }.report-card .button { grid-column: 2; justify-self: start; align-self: end; }.report-note { margin-top: 15px; padding: 24px; }.report-note h2 { margin: 0 0 8px; font-size: 16px; }.report-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.finance-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }.finance-metrics .metric-card strong { overflow: hidden; font-family: inherit; font-size: clamp(20px,2.1vw,32px); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }.sales-panel { margin-bottom: 15px; }.sales-table { min-width: 1180px; }.money-cell { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }.money-cell.collected { color: var(--green); }.money-cell.outstanding { color: var(--red); font-weight: 800; }.row-actions { display: flex; align-items: center; gap: 5px; }.row-actions form { margin: 0; }.customer-panel { margin-top: 15px; }.sale-total { min-height: 62px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #cce1df; border-radius: 8px; background: #f2f9f8; }.sale-total span { color: var(--muted); font-size: 10px; font-weight: 800; }.sale-total strong { color: var(--teal); font-family: Georgia,serif; font-size: 25px; }.payment-summary { padding: 17px; display: grid; gap: 4px; border-radius: 9px; background: var(--navy); color: #fff; }.payment-summary span { color: rgba(255,255,255,.6); font-size: 9px; }.payment-summary strong { font-size: 17px; }.payment-summary small { color: rgba(255,255,255,.7); font-size: 10px; }.payment-summary b { color: #86d0d5; }
.document-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.document-profile-alert { margin-bottom: 18px; box-shadow: none; }.document-profile-alert a { margin-left: 8px; color: inherit; font-weight: 850; }
.document-list-table { min-width: 1050px; }
.document-dialog { width: min(1180px,calc(100vw - 30px)); }
.document-dialog .dialog-card { max-height: calc(100vh - 30px); }
.document-base-fields { padding-bottom: 18px; }
.document-item-editor { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8faf9; }
.document-editor-heading { min-height: 66px; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.document-editor-heading h3 { margin: 0; font-size: 16px; }
.document-item-table { width: 100%; min-width: 1040px; border-collapse: collapse; background: #fff; }
.document-item-table th { padding: 9px 7px; border: 1px solid #e0e5e3; background: #edf1ef; color: var(--muted); font-size: 9px; text-align: left; white-space: nowrap; }
.document-item-table td { padding: 5px; border: 1px solid #e4e8e6; }
.document-item-table th:nth-child(1),.document-item-table td:nth-child(1){min-width:165px}.document-item-table th:nth-child(2),.document-item-table td:nth-child(2){min-width:125px}.document-item-table th:nth-child(3),.document-item-table td:nth-child(3){width:86px}.document-item-table th:nth-child(4),.document-item-table td:nth-child(4){width:72px}.document-item-table th:nth-child(5),.document-item-table td:nth-child(5){width:130px}.document-item-table th:nth-child(6),.document-item-table td:nth-child(6){width:78px}.document-item-table th:nth-child(7),.document-item-table td:nth-child(7){min-width:120px}.document-item-table th:last-child,.document-item-table td:last-child{width:42px}
.document-item-table input { width: 100%; min-height: 34px; padding: 6px 7px; border: 1px solid transparent; border-radius: 5px; background: #f9faf9; color: var(--ink); font-size: 10px; }
.document-item-table input:focus { border-color: var(--teal); background: #fff; outline: none; box-shadow: 0 0 0 2px rgba(13,113,130,.08); }
.item-remove { width: 28px; height: 28px; border: 0; border-radius: 5px; background: var(--red-soft); color: var(--red); font-size: 17px; }
.document-live-total { padding: 15px 24px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 10px; }
.document-live-total strong { margin-left: 6px; color: var(--ink); font-size: 12px; }
.document-live-total .grand { color: var(--teal); font-weight: 800; }.document-live-total .grand strong { color: var(--teal); font-size: 16px; }
.document-notes { padding-top: 18px; padding-bottom: 18px; }.document-amount-toggle { padding: 11px 13px; border-radius: 7px; background: var(--teal-soft); color: var(--teal); }
.settings-grid { margin-bottom: 15px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }.panel-form { padding: 22px; display: grid; grid-template-columns: repeat(2,1fr); gap: 16px 12px; }.panel-form .button { justify-self: start; grid-column: 1/-1; }
.holiday-list { display: grid; }.holiday-list article { min-height: 64px; padding: 12px 20px; display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 14px; border-bottom: 1px solid #edf0ef; }.holiday-list article:last-child { border-bottom: 0; }.holiday-list time { color: var(--teal); font-family: Georgia, serif; font-size: 15px; }.holiday-list article > span { display: grid; }.holiday-list strong { font-size: 12px; }.holiday-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.app-dialog { width: min(680px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px rgba(12,29,42,.28); }.app-dialog::backdrop { background: rgba(12,29,42,.56); backdrop-filter: blur(3px); }.dialog-card { max-height: calc(100vh - 30px); overflow-y: auto; }.dialog-heading { position: sticky; top: 0; z-index: 2; min-height: 80px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: #fff; }.dialog-heading h2 { margin: 4px 0 0; font-size: 23px; letter-spacing: -.04em; }.dialog-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); font-size: 22px; }.form-grid { padding: 24px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 13px; }.field { display: grid; gap: 7px; }.field-wide { grid-column: 1/-1; }.field > span { color: #374752; font-size: 10px; font-weight: 800; }.field input, .field select, .field textarea { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); outline: none; }.field textarea { line-height: 1.6; resize: vertical; }.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,113,130,.09); }.field small { color: var(--muted); font-size: 9px; line-height: 1.5; }.check-field { min-height: 40px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }.check-field input { width: 17px; height: 17px; accent-color: var(--teal); }.dialog-actions { position: sticky; bottom: 0; padding: 15px 24px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); background: #fff; }

.auth-page { background: #edf1f0; }.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px,1.05fr) minmax(400px,.95fr); }.login-visual { position: relative; padding: 52px clamp(40px,7vw,100px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--navy); color: #fff; }.login-visual::after { content: ""; position: absolute; width: 460px; height: 460px; right: -230px; bottom: -210px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 75px rgba(255,255,255,.025), 0 0 0 150px rgba(255,255,255,.018); }.login-brand { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .13em; }.login-brand span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px 11px 3px 11px; background: var(--coral); font-family: Georgia, serif; font-size: 18px; }.login-visual h1 { margin: 15px 0 21px; font-size: clamp(45px,5.3vw,76px); line-height: 1.02; letter-spacing: -.07em; }.login-visual h1 em { color: #75c4ce; font-style: normal; }.login-visual > div:nth-child(2) > p:last-child { max-width: 500px; color: rgba(255,255,255,.56); font-size: 13px; line-height: 1.8; }.login-visual > small { color: rgba(255,255,255,.38); font-size: 9px; letter-spacing: .08em; }.login-panel { padding: 40px; display: grid; place-items: center; }.login-card { width: min(390px,100%); padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }.login-heading { margin-bottom: 28px; display: flex; align-items: center; gap: 14px; }.login-heading p { margin: 0 0 3px; color: var(--muted); font-size: 10px; }.login-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }.login-card .field { margin-bottom: 16px; }.login-card .button { width: 100%; margin-top: 6px; }.login-help { margin: 20px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; text-align: center; }
.installer-page { min-height: 100vh; padding: 40px 20px; display: grid; place-items: center; background: radial-gradient(circle at 15% 5%, #f8fbf9 0, #e9eeec 42%, #e3e9e7 100%); }
.installer-card { width: min(920px,100%); padding: clamp(25px,5vw,54px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(22,40,54,.12); }
.installer-card h1 { margin: 7px 0 10px; color: var(--navy); font-size: clamp(34px,5vw,46px); letter-spacing: -.06em; }
.installer-copy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.installer-heading { margin-bottom: 28px; display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 18px; }
.installer-brand-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px 17px 5px 17px; background: var(--coral); color: #fff; font-family: Georgia, serif; font-size: 28px; font-weight: 700; box-shadow: 0 10px 24px rgba(232,111,69,.24); }
.installer-card > .alert { margin-bottom: 16px; box-shadow: none; }
.installer-card code { padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.58); font-size: .92em; }
.installer-checks { margin: 24px 0 20px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf9; }
.installer-section-heading { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.installer-section-heading > div { display: flex; align-items: center; gap: 11px; }
.installer-section-heading > div > span, .installer-form legend > span { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-family: Georgia, serif; font-size: 11px; }
.installer-section-heading h2 { margin: 2px 0 0; color: var(--navy); font-size: 17px; letter-spacing: -.03em; }
.installer-check-total { min-height: 27px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 9px; }
.installer-check-total.passed { background: var(--green-soft); color: var(--green); }
.installer-check-total.failed { background: var(--red-soft); color: var(--red); }
.installer-check-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.installer-check { min-height: 58px; padding: 10px; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.installer-check > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 900; }
.installer-check.passed > span { background: var(--green-soft); color: var(--green); }
.installer-check.failed > span { background: var(--red-soft); color: var(--red); }
.installer-check > div { min-width: 0; display: grid; gap: 3px; }
.installer-check strong { color: var(--ink); font-size: 10px; }
.installer-check small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.installer-form { display: grid; gap: 17px; }
.installer-form fieldset { margin: 0; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; border: 1px solid var(--line); border-radius: 12px; }
.installer-form legend { padding: 0 9px; display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 11px; font-weight: 850; }
.installer-form label { display: grid; gap: 7px; color: #34444e; font-size: 10px; font-weight: 800; }
.installer-form label.wide { grid-column: 1/-1; }
.installer-form label em { color: var(--muted); font-size: 8px; font-style: normal; font-weight: 600; }
.installer-form input:not([type="checkbox"]) { min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }
.installer-form input:not([type="checkbox"]):focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,113,130,.09); outline: none; }
.installer-form small { color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.45; }
.installer-reset { padding: 14px; grid-template-columns: 18px 1fr; align-items: start; border: 1px solid #e4c39b; border-radius: 8px; background: #fff8ed; cursor: pointer; }
.installer-reset input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--red); }
.installer-reset span { display: grid; gap: 4px; }
.installer-reset strong { color: #98452e; font-size: 10px; }
.installer-reset small { color: #8a6a55; }
.installer-submit-row { padding: 17px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.installer-submit-row p { margin: 0; display: grid; gap: 3px; }
.installer-submit-row p strong { color: var(--navy); font-size: 10px; }
.installer-submit-row p span { color: var(--muted); font-size: 9px; }
.installer-submit-row .button { min-width: 170px; border: 0; }
.installer-submit-row .button:disabled { background: #9da7aa; box-shadow: none; cursor: not-allowed; transform: none; }
.installer-footnote { margin: 20px 0 0; color: #879195; font-size: 8px; line-height: 1.6; text-align: center; }
.installer-success { padding: 34px 8px 12px; text-align: center; }
.installer-success-mark { width: 66px; height: 66px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 29px; font-weight: 900; box-shadow: 0 0 0 9px rgba(40,123,91,.06); }
.installer-success .installer-copy { margin-bottom: 28px; }
.installer-summary { max-width: 680px; margin: 0 auto 26px; display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #f8faf9; }
.installer-summary div { min-width: 0; padding: 17px; display: grid; gap: 5px; border-right: 1px solid var(--line); }
.installer-summary div:last-child { border: 0; }
.installer-summary span { color: var(--muted); font-size: 8px; }
.installer-summary strong { overflow-wrap: anywhere; color: var(--navy); font-size: 10px; }
.installer-finish { min-width: 230px; }
.error-page { min-height: 100vh; padding: 40px; display: grid; place-content: center; justify-items: start; background: var(--paper); }.error-code { color: var(--coral); font-family: Georgia,serif; font-size: 74px; }.error-page h1 { margin: 4px 0 10px; font-size: 32px; }.error-page p { max-width: 500px; margin: 0 0 12px; color: var(--muted); line-height: 1.7; }.error-page small { margin-bottom: 20px; color: #8b9498; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(3,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .balance-grid { grid-template-columns: repeat(2,1fr); }
  .finance-metrics { grid-template-columns: repeat(2,1fr); }
  .document-metrics { grid-template-columns: repeat(2,1fr); }
  .kanban-grid { grid-template-columns: repeat(4, 260px); }
}

@media (max-width: 820px) {
  :root { --sidebar-width: 262px; }
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: 18px 0 45px rgba(10,28,40,.22); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: block; }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 20; background: rgba(12,29,42,.48); }
  body.sidebar-open .sidebar-overlay { display: block; }
  .app-shell { margin-left: 0; padding-top: 62px; }
  .mobile-header { position: fixed; inset: 0 0 auto; z-index: 15; height: 62px; padding: 0 17px; display: grid; grid-template-columns: 36px 1fr 34px; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
  .mobile-header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; text-align: center; }
  .menu-button { color: var(--navy); }
  .content-shell { padding: 29px 17px 55px; }
  .page-header { min-height: 0; margin-bottom: 22px; align-items: flex-end; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .metric-card { min-height: 110px; }
  .settings-grid, .report-grid { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }.login-visual { display: none; }.login-panel { min-height: 100vh; padding: 22px; }
  .installer-check-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 560px) {
  .page-header { display: grid; gap: 17px; }.page-header > .button, .page-header > form { width: 100%; }.page-header > .button { justify-self: stretch; }
  .dashboard-header { align-items: start; }.attendance-actions { width: 100%; }.attendance-actions form, .attendance-actions .button, .attendance-complete { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }.metric-card { min-height: 96px; padding: 14px; }.metric-card strong { font-size: 34px; }
  .team-row { grid-template-columns: 34px 1fr auto; }.team-row .time-range { display: none; }
  .panel-heading { align-items: flex-start; }.panel-heading .text-link { margin-top: 5px; }
  .balance-grid { grid-template-columns: 1fr; }
  .header-actions { width: 100%; justify-content: stretch; }.header-actions .button { flex: 1; }.finance-metrics { grid-template-columns: 1fr; }.finance-metrics .metric-card { min-height: 88px; }
  .document-editor-heading { padding: 13px 18px; }.document-live-total { padding: 13px 18px; justify-content: flex-start; gap: 10px 18px; }
  .notice-card { padding: 20px; grid-template-columns: 1fr; gap: 7px; }.notice-index { font-size: 20px; }
  .report-card { grid-template-columns: 42px 1fr; padding: 20px; }.report-icon { width: 42px; height: 42px; }
  .holiday-list article { grid-template-columns: 1fr auto; }.holiday-list time { grid-column: 1/-1; }
  .panel-form, .form-grid, .installer-form fieldset { grid-template-columns: 1fr; }.field-wide, .installer-form label.wide { grid-column: auto; }.panel-form .button { grid-column: auto; }
  .dialog-heading, .form-grid, .dialog-actions { padding-left: 18px; padding-right: 18px; }
  .login-card { padding: 27px 22px; }
  .installer-page { padding: 18px 10px; place-items: start center; }
  .installer-heading { grid-template-columns: 44px 1fr; gap: 12px; }.installer-brand-mark { width: 44px; height: 44px; border-radius: 13px 13px 4px 13px; font-size: 23px; }
  .installer-check-grid, .installer-summary { grid-template-columns: 1fr; }.installer-check { min-height: 52px; }.installer-summary div { border-right: 0; border-bottom: 1px solid var(--line); }
  .installer-submit-row { align-items: stretch; flex-direction: column; }.installer-submit-row .button { width: 100%; }
}
