/* Runway workspace. The welcome page deliberately keeps its own visual language. */
.app-shell {
  --ink: #202226;
  --ink-soft: #363c43;
  --muted: #606871;
  --line: #e0e3e7;
  --surface-soft: #f6f7f9;
  --brand: #c9182b;
  --brand-dark: #a41525;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: 76px 1fr;
  min-height: 100dvh;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
}
.app-shell *, .app-shell *::before, .app-shell *::after { box-sizing: border-box; letter-spacing: 0; }
.app-shell [hidden] { display: none !important; }
.app-shell :is(button, input, select, textarea, summary):focus-visible { outline: 3px solid #202226; outline-offset: 3px; }
.app-shell :is(input, select, textarea) { font: inherit; }
.app-shell .lucide, .app-shell [data-lucide] { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; stroke-width: 1.7; vertical-align: middle; }
.skip-link { position: fixed; z-index: 90; top: 8px; left: 240px; padding: 10px 16px; background: #202226; color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.workspace-sidebar { position: fixed; inset: 0 auto 0 0; width: 220px; display: flex; flex-direction: column; z-index: 20; padding: 22px 16px; border-right: 1px solid var(--line); background: #f7f8fa; overflow-y: auto; }
.brand-home { display: block; padding: 0; background: none; text-align: left; border: 0; }
.app-shell .brand-wordmark { width: 158px; height: auto; aspect-ratio: 1025 / 370; overflow: visible; }
.app-shell .brand-wordmark img { position: static; width: 100%; height: auto; max-width: 100%; }
.workspace-sidebar .brand-home { margin: 0 10px 40px; }
.nav-section-label { display: block; padding: 0 12px; margin: 0 0 10px; color: #747b83; font-size: 11px; font-weight: 650; text-transform: uppercase; }
.workspace-sidebar .nav-tabs { position: static; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; flex: 0; gap: 5px; padding: 0; background: none; box-shadow: none; overflow: visible; }
.workspace-sidebar .nav-tabs .nav-section-label { margin-top: 30px; }
.app-shell .nav-tab { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 6px; background: transparent; color: #525a63; text-align: left; font-size: 14px; font-weight: 550; line-height: 1.3; box-shadow: none; }
.app-shell .nav-tab:hover { background: #edf0f3; color: #202226; }
.app-shell .nav-tab.active { background: #fbe9ec; color: #af1728; font-weight: 700; box-shadow: none; }
.app-shell .nav-tab .nav-count { margin-left: auto; border-radius: 4px; min-width: 22px; padding: 2px 5px; font-size: 11px; text-align: center; background: #fff; color: #a41525; }
.sidebar-footer { display: flex; gap: 9px; align-items: center; margin-top: auto; padding: 36px 12px 0; font-size: 10px; color: #707780; }
.brand-line { width: 16px; height: 3px; background: var(--brand); }
.workspace-topbar { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 36px; border-bottom: 1px solid var(--line); background: #fff; }
.workspace-context { font-size: 13px; font-weight: 550; color: var(--muted); }
.app-shell .user-menu { min-width: 0; gap: 11px; }
.app-shell .user-menu > div:not(.avatar) { display: grid; gap: 1px; }
.app-shell .user-menu span { max-width: 240px; font-weight: 600; font-size: 13px; }
.app-shell .user-menu small { font-size: 11px; }
.app-shell .avatar { width: 34px; height: 34px; background: #edeff2; color: #4b525a; font-size: 11px; font-weight: 650; }
.mobile-brand, .mobile-navigation { display: none; }
.app-shell .page { grid-column: 2; width: 100%; max-width: 1480px; min-width: 0; padding: 36px 36px 60px; }
.app-shell .page:focus { outline: 0; }
.app-shell .page-title { margin-bottom: 30px; align-items: center; }
.app-shell .page-title h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.25; font-weight: 650; }
.app-shell .page-title p { margin: 8px 0 0; max-width: 680px; font-size: 13px; color: var(--muted); }
.app-shell .eyebrow { color: #69717b; font-size: 10px; font-weight: 650; text-transform: uppercase; }
.app-shell .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 17px; border-radius: 5px; font-size: 13px; font-weight: 650; box-shadow: none; line-height: 1.35; }
.app-shell .btn.secondary { color: #333a42; background: #fff; border: 1px solid #cfd4da; }
.app-shell .btn.secondary:hover { background: #f5f6f8; border-color: #858d96; }
.app-shell .btn.ghost { background: transparent; color: #5e6671; border: 0; }
.app-shell .btn.danger { background: #fff; border: 1px solid #dcb4bc; color: #a22134; }
.app-shell .btn.danger:hover:not(:disabled) { background: #fbecef; border-color: #a22134; box-shadow: none; }
.app-shell .btn.small { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.app-shell .btn.icon-button { width: 38px; min-width: 38px; height: 38px; min-height: 38px; padding: 9px; }
.app-shell .text-button { display: inline-flex; gap: 7px; align-items: center; background: none; color: var(--brand-dark); padding: 6px 0; font-size: 12px; font-weight: 650; white-space: nowrap; }
.app-shell .text-button:hover { text-decoration: underline; }
.app-shell .panel { min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.app-shell .panel-header { padding: 0 0 18px; border-bottom: 1px solid var(--line); align-items: center; }
.app-shell .panel-header :is(h2, h3) { font-size: 17px; font-weight: 650; line-height: 1.4; }
.app-shell .panel-header p { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.app-shell .panel-body { padding: 20px 0 0; }
.app-shell .grid { gap: 32px; }
.app-shell .grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.app-shell .grid.two.dashboard-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 40px; margin-bottom: 32px; }
.app-shell .stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 36px; border: 0; border-block: 1px solid var(--line); border-radius: 0; overflow: visible; }
.app-shell .stat { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 132px; padding: 22px 24px; border: 0; border-right: 1px solid var(--line); text-align: left; background: #fff; }
.app-shell .stat:first-child { padding-left: 0; }
.app-shell .stat:last-child { border-right: 0; }
.app-shell button.stat:hover { background: #fafbfc; }
.app-shell .stat > span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 550; }
.app-shell .stat > span .lucide { width: 15px; height: 15px; flex-basis: 15px; }
.app-shell .stat strong { margin: 0; font-size: 32px; font-weight: 600; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.app-shell .stat strong.stat-text { font-size: 22px; line-height: 1.6; overflow-wrap: anywhere; }
.app-shell .stat small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 400; }
.app-shell .stat small .lucide { width: 13px; height: 13px; }
.app-shell .stat-attention strong { color: var(--brand-dark); }
.app-shell .balance-summary-list { border-top: 0; }
.app-shell .balance-summary-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 17px 0; }
.app-shell .balance-summary-row:first-child { padding-top: 0; }
.app-shell .balance-summary-name { align-items: flex-start; gap: 10px; min-width: 0; }
.app-shell .balance-summary-name .color-dot { margin-top: 7px; width: 7px; height: 7px; flex-basis: 7px; }
.app-shell .balance-summary-name h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.app-shell .balance-summary-name :is(span, small):not(.color-dot) { display: block; font-size: 12px; color: #626c76; font-weight: 400; line-height: 1.5; }
.app-shell .balance-summary-amount { min-width: 66px; text-align: right; }
.app-shell .balance-summary-amount strong { color: var(--ink); font-size: 27px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.app-shell .balance-summary-amount span { font-size: 10px; font-weight: 450; color: #707781; }
.balance-meter { grid-column: 1 / -1; height: 3px; background: #eff1f3; border-radius: 2px; overflow: hidden; }
.balance-meter span { display: block; height: 100%; opacity: .75; }
.app-shell .branch-policy-card { margin: 32px 0 0; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 4px; background: #f8f9fb; }
.app-shell .branch-policy-card summary { min-height: 80px; padding: 17px 20px; }
.app-shell .branch-policy-card summary > div > strong { font-size: 12px; font-weight: 450; color: var(--muted); }
.app-shell .branch-policy-card .eyebrow { color: var(--ink); text-transform: none; font-size: 14px; font-weight: 600; }
.app-shell .policy-grid span { color: var(--muted); font-size: 11px; font-weight: 550; }
.app-shell .policy-grid strong { font-weight: 550; font-size: 13px; }
.app-shell .branch-policy-action { font-size: 11px; }
.app-shell .request-list { display: grid; gap: 0; }
.app-shell .request-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 0; background: transparent; }
.app-shell .request-item:first-child { padding-top: 0; }
.app-shell .request-item:last-child { border-bottom: 0; }
.app-shell .request-item h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: 14px; font-weight: 650; }
.app-shell .request-summary { margin: 0 0 6px; color: #4c5660; font-size: 13px; font-weight: 500; }
.app-shell .request-detail { margin: 6px 0; font-size: 13px; color: #606972; line-height: 1.6; }
.app-shell .request-meta, .app-shell .approval-note { margin: 5px 0 0; font-size: 12px; color: #67717b; line-height: 1.5; font-weight: 450; }
.app-shell .approval-note { color: #6f571d; }
.app-shell .record-id { display: block; margin: 0 0 5px; font-size: 10px; font-weight: 500; color: #727b85; overflow-wrap: anywhere; }
.app-shell .request-actions { display: flex; flex-wrap: wrap; align-items: center; align-content: start; justify-content: flex-end; gap: 8px; max-width: 225px; }
.app-shell .request-actions .status { margin-bottom: 2px; }
.app-shell .status { display: inline-flex; gap: 6px; align-items: center; justify-content: center; border-radius: 4px; padding: 4px 8px; font-size: 11px; font-weight: 600; white-space: normal; line-height: 1.4; }
.app-shell .status.pending { color: #785410; background: #fff4d9; }
.app-shell .status.approved { color: #226146; background: #eaf5ee; }
.app-shell .status.rejected { color: #a22134; background: #fbecef; }
.app-shell .status.cancelled, .app-shell .status.canceled { color: #626b76; background: #eef0f3; }
.request-disclosure { margin-top: 10px; }
.app-shell .request-disclosure > summary { display: inline-flex; gap: 5px; align-items: center; min-height: 28px; padding: 0; border: 0; font-weight: 500; color: #58626c; font-size: 12px; cursor: pointer; list-style: none; }
.request-disclosure > summary::-webkit-details-marker { display: none; }
.request-disclosure > summary .lucide { width: 12px; height: 12px; }
.request-disclosure[open] > summary .lucide { transform: rotate(180deg); }
.app-shell .records-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.app-shell .records-toolbar select { width: auto; min-width: 150px; min-height: 40px; border: 1px solid #cfd4da; background: #fff; border-radius: 5px; padding: 8px 28px 8px 12px; color: var(--ink-soft); font-size: 12px; }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 190px; max-width: 320px; flex: 1; border: 1px solid #cfd4da; border-radius: 5px; padding: 0 12px; color: var(--muted); }
.app-shell .search-field input { width: 100%; height: 40px; border: 0; padding: 0; background: transparent; font-size: 12px; }
.results-count { margin-left: auto; font-size: 11px; color: var(--muted); }
.inline-check { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.app-shell .empty-state { padding: 36px 20px; border: 1px dashed #d5dae0; background: #fafbfc; color: #6a737e; font-size: 13px; text-align: center; border-radius: 4px; }
.app-shell .complete-state { border: 0; padding: 80px 20px; background: #fff; }
.complete-state > .lucide { width: 40px; height: 40px; color: #347458; }
.complete-state h2 { color: var(--ink); font-size: 20px; font-weight: 600; margin: 18px 0 8px; }
.app-shell .apply-mobile-picker { display: flex; align-items: center; gap: 16px; margin: 0 0 28px; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.app-shell .apply-mobile-picker label { margin: 0; white-space: nowrap; }
.app-shell .apply-mobile-picker select { max-width: 320px; }
.app-shell .apply-shell { display: block; }
.app-shell .apply-content { min-width: 0; }
.app-shell .apply-workspace.grid.two { grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; }
.app-shell .apply-balance-panel { border-left: 1px solid var(--line); padding-left: 28px; }
.app-shell .apply-balance-panel .panel-header { border: 0; padding-bottom: 8px; }
.app-shell .apply-balance-panel .panel-header h2 { font-size: 14px; }
.app-shell .form-identity-disclosure { margin: 0 0 24px; padding: 12px 15px; border-radius: 4px; background: #f6f7f9; }
.form-identity-disclosure > summary { display: flex; align-items: center; gap: 11px; list-style: none; cursor: pointer; color: var(--ink-soft); }
.form-identity-disclosure > summary::-webkit-details-marker { display: none; }
.form-identity-disclosure > summary > span { font-size: 12px; font-weight: 600; }
.form-identity-disclosure > summary small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.form-identity-disclosure > summary .identity-label { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); font-weight: 450; }
.app-shell .form-identity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 18px 0 0; margin: 16px 0 0; border: 0; border-top: 1px solid var(--line); background: none; }
.app-shell .form-identity > div { min-width: 0; padding: 0; border: 0; background: none; }
.app-shell .form-identity strong { font-size: 12px; font-weight: 550; color: var(--ink); overflow-wrap: anywhere; }
.app-shell .form-identity span { color: var(--muted); font-size: 10px; text-transform: none; }
.app-shell .form-grid { gap: 20px 20px; }
.app-shell .field { min-width: 0; }
.app-shell :is(.field > label, .mini-field > span, .line-field > span, legend) { color: #3c444c; font-weight: 600; font-size: 12px; }
.app-shell :is(.field, .mini-field, .line-field) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) { width: 100%; min-width: 0; min-height: 42px; padding: 10px 12px; color: #252a30; border: 1px solid #cbd1d8; border-radius: 5px; background: #fff; font-size: 13px; box-shadow: none; }
.app-shell textarea { min-height: 98px !important; resize: vertical; }
.app-shell input:disabled { background: #f4f5f7 !important; color: #747c86 !important; }
.app-shell :is(input, select, textarea):hover { border-color: #8c96a1; }
.app-shell .field p { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 5px 0 0; }
.app-shell .field.full { grid-column: 1 / -1; }
.app-shell fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.app-shell .leave-duration-options { display: flex; gap: 0; width: fit-content; max-width: 100%; border: 1px solid #cbd1d8; border-radius: 5px; overflow: hidden; }
.app-shell .leave-duration-option { display: flex; align-items: center; min-height: 42px; min-width: 140px; gap: 8px; padding: 9px 15px; background: #fff; border: 0; border-right: 1px solid #cbd1d8; border-radius: 0; box-shadow: none; }
.app-shell .leave-duration-option:last-child { border: 0; }
.app-shell .leave-duration-option:has(input:checked) { background: #fbecef; color: var(--brand-dark); }
.app-shell .leave-duration-option strong { font-size: 12px; font-weight: 550; }
.app-shell .leave-duration-option span { display: flex; gap: 7px; align-items: center; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.app-shell .leave-duration-option input:checked + span { background: none; box-shadow: none; color: var(--brand-dark); }
.app-shell .leave-duration-option:has(input:focus-visible) { outline: 2px solid #202226; outline-offset: -3px; }
.app-shell .leave-duration-option input:focus-visible + span { outline: 0; }
.app-shell .leave-duration-option small { font-size: 10px; }
.app-shell :is(input[type=checkbox], input[type=radio]) { width: 16px; height: 16px; min-height: 0; flex-shrink: 0; accent-color: var(--brand); }
.app-shell .attachment-field { margin-top: 8px; }
.app-shell .attachment-heading > span { font-size: 11px; color: var(--muted); }
.app-shell .attachment-dropzone { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 13px 15px; border: 1px dashed #bfc7d0; background: #fafbfc; border-radius: 5px; text-align: left; }
.app-shell .attachment-dropzone strong { display: flex; gap: 7px; align-items: center; font-size: 12px; font-weight: 600; color: #4a535e; white-space: nowrap; }
.app-shell .attachment-dropzone > span { font-size: 10px; line-height: 1.6; color: #6c7680; max-width: 200px; }
.app-shell .request-approver-field { border: 0; border-top: 1px solid var(--line); background: transparent; padding: 18px 0 0; margin: 10px 0 0; }
.app-shell .request-approver-field > strong { font-size: 14px; font-weight: 600; }
.app-shell .notice { padding: 13px 15px; border: 0; border-left: 3px solid #7e8792; border-radius: 0; background: #f4f6f8; color: #454e58; font-size: 12px; line-height: 1.65; }
.app-shell .digital-signature { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; background: none; border: 0; font-size: 11px; }
.app-shell .digital-signature :is(span, strong) { color: #6f7780; font-size: 11px; font-weight: 450; }
.app-shell .submit-field { margin-top: 2px; padding-top: 18px; border-top: 1px solid var(--line); }
.app-shell .claim-line { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1.3fr) 105px 38px; align-items: end; padding: 18px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); gap: 12px; border-radius: 0; }
.app-shell .claim-total { background: #f5f7f9; border: 0; border-radius: 4px; padding: 12px 16px; min-height: 72px; }
.app-shell .claim-total strong { font-size: 24px; color: var(--ink); font-weight: 600; }
.app-shell .claim-total span { font-size: 11px; color: var(--muted); }
.app-shell .approval-section { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.app-shell .approval-section > summary { padding: 15px 20px; background: #f6f7f9; font-size: 13px; font-weight: 600; }
.app-shell .approval-section-body { padding: 22px; }
.app-shell .approval-count { border-radius: 4px; background: #fff; color: #5a6370; font-size: 11px; }
.app-shell .calendar-panel .panel-body { padding: 0; }
.app-shell .calendar-toolbar { gap: 20px; margin: 0 0 24px; flex-wrap: wrap; }
.app-shell .calendar-toolbar h2 { min-width: 152px; text-align: center; font-size: 17px; font-weight: 600; margin: 0; }
.app-shell .calendar-toolbar .filter-row { min-width: 0; gap: 8px; }
.app-shell .calendar-toolbar select { min-height: 38px; max-width: 190px; color: #4e5863; font-size: 12px; padding: 8px 25px 8px 10px; }
.app-shell .calendar-scope { background: #f3f5f7; border: 0; font-size: 12px; }
.app-shell .calendar-grid { border-radius: 4px; }
.app-shell .weekday { background: #f8f9fb; font-size: 11px; font-weight: 550; min-height: 36px; }
.app-shell .day-cell { min-height: 116px; padding: 9px 7px; }
.app-shell .day-cell.today { outline: 0; background: #fffcfc; }
.app-shell .day-cell.today .day-number > span { display: grid; place-items: center; width: 23px; height: 23px; background: var(--brand); border-radius: 50%; color: #fff; }
.app-shell .day-number { font-size: 11px; font-weight: 500; min-height: 23px; }
.app-shell .day-cell.outside { background: #fafbfc; opacity: .5; }
.app-shell .leave-chip { display: block; min-width: 0; padding: 5px 7px; border: 0; border-left: 2px solid #378365; border-radius: 3px; background: #eef7f2; color: #2c654e; line-height: 1.4; overflow: visible; white-space: normal; }
.app-shell .leave-chip.is-pending { border-color: #bb8a2b; border-left-style: dashed; background: #fff8e7; color: #7a581a; }
.app-shell .leave-chip strong { display: block; font-size: 10px; font-weight: 600; overflow-wrap: anywhere; }
.app-shell .leave-chip small { display: block; font-size: 9px; font-weight: 400; }
.calendar-type-dot { display: inline-block; width: 5px; height: 5px; margin: 0 5px 1px 0; border-radius: 50%; }
.app-shell .calendar-holiday { border-width: 2px; padding: 5px 7px; background: #fdeef1; }
.app-shell .calendar-holiday strong { font-size: 10px; line-height: 1.4; font-weight: 600; }
.app-shell .calendar-holiday small { font-size: 9px; font-weight: 500; }
.calendar-agenda { display: none; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 18px; padding: 18px 0; font-size: 10px; color: var(--muted); }
.calendar-legend > span { display: flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: #378365; }
.legend-dot.pending { background: #bb8a2b; }
.legend-dot.holiday { background: #c9182b; }
.app-shell .admin-shell { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 30px; }
.app-shell .admin-nav { position: sticky; top: 22px; padding: 0 20px 0 0; background: none; border: 0; border-right: 1px solid var(--line); border-radius: 0; align-self: start; }
.app-shell .section-nav-label { padding: 0 10px; color: #76808a; font-size: 10px; margin-bottom: 12px; }
.app-shell .section-nav-item { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 11px 10px; min-height: 40px; font-size: 12px; font-weight: 450; color: #59636e; border-radius: 4px; background: none; }
.app-shell .section-nav-item .lucide { width: 13px; height: 13px; flex-basis: 13px; opacity: 0; }
.app-shell .section-nav-item.active { color: #1d242b; background: #edf0f4; box-shadow: none; font-weight: 650; }
.app-shell .section-nav-item.active .lucide { opacity: 1; }
.app-shell .admin-panel .panel-body { padding: 24px 0 0; }
.app-shell .policy-branch-mobile { display: block; max-width: 300px; }
.app-shell .policy-editor-header { padding: 20px 0; margin: 0; background: none; border: 0; }
.app-shell .policy-editor-header h3 { font-size: 15px; font-weight: 600; }
.app-shell .autosave-label { font-size: 10px; background: none; color: var(--muted); padding: 0; }
.app-shell .policy-groups { display: grid; gap: 12px; }
.app-shell .policy-group { border: 1px solid var(--line); border-radius: 5px; background: #fff; overflow: hidden; padding: 0; }
.app-shell .policy-group > summary.policy-group-title { display: flex; align-items: center; gap: 12px; padding: 17px 20px; background: #f8f9fb; color: #555f6b; }
.app-shell .policy-group > summary.policy-group-title::after { content: none; }
.app-shell .policy-group-title h4 { margin: 0; flex: 1; font-size: 13px; color: var(--ink); font-weight: 600; }
.app-shell .policy-group-title > .lucide:last-child { width: 15px; height: 15px; }
.app-shell .policy-group[open] .policy-group-title > .lucide:last-child { transform: rotate(180deg); }
.app-shell .policy-group-body { padding: 6px 20px 20px; background: #fff; }
.app-shell .dashboard-visibility-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 0; border: 0; }
.app-shell .dashboard-visibility-toggle { padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; min-height: 58px; }
.app-shell .dashboard-visibility-toggle strong { font-size: 12px; font-weight: 500; }
.app-shell .dashboard-visibility-toggle input { appearance: none; position: relative; width: 32px; height: 19px; border: 0; border-radius: 12px; background: #b9c0c9; cursor: pointer; margin: 0; }
.app-shell .dashboard-visibility-toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .15s; }
.app-shell .dashboard-visibility-toggle input::before { content: none; }
.app-shell .dashboard-visibility-toggle input:checked { background: var(--brand); }
.app-shell .dashboard-visibility-toggle input:checked::after { transform: translateX(13px); }
.app-shell .policy-field-grid { gap: 20px; padding-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-shell .directory-stats { border: 0; border-block: 1px solid var(--line); border-radius: 0; background: #f8f9fb; margin: 22px 0; }
.app-shell .directory-stats > div { background: none; padding: 15px; }
.app-shell .directory-stats strong { font-size: 23px; font-weight: 600; }
.app-shell .directory-stats span { font-size: 10px; font-weight: 500; }
.app-shell .directory-toolbar span { font-size: 11px; }
.app-shell .directory-person { grid-template-columns: minmax(170px, 1.5fr) repeat(4, minmax(75px, 1fr)); gap: 15px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 18px 0; }
.app-shell .directory-person.has-issues { border-left: 3px solid #d2a149; padding-left: 12px; }
.app-shell .directory-person strong { font-size: 12px; font-weight: 550; }
.app-shell .directory-person :is(span, small) { font-size: 10px; color: #707981; }
.app-shell .directory-person .directory-issue-list { grid-column: 1 / -1; }
.app-shell .directory-issue-list span { padding: 3px 6px; font-size: 10px; }
.app-shell .holiday-admin-calendar { min-width: 0; }
.app-shell .holiday-day { min-width: 0; }
.app-shell .holiday-admin-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 26px; }
.app-shell .holiday-toolbar { flex-wrap: wrap; margin-bottom: 18px; }
.app-shell .holiday-toolbar h3 { font-size: 16px; font-weight: 600; }
.app-shell .holiday-weekday { background: #f4f6f8; color: #636d77; font-size: 11px; font-weight: 500; }
.app-shell .holiday-day { min-height: 75px; padding: 8px; }
.app-shell .holiday-day span { font-size: 12px; font-weight: 500; }
.app-shell .holiday-day strong { font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; font-weight: 550; }
.app-shell .holiday-form, .app-shell .holiday-list-card { border: 0; border-radius: 0; padding: 0; }
.app-shell .holiday-list-card { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.app-shell .holiday-list-card h3 { font-size: 14px; font-weight: 600; }
.app-shell .holiday-list-card p { font-size: 12px; }
.app-shell .holiday-pill { border: 0; border-left: 2px solid #c9182b; border-radius: 0; background: #f9f5f6; padding: 10px 12px; }
.app-shell .holiday-pill strong { font-size: 12px; font-weight: 550; }
.app-shell .holiday-pill span { font-size: 11px; }
.app-shell .finance-record { padding: 24px 0; border-bottom: 1px solid var(--line); }
.app-shell .finance-record:first-child { padding-top: 0; }
.app-shell .finance-record .field { max-width: 460px; }
.app-shell .claim-review-total { display: block; margin: 12px 0 16px; color: var(--ink); font-size: 24px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; }
.app-shell .expense-lines { display: grid; margin-bottom: 15px; gap: 0; max-width: 800px; }
.app-shell .expense-line-item { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.app-shell .expense-line-item time { color: var(--muted); }
.app-shell .expense-line-item > span { color: var(--ink-soft); }
.app-shell .expense-line-item small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.app-shell .expense-line-item strong { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.app-shell .access-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; margin-top: 28px; }
.app-shell .access-layout > aside { border-left: 1px solid var(--line); padding-left: 30px; }
.app-shell .access-layout > aside .panel-body { padding-top: 0; }
.app-shell .access-layout h2 { font-size: 17px; font-weight: 600; margin-top: 0; }
.app-shell #access-form fieldset { display: flex; flex-wrap: wrap; gap: 12px 22px; padding-block: 15px; border-block: 1px solid var(--line); }
.app-shell #access-form fieldset p { width: 100%; margin: 0; }
.app-shell #access-form fieldset label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 450; }
.app-shell .access-policy-note { margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.access-policy-note > summary { display: flex; width: fit-content; gap: 8px; align-items: center; cursor: pointer; list-style: none; }
.app-shell .attendance-upload-form, .app-shell .attendance-review-panel { box-shadow: none; border-radius: 5px; }
.app-shell .submissions-panel { margin: 0; }
@media (max-width: 1240px) {
  .app-shell { grid-template-columns: 194px minmax(0, 1fr); }
  .workspace-sidebar { width: 194px; padding-inline: 12px; }
  .workspace-topbar { padding-inline: 26px; }
  .app-shell .page { padding: 28px 26px 50px; }
  .app-shell .dashboard-grid { gap: 28px; }
  .app-shell .apply-workspace.grid.two { grid-template-columns: minmax(0, 1fr); }
  .app-shell .apply-balance-panel { display: none; }
  .app-shell .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .app-shell .admin-nav { display: none; }
  .app-shell .admin-mobile-picker { display: flex; align-items: center; gap: 15px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
  .app-shell .admin-mobile-picker select { max-width: 300px; }
  .app-shell .admin-mobile-picker label { white-space: nowrap; }
  .app-shell .request-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .app-shell .request-actions { justify-content: flex-start; max-width: none; }
  .app-shell .claim-line { grid-template-columns: repeat(2, minmax(0, 1fr)) 38px; }
  .app-shell .claim-line .line-remove { grid-column: 3; grid-row: 1 / 3; }
  .app-shell .calendar-toolbar { align-items: flex-start; }
  .app-shell .calendar-toolbar .filter-row:last-child { margin-left: auto; }
}
@media (max-width: 900px) {
  body:has(.app-shell) { padding-bottom: 0; }
  .app-shell { display: block; min-height: 100dvh; }
  .workspace-sidebar { display: none; }
  .workspace-topbar { min-height: 72px; padding: 10px 24px; }
  .workspace-context { display: none; }
  .mobile-brand { display: block; }
  .mobile-brand .brand-wordmark { width: 122px; }
  .app-shell .page { padding-bottom: 106px; }
  .mobile-navigation { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; min-height: 70px; padding: 7px 16px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid #d9dfe5; background: #fff; box-shadow: 0 -3px 16px #20222606; }
  .mobile-navigation > .nav-tab, .mobile-more { flex: 1; min-width: 0; }
  .app-shell .mobile-navigation > .nav-tab, .app-shell .mobile-more > .nav-tab { display: grid; grid-template-rows: 20px 24px; align-content: center; justify-items: center; gap: 3px; text-align: center; padding: 5px 2px; min-height: 57px; font-size: 10px; font-weight: 500; border-radius: 5px; }
  .app-shell .mobile-navigation .nav-tab.active { background: #fbeef0; }
  .mobile-more > summary { list-style: none; cursor: pointer; }
  .mobile-more > summary::-webkit-details-marker { display: none; }
  .mobile-more[open] > summary { color: var(--brand-dark); }
  .mobile-more > nav { position: absolute; bottom: calc(100% + 8px); right: 14px; width: 250px; padding: 8px; border: 1px solid #d9dfe5; border-radius: 6px; background: #fff; box-shadow: 0 8px 32px #2022261a; }
  .app-shell .mobile-more nav .nav-tab { padding: 12px; font-size: 13px; }
  .skip-link { left: 16px; }
  .app-shell .access-layout { grid-template-columns: minmax(0, 1fr); }
  .app-shell .access-layout > aside { border: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
  .app-shell .directory-person { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-shell .directory-person-name { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .workspace-topbar { min-height: 66px; padding: 10px 18px; }
  .mobile-brand .brand-wordmark { width: 110px; }
  .app-shell .user-menu > div:not(.avatar) { display: none; }
  .app-shell .user-menu { gap: 5px; }
  .app-shell .avatar { width: 30px; height: 30px; font-size: 10px; }
  .app-shell .page { padding: 26px 20px 100px; }
  .app-shell .page-title { align-items: flex-start; gap: 15px; flex-wrap: wrap; margin-bottom: 24px; }
  .app-shell .page-title h1 { font-size: 25px; }
  .app-shell .page-title p { font-size: 12px; }
  .app-shell .page-title > .btn { min-height: 38px; padding: 9px 13px; font-size: 12px; }
  .app-shell .page-title > .text-button { align-self: flex-end; }
  .app-shell .stat-strip { margin-bottom: 28px; }
  .app-shell .stat { min-height: 120px; padding: 16px 12px; gap: 12px; }
  .app-shell .stat > span { font-size: 10px; line-height: 1.4; min-height: 28px; }
  .app-shell .stat > span .lucide { display: none; }
  .app-shell .stat strong { font-size: 28px; }
  .app-shell .stat strong.stat-text { font-size: 15px; line-height: 1.7; }
  .app-shell .stat small { display: none; }
  .app-shell .grid.two.dashboard-grid, .app-shell .grid.two { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .app-shell .dashboard-grid { margin-bottom: 26px; }
  .app-shell .panel-header { padding-bottom: 14px; }
  .app-shell .panel-header :is(h2, h3) { font-size: 16px; }
  .app-shell .panel-body { padding-top: 18px; }
  .app-shell .balance-summary-row { padding-block: 14px; }
  .app-shell .branch-policy-card summary { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
  .app-shell .policy-grid { grid-template-columns: minmax(0, 1fr); }
  .app-shell .policy-grid div { border: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; min-height: 0; }
  .app-shell .policy-grid div:last-child { border: 0; }
  .app-shell .request-actions .status { margin-right: auto; }
  .app-shell .records-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .search-field { grid-column: 1 / -1; min-width: 0; max-width: none; }
  .app-shell .records-toolbar select { min-width: 0; width: 100%; font-size: 11px; }
  .results-count { grid-column: 1 / -1; margin-left: 0; margin-top: 2px; }
  .app-shell .apply-mobile-picker, .app-shell .admin-mobile-picker { display: grid; gap: 8px; }
  .app-shell .apply-mobile-picker select, .app-shell .admin-mobile-picker select { max-width: none; }
  .app-shell .form-identity-disclosure { padding: 12px; margin-bottom: 22px; }
  .form-identity-disclosure > summary .identity-label { font-size: 0; gap: 0; }
  .form-identity-disclosure > summary small { font-size: 10px; }
  .app-shell .form-identity { gap: 14px; }
  .app-shell .form-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .app-shell :is(.field, .mini-field, .line-field) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) { font-size: 16px; min-height: 44px; padding: 10px; }
  .app-shell .leave-duration-options { width: 100%; }
  .app-shell .leave-duration-option { min-width: 0; flex: 1; padding-inline: 10px; }
  .app-shell .leave-duration-option span { gap: 5px; }
  .app-shell .attachment-dropzone { gap: 14px; padding: 14px 12px; }
  .app-shell .attachment-dropzone > span { max-width: 165px; }
  .app-shell .submit-field > .btn { width: 100%; min-height: 46px; }
  .app-shell .claim-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px; padding-bottom: 16px; }
  .app-shell .claim-line .line-remove { grid-column: 2; grid-row: auto; justify-self: end; }
  .app-shell .claim-line .line-field { min-width: 0; }
  .app-shell .expense-line-item { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .app-shell .expense-line-item time { grid-column: 1 / -1; }
  .app-shell .approval-section-body { padding: 18px 16px; }
  .app-shell .calendar-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; width: 100%; }
  .app-shell .calendar-toolbar .filter-row { flex-wrap: nowrap; width: 100%; gap: 6px; }
  .app-shell .calendar-toolbar .filter-row > .btn { flex: 0 0 auto; }
  .app-shell .calendar-toolbar .filter-row:last-child { margin: 0; }
  .app-shell .calendar-toolbar h2 { min-width: 0; flex: 1; font-size: 15px; }
  .app-shell .calendar-toolbar select { min-width: 0; max-width: none; flex: 1; font-size: 12px; }
  .app-shell .calendar-grid { display: none; }
  .calendar-agenda { display: grid; }
  .agenda-day { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
  .agenda-date { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 4px; }
  .agenda-date strong { font-size: 21px; font-weight: 550; line-height: 1.2; }
  .agenda-date span { font-size: 10px; color: var(--muted); }
  .app-shell .agenda-day .day-cell { height: auto; min-height: 0; padding: 0; border: 0; background: none; }
  .agenda-day .day-number { display: none; }
  .app-shell .agenda-day .leave-chip { padding: 10px 12px; }
  .app-shell .agenda-day .leave-chip strong { font-size: 12px; }
  .app-shell .agenda-day .leave-chip small { font-size: 11px; margin-top: 3px; }
  .app-shell .agenda-day .calendar-holiday { padding: 10px 12px; }
  .app-shell .agenda-day .calendar-holiday strong { font-size: 12px; }
  .app-shell .agenda-day .calendar-holiday small { font-size: 10px; }
  .calendar-legend { gap: 12px; font-size: 9px; }
  .app-shell .policy-branch-mobile { max-width: none; }
  .app-shell .policy-editor-header { flex-wrap: wrap; gap: 6px; padding: 18px 0; }
  .app-shell .dashboard-visibility-grid { grid-template-columns: minmax(0, 1fr); }
  .app-shell .policy-group-title { padding: 16px; }
  .app-shell .policy-group-body { padding: 4px 16px 16px; }
  .app-shell .policy-field-grid { grid-template-columns: minmax(0, 1fr); }
  .app-shell .directory-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .directory-person { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .directory-toolbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .app-shell .leave-type-table { display: block; width: 100%; overflow: visible; white-space: normal; }
  .app-shell .leave-type-table thead { display: none; }
  .app-shell .leave-type-table tbody { display: grid; gap: 18px; }
  .app-shell .leave-type-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
  .app-shell .leave-type-table td { display: grid; gap: 7px; padding: 0; min-width: 0; border: 0; }
  .app-shell .leave-type-table td:first-child { grid-column: 1 / -1; }
  .app-shell .leave-type-table td::before { content: attr(data-label); font-size: 12px; color: var(--muted); }
  .app-shell .leave-type-table :is(input, select) { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
  .app-shell .holiday-admin-layout { grid-template-columns: minmax(0, 1fr); }
  .app-shell .holiday-calendar { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .app-shell .holiday-weekday { display: grid; font-size: 10px; }
  .app-shell .holiday-day { min-height: 52px; padding: 5px; border-right: 1px solid var(--line); }
  .app-shell .holiday-day.outside { display: block; }
  .app-shell .holiday-day strong { display: none; }
  .app-shell .holiday-day.has-holiday::after { display: block; content: ""; width: 5px; height: 5px; margin-top: 5px; background: var(--brand); border-radius: 50%; }
  .mobile-navigation { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell * { scroll-behavior: auto !important; transition: none !important; }
}

/* Administration modules share form controls and remain usable on narrow screens. */
.access-settings-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.access-account-picker { margin-block: 22px; }
.settings-description { color: var(--muted); line-height: 1.65; margin: 0 0 18px; }
.app-shell .settings-choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; min-height: 44px; cursor: pointer; }
.app-shell .settings-choice input { flex: 0 0 auto; margin-top: 3px; width: 18px; height: 18px; }
.settings-choice > span { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.settings-choice small { color: var(--muted); font-weight: 400; line-height: 1.6; }
.settings-recipient-list { max-height: 320px; overflow-y: auto; border-block: 1px solid var(--line); padding: 8px 2px; margin-top: 12px; }
.settings-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.app-shell .settings-choice[hidden], .settings-options[hidden] { display: none; }
.app-shell #hr-email-form { max-width: 840px; }
.app-shell #hr-email-form legend { font-size: 15px; font-weight: 600; }
.app-shell #hr-email-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* HR balances and the request register share responsive filters and calm numeric layouts. */
.app-shell .record-filters { display: grid; grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(140px, 1fr)); gap: 16px; align-items: end; }
.app-shell .record-filters .field, .app-shell .balance-filters .field { min-width: 0; }
.app-shell .record-filters :is(input, select), .app-shell .balance-filters :is(input, select) { width: 100%; min-width: 0; min-height: 44px; }
.app-shell .record-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.app-shell .record-results-bar .results-count, .app-shell .balance-pagination .results-count { margin: 0; }
.app-shell .record-heading { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 9px; }
.app-shell .record-kind { font-size: 11px; font-weight: 600; color: var(--brand-dark); background: #fbeef0; border-radius: 4px; padding: 3px 7px; }
.app-shell .portal-record h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.45; font-weight: 600; }
.app-shell .portal-record .request-meta { margin: 4px 0 10px; }
.app-shell .portal-record > div { min-width: 0; overflow-wrap: anywhere; }
.app-shell .portal-record .record-id { overflow-wrap: anywhere; }
.app-shell .balance-employee-picker { max-width: 670px; margin-bottom: 18px; }
.app-shell .balance-export-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.app-shell .balance-export-heading > div { flex: 1 1 260px; min-width: 0; }
.app-shell .balance-export-heading > button { flex: 0 0 auto; min-height: 44px; }
.app-shell .balance-export-note { margin: -4px 0 20px; }
.app-shell .balance-person-heading { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: baseline; margin-bottom: 16px; }
.app-shell .balance-person-heading strong { font-size: 16px; font-weight: 600; }
.app-shell .balance-person-heading span { color: var(--muted); font-size: 12px; }
.app-shell .employee-balance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 12px; margin-top: 18px; }
.app-shell .employee-balance-card { min-width: 0; padding: 18px 16px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 6px; }
.app-shell .employee-balance-card h4 { font-size: 12px; color: var(--ink-soft); margin: 0 0 12px; font-weight: 550; overflow-wrap: anywhere; }
.app-shell .balance-value { display: block; font-size: 29px; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; }
.app-shell .balance-value small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 4px; }
.app-shell .employee-balance-card p, .app-shell .employee-balance-card > small { color: var(--muted); font-size: 11px; margin: 12px 0 0; line-height: 1.5; }
.app-shell .balance-value.balance-unset { font-size: 17px; min-height: 55px; display: flex; align-items: center; }
.app-shell .balance-negative { color: #a41525; }
.app-shell .balance-unset { color: var(--muted); }
.app-shell .balance-comparison { min-width: 0; padding: 20px 0 26px; border-block: 1px solid var(--line); margin: 0 0 28px; }
.app-shell .balance-comparison > summary { cursor: pointer; font-size: 15px; font-weight: 600; min-height: 28px; }
.app-shell .balance-comparison > .form-note { margin: 12px 0 18px; }
.app-shell .balance-filters { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; margin-bottom: 20px; }
.app-shell .balance-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.app-shell .employee-balance-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; white-space: normal; }
.app-shell .employee-balance-table caption { text-align: left; padding: 12px 14px; font-size: 11px; color: var(--muted); }
.app-shell .employee-balance-table :is(th, td) { padding: 13px 14px; border: 0; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.app-shell .employee-balance-table thead th { min-width: 114px; background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 550; }
.app-shell .employee-balance-table th:first-child { min-width: 205px; position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.app-shell .employee-balance-table thead th:first-child { background: var(--surface-soft); }
.app-shell .employee-balance-table td { font-weight: 600; font-variant-numeric: tabular-nums; }
.app-shell .employee-balance-table td.balance-unset { font-size: 11px; font-weight: 400; }
.app-shell .employee-balance-table th small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.app-shell .employee-balance-table .selected-employee :is(th, td) { background: #fcf2f3; }
.app-shell .balance-person-button { border: 0; padding: 0; min-height: 28px; font: inherit; font-weight: 600; color: var(--ink); background: none; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: #b8bec5; text-underline-offset: 4px; }
.app-shell .balance-person-button:hover { color: var(--brand-dark); }
.app-shell .balance-pagination { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.app-shell .balance-pagination .button-row { margin: 0; }
@media (max-width: 1150px) {
  .app-shell .record-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .app-shell .record-filters { gap: 12px; }
  .app-shell .record-search { grid-column: 1 / -1; }
  .app-shell .record-filters .field:last-child { grid-column: 1 / -1; }
  .app-shell .record-filters :is(input, select), .app-shell .balance-filters :is(input, select) { font-size: 16px; }
  .app-shell .employee-balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .employee-balance-card { padding: 15px 12px; }
  .app-shell .employee-balance-card h4 { min-height: 36px; margin-bottom: 8px; }
  .app-shell .balance-filters { grid-template-columns: minmax(0, 1fr); }
  .app-shell .balance-table-scroll { border: 0; overflow: visible; }
  .app-shell .employee-balance-table { display: block; }
  .app-shell .employee-balance-table caption { display: block; padding: 0 0 12px; }
  .app-shell .employee-balance-table thead { display: none; }
  .app-shell .employee-balance-table tbody { display: grid; gap: 16px; }
  .app-shell .employee-balance-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
  .app-shell .employee-balance-table th:first-child { position: static; grid-column: 1 / -1; min-width: 0; box-shadow: none; border-top: 0; }
  .app-shell .employee-balance-table td { min-width: 0; padding: 12px 14px; overflow-wrap: anywhere; }
  .app-shell .employee-balance-table td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-bottom: 5px; }
}
@media (max-width: 640px) {
  .access-settings-tabs .btn { flex: 1 1 auto; min-height: 44px; }
  .app-shell .access-layout > aside { grid-row: 1; border-top: 0; border-bottom: 1px solid var(--line); padding: 0 0 26px; }
  .settings-options { grid-template-columns: minmax(0, 1fr); }
}
