:root {
  --bsuth-sage-700: #3f7f63; --bsuth-sage-600: #4f8f70; --bsuth-sage-500: #69a982;
  --bsuth-sage-400: #84b99a; --bsuth-sage-300: #a8cfb7; --bsuth-sage-100: #e6f2ea;
  --bsuth-sage-50: #f4f9f5; --bsuth-page-bg: #f6f8f7; --bsuth-surface: #fff;
  --bsuth-surface-soft: #fafbfa; --bsuth-text: #1f2933; --bsuth-text-secondary: #52606d;
  --bsuth-muted: #7b8794; --bsuth-border: #dde4e0; --bsuth-info-bg: #eef5f1;
  --bsuth-info-text: #2f6852; --bsuth-warning-bg: #fbf7ec; --bsuth-warning-text: #785a1f;
  --bsuth-success-bg: #e8f3ec; --bsuth-success-text: #246b49; --bsuth-error-bg: #f8eeee;
  --bsuth-error-text: #a33a3a; --bsuth-neutral-bg: #eef1f0; --bsuth-neutral-text: #59636a;
  --shadow-soft: 0 8px 24px rgba(31, 41, 51, .05); --radius-card: 10px; --radius-control: 7px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--bsuth-text); background: var(--bsuth-page-bg); font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.55; }
a { color: var(--bsuth-sage-700); text-decoration: none; }
a:hover { color: #2f684f; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(40, 106, 157, .3); outline-offset: 2px; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .65rem 1rem; background: var(--bsuth-surface); border-radius: 7px; }
.skip-link:focus { top: 1rem; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.app-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px; color: #fff; background: var(--bsuth-sage-600); }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 6px 34px; color: #fff; }
.brand:hover { color: #fff; }
.brand img { width: 38px; height: 42px; object-fit: contain; filter: brightness(0) invert(1); }
.brand span, .user-identity span { display: flex; flex-direction: column; }
.brand strong { font-size: 17px; letter-spacing: .02em; }.brand small { opacity: .86; font-size: 12px; }
.sidebar-nav { display: grid; gap: 5px; }.nav-item { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 9px 12px; border-radius: 8px; color: rgba(255,255,255,.9); font-weight: 500; }
.nav-item:hover, .nav-item.is-active { color: #fff; background: rgba(255,255,255,.14); }.nav-item span:first-child { width: 18px; text-align: center; }.nav-count { margin-left: auto; min-width: 21px; padding: 1px 6px; border-radius: 999px; color: var(--bsuth-sage-700); background: #fff; font-size: 11px; text-align: center; }
.sidebar-foot { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255,255,255,.25); }.sidebar-help { font-size: 12px; opacity: .8; }
.app-workspace { min-width: 0; }.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 34px; background: var(--bsuth-surface); border-bottom: 1px solid var(--bsuth-border); }
.topbar-context { color: var(--bsuth-text-secondary); font-size: 13px; }.topbar-actions, .user-identity, .notification-heading, .notification-actions { display: flex; align-items: center; gap: 14px; }
.notification-bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--bsuth-border); border-radius: 50%; color: var(--bsuth-text-secondary); font-size: 20px; }
.notification-count { position: absolute; top: -5px; right: -4px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; color: #fff; background: var(--bsuth-sage-700); font-size: 10px; font-weight: 700; }
.user-avatar { width: 36px; height: 36px; display: grid !important; place-items: center; border-radius: 50%; color: var(--bsuth-sage-700); background: var(--bsuth-sage-100); font-weight: 700; }.user-identity strong { font-size: 13px; }.user-identity small { color: var(--bsuth-muted); font-size: 11px; }
.content-frame { width: min(100%, 1280px); margin: 0 auto; padding: 34px; }.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }.page-header h1 { margin: 2px 0 6px; font-size: 28px; line-height: 1.2; }.page-header p { margin: 0; color: var(--bsuth-text-secondary); }.eyebrow { color: var(--bsuth-sage-700) !important; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.page-count { padding: 7px 12px; border-radius: 999px; color: var(--bsuth-sage-700); background: var(--bsuth-sage-100); font-weight: 600; white-space: nowrap; }
.payroll-approval-header { position: sticky; z-index: 21; top: 72px; margin-inline: -8px; padding: 10px 8px 12px; border-bottom: 1px solid rgba(221,228,224,.9); background: rgba(246,248,247,.97); backdrop-filter: blur(8px); }
.panel, .workflow-card { margin: 0 0 22px; padding: 22px; border: 1px solid var(--bsuth-border); border-radius: var(--radius-card); background: var(--bsuth-surface); box-shadow: var(--shadow-soft); }.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }.panel-header h2, .panel-header h3, .workflow-card h3 { margin: 0; font-size: 16px; }.panel-header p { margin: 3px 0 0; color: var(--bsuth-text-secondary); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }.kpi-card { min-height: 142px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--bsuth-border); border-radius: var(--radius-card); color: var(--bsuth-text); background: var(--bsuth-surface); box-shadow: var(--shadow-soft); }.kpi-card:hover { border-color: var(--bsuth-sage-300); transform: translateY(-1px); }.kpi-card span { font-size: 12px; font-weight: 600; }.kpi-card strong { margin: 10px 0 auto; font-size: 29px; line-height: 1; }.kpi-card small { color: var(--bsuth-sage-700); }
.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th, td { padding: 13px 14px; border-bottom: 1px solid var(--bsuth-border); text-align: left; vertical-align: middle; }th { color: var(--bsuth-text-secondary); background: var(--bsuth-surface-soft); font-size: 12px; font-weight: 600; }td { font-size: 13px; }tbody tr:hover { background: var(--bsuth-sage-50); }.table-title { display: block; color: var(--bsuth-text); font-weight: 600; }.table-title:hover { color: var(--bsuth-sage-700); }td small { display: block; margin-top: 2px; color: var(--bsuth-muted); }
.warning-link { color: #B45309; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }.warning-link:hover { color: #92400e; }
.status-badge, .badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 600; }.status-pending_approver_1, .status-pending_approver_2, .status-pending_approver_3, .status-pending_approver_4, .badge-current { color: var(--bsuth-warning-text); background: var(--bsuth-warning-bg); }.status-approved, .badge-completed { color: var(--bsuth-success-text); background: var(--bsuth-success-bg); }.status-rejected { color: var(--bsuth-error-text); background: var(--bsuth-error-bg); }.status-superseded, .badge-history, .badge-upcoming { color: var(--bsuth-neutral-text); background: var(--bsuth-neutral-bg); }
.alert { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--bsuth-border); border-left-width: 3px; border-radius: 8px; background-clip: padding-box; box-shadow: 0 3px 12px rgba(20, 48, 38, .06); }.alert-info { color: var(--bsuth-info-text); border-left-color: #6e9d88; background: var(--bsuth-info-bg); }.alert-success { color: var(--bsuth-success-text); border-left-color: var(--bsuth-sage-600); background: var(--bsuth-success-bg); }.alert-warning { color: var(--bsuth-warning-text); border-left-color: #bd923b; background: var(--bsuth-warning-bg); }.alert-error { color: var(--bsuth-error-text); border-left-color: #b85f5f; background: var(--bsuth-error-bg); }
.action-feedback[hidden] { display: none; }.action-feedback { position: sticky; top: 10px; z-index: 30; }.action-feedback .alert { box-shadow: 0 5px 18px rgba(20, 48, 38, .16); font-weight: 600; }.action-waiting { display: block; margin-top: 5px; font-weight: 400; }.action-progress { display: block; width: min(100%, 620px); height: 14px; margin-top: 9px; overflow: hidden; border: 0; border-radius: 999px; background: var(--bsuth-sage-100); accent-color: var(--bsuth-sage-600); }.action-progress::-webkit-progress-bar { border-radius: 999px; background: var(--bsuth-sage-100); }.action-progress::-webkit-progress-value { border-radius: 999px; background: var(--bsuth-sage-600); transition: width .45s ease; }.action-progress::-moz-progress-bar { border-radius: 999px; background: var(--bsuth-sage-600); transition: width .45s ease; }.action-progress-copy { display: block; margin-top: 4px; color: var(--bsuth-text-secondary); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }.form-actions button[disabled], button[disabled] { cursor: wait; opacity: .72; }
.calculation-progress { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.calculation-progress progress { width: min(100%, 760px); height: 18px; overflow: hidden; border: 0; border-radius: 999px; background: var(--bsuth-sage-100); }
.calculation-progress progress::-webkit-progress-bar { border-radius: 999px; background: var(--bsuth-sage-100); }
.calculation-progress progress::-webkit-progress-value { border-radius: 999px; background: var(--bsuth-sage-600); transition: width 1.2s ease; }
.calculation-progress progress::-moz-progress-bar { border-radius: 999px; background: var(--bsuth-sage-600); transition: width 1.2s ease; }
.calculation-progress span { min-width: 110px; color: var(--bsuth-text-secondary); font-weight: 700; }
.calculated-totals { color: #0b2860; }.calculated-totals__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }.calculated-totals__header h2 { margin: 0; color: #071e55; font-size: clamp(25px,3vw,34px); }.calculated-totals__header p { margin: 2px 0 0; color: #46608e; }.calculated-totals__selector select { min-width: 275px; padding: 12px 38px 12px 14px; border: 1px solid #78c7b2; border-radius: 8px; color: #071e55; background: #fff; font: inherit; }.payroll-summary-view > h3 { margin: 8px 4px 10px; color: #17345e; font-size: 16px; }.payroll-summary-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; align-items: start; }.payroll-summary-left { display: grid; gap: 12px; }.payroll-summary-block { overflow: hidden; border: 1px solid #a9ded0; border-radius: 8px; background: #fff; }.payroll-summary-block header { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 9px 14px; color: #fff; background: linear-gradient(90deg,#337d5d,#51a37e); font-size: 15px; }.payroll-summary-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; min-height: 28px; padding: 5px 16px; border-bottom: 1px solid #d7e0e7; background: #fff; font-size: 13px; }.payroll-summary-row:nth-of-type(even) { background: #f4f6f7; }.payroll-summary-row > :last-child { text-align: right; font-variant-numeric: tabular-nums; }.payroll-summary-row small { display: block; margin-top: 2px; color: #46608e; }.payroll-summary-row.is-total { margin: 3px 5px; border: 0; border-radius: 6px; color: #071e55; background: linear-gradient(90deg,#e9f4ef,#d8f1e7); }.payroll-summary-row.is-grand { font-size: 14px; }.payroll-summary-subhead { margin: 6px 5px 3px; padding: 7px 12px; border-radius: 6px; color: #30486d; background: linear-gradient(90deg,#edf4f1,#e0ece8); font-weight: 700; }.payroll-summary-subhead.is-nested { margin-left: 10px; }.payroll-summary-bottom { margin-top: 12px; }.payroll-summary-bottom .payroll-summary-row { padding-block: 10px; }.payroll-summary-staff-count { margin: 14px 0 0; text-align: center; color: #46608e; }.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; }
@media (max-width: 820px) { .calculated-totals__header { flex-direction: column; }.calculated-totals__selector, .calculated-totals__selector select { width: 100%; min-width: 0; }.payroll-summary-layout { grid-template-columns: 1fr; }.payroll-summary-row { gap: 10px; padding-inline: 11px; }.payroll-summary-block header { padding-inline: 11px; } }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 14px; border: 1px solid transparent; border-radius: var(--radius-control); cursor: pointer; font-weight: 600; }.button-primary, .action-primary, .action-panel button { color: #fff; background: var(--bsuth-sage-600); }.button-primary:hover, .action-panel button:hover { color: #fff; background: var(--bsuth-sage-700); }.button-secondary, .action-secondary { color: var(--bsuth-sage-700); border-color: var(--bsuth-sage-300); background: #fff; }.button-text { color: var(--bsuth-sage-700); background: transparent; }.button-small { min-height: 32px; padding: 5px 10px; font-size: 12px; }.button-block { width: 100%; }
.workflow-progress { display: flex; list-style: none; padding: 20px 0 4px; margin: 0; }.workflow-step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }.workflow-step:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 16px; left: 50%; width: 100%; height: 2px; background: var(--bsuth-border); }.workflow-step-completed:not(:last-child)::after { background: var(--bsuth-sage-500); }.step-marker { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--bsuth-border); border-radius: 50%; color: var(--bsuth-muted); background: #fff; font-weight: 700; }.workflow-step-completed .step-marker { color: #fff; border-color: var(--bsuth-sage-600); background: var(--bsuth-sage-600); }.workflow-step-current .step-marker { color: var(--bsuth-warning-text); border-color: #e7bc59; background: var(--bsuth-warning-bg); }.workflow-step-interrupted .step-marker { color: var(--bsuth-error-text); border-color: #df8b8b; background: var(--bsuth-error-bg); }.step-copy { display: flex; flex-direction: column; margin-top: 9px; }.step-copy strong { font-size: 12px; }.step-copy span { color: var(--bsuth-muted); font-size: 11px; }
.metadata-grid { display: grid; grid-template-columns: 160px 1fr 160px 1fr; margin: 14px 0 0; }.metadata-grid dt, .metadata-grid dd { margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--bsuth-border); }.metadata-grid dt { color: var(--bsuth-text-secondary); font-size: 12px; font-weight: 600; }.action-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--bsuth-border); }.action-panel textarea { display: block; width: min(100%, 620px); min-height: 88px; margin: 7px 0 12px; padding: 10px; border: 1px solid var(--bsuth-border); border-radius: var(--radius-control); }.workflow-download-actions { display: flex; flex-wrap: wrap; gap: 10px; }.action { display: inline-flex; padding: 8px 14px; border-radius: var(--radius-control); font-weight: 600; }
.workflow-timeline { list-style: none; margin: 0 0 0 8px; padding: 0 0 0 22px; border-left: 2px solid var(--bsuth-sage-100); }.timeline-event { position: relative; margin: 0 0 22px; }.timeline-event::before { content: ""; position: absolute; left: -29px; top: 5px; width: 10px; height: 10px; border: 3px solid #fff; border-radius: 50%; background: var(--bsuth-sage-600); box-shadow: 0 0 0 1px var(--bsuth-sage-300); }.timeline-event time, .timeline-event span { display: block; color: var(--bsuth-muted); font-size: 12px; }.timeline-event strong { display: block; margin: 3px 0; }.empty-state { padding: 50px 24px; text-align: center; color: var(--bsuth-text-secondary); background: var(--bsuth-surface-soft); border: 1px dashed var(--bsuth-border); border-radius: var(--radius-card); }.empty-state h3 { color: var(--bsuth-text); }
.context-strip { display: flex; gap: 15px; margin-bottom: 18px; padding: 12px 16px; border-radius: 8px; color: var(--bsuth-info-text); background: var(--bsuth-info-bg); }.notification-list { display: grid; gap: 12px; padding: 0; list-style: none; }.notification-item { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--bsuth-border); border-radius: var(--radius-card); background: var(--bsuth-surface); }.notification-item.is-unread { border-left: 4px solid var(--bsuth-sage-500); }.notification-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--bsuth-sage-700); background: var(--bsuth-sage-100); font-size: 20px; }.notification-content { flex: 1; }.notification-heading { justify-content: space-between; }.notification-heading h2 { margin: 0; font-size: 16px; }.notification-heading time { color: var(--bsuth-muted); font-size: 12px; }.notification-actions { justify-content: space-between; }.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.login-body { min-height: 100vh; background: #f4f7f3; }.login-page { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 32px; }.login-watermark { position: absolute; inset: -80px; opacity: .025; background-image: url("bsuth_logo.png"); background-repeat: repeat; background-size: 250px auto; transform: rotate(-8deg); }.login-card { position: relative; z-index: 1; width: min(100%, 450px); padding: 34px; border: 1px solid rgba(63,127,99,.18); border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 18px 50px rgba(31,41,51,.1); }.login-brand { display: flex; align-items: center; gap: 16px; }.login-brand img { width: 58px; height: 64px; object-fit: contain; }.login-brand p { margin: 0; color: var(--bsuth-sage-700); font-size: 11px; font-weight: 700; text-transform: uppercase; }.login-brand h1 { margin: 2px 0; color: #285b45; font-size: 28px; }.login-brand span { color: var(--bsuth-text-secondary); }.login-intro { margin: 30px 0 20px; }.login-intro h2 { margin: 0; font-size: 22px; }.login-intro p { margin: 4px 0; color: var(--bsuth-text-secondary); }.field { margin-bottom: 16px; }.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }.field input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--bsuth-border); border-radius: var(--radius-control); background: #fff; }.field input:focus { border-color: var(--bsuth-sage-500); }.login-card footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--bsuth-border); color: var(--bsuth-muted); font-size: 11px; }
@media (max-width: 700px) { .app-shell { grid-template-columns: 82px minmax(0,1fr); }.app-sidebar { padding-inline: 10px; }.brand { justify-content: center; }.brand span, .nav-item:not(.is-active) .nav-count, .sidebar-help, .nav-item { font-size: 0; }.nav-item { justify-content: center; }.nav-item span:first-child { font-size: 18px; }.kpi-grid { grid-template-columns: repeat(2, 1fr); }.metadata-grid { grid-template-columns: 130px 1fr; } }
@media (max-width: 700px) { .app-shell { display: block; }.app-sidebar { position: static; width: 100%; height: auto; padding: 12px 16px; }.brand { justify-content: flex-start; margin: 0 0 10px; }.brand span { display: flex; }.sidebar-nav { display: flex; overflow-x: auto; }.nav-item, .nav-item:not(.is-active) .nav-count { font-size: 13px; white-space: nowrap; }.nav-item span:first-child { display: none; }.sidebar-foot, .topbar-context, .user-identity { display: none; }.topbar { height: 62px; padding: 0 18px; justify-content: flex-end; }.content-frame { padding: 22px 16px; }.page-header { flex-direction: column; }.kpi-grid { grid-template-columns: 1fr; }.workflow-progress { flex-direction: column; gap: 12px; }.workflow-step { flex-direction: row; gap: 10px; text-align: left; }.workflow-step::after { display: none; }.step-copy { margin: 0; }.metadata-grid { grid-template-columns: 1fr; }.metadata-grid dt { padding-bottom: 2px; border-bottom: 0; }.metadata-grid dd { padding-top: 2px; }.notification-heading, .notification-actions, .context-strip { align-items: flex-start; flex-direction: column; }.login-page { padding: 18px; }.login-card { padding: 26px 22px; } }

/* Login landing page */
.login-body { min-height: 100vh; background: var(--bsuth-page-bg); }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 48px 24px; overflow: visible; }
.login-layout { width: min(100%, 430px); }
.login-card { width: 100%; padding: 38px 34px 35px; border: 1px solid var(--bsuth-border); border-radius: 12px; background: var(--bsuth-surface); box-shadow: 0 10px 30px rgba(31,41,51,.07); }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 0; margin-bottom: 43px; text-align: center; }
.login-brand img { width: 72px; height: 66px; margin-bottom: 12px; object-fit: contain; }
.login-brand h1 { margin: 0; color: #2e7d63; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.login-brand p { margin: 6px 0 0; color: var(--bsuth-text-secondary); font-size: 13px; font-weight: 400; letter-spacing: .01em; text-transform: none; }
.login-intro { margin: 0 0 27px; }
.login-intro h2 { margin: 0; font-size: 21px; line-height: 1.35; letter-spacing: -.015em; }
.login-intro p { margin: 7px 0 0; color: var(--bsuth-text-secondary); }
.login-error { display: flex; align-items: flex-start; gap: 10px; margin: -7px 0 21px; padding: 12px 13px; border: 1px solid #efcaca; border-radius: 8px; color: #9d3030; background: #fff5f5; font-size: 13px; line-height: 1.45; }
.login-error svg { flex: 0 0 18px; width: 18px; margin-top: 1px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.login-field { margin-bottom: 19px; }
.login-field label { display: block; margin-bottom: 7px; color: var(--bsuth-text); font-size: 13px; font-weight: 600; }
.login-field input { width: 100%; height: 48px; padding: 11px 13px; border: 1px solid #cfd8d3; border-radius: 7px; color: var(--bsuth-text); background: #fff; transition: border-color .16s, box-shadow .16s; }
.login-field input:hover { border-color: #aebdb5; }
.login-field input:focus { border-color: #2e7d63; outline: 0; box-shadow: 0 0 0 3px rgba(46,125,99,.15); }
.login-field input[aria-invalid="true"] { border-color: #d64545; }
.password-control { position: relative; }
.password-control input { padding-right: 52px; }
.password-toggle { position: absolute; top: 4px; right: 4px; width: 40px; min-height: 40px; padding: 0; border: 0; color: var(--bsuth-text-secondary); background: transparent; }
.password-toggle:hover { color: #2e7d63; background: var(--bsuth-sage-50); }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.password-toggle .eye-closed, .password-toggle.is-showing .eye-open { display: none; }
.password-toggle.is-showing .eye-closed { display: block; }
.login-submit { width: 100%; min-height: 48px; margin-top: 5px; border-radius: 7px; color: #fff; background: #2e7d63; box-shadow: 0 2px 5px rgba(46,125,99,.16); transition: background .16s, transform .08s; }
.login-submit:hover { color: #fff; background: #256b54; }
.login-submit:active { transform: translateY(1px); }
.login-submit:disabled { cursor: wait; opacity: .78; }
.button-loading { display: none; align-items: center; gap: 9px; }
.login-submit.is-loading .button-label { display: none; }
.login-submit.is-loading .button-loading { display: inline-flex; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: login-spin .7s linear infinite; }
.login-footer { margin-top: 24px; color: var(--bsuth-muted); font-size: 12px; text-align: center; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1.4s; } }
@media (max-width: 700px) {
  .login-page { place-items: start center; padding: 28px 16px; }
  .login-card { padding: 30px 22px; }
  .login-brand { margin-bottom: 34px; }
  .login-brand img { width: 66px; height: 60px; }
  .login-brand h1 { font-size: 23px; }
  .login-footer { margin-top: 20px; }
}

/* Long controlled forms: V.O. and HR record amendments */
.form-navigator { position: sticky; z-index: 20; top: 72px; display: block; margin: 0 0 22px; overflow: hidden; border: 1px solid var(--bsuth-border); border-radius: 9px; background: rgba(255,255,255,.97); box-shadow: 0 5px 16px rgba(31,41,51,.05); }
.form-navigator ol { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; }
.form-navigator li { min-width: 0; border-right: 1px solid var(--bsuth-border); }
.form-navigator li:last-child { border-right: 0; }
.form-navigator a { display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 12px 16px; color: var(--bsuth-text-secondary); font-size: 11px; font-weight: 500; }
.form-navigator a .step-number { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: #536a60; border-radius: 50%; background: #e8efeb; font-size: 12px; font-weight: 700; }
.step-label { min-width: 0; }
.step-label-short { display: none; }
.form-navigator a:hover, .form-navigator a.is-current { color: #17694d; background: #e7f3ed; font-weight: 700; }
.form-navigator a.is-current .step-number { color: #fff; background: #4c9a7e; }
.form-step-current { display: none; }
.form-page-header { margin-bottom: 10px; }
.draft-badge { align-self: flex-start; padding: 6px 14px; color: #66788b; border-radius: 999px; background: #edf2ef; font-size: 12px; font-weight: 700; }
.info-strip { color: #08669f; border-color: #d3eafa; background: #eaf6ff; }
.workflow-strip { margin-bottom: 13px; padding: 13px 17px 4px; border: 1px solid var(--bsuth-border); border-radius: 9px; background: #fff; }
.workflow-strip > strong { color: var(--bsuth-text-secondary); font-size: 11px; }
.workflow-strip ol { display: grid; grid-template-columns: repeat(5,1fr); margin: 10px 0 0; padding: 0; list-style: none; }
.workflow-strip li { position: relative; display: grid; justify-items: center; gap: 4px; color: var(--bsuth-muted); font-size: 9px; text-align: center; }
.workflow-strip li::before { content: ""; position: absolute; z-index: 0; top: 9px; right: 50%; left: -50%; height: 2px; background: #dfe8e3; }
.workflow-strip li:first-child::before { display: none; }
.workflow-strip li span { z-index: 1; width: 19px; height: 19px; border-radius: 50%; background: #dfe8e3; }
.workflow-strip li.is-current { color: #17694d; font-weight: 700; }
.workflow-strip li.is-current span { background: #4c9a7e; }
.context-strip, .conditional-note { margin-bottom: 18px; padding: 13px 15px; color: #315746; border: 1px solid #cde4d7; border-radius: 8px; background: #f3faf6; font-size: 13px; }
.long-form { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 20px; }
.long-form-main { display: grid; gap: 17px; min-width: 0; }
.form-section { position: relative; scroll-margin-top: 140px; padding: 25px; border: 1px solid var(--bsuth-border); border-radius: 10px; background: #fff; box-shadow: var(--shadow-soft); }
.form-section h2 { margin: 0 0 17px 34px; font-size: 18px; }
.form-section h3 { margin: 20px 0 12px; font-size: 14px; }
.section-number { position: absolute; top: 23px; left: 24px; display: grid; place-items: center; width: 23px; height: 23px; color: #fff; border-radius: 50%; background: #2e7d63; font-size: 11px; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid.one-column { grid-template-columns: 1fr; }
.form-grid > div, .form-section .field-selector { min-width: 0; }
.form-section label { display: block; margin-bottom: 6px; color: var(--bsuth-text); font-size: 12px; font-weight: 650; }
.form-section input:not([type=checkbox]):not([type=radio]), .form-section select, .form-section textarea { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid var(--bsuth-border); border-radius: 7px; background: #fff; }
.form-section textarea { min-height: 96px; resize: vertical; }
.form-section input:focus, .form-section select:focus, .form-section textarea:focus { outline: 3px solid rgba(46,125,99,.13); border-color: #2e7d63; }
.form-section .helptext, .field-help { display: block; margin: 6px 0 0; color: var(--bsuth-muted); font-size: 11px; }
.form-section .errorlist { margin: 5px 0; padding-left: 18px; color: #b42318; font-size: 12px; }
.review-panel { position: sticky; top: 142px; padding: 20px; border: 1px solid #bfdcc9; border-radius: 10px; background: #f5faf7; }
.review-panel h2 { margin: 0 0 16px; font-size: 16px; }
.review-panel dl { margin: 0; }
.review-panel dt { margin-top: 12px; color: var(--bsuth-muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.review-panel dd { margin: 3px 0 0; color: var(--bsuth-text); font-size: 12px; font-weight: 650; }
.review-panel p { margin: 18px 0 0; padding-top: 15px; color: var(--bsuth-text-secondary); border-top: 1px solid #d8e8df; font-size: 11px; }
.long-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.resolved-rate, .evidence-state { padding: 10px 12px; color: #256b54; border-radius: 7px; background: var(--bsuth-sage-50); font-size: 12px; }
.resolved-rate { display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; margin-top: 18px; padding: 16px; }
.resolved-rate small { grid-column: 1 / -1; font-size: 9px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.resolved-rate span { grid-column: 1 / -1; font-size: 10px; }
.proposal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 14px; margin-bottom: 17px; }
.proposal-grid > div { min-width: 0; }
.current-value, .proposed-value { min-height: 55px; padding: 10px 12px; border: 1px solid var(--bsuth-border); border-radius: 8px; }
.current-value { color: #66788b; background: #f8faf9; }
.proposed-value { border-color: #2e8968; background: #eaf5ef; }
.current-value small, .proposed-value label { display: block; margin-bottom: 4px; color: #66788b; font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.proposed-value label { color: #17694d; }
.proposed-value input, .proposed-value select { padding: 0 !important; min-height: 25px !important; border: 0 !important; background: transparent !important; font-weight: 700; outline: 0 !important; }
.field-selector ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.field-selector label { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 11px; border: 1px solid var(--bsuth-border); border-radius: 7px; cursor: pointer; }
.field-selector label:hover { border-color: #9dcdb1; background: var(--bsuth-sage-50); }
.comparison-list { display: grid; gap: 10px; }
.comparison-row { display: grid; grid-template-columns: 1fr 1fr 1.2fr; align-items: center; gap: 14px; padding: 13px; border: 1px solid var(--bsuth-border); border-radius: 8px; }
.comparison-row span { display: block; margin-bottom: 4px; color: var(--bsuth-muted); font-size: 10px; }
.comparison-row.is-unselected { display: none; }
.comparison-row > div:nth-child(2), .comparison-row > div:nth-child(3) { min-height: 58px; padding: 10px 12px; border: 1px solid var(--bsuth-border); border-radius: 8px; background: #f8faf9; }
.comparison-row > div:nth-child(3) { border-color: #2e8968; background: #eaf5ef; }
.comparison-row > div:nth-child(3) input, .comparison-row > div:nth-child(3) select, .comparison-row > div:nth-child(3) textarea { padding: 0; border: 0; background: transparent; font-weight: 700; }
.employee-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 14px; border-radius: 8px; background: var(--bsuth-surface-soft); }
.employee-summary > div { display: grid; gap: 2px; }
.employee-summary dl { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; }
.employee-summary dl div { display: grid; }
.employee-summary dt { color: var(--bsuth-muted); font-size: 10px; }
.employee-summary dd { margin: 1px 0 0; font-size: 12px; }
.review-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; align-items: start; gap: 20px; }
.review-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0; }
.review-meta div { padding: 10px; border: 1px solid var(--bsuth-border); border-radius: 7px; }
.review-meta dt { color: var(--bsuth-muted); font-size: 10px; }
.review-meta dd { margin: 3px 0 0; font-size: 12px; }
.history-list { display: grid; gap: 12px; padding-left: 22px; }
.history-list li span { display: block; margin-top: 3px; color: var(--bsuth-text-secondary); font-size: 12px; }
.button-danger { color: #a3261d; border: 1px solid #e4aaa4; background: #fff5f3; }
.button-danger:hover { color: #fff; background: #a3261d; }
.validation-summary { margin-bottom: 18px; padding: 15px; border: 1px solid #f0b9b3; border-radius: 8px; color: #912018; background: #fff5f3; }
.button-small { min-height: 34px; padding: 6px 9px; font-size: 11px; }
@media (max-width: 980px) { .long-form, .review-layout { grid-template-columns: 1fr; } .review-panel { position: static; } }
@media (max-width: 620px) { .form-navigator { top: 64px; margin-inline: 0; padding: 10px 8px 8px; overflow-x: visible; } .form-navigator ol { display: grid; } .form-navigator li { border: 0; } .form-navigator a { min-height: 60px; padding: 4px 2px; flex-direction: column; gap: 4px; text-align: center; } .form-navigator a:hover, .form-navigator a.is-current { background: transparent; } .form-navigator a .step-number { flex-basis: 30px; width: 30px; height: 30px; } .step-label-full { display: none; } .step-label-short { display: block; font-size: 9px; } .form-step-current { display: block; padding: 5px 5px 0; color: #17694d; font-size: 12px; font-weight: 700; } .workflow-strip { padding-bottom: 12px; } .workflow-strip li { font-size: 8px; } .form-section { padding: 24px 19px; } .section-number { top: 22px; left: 18px; } .form-section h2 { margin-left: 32px; } .form-grid, .field-selector ul, .comparison-row, .review-meta, .proposal-grid { grid-template-columns: 1fr; } .employee-summary { align-items: flex-start; flex-direction: column; } .resolved-rate { grid-template-columns: 1fr; } .resolved-rate > * { grid-column: 1 !important; } .long-form-actions { justify-content: stretch; } .long-form-actions .button { flex: 1 1 auto; } }

/* Employee work centre */
.breadcrumbs { margin: 0 0 18px; color: var(--bsuth-sage-700); font-size: 12px; font-weight: 650; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-header h1, .employee-profile-head h1 { margin: 0; color: var(--bsuth-text); font-size: clamp(25px, 3vw, 34px); line-height: 1.15; overflow-wrap: anywhere; }
.page-header p, .employee-profile-head p { margin: 8px 0 0; color: var(--bsuth-text-secondary); }
.page-count { padding: 10px 14px; border-radius: 8px; color: var(--bsuth-sage-800); background: var(--bsuth-sage-50); font-weight: 700; white-space: nowrap; }
.directory-filters { display: flex; gap: 10px; margin-bottom: 16px; padding: 16px; border: 1px solid var(--bsuth-border); border-radius: 10px; background: #fff; }
.directory-filters input { flex: 1; min-width: 180px; min-height: 42px; padding: 9px 12px; border: 1px solid var(--bsuth-border); border-radius: 7px; }
.employee-table .badge, .profile-badges .badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: var(--bsuth-sage-800); background: var(--bsuth-sage-50); font-size: 11px; font-weight: 650; white-space: nowrap; }
.employee-profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.employee-profile-head > div:nth-child(2) { min-width: 0; max-width: 100%; }
.employee-profile-head .button { margin-left: auto; }
.profile-avatar { display: grid; flex: 0 0 76px; place-items: center; width: 76px; height: 76px; border-radius: 50%; color: var(--bsuth-sage-800); background: var(--bsuth-sage-100); font-size: 27px; font-weight: 700; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.profile-tabs { position: sticky; z-index: 19; top: 72px; display: flex; gap: 28px; margin-bottom: 18px; overflow-x: auto; border-bottom: 1px solid var(--bsuth-border); background: rgba(246,248,247,.98); scrollbar-gutter: stable; }
.employee-profile-sticky-nav { position: sticky; z-index: 20; top: 72px; margin-bottom: 18px; padding-top: 8px; background: rgba(246,248,247,.98); box-shadow: 0 8px 12px -12px rgba(31,41,51,.32); }
.employee-profile-sticky-nav .profile-tabs { position: static; margin-bottom: 0; background: transparent; }
.employee-profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 0 2px 8px; }
.employee-profile-actions .button { min-height: 38px; }
.profile-tabs span, .profile-tabs a { padding: 11px 0; color: var(--bsuth-text); white-space: nowrap; }
.profile-tabs span:first-child, .profile-tabs a.is-active { color: var(--bsuth-sage-800); border-bottom: 2px solid var(--bsuth-sage-600); font-weight: 700; }
.report-tabs a { color: var(--bsuth-muted); border-bottom: 0; font-weight: 400; }
.report-tabs a.is-active { color: var(--bsuth-sage-800); border-bottom: 2px solid var(--bsuth-sage-600); font-weight: 700; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.metadata-grid { display: grid; grid-template-columns: minmax(120px, .7fr) 1.3fr; margin: 0; }
.metadata-grid dt, .metadata-grid dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--bsuth-border); }
.metadata-grid dt { color: var(--bsuth-text-secondary); }
.portal-form { max-width: 760px; }
.portal-form p { display: grid; gap: 6px; }
.portal-form input, .portal-form select, .portal-form textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--bsuth-border); border-radius: 7px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 13px; margin-top: 16px; }
.summary-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.summary-card { display: grid; gap: 5px; min-height: 92px; padding: 18px; border: 1px solid var(--bsuth-border); border-radius: 10px; color: var(--bsuth-text); background: #fff; }
.summary-card:hover, .summary-card.is-active { border-color: var(--bsuth-sage-500); background: var(--bsuth-sage-50); box-shadow: 0 4px 14px rgba(46,125,99,.08); }
.summary-card strong { font-size: 25px; line-height: 1; }
.summary-card span { color: var(--bsuth-text-secondary); font-size: 12px; }
.filter-grid { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(140px, 1fr)); align-items: end; }
.filter-grid label { display: grid; gap: 5px; color: var(--bsuth-text-secondary); font-size: 11px; }
.filter-grid select { min-height: 42px; padding: 8px 10px; border: 1px solid var(--bsuth-border); border-radius: 7px; background: #fff; }
.filter-actions { display: flex; gap: 8px; }
.employee-table th a { display: inline-flex; gap: 5px; color: inherit; }
.employee-table th[aria-sort="none"] a span { color: #aab5b0; }
.table-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding-top: 15px; border-top: 1px solid var(--bsuth-border); }
.table-footer p { margin: 0; color: var(--bsuth-text-secondary); font-size: 12px; }
.page-size-form label { display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.page-size-form select { min-height: 38px; padding: 6px 26px 6px 8px; border: 1px solid var(--bsuth-border); border-radius: 6px; background: #fff; }
.table-footer .pagination { gap: 5px; margin: 0; }
.page-button { display: inline-grid; place-items: center; min-width: 38px; min-height: 38px; border: 1px solid var(--bsuth-border); border-radius: 6px; color: var(--bsuth-text); background: #fff; }
.page-button:hover, .page-button.is-current { color: #fff; border-color: var(--bsuth-sage-700); background: var(--bsuth-sage-700); }
.page-button.is-disabled { pointer-events: none; color: #aeb8b3; background: #f7f9f8; }
.page-ellipsis { padding: 0 4px; }
.empty-state { padding: 35px !important; color: var(--bsuth-text-secondary); text-align: center; }
@media (max-width: 760px) {
  .page-header, .employee-profile-head { align-items: stretch; flex-direction: column; }
  .employee-profile-head .button { margin-left: 0; }
  .directory-filters { flex-direction: column; }
  .summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid { display: grid; grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
  .employee-table table { min-width: 920px; }
  .table-footer { grid-template-columns: 1fr; align-items: start; }
  .table-footer .pagination { justify-content: flex-start; max-width: 100%; overflow-x: auto; }
}

/* Day 7 authenticated application shell */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app-body { overflow-x: hidden; }
.app-shell { grid-template-columns: 248px minmax(0,1fr); transition: grid-template-columns .2s ease; }
.app-sidebar { z-index: 40; padding: 20px 14px 16px; color: var(--bsuth-text); background: #fff; border-right: 1px solid var(--bsuth-border); }
.sidebar-head { display: flex; align-items: center; min-height: 56px; margin-bottom: 20px; }
.brand { min-width: 0; flex: 1; gap: 10px; margin: 0 7px; color: #2e7d63; }
.brand:hover { color: #256b54; }
.brand img { width: 40px; max-width: 40px; height: auto; max-height: 44px; filter: none; flex: 0 0 auto; }
.brand span { min-width: 0; }
.brand strong { font-size: 16px; white-space: nowrap; }
.sidebar-nav { display: grid; flex: 1; align-content: start; gap: 3px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.nav-item { position: relative; min-height: 42px; gap: 12px; padding: 9px 11px; color: #425466; border-radius: 7px; font-weight: 500; }
.nav-item:hover { color: #256b54; background: #f2f8f4; }
.nav-item.is-active { color: #256b54; background: #e6f3ec; font-weight: 650; }
.nav-item.is-context { color: #256b54; font-weight: 650; }
.nav-item.is-disabled { cursor: not-allowed; opacity: .48; }
.nav-item.is-disabled:hover { color: #425466; background: transparent; }
.nav-icon { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.nav-icon path:first-child[d^="M4 13"] { fill: none; }
.nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-group { margin: 0; }
.nav-group summary { list-style: none; cursor: pointer; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-chevron { width: 16px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .15s; }
.nav-group[open] .nav-chevron { transform: rotate(90deg); }
.nav-submenu { display: grid; gap: 2px; margin: 2px 0 5px 43px; border-left: 1px solid var(--bsuth-border); }
.nav-submenu a { padding: 7px 10px; color: var(--bsuth-text-secondary); font-size: 12px; }
.nav-submenu a:hover { color: #2e7d63; }
.nav-submenu a.is-active { color: #256b54; background: #e6f3ec; font-weight: 700; }
.sidebar-foot { flex: 0 0 auto; margin-top: 16px; padding: 15px 9px 0; color: var(--bsuth-muted); border-top: 1px solid var(--bsuth-border); font-size: 11px; white-space: nowrap; }
.drawer-close, .mobile-menu-button { display: none; }
.sidebar-collapse, .mobile-menu-button, .drawer-close { border: 0; color: var(--bsuth-text-secondary); background: transparent; }
.sidebar-collapse { min-width: 38px; min-height: 38px; padding: 8px; }
.sidebar-collapse:hover, .mobile-menu-button:hover, .drawer-close:hover { color: #2e7d63; background: var(--bsuth-sage-50); }
.sidebar-collapse svg, .mobile-menu-button svg, .drawer-close svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.topbar { position: sticky; z-index: 25; top: 0; height: 72px; padding: 0 30px; }
.topbar-leading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-context strong { color: var(--bsuth-text); font-size: 15px; }
.environment-indicator { padding: 6px 10px; border-radius: 6px; color: #256b54; background: #e6f3ec; font-size: 11px; font-weight: 700; white-space: nowrap; }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 7px; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover { background: var(--bsuth-sage-50); }
.account-menu summary > svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.account-popover { position: absolute; top: calc(100% + 9px); right: 0; width: 160px; padding: 6px; border: 1px solid var(--bsuth-border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-soft); }
.account-popover button { width: 100%; justify-content: flex-start; color: var(--bsuth-text); background: transparent; }
.account-popover button:hover { color: #2e7d63; background: var(--bsuth-sage-50); }
.work-centre-menu { position: relative; }
.work-centre-menu > summary { position: relative; display: flex; min-width: 54px; min-height: 52px; padding: 5px 7px; align-items: center; justify-content: center; flex-direction: column; gap: 1px; color: var(--bsuth-text-secondary); border-radius: 7px; cursor: pointer; list-style: none; font-size: 10px; }
.work-centre-menu > summary::-webkit-details-marker { display: none; }
.work-centre-menu > summary:hover, .work-centre-menu[open] > summary { color: #256b54; background: var(--bsuth-sage-50); }
.work-centre-menu > summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.action-label { line-height: 1.2; }
.work-count { position: absolute; top: 0; right: 1px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; color: #fff; background: #2e7d63; border: 2px solid #fff; border-radius: 999px; font-size: 9px; font-weight: 750; }
.work-popover { position: absolute; top: calc(100% + 10px); right: 0; width: min(370px, calc(100vw - 24px)); overflow: hidden; color: var(--bsuth-text); background: #fff; border: 1px solid var(--bsuth-border); border-radius: 10px; box-shadow: 0 16px 38px rgba(31,41,51,.14); }
.work-popover > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px 12px; border-bottom: 1px solid var(--bsuth-border); }
.work-popover > header div { display: grid; }
.work-popover > header small, .work-popover-list span, .work-popover-list time { color: var(--bsuth-muted); font-size: 11px; }
.work-popover > header form, .work-notification form { margin: 0; }
.work-popover button { min-height: 28px; padding: 3px 7px; color: #256b54; background: transparent; font-size: 11px; }
.work-popover button:hover { background: var(--bsuth-sage-50); }
.work-popover-list { max-height: 340px; overflow-y: auto; }
.work-popover-list > a, .work-notification > a { display: grid; gap: 2px; padding: 12px 16px; color: var(--bsuth-text); border-bottom: 1px solid #edf1ef; }
.work-popover-list > a:hover, .work-notification > a:hover { background: var(--bsuth-sage-50); }
.work-popover-list strong { font-size: 12px; }
.work-notification { position: relative; border-bottom: 1px solid #edf1ef; }
.work-notification > a { padding-right: 70px; border: 0; }
.work-notification form { position: absolute; top: 8px; right: 8px; }
.work-empty { margin: 0; padding: 28px 16px; color: var(--bsuth-text-secondary); text-align: center; }
.work-popover > footer { padding: 10px 16px; text-align: center; background: var(--bsuth-surface-soft); }
.work-popover > footer a { font-size: 12px; font-weight: 650; }
.work-popover-actions { display: flex; align-items: center; justify-content: center; gap: 14px; }
.work-popover-actions form { margin: 0; }
.drawer-backdrop { display: none; }
.sidebar-collapsed { grid-template-columns: 76px minmax(0,1fr); }
.sidebar-collapsed .brand span, .sidebar-collapsed .nav-label, .sidebar-collapsed .sidebar-foot, .sidebar-collapsed .nav-chevron { display: none; }
.sidebar-collapsed .brand { justify-content: center; margin: 0; }
.sidebar-collapsed .brand img { width: 42px; max-width: 42px; }
.sidebar-collapsed .nav-item { justify-content: center; }
.sidebar-collapsed .nav-submenu { display: none; }
.sidebar-collapsed .sidebar-collapse svg { transform: rotate(180deg); }
.dashboard-welcome { margin-bottom: 30px; }
.dashboard-welcome h1 { margin: 4px 0 7px; font-size: 28px; line-height: 1.25; }
.dashboard-welcome p:last-child { margin: 0; color: var(--bsuth-text-secondary); }
.dashboard-section { margin-bottom: 28px; }
.section-heading { display: flex; justify-content: space-between; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 18px; }
.section-heading p, .dashboard-activity .panel-header p { margin: 3px 0 0; color: var(--bsuth-text-secondary); font-size: 13px; }
.attention-card { display: flex; align-items: center; gap: 14px; max-width: 560px; padding: 17px; border: 1px solid var(--bsuth-border); border-radius: 10px; color: var(--bsuth-text); background: #fff; box-shadow: var(--shadow-soft); }
.attention-card:hover { color: var(--bsuth-text); border-color: #a8d7bd; }
.attention-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; color: #2e7d63; background: #e6f3ec; border-radius: 9px; }
.attention-icon svg, .dashboard-empty svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.attention-card > span:nth-child(2) { display: grid; }
.attention-card small { margin-top: 2px; color: var(--bsuth-text-secondary); }
.card-arrow { margin-left: auto; color: #2e7d63; font-size: 18px; }
.dashboard-empty { display: flex; align-items: center; gap: 14px; padding: 22px; border: 1px dashed #cddbd3; border-radius: 10px; color: #2e7d63; background: #fbfdfc; }
.dashboard-empty strong { color: var(--bsuth-text); }
.dashboard-empty p { margin: 3px 0 0; color: var(--bsuth-text-secondary); font-size: 13px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-actions a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 13px; border: 1px solid var(--bsuth-border); border-radius: 8px; color: var(--bsuth-text); background: #fff; font-weight: 600; }
.quick-actions a:hover { color: #256b54; border-color: #a8d7bd; }
.quick-actions svg { width: 18px; height: 18px; color: #2e7d63; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.dashboard-activity { padding: 0; overflow: hidden; }
.dashboard-activity .panel-header { padding: 21px 22px 17px; margin: 0; }
.dashboard-activity table th:first-child, .dashboard-activity table td:first-child { padding-left: 22px; }
.dashboard-activity table th:last-child, .dashboard-activity table td:last-child { padding-right: 22px; text-align: right; }
.table-action { font-weight: 600; white-space: nowrap; }
.activity-empty { margin: 0 22px 22px; }
.payroll-run-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 15px; }
.payroll-run-card { padding: 19px; border: 1px solid var(--bsuth-border); border-radius: 10px; background: #fff; box-shadow: var(--shadow-soft); }
.payroll-run-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.payroll-run-card h3, .dashboard-record-list h3 { margin: 3px 0 0; font-size: 16px; }
.payroll-run-card dl { display: grid; gap: 9px; margin: 17px 0; }
.payroll-run-card dl div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid #edf1ef; }
.payroll-run-card dt { color: var(--bsuth-text-secondary); font-size: 12px; }
.payroll-run-card dd { margin: 0; text-align: right; font-size: 12px; font-weight: 650; }
.dashboard-record-list { display: grid; gap: 10px; }
.dashboard-record-list article { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border: 1px solid var(--bsuth-border); border-radius: 9px; background: #fff; }
.dashboard-record-list p { margin: 5px 0 0; color: var(--bsuth-text-secondary); font-size: 12px; }
.dashboard-record-list article > a, .dashboard-timeline a { flex: 0 0 auto; font-size: 12px; font-weight: 650; }
.dashboard-timeline { position: relative; display: grid; gap: 0; margin: 0; padding: 0 22px 20px 48px; list-style: none; }
.dashboard-timeline::before { content: ""; position: absolute; top: 7px; bottom: 28px; left: 29px; width: 2px; background: var(--bsuth-sage-100); }
.dashboard-timeline li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 10px 0; border-bottom: 1px solid #edf1ef; }
.dashboard-timeline li > span { position: absolute; left: -24px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--bsuth-sage-600); box-shadow: 0 0 0 1px var(--bsuth-sage-300); }
.dashboard-timeline li div { display: grid; }
.dashboard-timeline time { margin-top: 3px; color: var(--bsuth-muted); font-size: 11px; }
@media (max-width: 900px) {
  .app-shell, .sidebar-collapsed { display: block; }
  .app-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 280px); height: 100dvh; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 16px 0 38px rgba(31,41,51,.15); }
  .drawer-open { overflow: hidden; }
  .drawer-open .app-sidebar { transform: translateX(0); }
  .drawer-open .drawer-backdrop { display: block; position: fixed; z-index: 35; inset: 0; background: rgba(31,41,51,.35); }
  .drawer-close, .mobile-menu-button { display: inline-flex; }
  .drawer-close { min-width: 38px; min-height: 38px; padding: 8px; }
  .sidebar-collapse { display: none; }
  .sidebar-collapsed .brand span, .sidebar-collapsed .nav-label, .sidebar-collapsed .sidebar-foot, .sidebar-collapsed .nav-chevron { display: initial; }
  .sidebar-collapsed .brand { justify-content: flex-start; margin: 0 7px; }
  .sidebar-collapsed .nav-item { justify-content: flex-start; }
  .topbar { padding: 0 16px; }
  .content-frame { padding: 26px 18px; }
  .content-frame, .content-frame main { min-width: 0; max-width: 100%; overflow-x: clip; }
  .profile-tabs { width: 100%; max-width: calc(100vw - 36px); }
  .content-frame main:has(.employee-profile-sticky-nav) { overflow-x: clip; }
}
@media (max-width: 620px) {
  .topbar { height: 64px; }
  .profile-tabs, .employee-profile-sticky-nav { top: 64px; }
  .employee-profile-actions { justify-content: stretch; }
  .employee-profile-actions .button { flex: 1 1 auto; }
  .topbar-context, .user-identity, .account-menu summary > svg { display: none; }
  .topbar-actions { gap: 7px; }
  .work-centre-menu > summary { min-width: 36px; min-height: 42px; padding: 5px; }
  .work-centre-menu .action-label { display: none; }
  .work-popover { position: fixed; top: 70px; right: 10px; left: 10px; width: auto; }
  .work-count { top: -2px; right: -3px; }
  .environment-indicator { max-width: 155px; overflow: hidden; text-overflow: ellipsis; }
  .dashboard-welcome h1 { font-size: 24px; }
  .dashboard-activity .panel-header { align-items: flex-start; }
  .dashboard-activity .button { padding-inline: 0; }
  .dashboard-record-list article, .dashboard-timeline li { align-items: flex-start; flex-direction: column; gap: 9px; }
  .payroll-run-card header { flex-wrap: wrap; }
}

/* Authenticated environment selection */
.environment-page { min-height: 100vh; display: grid; place-items: center; padding: 42px 24px; }
.environment-layout { width: min(100%, 720px); }
.environment-header { position: relative; margin-bottom: 25px; }
.environment-brand { margin-bottom: 18px; }
.environment-brand img { width: 68px; height: 62px; }
.environment-session { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--bsuth-text-secondary); font-size: 13px; }
.environment-session p { margin: 0; }
.environment-session form { margin: 0; }
.sign-out-button { min-height: 36px; padding: 6px 11px; border: 1px solid var(--bsuth-border); color: #2e7d63; background: #fff; font-size: 12px; }
.sign-out-button:hover { border-color: var(--bsuth-sage-300); background: var(--bsuth-sage-50); }
.environment-panel { padding: 34px; border: 1px solid var(--bsuth-border); border-radius: 12px; background: var(--bsuth-surface); box-shadow: 0 10px 30px rgba(31,41,51,.07); }
.environment-intro { margin-bottom: 26px; text-align: center; }
.environment-intro h2 { margin: 0; font-size: 22px; line-height: 1.35; }
.environment-intro p { margin: 7px 0 0; color: var(--bsuth-text-secondary); }
.environment-grid { display: grid; justify-content: center; }
.environment-card { width: min(100%, 440px); padding: 27px; border: 1px solid var(--bsuth-border); border-radius: 10px; background: #fff; text-align: center; transition: border-color .16s, box-shadow .16s, transform .16s; }
.environment-card:hover { border-color: #a8d7bd; box-shadow: 0 9px 22px rgba(46,125,99,.08); transform: translateY(-2px); }
.environment-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 13px; border-radius: 12px; color: #2e7d63; background: #e6f3ec; }
.environment-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.environment-badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; color: #256b54; background: #e6f3ec; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.environment-card h3 { margin: 12px 0 17px; color: #2e7d63; font-size: 19px; }
.environment-card h4 { margin: 0 0 7px; color: var(--bsuth-text); font-size: 14px; }
.environment-card > p { min-height: 44px; margin: 0 0 22px; color: var(--bsuth-text-secondary); font-size: 13px; }
.environment-form { margin: 0; }
.environment-open { width: 100%; min-height: 48px; color: #fff; background: #2e7d63; box-shadow: 0 2px 5px rgba(46,125,99,.16); }
.environment-open:hover { color: #fff; background: #256b54; }
.environment-open:disabled { cursor: wait; opacity: .78; }
.environment-open.is-loading .button-label { display: none; }
.environment-open.is-loading .button-loading { display: inline-flex; }
.environment-error { width: min(100%, 440px); margin: 0 auto 20px; }
@media (max-width: 700px) {
  .environment-page { place-items: start center; padding: 28px 16px; }
  .environment-panel { padding: 27px 20px; }
  .environment-brand { margin-bottom: 15px; }
  .environment-session { flex-direction: column; gap: 9px; }
  .environment-card { padding: 24px 19px; }
  .environment-card > p { min-height: 0; }
}

/* Version 1 payroll-run workspace */
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; margin: 18px 0; }
.summary-card { display: flex; min-height: 86px; padding: 16px; border: 1px solid var(--bsuth-border); border-radius: 10px; background: #f8fbf9; flex-direction: column; justify-content: center; gap: 5px; }
.summary-card strong { color: var(--bsuth-text); font-size: 22px; line-height: 1.15; }
.summary-card span { color: var(--bsuth-text-secondary); font-size: 13px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-actions form { display: inline-flex; margin: 0; }

/* Compact entry pages and role-aware dashboard */
.login-page { min-height: 100dvh; padding: 24px; }
.login-layout { width: min(100%, 440px); }
.login-card { padding: 28px 32px; border-radius: 16px; }
.login-brand { margin-bottom: 24px; }
.login-brand img { width: 58px; height: 58px; margin-bottom: 9px; }
.login-brand h1 { font-size: 25px; }
.login-intro { margin-bottom: 20px; }
.login-field { margin-bottom: 15px; }
.login-field input { height: 46px; }
.login-submit { min-height: 46px; }
.login-card > p:last-child { margin: 18px 0 0; text-align: center; }
.login-layout > .login-footer { margin-top: 12px; font-size: 10px; opacity: .72; }
.account-setup-secondary { display: flex; justify-content: center; margin: 18px 0 0; }
.account-setup-secondary .button, .account-setup-actions .button-secondary { min-width: 132px; }
.account-setup-actions { display: grid; row-gap: 18px; }
.account-setup-actions .login-submit { margin-bottom: 0; }
.account-setup-actions .button-secondary { justify-self: center; }

/* Sidebar logo toggle and labelled compact navigation */
.sidebar-toggle { position: relative; width: 100%; min-height: 50px; padding: 4px 6px; border: 0; border-radius: 8px; color: #2e7d63; background: transparent; text-align: left; cursor: pointer; }
.sidebar-toggle:hover, .sidebar-toggle:focus-visible { color: #256b54; background: var(--bsuth-sage-50); }
.sidebar-tooltip { position: absolute; z-index: 80; top: 50%; left: calc(100% + 10px); display: block; padding: 6px 9px; border-radius: 6px; color: #fff; background: #1f2933; font-size: 11px; font-weight: 600; line-height: 1.2; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(-50%); transition: opacity .12s ease; }
.sidebar-toggle:hover .sidebar-tooltip, .sidebar-toggle:focus .sidebar-tooltip { opacity: 1; }
.app-shell.sidebar-collapsed { grid-template-columns: 112px minmax(0, 1fr); }
.sidebar-collapsed .app-sidebar { padding: 14px 8px 10px; }
.sidebar-collapsed .sidebar-head { min-height: 62px; margin-bottom: 9px; }
.sidebar-collapsed .sidebar-toggle { min-height: 62px; justify-content: center; margin: 0; padding: 5px; }
.sidebar-collapsed .sidebar-toggle .brand-copy { display: none; }
.sidebar-collapsed .sidebar-toggle .sidebar-tooltip { display: block; }
.sidebar-collapsed .sidebar-toggle img { width: 46px; max-width: 46px; }
.sidebar-collapsed .sidebar-nav { gap: 4px; }
.sidebar-collapsed .nav-item { min-height: 54px; padding: 5px 4px; flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
.sidebar-collapsed .nav-icon { width: 21px; height: 21px; }
.sidebar-collapsed .nav-label { display: block; width: 100%; overflow: visible; color: inherit; font-size: 12px; line-height: 1.15; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.sidebar-collapsed .nav-chevron { position: absolute; top: 8px; right: 5px; display: block; width: 13px; margin: 0; }
.sidebar-collapsed .nav-submenu { display: none; }
.sidebar-collapsed .sidebar-foot { display: flex; gap: 1px; margin-top: 8px; padding: 7px 2px 0; white-space: normal; }
.sidebar-collapsed .sidebar-foot img { width: 34px; }
.sidebar-collapsed .sidebar-foot span { font-size: 8px; line-height: 1.1; }
.dashboard-welcome { margin: 4px 0 14px; }
.dashboard-welcome h1 { margin-bottom: 0; }

@media (max-width: 900px) {
  .app-shell.sidebar-collapsed { display: block; }
  .sidebar-collapsed .app-sidebar { padding: 18px 12px 12px; }
  .sidebar-collapsed .sidebar-head { min-height: 50px; margin-bottom: 14px; }
  .sidebar-collapsed .sidebar-toggle { min-height: 50px; justify-content: flex-start; flex-direction: row; gap: 10px; margin: 0 5px; padding: 4px 6px; text-align: left; }
  .sidebar-collapsed .sidebar-toggle .brand-copy { display: flex; }
  .sidebar-collapsed .sidebar-toggle .sidebar-tooltip { display: none; }
  .sidebar-collapsed .sidebar-toggle img { width: 40px; max-width: 40px; }
  .sidebar-collapsed .nav-item { min-height: 42px; padding: 9px 11px; flex-direction: row; justify-content: flex-start; gap: 12px; text-align: left; }
  .sidebar-collapsed .nav-label { width: auto; font-size: 14px; line-height: inherit; white-space: nowrap; overflow-wrap: normal; }
  .sidebar-collapsed .nav-chevron { position: static; display: block; width: 16px; margin-left: auto; }
  .sidebar-collapsed .sidebar-foot { display: flex; gap: 2px; margin-top: 12px; padding: 10px 5px 0; white-space: nowrap; }
  .sidebar-collapsed .sidebar-foot img { width: 59px; }
  .sidebar-collapsed .sidebar-foot span { font-size: 9px; line-height: 1.15; }
  .sidebar-tooltip { display: none; }
}

.environment-page { min-height: 100dvh; padding: 24px; }
.environment-layout { width: min(100%, 580px); }
.environment-shell-card { padding: 28px 32px 30px; border: 1px solid var(--bsuth-border); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(31,41,51,.07); }
.environment-header { margin-bottom: 26px; text-align: center; }
.environment-brand { margin-bottom: 12px; }
.environment-brand img { width: 58px; height: 58px; margin-bottom: 8px; }
.environment-session { flex-direction: column; gap: 3px; font-size: 14px; }
.sign-out-button { min-height: 30px; padding: 2px 9px; border: 0; font-size: 14px; }
.environment-panel { padding: 0; border: 0; box-shadow: none; }
.environment-intro { margin-bottom: 22px; }
.environment-intro h2 { font-size: 27px; }
.environment-card { width: min(100%, 420px); padding: 24px 26px; background: #fbfdfc; }
.environment-card h3 { margin: 11px 0 6px; font-size: 21px; }
.environment-card > p { min-height: 0; margin-bottom: 21px; font-size: 14px; }
.environment-icon { width: 45px; height: 45px; margin-bottom: 10px; }
.environment-icon svg { width: 25px; height: 25px; }
.environment-shell-card > .login-footer { margin: 16px 0 -12px; font-size: 10px; opacity: .65; }

.app-shell { grid-template-columns: 224px minmax(0, 1fr); }
.app-sidebar { padding: 18px 12px 12px; }
.sidebar-head { min-height: 50px; margin-bottom: 14px; }
.brand { margin-inline: 5px; }
.sidebar-foot { display: flex; align-items: center; flex-direction: column; gap: 2px; margin-top: 12px; padding: 10px 5px 0; text-align: center; }
.sidebar-foot img { display: block; width: 59px; height: auto; object-fit: contain; }
.sidebar-foot span { font-size: 9px; line-height: 1.15; }
.sidebar-collapsed .sidebar-foot { display: none; }
.topbar { height: 68px; padding-inline: 26px; }
.account-display-name { max-width: 190px; overflow: hidden; text-overflow: ellipsis; color: var(--bsuth-text); font-size: 13px; white-space: nowrap; }
.content-frame { width: 100%; max-width: 1600px; padding: 24px 28px 28px; }
.dashboard-welcome { margin: 4px 0 22px; text-align: center; }
.dashboard-welcome h1 { margin: 0 0 4px; font-size: clamp(25px, 2.2vw, 32px); }
.dashboard-welcome p { margin: 0; color: var(--bsuth-text-secondary); font-size: 15px; }
.dashboard-period { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin: 0 0 14px; }
.dashboard-period label { color: var(--bsuth-text-secondary); font-size: 12px; font-weight: 650; }
.dashboard-period select { min-width: 220px; min-height: 40px; padding: 8px 34px 8px 12px; border: 1px solid var(--bsuth-border); border-radius: 8px; background: #fff; }
.role-dashboard { margin-bottom: 22px; }
.dashboard-scope-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 12px; }
.dashboard-scope-heading h2 { margin: 0; color: var(--bsuth-text-secondary); font-size: 15px; font-weight: 500; }
.dashboard-scope-heading p { margin: 2px 0 0; color: var(--bsuth-muted); font-size: 11px; }
.dashboard-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.dashboard-summary-card { display: flex; min-height: 128px; padding: 18px 20px; border: 1px solid var(--bsuth-border); border-radius: 11px; background: #fff; flex-direction: column; }
.dashboard-summary-card > span { color: var(--bsuth-text-secondary); font-size: 13px; }
.dashboard-summary-card > strong { margin: 10px 0 auto; font-size: 30px; line-height: 1.1; }
.dashboard-summary-card a, .dashboard-summary-card small { margin-top: 13px; color: var(--bsuth-sage-700); font-size: 12px; }
.dashboard-panels { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 16px; }
.dashboard-panel { overflow: hidden; border: 1px solid var(--bsuth-border); border-radius: 11px; background: #fff; }
.dashboard-panel > header { padding: 17px 20px 13px; border-bottom: 1px solid var(--bsuth-border); }
.dashboard-panel > header h2 { margin: 0; font-size: 19px; }
.dashboard-panel-list article { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; padding: 13px 20px; border-bottom: 1px solid var(--bsuth-border); }
.dashboard-panel-list article:last-child { border-bottom: 0; }
.dashboard-panel-list article strong { font-size: 14px; }
.dashboard-panel-list article p { margin: 3px 0 0; color: var(--bsuth-text-secondary); font-size: 12px; }
.dashboard-panel-list article > a { flex: 0 0 auto; font-size: 12px; }
.dashboard-calm-empty { min-height: 112px; padding: 24px 20px; color: var(--bsuth-text-secondary); }
.dashboard-calm-empty strong { color: var(--bsuth-text); }
.dashboard-calm-empty p { margin: 4px 0 0; font-size: 12px; }
.dashboard-up-to-date { color: var(--bsuth-sage-700); background: #fbfdfc; }
.dashboard-run-progress { display: grid; gap: 4px; margin-top: 10px; }
.dashboard-run-progress progress { width: min(100%, 520px); height: 8px; accent-color: var(--bsuth-sage-600); }
.dashboard-run-progress small { color: var(--bsuth-text-secondary); font-size: 10px; }
.dashboard-quick { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; border: 1px solid var(--bsuth-border); border-radius: 11px; background: #fff; }
.dashboard-quick h2 { margin: 0; font-size: 15px; }
.dashboard-quick p { margin: 2px 0 0; color: var(--bsuth-text-secondary); font-size: 11px; }
.dashboard-quick nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.dashboard-quick a { font-size: 12px; }

@media (max-width: 1100px) {
  .dashboard-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-panels { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .topbar-leading { position: relative; z-index: 2; flex: 0 0 auto; }
  .topbar-actions { min-width: 0; margin-left: auto; }
  .environment-indicator { display: none; }
  .login-page, .environment-page { place-items: start center; padding: 16px; }
  .login-card, .environment-shell-card { padding: 24px 20px; }
  .environment-intro h2 { font-size: 24px; }
  .content-frame { padding: 20px 15px; }
  .dashboard-period { align-items: stretch; flex-direction: column; }
  .dashboard-period select { width: 100%; min-width: 0; }
  .dashboard-summary-grid { grid-template-columns: 1fr; }
  .dashboard-summary-card { min-height: 112px; }
  .dashboard-panel-list article { align-items: flex-start; flex-direction: column; gap: 7px; }
  .dashboard-quick { align-items: flex-start; flex-direction: column; }
  .dashboard-quick nav { justify-content: flex-start; }
  .account-display-name { display: none; }
}
@media (min-resolution: 1.9dppx) and (max-width: 900px) {
  .login-page, .environment-page { place-items: start center; }
}

/* Keep these shell states after the compact dashboard refinements above. */
.sidebar-collapsed .sidebar-foot { display: flex; gap: 1px; margin-top: 8px; padding: 7px 2px 0; white-space: normal; }
.sidebar-collapsed .sidebar-foot img { width: 34px; }
.sidebar-collapsed .sidebar-foot span { font-size: 8px; line-height: 1.1; }
.dashboard-welcome { margin: 4px 0 14px; }
.dashboard-welcome h1 { margin-bottom: 0; }

@media (max-width: 900px) {
  .sidebar-collapsed .app-sidebar { padding: 18px 12px 12px; }
  .sidebar-collapsed .sidebar-head { min-height: 50px; margin-bottom: 14px; }
  .sidebar-collapsed .sidebar-toggle { min-height: 50px; justify-content: flex-start; flex-direction: row; gap: 10px; margin: 0 5px; padding: 4px 6px; text-align: left; }
  .sidebar-collapsed .sidebar-toggle .brand-copy { display: flex; }
  .sidebar-collapsed .sidebar-toggle img { width: 40px; max-width: 40px; }
  .sidebar-collapsed .nav-item { min-height: 42px; padding: 9px 11px; flex-direction: row; justify-content: flex-start; gap: 12px; text-align: left; }
  .sidebar-collapsed .nav-label { width: auto; font-size: 14px; line-height: inherit; white-space: nowrap; overflow-wrap: normal; }
  .sidebar-collapsed .nav-chevron { position: static; display: block; width: 16px; margin-left: auto; }
  .sidebar-collapsed .sidebar-foot { display: flex; gap: 2px; margin-top: 12px; padding: 10px 5px 0; white-space: nowrap; }
  .sidebar-collapsed .sidebar-foot img { width: 59px; }
  .sidebar-collapsed .sidebar-foot span { font-size: 9px; line-height: 1.15; }
}

/* Compact employee directory with viewport-sticky column headings. */
.employee-directory-page .breadcrumbs { margin-bottom: 6px; }
.employee-directory-page .page-header { align-items: center; margin-bottom: 10px; }
.employee-directory-page .page-header h1 { font-size: clamp(24px, 2.2vw, 29px); }
.employee-directory-page .page-header p { margin-top: 3px; font-size: 12px; }
.employee-directory-page .summary-cards { gap: 9px; margin-bottom: 10px; }
.employee-directory-page .summary-card { display: flex; align-items: center; height: 58px; min-height: 58px; gap: 9px; padding: 6px 10px; }
.employee-directory-page .summary-card strong { flex: 0 0 auto; font-size: 21px; }
.employee-directory-page .summary-card span { line-height: 1.25; }
.employee-directory-page .directory-filters { grid-template-columns: minmax(185px, 1.5fr) repeat(6, minmax(105px, 1fr)) auto; gap: 8px; margin-bottom: 8px; padding: 6px; }
.employee-directory-page .directory-filters label { gap: 2px; }
.employee-directory-page .directory-filters label > span { font-size: 10px; line-height: 1.1; white-space: nowrap; }
.employee-directory-page .directory-filters input,
.employee-directory-page .directory-filters select { width: 100%; min-width: 0; min-height: 34px; padding: 5px 8px; }
.employee-directory-page .filter-actions { gap: 6px; white-space: nowrap; }
.employee-directory-page .filter-actions .button { min-height: 34px; padding: 6px 9px; font-size: 12px; }
.employee-directory-page .employee-table { padding: 0; overflow: visible; }
.employee-directory-page .employee-table .table-wrap { overflow: visible; }
.employee-directory-page .employee-table thead th { position: sticky; z-index: 20; top: 68px; padding-block: 10px; background: #f6f9f7; box-shadow: inset 0 -1px 0 var(--bsuth-border); }
.employee-directory-page .employee-table tbody td { padding-block: 10px; }
.employee-directory-page .employee-table .table-footer { padding: 12px 14px; }

@media (max-width: 1200px) {
  .employee-directory-page .directory-filters { grid-template-columns: minmax(200px, 1.5fr) repeat(3, minmax(130px, 1fr)); }
  .employee-directory-page .employee-table .table-wrap { max-height: calc(100dvh - 76px); overflow: auto; }
  .employee-directory-page .employee-table thead th { top: 0; }
}

@media (max-width: 620px) {
  .employee-directory-page .breadcrumbs { margin-bottom: 4px; }
  .employee-directory-page .page-header { gap: 8px; margin-bottom: 8px; }
  .employee-directory-page .page-header h1 { font-size: 23px; }
  .employee-directory-page .summary-cards { gap: 7px; }
  .employee-directory-page .summary-card { height: 50px; min-height: 50px; padding: 5px 8px; }
  .employee-directory-page .summary-card strong { font-size: 18px; }
  .employee-directory-page .directory-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; }
  .employee-directory-page .directory-filters label:first-of-type,
  .employee-directory-page .filter-actions { grid-column: 1 / -1; }
  .employee-directory-page .filter-actions .button { flex: 1; }
}

/* Shared compact treatment for operational pages that lead into a data table. */
.compact-table-page > .breadcrumbs { margin-bottom: 6px; }
.compact-table-page > .page-header,
.compact-table-page .pay-item-centre > .page-header { align-items: center; margin-bottom: 10px; }
.compact-table-page > .page-header h1,
.compact-table-page .pay-item-centre > .page-header h1,
.compact-table-page > .workflow-hero h1 { font-size: clamp(24px, 2.2vw, 29px); }
.compact-table-page > .page-header p,
.compact-table-page .pay-item-centre > .page-header p,
.compact-table-page > .workflow-hero .lede { margin-top: 3px; font-size: 12px; }
.compact-table-page > .workflow-hero { min-height: 0; margin-bottom: 10px; padding: 0; background: transparent; }
.compact-table-page > .profile-tabs,
.compact-table-page .pay-item-centre > .profile-tabs { gap: 22px; margin-bottom: 10px; }
.compact-table-page > .profile-tabs a,
.compact-table-page .pay-item-centre > .profile-tabs a { padding-block: 8px; }
.compact-table-page .summary-cards,
.compact-table-page .summary-grid { gap: 9px; margin-bottom: 10px; }
.compact-table-page .summary-card { min-height: 58px; padding: 8px 11px; }
.compact-table-page .summary-card strong { font-size: 21px; }
.compact-table-page .change-centre,
.compact-table-page .context-strip { margin-bottom: 10px; padding-block: 9px; }
.compact-table-page .panel { margin-bottom: 10px; padding: 14px; }
.compact-table-page .panel:has(> .table-wrap) { padding: 0; }
.compact-table-page .panel:has(> .table-wrap) > :not(.table-wrap):not(.pagination) { margin-inline: 14px; }
.compact-table-page .section-heading,
.compact-table-page .panel-header { margin-bottom: 10px; }
.compact-table-page .sticky-data-table th,
.compact-table-page .sticky-data-table td { padding-block: 10px; }
.compact-table-page .sticky-data-table thead th { position: sticky; z-index: 20; background: #f6f9f7; box-shadow: inset 0 -1px 0 var(--bsuth-border); }
.compact-table-page .sticky-viewport-table { overflow: visible; }
.compact-table-page .sticky-viewport-table .sticky-data-table thead th { top: 68px; }
.compact-table-page .sticky-scroll-table { max-height: calc(100dvh - 84px); overflow: auto; }
.compact-table-page .sticky-scroll-table .sticky-data-table thead th { top: 0; }

/* A consistent filter row: equal controls, clean gutters and aligned actions. */
#main-content .compact-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
  gap: 9px;
  margin-bottom: 10px;
  padding: 9px;
}
#main-content section.panel > .compact-filter-bar { margin: 0; padding: 0; }
#main-content .compact-filter-bar > div,
#main-content .compact-filter-bar > label { display: grid; align-content: end; gap: 4px; min-width: 0; margin: 0; }
#main-content .compact-filter-bar label { color: var(--bsuth-text-secondary); font-size: 11px; }
#main-content .compact-filter-bar input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
#main-content .compact-filter-bar select { width: 100%; min-width: 0; height: 38px; min-height: 38px; margin: 0; padding: 7px 9px; border: 1px solid var(--bsuth-border); border-radius: 7px; background: #fff; }
#main-content .compact-filter-bar > .button,
#main-content .compact-filter-bar > button,
#main-content .compact-filter-bar .form-actions .button,
#main-content .compact-filter-bar .filter-actions .button { min-height: 38px; }
#main-content .compact-filter-bar .form-actions,
#main-content .compact-filter-bar .filter-actions { display: flex; align-items: center; gap: 8px; min-width: max-content; }
#main-content .directory-filters.compact-filter-bar { display: grid; }
.compact-table-page .filter-disclosure { margin-block: 8px !important; }
.compact-table-page .filter-disclosure > summary { min-height: 36px !important; padding-block: 7px !important; }
.compact-table-page .pay-item-centre .compact-filter-bar { grid-template-columns: minmax(170px, 1.5fr) repeat(8, minmax(92px, 1fr)) minmax(100px, auto); gap: 7px; }
.compact-table-page .pay-item-centre .compact-filter-bar label { font-size: 10px; line-height: 1.2; }
.compact-table-page .pay-item-centre .compact-filter-bar input:not([type="hidden"]),
.compact-table-page .pay-item-centre .compact-filter-bar select { padding-inline: 6px; }

@media (max-width: 900px) {
  .compact-table-page .sticky-viewport-table { max-height: calc(100dvh - 72px); overflow: auto; }
  .compact-table-page .sticky-viewport-table .sticky-data-table thead th { top: 0; }
  #main-content .compact-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-table-page .pay-item-centre .compact-filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .compact-table-page > .page-header,
  .compact-table-page .pay-item-centre > .page-header { align-items: flex-start; gap: 8px; margin-bottom: 8px; }
  .compact-table-page .summary-card { min-height: 50px; padding: 6px 8px; }
  #main-content .compact-filter-bar { grid-template-columns: 1fr; padding: 8px; }
  .compact-table-page .pay-item-centre .compact-filter-bar { grid-template-columns: 1fr; }
  #main-content section.panel > .compact-filter-bar { padding: 0; }
  #main-content .compact-filter-bar .form-actions,
  #main-content .compact-filter-bar .filter-actions { min-width: 0; flex-wrap: wrap; }
}

/* Payroll period/run creation: compact, aligned fields with one clear action row. */
.payroll-record-panel { max-width: 860px; padding: 20px; }
.payroll-record-form { display: grid; gap: 18px; }
.payroll-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.payroll-record-field { display: grid; align-content: start; gap: 5px; min-width: 0; }
.payroll-record-field.is-wide { grid-column: 1 / -1; }
.payroll-record-field label { color: var(--bsuth-text); font-size: 12px; font-weight: 650; }
.payroll-record-field input,
.payroll-record-field select,
.payroll-record-field textarea { width: 100%; min-width: 0; min-height: 42px; margin: 0; padding: 9px 11px; border: 1px solid var(--bsuth-border); border-radius: 7px; color: var(--bsuth-text); background: #fff; }
.payroll-record-field textarea { min-height: 82px; resize: vertical; }
.payroll-record-field input:focus,
.payroll-record-field select:focus,
.payroll-record-field textarea:focus { border-color: var(--bsuth-sage-600); outline: 3px solid rgba(46,125,99,.13); }
.payroll-record-actions { justify-content: flex-end; padding-top: 14px; border-top: 1px solid var(--bsuth-border); }
@media (max-width: 620px) {
  .payroll-record-panel { padding: 14px; }
  .payroll-record-grid { grid-template-columns: 1fr; }
  .payroll-record-field.is-wide { grid-column: auto; }
  .payroll-record-actions { justify-content: stretch; }
  .payroll-record-actions .button { flex: 1 1 auto; }
}

/* Draft payroll run continuation and employee management. */
.payroll-run-lock-note { max-width: 860px; align-items: flex-start; }
.payroll-run-lock-note strong { white-space: nowrap; }
.payroll-employee-add-form { display: grid; gap: 9px; }
.payroll-employee-add-form > label { color: var(--bsuth-text-secondary); font-size: 11px; font-weight: 650; }
.payroll-employee-add-form select { width: 100%; min-height: 190px; padding: 7px; border: 1px solid var(--bsuth-border); border-radius: 7px; background: #fff; }
.payroll-employee-add-form option { padding: 6px 8px; }
td > form { margin: 0; }
@media (max-width: 620px) {
  .payroll-run-lock-note { display: grid; gap: 4px; }
  .payroll-run-lock-note strong { white-space: normal; }
}

/* Setup controls keep their spacing when shared compact tables remove card padding. */
#main-content section.panel.setup-reference-card > .setup-reference-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0;
    padding: 12px 16px 8px;
}
.setup-section-field { display: grid; gap: 4px; flex: 0 1 360px; min-width: 0; }
.setup-section-field label { margin: 0; color: var(--bsuth-text-secondary); font-size: 13px; font-weight: 600; }
.setup-section-field select {
    width: 100%; min-width: 0; min-height: 38px; margin: 0;
    padding: 7px 36px 7px 12px; border: 1px solid var(--bsuth-border);
    border-radius: 8px; background-color: #fff; color: var(--bsuth-text); font: inherit;
}
.setup-section-field select:focus-visible { outline: 2px solid var(--bsuth-sage-600); outline-offset: 2px; }
.setup-reference-toolbar .setup-propose-button { min-height: 38px; margin: 0; text-align: center; }
#main-content section.panel.setup-reference-card > .directory-filters.compact-filter-bar,
#main-content section.panel.setup-reference-card > .directory-filters {
    display: grid; grid-template-columns: minmax(180px, 420px) auto;
    align-items: end; justify-content: start; gap: 12px;
    margin: 0 16px 12px; padding: 0; width: auto; min-width: 0;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.setup-reference-card > .directory-filters > label { display: grid; gap: 4px; margin: 0; }
.setup-reference-card > .table-wrap { border-top: 1px solid var(--bsuth-border); }
.setup-reference-card tbody td { line-height: 1.6; }
.setup-reference-card tbody td:last-child a { display: inline-block; padding-block: 3px; }
.setup-reference-card > .pagination { padding: 16px 20px; margin: 0; }
@media (max-width: 640px) {
    #main-content section.panel.setup-reference-card > .setup-reference-toolbar { padding: 10px 12px 8px; gap: 8px; }
    .setup-section-field { flex-basis: 100%; }
    .setup-reference-toolbar .setup-propose-button { width: 100%; }
    #main-content section.panel.setup-reference-card > .directory-filters.compact-filter-bar,
    #main-content section.panel.setup-reference-card > .directory-filters { grid-template-columns: minmax(0, 1fr); margin: 0 12px 10px; padding: 0; }
}
/* Read-only stage indicators: circles and connecting lines, never button pills. */
.process-stages { display:flex; list-style:none; padding:16px 0; margin:12px 0 22px; gap:0; color:#63748a; }
.process-stages > li { display:flex; align-items:center; flex:1; min-width:0; gap:10px; font-size:14px; background:transparent; border:0; border-radius:0; cursor:default; }
.process-stages > li:not(:last-child)::after { content:""; height:2px; flex:1; margin:0 16px 0 6px; background:#d3dfdc; }
.process-stages .process-number { display:grid; place-items:center; flex:0 0 34px; width:34px; height:34px; border:2px solid #96aaa5; border-radius:50%; background:#fff; font-weight:700; }
.process-stages > li[aria-current="step"] { color:#17694d; font-weight:700; }
.process-stages > li[aria-current="step"] .process-number { background:#4b9277; border-color:#4b9277; color:white; }
@media(max-width:650px) { .process-stages { gap:8px; } .process-stages > li { flex-direction:column; font-size:12px; gap:6px; text-align:center; } .process-stages > li:not(:last-child)::after { display:none; } }

/* Centre the stage sequence and keep every label directly below its circle. */
.process-stages { width:min(100%, 760px); margin:16px auto 24px; padding:12px 0; justify-content:center; gap:0; }
.process-stages > li { position:relative; flex:1 1 0; flex-direction:column; align-items:center; gap:5px; text-align:center; }
.process-stages .process-number { position:relative; z-index:1; flex:0 0 34px; }
.process-stages > li:not(:last-child)::after { display:block; position:absolute; top:16px; left:calc(50% + 23px); width:calc(100% - 46px); height:2px; margin:0; z-index:0; }
@media(max-width:650px) { .process-stages { gap:0; } .process-stages > li { gap:5px; } }

.amendment-print-actions { margin-bottom:24px; }
/* Internal Audit Workbench */
.audit-page-head { align-items: end; }
.audit-head-actions { display:flex; gap:.75rem; }
.audit-selectors { display:grid; grid-template-columns:repeat(3,minmax(12rem,16rem)); gap:1rem; align-items:end; }
.audit-selectors label,.audit-filters label,.audit-decision label { display:grid; gap:.35rem; font-weight:600; }
.audit-baseline { margin:.5rem 0 1rem; color:var(--muted,#536987); }
.audit-metrics { display:grid; grid-template-columns:repeat(5,1fr); gap:1rem; margin:1rem 0; }
.audit-metrics article { border:1px solid #ccd9d5; border-radius:7px; padding:1rem 1.25rem; background:#fff; }
.audit-metrics span { display:block; color:#53627a; font-weight:700; }
.audit-metrics strong { display:block; margin-top:.35rem; font-size:2rem; color:#071d4f; }
.audit-filters { display:grid; grid-template-columns:2fr repeat(3,1fr); gap:1rem; align-items:end; margin-bottom:0; border-radius:8px 8px 0 0; }
.audit-table-card { margin-top:0; border-radius:0 0 8px 8px; }
.audit-table th { position:sticky; top:68px; z-index:2; background:#f1f6f4; }
.audit-status { display:inline-block; padding:.3rem .65rem; border-radius:5px; font-weight:700; white-space:nowrap; }
.audit-awaiting { color:#a60000; text-decoration:underline; text-decoration-thickness:2px; }
.audit-status.audit-awaiting { background:#ffe1e1; }
.audit-checked { color:#087148; }
.audit-status.audit-checked { background:#d5f7e3; }
.audit-queried { color:#8a5700; }
.audit-status.audit-queried { background:#ffedc4; }
.audit-invalid { color:#a60000; }
.audit-pagination { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding-top:1rem; }
.audit-total-note { color:#334a65; padding:.8rem; background:#f3f7f6; }
.audit-decision form { display:grid; gap:1rem; }
.audit-decision textarea { width:100%; }
.audit-table details pre { max-width:34rem; white-space:pre-wrap; overflow-wrap:anywhere; font-size:.75rem; }
@media(max-width:900px){.audit-selectors,.audit-metrics,.audit-filters{grid-template-columns:1fr}.audit-head-actions{flex-wrap:wrap}.audit-pagination{align-items:flex-start;flex-direction:column}.audit-table th{top:0}}
.audit-case-head h2 { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; margin:.35rem 0; }
.audit-case-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(19rem,1fr); gap:1rem; align-items:start; }
.audit-change-panel,.audit-evidence-panel { margin:0; }
.audit-evidence-panel details { border:1px solid #d7e0de; border-radius:6px; padding:.7rem; margin:.5rem 0; }
.audit-evidence-panel pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:.72rem; max-height:16rem; overflow:auto; }
.audit-timeline { border-left:2px solid #ccd7d4; margin-left:.6rem; padding-left:1.5rem; }
.audit-timeline li { margin:0 0 1.25rem; padding-left:.25rem; }
.audit-resolution form,.audit-resolution label { display:grid; gap:.6rem; }
.audit-resolution label:has(input[type=checkbox]) { display:flex; align-items:center; }
.audit-case-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.75rem; margin-top:1rem; }
.button-warning { border-color:#b66c00; color:#8a5200; background:#fff; }
@media(max-width:900px){.audit-case-grid{grid-template-columns:1fr}.audit-case-actions{justify-content:stretch}.audit-case-actions .button{flex:1}}

/* Audit Workbench — mockup-aligned layout */
.audit-toolbar { display:flex; justify-content:space-between; align-items:end; gap:1.25rem; margin-top:.75rem; }
.audit-toolbar-actions,.audit-step-actions { display:flex; gap:.75rem; flex-wrap:wrap; }
.audit-step-card { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; padding:1rem 1.25rem; }
.audit-step-card h2 { margin:.1rem 0 .25rem; }
.audit-step-card p { margin:.2rem 0; }
.audit-cases-card { padding:0; overflow:clip; }
.audit-cases-card .audit-filters { border:0; border-bottom:1px solid #d5dfdc; border-radius:0; margin:0; padding:1rem 1.25rem; }
.audit-table-heading { display:flex; justify-content:space-between; align-items:center; padding:.9rem 1.25rem .55rem; }
.audit-table-heading h2 { margin:0; }
.audit-cases-card .table-wrap { padding:0 1.25rem; }
.audit-cases-card .audit-pagination { padding:1rem 1.25rem; }
.audit-bulk-panel { padding:0; }
.audit-bulk-panel summary { cursor:pointer; list-style:none; padding:1rem 1.25rem; font-weight:700; color:#17694d; }
.audit-bulk-panel summary::-webkit-details-marker { display:none; }
.audit-bulk-panel summary::after { content:"+"; float:right; font-size:1.25rem; }
.audit-bulk-panel[open] summary::after { content:"−"; }
.audit-bulk-panel > p,.audit-bulk-panel > form { margin-left:1.25rem; margin-right:1.25rem; }
.audit-bulk-panel > form { display:grid; gap:.7rem; padding-bottom:1.25rem; }
.audit-bulk-panel label:has(input[type=checkbox]) { display:flex; align-items:center; gap:.55rem; }
.audit-bulk-panel textarea { width:100%; }
.audit-final-action { display:flex; justify-content:flex-end; margin:1rem 0; }
.button-disabled { color:#fff; background:#aeb8b5; border-color:#aeb8b5; cursor:not-allowed; pointer-events:none; }
@media(max-width:900px){.audit-toolbar,.audit-step-card{align-items:stretch;flex-direction:column}.audit-toolbar-actions,.audit-step-actions{width:100%}.audit-toolbar-actions .button,.audit-step-actions .button{flex:1}.audit-cases-card{overflow:visible}}
.audit-case-head h2 > span:not(.audit-status) { color:#071d4f; font-weight:700; }
.audit-case-facts { display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin:1rem 0 1.5rem; }
.audit-case-facts > div { padding-right:1rem; border-right:1px solid #d8e1df; }
.audit-case-facts > div:last-child { border-right:0; padding-left:1rem; }
.audit-case-facts dt { color:#53627a; font-weight:700; }
.audit-case-facts dd { margin:.25rem 0 0; }
.audit-case-side { display:grid; gap:1rem; }
.audit-evidence-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem; border:1px solid #d7e0de; border-radius:6px; margin:.55rem 0; }
.audit-evidence-row small { display:block; margin-top:.2rem; color:#53627a; }
.audit-case-footer { display:flex; align-items:center; justify-content:space-between; margin-top:1rem; }
@media(max-width:700px){.audit-case-facts{grid-template-columns:1fr}.audit-case-facts>div,.audit-case-facts>div:last-child{border:0;border-bottom:1px solid #d8e1df;padding:.65rem 0}.audit-case-footer{align-items:stretch;flex-direction:column;gap:1rem}}
.audit-toolbar .audit-selectors { flex:1 1 auto; width:auto; margin:0; padding:0; grid-template-columns:repeat(3,minmax(150px,1fr)); }
.audit-toolbar .audit-toolbar-actions { flex:0 0 auto; }
@media(max-width:900px){.audit-toolbar .audit-selectors{width:100%;grid-template-columns:1fr}}


/* Illustrated Audit Workbench guide */
.guide-card { overflow:hidden; }
.guide-visual { margin:1.25rem 0; border:1px solid var(--bsuth-border); border-radius:8px; background:#f5f8f7; overflow:hidden; }
.guide-visual img { display:block; width:100%; height:auto; }
.guide-visual figcaption { padding:.7rem 1rem; border-top:1px solid var(--bsuth-border); color:var(--bsuth-text-secondary); font-size:.9rem; }
.guide-card-action { display:flex; justify-content:flex-end; margin-top:1.25rem; padding-top:1rem; border-top:1px solid var(--bsuth-border); }
@media(max-width:700px){.guide-card-action .button{width:100%}}

.review-summary-primary-bar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.review-summary-shortcuts { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:.65rem; }
#approve-payroll-stage,#reject-payroll-stage { scroll-margin-top:90px; }
@media(max-width:900px){.review-summary-primary-bar{align-items:stretch;flex-direction:column}.review-summary-shortcuts{justify-content:flex-start}.review-summary-shortcuts .button{flex:1}}

.audit-case-head { position:sticky; top:68px; z-index:6; margin:-8px -10px 18px; padding:12px 10px; border-bottom:1px solid var(--bsuth-border); background:rgba(247,250,249,.97); backdrop-filter:blur(8px); }
.audit-checklist-head { align-items:flex-start; }
.audit-checklist-head > div { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.55rem; }
@media(max-width:900px){.audit-case-head{top:62px;margin:-6px -6px 16px;padding:10px 6px}.audit-checklist-head{align-items:stretch;flex-direction:column}.audit-checklist-head>div{justify-content:flex-start}}

.confirmation-dialog { width:min(92vw,560px); padding:1.5rem; border:1px solid var(--bsuth-border); border-radius:10px; color:var(--bsuth-text); background:#fff; box-shadow:0 18px 60px rgba(7,29,79,.24); }
.confirmation-dialog::backdrop { background:rgba(7,29,40,.52); backdrop-filter:blur(2px); }
.confirmation-dialog h2 { margin-top:0; color:#071d4f; }
.confirmation-dialog .form-actions { justify-content:flex-end; margin-top:1.25rem; }

/* Payslip work centre */
.payslip-panel {
  padding: 18px 20px;
}
.payslip-panel > h2,
.payslip-panel .section-heading h2 {
  margin-top: 0;
  margin-bottom: 5px;
}
.payslip-panel > p {
  margin: 0 0 14px;
  color: var(--bsuth-text-secondary);
}
.payslip-control-row {
  display: grid;
  grid-template-columns: 110px 140px minmax(280px, 1fr) max-content;
  align-items: start;
  gap: 12px;
}
.payslip-verify-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: start;
  gap: 12px;
  max-width: 820px;
}
.payslip-field {
  display: block;
  position: relative;
  min-width: 0;
}
.payslip-field label { line-height: 17px; }
.payslip-field label,
.payslip-send-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--bsuth-text);
  font-size: 12px;
  font-weight: 650;
}
.payslip-field input:not([type="hidden"]),
.payslip-field select,
.payslip-send-form input[type="search"],
.payslip-send-form select {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--bsuth-border);
  border-radius: var(--radius-control);
  background: #fff;
}
.payslip-field input:focus,
.payslip-field select:focus,
.payslip-send-form input:focus,
.payslip-send-form select:focus {
  outline: 3px solid rgba(46,125,99,.13);
  border-color: var(--bsuth-sage-600);
}
.payslip-row-action {
  justify-self: start;
  height: 40px;
  min-height: 40px;
  padding: 7px 14px;
  width: auto;
  min-width: max-content;
  margin-top: 22px;
  white-space: nowrap;
}
.payslip-field-status {
  min-height: 16px;
  margin: 4px 0 0;
  font-size: 11px;
}
.payslip-field .field-error {
  margin-top: 5px;
  color: var(--bsuth-error-text);
  font-size: 12px;
}
.payslip-field-employee .search-results,
.payslip-employee-picker .search-results {
  position: absolute;
  z-index: 12;
  right: 0;
  left: 0;
  overflow-y: auto;
  max-height: 250px;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31,41,51,.14);
}
.payslip-field-employee .search-results:empty,
.payslip-employee-picker .search-results:empty {
  display: none;
}
.payslip-field-employee .search-result,
.payslip-employee-picker .search-result {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--bsuth-border);
  border-radius: 0;
  color: var(--bsuth-text);
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}
.payslip-field-employee .search-result:hover,
.payslip-employee-picker .search-result:hover {
  background: var(--bsuth-sage-50);
}
.payslip-send-form {
  display: grid;
  gap: 14px;
}
.payslip-send-form .form-grid {
  align-items: end;
  gap: 16px;
}
.payslip-send-form .form-grid label,
.payslip-conditional-field > label {
  margin-bottom: 5px;
}
.payslip-conditional-field {
  margin-top: 2px;
  padding-top: 2px;
}
.payslip-send-form > .alert {
  margin: 2px 0;
}
.payslip-send-form > label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}
.payslip-send-form > label input[type="checkbox"] {
  margin-top: 2px;
}
@media (max-width: 980px) {
  .payslip-control-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .payslip-field-employee {
    grid-column: 1 / -1;
  }
  .payslip-row-action {
    justify-self: start;
    margin-top: 0;
  }
  .payslip-verify-row .payslip-row-action {
    margin-top: 22px;
  }
}
@media (max-width: 620px) {
  .payslip-panel {
    padding: 16px;
  }
  .payslip-control-row,
  .payslip-verify-row {
    grid-template-columns: 1fr;
  }
  .payslip-field-employee {
    grid-column: auto;
  }
  .payslip-verify-row .payslip-row-action {
    margin-top: 0;
  }
}
