/* ==========================================================================
   RCI HRIS — UX refresh 2026-11-30
   One isolated layer loaded after the legacy stylesheet. It only restyles the
   admin shell and the new structural pieces; it never changes behaviour.
   Rollback = remove this <link> from index.html.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ux-bg: #f4f6f3;
  --ux-surface: #ffffff;
  --ux-line: #e3e8e1;
  --ux-line-soft: #eef1ed;
  --ux-text: #17211a;
  --ux-muted: #62706a;
  --ux-faint: #8d998f;
  --ux-brand: #3f8f36;
  --ux-brand-dark: #33752c;
  --ux-brand-soft: #eaf4e7;
  --ux-accent: #d9822b;
  --ux-danger: #b8402f;
  --ux-danger-soft: #fbeeea;
  --ux-warn: #9a6a12;
  --ux-warn-soft: #fdf3dc;
  --ux-radius: 12px;
  --ux-radius-sm: 8px;
  --ux-shadow: 0 1px 2px rgba(23, 33, 26, .05), 0 6px 18px rgba(23, 33, 26, .05);
  --ux-shadow-pop: 0 12px 32px rgba(23, 33, 26, .14);
  --ux-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

html.ux-refresh, html.ux-refresh body { font-family: var(--ux-font); }
html.ux-refresh body { background: var(--ux-bg); color: var(--ux-text); -webkit-font-smoothing: antialiased; }
html.ux-refresh .hidden { display: none !important; }
html.ux-refresh .muted { color: var(--ux-muted); }
html.ux-refresh .text-danger { color: var(--ux-danger); }
html.ux-refresh :focus-visible { outline: 2px solid var(--ux-brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Shell (desktop only; phone layout is owned by styles.css) ---------- */
@media (min-width: 861px) {

html.ux-refresh:not(.employee-session) .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
html.ux-refresh:not(.employee-session) .sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 12px 12px; background: #12241a; color: #e8efe9; overflow-y: auto; overscroll-behavior: contain;
  border: 0; box-shadow: none; transform: none !important;
}
html.ux-refresh:not(.employee-session) .sidebar .side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; color: inherit; background: none; }
html.ux-refresh:not(.employee-session) .side-brand .brand-logo-wrap { width: 36px; height: 36px; padding: 5px; border-radius: 10px; background: #fff; }
html.ux-refresh:not(.employee-session) .side-brand .brand-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
html.ux-refresh:not(.employee-session) .side-brand strong { display: block; font-size: 14px; color: #fff; letter-spacing: .01em; }
html.ux-refresh:not(.employee-session) .side-brand span { display: block; font-size: 11px; color: #9db3a5; }
html.ux-refresh:not(.employee-session) #mainNav { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow: visible; }
html.ux-refresh .nav-group-label {
  margin: 16px 8px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #86a08f; white-space: nowrap;
}
html.ux-refresh:not(.employee-session) .nav {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px;
  background: transparent; color: #cfdcd3; font: inherit; font-size: 13.5px; font-weight: 500; text-align: left;
  cursor: pointer; transition: background .15s ease, color .15s ease; white-space: nowrap;
}
html.ux-refresh:not(.employee-session) .nav > span { display: inline-flex; width: 18px; height: 18px; flex: 0 0 18px; color: #9db3a5; }
html.ux-refresh:not(.employee-session) .nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html.ux-refresh:not(.employee-session) .nav:hover { background: rgba(255, 255, 255, .07); color: #fff; }
html.ux-refresh:not(.employee-session) .nav.active { background: #fff; color: #12241a; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
html.ux-refresh:not(.employee-session) .nav.active > span { color: var(--ux-brand); }
html.ux-refresh:not(.employee-session) .side-footer { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 10px 4px 0; border-top: 1px solid rgba(255, 255, 255, .1); color: #cfdcd3; background: none; }
html.ux-refresh:not(.employee-session) .side-footer a,
html.ux-refresh:not(.employee-session) .side-footer button { width: 100%; padding: 9px 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; background: transparent; color: #e8efe9; font: inherit; font-size: 13px; text-align: center; text-decoration: none; cursor: pointer; }
html.ux-refresh:not(.employee-session) .side-footer a:hover { background: rgba(255, 255, 255, .07); }

html.ux-refresh:not(.employee-session) .content { min-width: 0; padding: 0; background: var(--ux-bg); }

}

/* ---------- Top bar + page body (desktop only; phone layout is owned by styles.css) ---------- */
@media (min-width: 861px) {
html.ux-refresh:not(.employee-session) .topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; margin: 0; padding: 12px 24px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border: 0; border-bottom: 1px solid var(--ux-line); box-shadow: none; overflow: visible;
}
html.ux-refresh:not(.employee-session) .topbar-title-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
html.ux-refresh:not(.employee-session) .topbar-title-group > div { min-width: 0; }
html.ux-refresh:not(.employee-session) #pageTitle { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.25; color: var(--ux-text); letter-spacing: -.01em; }
html.ux-refresh:not(.employee-session) #pageSubtitle { margin: 2px 0 0; font-size: 12.5px; color: var(--ux-muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
html.ux-refresh:not(.employee-session) .top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
html.ux-refresh:not(.employee-session) .top-link,
html.ux-refresh:not(.employee-session) .top-logout,
html.ux-refresh:not(.employee-session) .owner-top-profile { border: 1px solid var(--ux-line) !important; background: #fff !important; color: var(--ux-text) !important; box-shadow: none !important; }

html.ux-refresh:not(.employee-session) .tab { padding: 20px 24px 40px; max-width: 1480px; margin: 0 auto; }
html.ux-refresh:not(.employee-session) .panel {
  background: var(--ux-surface); border: 1px solid var(--ux-line) !important; border-radius: var(--ux-radius) !important;
  box-shadow: var(--ux-shadow) !important; padding: 18px 20px !important;
}
html.ux-refresh:not(.employee-session) .panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 14px; padding: 0; border: 0; background: none; }
html.ux-refresh:not(.employee-session) .panel-head h3 { margin: 0; font-size: 15.5px; font-weight: 650; color: var(--ux-text); letter-spacing: -.01em; }
html.ux-refresh:not(.employee-session) .panel-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--ux-muted); line-height: 1.45; }
html.ux-refresh:not(.employee-session) .panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }

}

/* ---------- Buttons, inputs, pills ---------- */
html.ux-refresh button.mini,
html.ux-refresh a.mini {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 13px; border-radius: var(--ux-radius-sm) !important;
  border: 1px solid var(--ux-line) !important; background: #fff !important; color: var(--ux-text) !important;
  font: inherit; font-size: 13px !important; font-weight: 550 !important; line-height: 1; text-decoration: none !important; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}
html.ux-refresh button.mini:hover, html.ux-refresh a.mini:hover { background: #f5f8f4 !important; border-color: #cfd8cd !important; }
html.ux-refresh button.mini:active { transform: translateY(1px); }
html.ux-refresh button.mini.primary, html.ux-refresh button.primary { background: var(--ux-brand) !important; border-color: var(--ux-brand) !important; color: #fff !important; }
html.ux-refresh button.mini.primary:hover { background: var(--ux-brand-dark) !important; border-color: var(--ux-brand-dark) !important; }
html.ux-refresh button.mini.danger { color: var(--ux-danger) !important; border-color: #eccfc8 !important; }
html.ux-refresh button.mini.danger:hover { background: var(--ux-danger-soft) !important; }
html.ux-refresh:not(.employee-session) input:not([type=checkbox]):not([type=radio]):not([type=file]),
html.ux-refresh:not(.employee-session) select,
html.ux-refresh:not(.employee-session) textarea {
  min-height: 40px; padding: 8px 12px; border: 1px solid var(--ux-line) !important; border-radius: var(--ux-radius-sm) !important;
  background: #fff !important; color: var(--ux-text) !important; font: inherit; font-size: 14px;
  box-shadow: none !important; transition: border-color .15s ease, box-shadow .15s ease;
}
html.ux-refresh:not(.employee-session) input:focus, html.ux-refresh:not(.employee-session) select:focus, html.ux-refresh:not(.employee-session) textarea:focus {
  border-color: var(--ux-brand) !important; box-shadow: 0 0 0 3px rgba(63, 143, 54, .14) !important; outline: 0;
}
html.ux-refresh:not(.employee-session) input::placeholder, html.ux-refresh:not(.employee-session) textarea::placeholder { color: var(--ux-faint); }
html.ux-refresh:not(.employee-session) label { font-size: 12.5px; font-weight: 550; color: var(--ux-muted); }
html.ux-refresh:not(.employee-session) label > input, html.ux-refresh:not(.employee-session) label > select { margin-top: 6px; font-weight: 400; color: var(--ux-text); }
html.ux-refresh .status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; background: #eef2ed; color: var(--ux-muted); }
html.ux-refresh .status-pill.off { background: #f1f2f1; color: var(--ux-faint); }
html.ux-refresh .status-pill.pending { background: var(--ux-warn-soft); color: var(--ux-warn); }
html.ux-refresh .status-pill.approved, html.ux-refresh .status-pill.complete, html.ux-refresh .status-pill.present { background: var(--ux-brand-soft); color: var(--ux-brand-dark); }
html.ux-refresh .status-pill.rejected, html.ux-refresh .status-pill.absent { background: var(--ux-danger-soft); color: var(--ux-danger); }

/* ---------- Tables ---------- */
html.ux-refresh:not(.employee-session) .table-wrap { overflow-x: auto; border: 1px solid var(--ux-line); border-radius: var(--ux-radius-sm); }
html.ux-refresh:not(.employee-session) table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
html.ux-refresh:not(.employee-session) thead th { padding: 11px 12px; background: #f6f8f5; color: var(--ux-muted); font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; text-align: left; white-space: nowrap; border: 0; border-bottom: 1px solid var(--ux-line); }
html.ux-refresh:not(.employee-session) tbody td { padding: 12px; border: 0; border-bottom: 1px solid var(--ux-line-soft); vertical-align: middle; color: var(--ux-text); line-height: 1.45; background: transparent; }
html.ux-refresh:not(.employee-session) tbody tr:last-child td { border-bottom: 0; }
html.ux-refresh:not(.employee-session) tbody td small { color: var(--ux-muted); font-size: 12px; }
html.ux-refresh:not(.employee-session) tbody td strong { font-weight: 600; }
html.ux-refresh:not(.employee-session) .empty-cell { text-align: center; color: var(--ux-muted); padding: 28px 12px !important; }

/* ---------- Payroll workspace ---------- */
.payroll-workspace .payroll-head { align-items: center; }
.payroll-workspace .payroll-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.payroll-workspace .payroll-actions input[type=month] { min-height: 34px; padding: 0 10px; font-size: 13px; }
.payroll-total { margin: 0 0 14px; padding: 12px 16px; border-radius: var(--ux-radius-sm); background: var(--ux-brand-soft); color: var(--ux-brand-dark); font-size: 14px; font-weight: 650; border: 0; }
.payroll-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.payroll-toolbar .form-note { margin: 0; }
.payroll-search { position: relative; flex: 0 1 320px; }
.payroll-search span { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); border: 1.7px solid var(--ux-faint); border-radius: 50%; }
.payroll-search span::after { content: ""; position: absolute; left: 11px; top: 11px; width: 6px; height: 1.7px; background: var(--ux-faint); transform: rotate(45deg); transform-origin: left center; }
.payroll-search input { padding-left: 34px !important; min-height: 38px !important; }
.payroll-table tr[data-payroll-row] { cursor: pointer; transition: background .12s ease; }
.payroll-table tr[data-payroll-row]:hover td { background: #f7faf6; }
.payroll-table tr[data-payroll-row].is-selected td { background: var(--ux-brand-soft); }
.payroll-table tr[data-payroll-row].is-selected td:first-child { box-shadow: inset 3px 0 0 var(--ux-brand); }
.payroll-table td:nth-child(n+4):not(:last-child), .payroll-table th:nth-child(n+4):not(:last-child) { text-align: right; font-variant-numeric: tabular-nums; }
.payroll-table th:last-child, .payroll-table td:last-child { text-align: right; white-space: nowrap; }

.payroll-breakdown { margin-top: 12px; padding: 16px 18px; border: 1px solid #cfe3c9; border-radius: var(--ux-radius); background: #fbfdfa; }
.breakdown-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--ux-line-soft); }
.breakdown-head > div:first-child { flex: 1 1 220px; min-width: 0; }
.breakdown-head strong { display: block; font-size: 15px; }
.breakdown-head small { display: block; margin-top: 2px; color: var(--ux-muted); font-size: 12.5px; }
.breakdown-net { text-align: right; }
.breakdown-net small { display: block; color: var(--ux-muted); font-size: 12px; }
.breakdown-net strong { font-size: 17px; color: var(--ux-brand-dark); font-variant-numeric: tabular-nums; }
.breakdown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 28px; margin-top: 12px; }
.breakdown-group h4 { margin: 0 0 6px; font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ux-faint); }
.breakdown-line { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px dashed var(--ux-line-soft); }
.breakdown-line:last-child { border-bottom: 0; }
.breakdown-line > span { min-width: 0; }
.breakdown-line small { display: block; color: var(--ux-muted); font-size: 12px; margin-top: 1px; }
.breakdown-line strong { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ux-brand-dark); }
.breakdown-line strong.minus { color: var(--ux-danger); }

.ux-segmented { display: inline-flex; gap: 4px; margin: 22px 0 12px; padding: 4px; border-radius: 10px; background: #e9ede8; }
.ux-segment { padding: 7px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ux-muted); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; transition: background .15s ease, color .15s ease; }
.ux-segment.active { background: #fff; color: var(--ux-text); box-shadow: 0 1px 3px rgba(23, 33, 26, .12); }
.payroll-sub { display: none; }
.payroll-sub.active { display: block; }

/* ---------- Collapsible sections ---------- */
.ux-collapse { border: 1px solid var(--ux-line); border-radius: var(--ux-radius-sm); background: #fff; }
.ux-collapse > summary { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; cursor: pointer; list-style: none; }
.ux-collapse > summary::-webkit-details-marker { display: none; }
.ux-collapse > summary::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 6px; border-right: 1.8px solid var(--ux-muted); border-bottom: 1.8px solid var(--ux-muted); transform: rotate(-45deg); transition: transform .15s ease; }
.ux-collapse[open] > summary::before { transform: rotate(45deg); }
.ux-collapse > summary strong { display: block; font-size: 14px; }
.ux-collapse > summary small { display: block; margin-top: 2px; color: var(--ux-muted); font-size: 12.5px; line-height: 1.45; }
.ux-collapse-body { padding: 4px 16px 16px; border-top: 1px solid var(--ux-line-soft); }
.ux-collapse-body .grid-form { margin-top: 14px; }
.loan-panel { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.loan-panel details:not(.ux-collapse) { margin: 0; }
.loan-panel details:not(.ux-collapse) > summary { color: var(--ux-brand-dark); font-weight: 550; }

/* ---------- Sub navigation (employees etc.) ---------- */
html.ux-refresh:not(.employee-session) .subnav { display: flex; gap: 4px; margin: 0 0 14px; padding: 4px; border: 0; border-radius: 10px; background: #e9ede8; }
html.ux-refresh:not(.employee-session) .subnav-btn { padding: 8px 16px; border: 0; border-radius: 8px; background: transparent; color: var(--ux-muted); font: inherit; font-size: 13.5px; font-weight: 550; cursor: pointer; box-shadow: none; }
html.ux-refresh:not(.employee-session) .subnav-btn.active { background: #fff; color: var(--ux-text); box-shadow: 0 1px 3px rgba(23, 33, 26, .12); }
html.ux-refresh:not(.employee-session) .employee-subview { display: none; }
html.ux-refresh:not(.employee-session) .employee-subview.active { display: block; }
html.ux-refresh:not(.employee-session) .employee-search-bar { margin: 0 0 12px; }
html.ux-refresh:not(.employee-session) .employee-form-grid, html.ux-refresh:not(.employee-session) #employeeForm fieldset { border: 1px solid var(--ux-line-soft) !important; border-radius: var(--ux-radius-sm); background: #fbfcfa !important; padding: 14px 16px !important; }
html.ux-refresh:not(.employee-session) #employeeForm legend { padding: 0 6px; font-size: 12px; font-weight: 650; color: var(--ux-muted); }

/* ---------- Dashboard: shorter, calmer, task-first ---------- */
html.ux-refresh:not(.employee-session) .owner-hero { border-radius: var(--ux-radius) !important; box-shadow: var(--ux-shadow) !important; }
html.ux-refresh:not(.employee-session) .owner-grid, html.ux-refresh:not(.employee-session) .owner-dashboard-grid { gap: 16px; }
html.ux-refresh:not(.employee-session) .company-billboard { margin: 16px 0 0 !important; border-radius: var(--ux-radius) !important; }

/* ---------- Mobile (admin): content-level tweaks only ----------
   The phone shell (bottom tab bar built from .sidebar, "Lainnya" sheet, top bar) is owned by
   styles.css and is NOT overridden here. Only inner content is polished. */
@media (max-width: 860px) {
  html.ux-refresh body:not(.employee-session) .panel { border-radius: 14px !important; }
  html.ux-refresh body:not(.employee-session) .subnav { margin-bottom: 12px; }
  .payroll-workspace .payroll-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .payroll-workspace .payroll-actions > * { width: 100%; justify-content: center; margin: 0 !important; }
  .payroll-workspace .payroll-actions input[type=month] { grid-column: 1 / -1; min-height: 42px; }
  .payroll-toolbar { margin-bottom: 8px; }
  .payroll-search { flex: 1 1 100%; }
  .breakdown { border-radius: 14px; }
  .breakdown-head > div:first-child { flex-basis: 100%; }
  .breakdown-net { text-align: left; }
  .breakdown-grid { grid-template-columns: 1fr; gap: 6px; }
  .ux-segmented { display: flex; }
  .ux-segment { flex: 1; text-align: center; }
  /* Card-mode rows: give each label its own line so labels never collide with values. */
  html.ux-refresh body:not(.employee-session) .payroll-table td[data-label]::before,
  html.ux-refresh body:not(.employee-session) .compact-table td[data-label]::before,
  html.ux-refresh body:not(.employee-session) .loan-panel td[data-label]::before,
  html.ux-refresh body:not(.employee-session) .payroll-adjustments-wrap td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ux-faint);
  }
  /* Neutralise desktop-only cell sizing inside the payroll card list. */
  html.ux-refresh body:not(.employee-session) .payroll-table td { min-width: 0 !important; max-width: none !important; white-space: normal !important; overflow: visible !important; }
}

/* Phone shell fixes: labels I added for the desktop sidebar must not leak into the bottom bar. */
@media (max-width: 860px) {
  html.ux-refresh .nav-group-label { display: none !important; }
  /* Let the page title own its row; actions wrap underneath instead of squeezing it. */
  html.ux-refresh body:not(.employee-session) .payroll-head { flex-direction: column; align-items: stretch; }
  html.ux-refresh body:not(.employee-session) .payroll-head > div:first-child { flex: 0 0 auto; }
  .payroll-workspace .payroll-actions { display: flex !important; flex-wrap: wrap; gap: 8px; width: 100%; }
  .payroll-workspace .payroll-actions > * { width: auto !important; flex: 0 0 auto; margin: 0 !important; white-space: nowrap; }
  .payroll-workspace .payroll-actions input[type=month] { flex: 1 1 100% !important; width: 100% !important; min-height: 42px; }
}


/* Keep the phone bottom-bar label consistent with the desktop menu wording. */
@media (max-width: 860px) {
  html.ux-refresh body:not(.employee-session) .sidebar .nav[data-tab="dashboard"]:not([data-employee-only])::after { content: "Beranda" !important; }
}


/* ---------- Pass 5: final desktop corrections (loaded last on purpose) ---------- */
@media (min-width: 861px) {
  /* Win against the legacy !important shell rules by matching their specificity and adding ours. */
  html.ux-refresh body:not(.employee-session) .shell { display: grid !important; grid-template-columns: 248px minmax(0, 1fr) !important; }
  html.ux-refresh body:not(.employee-session) .sidebar {
    position: sticky !important; top: 0 !important; left: auto !important; right: auto !important; bottom: auto !important;
    width: 248px !important; max-width: none !important; height: 100vh !important; transform: none !important;
    background: #12241a !important; color: #e8efe9 !important; border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important; overflow-y: auto !important;
  }
  html.ux-refresh body:not(.employee-session) .sidebar .side-brand { background: none !important; color: #fff !important; }
  html.ux-refresh body:not(.employee-session) .sidebar .side-brand strong { color: #fff !important; background: none !important; }
  html.ux-refresh body:not(.employee-session) .sidebar .side-brand span { color: #9db3a5 !important; }
  html.ux-refresh body:not(.employee-session) .sidebar #mainNav { display: flex !important; flex-direction: column !important; gap: 2px !important; background: none !important; }
  html.ux-refresh body:not(.employee-session) .sidebar #mainNav .nav {
    display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important;
    width: 100% !important; min-height: 0 !important; padding: 9px 10px !important; gap: 12px !important;
    background: transparent !important; color: #cfdcd3 !important; font-size: 13.5px !important; line-height: 1.3 !important;
    border: 0 !important; border-radius: 10px !important; box-shadow: none !important; text-align: left !important;
  }
  html.ux-refresh body:not(.employee-session) .sidebar #mainNav .nav > span {
    width: 18px !important; height: 18px !important; flex: 0 0 18px !important; background: none !important; color: #9db3a5 !important;
    border: 0 !important; border-radius: 0 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
  }
  html.ux-refresh body:not(.employee-session) .sidebar #mainNav .nav svg { width: 18px !important; height: 18px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.7 !important; }
  html.ux-refresh body:not(.employee-session) .sidebar #mainNav .nav:hover { background: rgba(255,255,255,.07) !important; color: #fff !important; }
  html.ux-refresh body:not(.employee-session) .sidebar #mainNav .nav.active { background: #fff !important; color: #12241a !important; box-shadow: 0 2px 8px rgba(0,0,0,.18) !important; }
  html.ux-refresh body:not(.employee-session) .sidebar #mainNav .nav.active > span { color: var(--ux-brand) !important; }
  html.ux-refresh body:not(.employee-session) .sidebar .side-footer { background: none !important; color: #cfdcd3 !important; border-top: 1px solid rgba(255,255,255,.12) !important; border-radius: 0 !important; }
  html.ux-refresh body:not(.employee-session) .sidebar .side-footer a,
  html.ux-refresh body:not(.employee-session) .sidebar .side-footer button {
    background: transparent !important; color: #e8efe9 !important; border: 1px solid rgba(255,255,255,.2) !important;
    box-shadow: none !important; opacity: 1 !important;
  }
  html.ux-refresh body:not(.employee-session) .sidebar .side-footer a:hover,
  html.ux-refresh body:not(.employee-session) .sidebar .side-footer button:hover { background: rgba(255,255,255,.08) !important; }

  /* Payroll table: the last column was clipped by a legacy fixed width. Let it fit. */
  html.ux-refresh body:not(.employee-session) .payroll-table { width: 100% !important; min-width: 0 !important; max-width: 100% !important; table-layout: auto !important; }
  html.ux-refresh body:not(.employee-session) .payroll-table th,
  html.ux-refresh body:not(.employee-session) .payroll-table td { padding-left: 10px !important; padding-right: 10px !important; }
  html.ux-refresh body:not(.employee-session) .payroll-table td:first-child { min-width: 0 !important; width: auto !important; }
  html.ux-refresh body:not(.employee-session) .payroll-table td:nth-child(2) { max-width: 130px !important; }
}

