/* Majestic owner workspace design system.
   Loaded after legacy styles so every screen shares one visual language. */
:root {
  --font-ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: #f4f8fd;
  --surface: #ffffff;
  --surface-subtle: #f7faff;
  --surface-blue: #edf5ff;
  --text: #17243b;
  --text-soft: #596d89;
  --text-muted: #72839a;
  --border: #d9e4f0;
  --border-strong: #c6d6e8;
  --primary: #2468d8;
  --primary-dark: #174fae;
  --primary-soft: #e8f1ff;
  --success: #087f72;
  --success-soft: #e8f8f4;
  --warning: #a46608;
  --warning-soft: #fff6dc;
  --danger: #c84e40;
  --danger-soft: #fff0ed;
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 17px;
  --shadow-card: 0 9px 28px rgba(42, 73, 112, .075);
  --shadow-float: 0 18px 50px rgba(32, 67, 111, .15);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
}

html { font-size: 16px; text-size-adjust: 100%; }
body { min-width: 320px; font-family: var(--font-ui); color: var(--text); background: var(--page); line-height: 1.5; }
body::before { content: none; }
button, input, select, textarea { font-family: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font-size: .875rem; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(36, 104, 216, .3);
  outline-offset: 2px;
}
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .55; }
::selection { color: #fff; background: #2468d8; }
* { scrollbar-color: #a8bdd5 transparent; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: #a8bdd5; background-clip: padding-box; }
h1, h2, h3, h4, .topbar h1, .panel h2, .import-panel > h2,
.login-card h2, .metric-card strong, .alert-center-live span {
  font-family: var(--font-ui);
  font-weight: 750;
  letter-spacing: -.025em;
}
p { line-height: 1.55; }
.muted { color: var(--text-soft); }
.eyebrow { display: none; }
body [class] small { font-size: max(.72rem, 11.5px); line-height: 1.4; }
body [class] strong, body [class] td, body [class] th { font-variant-numeric: tabular-nums; }

/* Shell and navigation */
.app-shell { grid-template-columns: 272px minmax(0, 1fr); }
.app-shell.sidebar-collapsed { grid-template-columns: 80px minmax(0, 1fr); }
.sidebar {
  padding: 24px 16px 18px;
  border-right: 1px solid var(--border);
  background: rgba(249, 252, 255, .97);
  box-shadow: 5px 0 24px rgba(43, 74, 112, .045);
  backdrop-filter: blur(18px);
}
.sidebar-brand { padding: 0 9px 24px; }
.sidebar-brand strong { color: #16335f; font-size: .94rem; letter-spacing: -.01em; }
.sidebar-brand small { color: #7287a2; font-size: .75rem; letter-spacing: 0; }
.brand-mark { border-radius: 12px; font-family: var(--font-ui); transform: none; }
.brand-logo { display: block; max-width: 100%; height: auto; object-fit: contain; }
.brand-logo-sidebar { width: 160px; max-width: none; }
.sidebar-brand { min-height: 72px; display: grid; align-content: start; gap: 1px; overflow: hidden; }
.sidebar-brand small { padding-left: 54px; white-space: nowrap; }
.sidebar-collapsed .sidebar-brand { width: 52px; min-height: 70px; display: block; overflow: hidden; }
.sidebar-collapsed .sidebar-brand .brand-logo-sidebar { width: 160px; }
.sidebar-collapsed .sidebar-brand small { display: none; }
.auth-loading .brand-logo-loading { width: 150px; }
.sidebar nav { gap: 4px; }
.nav-section {
  margin: 17px 12px 5px;
  color: #8a9bb0;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: 0;
}
.nav-section:first-child { margin-top: 0; }
.nav-item {
  min-height: 44px;
  padding: 10px 12px;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #5d7290;
  font-size: .875rem;
  font-weight: 700;
}
.nav-item span { width: 25px; height: 25px; display: grid; place-items: center; color: #4e6f9e; }
.nav-item svg, .sidebar-toggle svg, .menu-button svg, .topbar-tool svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item:hover { color: #174f9f; border-color: #d6e4f3; background: #f0f6fd; }
.nav-item.active { color: #164d9a; border-color: #c8dcf4; background: #e9f3ff; box-shadow: inset 3px 0 var(--primary); }
.nav-item.active span { color: var(--primary); }
.sidebar-collapsed .nav-section { display: none; }
.sidebar-collapsed .nav-item { min-height: 46px; }
.sidebar-toggle { top: 50%; border-color: #bfd2ea; background: #fff; box-shadow: 5px 0 20px rgba(38, 72, 116, .13); }
.sidebar-toggle span { color: var(--primary); transition: transform .18s ease; }
.sidebar-toggle.points-right span { transform: rotate(180deg); }
.sidebar-toggle:hover { background: var(--primary); }.sidebar-toggle:hover span { color: #fff; }
.live-pill { font-size: .72rem; letter-spacing: .07em; text-transform: none; }

main { padding: 0 34px 52px; background: transparent; }
.topbar {
  position: sticky;
  z-index: 14;
  top: 0;
  min-height: 96px;
  margin: 0 -6px 20px;
  padding: 12px 6px;
  background: linear-gradient(180deg, rgba(244,248,253,.98) 72%, rgba(244,248,253,0));
  backdrop-filter: blur(12px);
}
.topbar h1 { color: var(--text); font-size: 1.75rem; line-height: 1.15; }
.page-heading { display: grid; gap: 3px; }
.page-heading p { margin: 0; color: var(--text-soft); font-size: .82rem; line-height: 1.35; }
.topbar-actions { gap: 10px; }
.freshness { padding: 7px 10px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.8); }
.freshness small { font-size: .68rem; }.freshness strong { font-size: .8rem; }
.global-search { width: min(330px, 27vw); }
.global-search > input { min-height: 42px; color: var(--text); border-color: var(--border-strong); background: #fff; font-size: .875rem; }
.topbar-tool, #rangeSelect { min-height: 42px; font-size: .82rem; }
.topbar-tool { display: inline-flex; align-items: center; gap: 7px; }
.menu-button { width: 44px; height: 44px; place-items: center; color: var(--text); }

/* Shared content surfaces */
.view { max-width: 1600px; margin: 0 auto; }
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  background: var(--surface);
  box-shadow: none;
}
.panel { padding: 24px; }
.panel h2 { color: var(--text); font-size: 1.3rem; line-height: 1.25; }
.panel-head { align-items: flex-start; }
.metric-grid, .dashboard-grid, .alert-center-summary, .controller-summary,
.ops-portfolio, .ops-location-metrics, .analytics-metrics { gap: 14px; }
.metric-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
}
.metric-card {
  min-height: 142px;
  padding: 21px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.metric-card:last-child { border-right: 0; }
.metric-card.featured { background: var(--surface-blue); }
.metric-card p { margin-bottom: 14px; color: #536985; font-size: .78rem; letter-spacing: 0; text-transform: none; }
.metric-card strong { font-size: 2rem; }
.metric-card > span { color: var(--text-soft); font-size: .78rem; }
.metric-icon { display: none; }

.section-tabs {
  margin-bottom: 18px;
  padding: 4px;
  border-color: var(--border);
  border-radius: 12px;
  background: #e9f0f8;
}
.section-tabs button { min-height: 38px; padding: 0 16px; color: #5c718d; font-size: .8rem; }
.section-tabs button.active { color: #fff; background: var(--primary); box-shadow: 0 6px 16px rgba(36,104,216,.18); }

/* Controls and forms */
label { color: #536985; font-size: .82rem; font-weight: 700; }
input, select, textarea, .search,
.form-grid input, .form-grid select, .form-grid textarea,
.email-strip input, .mfa-setup input, .email-config-form input,
.ops-form input, .ops-form select, .ops-location-find input {
  min-height: 43px;
  padding: 10px 12px;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  font-size: .875rem;
  line-height: 1.35;
}
textarea, .form-grid textarea { min-height: 92px; }
input::placeholder, textarea::placeholder { color: #8a99ac; opacity: 1; }
input:focus, select:focus, textarea:focus, .search:focus {
  border-color: #6ca4ee;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(36,104,216,.11);
}
.primary-button, .action-button, .table-action, .topbar-tool {
  min-height: 42px;
  border-radius: 10px;
  font-size: .84rem;
  font-weight: 750;
}
.primary-button { background: var(--primary); box-shadow: 0 7px 18px rgba(36,104,216,.17); }
.primary-button:hover { background: var(--primary-dark); }
.primary-button:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(36,104,216,.14); }
.action-button, .table-action, .topbar-tool { color: #315273; border-color: var(--border-strong); background: #fff; }
.action-button:hover, .table-action:hover, .topbar-tool:hover { color: var(--primary-dark); border-color: #91b8e8; background: #f1f7ff; }
.form-status, .form-error { font-size: .82rem; }

/* Tables and dense records */
.table-wrap { margin-top: 6px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
table { margin-top: 0; font-size: .875rem; }
th {
  padding: 12px;
  color: #5b7392;
  border-color: var(--border);
  background: #f5f9fe;
  font-size: .75rem;
  letter-spacing: .01em;
  text-transform: none;
}
td { padding: 13px 12px; color: #304866; border-color: #e5ecf4; }
tbody tr:hover td { background: #f8fbff; }
td strong { color: #203957; font-size: .875rem; }
td small { color: #71849b; font-size: .76rem; }
.status, .ops-status { font-size: .72rem; }
.count-badge { border-radius: 999px; }

/* Reports: clear accounting-document hierarchy on screen and paper. */
#reportsView { max-width: 1480px; }
#reportsView .report-toolbar { align-items: flex-end; padding: 22px 24px; }
.report-controls { gap: 9px; }
.report-controls label { font-size: .75rem; }
.report-sheet {
  margin-top: 16px;
  padding: 34px;
  border: 0;
  border-radius: 18px;
  color: #1d304a;
  background: #fff;
  box-shadow: 0 18px 48px rgba(40, 72, 111, .11);
}
.report-heading { padding-bottom: 24px; border-bottom: 2px solid #dce7f2; }
.report-brand { margin: 0 0 5px; color: var(--primary); font-size: .86rem; font-weight: 800; }
.report-logo { width: 190px; margin: 0 0 12px; }
.report-heading h2 { margin-top: 4px; color: #152a47; font-family: var(--font-ui); font-size: 1.9rem; }
.report-heading h2 + p { margin: 5px 0 0; color: var(--text-soft); font-size: .82rem; }
.report-period-stamps {
  width: min(100%, 540px);
  grid-template-columns: minmax(148px, 1fr) 72px minmax(148px, 1fr);
  gap: 10px 16px;
  font-size: .78rem;
}
.report-period-stamps .report-period-start { text-align: right; }
.report-period-stamps .report-period-end { text-align: left; }
.report-period-stamps small { color: #71839a; font-size: .75rem; }
.report-period-stamps strong { color: #263e5c; font-family: var(--font-ui); font-size: .82rem; font-variant-numeric: tabular-nums; }
.report-period-arrow {
  width: 72px;
  height: 44px;
  display: grid;
  place-items: center;
  align-self: center;
  color: var(--primary);
}
.report-period-arrow svg { width: 64px; height: 32px; overflow: visible; }
.report-period-arrow path { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.report-section-title { margin: 27px 0 12px; display: flex; align-items: center; gap: 11px; }
.report-section-title div { display: grid; }.report-section-title small { color: #647c99; font-size: .7rem; font-weight: 850; letter-spacing: .07em; }
.report-section-title strong { color: #1c3555; font-size: 1.05rem; }
.report-metrics { gap: 10px; }
.report-metrics > div, .report-insight-grid > article, .reconciliation-grid > div {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbff;
}
.report-metrics strong { font-family: var(--font-ui); }
.report-subhead { margin-top: 30px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.report-subhead h3 { font-family: var(--font-ui); font-size: 1.08rem; }
.report-subhead p { margin: 3px 0 0; color: var(--text-soft); font-size: .78rem; }
.report-subhead > span { color: #657c96; font-size: .76rem; }
.report-machine-table { margin-top: 13px; }
.email-strip { margin-top: 16px; }

/* Login uses the same typography as the authenticated portal. */
.login-copy h1 { font-family: var(--font-ui); font-weight: 780; letter-spacing: -.035em; }
.login-live, .login-lock { font-size: .75rem; letter-spacing: .02em; text-transform: none; }
.login-card { border-radius: 22px; }
.login-card h2 { font-size: 2.15rem; }
.login-card label { font-size: .82rem; }
.login-card input { min-height: 48px; font-size: 1rem; }
.login-trust, .demo-note { font-size: .75rem; }

/* Fleet operations: one type system, dense location discovery, quiet detail. */
#alertsView, #operationsView,
#alertsView button, #alertsView input, #alertsView select, #alertsView textarea,
#operationsView button, #operationsView input, #operationsView select, #operationsView textarea {
  font-family: var(--font-ui);
}
#alertsView strong, #operationsView strong, #alertsView b, #operationsView b {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.alert-center-live span { font-family: var(--font-ui); font-weight: 800; letter-spacing: -.035em; }
.alert-center-live small,
.alert-center-summary small,
.ops-portfolio small,
.ops-location-metrics small,
.ops-location-profit small,
.planner-summary small,
.accounting-control-summary small,
.operation-alert footer label {
  letter-spacing: 0;
  text-transform: none;
}
.alert-center-head {
  border-color: #cfe0f2;
  background: linear-gradient(110deg, #edf6ff 0%, #fff 55%, #edfaf7 100%);
}
.alert-center-live {
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(38, 83, 140, .09);
}
.alert-center-summary article { box-shadow: none; }
.alert-filter-grid { align-items: end; }
.alert-filter-grid label { letter-spacing: 0; text-transform: none; }
.operations-alert-list { gap: 8px; }
.operation-alert {
  overflow: clip;
  border: 1px solid #d9e5f1;
  border-radius: 12px;
  background: #fff;
}
.operation-alert.critical, .operation-alert.warning, .operation-alert.info, .operation-alert.cleared { border-left-width: 1px; }
.operation-alert > summary {
  min-height: 70px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  list-style: none;
}
.operation-alert > summary::-webkit-details-marker { display: none; }
.operation-alert > summary:hover { background: #f8fbff; }
.operation-alert[open] > summary { border-bottom: 1px solid #e1e9f2; background: #f8fbff; }
.operation-alert-copy { min-width: 0; display: grid; gap: 3px; }
.operation-alert-copy strong { overflow: hidden; color: #1d3556; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.operation-alert-copy small { overflow: hidden; color: #71859d; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.operation-alert > summary > i { width: 9px; height: 9px; border-right: 2px solid #6b83a0; border-bottom: 2px solid #6b83a0; transform: rotate(45deg); transition: transform .18s ease; }
.operation-alert[open] > summary > i { transform: rotate(225deg); }
.operation-alert-detail > p { margin: 0; padding: 15px 17px 8px; color: #405873; font-size: .875rem; line-height: 1.55; }
.operation-alert-meta { padding: 0 17px 14px; }
.operation-alert footer { border-top: 1px solid #e1e9f2; }

.ops-location-management {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.ops-location-picker {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  margin-top: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ops-directory-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ops-directory-head h2 { margin: 0; font-size: 1.1rem; }
.ops-directory-head p { margin: 2px 0 0; font-size: .75rem; }
.ops-location-find { width: 100%; margin-top: 14px; display: grid; gap: 10px; }
.ops-location-find input { width: 100%; }
.ops-location-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ops-location-filters label { min-width: 0; color: #607795; font-size: .72rem; }
.ops-location-filters select { width: 100%; min-height: 38px; margin-top: 5px; padding-right: 27px; font-size: .75rem; }
.ops-location-tabs {
  min-height: 0;
  margin-top: 12px;
  padding: 0 4px 0 0;
  display: grid;
  align-content: start;
  gap: 6px;
  overflow: auto;
}
.ops-location-tab {
  width: 100%;
  min-width: 0;
  min-height: 66px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
}
.ops-location-tab:hover { border-color: #b9cde4; background: #f7fbff; }
.ops-location-tab.active { border-color: #8db7ec; background: #edf6ff; box-shadow: inset 3px 0 0 #3b82f6; }
.ops-location-tab span { gap: 2px; }
.ops-location-tab strong { font-size: .84rem; }
.ops-location-tab small { color: #71849b; font-size: .7rem; }
.ops-location-tab b { display: grid; justify-items: end; color: #087f72; font-size: .8rem; }
.ops-location-tab b small { font-weight: 600; }
.ops-location-health { width: 8px; height: 8px; border-radius: 50%; background: #d89a27; }
.ops-location-health.online { background: #18a083; }
.ops-location-health.offline { background: #d05a4e; }
.ops-directory-empty { min-height: 150px; display: grid; place-content: center; gap: 4px; color: #71849b; text-align: center; }
.ops-directory-empty strong { color: #29415e; }
.ops-location-workspace { min-width: 0; margin-top: 0; }
.ops-portfolio strong,
.ops-location-profit strong,
.ops-location-metrics strong,
.ops-location-tab b,
.ops-profit-value { font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
.ops-portfolio small, .ops-location-metrics small { font-size: .75rem; }
.ops-portfolio article, .ops-location-metrics article { box-shadow: none; }
.ops-command, .accounting-control, .collection-planner { box-shadow: none; }

@media (max-width: 1180px) {
  .ops-location-management { grid-template-columns: 1fr; }
  .ops-location-picker { position: static; max-height: none; }
  .ops-location-tabs { max-height: 340px; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 244px minmax(0, 1fr); }
  .app-shell.sidebar-collapsed { grid-template-columns: 78px minmax(0, 1fr); }
  main { padding-right: 22px; padding-left: 22px; }
  .topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 760px) {
  html { font-size: 16px; }
  .app-shell, .app-shell.sidebar-collapsed { display: block; }
  .sidebar { left: calc(-1 * min(88vw, 304px)); width: min(88vw, 304px); padding: max(22px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); }
  .sidebar-collapsed .nav-section { display: block; }
  main { padding: 0 max(14px, env(safe-area-inset-right)) max(34px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
  .topbar { min-height: 80px; margin-bottom: 12px; }
  .topbar h1 { font-size: 1.35rem; }
  .panel { padding: 18px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 128px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .metric-card:nth-child(2n) { border-right: 0; }
  .metric-card:nth-last-child(-n+2) { border-bottom: 0; }
  .report-sheet { padding: 20px 16px; border-radius: 14px; }
  .report-heading h2 { font-size: 1.45rem; }
  .report-period-stamps { grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); gap: 9px 12px; }
  .report-period-arrow { width: 58px; }
  .report-period-arrow svg { width: 52px; }
  .report-period-stamps strong { white-space: normal; }
  .report-section-title { margin-top: 22px; }
  .table-wrap { border-radius: 10px; }
  .ops-location-tabs { max-height: 360px; grid-template-columns: 1fr; }
  .ops-location-filters { grid-template-columns: 1fr; }
  .operation-alert > summary { grid-template-columns: auto minmax(0, 1fr) 18px; }
  .operation-alert > summary .alert-status { grid-column: 2; justify-self: start; }
  .operation-alert > summary > i { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 420px) {
  .report-period-stamps { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 8px; }
  .report-period-arrow { width: 44px; }
  .report-period-arrow svg { width: 40px; }
  .report-period-stamps small { font-size: .68rem; }
  .report-period-stamps strong { font-size: .74rem; line-height: 1.45; }
}

@media (pointer: coarse) {
  button, .action-button, .table-action, .topbar-tool, .section-tabs button, select { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* High-density display finishing pass.
   Keep the accounting workspace quiet while sharpening type, rules, icons,
   and raster assets on Retina/HiDPI screens. */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
body { font-kerning: normal; }
body, button, input, select, textarea { font-feature-settings: "kern" 1, "liga" 1, "calt" 1; }
.metric-card strong, .statement-summary strong, td, th, code, .mono {
  font-variant-numeric: tabular-nums lining-nums;
}
.brand-logo, img, svg { shape-rendering: geometricPrecision; }
.brand-logo {
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.nav-item svg, .topbar-tool svg, .menu-button svg, .sidebar-toggle svg,
.status-icon svg, .action-button svg, .primary-button svg {
  vector-effect: non-scaling-stroke;
}
.panel, .metric-grid, .table-wrap, input, select, textarea,
.action-button, .primary-button, .topbar-tool { background-clip: padding-box; }

@media (min-resolution: 2dppx) {
  :root {
    --border: #d7e2ee;
    --border-strong: #c3d3e5;
    --shadow-card: 0 8px 24px rgba(42, 73, 112, .065);
  }
  .sidebar, .panel, .metric-grid, .table-wrap, .section-tabs,
  input, select, textarea, .action-button, .primary-button, .topbar-tool {
    border-width: .5px;
  }
  th, td, .metric-card, .controller-safety > div,
  .alert-center-summary > article, .controller-summary > article,
  .fleet-summary > article, .analytics-metrics > article,
  .ops-portfolio > article, .ops-location-metrics > article,
  .accounting-control-summary > article, .planner-summary > article,
  .security-grid > article { border-width: .5px; }
}

/* Security activity ledger: fixed columns prevent long audit values from colliding. */
.audit-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-gutter: stable; }
.audit-panel .audit-table { width: 100%; min-width: 1040px; table-layout: fixed; }
.audit-table .audit-time { width: 15%; }
.audit-table .audit-event { width: 19%; }
.audit-table .audit-actor { width: 11%; }
.audit-table .audit-target { width: 14%; }
.audit-table .audit-details { width: 29%; }
.audit-table .audit-source { width: 12%; }
.audit-table th, .audit-table td { min-width: 0; vertical-align: top; white-space: normal; overflow-wrap: anywhere; word-break: normal; line-height: 1.45; }
.audit-table td { padding-block: 14px; }
.audit-table td strong, .audit-table td small { max-width: 100%; overflow-wrap: anywhere; }
.audit-table td small { display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }
.audit-table td:nth-child(5) { color: #61758d; font-size: .75rem; }
.audit-table td:last-child { font-size: .75rem; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .audit-table-wrap { overflow: visible; border: 0; background: transparent; }
  .audit-panel .audit-table { min-width: 0; table-layout: auto; }
  .audit-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .audit-table, .audit-table tbody, .audit-table tr, .audit-table td { display: block; width: 100%; }
  .audit-table tbody { display: grid; gap: 12px; }
  .audit-table tr { overflow: hidden; border: 1px solid #dce6f1; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(36, 104, 216, .06); }
  .audit-table td { min-height: 42px; padding: 10px 12px 10px 39%; border: 0; border-bottom: 1px solid #e7edf4; position: relative; }
  .audit-table td:last-child { border-bottom: 0; }
  .audit-table td::before { content: attr(data-label); position: absolute; left: 12px; top: 11px; width: calc(39% - 20px); color: #607795; font-size: .69rem; font-weight: 800; }
}

@media print {
  .report-sheet { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .report-metrics > div, .report-insight-grid > article, .reconciliation-grid > div { break-inside: avoid; }
}

/* Login workspace: a bright route ledger paired with a focused owner sign-in. */
.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1.14fr) minmax(440px, .86fr);
  color: #17315c;
  background: #f8fbff;
}
.login-art {
  isolation: isolate;
  min-width: 0;
  padding: clamp(38px, 5vw, 76px) clamp(42px, 7vw, 112px);
  align-items: stretch;
  flex-direction: column;
  justify-content: space-between;
  color: #17315c;
  background: #dfeeff;
}
.login-art::before {
  z-index: -2;
  width: min(58vw, 760px);
  height: min(58vw, 760px);
  left: -24%;
  bottom: -43%;
  border: 1px solid rgba(36, 104, 216, .2);
  background: transparent;
  filter: none;
  opacity: 1;
}
.login-art::after {
  z-index: -2;
  width: 420px;
  height: 420px;
  right: -180px;
  top: -180px;
  border: 110px solid rgba(255, 255, 255, .38);
  background: transparent;
  filter: none;
  opacity: 1;
}
.login-brand { z-index: 2; display: grid; justify-items: start; gap: 1px; }
.login-brand .brand-logo-login { width: 218px; }
.login-brand > small { margin-left: 70px; color: #5c7595; font-size: .74rem; }
.login-brand .brand-mark.large { position: static; width: 48px; height: 48px; flex: 0 0 48px; color: #fff; border: 0; border-radius: 14px; background: #2468d8; box-shadow: 0 10px 24px rgba(36, 104, 216, .22); transform: rotate(-2deg); font: 850 23px/1 var(--font-ui); }
.login-brand > span:last-child, .mobile-brand > span:last-child { display: grid; gap: 2px; }
.login-brand strong, .mobile-brand strong { color: #17315c; font-size: .95rem; letter-spacing: -.01em; }
.login-brand small, .mobile-brand small { color: #5c7595; font-size: .74rem; }
.login-copy { width: min(650px, 100%); max-width: none; flex: 1; display: flex; align-items: center; margin: 0; }
.login-copy h1 { max-width: 10ch; margin: 0; color: #17315c; font: 780 clamp(3.8rem, 6vw, 6rem)/.96 var(--font-ui); letter-spacing: -.04em; text-wrap: balance; }
.login-copy h1 > span, .login-copy h1 > strong { display: block; }
.login-copy h1 > strong {
  color: transparent;
  background: linear-gradient(90deg, #2563eb 0%, #7251e8 25%, #d53892 50%, #f06a38 73%, #f5b82e 100%);
  background-size: 180% 100%;
  background-position: 0 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: inherit;
}
@keyframes majestic-headline-gradient {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}
.login-route-mark { position: absolute; z-index: -1; right: 4.5vw; bottom: 11vh; width: min(20vw, 250px); height: min(20vw, 250px); border: 1px solid rgba(36, 104, 216, .14); border-radius: 50%; }
.login-route-mark::before, .login-route-mark::after { content: ""; position: absolute; border: 1px solid rgba(36, 104, 216, .13); border-radius: 50%; }
.login-route-mark::before { inset: 17%; }.login-route-mark::after { inset: 38%; background: rgba(255, 255, 255, .42); }
.login-route-mark i { position: absolute; z-index: 2; width: 10px; height: 10px; border: 3px solid #dfeeff; border-radius: 50%; background: #2468d8; box-shadow: 0 0 0 1px rgba(36, 104, 216, .35); }
.login-route-mark i:nth-child(1) { left: 14%; top: 21%; }.login-route-mark i:nth-child(2) { right: 17%; top: 34%; }.login-route-mark i:nth-child(3) { left: 42%; bottom: 13%; background: #0f9f8f; }.login-route-mark i:nth-child(4) { left: 48%; top: 46%; }
.login-shell.login-entering .brand-logo-login { animation: majestic-logo-arrive 720ms cubic-bezier(.16,1,.3,1) both; }
.login-shell.login-entering .login-brand > small { animation: majestic-label-arrive 520ms 190ms cubic-bezier(.16,1,.3,1) both; }
.login-shell.login-entering .login-copy h1 > strong { animation: majestic-headline-gradient 1100ms 180ms cubic-bezier(.16,1,.3,1) both; }
.login-shell.login-entering .login-route-mark { animation: majestic-route-arrive 700ms 180ms cubic-bezier(.16,1,.3,1) both; }
.login-shell.login-entering .login-route-mark i { animation: majestic-node-connect 620ms cubic-bezier(.16,1,.3,1) both; }
.login-shell.login-entering .login-route-mark i:nth-child(1) { animation-delay: 480ms; }
.login-shell.login-entering .login-route-mark i:nth-child(2) { animation-delay: 620ms; }
.login-shell.login-entering .login-route-mark i:nth-child(3) { animation-delay: 760ms; }
.login-shell.login-entering .login-route-mark i:nth-child(4) { animation-delay: 900ms; }
@keyframes majestic-logo-arrive {
  from { opacity: .35; clip-path: inset(0 100% 0 0); filter: saturate(.3) blur(4px); transform: translateX(-10px); }
  to { opacity: 1; clip-path: inset(0); filter: saturate(1) blur(0); transform: translateX(0); }
}
@keyframes majestic-label-arrive { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes majestic-route-arrive { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes majestic-node-connect {
  0% { opacity: .25; transform: scale(.5); box-shadow: 0 0 0 0 rgba(36,104,216,.25); }
  55% { opacity: 1; transform: scale(1.35); box-shadow: 0 0 0 10px rgba(36,104,216,0); }
  100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 1px rgba(36,104,216,.35); }
}
.login-panel { position: relative; padding: clamp(30px, 5vw, 76px); border-left: 1px solid #d5e3f2; background: #f8fbff; }
.login-card { width: min(470px, 100%); padding: clamp(28px, 2.6vw, 36px); color: #1e3353; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(36, 75, 119, .14); }
.login-card .mobile-brand { display: none; }
.mobile-brand .brand-logo-mobile { width: 176px; }
.mobile-brand > small { margin-left: 56px; color: #5c7595; font-size: .7rem; }
.login-lock { width: max-content; margin: 0 0 18px; padding: 7px 10px; display: inline-flex; align-items: center; gap: 7px; color: #1f61c5; border: 1px solid #c9dcf5; border-radius: 8px; background: #eef6ff; font-size: .74rem; font-weight: 750; letter-spacing: 0; }
.login-lock svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.login-card h2 { margin: 0 0 8px; color: #1d3556; font: 760 clamp(2rem, 3vw, 2.55rem)/1.08 var(--font-ui); letter-spacing: -.03em; }
.login-card > .muted { max-width: 35ch; margin: 0 0 20px; color: #607894; font-size: .93rem; line-height: 1.55; }
.login-card label { margin: 12px 0; gap: 7px; color: #405a79; font-size: .8rem; font-weight: 750; transition: color 180ms ease; }
.login-card label:focus-within { color: #1d5fc6; }
.login-card input { min-height: 48px; padding: 11px 15px; color: #1e3553; border: 1px solid #cbdced; border-radius: 10px; background: #f8fbff; caret-color: #2468d8; }
.login-card input:hover { border-color: #9ebee2; }
.login-card input:focus { border-color: #2468d8; background: #fff; box-shadow: 0 0 0 4px rgba(36, 104, 216, .12); outline: 0; }
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 68px; }
.password-field button { position: absolute; top: 50%; right: 7px; min-height: 34px; padding: 0 9px; border: 0; border-radius: 7px; color: #42678f; background: transparent; font-size: .72rem; font-weight: 800; transform: translateY(-50%); }
.password-field button:hover { color: #174fae; background: #e8f1ff; }
.password-field button:focus-visible { outline: 3px solid rgba(36,104,216,.25); outline-offset: 1px; }
.login-card label .caps-lock { margin-top: -2px; color: #a46608; font-size: .7rem; font-weight: 700; }
.login-card .primary-button { position: relative; min-height: 48px; margin-top: 16px; padding: 0 17px; align-items: center; color: #fff; border-radius: 10px; background: #2468d8; box-shadow: 0 9px 22px rgba(36, 104, 216, .2); transition: background-color 180ms ease, box-shadow 180ms ease, transform 140ms ease; }
.login-card .primary-button:hover { background: #174fae; }
.login-card .primary-button:active { transform: translateY(1px); }
.login-card .primary-button.is-loading { cursor: wait; background: #285fb9; }
.login-card .primary-button.is-loading, .passkey-button.is-loading { opacity: 1; }
.login-card .primary-button.is-loading svg { visibility: hidden; }
.login-card .primary-button.is-loading::after { content: ""; position: absolute; right: 17px; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: majestic-spin 700ms linear infinite; }
.login-card .primary-button.is-success { background: #087f72; box-shadow: 0 9px 22px rgba(8,127,114,.22); }
@keyframes majestic-spin { to { transform: rotate(360deg); } }
.login-card .primary-button:focus-visible, .passkey-button:focus-visible { outline: 3px solid rgba(36, 104, 216, .28); outline-offset: 3px; }
.login-card .primary-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.login-divider { margin: 14px 0; color: #8193aa; font-size: .7rem; letter-spacing: 0; text-transform: none; }
.passkey-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: #1d5fc6; border: 1px solid #bed3eb; border-radius: 10px; background: #eef6ff; font: 750 .88rem/1 var(--font-ui); transition: border-color 180ms ease, background-color 180ms ease; }
.passkey-button:hover { border-color: #82addd; background: #e4f1ff; transform: none; }
.passkey-button svg { width: 20px; height: 20px; fill: none; stroke: #0f8d80; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.passkey-button.is-loading { cursor: wait; border-color: #8eb9e9; background: #e5f1ff; }
.passkey-button.is-loading svg { animation: majestic-passkey-scan 900ms ease-in-out infinite; }
.passkey-button.is-success { color: #087f72; border-color: #90d3c8; background: #e8f8f4; }
@keyframes majestic-passkey-scan { 0%,100% { opacity: .5; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
.login-card .form-error { margin: 12px 0 0; color: #bd493d; font-size: .78rem; line-height: 1.4; }
.login-security { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e2eaf3; }
.login-security h3 { margin: 0 0 11px; color: #405a79; font-size: .74rem; font-weight: 800; }
.login-security > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.login-security span { min-width: 0; display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: center; gap: 7px; color: #647d99; font-size: .69rem; line-height: 1.3; }
.login-security span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #0f9f8f; box-shadow: 0 0 0 3px rgba(15, 159, 143, .1); }
.security-disclaimer { margin: 17px 0 0; display: flex; align-items: center; gap: 9px; color: #56708e; }
.security-disclaimer svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: #087f72; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.security-disclaimer span { display: grid; gap: 1px; }
.security-disclaimer strong { color: #355675; font-size: .71rem; font-weight: 800; }
.security-disclaimer small { color: #71859c; font-size: .68rem; line-height: 1.35; }

@media (max-height: 780px) and (min-width: 761px) {
  .login-art { padding-block: 34px; }
  .login-copy h1 { font-size: clamp(3.5rem, 5.5vw, 5.3rem); }
  .login-route-mark { bottom: 6vh; }
}

@media (max-width: 900px) {
  .login-shell { grid-template-columns: minmax(0, 1fr) minmax(400px, .95fr); }
  .login-art { padding-inline: 42px; }
  .login-copy h1 { font-size: clamp(3rem, 6vw, 4.4rem); }
  .login-route-mark { opacity: .65; }
}

@media (max-width: 760px) {
  .login-shell { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; background: #f8fbff; }
  .login-art { min-height: 285px; padding: 24px 24px 52px; display: flex; background: #dfeeff; }
  .login-brand .brand-logo-login { width: 184px; }
  .login-brand strong { font-size: .86rem; }.login-brand small { font-size: .68rem; }
  .login-copy { min-height: 150px; align-items: center; }
  .login-copy h1 { max-width: 10ch; font-size: clamp(2.65rem, 12vw, 3.5rem); line-height: .98; }
  .login-route-mark { right: -42px; bottom: -56px; width: 180px; height: 180px; opacity: .72; }
  .login-panel { padding: 0 16px max(28px, env(safe-area-inset-bottom)); border: 0; background: #f8fbff; }
  .login-card { width: 100%; margin: -28px auto 0; padding: 28px 22px; border-radius: 16px; box-shadow: 0 20px 54px rgba(36, 75, 119, .14); }
  .login-card .mobile-brand { display: none; }
  .login-card h2 { font-size: 2rem; }
  .login-card > .muted { margin-bottom: 24px; }
  .login-security > div { gap: 9px 12px; }
}

@media (max-width: 420px) {
  .login-art { min-height: 260px; padding-inline: 20px; }
  .login-copy { min-height: 135px; }
  .login-copy h1 { font-size: 2.65rem; }
  .login-card { padding: 25px 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-shell.login-entering .brand-logo-login,
  .login-shell.login-entering .login-brand > small,
  .login-shell.login-entering .login-copy h1 > strong,
  .login-shell.login-entering .login-route-mark,
  .login-shell.login-entering .login-route-mark i,
  .login-card .primary-button.is-loading::after,
  .passkey-button.is-loading svg { animation: none; }
  .login-copy h1 > strong { background-position: 35% 50%; }
}

/* Accounting settlement and business continuity extensions. */
.statement-summary { grid-template-columns:repeat(7,minmax(112px,1fr)); gap:0; overflow-x:auto; border:1px solid #d6e4f2; border-radius:13px; background:#fff; box-shadow:0 10px 28px rgba(38,72,118,.08); }
.statement-summary article { min-width:126px; border:0; border-right:1px solid #e0e9f2; border-radius:0; background:#fff; }
.statement-summary article:last-child { border-right:0; }
.statement-summary article.balance { border-color:#bce4dc; background:#ebf9f6; }
.statement-summary small,.settlement-closeout small,.continuity-meta small { color:#667b97; font-size:11.5px; font-weight:700; letter-spacing:0; text-transform:none; }
.statement-summary strong,.statement-row > span:last-child { color:#203956; font-family:inherit; font-variant-numeric:tabular-nums; }
.statement-summary article.balance strong { color:#087f72; }
.settlement-closeouts { margin-top:24px; padding-top:22px; border-top:1px solid #dce6f1; }
.settlement-closeouts .panel-head { align-items:flex-start; }
.settlement-closeout-list { margin-top:14px; display:grid; gap:12px; }
.settlement-closeout { overflow:hidden; border:1px solid #d8e4f0; border-radius:13px; background:#fff; }
.settlement-closeout > header { padding:13px 16px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid #e1eaf3; background:#f7fbff; }
.settlement-closeout > header span:first-child { display:grid; gap:4px; }
.settlement-closeout > header strong { color:#203956; font-size:15px; }
.settlement-lock { padding:5px 9px; border-radius:999px; color:#087f72; background:#e5f7f3; font-size:11px; font-weight:750; }
.settlement-meters,.settlement-money { display:grid; grid-template-columns:repeat(3,1fr); }
.settlement-money { grid-template-columns:repeat(4,1fr); border-top:1px solid #e5ecf3; }
.settlement-meters span,.settlement-money span { min-width:0; padding:13px 16px; display:grid; gap:5px; border-right:1px solid #e5ecf3; }
.settlement-meters span:last-child,.settlement-money span:last-child { border-right:0; }
.settlement-meters strong,.settlement-money strong { overflow-wrap:anywhere; color:#233d5c; font-size:13px; font-variant-numeric:tabular-nums; }
.settlement-closeout > p { margin:0; padding:10px 16px; color:#71839a; border-top:1px solid #e5ecf3; background:#fbfdff; font-size:12px; }
.continuity-center { margin-top:14px; }
.continuity-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.continuity-status { padding:7px 11px; border-radius:999px; font-size:12px; font-weight:750; white-space:nowrap; }
.continuity-status.ready { color:#087f72; background:#e5f7f3; }
.continuity-status.attention { color:#9b650d; background:#fff3d4; }
.continuity-layout { margin-top:20px; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(310px,.75fr); gap:24px; }
.continuity-checks { display:grid; grid-template-columns:1fr 1fr; border:1px solid #d8e4f0; border-radius:13px; overflow:hidden; }
.continuity-check { min-height:88px; padding:15px; display:flex; align-items:flex-start; gap:12px; border-right:1px solid #e2eaf3; border-bottom:1px solid #e2eaf3; background:#fff; }
.continuity-check:nth-child(2n) { border-right:0; }
.continuity-check i,.continuity-clear > i { width:26px; height:26px; flex:0 0 26px; display:grid; place-items:center; border-radius:50%; font-size:13px; font-style:normal; font-weight:800; }
.continuity-check.passed i,.continuity-clear > i { color:#fff; background:#0f9f8f; }
.continuity-check.failed i { color:#8b5b0c; background:#ffe8ab; }
.continuity-check span { display:grid; gap:5px; }
.continuity-check strong { color:#233d5c; font-size:14px; }
.continuity-check small { color:#70839c; line-height:1.45; }
.continuity-attention { padding-left:23px; border-left:1px solid #dce6f1; }
.continuity-attention > div:first-child { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.continuity-attention h3 { margin:0; color:#233d5c; font-size:16px; }
.continuity-problems { margin-top:12px; display:grid; gap:9px; }
.continuity-problem { padding:12px 13px; border:1px solid #eadfbd; border-radius:11px; background:#fffaf0; }
.continuity-problem.critical { border-color:#efc8c1; background:#fff3f0; }
.continuity-problem strong { color:#513e25; font-size:13px; }
.continuity-problem.critical strong { color:#8e3c30; }
.continuity-problem p { margin:5px 0 0; color:#765f3e; font-size:12px; line-height:1.45; }
.continuity-clear { min-height:100px; display:flex; align-items:center; gap:12px; }
.continuity-clear span { display:grid; gap:4px; }
.continuity-clear strong { color:#176d63; font-size:14px; }
.continuity-clear small { color:#698299; }
.continuity-meta { margin-top:22px; display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid #dce6f1; }
.continuity-meta span { padding:16px 18px 0 0; display:grid; gap:5px; }
.continuity-meta strong { color:#263f5e; font-size:13px; font-variant-numeric:tabular-nums; }
@media (max-width:1050px) { .statement-summary { grid-template-columns:repeat(4,minmax(130px,1fr)); }.continuity-layout { grid-template-columns:1fr; }.continuity-attention { padding:20px 0 0; border-left:0; border-top:1px solid #dce6f1; } }
@media (max-width:760px) { .settlement-meters,.settlement-money { grid-template-columns:1fr 1fr; }.settlement-meters span:nth-child(2),.settlement-money span:nth-child(2n) { border-right:0; }.settlement-meters span:last-child { grid-column:1/-1; border-top:1px solid #e5ecf3; }.settlement-money span:nth-child(n+3) { border-top:1px solid #e5ecf3; }.continuity-checks,.continuity-meta { grid-template-columns:1fr; }.continuity-check { border-right:0; }.continuity-meta span { padding:13px 0; border-bottom:1px solid #e5ecf3; }.continuity-meta span:last-child { border-bottom:0; } }

/* Report filters follow one stable grid so labels and controls share exact baselines. */
#reportsView .report-toolbar { align-items:stretch; flex-direction:column; }
.report-controls { width:100%; display:grid; grid-template-columns:1fr; gap:14px; }
.report-filter-row { display:grid; grid-template-columns:repeat(2,minmax(220px,1fr)); align-items:end; gap:14px; }
.report-controls label { min-width:0; display:grid; gap:7px; color:#5f7390; font-size:.75rem; font-weight:750; line-height:1.2; }
.report-controls select,.report-custom-dates input { width:100%; min-height:44px; }
.report-custom-dates { width:100%; padding-top:14px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) minmax(148px,auto); align-items:end; gap:14px; border-top:1px solid #dce6f1; }
.report-custom-dates.hidden { display:none; }
.report-custom-dates label { min-width:0; }
.report-custom-dates input { padding:8px 11px; color:#243d5d; border:1px solid #cddceb; border-radius:9px; background:#fff; font:650 .82rem/1 var(--font-ui); color-scheme:light; }
.report-custom-dates input:hover { border-color:#9dbce0; }
.report-custom-dates input:focus-visible { outline:3px solid rgba(36,104,216,.22); outline-offset:1px; border-color:#6b9ddd; }
.report-custom-dates .primary-button { width:100%; min-height:44px; margin:0; padding:0 18px; justify-content:center; white-space:nowrap; }
.report-action-row { display:grid; grid-template-columns:repeat(4,minmax(120px,1fr)); gap:10px; }
.report-action-row .action-button { width:100%; min-height:44px; justify-content:center; white-space:nowrap; }
@media (max-width:760px) { .report-filter-row { grid-template-columns:1fr 1fr; }.report-custom-dates { grid-template-columns:1fr 1fr; }.report-custom-dates .primary-button { grid-column:1/-1; }.report-action-row { grid-template-columns:1fr 1fr; } }
@media (max-width:520px) { .report-filter-row,.report-custom-dates { grid-template-columns:1fr; }.report-custom-dates .primary-button { grid-column:auto; } }
