:root {
  --dd-bg: #f5f7fa;
  --dd-surface: #fff;
  --dd-surface-muted: #f8fafc;
  --dd-border: #dce3ec;
  --dd-border-strong: #c8d2df;
  --dd-text: #172033;
  --dd-muted: #627084;
  --dd-brand: #1f3f82;
  --dd-brand-strong: #19346d;
  --dd-focus: rgba(31, 63, 130, .18);
}
body { background: var(--dd-bg); color: var(--dd-text); font-size: 14px; }
.navbar { position: sticky; top: 0; z-index: 1040; min-height: 48px; box-shadow: 0 1px 0 rgba(15, 23, 42, .05); }
.navbar .container-fluid { gap: 1rem; }
.navbar-brand { display: inline-flex; align-items: center; color: var(--dd-brand-strong); font-size: 1.02rem; letter-spacing: 0; }
.app-logo-img { display: block; width: 150px; height: auto; }
.navbar-nav .nav-link { color: #475569; font-size: .9rem; font-weight: 650; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus { color: var(--dd-brand); }
.navbar-nav .nav-link-active { color: var(--dd-brand-strong); background: #eef5ff; border-radius: 4px; }
.navbar-nav .nav-link-active:hover, .navbar-nav .nav-link-active:focus { color: var(--dd-brand-strong); background: #e2edfb; }
.topbar-account { display: flex; align-items: center; gap: .65rem; }
.topbar-org { max-width: 240px; color: #64748b; font-size: .8rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table { background: #fff; }
.risk { display: inline-block; padding: .18rem .45rem; border-radius: 4px; border: 1px solid #cbd5e1; font-weight: 600; }
.risk-normal { background: #eef8f1; color: #166534; }
.risk-attention { background: #fff8e6; color: #854d0e; }
.risk-urgent { background: #ffedd5; color: #9a3412; }
.risk-overdue, .risk-review-required { background: #fee2e2; color: #991b1b; }
.workbench-section { border-top: 3px solid #64748b; padding-top: .75rem; margin-bottom: 1.5rem; }
.form-control, .form-select, .btn { border-radius: 4px; }
.btn-primary { background: var(--dd-brand); border-color: var(--dd-brand); }
.btn-primary:hover, .btn-primary:focus { background: var(--dd-brand-strong); border-color: var(--dd-brand-strong); }
.muted-note { color: #475569; }
.org-switch { width: 220px; }

.auth-body { background: #f3f7fb; }
.login-accent { height: 4px; background: #1e3a8a; }
.login-main { display: grid; min-height: calc(100vh - 4px); place-items: center; padding: 48px 0; }
.login-shell { display: grid; width: 100%; place-items: center; }
.login-card { width: min(calc(100% - 32px), 420px); padding: 2.35rem 2rem 2rem; background: #fff; border: 1px solid #d8dee8; border-radius: 8px; box-shadow: 0 18px 42px rgba(15, 23, 42, .10); }
.login-wordmark { display: flex; justify-content: center; margin-bottom: 1.85rem; text-align: center; }
.login-wordmark img { display: block; width: min(230px, 78%); height: auto; }
.login-title { margin: 0; color: #111827; font-size: 1.35rem; line-height: 1.25; font-weight: 800; text-align: center; }
.login-form { display: grid; gap: 1.15rem; margin-top: 1.65rem; }
.login-step { display: grid; gap: 1.15rem; }
.login-step[hidden] { display: none; }
.login-field label { display: block; margin-bottom: .35rem; color: #243244; font-weight: 750; }
.login-input { min-height: 44px; width: 100%; font-size: .98rem; }
.login-input::placeholder { color: #64748b; opacity: 1; }
.login-input:focus, .password-toggle:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); outline: none; }
.password-control { position: relative; }
.password-control .login-input { padding-right: 5.1rem; }
.password-toggle { position: absolute; top: 50%; right: .55rem; transform: translateY(-50%); min-width: 3.5rem; min-height: 32px; padding: 0 .35rem; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #475569; font-weight: 750; }
.password-toggle:hover { color: #1d4ed8; background: #f1f5f9; }
.login-submit { min-height: 44px; width: 100%; font-weight: 800; }
.login-submit:disabled { cursor: progress; opacity: .78; }
.login-alert { margin: 0; padding: .75rem .85rem; }
.login-secondary-link { color: #1d4ed8; font-weight: 750; text-decoration: none; }
.login-secondary-link:hover, .login-secondary-link:focus { color: #1e3a8a; text-decoration: underline; text-underline-offset: 3px; }
.login-back-link { text-align: center; }
.login-links { display: grid; gap: .45rem; margin-top: .2rem; color: #475569; text-align: center; }
.login-access { margin: 0; line-height: 1.4; }
.login-access span { display: block; }
.login-hint { margin-top: .35rem; color: #854d0e; font-size: .86rem; font-weight: 650; }
.login-confirmation { margin-top: 1.35rem; color: #475569; text-align: center; line-height: 1.5; }
.login-confirmation p { margin: 0; }
.login-confirmation strong { color: #1f2933; font-weight: 750; overflow-wrap: anywhere; }
.login-confirm-actions { margin-top: 1.5rem; }
.login-resend { width: 100%; padding: 0; border: 0; background: transparent; color: #1d4ed8; font-weight: 750; text-align: center; }
.login-resend:hover, .login-resend:focus { color: #1e3a8a; text-decoration: underline; text-underline-offset: 3px; outline: none; }
.login-resend:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); border-radius: 3px; }
.login-resend:disabled { color: #64748b; cursor: wait; text-decoration: none; }
.login-review { display: grid; gap: .3rem; }
.login-review-label { color: #243244; font-weight: 750; }
.login-review-row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; min-height: 28px; }
.login-review-email { color: #334155; overflow-wrap: anywhere; }
.login-change { flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: #1d4ed8; font-weight: 750; }
.login-change:hover, .login-change:focus { color: #1e3a8a; text-decoration: underline; text-underline-offset: 3px; outline: none; }
.login-change:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); border-radius: 3px; }

.audit-page { max-width: 1500px; margin: 0 auto; padding: .35rem .25rem 1.5rem; }
.audit-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.audit-hero h1 { margin: 0; color: #111827; font-size: 1.65rem; line-height: 1.2; font-weight: 850; }
.audit-hero p { margin: .2rem 0 0; color: #64748b; font-weight: 600; }
.audit-kicker { color: #1d4ed8; font-size: .78rem; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.audit-refresh { min-width: 96px; }
.audit-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: .75rem; margin-bottom: .85rem; }
.audit-stat-card { min-height: 78px; padding: .9rem 1rem; background: #fff; border: 1px solid #d8dee8; border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.audit-stat-value { color: #172554; font-size: 1.7rem; line-height: 1; font-weight: 850; }
.audit-stat-label { margin-top: .35rem; color: #64748b; font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.audit-panel, .audit-table-card { background: #fff; border: 1px solid #d8dee8; border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.audit-panel { padding: .95rem; margin-bottom: .85rem; }
.audit-panel-header, .audit-table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.audit-panel h2, .audit-table-toolbar h2 { margin: 0; color: #111827; font-size: 1rem; font-weight: 850; }
.audit-panel p, .audit-table-toolbar p { margin: .15rem 0 0; color: #64748b; font-size: .86rem; font-weight: 600; }
.audit-filter-grid { display: grid; grid-template-columns: minmax(240px, 1.7fr) repeat(3, minmax(150px, 1fr)) repeat(2, minmax(135px, .8fr)) auto; gap: .65rem; align-items: end; }
.audit-filter label { display: block; margin-bottom: .25rem; color: #334155; font-size: .82rem; font-weight: 800; }
.audit-filter .form-control, .audit-filter .form-select { min-height: 38px; }
.audit-filter-actions { display: flex; gap: .45rem; }
.audit-action-strip { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid #eef2f7; color: #64748b; font-size: .84rem; font-weight: 800; }
.audit-mini-pill { display: inline-flex; align-items: center; gap: .35rem; min-height: 28px; padding: .15rem .55rem; background: #f8fafc; border: 1px solid #dbe3ee; border-radius: 999px; color: #334155; font-weight: 700; }
.audit-mini-pill strong { color: #172554; }
.audit-table-card { overflow: hidden; }
.audit-table-toolbar { padding: .95rem .95rem 0; }
.audit-table-wrap { max-height: calc(100vh - 345px); min-height: 420px; overflow: auto; border-top: 1px solid #e2e8f0; }
.audit-table { margin: 0; font-size: .9rem; }
.audit-table thead th { position: sticky; top: 0; z-index: 2; padding: .7rem .85rem; background: #eaf0f7; border-bottom: 1px solid #b8c4d6; color: #243244; font-size: .78rem; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }
.audit-table tbody td { padding: .85rem; border-color: #e7edf5; vertical-align: top; }
.audit-table tbody tr:hover { background: #f8fbff; }
.audit-pagination { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem .95rem; border-top: 1px solid #edf1f6; background: #fbfdff; }
.audit-page-summary { color: #64748b; font-size: .86rem; font-weight: 750; }
.audit-page-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.audit-page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 32px; padding: .2rem .55rem; color: #334155; background: #fff; border: 1px solid #dbe3ee; border-radius: 4px; font-weight: 800; text-decoration: none; }
.audit-page-link:hover, .audit-page-link:focus, .audit-page-link-active { color: #172554; background: #eff6ff; border-color: #bfdbfe; text-decoration: none; outline: none; }
.audit-page-link-disabled { color: #94a3b8; background: #f8fafc; cursor: not-allowed; }
.audit-time { display: grid; gap: .18rem; color: #64748b; white-space: nowrap; }
.audit-time strong { color: #111827; font-size: .95rem; }
.audit-actor { display: inline-block; max-width: 220px; color: #1f2937; font-weight: 750; overflow-wrap: anywhere; }
.audit-actor-system { color: #64748b; }
.audit-action-badge { display: inline-flex; align-items: center; min-height: 26px; padding: .16rem .5rem; border-radius: 999px; font-size: .76rem; font-weight: 850; white-space: nowrap; }
.audit-action-success { color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; }
.audit-action-danger { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }
.audit-action-warning { color: #854d0e; background: #fef3c7; border: 1px solid #fde68a; }
.audit-action-info { color: #075985; background: #e0f2fe; border: 1px solid #bae6fd; }
.audit-action-neutral { color: #334155; background: #f1f5f9; border: 1px solid #cbd5e1; }
.audit-action-key { display: block; margin-top: .25rem; color: #64748b; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .75rem; }
.audit-object-type { display: block; color: #1f2937; font-weight: 800; white-space: nowrap; }
.audit-object-id { display: block; margin-top: .18rem; color: #64748b; font-size: .82rem; overflow-wrap: anywhere; }
.audit-summary-cell { min-width: 360px; }
.audit-summary-text { max-width: 760px; color: #334155; line-height: 1.35; }
.audit-meta { margin-top: .25rem; color: #64748b; font-size: .78rem; }
.audit-empty { padding: 3rem !important; color: #64748b; text-align: center; font-weight: 700; }

.queue-page { max-width: 1440px; margin: 0 auto; padding: .1rem .25rem 1.5rem; }
.queue-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.queue-hero h1 { margin: 0; color: #111827; font-size: 1.45rem; line-height: 1.2; font-weight: 820; }
.queue-kicker { color: var(--dd-brand); font-size: .78rem; font-weight: 760; letter-spacing: 0; }
.queue-subtitle { margin-top: .25rem; color: #64748b; font-weight: 650; }
.queue-hero-actions { display: flex; justify-content: flex-end; min-width: 150px; padding-top: .3rem; }
.queue-view-strip { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; color: #475569; font-size: .86rem; font-weight: 720; }
.saved-view-link { display: inline-flex; align-items: center; min-height: 28px; padding: .18rem .52rem; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #334155; text-decoration: none; font-weight: 680; }
.saved-view-link:hover, .saved-view-link:focus { border-color: #cbd5e1; color: var(--dd-brand); background: #fff; outline: none; }
.saved-view-active { border-color: #cad6e6; background: #fff; color: var(--dd-brand-strong); box-shadow: none; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 0; margin-bottom: .75rem; overflow: hidden; background: #fff; border: 1px solid var(--dd-border); border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .035); }
.summary-card { position: relative; display: flex; align-items: center; gap: .55rem; min-height: 48px; padding: .55rem .75rem; overflow: hidden; color: #111827; background: #fff; border: 0; border-right: 1px solid #edf1f6; border-radius: 0; text-decoration: none; box-shadow: none; cursor: pointer; transition: background-color .12s ease, box-shadow .12s ease; }
.summary-card:last-child { border-right: 0; }
.summary-card::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 0; width: 3px; background: #94a3b8; }
.summary-card-overdue::before { background: #991b1b; }
.summary-card-invoice_review::before, .summary-card-invoice-review::before { background: #b91c1c; }
.summary-card-missing_instructions::before, .summary-card-missing-instructions::before { background: #d97706; }
.summary-card-due_window::before, .summary-card-due-window::before { background: #2563eb; }
.summary-card:hover, .summary-card:focus { background: #f8fbff; box-shadow: inset 0 0 0 2px var(--dd-focus); outline: none; }
.summary-card-active { background: #f3f6fb; box-shadow: inset 0 0 0 1px #bfcee2; }
.summary-card-muted { background: #fbfdff; color: #64748b; }
.summary-card-muted .summary-count { color: #334155; }
.summary-count { min-width: 1.2rem; font-size: 1.25rem; line-height: 1; font-weight: 820; }
.summary-label { font-weight: 660; color: #334155; }
.queue-summary-label { display: flex; align-items: center; gap: .75rem; margin-bottom: .3rem; color: #475569; font-size: .84rem; font-weight: 740; }
.issue-filter-reset { color: #1d4ed8; font-size: .8rem; font-weight: 750; text-transform: none; }
.queue-deadline-notice { display: flex; align-items: center; min-height: 38px; padding: .55rem .75rem; margin-bottom: .75rem; color: #334155; background: #eef6ff; border: 1px solid #bfdbfe; border-radius: 8px; font-weight: 650; }
.queue-deadline-notice strong { color: #172554; margin: 0 .25rem; }
.queue-toolbar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .55rem; align-items: end; padding: .7rem; margin-bottom: .65rem; background: #fff; border: 1px solid var(--dd-border); border-radius: 8px; box-shadow: none; }
.queue-filter { min-width: 0; }
.queue-filter-search { grid-column: span 3; }
.queue-filter-assignee, .queue-filter-line, .queue-filter-status, .queue-filter-risk, .queue-filter-date { grid-column: span 2; }
.queue-filter-archive { grid-column: span 3; }
.queue-filter-actions { grid-column: 10 / -1; justify-content: flex-end; }
.queue-filter .form-label { margin-bottom: .25rem; color: #334155; font-size: .82rem; font-weight: 800; }
.queue-filter .form-control, .queue-filter .form-select { min-height: 38px; }
.queue-switch { min-height: 38px; display: flex; align-items: center; gap: .45rem; }
.queue-filter-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.queue-filter-actions .btn-outline-secondary, .queue-actions .btn-outline-secondary { color: #475569; border-color: #cbd5e1; background: #fff; }
.queue-filter-actions .btn-outline-secondary:hover, .queue-actions .btn-outline-secondary:hover { color: #1e3a8a; border-color: #93c5fd; background: #eff6ff; }
.active-filter-list { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .85rem; }
.active-filter-label { display: inline-flex; align-items: center; min-height: 32px; color: #475569; font-weight: 800; }
.filter-chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; padding: .25rem .55rem; border: 1px solid #b8c4d6; border-radius: 999px; background: #fff; color: #1f2937; text-decoration: none; font-weight: 650; }
.filter-chip:hover, .filter-chip:focus { border-color: #1d4ed8; color: #1d4ed8; outline: none; }
.filter-clear-all { display: inline-flex; align-items: center; min-height: 32px; color: #1d4ed8; font-weight: 750; text-decoration: none; }
.filter-clear-all:hover, .filter-clear-all:focus { color: #1e3a8a; text-decoration: underline; text-underline-offset: 3px; outline: none; }
.queue-workspace { display: block; }
.queue-bulk-form { margin: 0; }
.queue-bulk-bar { display: flex; align-items: center; gap: .65rem; min-height: 46px; padding: .55rem .75rem; background: #f8fafc; border: 1px solid #d8dee8; border-bottom: 0; border-radius: 8px 8px 0 0; }
.queue-select-all { display: inline-flex; align-items: center; gap: .4rem; margin: 0; color: #334155; font-weight: 750; }
.queue-bulk-bar .form-select { width: 210px; }
.bulk-count { color: #64748b; font-size: .86rem; font-weight: 750; }
.bulk-hint { color: #64748b; font-size: .78rem; font-weight: 650; }
.queue-table-wrap { overflow: auto; border: 1px solid var(--dd-border); border-radius: 8px; background: #fff; max-height: calc(100vh - 300px); min-height: 360px; box-shadow: none; }
.queue-bulk-form .queue-table-wrap { border-radius: 0 0 8px 8px; }
.queue-table { margin-bottom: 0; font-size: .9rem; }
.queue-table thead th { position: sticky; top: 0; z-index: 3; background: #f0f4f8; color: #344256; border-bottom: 1px solid var(--dd-border-strong); white-space: nowrap; font-size: .76rem; letter-spacing: 0; }
.queue-table thead a { color: #1e3a8a; text-decoration: none; }
.queue-table thead a:hover { text-decoration: underline; text-underline-offset: 3px; }
.queue-table th, .queue-table td { padding: .56rem .68rem; vertical-align: top; }
.queue-select-col { width: 44px; min-width: 44px; text-align: center; }
.queue-table th:last-child, .queue-table td:last-child { min-width: 206px; }
.queue-table .queue-col-secondary { min-width: 150px; }
.queue-table tbody tr { min-height: 72px; cursor: pointer; }
.queue-table tbody tr:hover { background: #f5f9ff; }
.priority-row-critical td:first-child { box-shadow: inset 2px 0 0 #991b1b; }
.priority-row-high td:first-child { box-shadow: inset 2px 0 0 #b45309; }
.priority-row-medium td:first-child { box-shadow: inset 2px 0 0 #facc15; }
.queue-row-selected, .queue-row-selected .queue-sticky-col { background: #eef6ff !important; box-shadow: inset 3px 0 0 #1d4ed8; }
.queue-sticky-col { position: sticky; left: 0; z-index: 2; min-width: 210px; background: inherit; box-shadow: 1px 0 0 #e2e8f0; }
thead .queue-sticky-col { z-index: 4; background: #eaf0f7; }
.case-link { color: #1d4ed8; font-weight: 760; text-underline-offset: 3px; }
.case-link:focus, .queue-actions a:focus, .issue-badge:focus, .queue-row:focus, .case-drawer-close:focus, .action-menu summary:focus { outline: 3px solid rgba(37, 99, 235, .32); outline-offset: 2px; }
.case-reference, .deadline-detail, .issue-reason, .priority-context { color: #64748b; font-size: .82rem; }
.case-reference { margin-top: .05rem; line-height: 1.15; }
.deadline-main { font-weight: 760; color: #111827; white-space: nowrap; }
.priority-pill { display: inline-flex; min-width: 66px; justify-content: center; padding: .16rem .42rem; border-radius: 999px; font-size: .76rem; font-weight: 780; }
.priority-help { display: inline-flex; align-items: center; justify-content: center; width: 19px; min-height: 19px; margin-left: .25rem; border: 1px solid #94a3b8; border-radius: 999px; color: #334155; background: #fff; font-size: .72rem; cursor: help; }
.priority-critical { background: #991b1b; color: #fff; }
.priority-high { background: #b45309; color: #fff; }
.priority-medium { background: #facc15; color: #422006; }
.priority-normal { background: #e2e8f0; color: #334155; }
.issue-summary { color: #1f2937; font-weight: 760; }
.issue-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; }
.issue-badge { display: inline-flex; align-items: center; min-height: 22px; padding: .1rem .42rem; border-radius: 999px; font-size: .74rem; font-weight: 700; text-decoration: none; }
.issue-danger { background: #fee2e2; color: #7f1d1d; border: 1px solid #fecaca; }
.issue-warning { background: #fef3c7; color: #713f12; border: 1px solid #fde68a; }
.issue-info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.issue-neutral { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.issue-badge:hover { filter: brightness(.97); }
.queue-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.queue-table .queue-actions { align-items: flex-start; flex-wrap: nowrap; }
.queue-actions > .btn { min-width: 124px; }
.queue-table .queue-primary-action { min-width: 140px; white-space: nowrap; }
.action-menu { position: relative; }
.action-menu summary { display: inline-flex; align-items: center; justify-content: center; width: 31px; min-height: 31px; list-style: none; border: 1px solid #cbd5e1; border-radius: 4px; color: #475569; background: #fff; cursor: pointer; font-weight: 800; }
.action-menu summary::-webkit-details-marker { display: none; }
.action-menu-list { position: absolute; right: 0; z-index: 10; min-width: 150px; padding: .35rem; margin-top: .25rem; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; box-shadow: 0 10px 24px rgba(15, 23, 42, .16); }
.action-menu-list a, .action-menu-list button { display: block; width: 100%; padding: .35rem .45rem; color: #1f2937; text-align: left; text-decoration: none; border: 0; border-radius: 4px; background: transparent; font: inherit; }
.action-menu-list a:hover, .action-menu-list a:focus, .action-menu-list button:hover, .action-menu-list button:focus { background: #eff6ff; color: #1d4ed8; outline: none; }
.action-menu-list .action-menu-danger { color: #b91c1c; }
.action-menu-list .action-menu-danger:hover, .action-menu-list .action-menu-danger:focus { background: #fef2f2; color: #991b1b; }
.queue-empty-cell { padding: 2rem; text-align: center; color: #64748b; font-weight: 650; }
.case-drawer { position: fixed; top: 0; right: 0; z-index: 1050; visibility: hidden; width: min(440px, 100vw); height: 100vh; padding: 1rem; overflow: auto; background: #fff; border-left: 1px solid #cbd5e1; box-shadow: -18px 0 36px rgba(15, 23, 42, .18); transform: translateX(102%); transition: transform .18s ease, visibility .18s ease; }
.case-drawer-open { visibility: visible; transform: translateX(0); }
.case-drawer-top { position: sticky; top: -1rem; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; margin-bottom: .5rem; background: #fff; border-bottom: 1px solid #e2e8f0; }
.case-panel { padding: .25rem 0 1rem; background: #fff; }
.case-panel[hidden] { display: none; }
.case-panel-header { display: flex; justify-content: space-between; gap: .75rem; align-items: start; margin-bottom: .85rem; }
.case-facts { display: grid; gap: .5rem; margin-bottom: 1rem; }
.case-facts div { display: grid; grid-template-columns: 120px 1fr; gap: .5rem; padding-bottom: .45rem; border-bottom: 1px solid #eef2f7; }
.case-facts dt { color: #64748b; font-weight: 750; }
.case-facts dd { margin: 0; }
.case-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-bottom: 1rem; }
.case-mini-grid div { padding: .45rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; }
.case-mini-grid dt { color: #64748b; font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.case-mini-grid dd { margin: .1rem 0 0; color: #1f2937; font-weight: 750; }
.case-subhead { font-size: .86rem; font-weight: 800; color: #334155; text-transform: uppercase; }
.case-activity { padding-left: 1rem; color: #334155; }
.case-activity span { display: block; color: #64748b; font-size: .8rem; }
.evidence-checklist { display: grid; gap: .5rem; padding: 0; margin: 0 0 1rem; list-style: none; }
.evidence-checklist li { display: flex; gap: .55rem; align-items: flex-start; padding: .55rem; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; }
.evidence-checklist li > span { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; border-radius: 999px; font-size: .68rem; font-weight: 850; }
.evidence-checklist strong, .evidence-checklist small { display: block; }
.evidence-checklist small { color: #64748b; }
.check-done > span { color: #166534; background: #dcfce7; }
.check-open > span { color: #92400e; background: #fef3c7; }
.drawer-invoice { display: grid; gap: .15rem; padding: .55rem; margin-bottom: .5rem; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 6px; }
.drawer-invoice span, .drawer-invoice small { color: #7c2d12; }
.drawer-invoice a { color: #1d4ed8; font-weight: 750; text-decoration: none; }

.detail-page, .review-page { max-width: 1480px; margin: 0 auto; padding: .15rem .25rem 1.5rem; }
.detail-hero, .review-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .85rem; }
.detail-hero h1, .review-hero h1 { margin: 0; color: #111827; font-size: 1.7rem; line-height: 1.2; font-weight: 850; }
.detail-alert { padding: .65rem .8rem; margin-bottom: .85rem; color: #713f12; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; font-weight: 650; }
.detail-grid, .review-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: .85rem; }
.detail-grid-wide { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); margin-top: .85rem; }
.detail-panel, .review-panel, .import-preview { padding: 1rem; background: #fff; border: 1px solid #d8dee8; border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.detail-panel h2, .review-panel h2, .review-panel h3 { margin: 0; color: #1f2937; font-size: 1rem; font-weight: 850; }
.detail-panel-primary { border-top: 4px solid #1d4ed8; }
.deadline-hero-line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-bottom: .85rem; }
.deadline-hero-line div { padding: .75rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; }
.deadline-hero-line span { display: block; color: #64748b; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.deadline-hero-line strong { color: #111827; font-size: 1.15rem; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0 0 .9rem; }
.detail-facts div { padding-bottom: .45rem; border-bottom: 1px solid #eef2f7; }
.detail-facts dt { color: #64748b; font-size: .78rem; font-weight: 800; }
.detail-facts dd { margin: .05rem 0 0; color: #111827; font-weight: 700; }
.detail-callout { padding: .55rem .7rem; margin-bottom: .75rem; color: #1e3a8a; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; font-weight: 650; }
.detail-disclosure { margin-bottom: .85rem; }
.detail-disclosure summary { color: #1d4ed8; cursor: pointer; font-weight: 750; }
.deadline-date-lists { display: grid; gap: .6rem; padding-top: .55rem; color: #475569; overflow-wrap: anywhere; }
.case-collab-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.case-reminder-list, .case-note-list { display: grid; gap: .65rem; }
.case-reminder-card, .case-note-card { padding: .7rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.case-reminder-card { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.case-reminder-card strong, .case-reminder-card span { display: block; }
.case-reminder-card span, .case-note-card small, .case-completed-list { color: #64748b; font-size: .84rem; }
.case-reminder-due { border-color: #f59e0b; background: #fffbeb; }
.case-note-card p { margin: 0 0 .35rem; color: #1f2937; }
.case-mini-form { display: grid; gap: .55rem; padding: .75rem; background: #fff; border: 1px solid #d8dee8; border-radius: 8px; }
.case-mini-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .65rem; }
.case-mini-form .form-label { margin-bottom: .2rem; color: #334155; font-size: .82rem; font-weight: 800; }
.case-mini-form textarea { min-height: 92px; resize: vertical; }
.task-form-panel { max-width: 760px; }
.task-form { display: grid; gap: .8rem; }
.task-form-field .form-label { margin-bottom: .25rem; color: #334155; font-size: .84rem; font-weight: 800; }
.task-form-field .form-control, .task-form-field .form-select { min-height: 42px; }
.task-form-field textarea.form-control { min-height: 112px; resize: vertical; }
.task-form-actions { display: flex; flex-wrap: wrap; gap: .55rem; padding-top: .35rem; }
.form-error { margin-top: .25rem; color: #b91c1c; font-size: .84rem; font-weight: 700; }
.task-form-field-error .form-control, .task-form-field-error .form-select { border-color: #ef4444; }
.timeline-list, .document-list, .invoice-card-grid, .exception-list { display: grid; gap: .65rem; }
.timeline-item { display: grid; grid-template-columns: 125px 1fr; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid #eef2f7; }
.timeline-item time { color: #64748b; font-size: .82rem; font-weight: 800; }
.timeline-item p { margin: .15rem 0; color: #334155; }
.timeline-item small, .document-card small { color: #64748b; }
.document-card, .invoice-card, .exception-card { padding: .75rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.document-card { display: grid; gap: .25rem; }
.document-card span { display: block; color: #475569; }
.invoice-card-top { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.invoice-card-top span { display: block; color: #64748b; }
.invoice-amount { margin: .5rem 0; color: #111827; font-size: 1.2rem; font-weight: 850; }
.invoice-exception-list { padding-left: 1.1rem; color: #334155; }
.status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: .14rem .48rem; border-radius: 999px; color: #334155; background: #e5eaf1; font-size: .76rem; font-weight: 780; white-space: nowrap; }
.status-neutral { color: #334155; background: #e5eaf1; }
.status-progress { color: #1e3a8a; background: #dbeafe; }
.status-attention { color: #854d0e; background: #fef3c7; }
.status-complete { color: #166534; background: #dcfce7; }
.status-muted { color: #64748b; background: #eef2f7; }
.status-requires-review, .status-requires_review, .status-not-reviewed, .status-not_reviewed { color: #991b1b; background: #fee2e2; }
.status-query-raised, .status-query_raised { color: #92400e; background: #fef3c7; }
.status-reviewed, .status-accepted, .status-closed { color: #166534; background: #dcfce7; }
.review-panel-header, .import-preview-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .85rem; }
.review-decision-form { display: grid; gap: .75rem; }
.review-decision-form input, .review-decision-form select, .review-decision-form textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 4px; padding: .5rem .6rem; }
.exception-card { border-left: 4px solid #94a3b8; }
.exception-card.severity-high { border-left-color: #991b1b; }
.exception-card.severity-warning { border-left-color: #d97706; }
.exception-card p { margin: .4rem 0; color: #334155; }
.exception-card pre, .digest-preview { padding: .75rem; overflow: auto; color: #243244; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; white-space: pre-wrap; }
.review-table { margin-bottom: 0; }
.empty-state { padding: 1.25rem; color: #64748b; text-align: center; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; font-weight: 700; }
.digest-recipient-list { display: grid; gap: .4rem; padding: 0; margin: 0; list-style: none; color: #334155; }
.digest-recipient-list li { padding: .45rem .55rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; }
.import-page { max-width: 1480px; margin: 0 auto; padding: .15rem .25rem 1.5rem; }
.import-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .85rem; }
.import-hero h1 { margin: 0; color: #111827; font-size: 1.7rem; line-height: 1.2; font-weight: 850; }
.import-step-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: .85rem; }
.import-step { display: flex; align-items: center; gap: .65rem; min-height: 58px; padding: .65rem .8rem; background: #fff; border: 1px solid var(--dd-border); border-radius: 8px; color: #64748b; box-shadow: none; }
.import-step span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border-radius: 999px; background: #e2e8f0; color: #334155; font-weight: 850; }
.import-step strong, .import-step small { display: block; }
.import-step strong { color: #334155; }
.import-step small { color: #64748b; font-weight: 650; }
.import-step-active { border-color: #93c5fd; background: #eff6ff; }
.import-step-active span { background: #1d4ed8; color: #fff; }
.import-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: .85rem; margin-bottom: .85rem; }
.import-card { padding: .85rem; background: #fff; border: 1px solid var(--dd-border); border-radius: 8px; box-shadow: none; }
.import-card h2 { margin: 0; color: #1f2937; font-size: 1rem; font-weight: 850; }
.import-upload-form { display: grid; gap: .85rem; }
.import-dropzone { display: grid; gap: .45rem; padding: 1rem; border: 1px dashed #94a3b8; border-radius: 8px; background: #f8fafc; cursor: pointer; }
.import-dropzone:hover, .import-dropzone:focus-within { border-color: #1d4ed8; background: #eff6ff; }
.import-dropzone-title { color: #111827; font-size: 1rem; font-weight: 850; }
.import-dropzone-copy { color: #64748b; font-size: .88rem; font-weight: 650; }
.import-file-input { max-width: 520px; min-height: 40px; background: #fff; }
.import-option { display: flex; gap: .55rem; align-items: flex-start; padding: .75rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer; }
.import-option strong, .import-option small { display: block; }
.import-option small { color: #64748b; }
.import-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.import-rule-list { display: grid; gap: .65rem; padding: 0; margin: 0; list-style: none; }
.import-rule-list li { padding: .65rem; border: 1px solid #e2e8f0; border-radius: 6px; background: #f8fafc; }
.import-rule-list strong, .import-rule-list span { display: block; }
.import-rule-list span { margin-top: .1rem; color: #64748b; font-size: .86rem; }
.import-mapping-card { margin-bottom: .85rem; }
.import-mapping-grid { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: .75rem; }
.import-map-field .form-label { margin-bottom: .25rem; color: #334155; font-size: .82rem; font-weight: 800; }
.import-preview { margin-top: 1rem; }
.import-error-summary { padding: .85rem; margin-bottom: .85rem; background: #fffdf7; border: 1px solid #fde68a; border-radius: 8px; }
.import-error-summary .review-panel-header { margin-bottom: .7rem; }
.import-error-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.import-error-summary-grid article { display: grid; gap: .12rem; padding: .65rem .7rem; background: #fff; border: 1px solid #f8df8f; border-radius: 6px; }
.import-error-summary-grid strong { color: #7c2d12; overflow-wrap: anywhere; }
.import-error-summary-grid span { color: #854d0e; font-weight: 800; }
.import-error-summary-grid small { color: #64748b; font-weight: 650; }
.import-history-card { margin-bottom: .85rem; }
.import-history-grid { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: .55rem; }
.import-history-grid article { display: grid; gap: .1rem; padding: .6rem .65rem; background: var(--dd-surface-muted); border: 1px solid #edf1f6; border-radius: 6px; }
.import-history-grid strong { color: #111827; overflow-wrap: anywhere; }
.import-history-grid span, .import-history-grid small { color: #64748b; font-size: .8rem; }

.inventory-page { max-width: 1440px; margin: 0 auto; padding: .1rem .25rem 1.5rem; }
.inventory-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .85rem; }
.inventory-hero h1 { margin: 0; color: #111827; font-size: 1.7rem; line-height: 1.2; font-weight: 850; }
.inventory-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: .75rem; margin-bottom: .85rem; }
.inventory-stat-card { display: block; min-height: 70px; padding: .7rem .8rem; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--dd-border); border-radius: 8px; box-shadow: none; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease; }
.inventory-stat-card:nth-child(1) { border-top: 4px solid #1d4ed8; }
.inventory-stat-card:nth-child(2) { border-top: 4px solid #0f766e; }
.inventory-stat-card:nth-child(3) { border-top: 4px solid #d97706; }
.inventory-stat-card:nth-child(4) { border-top: 4px solid #991b1b; }
.inventory-stat-card:hover, .inventory-stat-card:focus { border-color: #b7c6d9; box-shadow: 0 0 0 3px var(--dd-focus); outline: none; }
.inventory-stat-card-active { background: #f3f6fb; border-color: #bfcee2; box-shadow: none; }
.inventory-stat-value { color: #172554; font-size: 1.35rem; line-height: 1; font-weight: 820; }
.inventory-stat-label { margin-top: .35rem; color: #334155; font-size: .88rem; font-weight: 850; }
.inventory-stat-detail { margin-top: .12rem; color: #64748b; font-size: .82rem; font-weight: 650; }
.inventory-toolbar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .55rem; align-items: end; padding: .7rem; margin-bottom: .65rem; background: #fff; border: 1px solid var(--dd-border); border-radius: 8px; box-shadow: none; }
.inventory-filter { min-width: 0; }
.inventory-filter-assignee, .inventory-filter-line, .inventory-filter-status, .inventory-filter-risk { grid-column: span 3; }
.inventory-filter-search { grid-column: span 3; }
.inventory-filter-port { grid-column: span 3; }
.inventory-filter-date { grid-column: span 2; }
.inventory-filter-archive { grid-column: span 2; }
.inventory-filter-actions { grid-column: 11 / -1; display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.inventory-filter .form-label { margin-bottom: .25rem; color: #334155; font-size: .82rem; font-weight: 800; }
.inventory-filter .form-control, .inventory-filter .form-select { min-height: 38px; }
.inventory-table-card { background: #fff; border: 1px solid var(--dd-border); border-radius: 8px; box-shadow: none; overflow: hidden; }
.inventory-table-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem; border-bottom: 1px solid #e2e8f0; }
.inventory-table-toolbar h2 { margin: 0; color: #111827; font-size: 1rem; font-weight: 850; }
.inventory-table-toolbar p { margin: .12rem 0 0; color: #64748b; font-size: .86rem; font-weight: 600; }
.inventory-table-wrap { overflow-x: auto; }
.inventory-table { margin: 0; font-size: .9rem; }
.inventory-table thead th { position: sticky; top: 0; z-index: 2; padding: .56rem .68rem; background: #f0f4f8; color: #344256; border-bottom: 1px solid var(--dd-border-strong); font-size: .76rem; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.inventory-table tbody td { padding: .58rem .68rem; border-color: #e7edf5; vertical-align: top; }
.inventory-table tbody tr:hover { background: #f8fbff; }
.inventory-reference { margin-top: .12rem; color: #334155; font-weight: 760; }
.inventory-evidence-counts { display: flex; flex-wrap: wrap; gap: .35rem; }
.inventory-evidence-counts span { display: inline-flex; min-height: 26px; align-items: center; padding: .15rem .45rem; color: #334155; background: #f8fafc; border: 1px solid #dbe3ee; border-radius: 999px; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.inventory-action-menu .action-menu-list { position: static; min-width: 205px; }
.action-menu-form { margin: 0; }
.status-open { color: #1e3a8a; background: #dbeafe; }
.status-ready-for-return, .status-ready_for_return { color: #854d0e; background: #fef3c7; }
.status-return-attempted, .status-return_attempted { color: #7c2d12; background: #ffedd5; }
.status-returned, .status-dehired, .status-closed { color: #166534; background: #dcfce7; }
.status-archived { color: #475569; background: #e2e8f0; }

.settings-page { max-width: 1440px; margin: 0 auto; padding: .1rem .25rem 1.5rem; }
.settings-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.settings-hero h1 { margin: 0; color: #111827; font-size: 1.7rem; line-height: 1.2; font-weight: 850; }
.settings-hero p { margin: .25rem 0 0; max-width: 680px; color: #64748b; font-weight: 650; }
.settings-kicker { color: var(--dd-brand); font-size: .78rem; font-weight: 760; letter-spacing: 0; }
.settings-count-card { min-width: 140px; padding: .8rem .95rem; background: #fff; border: 1px solid #d8dee8; border-radius: 8px; text-align: right; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.settings-count-card span { display: block; color: #172554; font-size: 1.65rem; line-height: 1; font-weight: 850; }
.settings-count-card strong { display: block; margin-top: .25rem; color: #64748b; font-size: .78rem; letter-spacing: 0; text-transform: uppercase; }
.settings-notice-list { display: grid; gap: .5rem; margin-bottom: .85rem; }
.settings-notice { padding: .7rem .85rem; color: #334155; background: #f8fafc; border: 1px solid #d8dee8; border-left: 4px solid #64748b; border-radius: 8px; font-weight: 700; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: .85rem; align-items: start; }
.settings-layout-single { grid-template-columns: 1fr; }
.settings-table-card, .settings-form-card { background: #fff; border: 1px solid var(--dd-border); border-radius: 8px; box-shadow: none; overflow: hidden; }
.settings-table-toolbar, .settings-form-header { padding: .95rem; border-bottom: 1px solid #e2e8f0; }
.settings-table-toolbar h2, .settings-form-header h2 { margin: 0; color: #111827; font-size: 1rem; font-weight: 850; }
.settings-table-toolbar p, .settings-form-header p { margin: .12rem 0 0; color: #64748b; font-size: .86rem; font-weight: 600; }
.settings-table-wrap { overflow: auto; }
.settings-table { width: 100%; margin: 0; border-collapse: collapse; font-size: .92rem; }
.settings-table thead th { padding: .56rem .68rem; background: #f0f4f8; color: #344256; border-bottom: 1px solid var(--dd-border-strong); font-size: .76rem; letter-spacing: 0; text-align: left; text-transform: none; white-space: nowrap; }
.settings-table tbody td { padding: .62rem .68rem; border-bottom: 1px solid #e7edf5; vertical-align: middle; }
.settings-table tbody tr:hover { background: #f8fbff; }
.settings-table tbody tr:last-child td { border-bottom: 0; }
.settings-table td:last-child, .settings-table th:last-child { text-align: right; white-space: nowrap; }
.settings-muted { color: #64748b; }
.settings-empty { padding: 2rem !important; color: #64748b; text-align: center !important; font-weight: 700; background: #f8fafc; }
.settings-form { display: grid; gap: .85rem; padding: .95rem; }
.settings-field label { display: block; margin-bottom: .25rem; color: #334155; font-size: .82rem; font-weight: 800; }
.settings-field input:not([type="checkbox"]), .settings-field select, .settings-field textarea { width: 100%; min-height: 40px; padding: .45rem .6rem; border: 1px solid #cbd5e1; border-radius: 4px; color: #111827; background: #fff; }
.settings-field textarea { min-height: 96px; }
.settings-field input:focus, .settings-field select:focus, .settings-field textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); outline: none; }
.settings-field-check label { display: inline-flex; align-items: center; gap: .45rem; margin: 0; min-height: 32px; cursor: pointer; }
.settings-field-check input { margin: 0; }
.settings-help { margin-top: .25rem; color: #64748b; font-size: .78rem; }
.settings-error, .settings-form .errorlist { margin: .25rem 0 0; padding: 0; color: #991b1b; font-size: .82rem; font-weight: 700; list-style: none; }
.settings-submit { min-height: 40px; justify-self: start; min-width: 92px; font-weight: 800; }

.users-page { max-width: 1480px; margin: 0 auto; padding: .15rem .25rem 1.5rem; }
.users-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.users-hero h1 { margin: 0; color: #111827; font-size: 1.7rem; line-height: 1.2; font-weight: 850; }
.users-hero p { margin: .25rem 0 0; max-width: 680px; color: #64748b; font-weight: 650; }
.users-kicker { color: #1d4ed8; font-size: .78rem; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.users-count-card { min-width: 140px; padding: .8rem .95rem; background: #fff; border: 1px solid #d8dee8; border-radius: 8px; text-align: right; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.users-count-card span { display: block; color: #172554; font-size: 1.65rem; line-height: 1; font-weight: 850; }
.users-count-card strong { display: block; margin-top: .25rem; color: #64748b; font-size: .78rem; letter-spacing: 0; text-transform: uppercase; }
.users-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: .85rem; align-items: start; }
.users-table-card, .users-form-card { background: #fff; border: 1px solid #d8dee8; border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); overflow: hidden; }
.users-table-toolbar, .users-form-header { padding: .95rem; border-bottom: 1px solid #e2e8f0; }
.users-table-toolbar h2, .users-form-header h2 { margin: 0; color: #111827; font-size: 1rem; font-weight: 850; }
.users-table-toolbar p, .users-form-header p { margin: .12rem 0 0; color: #64748b; font-size: .86rem; font-weight: 600; }
.users-table-wrap { overflow: auto; }
.users-table { width: 100%; margin: 0; border-collapse: collapse; font-size: .92rem; }
.users-table thead th { padding: .72rem .85rem; background: #eaf0f7; color: #243244; border-bottom: 1px solid #b8c4d6; font-size: .78rem; letter-spacing: 0; text-align: left; text-transform: uppercase; white-space: nowrap; }
.users-table tbody td { padding: .82rem .85rem; border-bottom: 1px solid #e7edf5; vertical-align: middle; }
.users-table tbody tr:hover { background: #f8fbff; }
.users-table tbody tr:last-child td { border-bottom: 0; }
.users-table td:last-child, .users-table th:last-child { text-align: right; white-space: nowrap; }
.users-person { display: grid; gap: .12rem; }
.users-person strong { color: #111827; overflow-wrap: anywhere; }
.users-person span, .users-muted { color: #64748b; font-size: .84rem; }
.users-role { color: #334155; font-weight: 700; }
.users-inline-form { margin: 0; }
.users-empty { padding: 2rem !important; color: #64748b; text-align: center !important; font-weight: 700; background: #f8fafc; }
.users-form { display: grid; gap: .85rem; padding: .95rem; }
.users-field label { display: block; margin-bottom: .25rem; color: #334155; font-size: .82rem; font-weight: 800; }
.users-field input, .users-field select { width: 100%; min-height: 40px; padding: .45rem .6rem; border: 1px solid #cbd5e1; border-radius: 4px; color: #111827; background: #fff; }
.users-field input:focus, .users-field select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); outline: none; }
.users-help { margin-top: .25rem; color: #64748b; font-size: .78rem; }
.users-error, .users-form .errorlist { margin: .25rem 0 0; padding: 0; color: #991b1b; font-size: .82rem; font-weight: 700; list-style: none; }
.users-submit { min-height: 40px; justify-self: start; min-width: 140px; font-weight: 800; }

.admin-settings-page { max-width: 1480px; margin: 0 auto; padding: .15rem .25rem 1.5rem; }
.admin-settings-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.admin-settings-hero h1 { margin: 0; color: #111827; font-size: 1.7rem; line-height: 1.2; font-weight: 850; }
.admin-settings-hero p { margin: .25rem 0 0; max-width: 760px; color: #64748b; font-weight: 650; }
.admin-settings-kicker { color: #1d4ed8; font-size: .78rem; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.admin-settings-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; min-width: 330px; padding-top: .35rem; }
.admin-settings-form { margin: 0; }
.admin-settings-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: .85rem; align-items: start; }
.admin-settings-card { background: #fff; border: 1px solid #d8dee8; border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); overflow: hidden; }
.admin-settings-card-wide { grid-row: span 2; }
.admin-settings-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .95rem; border-bottom: 1px solid #e2e8f0; }
.admin-settings-card-header h2 { margin: 0; color: #111827; font-size: 1rem; font-weight: 850; }
.admin-settings-card-header p { margin: .12rem 0 0; color: #64748b; font-size: .86rem; font-weight: 600; }
.admin-settings-card-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; padding: .95rem; }
.admin-settings-card-body-single { grid-template-columns: 1fr; }
.admin-settings-field { min-width: 0; }
.admin-settings-field-wide { grid-column: 1 / -1; }
.admin-settings-field label { display: block; margin-bottom: .25rem; color: #334155; font-size: .82rem; font-weight: 800; }
.admin-settings-field input:not([type="checkbox"]), .admin-settings-field select, .admin-settings-field textarea { width: 100%; min-height: 40px; padding: .45rem .6rem; border: 1px solid #cbd5e1; border-radius: 4px; color: #111827; background: #fff; }
.admin-settings-field select[multiple] { min-height: 122px; padding: .35rem .45rem; }
.admin-settings-field textarea { min-height: 96px; }
.admin-settings-field input:focus, .admin-settings-field select:focus, .admin-settings-field textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); outline: none; }
.admin-settings-check-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.admin-settings-check { display: flex; align-items: flex-start; gap: .5rem; min-height: 42px; padding: .6rem .7rem; margin: 0; color: #334155; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; font-weight: 750; cursor: pointer; }
.admin-settings-check input { flex: 0 0 auto; margin-top: .15rem; }
.admin-settings-error, .admin-settings-form .errorlist { margin: .25rem 0 0; padding: 0; color: #991b1b; font-size: .82rem; font-weight: 700; list-style: none; }
.admin-settings-link-button { justify-self: start; }
.admin-settings-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: .75rem; min-height: 62px; padding: .75rem .95rem; margin-top: .85rem; background: rgba(255, 255, 255, .96); border: 1px solid #d8dee8; border-radius: 8px; box-shadow: 0 -8px 24px rgba(15, 23, 42, .08); backdrop-filter: blur(8px); }
.admin-settings-savebar .btn { min-width: 126px; min-height: 40px; font-weight: 800; }
.admin-settings-savebar span { color: #64748b; font-weight: 650; }

.reports-page { max-width: 1440px; margin: 0 auto; padding: .1rem .25rem 1.5rem; }
.reports-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.reports-hero h1 { margin: 0; color: #111827; font-size: 1.7rem; line-height: 1.2; font-weight: 850; }
.reports-hero p { margin: .25rem 0 0; max-width: 760px; color: #64748b; font-weight: 650; }
.reports-kicker { color: var(--dd-brand); font-size: .78rem; font-weight: 760; letter-spacing: 0; }
.reports-count-card { min-width: 140px; padding: .8rem .95rem; background: #fff; border: 1px solid #d8dee8; border-radius: 8px; text-align: right; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.reports-count-card span { display: block; color: #172554; font-size: 1.65rem; line-height: 1; font-weight: 850; }
.reports-count-card strong { display: block; margin-top: .25rem; color: #64748b; font-size: .78rem; letter-spacing: 0; text-transform: uppercase; }
.reports-table-card { background: #fff; border: 1px solid var(--dd-border); border-radius: 8px; box-shadow: none; overflow: hidden; }
.reports-table-toolbar { padding: .95rem; border-bottom: 1px solid #e2e8f0; }
.reports-table-toolbar h2 { margin: 0; color: #111827; font-size: 1rem; font-weight: 850; }
.reports-table-toolbar p { margin: .12rem 0 0; color: #64748b; font-size: .86rem; font-weight: 600; }
.reports-table-wrap { overflow: auto; }
.reports-table { width: 100%; margin: 0; border-collapse: collapse; font-size: .92rem; }
.reports-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) auto; gap: .55rem; align-items: end; padding: .7rem .95rem; border-bottom: 1px solid #edf1f6; }
.reports-toolbar .form-label { margin-bottom: .25rem; color: #334155; font-size: .82rem; font-weight: 760; }
.reports-filter-actions { display: flex; gap: .45rem; }
.reports-status-strip { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem .95rem; border-bottom: 1px solid #edf1f6; color: #64748b; font-size: .82rem; font-weight: 720; }
.reports-status-link { display: inline-flex; align-items: center; min-height: 28px; padding: .18rem .55rem; color: #334155; background: #f8fafc; border: 1px solid #dbe3ee; border-radius: 999px; text-decoration: none; }
.reports-status-link:hover, .reports-status-link:focus, .reports-status-link-active { color: #172554; background: #eff6ff; border-color: #bfdbfe; text-decoration: none; outline: none; }
.reports-active-filters { display: flex; flex-wrap: wrap; gap: .45rem; padding: .55rem .95rem; border-bottom: 1px solid #edf1f6; }
.reports-table thead th { padding: .56rem .68rem; background: #f0f4f8; color: #344256; border-bottom: 1px solid var(--dd-border-strong); font-size: .76rem; letter-spacing: 0; text-align: left; text-transform: none; white-space: nowrap; }
.reports-table tbody td { padding: .62rem .68rem; border-bottom: 1px solid #e7edf5; vertical-align: middle; }
.reports-table tbody tr:hover { background: #f8fbff; }
.reports-table tbody tr:last-child td { border-bottom: 0; }
.reports-table td:last-child, .reports-table th:last-child { text-align: right; white-space: nowrap; }
.reports-identifier { display: grid; gap: .12rem; min-width: 260px; }
.reports-identifier strong { color: #111827; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; overflow-wrap: anywhere; }
.reports-identifier span, .reports-muted { color: #64748b; font-size: .84rem; }
.report-primary-link { color: #1d4ed8; font-weight: 850; text-decoration: none; }
.report-primary-link:hover, .report-primary-link:focus { color: #1e3a8a; text-decoration: underline; text-underline-offset: 3px; outline: none; }
.report-system-id { color: #64748b; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .76rem; overflow-wrap: anywhere; }
.reports-container-link { color: #334155; font-weight: 780; text-decoration: none; }
.reports-container-link:hover, .reports-container-link:focus { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; outline: none; }
.reports-time { color: #334155; font-weight: 700; white-space: nowrap; }
.report-status-approved { color: #166534; background: #dcfce7; }
.report-status-draft { color: #1e3a8a; background: #dbeafe; }
.report-status-superseded { color: #475569; background: #e2e8f0; }
.reports-actions { display: inline-flex; justify-content: flex-end; flex-wrap: wrap; gap: .45rem; }
.reports-inline-form { margin: 0; }
.reports-empty { padding: 2rem !important; color: #64748b; text-align: center !important; font-weight: 700; background: #f8fafc; }
.reports-pagination { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem .95rem; border-top: 1px solid #edf1f6; background: #fbfdff; }
.reports-page-summary { color: #64748b; font-size: .86rem; font-weight: 750; }
.reports-page-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.reports-page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 32px; padding: .2rem .55rem; color: #334155; background: #fff; border: 1px solid #dbe3ee; border-radius: 4px; font-weight: 800; text-decoration: none; }
.reports-page-link:hover, .reports-page-link:focus, .reports-page-link-active { color: #172554; background: #eff6ff; border-color: #bfdbfe; text-decoration: none; outline: none; }
.reports-page-link-disabled { color: #94a3b8; background: #f8fafc; cursor: not-allowed; }
.report-review-page .detail-alert { margin-bottom: 0; }
.report-approval-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1rem; margin-bottom: .85rem; background: #fff; border: 1px solid #d8dee8; border-left: 5px solid #64748b; border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.report-approval-draft { border-left-color: #d97706; background: #fffdf7; }
.report-approval-approved { border-left-color: #16a34a; background: #f8fffb; }
.report-approval-superseded { border-left-color: #64748b; background: #f8fafc; }
.report-approval-panel h2 { margin: .35rem 0 .15rem; color: #111827; font-size: 1rem; font-weight: 850; }
.report-approval-panel p { max-width: 880px; margin: 0; color: #475569; font-weight: 650; }
.report-approval-form { flex: 0 0 auto; margin: 0; }
.report-approval-form .btn { min-width: 132px; min-height: 40px; font-weight: 850; }
.report-approval-note { flex: 0 0 auto; padding: .45rem .6rem; color: #854d0e; background: #fef3c7; border: 1px solid #fde68a; border-radius: 6px; font-weight: 780; }
.report-review-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: .85rem; }
.report-review-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .85rem; }
.report-snapshot-table-wrap { overflow: auto; }
.report-snapshot-table td { vertical-align: top; }
.report-checksum { max-width: 320px; color: #475569; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; overflow-wrap: anywhere; white-space: normal; }

.dashboard-page { max-width: 1480px; margin: 0 auto; padding: .15rem .25rem 1.5rem; }
.dashboard-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.dashboard-hero h1 { margin: 0; color: #111827; font-size: 1.7rem; line-height: 1.2; font-weight: 850; }
.dashboard-hero p { margin: .25rem 0 0; color: #64748b; font-weight: 650; }
.dashboard-kicker { color: #1d4ed8; font-size: .78rem; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.dashboard-hero-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; min-width: 320px; padding-top: .3rem; }
.dashboard-brief { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 96px; padding: 1rem 1.1rem; margin-bottom: .85rem; background: #fff; border: 1px solid #d8dee8; border-left: 5px solid #2563eb; border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.dashboard-brief-danger { border-left-color: #991b1b; background: #fffafa; }
.dashboard-brief-warning { border-left-color: #d97706; background: #fffdf7; }
.dashboard-brief-success { border-left-color: #0f766e; background: #f8fffc; }
.dashboard-brief span { display: block; color: #475569; font-size: .78rem; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.dashboard-brief strong { display: block; margin-top: .15rem; color: #111827; font-size: 1.2rem; line-height: 1.25; font-weight: 850; }
.dashboard-brief p { margin: .2rem 0 0; color: #475569; font-weight: 650; }
.dashboard-brief a { flex: 0 0 auto; color: #1d4ed8; font-weight: 800; text-decoration: none; }
.dashboard-brief a:hover, .dashboard-brief a:focus, .dashboard-panel-link:hover, .dashboard-panel-link:focus, .dashboard-case-link:hover, .dashboard-case-link:focus { color: #1e3a8a; text-decoration: underline; text-underline-offset: 3px; outline: none; }
.dashboard-language-note { padding: .65rem .85rem; margin: -.25rem 0 .85rem; color: #3f3f46; background: #f8fafc; border: 1px solid #d8dee8; border-left: 4px solid #64748b; border-radius: 8px; font-size: .88rem; font-weight: 700; }
.dashboard-card-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: .75rem; margin-bottom: .85rem; }
.dashboard-metric { min-height: 116px; padding: .95rem 1rem; background: #fff; border: 1px solid #d8dee8; border-top: 4px solid #64748b; border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.dashboard-metric-danger { border-top-color: #991b1b; }
.dashboard-metric-warning { border-top-color: #d97706; }
.dashboard-metric-success { border-top-color: #0f766e; }
.dashboard-metric-neutral { border-top-color: #64748b; }
.dashboard-metric span { display: block; color: #334155; font-size: .82rem; font-weight: 850; text-transform: uppercase; }
.dashboard-metric strong { display: block; margin-top: .35rem; color: #172554; font-size: 1.7rem; line-height: 1; font-weight: 850; overflow-wrap: anywhere; }
.dashboard-metric p { margin: .45rem 0 0; color: #64748b; font-size: .86rem; font-weight: 650; }
.dashboard-snapshot { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: .65rem; margin-bottom: .85rem; }
.dashboard-snapshot div { min-height: 72px; padding: .75rem .85rem; background: #fff; border: 1px solid #d8dee8; border-radius: 8px; }
.dashboard-snapshot span { display: block; color: #64748b; font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.dashboard-snapshot strong { display: block; margin-top: .25rem; color: #111827; font-size: 1.25rem; font-weight: 850; overflow-wrap: anywhere; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; align-items: start; }
.dashboard-panel { background: #fff; border: 1px solid #d8dee8; border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); overflow: hidden; }
.dashboard-panel-wide { grid-column: 1 / -1; }
.dashboard-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .95rem; border-bottom: 1px solid #e2e8f0; }
.dashboard-panel-header h2 { margin: 0; color: #111827; font-size: 1rem; font-weight: 850; }
.dashboard-panel-header p { margin: .12rem 0 0; color: #64748b; font-size: .86rem; font-weight: 600; }
.dashboard-panel-link { color: #1d4ed8; font-weight: 800; text-decoration: none; white-space: nowrap; }
.dashboard-table-wrap { overflow: auto; }
.dashboard-table { width: 100%; margin: 0; border-collapse: collapse; font-size: .92rem; }
.dashboard-table thead th { padding: .72rem .85rem; background: #eaf0f7; color: #243244; border-bottom: 1px solid #b8c4d6; font-size: .78rem; letter-spacing: 0; text-align: left; text-transform: uppercase; white-space: nowrap; }
.dashboard-table tbody td { padding: .82rem .85rem; border-bottom: 1px solid #e7edf5; vertical-align: top; }
.dashboard-table tbody tr:hover { background: #f8fbff; }
.dashboard-table tbody tr:last-child td { border-bottom: 0; }
.dashboard-table td:nth-child(2), .dashboard-table td:nth-child(4) { min-width: 220px; }
.dashboard-table td:last-child, .dashboard-table th:last-child { text-align: right; white-space: nowrap; }
.dashboard-table td span { display: block; margin-top: .12rem; color: #64748b; font-size: .84rem; }
.dashboard-case-link { color: #1d4ed8; font-weight: 800; text-decoration: none; }
.dashboard-ranked-list { display: grid; gap: .65rem; padding: .95rem; }
.dashboard-ranked-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem .75rem; align-items: start; padding: .65rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.dashboard-ranked-row strong, .dashboard-ranked-row span { display: block; }
.dashboard-ranked-row strong { color: #111827; overflow-wrap: anywhere; }
.dashboard-ranked-row span { margin-top: .1rem; color: #64748b; font-size: .84rem; }
.dashboard-ranked-row em { color: #172554; font-style: normal; font-weight: 850; white-space: nowrap; }
.dashboard-bar { grid-column: 1 / -1; height: 7px; overflow: hidden; background: #e2e8f0; border-radius: 999px; }
.dashboard-bar span { display: block; height: 100%; min-width: 2%; background: #2563eb; border-radius: inherit; }
.dashboard-team-list { display: grid; gap: .55rem; padding: .95rem; }
.dashboard-team-list div { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(92px, auto)); gap: .55rem; align-items: center; padding: .6rem .65rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.dashboard-team-list strong { color: #111827; overflow-wrap: anywhere; }
.dashboard-team-list span { color: #475569; font-size: .84rem; font-weight: 750; white-space: nowrap; }
.dashboard-muted, .dashboard-empty { color: #64748b; font-weight: 700; }
.dashboard-empty { padding: 2rem !important; text-align: center !important; background: #f8fafc; }

@media (max-width: 1180px) {
  .audit-summary-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .audit-filter-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .audit-filter-search { grid-column: 1 / -1; }
  .audit-filter-actions { grid-column: 1 / -1; }
  .summary-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .queue-toolbar { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .queue-filter-search, .queue-filter-assignee, .queue-filter-line, .queue-filter-status, .queue-filter-risk, .queue-filter-date, .queue-filter-archive { grid-column: auto; }
  .queue-filter-search, .queue-filter-actions { grid-column: 1 / -1; }
  .detail-grid, .detail-grid-wide, .review-grid { grid-template-columns: 1fr; }
  .inventory-summary-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .inventory-toolbar { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .settings-layout { grid-template-columns: 1fr; }
  .users-layout { grid-template-columns: 1fr; }
  .admin-settings-grid { grid-template-columns: 1fr; }
  .admin-settings-card-wide { grid-row: auto; }
  .inventory-filter-assignee, .inventory-filter-line, .inventory-filter-status, .inventory-filter-risk, .inventory-filter-search, .inventory-filter-port, .inventory-filter-date, .inventory-filter-archive { grid-column: auto; }
  .inventory-filter-actions { grid-column: 1 / -1; }
  .import-layout { grid-template-columns: 1fr; }
  .import-mapping-grid, .import-error-summary-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .dashboard-card-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .dashboard-snapshot { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .report-review-grid, .report-review-grid-wide { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .login-main { padding: 32px 0; }
  .login-card { padding: 2rem 1.5rem 1.75rem; }
  .audit-page { padding: .25rem 0 1rem; }
  .audit-hero, .audit-panel-header, .audit-table-toolbar { align-items: stretch; flex-direction: column; }
  .audit-summary-grid, .audit-filter-grid { grid-template-columns: 1fr; }
  .audit-filter-search, .audit-filter-actions { grid-column: auto; }
  .audit-filter-actions .btn { flex: 1; }
  .audit-summary-cell { min-width: 280px; }
  .queue-hero { align-items: stretch; flex-direction: column; }
  .settings-hero { align-items: stretch; flex-direction: column; }
  .settings-count-card { text-align: left; }
  .users-hero { align-items: stretch; flex-direction: column; }
  .users-count-card { text-align: left; }
  .admin-settings-hero { align-items: stretch; flex-direction: column; }
  .admin-settings-actions { justify-content: stretch; min-width: 0; padding-top: 0; }
  .admin-settings-actions .btn { flex: 1; }
  .admin-settings-card-body, .admin-settings-check-grid { grid-template-columns: 1fr; }
  .admin-settings-field-wide { grid-column: auto; }
  .admin-settings-savebar { align-items: stretch; flex-direction: column; }
  .admin-settings-savebar .btn { width: 100%; }
  .reports-hero { align-items: stretch; flex-direction: column; }
  .reports-count-card { text-align: left; }
  .reports-table td:last-child, .reports-table th:last-child { text-align: left; }
  .dashboard-hero, .dashboard-brief, .dashboard-panel-header { align-items: stretch; flex-direction: column; }
  .dashboard-hero-actions { justify-content: stretch; min-width: 0; padding-top: 0; }
  .dashboard-hero-actions .btn { flex: 1; }
  .dashboard-card-grid, .dashboard-snapshot { grid-template-columns: 1fr; }
  .dashboard-table td:last-child, .dashboard-table th:last-child { text-align: left; }
  .dashboard-team-list div { grid-template-columns: 1fr; }
  .detail-hero, .review-hero, .review-panel-header, .import-preview-header, .report-approval-panel { align-items: stretch; flex-direction: column; }
  .inventory-hero, .inventory-table-toolbar { align-items: stretch; flex-direction: column; }
  .inventory-hero .queue-actions .btn { flex: 1; }
  .queue-hero-actions { justify-content: stretch; min-width: 0; padding-top: 0; }
  .queue-hero-actions .btn { width: 100%; }
  .queue-bulk-bar { align-items: stretch; flex-direction: column; }
  .queue-bulk-bar .form-select, .queue-bulk-bar .btn { width: 100%; }
  .summary-grid, .queue-toolbar { grid-template-columns: 1fr; }
  .inventory-summary-grid, .inventory-toolbar { grid-template-columns: 1fr; }
  .import-step-strip, .import-mapping-grid, .import-error-summary-grid { grid-template-columns: 1fr; }
  .import-hero { align-items: stretch; flex-direction: column; }
  .import-actions .btn, .import-hero > .btn { width: 100%; }
  .inventory-filter-actions { grid-column: auto; }
  .inventory-filter-actions .btn, .inventory-filter-actions .disabled { flex: 1; }
  .inventory-table-wrap { max-height: none; }
  .queue-filter-search, .queue-filter-actions { grid-column: auto; }
  .queue-filter-actions .btn, .queue-filter-actions .disabled { flex: 1; }
  .queue-table-wrap { max-height: none; }
  .deadline-hero-line, .detail-facts, .case-mini-grid, .case-collab-grid, .case-mini-row { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; }
  .topbar-account { width: 100%; justify-content: flex-start; }
}
