@charset "UTF-8";

:root {
  color-scheme: light;
  --page: #f4f6f8;
  --paper: #ffffff;
  --navy: #14263d;
  --navy-soft: #21374e;
  --ink: #1d2d41;
  --muted: #7c8797;
  --line: #e7ecf0;
  --teal: #0d8f9c;
  --teal-deep: #087783;
  --teal-light: #e7f5f4;
  --green: #268d67;
  --amber: #b87921;
  --red: #c75b61;
  --blue: #5283b9;
  --radius: 14px;
  --shadow: 0 3px 14px rgba(22, 42, 61, .035);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 13px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #58b7c3; }
a { color: var(--teal); text-decoration: none; }
button svg, .nav-icon svg, .mini-icon svg { width: 18px; height: 18px; flex: none; }
svg { max-width: 100%; vertical-align: middle; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(25px, 2.15vw, 33px); line-height: 1.2; letter-spacing: -.9px; font-weight: 650; }
h2 { font-size: 17px; letter-spacing: -.35px; line-height: 1.4; }
h3 { font-size: 15px; line-height: 1.4; }
p { margin-bottom: 12px; }
small { font-size: 11px; }
strong { font-weight: 650; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; }

/* Application chrome */
.sidebar { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: 240px; display: flex; flex-direction: column; padding: 29px 17px 17px; background: var(--navy); color: #aab9cb; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3e5269 transparent; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 14px 29px; color: white; }
.brand-mark { width: 35px; height: 37px; display: grid; place-items: center; color: #63d2d5; flex: none; }
.brand-mark svg { width: 34px; height: 36px; }
.brand-name { display: block; font-size: 26px; font-weight: 750; letter-spacing: -1.1px; line-height: 1.1; color: white; }
.brand-tag { display: block; margin-top: 5px; font-size: 8px; text-transform: uppercase; letter-spacing: 2.7px; color: #8297ae; }
.workspace-switch { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 26px; padding: 12px 11px; border: 1px solid #304258; border-radius: 9px; background: #1b2e45; color: #e4ebf2; text-align: left; }
.workspace-switch > div { min-width: 0; }
.workspace-switch small { display: block; color: #8399af; font-size: 10px; }
.workspace-switch > svg:last-child { margin-left: auto; color: #8297ad; width: 15px; height: 15px; }
.workspace-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 7px; background: #2e4860; color: #b9d9e0; }
.workspace-icon svg { width: 17px; height: 17px; }
.nav-label { padding: 0 14px; margin: 16px 0 9px; color: #71869e; font-size: 9px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }
.nav-item { position: relative; display: flex; width: 100%; align-items: center; gap: 12px; margin: 3px 0; padding: 11px 14px; border: 0; border-radius: 8px; background: none; color: #a7b8c9; text-align: left; font-size: 12px; font-weight: 450; transition: color .18s, background .18s; }
.nav-item:hover { background: #1c334b; color: #edf4f9; }
.nav-item.active { background: #254153; color: #78dbdd; font-weight: 600; }
.nav-item.active::before { content: ""; position: absolute; top: 11px; bottom: 11px; left: 0; width: 3px; border-radius: 4px; background: #6ad4d7; }
.nav-icon { display: flex; flex: none; opacity: .95; }
.nav-count { display: grid; place-items: center; min-width: 19px; height: 19px; margin-left: auto; border-radius: 5px; background: #334960; color: #bfd0df; font-size: 10px; }
.nav-item.active .nav-count { background: #315d67; color: #a2e9e8; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.sidebar-help { margin: 0 4px 17px; padding: 15px 13px; border: 1px solid #304459; border-radius: 10px; background: #1a3047; font-size: 11px; line-height: 1.65; color: #92a7bd; }
.sidebar-help strong { display: block; margin-bottom: 6px; color: #dce8f2; font-size: 12px; }
.sidebar-help a, .sidebar-help button { color: #8bd6db; }
.sidebar-help .button { margin-top: 7px; width: 100%; min-height: 32px; background: #30495e; border: 0; font-size: 11px; color: #dceff2; }
.user-card { display: flex; align-items: center; gap: 10px; margin: 0 3px; padding: 17px 8px 0; border-top: 1px solid #2c3f54; font-size: 11px; color: #d1dce7; }
.user-card small { display: block; margin-top: 1px; color: #7f96ad; font-size: 10px; }
.user-card > svg { margin-left: auto; width: 16px; color: #8098ae; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 35px; height: 35px; border-radius: 50%; background: #ecf1f6; color: #65798f; font-size: 11px; font-weight: 650; }
.user-card .avatar { background: #344d62; color: #c6e1e7; }
.workspace { min-width: 0; margin-left: 240px; }
.topbar { position: sticky; z-index: 35; top: 0; min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #8b96a5; font-size: 11px; }
.breadcrumb strong, .breadcrumb span:last-child { font-weight: 500; color: #45566a; }
.breadcrumb svg { width: 13px; height: 13px; color: #b3bec8; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.topbar-actions > .separator { height: 25px; margin: 0 3px; }
.icon-button, .avatar-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 7px; color: #718094; border: 1px solid transparent; background: transparent; border-radius: 8px; }
.icon-button:hover { background: #f1f5f7; color: var(--teal); }
.avatar-button { border-radius: 50%; background: #e8f1f2; color: #337983; font-weight: 600; font-size: 11px; }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 5px; background: #fff5e6; border: 1px solid #f4e6cd; color: #a77b38; font-size: 9px; font-weight: 650; white-space: nowrap; }
.pill-dot, .status-dot { display: inline-block; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.mobile-menu { display: none; }
.mobile-backdrop { display: none; }
.page { max-width: 1700px; margin: auto; padding: 30px 34px 32px; animation: reveal .22s ease-out; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 23px; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.eyebrow { display: block; margin-bottom: 7px; color: #8592a1; font-size: 9px; font-weight: 600; letter-spacing: 1.7px; text-transform: uppercase; }
.heading-actions { display: flex; align-items: center; flex: none; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 13px; border: 1px solid #dce4e9; border-radius: 7px; color: #56677a; background: white; font-size: 11px; line-height: 1.5; font-weight: 600; white-space: nowrap; transition: background .16s, border-color .16s, transform .16s; }
.button:hover { border-color: #b8c9d2; background: #f7fafb; }
.button:active { transform: translateY(1px); }
.button.primary { color: white; background: var(--teal); border-color: var(--teal); box-shadow: 0 2px 4px #0d8f9c15; }
.button.primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.button.secondary { background: white; color: #536779; }
.button.ghost { background: transparent; border-color: transparent; color: #718296; }
.button.ghost:hover { background: #eef3f5; }
.button.small { min-height: 29px; padding: 5px 9px; font-size: 10px; }
.button.small svg { width: 14px; height: 14px; }
.button.danger { color: #bd5f64; background: #fff6f6; border-color: #efdadd; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 2px 0; border: 0; color: var(--teal); background: none; font-size: 11px; font-weight: 600; }
.text-button:hover { color: #06616c; text-decoration: underline; text-underline-offset: 4px; }
.text-button svg { width: 14px; height: 14px; }

/* Dashboard */
.intro-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 150px; margin-bottom: 22px; padding: 25px 29px; overflow: hidden; border: 1px solid #dcebec; border-radius: var(--radius); background: #eaf3f3; }
.intro-copy { position: relative; z-index: 2; max-width: 63%; }
.intro-copy h2 { margin: 7px 0 9px; font-size: 22px; font-weight: 650; letter-spacing: -.6px; color: #244754; }
.intro-copy p { max-width: 510px; margin-bottom: 13px; color: #719098; font-size: 11px; line-height: 1.7; }
.intro-copy .text-button { font-size: 11px; color: #3a8b94; }
.welcome-badge { display: inline-flex; align-items: center; gap: 5px; color: #588991; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px; }
.welcome-badge svg { width: 13px; height: 13px; }
.intro-graphic { position: absolute; right: 17px; top: 0; bottom: 0; width: 34%; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.intro-graphic svg { width: 100%; max-height: 175px; }
.demo-caption { margin: 0 0 16px; color: #8b96a4; font-size: 10px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi-card { position: relative; min-width: 0; padding: 18px 20px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.kpi-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 13px; color: #8190a0; font-size: 10px; font-weight: 500; }
.kpi-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #f1f7f6; color: #559c9e; }
.kpi-icon svg { width: 15px; height: 15px; }
.kpi-value { margin-bottom: 13px; color: #253b50; font-size: clamp(21px, 2.1vw, 30px); font-weight: 650; line-height: 1; letter-spacing: -.9px; font-variant-numeric: tabular-nums; }
.kpi-value small { margin-right: 5px; color: #92a0ac; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.kpi-footer { display: flex; align-items: center; gap: 6px; min-height: 15px; color: #99a3ae; font-size: 9px; }
.delta { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-size: 9px; font-weight: 600; }
.delta svg { width: 12px; height: 12px; }
.delta.up { color: var(--green); }
.delta.down { color: var(--amber); }
.sparkline { position: absolute; right: 20px; bottom: 17px; width: 57px; height: 23px; opacity: .8; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); align-items: stretch; gap: 20px; margin-bottom: 22px; }
.panel { min-width: 0; overflow: hidden; margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.grid-main > .panel { margin-bottom: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 67px; padding: 18px 21px; border-bottom: 1px solid #f0f3f5; }
.panel-head > div:first-child { min-width: 0; }
.panel-title { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: -.15px; color: #344b60; }
.panel-subtitle { margin: 4px 0 0; font-size: 10px; line-height: 1.5; color: #92a0ad; }
.panel-body { padding: 20px 21px; }
.panel-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 21px; color: #9aa5b0; font-size: 10px; border-top: 1px solid #eef2f4; }
.chart-wrap { position: relative; min-height: 200px; padding: 10px 8px 4px; }
.chart-wrap > svg { width: 100%; height: auto; max-height: 230px; overflow: visible; }
.chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; font-size: 9px; color: #8d9aa7; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.chart-axis { color: #a5b0bb; fill: #9ca9b6; font-size: 10px; }
.attention-list { padding: 0 20px; }
.attention-item { display: flex; align-items: center; gap: 11px; padding: 15px 0; border-bottom: 1px solid #f0f3f5; }
.attention-item:last-child { border-bottom: 0; }
.attention-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 33px; height: 33px; border-radius: 9px; color: var(--blue); background: #edf4fb; }
.attention-icon svg { width: 16px; height: 16px; }
.attention-icon.amber { color: #c29651; background: #fcf5e9; }
.attention-icon.blue { color: #709dc3; background: #eff5fb; }
.attention-icon.red { color: #c9797f; background: #fceff0; }
.attention-icon.green { color: #62a88e; background: #edf7f2; }
.attention-content { min-width: 0; flex: 1; }
.attention-content strong { display: block; color: #4e6276; font-size: 10px; font-weight: 600; }
.attention-content p { margin: 3px 0 0; font-size: 9px; color: #a0abb6; }
.attention-meta { font-size: 9px; color: #8799a7; white-space: nowrap; }
.attention-item > button { margin-left: auto; }
.attention-item > svg { width: 14px; height: 14px; color: #b6c2cb; }
.section-label { margin: 24px 0 10px; color: #8391a0; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.2px; }

/* Tables, filters, status */
.table-wrap { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #d5dfe6 transparent; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
th { padding: 12px 18px; background: #fafbfc; border-bottom: 1px solid var(--line); color: #94a0ad; font-size: 9px; letter-spacing: .25px; font-weight: 500; white-space: nowrap; }
td { padding: 15px 18px; border-bottom: 1px solid #eff2f5; color: #6c7d8e; vertical-align: middle; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fafcfd; }
td strong { color: #42596d; font-weight: 550; }
td:first-child, th:first-child { padding-left: 22px; }
td:last-child, th:last-child { padding-right: 22px; }
td.numeric, th.numeric, td.amount, th.amount { text-align: right; white-space: nowrap; }
.cell-main { display: flex; align-items: center; gap: 9px; color: #465d71; font-size: 11px; font-weight: 550; white-space: nowrap; }
.cell-sub { display: block; margin-top: 3px; color: #a1acb7; font-size: 9px; font-weight: 400; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px; font-size: 9px; font-weight: 550; white-space: nowrap; color: #8692a0; background: #f2f4f7; }
.badge.teal { background: #eaf6f5; color: #399a98; }
.badge.green { background: #eaf6ef; color: #4b9b72; }
.badge.amber { background: #fff5e5; color: #bc9452; }
.badge.red { background: #fcedef; color: #c1777e; }
.badge.blue { background: #edf4fc; color: #779bc2; }
.badge.neutral { background: #eff2f5; color: #8c9aa8; }
.badge.purple { background: #f0edfa; color: #8c80b3; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.row-actions .icon-button { width: 27px; height: 27px; padding: 5px; }
.row-actions .icon-button svg { width: 14px; height: 14px; }
.container-code { display: flex; align-items: center; gap: 9px; color: #496075; font-size: 11px; font-weight: 600; }
.mini-icon { display: inline-grid; place-items: center; width: 29px; height: 29px; flex: none; border: 1px solid #e6eeee; border-radius: 7px; background: #f3f8f7; color: #82a8aa; }
.mini-icon svg { width: 15px; height: 15px; }
.progress { height: 4px; width: 80px; margin-top: 6px; overflow: hidden; border-radius: 10px; background: #edf1f4; }
.progress-fill { height: 100%; border-radius: inherit; background: #66bbb6; transition: width .4s ease; }
.tabs { display: flex; align-items: center; gap: 20px; padding: 0 20px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab { padding: 14px 1px 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: #8c9aa7; font-size: 11px; white-space: nowrap; }
.tab.active { color: #258b94; border-bottom-color: #42a5ab; font-weight: 600; }
.tab span { margin-left: 5px; padding: 2px 5px; border-radius: 4px; background: #f0f4f5; font-size: 9px; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 15px 20px; border-bottom: 1px solid #edf2f5; }
.search-field { position: relative; display: flex; align-items: center; flex: 1; min-width: 170px; max-width: 300px; }
.search-field > svg { position: absolute; z-index: 1; left: 11px; width: 15px; height: 15px; color: #a3b0bd; }
.search-field input { width: 100%; height: 34px; padding: 7px 11px 7px 34px; border: 1px solid #e4eaee; border-radius: 6px; background: #fcfdfe; font-size: 10px; }
.search-field input::placeholder { color: #a7b2be; }
.filter-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 29px; padding: 5px 9px; border: 1px solid #e7ecf0; border-radius: 6px; background: white; font-size: 10px; color: #8c9ba9; white-space: nowrap; }
.filter-chip:hover, .filter-chip.active { color: #258d95; border-color: #c1e0e1; background: #eef8f7; }
.filter-chip svg { width: 12px; height: 12px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 210px; padding: 38px 25px; text-align: center; color: #8c9aaa; }
.empty-state > svg { width: 37px; height: 37px; margin-bottom: 7px; color: #b7c9d2; }
.empty-state strong { font-size: 14px; color: #63798d; }
.empty-state p { max-width: 350px; margin: 0 0 7px; font-size: 11px; }
.metric-row, .report-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.metric-box { padding: 16px 19px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.metric-box > span, .metric-box > small { display: block; margin-bottom: 7px; color: #929eac; font-size: 10px; }
.metric-box strong { display: block; color: #3f576b; font-size: 22px; font-weight: 600; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.segmented-control { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #e7edf1; border-radius: 6px; background: #f7f9fa; }
.segmented-button { padding: 4px 9px; border: 0; border-radius: 4px; background: transparent; color: #96a3af; font-size: 9px; }
.segmented-button.active { background: white; box-shadow: 0 1px 3px #213c5110; color: #4e7285; }
.overdue { color: #c17b61 !important; }
.amount-positive { color: #4f9a7e !important; }
.amount-negative { color: #c08275 !important; }
.separator { width: 1px; align-self: stretch; background: #e8edf1; }
.footer-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px; padding: 3px 2px; color: #a4adb7; font-size: 9px; }
.footer-note strong { color: #7d909e; font-weight: 600; }

/* Detail views */
.detail-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(260px,1fr); gap: 20px; align-items: start; }
.detail-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px; border-radius: 11px; background: #eff6f6; border: 1px solid #dfecec; }
.detail-hero h2 { margin-bottom: 5px; color: #2e6570; font-size: 22px; }
.detail-hero p { margin-bottom: 0; color: #83a1a8; font-size: 11px; }
.detail-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 22px 0; }
.detail-summary > div { padding-bottom: 13px; border-bottom: 1px solid #eef2f5; }
.detail-summary small, .label-value small { display: block; margin-bottom: 5px; font-size: 10px; color: #97a4b2; }
.detail-summary strong, .label-value strong { color: #536d81; font-size: 12px; font-weight: 550; }
.route-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; margin: 20px 0; padding: 20px 8px; border-top: 1px solid #edf1f4; border-bottom: 1px solid #edf1f4; }
.route-line::before { content: ""; position: absolute; height: 0; border-top: 1px dashed #bdd6db; left: 18%; right: 18%; top: 41px; }
.route-stop { position: relative; z-index: 1; text-align: center; color: #92a4b3; font-size: 10px; background: white; padding: 0 10px; }
.route-stop > svg { display: block; width: 22px; height: 22px; margin: 0 auto 9px; color: #70a2aa; }
.route-stop strong { display: block; color: #4d7381; font-size: 12px; }
.detail-section { margin: 22px 0; }
.detail-section h3 { margin-bottom: 12px; font-size: 12px; font-weight: 650; color: #5d7386; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid #edf1f4; font-size: 11px; color: #8d9ba8; }
.list-row:last-child { border-bottom: 0; }
.list-row strong { color: #526b7e; font-weight: 550; }
.summary-strip { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 18px 0; padding: 16px 18px; border: 1px solid #dcece8; border-radius: 9px; background: #eef8f4; color: #729e8e; font-size: 11px; }
.summary-strip strong { font-size: 20px; font-weight: 650; color: #387d69; letter-spacing: -.5px; }
.split-stat { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; color: #8ea0ac; font-size: 10px; }
.split-stat strong { color: #5f7d8e; }
.receipt-card { margin: 15px 0; padding: 20px; border: 1px solid #deebe7; border-radius: 10px; background: #f2faf6; }
.receipt-card h3 { margin-bottom: 8px; color: #4a8b70; }
.receipt-card p { margin-bottom: 0; font-size: 11px; color: #84a796; }

/* Forms and overlays */
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field > span:first-child { display: block; margin-bottom: 6px; color: #718597; font-size: 11px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #dfe7ed; border-radius: 7px; background: #fff; color: #486276; outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder { color: #acb7c1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #89c5ca; }
.field textarea { min-height: 84px; resize: vertical; }
.field input[readonly] { background: #f6f8fa; }
.field small { display: block; margin-top: 5px; color: #9aa8b6; font-size: 10px; }
.field .input-prefix { display: flex; align-items: center; border: 1px solid #dfe7ed; border-radius: 7px; overflow: hidden; }
.field .input-prefix span { padding-left: 12px; color: #9aa8b6; font-size: 10px; }
.field .input-prefix input { border: 0; }
.form-note, .selection-note { margin: 17px 0 0; padding: 11px 13px; border-radius: 7px; background: #f1f6f9; color: #7e95a7; font-size: 10px; line-height: 1.7; }
.form-note svg, .selection-note svg { width: 14px; height: 14px; margin-right: 5px; }
.form-note.warning { background: #fff7eb; color: #ac8c5c; }
.form-error { padding: 10px 12px; margin-bottom: 15px; border-radius: 6px; color: #b96c73; background: #fbedef; font-size: 11px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #7e91a0; }
.checkbox-row input { width: 15px; height: 15px; accent-color: var(--teal); }
.modal-overlay, .drawer-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(14, 30, 47, .4); backdrop-filter: blur(3px); animation: fadeIn .15s ease-out; }
.modal-overlay { display: flex; justify-content: center; align-items: center; padding: 25px; }
.modal { width: 560px; max-width: 100%; max-height: calc(100dvh - 50px); display: flex; flex-direction: column; border-radius: 15px; background: white; box-shadow: 0 20px 70px #0d233233; animation: rise .2s ease-out; }
.modal.wide { width: 850px; }
.modal-header, .drawer-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 17px; padding: 22px 25px; border-bottom: 1px solid #edf1f4; }
.modal-header h2, .drawer-header h2 { margin: 0 0 4px; color: #38566d; font-size: 18px; }
.modal-header p, .drawer-header p { margin: 0; color: #96a5b3; font-size: 11px; }
.modal-close { display: inline-grid; place-items: center; flex: none; width: 29px; height: 29px; padding: 5px; border: 0; border-radius: 7px; background: #f3f6f8; color: #8a9caa; }
.modal-close:hover { background: #e9f0f3; color: #4a7d88; }
.modal-close svg { width: 17px; height: 17px; }
.modal-body { padding: 24px 25px; overflow-y: auto; overscroll-behavior: contain; }
.modal-footer, .drawer-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; padding: 17px 25px; border-top: 1px solid #edf1f4; background: #fcfdfe; border-radius: 0 0 15px 15px; }
.modal-footer > span, .drawer-footer > span { margin-right: auto; color: #9ca9b5; font-size: 10px; }
.drawer { position: fixed; z-index: 110; top: 0; right: 0; bottom: 0; width: 510px; max-width: 100%; display: flex; flex-direction: column; background: white; box-shadow: -10px 0 50px #1634461c; animation: slideIn .22s ease-out; }
.drawer-body { padding: 22px 25px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.drawer-footer { border-radius: 0; }
.toast-stack { position: fixed; z-index: 160; right: 27px; bottom: 25px; display: flex; flex-direction: column; gap: 9px; max-width: min(400px,calc(100% - 36px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border: 1px solid #dbe9e4; border-radius: 10px; background: #ffffff; box-shadow: 0 8px 35px #132b4021; color: #568572; font-size: 11px; animation: rise .2s ease-out; }
.toast.error { border-color: #ead8dc; color: #b2747c; }
.toast svg { flex: none; width: 17px; height: 17px; }
.notification-popover, .action-menu { position: absolute; right: 28px; top: 59px; z-index: 60; min-width: 270px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 10px 35px #21384d19; }
.action-menu { min-width: 170px; padding: 5px; }
.action-menu button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 5px; background: transparent; text-align: left; color: #738699; font-size: 11px; }
.action-menu button:hover { background: #eff7f7; color: var(--teal); }

/* Banking and accounts */
.bank-summary { display: grid; grid-template-columns: minmax(260px,1fr) 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.bank-account { min-width: 0; padding: 22px; border: 1px solid #cee1e2; border-radius: 12px; background: #e9f3f3; color: #5c8c96; }
.bank-account small { display: block; color: #7da1aa; font-size: 10px; }
.bank-account strong { display: block; margin: 14px 0 8px; color: #2b6975; font-size: 27px; letter-spacing: -.8px; }
.bank-account p { margin: 0; font-size: 10px; }
.bank-row { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.bank-row:last-child { border-bottom: 0; }
.bank-row > div:nth-child(2) { flex: 1; }
.bank-amount { margin-left: auto; color: #5d788b; font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.reconcile-status { display: inline-flex; align-items: center; gap: 5px; color: #6c9a86; font-size: 10px; }
.reconcile-status svg { width: 14px; height: 14px; }
.report-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 21px; padding: 17px 20px; border: 1px solid #e1e9ed; border-radius: 10px; background: white; color: #8c9caa; font-size: 11px; }
.report-summary strong { color: #4d6e80; }
.report-table th { padding-top: 14px; padding-bottom: 14px; }
.report-table td { padding-top: 12px; padding-bottom: 12px; }
.report-total td, .report-total { border-top: 1px solid #d8e6e9; background: #f1f8f7; color: #3c7c80; font-weight: 650; }
.report-section td { background: #f7f9fb; color: #688195; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .7px; }
.account-type { display: inline-block; min-width: 74px; font-size: 9px; color: #94a5b4; }
.audit-list { padding: 0 20px; }
.audit-item { display: flex; align-items: flex-start; gap: 11px; padding: 15px 0; border-bottom: 1px solid #edf2f5; }
.audit-item:last-child { border-bottom: 0; }
.audit-item > svg { flex: none; margin-top: 3px; width: 15px; height: 15px; color: #9ab4bd; }
.audit-item strong { display: block; color: #5b7487; font-size: 11px; }
.audit-item small { display: block; margin-top: 3px; color: #a3afba; font-size: 9px; }
.audit-item time { margin-left: auto; color: #a6b2bc; font-size: 9px; white-space: nowrap; }

/* Documents and review */
.document-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.document-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.document-card:hover { transform: translateY(-2px); box-shadow: 0 7px 22px #21384d0a; }
.document-preview { position: relative; display: flex; justify-content: center; align-items: center; height: 150px; overflow: hidden; padding: 20px; border-bottom: 1px solid #ecf1f4; background: #f0f3f6; }
.document-preview > svg { width: 66px; height: 76px; color: #a1b8c5; }
.document-preview .paper-preview { width: 140px; padding: 13px; transform: rotate(-3deg) translateY(9px); box-shadow: 0 4px 16px #30495c10; }
.document-preview .paper-line { height: 4px; margin: 7px 0; }
.document-preview .badge { position: absolute; top: 13px; right: 13px; }
.document-info { padding: 17px 18px; }
.document-info h3 { margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #516d82; font-size: 11px; }
.document-info p { margin: 0; color: #9eacb8; font-size: 10px; }
.document-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid #edf2f5; }
.document-actions span { color: #a0afba; font-size: 9px; }
.review-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 23px; align-items: start; }
.paper-preview { padding: 25px 22px; background: white; border: 1px solid #e5eaef; border-radius: 3px; color: #7c8e9f; font-size: 10px; }
.paper-header { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 2px solid #e7eef2; }
.paper-header h3 { margin: 0 0 8px; font-size: 16px; font-weight: 650; color: #526f83; }
.paper-header p { margin: 0; color: #a3b0bc; font-size: 9px; }
.paper-line { height: 6px; margin: 11px 0; border-radius: 2px; background: #e7edf1; }
.paper-line:nth-child(3n) { width: 68%; }
.paper-line:nth-child(4n) { width: 86%; }
.review-fields { min-width: 0; }
.review-fields h3 { color: #506f82; font-size: 12px; }
.review-field { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf2f5; }
.review-field small { display: block; color: #9baab7; font-size: 9px; }
.review-field strong { display: block; margin-top: 3px; color: #5d788c; font-size: 11px; }
.confidence { display: inline-block; flex: none; padding: 3px 5px; border-radius: 4px; color: #6da28f; background: #eef8f2; font-size: 8px; }
.check-row { display: flex; align-items: center; gap: 7px; padding: 7px 0; color: #8399a7; font-size: 10px; }
.check-row svg { width: 14px; height: 14px; color: #76af98; }
.check-row.review svg { color: #c3a16a; }
.file-drop { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 26px; border: 1px dashed #b9d2d9; border-radius: 11px; background: #f6fbfb; color: #88a7af; text-align: center; }
.file-drop svg { width: 30px; height: 30px; color: #89b4bc; }
.file-drop strong { color: #5c8994; font-size: 12px; }
.file-drop p { max-width: 330px; margin: 0 0 7px; font-size: 10px; }

/* Assistant */
.assistant-layout { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0,1.7fr); gap: 23px; align-items: start; }
.assistant-intro { padding: 27px 24px; border: 1px solid #dcebea; border-radius: 14px; background: #edf6f4; }
.assistant-intro h2 { margin: 20px 0 12px; color: #366977; font-size: 22px; line-height: 1.3; letter-spacing: -.5px; }
.assistant-intro p { color: #80a0a6; font-size: 11px; line-height: 1.8; }
.assistant-orb { display: inline-grid; place-items: center; width: 47px; height: 47px; border: 1px solid #c9e5e3; border-radius: 14px; background: #d7ede9; color: #52a49e; }
.assistant-orb svg { width: 24px; height: 24px; }
.suggestions { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.suggestion { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 11px 12px; border: 1px solid #dce9e9; border-radius: 8px; background: rgba(255,255,255,.7); color: #688e98; font-size: 10px; line-height: 1.6; text-align: left; }
.suggestion:hover { border-color: #a9d2d0; background: white; }
.suggestion svg { flex: none; width: 14px; height: 14px; color: #97b4bb; }
.chat-messages { min-height: 330px; max-height: 580px; overflow-y: auto; padding: 23px; }
.chat-message { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 20px; animation: reveal .2s ease-out; }
.chat-message .avatar { width: 28px; height: 28px; font-size: 9px; }
.chat-message.assistant .avatar { background: #e6f5f2; color: #539c94; }
.chat-message.user { justify-content: flex-end; }
.chat-message.user .avatar { order: 2; }
.chat-bubble { max-width: 88%; padding: 15px 17px; border: 1px solid #e8edf1; border-radius: 2px 11px 11px 11px; background: #fafcfd; color: #7a90a2; font-size: 11px; line-height: 1.85; overflow-wrap: anywhere; }
.chat-bubble h3 { margin: 0 0 9px; color: #55778a; font-size: 12px; }
.chat-bubble p { margin: 0 0 9px; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble ul { margin: 8px 0; padding-left: 17px; }
.chat-bubble li { margin-bottom: 5px; }
.chat-bubble .button { margin: 7px 5px 0 0; }
.chat-message.user .chat-bubble { background: #eaf6f5; border-color: #dbefed; border-radius: 11px 2px 11px 11px; color: #51868d; }
.chat-composer { padding: 16px 20px; border-top: 1px solid #edf2f5; background: #fff; }
.chat-form { display: flex; align-items: center; gap: 9px; }
.chat-form input, .chat-form textarea { flex: 1; min-width: 0; padding: 11px 13px; border: 1px solid #dfe9ee; border-radius: 8px; background: #fafcfd; color: #55788b; font-size: 11px; resize: none; }
.chat-form input::placeholder, .chat-form textarea::placeholder { color: #a3b2bf; }
.chat-composer > small { display: block; margin-top: 9px; text-align: center; color: #b0bbc4; font-size: 8px; }
.typing { display: flex; align-items: center; gap: 4px; padding: 9px; }
.typing span { display: block; width: 4px; height: 4px; border-radius: 50%; background: #7db2b7; animation: pulse 1s infinite alternate; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
.tour-card { padding: 22px; border: 1px solid #dceae9; border-radius: 12px; background: #f0f8f6; }
.tour-step { display: flex; align-items: flex-start; gap: 13px; padding: 14px 0; border-bottom: 1px solid #e0eeeb; color: #7e9f9f; font-size: 11px; }
.tour-step:last-child { border-bottom: 0; }
.tour-step > span:first-child { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #d9eeea; color: #5e9993; font-size: 10px; }
.tour-step strong { display: block; margin-bottom: 4px; color: #5b8688; }
.help-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.help-card { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fcfdfe; color: #90a2b0; font-size: 11px; }
.help-card h3 { color: #5f7f91; font-size: 12px; }
.help-card p { margin: 0; line-height: 1.8; }
.skeleton { background: #eaf0f4; border-radius: 5px; animation: pulse 1s infinite alternate; }
.print-only { display: none; }

@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: .5; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { from { opacity: .45; } to { opacity: 1; } }

@media (min-width: 1600px) {
  .page { padding-top: 37px; padding-left: 45px; padding-right: 45px; }
  .topbar { padding-left: 45px; padding-right: 45px; }
  .kpi-card { padding-top: 22px; padding-bottom: 21px; }
  .chart-wrap { min-height: 250px; }
}

@media (max-width: 1200px) {
  .sidebar { width: 220px; padding-left: 13px; padding-right: 13px; }
  .workspace { margin-left: 220px; }
  .page { padding: 25px 24px; }
  .topbar { padding: 0 24px; }
  .kpi-grid { gap: 12px; }
  .kpi-card { padding: 15px; }
  .kpi-value { font-size: 24px; }
  .kpi-footer { font-size: 8px; }
  .sparkline { right: 14px; width: 40px; }
  .grid-main { grid-template-columns: minmax(0,1.3fr) minmax(270px,1fr); gap: 16px; }
  .panel-head { padding-left: 17px; padding-right: 17px; }
  .attention-list { padding: 0 17px; }
  .document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bank-summary { gap: 12px; }
  .bank-account { padding: 18px; }
  .bank-account strong { font-size: 23px; }
}

@media (max-width: 1050px) {
  .grid-main { grid-template-columns: minmax(0,1fr); }
  .attention-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 23px; }
  .attention-item { padding: 17px 0; }
  .chart-wrap > svg { max-height: 250px; }
  .detail-grid { grid-template-columns: 1fr; }
  .assistant-layout { grid-template-columns: minmax(210px,.8fr) minmax(0,1.4fr); gap: 17px; }
  .assistant-intro { padding: 23px 19px; }
  .chat-messages { padding: 20px 16px; }
  .bank-summary { grid-template-columns: minmax(230px,1.3fr) 1fr; }
  .bank-summary > :last-child { grid-column: 2; }
  .bank-summary > :first-child { grid-row: 1 / 3; }
  .bank-summary .metric-box { padding: 11px 17px; }
  .bank-summary .metric-box strong { font-size: 19px; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); width: 240px; transition: transform .22s ease; z-index: 80; }
  .sidebar.open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .mobile-backdrop.active { display: block; position: fixed; z-index: 75; inset: 0; background: #0e1c2b66; backdrop-filter: blur(2px); }
  .topbar { min-height: 63px; gap: 9px; padding: 0 23px; }
  .breadcrumb { flex: 1; font-size: 10px; }
  .topbar-actions { gap: 9px; }
  .topbar-actions > .separator { margin: 0; }
  .page { padding-top: 24px; }
  .page-heading { margin-bottom: 20px; }
  .kpi-grid { gap: 13px; }
  .grid-main { grid-template-columns: minmax(0,1.4fr) minmax(270px,1fr); }
  .attention-list { display: block; }
  .attention-item { padding: 15px 0; }
  .panel-head { min-height: 66px; }
  .panel-head .chart-legend { display: none; }
  .chart-wrap { min-height: 200px; }
}

@media (max-width: 740px) {
  .grid-main { grid-template-columns: 1fr; }
  .attention-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 21px; }
  .panel-head .chart-legend { display: flex; }
  .assistant-layout { grid-template-columns: 1fr; }
  .assistant-intro { padding: 22px; }
  .assistant-intro h2 { margin-top: 13px; font-size: 20px; }
  .suggestions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .chat-messages { min-height: 300px; max-height: 480px; }
  .chat-bubble { max-width: 90%; }
  .intro-banner { min-height: 160px; padding: 22px; }
  .intro-copy { max-width: 67%; }
  .intro-copy h2 { font-size: 20px; }
  .intro-graphic { right: -2%; width: 35%; }
  .kpi-grid { gap: 11px; }
  .kpi-card { padding: 14px 12px; }
  .kpi-label { font-size: 9px; gap: 2px; }
  .kpi-icon { width: 23px; height: 23px; border-radius: 6px; }
  .kpi-icon svg { width: 13px; height: 13px; }
  .kpi-value { font-size: 22px; }
  .kpi-value small { font-size: 8px; margin-right: 2px; }
  .sparkline { display: none; }
  .review-grid { gap: 18px; }
}

@media (max-width: 640px) {
  body { font-size: 12px; }
  .page { padding: 21px 17px 25px; }
  .topbar { min-height: 59px; padding: 0 13px; }
  .topbar-actions { gap: 5px; }
  .topbar-actions > .separator { display: none; }
  .topbar-actions .icon-button { width: 31px; height: 31px; }
  .breadcrumb { gap: 6px; }
  .breadcrumb > span:first-child:not(:last-child) { display: none; }
  .breadcrumb > svg:first-of-type { display: none; }
  .demo-pill { font-size: 8px; padding: 4px 6px; gap: 4px; }
  .avatar-button { width: 29px; height: 29px; font-size: 9px; }
  h1 { font-size: 26px; letter-spacing: -.7px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 15px; margin-bottom: 19px; }
  .page-heading p { font-size: 11px; line-height: 1.65; }
  .heading-actions { flex-wrap: wrap; gap: 7px; }
  .heading-actions .button { min-height: 33px; font-size: 10px; padding: 7px 10px; }
  .heading-actions .button svg { width: 15px; height: 15px; }
  .intro-banner { min-height: 155px; margin-bottom: 18px; padding: 20px; }
  .intro-copy { max-width: 73%; }
  .intro-copy h2 { font-size: 18px; margin-top: 8px; }
  .intro-copy p { font-size: 10px; margin-bottom: 10px; }
  .intro-graphic { right: -12%; width: 41%; opacity: .7; }
  .welcome-badge { font-size: 8px; letter-spacing: 1px; }
  .demo-caption { font-size: 9px; line-height: 1.7; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
  .kpi-card { padding: 16px; }
  .kpi-label { font-size: 10px; margin-bottom: 12px; }
  .kpi-icon { width: 26px; height: 26px; }
  .kpi-value { font-size: 27px; }
  .kpi-value small { font-size: 9px; margin-right: 3px; }
  .kpi-footer { font-size: 8px; }
  .grid-main { gap: 18px; margin-bottom: 18px; }
  .panel { margin-bottom: 18px; border-radius: 12px; }
  .panel-head { padding: 15px 17px; min-height: 63px; }
  .panel-title { font-size: 12px; }
  .panel-subtitle { font-size: 9px; }
  .panel-body { padding: 18px 17px; }
  .panel-footer { padding: 12px 17px; font-size: 9px; }
  .panel-head .button { padding: 5px 8px; min-height: 29px; font-size: 9px; }
  .chart-wrap { padding: 7px 0 3px; min-height: 155px; }
  .chart-wrap > svg { max-height: 220px; }
  .chart-legend { gap: 10px; font-size: 8px; }
  .attention-list { display: block; padding: 0 17px; }
  .attention-item { padding: 14px 0; }
  .attention-content strong { font-size: 11px; }
  .attention-content p { font-size: 10px; }
  th { padding: 11px 14px; }
  td { padding: 14px; }
  td:first-child, th:first-child { padding-left: 17px; }
  td:last-child, th:last-child { padding-right: 17px; }
  .table-wrap table { min-width: 660px; }
  .report-table { min-width: 500px !important; }
  .filter-row { padding: 13px 16px; gap: 7px; }
  .search-field { flex-basis: 100%; max-width: none; }
  .filter-chip { min-height: 29px; font-size: 9px; }
  .tabs { gap: 18px; padding: 0 17px; }
  .tab { font-size: 10px; padding-top: 12px; }
  .metric-row, .report-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-bottom: 18px; }
  .metric-box { padding: 14px; }
  .metric-box strong { font-size: 21px; }
  .metric-box > span, .metric-box > small { font-size: 9px; }
  .metric-row > :last-child:nth-child(3), .report-metrics > :last-child:nth-child(3) { grid-column: 1 / -1; }
  .bank-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .bank-summary > :first-child { grid-column: 1 / -1; grid-row: auto; }
  .bank-summary > :last-child { grid-column: auto; }
  .bank-account { padding: 20px; }
  .bank-account strong { font-size: 28px; }
  .bank-row { flex-wrap: wrap; padding: 15px; gap: 10px; }
  .bank-row > div:nth-child(2) { min-width: 150px; }
  .bank-row .button { margin-left: auto; }
  .document-grid { grid-template-columns: 1fr; gap: 16px; }
  .document-card { display: grid; grid-template-columns: 93px minmax(0,1fr); }
  .document-preview { grid-row: 1 / 3; height: 100%; min-height: 125px; padding: 12px; border-bottom: 0; border-right: 1px solid #ecf1f4; }
  .document-preview > svg { width: 43px; height: 52px; }
  .document-preview .paper-preview { min-width: 92px; padding: 8px; }
  .document-preview .badge { display: none; }
  .document-info { padding: 17px 15px 11px; }
  .document-actions { padding: 10px 15px; }
  .review-grid { grid-template-columns: 1fr; gap: 20px; }
  .review-grid > .paper-preview { max-height: 250px; overflow-y: auto; }
  .review-fields { padding-top: 3px; }
  .modal-overlay { padding: 13px; }
  .modal { max-height: calc(100dvh - 26px); border-radius: 12px; }
  .modal-header, .drawer-header { padding: 18px; }
  .modal-header h2, .drawer-header h2 { font-size: 17px; }
  .modal-header p, .drawer-header p { font-size: 10px; }
  .modal-body, .drawer-body { padding: 20px 18px; }
  .modal-footer, .drawer-footer { padding: 14px 18px; }
  .modal-footer .button, .drawer-footer .button { flex: 1; }
  .modal-footer > span, .drawer-footer > span { flex-basis: 100%; margin: 0 0 3px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .field input, .field select, .field textarea { min-height: 42px; font-size: 16px; }
  .field label { font-size: 11px; }
  .drawer { width: min(510px,100%); }
  .detail-hero { padding: 18px; }
  .detail-hero h2 { font-size: 20px; }
  .detail-summary { gap: 12px; }
  .report-summary { flex-wrap: wrap; padding: 15px; font-size: 10px; }
  .suggestions { grid-template-columns: 1fr; gap: 7px; }
  .assistant-intro { padding: 21px; }
  .assistant-intro h2 { font-size: 22px; }
  .assistant-intro p { font-size: 11px; }
  .suggestion { padding: 12px; font-size: 11px; }
  .chat-messages { padding: 19px 14px; min-height: 300px; }
  .chat-bubble { padding: 13px; font-size: 11px; max-width: calc(100% - 36px); }
  .chat-composer { padding: 14px; }
  .chat-form input, .chat-form textarea { font-size: 16px; }
  .chat-form .button { min-width: 38px; padding: 9px; }
  .help-grid { grid-template-columns: 1fr; }
  .toast-stack { right: 18px; bottom: 18px; }
  .toast { padding: 13px 15px; }
  .notification-popover { right: 12px; left: 12px; top: 52px; min-width: 0; }
  .footer-note { font-size: 8px; padding-top: 4px; }
}

@media (max-width: 380px) {
  .page { padding-left: 13px; padding-right: 13px; }
  .topbar { padding-left: 8px; padding-right: 8px; }
  .topbar-actions { gap: 2px; }
  .topbar-actions .icon-button { width: 27px; }
  .demo-pill { font-size: 7px; }
  .intro-copy { max-width: 84%; }
  .intro-graphic { opacity: .35; }
  .kpi-card { padding: 13px; }
  .kpi-value { font-size: 24px; }
  .kpi-label { font-size: 9px; }
}

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

@media print {
  @page { margin: 16mm; }
  body { background: white; color: #111827; font-size: 10px; }
  .sidebar, .topbar, .mobile-backdrop, .heading-actions, .filter-row, .tabs, .row-actions, .toast-stack, .modal-overlay, .drawer-overlay, .drawer, .screen-only, .button, .text-button, .icon-button, .nav-item, .chat-composer { display: none !important; }
  .workspace { margin: 0; }
  .page { max-width: none; padding: 0; animation: none; }
  .print-only { display: block; }
  .panel, .kpi-card, .metric-box { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; }
  .table-wrap table { min-width: 0; }
  th, td { padding: 9px 10px; font-size: 9px; }
  .panel-head { padding: 13px; }
  .intro-banner { display: none; }
  .badge { border: 1px solid #dce3e9; }
  .footer-note { color: #64748b; }
  a { color: inherit; }
}

/* Markup-specific refinements for the interactive workspace. */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.brand-period { color: #72d4d3; }
.brand-name { font-size: 27px; }
.brand-mark { width: 30px; }
.brand-mark svg { width: 31px; height: 31px; }
.workspace-switch { gap: 8px; padding: 12px 9px; }
.workspace-switch > span:nth-child(2) { min-width: 0; flex: 1; }
.workspace-switch strong { display: block; font-size: 10px; line-height: 1.5; font-weight: 550; letter-spacing: -.1px; }
.workspace-switch small { margin-top: 2px; font-size: 9px; }
.workspace-switch .workspace-icon { width: 27px; height: 29px; font-size: 13px; font-weight: 650; }
.workspace-switch > svg:last-child { width: 11px; height: 11px; flex: none; }
.nav-item { font-size: 11px; gap: 10px; }
.nav-count.highlight { background: #6e5434; color: #ebcb97; }
.nav-count.ai { background: #344e61; color: #9fc7d3; font-size: 8px; letter-spacing: .3px; }
.sidebar-help { padding: 15px 12px; }
.sidebar-help .welcome-badge { margin-bottom: 10px; color: #85b5bb; font-size: 8px; letter-spacing: .7px; }
.sidebar-help strong { font-size: 11px; }
.sidebar-help p { margin-bottom: 10px; color: #829bb3; font-size: 10px; }
.sidebar-help .text-button { font-size: 10px; color: #89cdd1; }
.user-card .icon-button { margin-left: auto; width: 28px; height: 28px; color: #859eb6; }
.user-card .icon-button:hover { background: #294057; color: #c9e0e7; }
.powered { padding-top: 20px; color: #627d96; text-align: center; font-size: 7px; letter-spacing: 1.25px; }
.powered strong { padding-left: 4px; font-size: 8px; color: #a0b2c3; letter-spacing: 1.7px; }
.global-search { display: inline-flex; align-items: center; gap: 9px; min-width: 205px; padding: 7px 9px; border: 1px solid #e9edf0; border-radius: 7px; background: #f8fafb; color: #a0acb9; text-align: left; font-size: 10px; }
.global-search:hover { border-color: #c9dce2; background: #f2f8f8; }
.global-search > svg { width: 15px; height: 15px; color: #97a8b9; }
.global-search kbd { margin-left: auto; border: 1px solid #e0e6ec; border-radius: 4px; padding: 1px 4px; background: white; color: #9fadb9; font: 8px/1.5 var(--font); }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: 5px; right: 6px; width: 5px; height: 5px; background: #ddae69; border: 1px solid white; border-radius: 50%; }
.currency { display: inline; margin-right: 2px; color: #8b9ca9; font-size: .7em; letter-spacing: .1px; font-weight: 450; }
.kpi-value .currency { font-size: 10px; margin-right: 3px; vertical-align: baseline; }
.kpi-footer .currency { font-size: inherit; }
.kpi-footer .delta + span { margin-left: 1px; }
.cell-link { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; border-radius: 4px; background: transparent; text-align: left; color: inherit; font: inherit; }
button.cell-link:hover .cell-main { color: #208b97; }
.cell-link > span:last-child { min-width: 0; }
.muted { color: #9eabb8; font-size: .84em; font-weight: 400; }
.tabular { font-variant-numeric: tabular-nums; white-space: nowrap; }
.route-arrow { margin: 0 3px; color: #b1bec8; font-weight: 400; }
.date-label { display: inline-flex; align-items: center; gap: 7px; margin-right: 5px; color: #91a0ae; font-size: 10px; white-space: nowrap; }
.date-label svg { width: 15px; height: 15px; color: #9cabb7; }
.intro-banner { min-height: 174px; padding: 23px 27px; }
.intro-copy h2 { margin: 9px 0 10px; font-size: 23px; line-height: 1.25; }
.intro-copy p { margin-bottom: 12px; font-size: 10px; line-height: 1.75; }
.intro-graphic { flex-direction: column; justify-content: center; gap: 7px; right: 22px; width: 33%; }
.intro-graphic > svg { width: 100%; max-width: 300px; height: 120px; overflow: visible; }
.intro-graphic > span { margin-top: 2px; color: #75a4ad; font-size: 6.5px; font-weight: 600; letter-spacing: 1.9px; }
.intro-graphic > span > span { display: inline-block; padding: 0 9px; color: #85b5bc; font-size: 11px; }
.panel > .chart-legend { justify-content: center; gap: 21px; margin: 1px 0 18px; }
.chart-legend i { flex: none; font-style: normal; }
.attention-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: #f7f0e5; color: #bd9c68; font-size: 10px; font-weight: 600; }
.attention-item { width: 100%; border: 0; border-bottom: 1px solid #f0f3f5; background: transparent; text-align: left; }
button.attention-item:hover .attention-content strong { color: #2b8b94; }
.attention-content small { display: block; margin-top: 3px; color: #a0abb6; font-size: 9px; line-height: 1.6; }
.attention-item > svg:last-child { flex: none; width: 13px; }
.summary-strip > span { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.summary-strip > span > svg { flex: none; width: 16px; height: 16px; }
.summary-strip > span > strong { font-size: 11px; font-weight: 600; letter-spacing: 0; }
.summary-strip > .text-button { flex: none; }
.workspace > .footer-note { margin: 0 34px 20px; padding-top: 0; }
.footer-note > span { display: inline-flex; align-items: center; gap: 5px; }
.footer-note .pill-dot { width: 4px; height: 4px; background: #9cc6b9; }
.footer-note .text-button { color: #96a6b4; font-size: 9px; font-weight: 400; }
.filter-row > .tabs { min-width: 0; flex: 1; gap: 18px; margin: -15px 0; padding: 0; border-bottom: 0; }
.filter-row > .tabs .tab { padding: 20px 0 17px; }
.filter-row > .search-field { flex: 0 1 250px; margin-left: auto; }
.bank-account { position: relative; display: flex; align-items: center; gap: 14px; min-height: 126px; }
.bank-logo { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; color: #5b9aa4; background: #d7e9e9; border: 1px solid #cce1e2; border-radius: 11px; }
.bank-logo svg { width: 23px; height: 23px; }
.bank-account > div { min-width: 0; }
.bank-account .eyebrow { margin-bottom: 10px; font-size: 8px; letter-spacing: 1px; color: #8eaeb3; }
.bank-account h2 { margin: 0 0 9px; color: #2a6b75; font-size: 27px; line-height: 1.1; letter-spacing: -.7px; white-space: nowrap; }
.bank-account h2 .currency { color: #699da5; font-size: 10px; margin-right: 4px; }
.bank-account > .badge { position: absolute; right: 11px; top: 11px; font-size: 7px; color: #78a5a9; background: #dcefed; }
.bank-account p { font-size: 9px; line-height: 1.6; color: #87a9b0; }
.bank-summary .metric-box > small { margin-top: 6px; margin-bottom: 0; color: #a7b4bf; font-size: 9px; }
.panel-head > .tabs { gap: 13px; padding: 0; border-bottom: 0; }
.panel-head > .tabs .tab { padding: 7px 0; font-size: 10px; }
.report-tabs { padding: 0 24px; gap: 27px; }
.report-tabs .tab { padding-top: 17px; padding-bottom: 14px; }
.report-summary { display: block; margin: 0; padding: 28px 34px 30px; border: 0; border-radius: 0; }
.report-title { margin: 0 0 27px; padding-bottom: 20px; border-bottom: 1px solid #edf1f4; text-align: center; }
.report-title .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
.report-title h2 { margin: 9px 0 6px; color: #496d82; font-size: 23px; font-weight: 600; letter-spacing: -.5px; }
.report-title p { margin: 0; color: #a0adba; font-size: 10px; }
.report-summary .report-metrics { display: block; max-width: 680px; margin: 0 auto; }
.report-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; }
.report-columns h3 { margin: 4px 0 10px; font-size: 11px; font-weight: 600; color: #7c98a9; }
.report-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 4px; border-bottom: 1px solid #edf2f5; color: #8096a6; font-size: 11px; }
.report-row > span { min-width: 0; }
.report-row > strong { flex: none; color: #4f7186; font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-row .currency { color: #96aab8; font-size: 9px; }
.report-row.subtotal { margin-top: 4px; padding-top: 14px; padding-bottom: 14px; border-top: 1px solid #dce8ec; border-bottom: 1px solid #dce8ec; color: #4f8b8d; font-weight: 550; }
.report-row.subtotal strong { color: #4b8d8c; }
.report-row.total { margin-top: 13px; padding: 15px 14px; border: 1px solid #dcece8; border-radius: 7px; background: #edf8f4; color: #5e9485; font-weight: 600; }
.report-row.total strong { color: #3d8976; font-size: 15px; }
.report-explainer { display: flex; align-items: flex-start; gap: 8px; max-width: 680px; margin: 22px auto 0; padding: 13px 15px; border-radius: 7px; background: #f6f9fb; color: #96a9b7; font-size: 10px; line-height: 1.7; }
.report-explainer svg { flex: none; margin-top: 1px; width: 15px; height: 15px; color: #9ab3c1; }
.account-code { display: inline-block; min-width: 41px; margin-right: 8px; color: #a8b7c3; font-size: 10px; }
.audit-item { display: block; padding: 0; }
.audit-item > summary { display: flex; align-items: center; gap: 12px; padding: 15px 0; list-style: none; cursor: pointer; }
.audit-item > summary::-webkit-details-marker { display: none; }
.audit-item > summary > span:nth-child(2) { min-width: 0; flex: 1; }
.audit-item > summary > .badge { flex: none; }
.audit-item > summary > svg:last-child { flex: none; width: 13px; height: 13px; color: #a0b3c1; transition: transform .15s; }
.audit-item[open] > summary > svg:last-child { transform: rotate(180deg); }
.audit-item .table-wrap { margin-bottom: 16px; border: 1px solid #e8eef2; border-radius: 7px; }
.automation-notice { display: flex; align-items: center; gap: 13px; margin: 0 0 21px; padding: 16px 20px; border: 1px solid #dcebea; border-radius: 11px; background: #edf7f5; }
.automation-notice > span:nth-child(2) { min-width: 0; flex: 1; }
.automation-notice strong { display: block; color: #5a898b; font-size: 11px; font-weight: 600; }
.automation-notice small { display: block; margin-top: 4px; color: #8cabae; font-size: 10px; }
.attention-icon.teal { color: #64a6a3; background: #d9eeea; }
.panel > .document-grid { padding: 21px; }
.document-preview { flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; padding: 23px; height: 155px; background: #f3f6f8; }
.document-file-icon { color: #9ab2c2; }
.document-file-icon svg { width: 29px; height: 34px; }
.document-type { color: #98adbc; font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; }
.document-preview-lines { display: block; width: 100%; max-width: 140px; }
.document-preview-lines i { display: block; height: 4px; margin-top: 5px; border-radius: 3px; background: #dde6ed; }
.document-preview-lines i:nth-child(2) { width: 80%; }
.document-preview-lines i:nth-child(3) { width: 55%; }
.document-info > strong { display: block; margin-bottom: 5px; overflow: hidden; color: #5b768a; font-size: 11px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.document-info > p { min-height: 15px; font-size: 9px; color: #a1b0be; }
.document-amount { margin: 12px 0 5px; color: #55798d; font-size: 20px; line-height: 1.2; font-weight: 550; letter-spacing: -.4px; }
.document-amount .currency { font-size: 9px; color: #9aafba; letter-spacing: 0; }
.document-actions .confidence { font-size: 8px; padding: 3px 5px; color: #b59a6d; background: #fbf5e9; }
.document-actions > svg { color: #80b4a0; width: 16px; height: 16px; }
.assistant-layout { grid-template-columns: minmax(0,1.7fr) minmax(240px,.8fr); align-items: start; }
.assistant-main { margin-bottom: 0; }
.assistant-main .assistant-intro { padding: 36px 29px 28px; border: 0; border-radius: 0; background: white; text-align: center; }
.assistant-main .assistant-orb { width: 50px; height: 50px; margin-bottom: 19px; }
.assistant-main .assistant-intro h2 { margin: 11px 0 12px; font-size: 24px; color: #487382; }
.assistant-main .assistant-intro p { font-size: 11px; color: #94aab7; }
.assistant-main .suggestions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 27px; }
.assistant-main .suggestion { padding: 13px 11px; border-color: #e1ebee; background: #f8fbfb; color: #7c9ba8; font-size: 10px; }
.assistant-main .suggestion > span { flex: 1; text-align: left; }
.assistant-main .suggestion > svg:first-child { width: 14px; height: 14px; color: #99b8bf; }
.assistant-main .suggestion > svg:last-child { width: 12px; height: 12px; }
.assistant-main > .chat-form { display: block; padding: 16px 20px 13px; border-top: 1px solid #edf2f5; }
.assistant-main .chat-composer { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px; border: 1px solid #dce8eb; border-radius: 9px; background: #fcfefe; }
.assistant-main .chat-composer input { min-width: 0; padding: 8px 9px; border: 0; background: transparent; color: #5f8598; font-size: 11px; }
.assistant-main .chat-composer .button { min-height: 33px; width: 35px; flex: none; padding: 7px; border-radius: 6px; }
.assistant-main .chat-form > p { margin: 9px 2px 0; color: #aebcc6; font-size: 8px; text-align: center; line-height: 1.7; }
.assistant-side .panel-head { padding: 18px; min-height: 62px; }
.assistant-side .panel-title { font-size: 11px; }
.assistant-sources { padding: 0 18px; }
.assistant-sources .list-row { justify-content: flex-start; gap: 10px; padding: 16px 0; }
.assistant-sources .list-row > span:nth-child(2) { min-width: 0; flex: 1; }
.assistant-sources .list-row strong { display: block; color: #6b8799; font-size: 10px; font-weight: 550; }
.assistant-sources .list-row small { display: block; margin-top: 3px; font-size: 9px; color: #adbac4; }
.assistant-sources .list-row > svg { width: 14px; height: 14px; color: #9fc5b9; }
.assistant-side .panel-footer { display: block; padding: 15px 18px; }
.assistant-side .panel-footer .cell-sub { margin: 0; white-space: normal; font-size: 9px; line-height: 1.85; }
.assistant-side .panel-footer .button { margin-top: 12px; }
.chat-avatar { display: inline-grid; place-items: center; width: 29px; height: 29px; flex: none; border: 1px solid #dcece8; border-radius: 8px; background: #edf8f4; color: #7cb4a8; }
.chat-avatar svg { width: 16px; height: 16px; }
.chat-bubble > strong { display: block; margin-bottom: 6px; color: #527b8c; font-size: 12px; }
.chat-bubble li { padding-left: 1px; }
.reply-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.reply-links .button { margin: 0; min-height: 28px; font-size: 9px; }
.form-error:empty { display: none; }
.field-hint { display: block; margin-top: 6px; color: #9aadb9; font-size: 9px; line-height: 1.7; }
.receipt-breakdown { margin-top: 18px; padding: 14px 16px; border: 1px solid #dfece8; border-radius: 9px; background: #f3faf7; }
.receipt-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 0; color: #8eaa9f; font-size: 11px; }
.receipt-breakdown strong { color: #58927c; font-size: 12px; font-weight: 550; }
.cost-bars { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.cost-bar-row { display: grid; grid-template-columns: 90px minmax(35px,1fr) auto; align-items: center; gap: 13px; color: #8ea3b1; font-size: 10px; }
.cost-bar-row > strong { min-width: 78px; text-align: right; color: #5f8596; font-size: 10px; font-weight: 550; white-space: nowrap; }
.cost-bar-row .progress { width: 100%; height: 7px; margin: 0; }
.cost-bar-row .progress-fill { display: block; background: #8cc8c2; }
.detail-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 20px 0; }
.detail-kpis > div { min-width: 0; padding: 13px 12px; border: 1px solid #e4ecef; border-radius: 8px; background: #fbfdfe; }
.detail-kpis small { display: block; color: #a0b2bc; font-size: 9px; }
.detail-kpis strong { display: block; margin-top: 6px; color: #547d8e; font-size: 16px; font-weight: 550; letter-spacing: -.3px; }
.detail-kpis .currency { font-size: 8px; }
.stock-allocation { margin: 17px 0; padding: 17px; border: 1px solid #e0ecea; border-radius: 9px; background: #f3faf8; }
.stock-allocation h3 { font-size: 11px; color: #678e86; }
.stock-allocation .progress { height: 7px; width: 100%; margin: 12px 0; background: #dfeee7; }
.stock-allocation .progress-fill { display: block; background: #7bbca9; }
.sale-preview { margin-top: 19px; padding: 16px 18px; border: 1px solid #dcebe8; border-radius: 9px; background: #f1f9f6; }
.sale-preview > h3 { font-size: 11px; color: #638e81; }
.sale-preview .list-row { border-color: #dfede6; color: #8baa9b; }
.sale-preview strong { color: #4f9079; }
.tour-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.tour-float { position: fixed; z-index: 90; bottom: 25px; right: 27px; width: 330px; max-width: calc(100vw - 36px); padding: 22px; border: 1px solid #cfe8e6; border-radius: 13px; background: white; box-shadow: 0 12px 45px #163e4e26; animation: rise .2s ease-out; }
.tour-float h3 { margin: 10px 0 7px; color: #4d7d89; font-size: 15px; }
.tour-float p { margin: 0; color: #91a9b5; font-size: 11px; line-height: 1.8; }
.tour-float > .modal-close, .tour-float > .close-label { position: absolute; top: 12px; right: 12px; }
.tour-float .eyebrow { font-size: 8px; color: #93b5b6; }
.close-label { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; border: 0; background: none; color: #9baebb; font-size: 9px; }
.close-label:hover { color: #598b96; }
.global-search-results { padding: 2px 0; }
.search-result { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 12px; border: 0; border-bottom: 1px solid #edf2f5; border-radius: 5px; background: transparent; text-align: left; color: #68899b; }
.search-result:last-child { border-bottom: 0; }
.search-result:hover { background: #f0f8f6; }
.search-result > span:nth-child(2) { min-width: 0; flex: 1; }
.search-result strong { display: block; font-size: 11px; }
.search-result small { display: block; margin-top: 3px; color: #a1b4bf; font-size: 9px; }
.search-result > svg { flex: none; width: 16px; height: 16px; color: #8eb2bb; }
.invoice-print { color: #607d90; font-size: 11px; }
.invoice-print h2 { margin-bottom: 8px; color: #3d6b7c; font-size: 24px; }
.invoice-print h3 { color: #7192a2; font-size: 12px; }
.invoice-print .invoice-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid #e3ecef; }
.invoice-print .invoice-meta { text-align: right; }
.invoice-print .invoice-meta p { margin-bottom: 5px; color: #99adba; font-size: 10px; }
.invoice-print .table-wrap { margin: 20px 0; border: 1px solid #e5edf0; border-radius: 8px; }

@media (max-width: 1200px) {
  .global-search { min-width: 170px; }
  .global-search kbd { display: none; }
  .workspace > .footer-note { margin-left: 24px; margin-right: 24px; }
  .workspace-switch strong { font-size: 9px; }
  .nav-item { padding-left: 12px; padding-right: 12px; font-size: 10px; }
  .assistant-layout { grid-template-columns: minmax(0,1.55fr) minmax(220px,.8fr); gap: 16px; }
  .assistant-main .assistant-intro { padding: 30px 20px 25px; }
  .assistant-main .assistant-intro h2 { font-size: 21px; }
  .assistant-main .suggestions { grid-template-columns: 1fr; }
  .bank-account { gap: 10px; padding: 20px 16px; }
  .bank-logo { width: 34px; height: 36px; }
  .bank-account h2 { font-size: 23px; }
  .bank-account .eyebrow { font-size: 7px; letter-spacing: .65px; }
}
@media (max-width: 900px) {
  .workspace-switch strong { font-size: 10px; }
  .nav-item { font-size: 11px; }
  .global-search { min-width: 0; width: 31px; height: 31px; padding: 7px; border-color: transparent; background: transparent; }
  .global-search > span { display: none; }
  .report-summary { padding: 25px; }
  .report-columns { gap: 25px; }
}
@media (max-width: 740px) {
  .assistant-layout { grid-template-columns: 1fr; }
  .assistant-main .suggestions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .assistant-side { margin-bottom: 0; }
  .assistant-sources { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 20px; }
  .assistant-side .panel-footer { display: flex; }
  .report-columns { gap: 20px; }
  .report-row { font-size: 10px; gap: 12px; }
  .report-row > strong { font-size: 11px; }
}
@media (max-width: 640px) {
  .breadcrumb-slash, .breadcrumb-home { display: none; }
  .breadcrumb strong { font-size: 10px; }
  .date-label { font-size: 9px; margin-right: 4px; }
  .intro-banner { min-height: 170px; padding: 21px; }
  .intro-copy h2 { font-size: 22px; }
  .intro-copy p { font-size: 9px; }
  .intro-graphic { right: -6%; width: 40%; opacity: .55; }
  .intro-graphic > svg { height: 115px; }
  .intro-graphic > span { display: none; }
  .kpi-value .currency { font-size: 9px; }
  .attention-content small { font-size: 9px; }
  .summary-strip { flex-wrap: wrap; padding: 15px; font-size: 10px; }
  .summary-strip > span { display: block; line-height: 1.8; }
  .summary-strip > span > svg { margin-right: 4px; }
  .summary-strip > span > strong { font-size: 10px; }
  .summary-strip > .text-button { margin-left: 21px; }
  .workspace > .footer-note { margin-left: 18px; margin-right: 18px; margin-bottom: 18px; }
  .filter-row { gap: 12px; }
  .filter-row > .tabs { order: 2; flex-basis: 100%; gap: 19px; margin: -2px 0 -13px; }
  .filter-row > .tabs .tab { padding: 8px 0 12px; }
  .filter-row > .search-field { flex-basis: 100%; max-width: none; margin-left: 0; }
  .bank-account { min-height: 138px; padding: 22px 20px; gap: 16px; }
  .bank-logo { width: 42px; height: 42px; }
  .bank-account h2 { font-size: 29px; }
  .bank-account .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .bank-account p { font-size: 9px; }
  .report-summary { padding: 23px 18px; }
  .report-title { margin-bottom: 20px; }
  .report-title h2 { font-size: 22px; }
  .report-columns { grid-template-columns: 1fr; gap: 27px; }
  .report-row { font-size: 11px; }
  .report-row > strong { font-size: 12px; }
  .report-row.total strong { font-size: 14px; }
  .report-explainer { padding: 12px; font-size: 9px; }
  .report-tabs { gap: 20px; padding-left: 17px; padding-right: 17px; }
  .audit-item > summary { gap: 9px; }
  .audit-item > summary > .badge { font-size: 7px; padding: 3px 5px; }
  .audit-item > summary strong { font-size: 10px; }
  .audit-item > summary small { font-size: 8px; }
  .automation-notice { gap: 10px; padding: 15px; align-items: flex-start; flex-wrap: wrap; }
  .automation-notice > span:nth-child(2) { min-width: 180px; }
  .automation-notice strong { font-size: 10px; }
  .automation-notice small { font-size: 9px; line-height: 1.7; }
  .automation-notice > .badge { margin-left: 43px; }
  .panel > .document-grid { padding: 15px; }
  .document-preview { grid-row: 1 / 3; height: 100%; min-height: 145px; padding: 16px 12px; gap: 10px; align-items: center; }
  .document-file-icon svg { width: 26px; height: 31px; }
  .document-type { font-size: 6px; letter-spacing: .7px; text-align: center; line-height: 1.7; }
  .document-preview-lines { width: 63px; }
  .document-amount { font-size: 20px; margin-top: 10px; }
  .document-actions { padding-left: 13px; padding-right: 13px; gap: 6px; }
  .document-actions .text-button { font-size: 9px; }
  .document-actions .confidence { font-size: 6px; }
  .assistant-main .assistant-intro { padding: 27px 18px 21px; }
  .assistant-main .assistant-intro h2 { font-size: 22px; }
  .assistant-main .assistant-intro p { font-size: 10px; }
  .assistant-main .suggestions { grid-template-columns: 1fr; margin-top: 22px; }
  .assistant-main .suggestion { padding: 13px 12px; font-size: 10px; }
  .assistant-main > .chat-form { padding: 14px 13px 12px; }
  .assistant-main .chat-composer input { font-size: 16px; width: 100px; padding-left: 7px; }
  .assistant-main .chat-form > p { font-size: 7px; }
  .assistant-sources { grid-template-columns: 1fr; }
  .assistant-sources .list-row { padding-top: 13px; padding-bottom: 13px; }
  .detail-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-kpis > :last-child:nth-child(3) { grid-column: 1 / -1; }
  .detail-kpis strong { font-size: 18px; }
  .cost-bar-row { grid-template-columns: 77px minmax(25px,1fr) auto; gap: 9px; font-size: 9px; }
  .cost-bar-row > strong { min-width: 66px; font-size: 9px; }
  .tour-float { right: 18px; bottom: 18px; width: 325px; padding: 20px; }
  .tour-float h3 { font-size: 14px; }
  .tour-float p { font-size: 10px; }
  .receipt-breakdown { padding: 12px 14px; }
  .invoice-print .invoice-header { flex-wrap: wrap; }
  .invoice-print .invoice-meta { text-align: left; }
}
@media print {
  .tour-float, .global-search-results, .notification-popover, .powered { display: none !important; }
  .report-summary { padding: 15px 0; }
  .report-title { text-align: left; }
  .report-row { padding-top: 10px; padding-bottom: 10px; }
  .report-columns { gap: 30px; }
  .invoice-print { display: block; }
  .invoice-print .table-wrap { overflow: visible; }
  .invoice-print .table-wrap table { min-width: 0; }
}

.progress-fill { display: block; }
.progress.large { width: 100%; height: 8px; margin: 4px 0 12px; }
.detail-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
.detail-kpis .metric-box { padding: 15px; }
.detail-kpis .metric-box > span { margin-bottom: 8px; font-size: 9px; color: #98acb8; }
.detail-kpis .metric-box > strong { margin: 0; font-size: 21px; letter-spacing: -.6px; }
.detail-kpis .metric-box > small { margin: 7px 0 0; color: #a8b8c3; font-size: 8px; }
.drawer .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 20px; margin-top: 21px; }
.detail-hero { padding: 15px 17px; }
.detail-hero .cell-sub { margin: 0; text-align: right; white-space: normal; font-size: 9px; line-height: 1.7; }
.detail-hero .badge { flex: none; }
.detail-section .panel-head { padding: 0 0 13px; border: 0; min-height: 0; }
.detail-section .panel-head h3 { margin: 0; font-size: 11px; }
.detail-section .panel-head > span { color: #9db0bc; font-size: 9px; }
.route-connector { display: inline-grid; place-items: center; position: relative; z-index: 1; flex: none; width: 34px; height: 34px; margin-top: -26px; border: 1px solid #dce9ec; border-radius: 50%; background: #f4faf9; color: #7ca7b0; }
.route-connector > svg { width: 17px; height: 17px; }
.route-stop { padding: 0 5px; }
.route-stop small { display: block; margin-bottom: 3px; color: #adbdc7; font-size: 7px; font-weight: 550; letter-spacing: 1px; }
.route-stop strong { font-size: 11px; }
.stock-allocation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; border: 0; background: none; color: #96aab6; font-size: 9px; }
.stock-allocation > span { display: inline-flex; align-items: center; gap: 6px; }
.stock-allocation .legend-dot { width: 5px; height: 5px; }
.list-row.total { margin-top: 5px; padding-top: 14px; border-top: 1px solid #deeaed; }
.list-row.total strong { color: #4a8990; }
.list-row.clickable { width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid #edf1f4; background: transparent; color: #7d99a8; text-align: left; }
.list-row.clickable:hover { background: #f6fbfb; }
.list-row.clickable > span:first-child { flex: 1; min-width: 0; }
.list-row.clickable > span:first-child strong { display: block; font-size: 11px; }
.list-row.clickable > span:first-child small { display: block; margin-top: 3px; color: #a7b6c1; font-size: 8px; }
.list-row.clickable > span:last-child { text-align: right; white-space: nowrap; color: #63879b; font-size: 11px; }
.list-row.clickable .badge { display: flex; justify-content: flex-end; width: fit-content; margin: 5px 0 0 auto; font-size: 8px; }
.selection-note.amber { background: #fcf6eb; color: #b49b70; }
.sale-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 20px; }
.sale-preview > div { min-width: 0; }
.sale-preview > div > span { display: block; margin-bottom: 6px; color: #8eac9f; font-size: 9px; }
.sale-preview > div > strong { display: block; color: #5c957f; font-size: 16px; font-weight: 550; letter-spacing: -.35px; }
.sale-preview .currency { font-size: 8px; color: #93b5a6; }
.modal-body > .search-field { max-width: none; margin-bottom: 15px; }
.modal-body > .search-field input { height: 39px; }
.receipt-card > small { display: block; margin-bottom: 10px; color: #92b0a1; font-size: 8px; letter-spacing: .5px; }
.receipt-card > strong { display: block; margin-bottom: 7px; color: #4a9075; font-size: 24px; letter-spacing: -.6px; }
.receipt-card > strong .currency { font-size: 10px; }
.review-grid .paper-header, .invoice-print .paper-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.review-grid .paper-header strong { display: block; color: #7d96a7; font-size: 11px; line-height: 1.5; }
.review-grid .paper-header small { display: block; margin-top: 6px; color: #afbbc5; font-size: 6px; font-weight: 550; letter-spacing: 1px; }
.review-grid .paper-header > svg { flex: none; color: #b0c2ce; width: 23px; height: 23px; }
.review-grid .paper-preview { position: relative; padding: 23px 20px; overflow: hidden; }
.review-grid .paper-preview > h3 { margin: 0 0 14px; color: #7a95a7; font-size: 13px; }
.review-grid .paper-preview .paper-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; width: 100%; height: auto; margin: 0; padding: 10px 0; border-bottom: 1px solid #edf1f4; border-radius: 0; background: transparent; font-size: 9px; color: #a1b1be; }
.review-grid .paper-preview .paper-line strong { color: #819bab; font-size: 9px; font-weight: 550; text-align: right; }
.review-grid .paper-preview .paper-line.total { margin-top: 18px; padding: 13px 0; border-top: 1px solid #dfe8ed; }
.review-grid .paper-preview .paper-line.total strong { color: #6b93a3; font-size: 10px; }
.review-grid .paper-preview .separator { width: 100%; height: 1px; margin: 16px 0; background: #edf2f5; }
.review-grid .paper-preview > p { position: relative; z-index: 1; margin-top: 15px; color: #9caebb; font-size: 9px; line-height: 1.8; }
.sample-watermark { position: relative; margin: 29px 0 20px; color: #e2ebf0; font-size: 37px; font-weight: 700; line-height: 1; letter-spacing: 8px; text-align: center; transform: rotate(-14deg); pointer-events: none; }
.review-field > span { max-width: 43%; color: #a0b1bd; font-size: 9px; }
.review-field > strong { max-width: 57%; margin: 0; text-align: right; overflow-wrap: anywhere; font-size: 10px; line-height: 1.6; }
.tour-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.tour-top .eyebrow { margin: 0; font-size: 8px; }
.tour-top .icon-button { width: 22px; height: 22px; padding: 3px; color: #a3b7c1; }
.invoice-brand { display: block; font-size: 29px; line-height: 1.1; font-weight: 700; letter-spacing: -1px; color: #476f83; }
.invoice-brand > span { color: #68b5b6; }
.invoice-print .paper-header small { display: block; margin-top: 9px; font-size: 7px; font-weight: 550; letter-spacing: 1.5px; color: #9eb3c0; }
.invoice-print .paper-header > div:last-child { text-align: right; }
.invoice-print .paper-header h3 { margin: 4px 0 7px; color: #5f8497; font-size: 14px; }
.invoice-print .detail-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
.invoice-print .label-value > span { display: block; margin-top: 5px; color: #a5b5bf; font-size: 9px; }
.invoice-totals { width: 65%; margin: 0 0 21px auto; }
.invoice-totals .report-row { font-size: 10px; }
.invoice-totals .report-row strong { font-size: 11px; }
.invoice-totals .report-row.total { margin-top: 0; padding: 13px; }
.invoice-totals .report-row.total strong { font-size: 14px; }

@media (max-width:640px) {
  .kpi-value { font-size: clamp(21px,5.6vw,26px); }
  .detail-kpis .metric-box { padding: 13px; }
  .detail-kpis .metric-box > strong { font-size: 19px; }
  .detail-kpis .metric-box > small { font-size: 8px; }
  .detail-kpis .metric-box > span { font-size: 8px; }
  .detail-kpis { gap: 9px; }
  .drawer .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
  .stock-allocation { font-size: 8px; }
  .route-stop { padding: 0; }
  .route-stop strong { font-size: 10px; }
  .route-stop small { font-size: 6px; }
  .route-connector { width: 29px; height: 29px; }
  .route-line { gap: 10px; padding-left: 0; padding-right: 0; }
  .sale-preview { padding: 15px; gap: 16px; }
  .sale-preview > div > span { font-size: 8px; }
  .sale-preview > div > strong { font-size: 15px; }
  .review-grid .paper-preview { max-height: none; }
  .sample-watermark { margin-top: 22px; margin-bottom: 15px; font-size: 32px; }
  .invoice-print .paper-header { flex-wrap: wrap; }
  .invoice-print .paper-header > div:last-child { text-align: left; }
  .invoice-print .detail-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .invoice-totals { width: 100%; }
  .invoice-print .table-wrap table { min-width: 540px; }
}

@media print {
  body:has(.invoice-print) { overflow: visible !important; }
  body:has(.invoice-print) #app, body:has(.invoice-print) #toasts { display: none !important; }
  body:has(.invoice-print) .modal-overlay { display: block !important; position: static; padding: 0; background: white; backdrop-filter: none; }
  body:has(.invoice-print) .modal { display: block; width: 100%; max-width: none; max-height: none; border-radius: 0; box-shadow: none; }
  body:has(.invoice-print) .modal-header, body:has(.invoice-print) .modal-footer { display: none !important; }
  body:has(.invoice-print) .modal-body { padding: 0; overflow: visible; }
  .invoice-print .paper-header, .invoice-print .detail-grid { break-inside: avoid; }
  .invoice-print .table-wrap table { min-width: 0; }
  .invoice-print .form-note { background: #f7f9fb; font-size: 9px; }
}

/* Final brand lockup */
.brand-tag { white-space: nowrap; font-size: 7.5px; letter-spacing: 1.7px; }
.brand-period { color: #63d2d5; }

.page { animation: none; }
/* HiFreez application */
body{font-size:14px}.nav-item{font-size:12px}.page-heading p{font-size:13px}.panel-title{font-size:15px}.panel-subtitle{font-size:12px}.panel-body{padding:24px}.button{font-size:12px;min-height:39px}.button.small{font-size:11px}.text-button{font-size:12px}.cell-main{font-size:13px}.cell-sub{font-size:11px}.kpi-label{font-size:12px}.kpi-footer{font-size:11px}.kpi-value{line-height:1.18}.currency{font-size:.4em;color:#8a9aaa;font-weight:500;letter-spacing:0}.eyebrow{font-size:10px}table{font-size:12px}th{font-size:11px}td{padding-top:16px;padding-bottom:16px}.sidebar .brand-tag{font-size:8px}.brand-period{color:#76dcd9}.workspace-switch strong{font-size:11px}.workspace-switch small{font-size:10px}.topbar{min-height:73px}.footer-note{font-size:11px}.live-pill{display:inline-flex;align-items:center;gap:6px;color:#24795d;background:#edf8f2;padding:5px 9px;border:1px solid #d9eee3;border-radius:6px;font-size:10px;font-weight:600;white-space:nowrap}.intro-banner{background:#e9f4f3;padding:25px 29px}.intro-copy h2{font-size:25px}.intro-copy p{font-size:12px}.intro-graphic{opacity:.95}.attention-content strong{font-size:12px}.attention-content small{display:block;color:#8b98a7;font-size:11px}.attention-item{width:100%;border-top:0;border-left:0;border-right:0;background:none;text-align:left}.empty-state{padding:55px 24px}.empty-state h3{font-size:16px;margin:16px 0 6px}.empty-state p{font-size:12px;max-width:400px;margin:0 auto 16px}.empty-state>svg{color:#92adb3}.boot-screen{display:flex;min-height:100vh;align-items:center;justify-content:center;flex-direction:column;background:#f6f9fa;color:#7b8c9d}.boot-logo{font-size:40px;font-weight:750;letter-spacing:-2px;color:#14263d}.boot-logo span{color:#0d8f9c}.spinner{height:24px;width:24px;border:2px solid #dce9ec;border-top-color:#0d8f9c;border-radius:50%;animation:spin 1s linear infinite;margin:24px 0 8px}@keyframes spin{to{transform:rotate(360deg)}}.skip-link{position:fixed;z-index:200;top:-100px;left:20px;background:#14263d;color:#fff;padding:12px}.skip-link:focus{top:10px}.setup-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:23px;padding:17px 21px;border:1px solid #e4d6b5;background:#fff9ed;border-radius:12px;color:#7c6231}.setup-strip strong{display:block;color:#5d4e35}.setup-strip p{font-size:12px;margin:3px 0 0}.onboarding-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 24px}.setup-step{background:#fff;border:1px solid var(--line);border-radius:11px;padding:17px;display:flex;gap:12px;align-items:flex-start;text-align:left;color:var(--ink)}.setup-step:hover{border-color:#90c4c7}.step-num{display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:50%;background:#eaf3f4;color:#2d8994;font-size:11px}.setup-step strong{display:block;font-size:12px}.setup-step small{display:block;margin-top:5px;color:#8b99a7}.setup-step.complete .step-num{background:#e5f5ee;color:#268d67}.toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px 21px;border-bottom:1px solid var(--line)}.toolbar-left,.toolbar-right{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.field-search{display:flex;align-items:center;gap:9px;color:#9aabb8}.field-search input{border:0;background:transparent;min-width:200px;padding:5px;outline:0;color:#42596d}.tab{font-size:12px}.tabs{gap:6px;flex-wrap:wrap}.badge{font-size:10px}.chart-axis{font-size:10px}.filters select,.compact-select{border:1px solid var(--line);padding:7px 10px;border-radius:7px;background:white;color:#62768a}.chart-empty{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:25px;color:#96a5b3}.chart-empty strong{color:#506b7e}.date-label{font-size:11px}.col-numeric{text-align:right}.nowrap{white-space:nowrap}.panel-note{font-size:12px;color:#8292a2;padding:15px 22px;border-top:1px solid var(--line);margin:0}.subtle{color:#95a3b1}.page-actions{display:flex;gap:8px;flex-wrap:wrap}.btn-link{border:0;padding:0;text-align:left;background:none;color:#0d8f9c;font-weight:600}.account-balance{font-weight:650;color:#354d62}.modal-overlay{position:fixed;inset:0;background:#0d23376b;backdrop-filter:blur(4px);z-index:100;display:flex;align-items:center;justify-content:center;padding:24px}.modal-dialog{width:min(680px,100%);background:white;border:1px solid #e3e9ed;border-radius:16px;box-shadow:0 25px 80px #0b223a30;max-height:calc(100vh - 48px);display:flex;flex-direction:column;animation:reveal .2s ease}.modal-dialog.wide{width:min(970px,100%)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:23px 27px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0 0 4px;font-size:20px}.modal-head p{margin:0;font-size:12px;color:#8999a7}.modal-body{padding:24px 27px;overflow:auto}.modal-foot{display:flex;justify-content:flex-end;align-items:center;gap:9px;padding:17px 27px;border-top:1px solid var(--line);background:#fbfcfd;border-radius:0 0 16px 16px}.modal-body .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#536a7e}.field.wide{grid-column:1/-1}.field input,.field select,.field textarea,.line-item input,.line-item select,.opening-line input,.opening-line select{width:100%;min-width:0;padding:10px 11px;border:1px solid #dce5eb;border-radius:7px;background:#fff;color:#324b60;min-height:40px}.field textarea{resize:vertical;min-height:78px}.field small{font-size:10px;color:#93a0ae}.field input:focus,.field select:focus,.field textarea:focus{border-color:#78b9c1;outline:2px solid #dff0f1}.form-note{font-size:11px;color:#8c9aa8;line-height:1.7;margin:15px 0 0}.form-error{background:#fff0f0;color:#b34c53;border-radius:7px;padding:11px 13px;font-size:12px;margin-top:15px}.form-error:empty{display:none}.form-section{margin-top:25px}.form-section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.form-section-title h3{margin:0;font-size:13px}.line-item{display:grid;grid-template-columns:minmax(150px,1.8fr) minmax(65px,1fr) minmax(80px,1fr) minmax(60px,.7fr) 30px;gap:8px;align-items:end;margin-bottom:10px;padding:12px;background:#f7fafb;border:1px solid #e7edf0;border-radius:9px}.line-item label{font-size:10px;color:#7a8e9e;display:flex;flex-direction:column;gap:5px}.line-item select,.line-item input{font-size:12px;background:white;padding:8px}.line-item .icon-button{margin-bottom:4px}.purchase-line{grid-template-columns:minmax(150px,2fr) minmax(75px,1fr) minmax(90px,1fr) 30px}.totals-preview{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 18px;background:#eef7f6;border-radius:9px;margin-top:16px;font-size:12px;color:#64858b}.totals-preview strong{color:#214d58;font-size:21px}.totals-preview small{display:block;font-size:10px}.detail-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:17px;margin-bottom:23px}.detail-grid small{display:block;color:#96a5b3;font-size:10px;margin-bottom:4px}.detail-grid strong{font-size:12px;color:#425b70}.detail-section{padding:17px 0;border-top:1px solid var(--line)}.detail-section h3{font-size:13px}.list-row{font-size:12px}.activity-row{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid #edf1f4}.activity-row:last-child{border:0}.activity-row strong{font-size:12px}.activity-row small{display:block;font-size:11px;color:#94a1ae;margin-top:3px}.activity-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#edf5f6;color:#5595a1;flex:none}.report-columns{display:grid;grid-template-columns:1fr 1fr;gap:40px}.report-total-line{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid #edf2f5;font-size:13px}.report-total-line.total{margin-top:10px;border-top:2px solid #dce7eb;border-bottom:0;font-weight:700;font-size:16px;color:#234c57}.report-total-line.subtotal{font-weight:650;background:#f1f7f7;padding:13px;border:0}.journal-card{border-bottom:1px solid var(--line)}.journal-card summary{cursor:pointer;padding:18px 23px;display:flex;gap:12px;align-items:center}.journal-card summary>span:nth-child(2){flex:1}.journal-card summary strong{font-size:12px}.journal-card summary small{display:block;font-size:10px;color:#8c9cab;margin-top:3px}.journal-card .table-wrap{padding:0 20px 20px}.journal-card table{background:#fafcfd}.document-card{display:flex;flex-direction:column}.document-info{flex:1}.file-drop{border:2px dashed #c3dbdf;border-radius:12px;padding:30px;text-align:center;background:#f4fafa}.file-drop input{max-width:100%;font-size:12px}.doc-reference{overflow-wrap:anywhere;font-size:12px;color:#758b9d}.chat-panel{display:flex;flex-direction:column;min-height:480px}.chat-log{padding:24px;display:flex;flex-direction:column;gap:20px;flex:1;max-height:550px;overflow:auto}.chat-entry{display:flex;gap:11px;align-items:flex-start;max-width:85%}.chat-entry.user{align-self:flex-end;flex-direction:row-reverse}.chat-message{padding:14px 17px;border-radius:12px;background:#f1f6f7;color:#425e71;font-size:13px;white-space:pre-wrap;line-height:1.7}.chat-entry.user .chat-message{background:#0d8f9c;color:white}.chat-entry .avatar{width:30px;height:30px;font-size:10px}.chat-form{display:flex;gap:10px;padding:18px 22px;border-top:1px solid var(--line)}.chat-form input{flex:1;min-width:0;border:1px solid #dfe8ed;border-radius:8px;padding:11px 13px;color:#40596c}.suggested-questions{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}.suggested-questions button{padding:9px 12px;background:white;border:1px solid #dce8ed;border-radius:7px;font-size:11px;color:#658294}.section-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:22px;align-items:start}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px}.settings-grid .field.wide{grid-column:1/-1}.check-field{display:flex;gap:9px;align-items:center;font-size:12px;color:#5b7082}.danger-zone{border-color:#eddde0}.notice{padding:13px 16px;border:1px solid #dde9ed;border-radius:9px;background:#f4f8fa;font-size:12px;color:#6b8392;margin-bottom:18px;line-height:1.7}.notice.amber{background:#fff9eb;border-color:#f0e1be;color:#8e733e}.notice.green{background:#eff8f3;border-color:#d8eadd;color:#437c62}.account-code{color:#9eacb8;font-size:11px;margin-right:9px}.inline-actions{display:flex;align-items:center;gap:6px}.invoice-paper{color:#263d50;font-size:12px;line-height:1.6;padding:5px}.invoice-top{display:flex;justify-content:space-between;gap:30px;padding-bottom:25px;border-bottom:2px solid #14374d;margin-bottom:24px}.invoice-logo{font-size:31px;font-weight:750;letter-spacing:-1px;color:#17354d}.invoice-logo span{color:#1599a1}.invoice-top h2{font-size:22px;text-align:right;margin:0}.invoice-company{font-size:11px;color:#6f8293;white-space:pre-wrap;margin-top:8px}.invoice-meta{text-align:right;color:#718799;font-size:11px}.invoice-billto{margin-bottom:20px}.invoice-billto strong{display:block;font-size:14px;margin-top:6px}.invoice-billto p{white-space:pre-wrap;margin:4px 0;color:#8294a3}.invoice-paper table th{background:#f0f6f6;color:#597887}.invoice-totals{max-width:320px;margin:20px 0 20px auto}.invoice-totals .report-total-line{font-size:12px}.invoice-notes{padding-top:18px;border-top:1px solid #e2e9ed;font-size:11px;color:#71889b}.invoice-notes p{white-space:pre-wrap}.report-date-fields{display:flex;align-items:end;gap:10px}.report-date-fields .field{max-width:140px}.amount-positive{color:#218565}.amount-negative{color:#bd686b}.opening-line{display:grid;grid-template-columns:2fr 1fr 1fr 30px;gap:8px;align-items:center;margin-bottom:8px}.opening-line input,.opening-line select{font-size:12px}.breakdown-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.breakdown-grid>div{padding:14px;background:#f5f9fa;border-radius:8px}.breakdown-grid small{display:block;font-size:10px;color:#8b9fac}.breakdown-grid strong{display:block;margin-top:5px;font-size:16px;color:#38596c}.form-submit-row{display:flex;justify-content:flex-end;margin-top:22px}.backup-actions{display:flex;flex-direction:column;gap:10px}.backup-actions .button{justify-content:flex-start}#print-area{display:none}.table-actions{white-space:nowrap}.locked-note{color:#9a7c45;font-size:11px;margin-top:8px}.side-metric{font-size:12px;color:#9bafbe}.statistic-divider{height:1px;background:#eaf0f3;margin:20px 0}.error-screen{max-width:600px;margin:12vh auto;padding:36px;background:white;border:1px solid var(--line);border-radius:16px;text-align:center}.error-screen h1{font-size:25px}.error-screen p{color:#7f91a1;font-size:13px}.error-screen .button{margin-top:15px}.accounting-disclosure{font-size:11px;color:#94a2af;line-height:1.7}.global-search{font-size:11px}.mobile-menu{display:none}
@media(min-width:1600px){.page{padding-left:40px;padding-right:40px}.kpi-card{min-height:140px}}@media(max-width:1100px){.onboarding-grid{grid-template-columns:1fr 1fr}.section-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.global-search span{display:none}.topbar-actions{gap:7px}}@media(max-width:800px){.page{padding:22px 19px}.topbar{padding:0 19px}.grid-main{grid-template-columns:1fr}.intro-copy{max-width:70%}.intro-graphic{width:37%}.page-heading{align-items:flex-start}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.detail-grid{grid-template-columns:1fr 1fr}.modal-overlay{padding:12px}.modal-dialog{max-height:calc(100dvh - 24px)}.modal-head,.modal-body{padding:20px}.modal-foot{padding:15px 20px}.line-item{grid-template-columns:1.4fr 1fr 1fr}.line-item label:first-child{grid-column:1/-1}.line-item .icon-button{grid-column:3;justify-self:end}.purchase-line{grid-template-columns:1fr 1fr 30px}.purchase-line label:first-child{grid-column:1/-1}.report-columns{grid-template-columns:1fr;gap:20px}.setup-strip{align-items:flex-start}.setup-strip .button{flex-shrink:0}.chat-entry{max-width:95%}.opening-line{grid-template-columns:1fr 1fr 30px}.opening-line select{grid-column:1/-1}}@media(max-width:640px){.mobile-menu{display:flex}.sidebar{width:240px;transform:translateX(-100%)}.sidebar.open{transform:translateX(0)}.workspace{margin-left:0}.mobile-backdrop.active{display:block;position:fixed;inset:0;background:#10223766;z-index:45}.page-heading{flex-direction:column;gap:13px}.heading-actions{justify-content:flex-start;width:100%}.date-label{margin-left:auto}.intro-banner{padding:20px;min-height:170px}.intro-copy h2{font-size:22px}.intro-graphic{right:-5px;width:42%;opacity:.75}.intro-copy{max-width:72%}.kpi-grid{gap:10px}.kpi-card{padding:15px}.kpi-value{font-size:23px}.kpi-label{font-size:11px}.kpi-footer{font-size:10px}.kpi-icon{display:none}.onboarding-grid{gap:8px}.setup-step{padding:13px;gap:8px}.setup-step small{font-size:10px}.settings-grid,.modal-body .form-grid{grid-template-columns:1fr}.settings-grid .field.wide,.field.wide{grid-column:auto}.toolbar{padding:13px 16px}.field-search input{min-width:120px;max-width:180px}.toolbar .tabs{font-size:11px}.topbar-actions .date-label,.breadcrumb-home,.breadcrumb-slash{display:none}.breakdown-grid{grid-template-columns:1fr 1fr}.setup-strip{flex-direction:column}.section-grid{gap:0}.chat-log{padding:17px}.chat-form{padding:14px}.modal-body{padding:18px}.detail-grid{gap:12px}.invoice-top{gap:18px}.invoice-top h2{font-size:18px}.global-search{display:none}.report-date-fields{flex-wrap:wrap}.report-date-fields .field{max-width:130px}.footer-note{padding:15px 19px;flex-wrap:wrap;gap:7px}.heading-actions .button{font-size:11px}.live-pill{font-size:9px}}
@media print{body>*{display:none!important}body>#print-area{display:block!important}#print-area{padding:10mm;color:#152f44}.invoice-paper{font-size:11pt}.invoice-paper table{font-size:10pt}.invoice-paper th{font-size:9pt}.invoice-paper .invoice-logo{font-size:28pt}.invoice-paper td{padding:12px}.invoice-paper tr{break-inside:avoid}.invoice-paper .invoice-top{break-inside:avoid}.invoice-notes{break-inside:avoid}@page{size:A4;margin:12mm}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Account access and scheduled-backup visibility. */
.account-profile{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:20px;overflow-wrap:anywhere}
.account-profile>strong{font-size:14px;color:#365468}.account-profile>span{font-size:12px;color:#8194a2}.account-profile>.badge{margin-top:5px}
.backup-health{padding:0 0 19px;margin-bottom:20px;border-bottom:1px solid #e7eef1}.backup-health>.badge{margin-bottom:14px}
.backup-facts{margin:0 0 12px}.backup-facts>div{display:flex;justify-content:space-between;gap:20px;padding:8px 0;font-size:11px;line-height:1.6}.backup-facts dt{color:#8698a6}.backup-facts dd{margin:0;max-width:58%;text-align:right;color:#516c7f;font-weight:550}
.backup-health.attention .backup-error{color:#a97041}.backup-health .form-note{margin:10px 0}.backup-health .button{margin-top:4px}
.readonly-value{display:block;min-height:42px;padding:10px 13px;border:1px solid #e2e9ed;border-radius:7px;background:#f5f8fa;color:#617b8e;font-size:12px;font-weight:500;overflow-wrap:anywhere}
.footer-note .text-button{font-size:inherit}.panel-note{padding:0 24px 20px;color:#8799a7;font-size:11px;line-height:1.8}
@media(max-width:640px){.backup-facts>div{gap:12px;font-size:10px}.backup-facts dd{max-width:60%}.panel-note{padding-left:18px;padding-right:18px}}
@media(max-width:900px){.mobile-menu{display:inline-flex}.mobile-backdrop.active{display:block;position:fixed;inset:0;background:#10223766;z-index:70}.sidebar{z-index:80}.topbar{z-index:35}}
.opening-document-line{grid-template-columns:1.2fr 1fr 1fr 1fr 30px;padding:14px;background:#f7fafb;border:1px solid #e7edf0;border-radius:9px;align-items:end}.opening-document-line>select{grid-column:1/-1}.opening-document-line .field{font-size:10px;gap:5px}.opening-document-line .icon-button{margin-bottom:4px}@media(max-width:740px){.opening-document-line{grid-template-columns:1fr 1fr}.opening-document-line>.icon-button{grid-column:2;justify-self:end}}
