/* Averroes Operations — shared presentation layer. No workflow selectors or data change. */
:root {
  --ink: #172b42;
  --muted: #586b80;
  --brand: #12243d;
  --accent: #8c1d1d;
  --ground: #ffffff;
  --surface: #fff;
  --line: #dce4ee;
  --mint: #edf4f7;
  --red: #ac2943;
  --red-bg: #fff0f2;
  --blue: #245d86;
  --blue-bg: #eaf3fb;
  --amber: #855619;
  --amber-bg: #fff5e5;
  --radius: 14px;
  --button-radius: 10px;
  --button-height: 42px;
  --button-compact-height: 34px;
  --button-border: #cfdae6;
  --ops-sidebar-width: 248px;
  --ops-shadow: 0 3px 14px rgb(18 36 61 / 4%);
  --ops-shadow-raised: 0 18px 48px rgb(27 48 77 / 11%);
  --ops-ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-padding-top: 24px; }
body {
  background: var(--ground);
  color: var(--ink);
  font: 14px/1.6 Manrope, Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #ffd7dd; color: #861426; }
:focus-visible { outline: 3px solid #3c729a; outline-offset: 3px; }
input, textarea { caret-color: var(--accent); }
button, input, select, textarea { font-family: inherit; }
button { touch-action: manipulation; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #edf2f7; }
::-webkit-scrollbar-thumb { background: #a7b7c8; border: 2px solid #edf2f7; border-radius: 6px; }

/* A spacious frame around dense, useful work. */
.clear-workspace {
  --brand: #12243d;
  --ink: #172b42;
  --accent: #8c1d1d;
  --muted: #586b80;
  --ground: #ffffff;
  --line: #dce4ee;
  grid-template-columns: calc(var(--ops-sidebar-width) + 30px) minmax(0, 1fr);
  min-height: 100dvh;
  background: #ffffff;
}
.clear-workspace .sidebar {
  inset: 14px auto 14px 14px;
  width: var(--ops-sidebar-width);
  height: calc(100dvh - 28px);
  padding: 23px 14px 14px;
  gap: 19px;
  border-radius: 16px;
  background: #12243d;
  box-shadow: 0 16px 40px rgb(15 32 56 / 17%);
  z-index: 20;
}
.clear-workspace .sidebar .brand-lockup {
  width: 182px;
  height: 59px;
  padding: 12px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
}
.brand-lockup .brand-symbol { display: none; }
.clear-workspace .sidebar .brand-lockup img {
  position: static;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  transform: none;
}
.clear-workspace .sidebar .brand-lockup .brand-symbol { display: none; }
.clear-workspace .workspace-label {
  margin: -7px 0 0;
  padding: 0;
  text-align: center;
  font-size: 11px;
  color: #b8c9dc;
}
.clear-workspace .nav-list { gap: 22px; padding: 0 3px 12px; scrollbar-width: thin; scrollbar-color: #425771 transparent; }
.clear-workspace .sidebar-section { display: grid; gap: 4px; }
.clear-workspace .sidebar-section h2 {
  margin: 0 11px 6px;
  font: 600 11px/1.5 Manrope, Inter, sans-serif;
  letter-spacing: .025em;
  text-transform: none;
  color: #a9bdd3;
}
.clear-workspace .nav-item {
  position: relative;
  min-height: 42px;
  padding: 10px 12px;
  gap: 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: #d2deed;
  background: transparent;
  transition: background-color 180ms ease, color 180ms ease;
}
.clear-workspace .nav-item svg { display: block; width: 18px; height: 18px; color: #a8bdd5; stroke-width: 1.65; }
.clear-workspace .nav-item:hover { background: #203652; color: #fff; }
.clear-workspace .nav-item.active { background: #e9f0fa; color: #182d48; font-weight: 700; }
.clear-workspace .nav-item.active svg { color: var(--accent); }
.clear-workspace .sidebar-bottom { padding: 13px 7px 0; border-top: 1px solid #35475f; }
.clear-workspace .identity { padding: 2px 3px 10px; gap: 5px; }
.clear-workspace .identity strong { font-size: 12px; color: #f5f8fc; line-height: 1.6; }
.clear-workspace .identity span { color: #b8c9dd; font-size: 11px; }
.clear-workspace .sidebar .btn.ghost { justify-content: flex-start; min-height: 38px; padding: 8px 10px; color: #d4e1f0; border-radius: 8px; }
.clear-workspace .sidebar .btn.ghost:hover { background: #263a55; color: #fff; }
.clear-workspace > .sidebar + div { padding-right: 26px; min-width: 0; }
.clear-workspace .topbar {
  min-height: 80px;
  padding: 17px 0;
  border: 0;
  gap: 14px;
  background: transparent;
}
.clear-workspace .topbar > p { font-size: 12px; color: var(--muted); }
.clear-workspace .topbar > p strong { color: var(--ink); font-weight: 700; }
.clear-workspace .topbar > .row { margin-left: auto; gap: 12px; }
.clear-workspace .environment { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 11px; color: #52677e; }
.clear-workspace .content { padding: 13px 0 36px; max-width: 1800px; margin: 0 auto; }
.clear-workspace .page-heading,
.clear-report.review-workspace .page-heading { margin-bottom: 25px; gap: 18px; align-items: center; }
.clear-report .page-heading h1,
.clear-report.review-workspace .page-heading h1,
#main.content:not(.clear-report) > .page-heading h1 {
  font: 750 clamp(26px, 2.1vw, 34px)/1.25 Manrope, Inter, sans-serif;
  letter-spacing: -.035em;
  color: var(--ink);
}
.clear-report .page-heading p { margin: 8px 0 0; font-size: 13px; color: var(--muted); max-width: 74ch; }
.clear-report h2 { font: 700 20px/1.4 Manrope, Inter, sans-serif; letter-spacing: -.025em; }
.clear-report h3 { font-family: Manrope, Inter, sans-serif; letter-spacing: -.015em; }

/* Navigation collapse is presentation-only; every original nav button stays in place. */
.clear-workspace .ops-sidebar-toggle {
  display: inline-flex;
  width: 38px;
  min-height: 38px;
  padding: 9px;
  flex: none;
  border-radius: 9px;
}
.ops-sidebar-toggle svg { width: 18px; height: 18px; }
.clear-workspace.ops-nav-compact { --ops-sidebar-width: 76px; }
.ops-nav-compact .sidebar { padding: 20px 10px 14px; }
.ops-nav-compact .sidebar .brand-lockup { width: 44px; height: 44px; padding: 5px; }
.clear-workspace.ops-nav-compact .sidebar .brand-lockup .brand-logo { display: none; }
.clear-workspace.ops-nav-compact .sidebar .brand-lockup .brand-symbol { display: block; width: 100%; height: auto; }
.ops-nav-compact .workspace-label,
.ops-nav-compact .sidebar-section h2,
.ops-nav-compact .nav-item > span,
.ops-nav-compact .identity { display: none; }
.ops-nav-compact .nav-list { padding: 0; gap: 17px; }
.ops-nav-compact .sidebar-section { gap: 6px; }
.ops-nav-compact .nav-item { justify-content: center; padding: 12px; min-height: 44px; }
.ops-nav-compact .sidebar-bottom { padding: 12px 0 0; }
.ops-nav-compact #logout { font-size: 0; justify-content: center; width: 100%; gap: 0; }
.ops-nav-compact #logout svg { width: 19px; height: 19px; }

/* Controls: readable defaults, precise feedback, quiet secondary actions. */
.btn, .clear-workspace .btn, .detail .btn, .login-form .btn {
  border-radius: 10px;
  min-height: 42px;
  padding: 10px 14px;
  font: 650 12px/1.5 Manrope, Inter, sans-serif;
  background: #fff;
  color: var(--ink);
  border: 1px solid #ccd8e5;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ops-ease);
}
.btn:hover:not(:disabled), .clear-workspace .btn:hover:not(:disabled) { background: #edf3f9; border-color: #a9bbce; color: var(--ink); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary, .clear-workspace .btn.primary, .detail .btn.primary, .login-form .btn.primary {
  color: #fff;
  border-color: transparent;
  background: #8c1d1d;
  box-shadow: 0 4px 10px rgb(118 28 51 / 12%);
}
.btn.primary:hover:not(:disabled), .clear-workspace .btn.primary:hover:not(:disabled) { color: #fff; border-color: transparent; background: #701717; box-shadow: 0 7px 16px rgb(118 28 51 / 18%); }
.btn.danger, .clear-workspace .btn.danger, .detail .btn.danger { color: #a82b43; background: #fff; border-color: #e0b8c2; box-shadow: none; }
.btn.danger:hover:not(:disabled), .clear-workspace .btn.danger:hover:not(:disabled) { color: #8d1d34; background: #fff0f3; border-color: #c98898; }
.btn.danger.primary, .clear-workspace .btn.danger.primary { background: #a32032; color: #fff; border-color: transparent; }
.btn.ghost, .clear-workspace .btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.compact, .clear-workspace .btn.compact, .detail .btn.compact { min-height: 34px; padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn:disabled, .clear-workspace .btn:disabled { color: #68788a; background: #e9eef4; border-color: #dde4ec; box-shadow: none; transform: none; }
.clear-workspace label, .detail label { font-size: 12px; font-weight: 650; color: #42566e; }
.clear-workspace input:not([type=checkbox]):not([type=radio]),
.clear-workspace select, .clear-workspace textarea,
.detail input:not([type=checkbox]):not([type=radio]), .detail select, .detail textarea,
.login-form input {
  min-height: 43px;
  border: 1px solid #ccd8e5;
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfcfe;
  font-size: 13px;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.clear-workspace input:focus, .clear-workspace select:focus, .clear-workspace textarea:focus,
.detail input:focus, .detail select:focus, .detail textarea:focus, .login-form input:focus {
  outline: 2px solid #3c729a;
  outline-offset: 2px;
  border-color: #648bac;
  background: #fff;
}
input::placeholder, textarea::placeholder { color: #687a8c; opacity: 1; }
.clear-workspace input[readonly], .detail input[readonly] { background: #f1f5f9; color: #52647a; }
.clear-workspace .field-warning, .detail .field-warning { background: var(--amber-bg); border-color: #cba76f; }

/* Summaries form a calm row, with each total attached to its actual action. */
.clear-report .workspace-overview,
.clear-report.review-workspace .workspace-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.clear-report .overview-item,
.clear-report.review-workspace .overview-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 106px;
  gap: 9px;
  padding: 17px 21px;
  background: #fff;
  color: var(--ink);
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  outline: 1px solid #e3e7ed;
  outline-offset: -1px;
  text-align: left;
  transition: background-color 160ms ease, box-shadow 180ms ease;
}
.clear-report .overview-item:last-child { background: #fff; border: 0; }
.clear-report .overview-item > span,
.clear-report.review-workspace .overview-item > span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.clear-report .overview-item strong,
.clear-report.review-workspace .overview-item strong {
  color: var(--ink);
  font-size: clamp(25px, 2.2vw, 33px);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.03em;
  margin: 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.clear-report .overview-item small { color: #61748a; font-size: 12px; font-weight: 500; }
.clear-report .overview-item .overview-hint { display: block; color: #61748a; font-size: 10px; margin: 0; }
.clear-report button.overview-item:hover { background: #f8f9fb; box-shadow: none; }
.clear-report button.overview-item:focus-visible { outline-color: #3c729a; }
.clear-report .overview-item.overdue strong, .clear-report.review-workspace .overview-item.overdue strong { color: #ac2943; }
.clear-report .overview-item.urgent strong, .clear-report.review-workspace .overview-item.urgent strong { color: #855619; }
.clear-report .overview-item.overdue { background: #fff; }
.clear-report .overview-item.urgent { background: #fff; }
.clear-report .overview-item:first-child { background: #12243d; color: #fff; outline: none; }
.clear-report .overview-item:first-child > span, .clear-report .overview-item:first-child .overview-hint { color: #e1e8f2; }
.clear-report .overview-item:first-child strong, .clear-report .overview-item:first-child small { color: #fff; }
.clear-report button.overview-item:first-child:hover { background: #203956; }
.clear-report .overview-item.assigned { background: #8c1d1d; outline: none; }
.clear-report .overview-item.assigned > span, .clear-report .overview-item.assigned .overview-hint { color: #fff; }
.clear-report button.overview-item.assigned:hover { background: #701717; }
.clear-report .moneer-card-note { position: static; color: var(--muted); font-size: 11px; }
.clear-report .workspace-overview.finance-overview { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.clear-report .finance-overview .overview-item strong { font-size: clamp(20px, 1.6vw, 26px); overflow-wrap: normal; word-break: normal; }
.clear-report .workspace-overview.cheque-finance-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Filter groups retain every existing state and action. */
.clear-workspace .request-filter-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 22px; }
.clear-report .filter-box-header { padding: 17px 20px; background: #fff; border-bottom: 1px solid #edf1f6; }
.clear-report .filter-box-header h2 { font: 700 14px/1.5 Manrope, Inter, sans-serif; }
.clear-report .filter-box-header h2 svg { color: #8c1d1d; }
.filter-result-status { color: #586b80; }
.clear-workspace .filter-reset { color: #701717; font-weight: 650; }
.clear-report .request-filter-box .review-filters { padding: 18px 20px 0; border: 0; margin: 0; }
.filter-primary { gap: 14px; }
.clear-workspace .filter-search-input input:not([type=checkbox]):not([type=radio]) { padding-left: 39px; }
.clear-report .request-filter-box .queue-toolbar { border: 0; padding: 15px 20px; gap: 14px; }
.clear-workspace .quick-filter,
.clear-workspace .request-filter-box .quick-filter {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #dde6ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #53687d;
  font: 600 11px/1.5 Manrope, Inter, sans-serif;
}
.clear-workspace .quick-filter.active,
.clear-workspace .quick-filter.urgent.active,
.clear-workspace .quick-filter.overdue.active,
.clear-workspace .request-filter-box .quick-filter.active { color: #701717; background: #fff0f2; border: 1px solid #f0bac3; }
.clear-workspace .quick-filter.active, .clear-workspace .request-filter-box .quick-filter.active { color: #fff; background: #12243d; border-color: #12243d; }
.clear-workspace .quick-filter.urgent.active { color: #fff; background: #855619; border-color: #855619; }
.clear-workspace .quick-filter.overdue.active { color: #fff; background: #b5162a; border-color: #b5162a; }
.clear-workspace .quick-filter.active span, .clear-workspace .request-filter-box .quick-filter.active span { color: #fff; }
.clear-workspace .quick-filter:hover { background: #edf3fa; }
.request-filter-box .filter-quick-indicator { display: none; }
.filter-active { background: #f8fafc; padding: 12px 20px; border-top-color: #e7edf4; }
.filter-chip { border-radius: 7px; min-height: 32px; background: #fff; font-size: 11px; }
.filter-error { background: #fff4f6; color: #8c1d1d; padding: 14px 20px; }
.clear-report .filters, .clear-report .audit-filter-grid,
.clear-report .travel-filter-bar, .clear-report .finance-filters {
  background: #fff;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 14px;
}
.workspace-review-tools { margin: 23px 0 18px; gap: 16px; }
.workspace-review-intro h2 { font-size: 18px; }
.workspace-review-intro p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.workspace-review-controls label { font-size: 11px; }
.clear-report .queue-toolbar { margin-bottom: 18px; }

/* Tables keep sticky identifiers, selection, inline editing and scroll behavior. */
.clear-report .table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: #a7b7c8 #edf2f7;
}
.clear-report table { background: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.clear-report th, .clear-report .review-table th {
  padding: 14px;
  background: #f4f7fb;
  border-bottom: 1px solid #dce5ef;
  color: #53677e;
  font: 650 11px/1.5 Manrope, Inter, sans-serif;
}
.clear-report td, .clear-report .review-table td { padding: 16px 14px; border-top: 1px solid #edf1f6; color: var(--ink); line-height: 1.6; }
.clear-report tbody tr:nth-child(even):not(.clear-group-row) > td { background: #fbfcfe; }
.clear-report tbody tr:hover > td { background: #f0f5fb; }
.clear-report .request-table tr.request-overdue > td,
.clear-report .request-table tr.overdue > td { background: #fff; }
.clear-report .review-table tr.review-needs-data > td { background: #fff8ec; }
.clear-report .review-table tr.review-saved > td { background: #edf7f4; }
.clear-report .review-table .workspace-group-row th { background: #eaf0f7; padding: 12px 14px; color: #27415e; }
.clear-report .table-request { color: #264e78; font-size: 13px; font-weight: 750; text-decoration: none; }
.clear-report .table-request:hover { color: #701717; text-decoration: underline; text-underline-offset: 3px; }
.review-table td > strong { font-size: 12px; font-weight: 700; }
.clear-report .cell-secondary, .review-table .cell-secondary { color: #5d7084; font-size: 11px; line-height: 1.55; margin-top: 5px; }
.clear-report .review-row-actions .btn { min-height: 34px; padding: 7px 10px; font-size: 11px; border-radius: 8px; }
.review-amount { font-weight: 700; }
.clear-report .review-editor-row > td { padding: 22px !important; }
.clear-report .badge { border-radius: 6px; font-size: 10px; padding: 4px 7px; font-weight: 650; line-height: 1.6; }
.clear-report .table-footer { padding: 14px 2px; font-size: 12px; color: var(--muted); }
.clear-report .request-table .overdue { color: #c61930; font-weight: 700; }
.clear-report .selection-bar, .clear-report.review-workspace .selection-bar {
  background: #162c48;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 10px 24px rgb(18 36 61 / 14%);
}
.clear-report .selection-bar strong, .clear-report .selection-bar label,
.clear-report.review-workspace .selection-bar strong, .clear-report.review-workspace .selection-bar label { color: #fff; }
.clear-report .selection-bar .btn:not(.primary):not(:disabled) { color: #fff; background: #29415e; border-color: #5d748f; }

/* Reports, finance, import and administration share the same material. */
.clear-workspace .content > .section,
.clear-report .section {
  background: #fff;
  border: 1px solid #e3e7ed;
  border-radius: 14px;
  box-shadow: none;
  padding: 24px;
  margin: 22px 0;
}
.clear-report .section > h2 { margin-bottom: 15px; }
.clear-report .section .section { padding: 20px 0 0; box-shadow: none; border-radius: 0; border-top: 1px solid var(--line); }
.clear-report .section .table-wrap { box-shadow: none; }
.clear-report .admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-top: 18px; }
.clear-report .admin-panel > summary { font: 700 14px/1.6 Manrope, Inter, sans-serif; color: var(--ink); }
.clear-report .admin-panel fieldset { border-radius: 10px; border-color: var(--line); padding: 18px; }
.clear-report .admin-panel legend { font-size: 12px; }
.clear-report .settings-primary-panel > .admin-panel { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 4px; margin: 0; }
.clear-report .settings-primary-panel > .admin-panel > summary { padding: 8px 0; }
.clear-report .settings-primary-panel > .admin-panel[open] { padding-bottom: 24px; }
.clear-report .feedback, .detail .feedback { border-radius: 10px; padding: 14px 16px; line-height: 1.65; }
.clear-report .empty { padding: 50px 24px; text-align: center; color: var(--muted); }
.clear-report .empty h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.clear-report .empty p { margin-inline: auto; font-size: 13px; }
.clear-report .steps { gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 24px; }
.clear-report .steps > span { border-radius: 8px; padding: 8px 12px; font-size: 12px; }
.clear-report .steps > span.active { color: #7b263d; background: #fff0f2; }
.clear-report .steps b { border-radius: 7px; background: #eef2f7; color: #52677e; }
.clear-report .steps .active b { background: #8c1d1d; color: #fff; }
.clear-report .upload-zone, .detail .upload-zone { background: #f7fafe; border: 1px dashed #91aac4; border-radius: 12px; padding: 34px 24px; }
.clear-report .upload-zone:hover { background: #f0f6fc; border-color: #557d9f; }
.clear-report .urgent-guidance, .clear-report .urgent-entry { border-radius: 12px; }
.clear-report .urgent-guidance { background: #fff8eb; border-color: #ead8b7; }
.clear-report .urgent-guidance p { color: #735424; }
.audit-tabs, .finance-tabs, .travel-tabs, .moneer-tabs { gap: 20px; margin-bottom: 20px; border-bottom-color: #dce5ef; }
.audit-tabs .btn, .clear-workspace .audit-tabs .btn,
.clear-workspace .finance-tabs [role=tab], .clear-workspace .travel-tab,
.clear-workspace .moneer-tabs button, .tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 2px;
  font-size: 12px;
  color: var(--muted);
}
.clear-workspace .audit-tabs .btn[aria-selected=true],
.clear-workspace .finance-tabs [aria-selected=true],
.clear-workspace .travel-tab[aria-selected=true],
.clear-workspace .moneer-tabs button[aria-selected=true], .tab.active { color: #701717; border-bottom-color: #8c1d1d; background: transparent; font-weight: 700; }
.clear-report .finance-cash-card { background: #172d49; border-radius: 14px; border: 0; padding: 24px; box-shadow: var(--ops-shadow); }
.clear-report .finance-cash-card dt, .clear-report .finance-cash-card h2, .clear-report .finance-cash-card dd { color: #fff; }
.clear-report .finance-cash-card p { color: #c6d6e9; }
.clear-report .travel-approval-card, .clear-report .travel-sheet, .clear-report .travel-files > div { border-radius: 12px; }
.clear-report .travel-timeline { background: #edf3f9; border-radius: 12px; }
.company-expense-period { border-radius: 12px; background: #fff; border-color: var(--line); padding: 18px 20px; }
.owner-invoice-library { background: #f5f8fc; border-radius: 12px; border-color: var(--line); }
.settings-tabs { gap: 8px; padding-bottom: 16px; }
.clear-workspace .settings-tabs .btn { min-height: 40px; padding: 9px 13px; border-radius: 8px; background: #fff; border: 1px solid #d9e2ed; color: #52667d; }
.clear-workspace .settings-tabs .btn[aria-selected=true] { background: #172d49; border-color: #172d49; color: #fff; }
.execution-queue-controls { border-radius: 12px; }
.execution-tabs { gap: 12px; }
.clear-report .execution-tab { border: 1px solid #dce5ef; border-radius: 12px; background: #fff; padding: 16px; color: #52677e; }
.clear-report .execution-tab.active { background: #edf3fa; border-color: #8ba6c4; color: #213f63; }
.clear-report .execution-tab strong { color: #213f63; font-size: 24px; }

/* Inspectors are a distinct, focused working surface. */
.detail-scrim { z-index: 40; background: rgb(14 29 49 / 35%); }
.detail, .detail-panel, .detail.workspace-inspector {
  z-index: 41;
  font-family: Manrope, Inter, sans-serif;
  color: var(--ink);
  background: #fafbfc;
  box-shadow: -16px 0 50px rgb(15 32 56 / 14%);
}
.detail .detail-head, .workspace-inspector .detail-head { background: #fff; border-bottom: 1px solid var(--line); padding: 23px 26px; }
.detail h2, .detail-panel h2, .workspace-inspector .detail-head h2 { font: 750 25px/1.35 Manrope, Inter, sans-serif; letter-spacing: -.025em; }
.detail h3 { font: 700 16px/1.45 Manrope, Inter, sans-serif; }
.detail .detail-body, .workspace-inspector .detail-body { padding: 0 26px 28px; }
.detail .detail-tabs { background: #fafbfc; gap: 18px; padding: 16px 0; }
.detail .detail-tabs a { font-size: 12px; font-weight: 650; color: #52687f; text-decoration: none; }
.detail .detail-tabs a:hover { color: #701717; text-decoration: underline; text-underline-offset: 4px; }
.detail .detail-body > .section, .detail .detail-section { border: 0; border-top: 1px solid #dce5ee; padding: 22px 0; background: transparent; border-radius: 0; box-shadow: none; }
.detail #review-form, .workspace-inspector #review-form { background: #fff; padding: 22px; border: 0; border-radius: 14px; box-shadow: var(--ops-shadow); }
.detail .request-meta { gap: 16px; }
.detail .request-meta dt { color: #60748a; font-size: 11px; }
.detail .request-meta dd { color: #203951; font-size: 13px; }
.workspace-inspector-summary { border-color: var(--line); padding: 18px 0; }
.review-detail-nav { gap: 9px; }
.review-confirm { border: 0; border-radius: 16px; padding: 30px; box-shadow: var(--ops-shadow-raised); }
.review-confirm::backdrop { background: rgb(14 29 49 / 40%); }
.review-confirm h2 { font: 750 24px/1.35 Manrope, Inter, sans-serif; letter-spacing: -.025em; }
.notification-popover { border-radius: 14px; box-shadow: var(--ops-shadow-raised); }
.notification-bell { border-radius: 10px; }
.notification-page-list { background: #fff; border-radius: 14px; border-color: var(--line); }
.notification-context { border-radius: 10px; }
.notification-entry.is-unread { background: #f0f5fc; }
.notification-entry-heading strong { font-weight: 700; }
#notice { padding: 15px 21px; border-radius: 12px; background: #172d49; box-shadow: 0 10px 30px rgb(15 32 56 / 20%); }
#notice.error { background: #b5162a; }
.loading { display: flex; align-items: center; gap: 12px; padding: 32px; background: #fff; border-radius: 14px; color: var(--muted); }
.loading::before { content: ''; width: 18px; height: 18px; border: 2px solid #dce5ef; border-top-color: #8c1d1d; border-radius: 50%; flex: none; }

/* Sign-in: the original form and handlers, with a new first impression. */
.login {
  min-height: 100svh;
  padding: 24px;
  gap: 0;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: #ffffff;
}
.login-intro {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  min-height: calc(100svh - 48px);
  padding: clamp(32px, 4vw, 64px);
  border-radius: 20px;
  background: linear-gradient(150deg, #172e4a 0%, #102138 68%, #23364a 100%);
  color: #fff;
}
.login .login-intro .brand-lockup { display: grid; place-items: center; width: clamp(220px, 24vw, 300px); height: clamp(80px, 8.7vw, 108px); padding: 22px; border-radius: 10px; }
.login .login-intro .brand-lockup img { position: static; width: 100%; height: auto; max-width: 100%; object-fit: contain; transform: none; }
.login .login-intro .brand-lockup .brand-symbol { display: none; }
.login-intro h1 {
  position: relative;
  max-width: 12ch;
  font: 650 clamp(39px, 4.3vw, 66px)/1.1 Manrope, Inter, sans-serif;
  letter-spacing: -.04em;
  color: #fff;
  margin: 0 0 25px;
}
.login-intro p { max-width: 36ch; font-size: 15px; line-height: 1.85; color: #becfe1; }
.login-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0; padding: 22px 0 0; border-top: 1px solid #3c5068; list-style: none; counter-reset: none; }
.login-flow li { display: flex; gap: 9px; align-items: center; font-size: 11px; color: #d8e3f0; padding: 0; }
.login-flow li::before { display: none; }
.login-flow li:not(:last-child)::after { content: ''; width: 16px; height: 1px; background: #62778f; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px clamp(28px, 5vw, 80px); background: transparent; }
.login-form { width: 100%; max-width: 390px; gap: 25px; padding: 0; }
.login-form h2 { font: 750 34px/1.25 Manrope, Inter, sans-serif; letter-spacing: -.035em; color: #172b42; }
.login-form > div:first-child p { font-size: 14px; margin-top: 12px; color: #586b80; }
.login-form label { font-size: 12px; font-weight: 650; color: #41566e; gap: 9px; }
.login-form input { min-height: 51px; padding: 14px; border-radius: 10px; background: #fff; font-size: 14px; }
.login-form .password-field input { padding-right: 50px; }
.login-form .btn.primary { min-height: 51px; justify-content: space-between; padding: 13px 17px; border-radius: 10px; font-size: 13px; }
.login-form .btn.primary svg { width: 19px; height: 19px; }
.login-footer { padding-top: 4px; font-size: 11px; line-height: 1.8; text-align: left; color: #60748a; }
.login-form .login-error { font-size: 12px; padding: 13px 15px; border-radius: 9px; }
.password-toggle { border-radius: 8px; color: #60748a; }
.password-toggle:hover { color: #701717; background: #f3e9ee; }

@media (prefers-reduced-motion: no-preference) {
  .login-form { animation: ops-sign-in 620ms var(--ops-ease) both; }
  .loading::before { animation: ops-loading 750ms linear infinite; }
  .clear-workspace.nav-open .sidebar { animation: ops-navigation 200ms var(--ops-ease) both; }
  @keyframes ops-loading { to { transform: rotate(360deg); } }
  @keyframes ops-navigation {
    from { transform: translateX(-14px); opacity: .6; }
    to { transform: translateX(0); opacity: 1; }
  }
  @keyframes ops-sign-in {
    from { opacity: .35; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (min-width: 1600px) {
  .clear-workspace > .sidebar + div { padding-right: 40px; }
  .clear-workspace .content { padding-top: 22px; }
}
@media (max-width: 1100px) {
  :root { --ops-sidebar-width: 224px; }
  .clear-workspace > .sidebar + div { padding-right: 20px; }
  .clear-report .workspace-overview, .clear-report.review-workspace .workspace-overview { gap: 10px; }
  .clear-report .overview-item, .clear-report.review-workspace .overview-item { padding: 17px; min-height: 112px; }
  .clear-workspace .page-heading { align-items: flex-start; }
}
@media (max-width: 900px) {
  .login { padding: 16px; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); }
  .login-intro { min-height: calc(100svh - 32px); padding: 35px; }
  .login-intro h1 { font-size: 43px; }
  .login-form-wrap { padding: 35px; }
  .login-flow { gap: 8px; }
  .login-flow li:not(:last-child)::after { width: 9px; }
  .clear-report .workspace-overview, .clear-report.review-workspace .workspace-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .clear-workspace, .clear-workspace.ops-nav-compact { display: block; }
  .clear-workspace > .sidebar + div { padding: 0 16px; }
  .clear-workspace .topbar { min-height: 70px; padding: 14px 0; flex-wrap: wrap; gap: 9px; }
  .clear-workspace .topbar > p { flex: 1; min-width: 0; max-width: none; font-size: 0; }
  .clear-workspace .topbar > p strong { font-size: 11px; }
  .clear-workspace .topbar > .row { gap: 7px; }
  .clear-workspace .topbar .environment { display: none; }
  .clear-workspace .topbar .btn { min-height: 40px; padding: 8px 10px; }
  .clear-workspace .ops-sidebar-toggle { display: none; }
  .clear-workspace .clear-nav-toggle { display: inline-flex; }
  .clear-workspace .sidebar, .clear-workspace.ops-nav-compact .sidebar {
    display: none;
    inset: 10px auto 10px 10px;
    width: min(280px, calc(100vw - 38px));
    height: calc(100dvh - 20px);
    z-index: 50;
    padding: 16px 14px;
    border-radius: 14px;
    box-shadow: 0 15px 50px rgb(15 32 56 / 30%);
  }
  .clear-workspace.nav-open .sidebar { display: flex; }
  .clear-workspace.nav-open::before { content: ''; position: fixed; inset: 0; background: rgb(14 29 49 / 35%); z-index: 49; pointer-events: none; }
  .clear-workspace .sidebar .clear-nav-close { display: inline-flex; align-self: flex-end; min-height: 40px; color: #fff; }
  .clear-workspace .sidebar .brand-lockup { width: 182px; height: 59px; }
  .clear-workspace .sidebar .brand-lockup img { position: static; width: 100%; height: auto; transform: none; }
  .clear-workspace.ops-nav-compact .sidebar .brand-lockup .brand-logo { display: block; }
  .clear-workspace.ops-nav-compact .sidebar .brand-lockup .brand-symbol { display: none; }
  .clear-workspace .workspace-label { display: block; }
  .clear-workspace .sidebar .nav-list { display: grid; gap: 22px; }
  .clear-workspace .sidebar .sidebar-section { display: grid; padding: 0; margin: 0; border: 0; gap: 4px; }
  .clear-workspace .sidebar .sidebar-section h2 { display: block; }
  .clear-workspace .nav-item { justify-content: flex-start; min-height: 44px; }
  .clear-workspace .nav-item > span { display: inline; }
  .clear-workspace .identity { display: grid; }
  .clear-workspace .sidebar #logout { justify-content: flex-start; font-size: 12px; gap: 8px; }
  .clear-workspace .content { padding: 12px 0 28px; }
  .clear-workspace .page-heading, .clear-report.review-workspace .page-heading { align-items: flex-start; gap: 14px; margin-bottom: 20px; }
  .clear-report .page-heading h1, .clear-report.review-workspace .page-heading h1, #main.content:not(.clear-report) > .page-heading h1 { font-size: 26px; }
  .clear-report .page-heading p { font-size: 12px; }
  .clear-report .workspace-overview, .clear-report.review-workspace .workspace-overview,
  .clear-report .workspace-overview.cheque-finance-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
  .clear-report .overview-item, .clear-report.review-workspace .overview-item { min-height: 111px; padding: 16px; gap: 8px; border-radius: 12px; }
  .clear-report .overview-item strong, .clear-report.review-workspace .overview-item strong { font-size: 27px; }
  .clear-report .overview-item > span { font-size: 11px; }
  .clear-report .filter-box-header { padding: 14px; }
  .clear-report .request-filter-box .review-filters { padding: 14px 14px 0; }
  .clear-report .request-filter-box .queue-toolbar { padding: 12px 14px; }
  .filter-active, .filter-error { padding: 12px 14px; }
  .clear-workspace .btn, .clear-workspace .btn.compact,
  .clear-report .review-row-actions .btn, .detail .btn, .detail .btn.compact,
  .clear-workspace .request-filter-box .quick-filter, .filter-chip { min-height: 44px; }
  .clear-report .review-row-actions { min-width: 155px; }
  .clear-report .review-table td, .clear-report .review-table th { padding: 13px 12px; }
  .clear-workspace .content > .section, .clear-report .section { padding: 18px; margin: 18px 0; }
  .clear-report .steps { padding: 10px; gap: 6px; }
  .clear-report .steps > span { padding: 6px; font-size: 11px; }
  .clear-report .selection-bar { padding: 14px; border-radius: 10px; }
  .clear-report .filters, .clear-report .audit-filter-grid { padding: 14px; }
  .clear-report .admin-panel { padding: 16px; }
  .detail, .detail.workspace-inspector { width: 100vw; }
  .detail .detail-head, .workspace-inspector .detail-head { padding: 19px 16px; }
  .detail .detail-body, .workspace-inspector .detail-body { padding: 0 16px 24px; }
  .detail h2, .workspace-inspector .detail-head h2 { font-size: 22px; }
  .detail #review-form { padding: 17px; }
  .detail .detail-tabs { gap: 14px; }
  .login { display: flex; flex-direction: column; padding: 14px; gap: 0; }
  .login-intro { min-height: 0; padding: 27px; gap: 28px; border-radius: 16px; }
  .login .login-intro .brand-lockup { width: 190px; height: 65px; padding: 15px; border-radius: 8px; }
  .login-intro h1 { font-size: 36px; line-height: 1.15; max-width: 14ch; margin: 0; }
  .login-intro p, .login-flow { display: none; }
  .login-form-wrap { padding: 34px 17px 24px; }
  .login-form { max-width: 420px; gap: 22px; }
  .login-form h2 { font-size: 29px; }
  .login-form > div:first-child p { font-size: 13px; margin-top: 8px; }
}
@media (max-width: 390px) {
  .clear-workspace > .sidebar + div { padding-inline: 12px; }
  .clear-workspace .topbar > p { flex-basis: 0; }
  .clear-workspace .topbar > .row { margin-left: auto; }
  .clear-report .overview-item, .clear-report.review-workspace .overview-item { padding: 13px; }
  .login-intro { padding: 23px; }
  .login-intro h1 { font-size: 32px; }
  .login-form-wrap { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-form { animation: none; }
  .btn, .clear-workspace .btn, .detail .btn, .login-form .btn,
  .nav-item, .overview-item, input, select, textarea { transition: none; }
}
@media print {
  .clear-workspace { display: block; background: #fff; }
  .clear-workspace .sidebar, .clear-workspace .topbar { display: none; }
  .clear-workspace > .sidebar + div { padding: 0; }
  .clear-report .overview-item, .clear-report .section { box-shadow: none; border: 1px solid #dce4ee; }
  .clear-report .request-scroll { max-height: none; overflow: visible; }
}

/* Sidebar interaction system — original destinations and action counts remain authoritative. */
.clear-workspace:not(.ops-nav-compact) { --ops-sidebar-width: var(--ops-expanded-width, 248px); }
.clear-workspace .ops-indicator-nav { position: relative; isolation: isolate; }
.clear-workspace .ops-indicator-nav .sidebar-section { position: relative; z-index: 1; }
.ops-nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  background: #e9f0fa;
  border-radius: 9px;
}
.ops-indicator-ready .ops-nav-indicator { transition: transform 240ms cubic-bezier(.2,.8,.2,1), width 180ms ease, height 180ms ease; }
.clear-workspace .ops-indicator-nav .nav-item.active,
.clear-workspace .ops-indicator-nav .nav-item.active:hover { background: transparent; color: #182d48; }
.clear-workspace .nav-item > svg { color: #e8eff8; transition: color 180ms ease; }
.clear-workspace .nav-item.active > svg { color: #8c1d1d; }
.clear-workspace .nav-item[data-view=urgent].has-attention:not(.active) > svg { color: #f6c06e; }
.clear-workspace .nav-item .nav-label { flex: 1; min-width: 0; }
.clear-workspace .nav-item .nav-page-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 2px 6px;
  border-radius: 7px;
  background: #344b68;
  color: #f5f8fc;
  font-size: 10px;
  line-height: 1;
  margin-left: auto;
}
.clear-workspace .nav-item.active .nav-page-badge { background: #233c5c; color: #fff; }
.clear-workspace .nav-item[data-view=urgent] .nav-page-badge { background: #f6c06e; color: #412905; }
.clear-workspace .nav-item[data-view=delays] .nav-page-badge { background: #8c1d1d; color: #fff; }
.clear-workspace.ops-nav-compact .nav-item .nav-page-badge {
  display: inline-flex;
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 2px 4px;
  border-radius: 5px;
  font-size: 9px;
}
.clear-workspace .sidebar-section.ops-context-section h2 { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #fff; }
.clear-workspace .sidebar-section.ops-context-section h2::after { content: 'Request open'; color: #d6e2f0; font-size: 9px; font-weight: 500; white-space: nowrap; }
.clear-workspace .nav-item.ops-detail-context { box-shadow: inset 0 0 0 1px #9eafc4; }
.clear-workspace.ops-nav-compact .sidebar-section.ops-context-section h2 { display: none; }
.ops-sidebar-resize {
  position: absolute;
  top: 12px;
  right: 0;
  bottom: 12px;
  z-index: 3;
  width: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: col-resize;
  touch-action: none;
  border-radius: 5px;
}
.ops-sidebar-resize::before { content: ''; width: 3px; height: 34px; border-radius: 3px; background: #6c819b; transition: background-color 160ms ease, height 160ms ease; }
.ops-sidebar-resize:hover::before, .ops-sidebar-resize:focus-visible::before { background: #e9f0fa; height: 46px; }
.ops-sidebar-resize:focus-visible { outline: none; }
.ops-sidebar-resize:focus-visible::before { outline: 2px solid #c9d9ed; outline-offset: 3px; }
.ops-nav-compact .ops-sidebar-resize { display: none; }
.ops-navigation-resizing, .ops-navigation-resizing * { cursor: col-resize !important; user-select: none !important; }
.ops-navigation-resizing .ops-nav-indicator { transition: none; }
@media (max-width: 720px) {
  .ops-sidebar-resize { display: none; }
  .clear-workspace .sidebar-section.ops-context-section h2 { display: flex; }
  .clear-workspace.ops-nav-compact .nav-item .nav-page-badge { position: static; height: 22px; min-width: 22px; padding: 2px 6px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ops-indicator-ready .ops-nav-indicator, .ops-sidebar-resize::before { transition: none; }
}
@media print { .ops-sidebar-resize, .ops-nav-indicator { display: none; } }
/* Selected navigation follows the supplied reference, using the logo burgundy. */
.clear-workspace .ops-nav-indicator { background: linear-gradient(90deg,#23304a 35%,#483044 78%,#753244); box-shadow: 0 5px 14px #080f202b; overflow: hidden; }
.clear-workspace .ops-nav-indicator::after { content: ''; position: absolute; right: 3px; top: 25%; height: 50%; width: 3px; border-radius: 3px; background: #f2b7be; box-shadow: -6px 0 18px 5px #d77c91a8; }
.clear-workspace .ops-indicator-nav .nav-item.active,.clear-workspace .ops-indicator-nav .nav-item.active:hover { color: #fff; }
.clear-workspace .nav-item.active > svg { color: #ffd3d7; }
.clear-workspace .nav-item.active .nav-page-badge { background: #513448; color: #fff; }
.clear-workspace .workspace-overview .overview-item.is-zero { background: #f5f7fa; color: #657185; border-color: #dce3ec; box-shadow: none; }
.clear-workspace .workspace-overview .overview-item.is-zero strong,.clear-workspace .workspace-overview .overview-item.is-zero span { color: #657185; }
.clear-workspace .workspace-overview .overview-item[aria-pressed=true] { outline: 2px solid #8c1d1d; outline-offset: 3px; }
.clear-workspace .badge.pending_review,.detail .badge.pending_review { color: #245578; background: #eaf2fa; }
.detail .detail-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; background: #eef2f7; border-radius: 12px; }
.detail .detail-tabs a { padding: 11px 14px; border-radius: 8px; color: #40556f; text-decoration: none; }
.detail .detail-tabs a[aria-current=location] { background: #8c1d1d; color: #fff; box-shadow: 0 3px 8px #70171726; }
.detail .detail-tabs a:hover { text-decoration: none; }
.detail .detail-tabs a:focus-visible { outline: 2px solid #8c1d1d; outline-offset: 2px; }
.detail [id^=request-] { scroll-margin-top: 95px; }
.detail .evidence-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 16px; }
.detail .evidence-grid a { width: 100%; max-width: none; display: block; cursor: zoom-in; }
.detail .evidence-grid a img { width: 100%; max-width: none; height: 280px; max-height: none; object-fit: contain; background: #f2f5f9; border-radius: 10px; }
.detail .evidence-grid a::after { content: 'Preview & zoom'; display: block; padding: 8px; text-align: center; color: #8c1d1d; font-size: 12px; font-weight: 700; }
@media(max-width:600px){.detail .detail-tabs a { padding: 10px; }.detail .evidence-grid a img { height: 240px; }}
.clear-workspace .filter-primary { grid-template-columns: repeat(3,minmax(0,1fr)); }
.request-all-filter[aria-pressed=true] { background: #eaf0f7; color: #182d48; }
@media(max-width:720px){.clear-workspace .filter-primary { grid-template-columns: 1fr; }}
