:root {
  --petrol-950: #082f2d;
  --petrol-900: #0d3b38;
  --petrol-800: #164a45;
  --petrol-700: #236159;
  --petrol-100: #dfece8;
  --ivory-50: #fbf8f0;
  --ivory-100: #f4efe3;
  --paper: #fffdf8;
  --ink: #19322f;
  --muted: #6b7772;
  --line: #dedfd7;
  --amber: #a96725;
  --amber-soft: #f5e9d6;
  --red: #a34538;
  --red-soft: #f4e2dc;
  --green: #28705c;
  --green-soft: #deeee6;
  --blue-strong: #1261d6;
  --green-strong: #0b7d25;
  --orange-strong: #b65f00;
  --red-strong: #c6281f;
  --teal-strong: #08747c;
  --purple-strong: #6f2a9b;
  --shadow: 0 12px 34px rgba(9, 47, 44, .07);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 0; background: var(--ivory-50); }
body { margin: 0; min-width: 0; min-height: 100vh; overflow-x: hidden; color: var(--ink); background: var(--ivory-50); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(35,97,89,.28); outline-offset: 2px; }

.app-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 17px 20px; color: #f5f2e9; background: var(--petrol-950); border-right: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 20px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #f1ddae; font-family: Georgia, serif; font-size: 21px; }
.brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; letter-spacing: .02em; }
.brand small, .nav-item small, .sidebar-foot small { display: block; color: rgba(245,242,233,.57); font-size: 11px; letter-spacing: .04em; }
.main-nav { display: grid; gap: 3px; }
.nav-group-label { margin: 7px 10px 4px; color: rgba(245,242,233,.43); font-size: 8px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.nav-group-label.secondary { margin-top: 15px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.09); }
.nav-item { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 44px; padding: 8px 10px; border-radius: 9px; font-size: 12px; text-decoration: none; }
.nav-item.active { color: #fff; background: rgba(255,255,255,.10); box-shadow: inset 3px 0 #d8bd82; }
.nav-item.disabled { color: rgba(245,242,233,.43); cursor: default; }
.nav-item small { text-align: right; font-size: 9px; text-transform: uppercase; }
.nav-icon-box { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(216,189,130,.16); border-radius: 8px; color: #d8bd82; background: rgba(255,255,255,.055); transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease; }
.nav-icon { display: block; width: 17px; height: 17px; background: currentColor; -webkit-mask: var(--nav-icon-image) center / contain no-repeat; mask: var(--nav-icon-image) center / contain no-repeat; }
.nav-icon-home { --nav-icon-image: url("/icons/hero-home.svg"); }
.nav-icon-receivable { --nav-icon-image: url("/icons/hero-banknotes.svg"); }
.nav-icon-payable { --nav-icon-image: url("/icons/hero-receipt-percent.svg"); }
.nav-icon-future { --nav-icon-image: url("/icons/hero-calendar-days.svg"); }
.nav-icon-analysis { --nav-icon-image: url("/icons/hero-chart-pie.svg"); }
.nav-icon-reconciliation { --nav-icon-image: url("/icons/hero-arrows-right-left.svg"); }
.nav-icon-audit { --nav-icon-image: url("/icons/hero-clipboard-document-list.svg"); }
.nav-icon-settings { --nav-icon-image: url("/icons/hero-cog-6-tooth.svg"); }
.nav-item:hover:not(.disabled) .nav-icon-box { color: #f1ddae; border-color: rgba(216,189,130,.32); background: rgba(255,255,255,.09); transform: translateY(-1px); }
.nav-item.active .nav-icon-box { color: var(--petrol-950); border-color: #d8bd82; background: #d8bd82; }
.nav-item:focus-visible .nav-icon-box { outline: 2px solid #f1ddae; outline-offset: 2px; }
.mobile-nav-toggle { display: none; }
.sidebar-foot { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid rgba(255,255,255,.09); font-size: 12px; }
.sidebar-pilot { display: grid; gap: 7px; margin-bottom: 14px; padding: 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: rgba(245,242,233,.82); }
.sidebar-pilot > strong { color: #fff; font-size: 10px; letter-spacing: .03em; }
.sidebar-pilot > span { font-size: 9px; }
.sidebar-pilot b { margin-left: 4px; padding: 2px 5px; border-radius: 3px; color: #fff; background: var(--green-strong); font-size: 7px; }
.sidebar-pilot small { font-size: 8px; }
.sidebar-session { position: relative; display: grid; gap: 1px; min-width: 0; }
.sidebar-session-label { color: rgba(245,242,233,.50); font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-session strong { overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.logout-action { justify-self: start; margin-top: 9px; padding: 4px 0; border: 0; border-bottom: 1px solid transparent; color: rgba(245,242,233,.78); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.logout-action:hover { color: #fff; border-bottom-color: rgba(216,189,130,.72); }

.workspace { min-width: 0; width: 100%; max-width: 1680px; margin: 0 auto; padding: 22px clamp(16px,2vw,30px) 44px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.eyebrow { margin: 0 0 7px; color: var(--petrol-700); font-size: 10px; line-height: 1.2; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.light { color: #d8bd82; }
h1, h2, h3 { margin: 0; color: var(--petrol-950); font-weight: 700; }
h1 { font-size: clamp(27px,2.4vw,38px); font-weight: 850; line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: 23px; line-height: 1.15; }
h3 { font-size: 18px; }
.subtitle { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.as-of, .result-count { color: var(--muted); font-size: 11px; }

.glance-actions { align-items: flex-end; }
.header-filter { display: grid; gap: 3px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.header-filter select, .header-filter input { min-width: 145px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); font-size: 11px; font-weight: 650; }

.kpi-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.kpi { display: flex; min-width: 0; min-height: 128px; flex-direction: column; padding: 15px 15px 14px; overflow: hidden; border: 0; border-radius: 9px; color: #fff; background: var(--petrol-800); box-shadow: 0 8px 20px rgba(9,47,44,.10); }
.kpi-value { display: block; margin-top: 17px; overflow: hidden; color: #fff; font-size: clamp(18px,1.65vw,27px); font-weight: 850; line-height: 1; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.kpi-label { display: block; color: #fff; font-size: 10px; font-weight: 850; letter-spacing: .025em; text-transform: uppercase; }
.kpi-note { display: block; margin-top: auto; color: rgba(255,255,255,.88); font-size: 9px; font-weight: 700; }
.kpi.total { background: var(--blue-strong); }
.kpi.paid { background: var(--green-strong); }
.kpi.pending { background: var(--orange-strong); }
.kpi.overdue { background: var(--red-strong); }
.kpi.fixed { background: var(--teal-strong); }
.kpi.variable { background: var(--purple-strong); }

.forecast-section { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 5px 18px rgba(9,47,44,.035); }
.forecast-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 11px 14px 9px; border-bottom: 1px solid var(--line); }
.forecast-heading .eyebrow { margin-bottom: 3px; }
.forecast-heading h2 { font-size: 17px; }
.forecast-heading > span { color: var(--muted); font-size: 10px; }
.time-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.time-card { display: grid; min-width: 0; min-height: 86px; padding: 13px 17px; border-left: 1px solid var(--line); background: #fffdf8; }
.time-card:first-child { border-left: 0; }
.time-card span { font-size: 10px; font-weight: 850; text-transform: uppercase; }
.time-card strong { margin-top: 4px; font-size: clamp(19px,2vw,27px); line-height: 1.05; }
.time-card small { margin-top: 5px; font-size: 9px; font-weight: 700; }
.time-card.today { color: #c9251c; background: #fff5f2; }
.time-card.week { color: #9b5d00; background: #fffaf0; }
.time-card.month { color: #145bc0; background: #f4f8ff; }

.main-section { margin-top: 14px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 9px; }
.filter-toolbar { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.42fr); align-items: start; gap: 10px; }
.quick-filters { display: flex; gap: 5px; margin-bottom: 8px; overflow-x: auto; padding: 1px 1px 3px; scrollbar-width: thin; }
.quick-filter { flex: 0 0 auto; min-height: 34px; padding: 6px 11px; border: 1px solid transparent; border-radius: 6px; color: #fff; background: var(--petrol-800); cursor: pointer; font-size: 9px; font-weight: 850; }
.quick-filter:hover { filter: brightness(.92); }
.quick-filter.active { box-shadow: 0 0 0 3px rgba(8,47,45,.18); }
.quick-filter.filter-FIXO { background: var(--teal-strong); }
.quick-filter.filter-VARIAVEL { background: var(--purple-strong); }
.quick-filter.filter-COM_DOCUMENTO { background: var(--blue-strong); }
.quick-filter.filter-SEM_DOCUMENTO { background: #68737c; }
.quick-filter.filter-PAGO { background: var(--green-strong); }
.quick-filter.filter-PENDENTE { background: var(--orange-strong); }
.quick-filter.filter-PARCIAL { background: #d99700; }
.quick-filter.filter-VENCIDO { background: var(--red-strong); }
.filters { display: grid; align-items: center; gap: 9px; margin-bottom: 12px; }
.filters-primary { grid-template-columns: 1fr; }
.filters-advanced { grid-template-columns: repeat(5,minmax(150px,1fr)); margin: 10px 0 0; }
.filter-details { margin-bottom: 12px; }
.filter-details summary { width: fit-content; padding: 4px 0; color: var(--petrol-700); cursor: pointer; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.search-box { position: relative; display: block; min-width: 0; }
.search-box input, .filter-select { width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); }
.search-box input { padding-left: 11px; }
.filter-check { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--paper); font-size: 11px; font-weight: 700; white-space: nowrap; }
.filter-check input { accent-color: var(--petrol-800); }

.reconciliation-workbench { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0,1fr); gap: 15px; }
.reconciliation-source-version { display: grid; justify-items: end; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.reconciliation-source-version span, .reconciliation-source-version small { color: var(--muted); font-size: 9px; }
.reconciliation-source-version strong { color: var(--petrol-900); font-size: 13px; }
.reconciliation-stale-notice { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #d4a84f; border-radius: 10px; background: #fff5da; color: #614509; }
.reconciliation-stale-notice strong { font-size: 12px; letter-spacing: .06em; }
.reconciliation-stale-notice span { font-size: 12px; line-height: 1.45; }
.reconciliation-summary { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.reconciliation-summary article { display: grid; min-height: 112px; align-content: space-between; padding: 13px; border: 1px solid #d9ded8; border-radius: 10px; background: var(--paper); box-shadow: 0 8px 22px rgba(9,47,44,.045); }
.reconciliation-summary span { color: var(--petrol-700); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.reconciliation-summary strong { color: var(--petrol-950); font-size: 30px; line-height: 1; }
.reconciliation-summary small { color: var(--muted); font-size: 8px; }
.reconciliation-counting-note { margin: -7px 0 0; color: var(--muted); font-size: 9px; }
.reconciliation-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.reconciliation-filter-row { display: flex; min-width: 0; max-width: 100%; gap: 5px; overflow-x: auto; }
.reconciliation-filter { min-height: 34px; flex: 0 0 auto; padding: 6px 10px; border: 1px solid #cfd7d2; border-radius: 7px; color: var(--petrol-700); background: #fff; cursor: pointer; font-size: 9px; font-weight: 800; }
.reconciliation-filter.active { color: #fff; border-color: var(--petrol-800); background: var(--petrol-800); }
.reconciliation-toolbar label { display: grid; flex: 0 0 190px; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.reconciliation-toolbar select { height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font-size: 10px; }
.reconciliation-queue-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.reconciliation-queue-heading h2 { font-size: 18px; }
.reconciliation-queue-heading > span { color: var(--muted); font-size: 10px; }
.reconciliation-queue { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0,1fr); gap: 10px; }
.reconciliation-card { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; border: 1px solid var(--line); border-left: 4px solid #bf8b45; border-radius: 11px; background: var(--paper); box-shadow: 0 9px 24px rgba(9,47,44,.045); }
.reconciliation-card.status-BLOQUEADO { border-left-color: var(--red); }
.reconciliation-card.status-JA_RESOLVIDO { border-left-color: var(--green); }
.reconciliation-card > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 14px; border-bottom: 1px solid #ecece6; background: #faf9f4; }
.reconciliation-card > header > div { display: flex; min-width: 0; align-items: center; gap: 7px; }
.reconciliation-card > header > strong { color: var(--petrol-950); font-size: 14px; }
.reconciliation-id { color: var(--petrol-950); font-size: 14px; font-weight: 900; letter-spacing: .04em; }
.reconciliation-status { padding: 3px 7px; border-radius: 999px; color: #7b541f; background: #f6e9d3; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.reconciliation-status.JA_RESOLVIDO { color: #185f4a; background: #dceee6; }
.reconciliation-status.BLOQUEADO { color: #8d3028; background: #f4dfdb; }
.reconciliation-card-body { display: grid; min-width: 0; grid-template-columns: 1.08fr 1.08fr .84fr; }
.reconciliation-card-body > section { min-width: 0; padding: 13px 14px; }
.reconciliation-card-body > section + section { border-left: 1px solid #ecece6; }
.reconciliation-card-body h3 { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.reconciliation-card-body section > p:not(.eyebrow) { margin: 4px 0 8px; color: var(--muted); font-size: 9px; }
.reconciliation-values { display: grid; gap: 4px; margin: 8px 0 0; }
.reconciliation-values > div { display: grid; grid-template-columns: minmax(105px,.75fr) minmax(0,1.25fr); gap: 8px; padding-top: 4px; border-top: 1px solid #efeee8; }
.reconciliation-values dt { color: var(--muted); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.reconciliation-values dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 9px; font-weight: 700; text-align: right; }
.reconciliation-empty-value, .reconciliation-no-link { color: var(--muted); font-size: 9px; }
.reconciliation-deep-link { display: inline-block; margin-top: 9px; color: var(--petrol-700); font-size: 9px; font-weight: 850; text-decoration: underline; text-underline-offset: 2px; }
.reconciliation-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.reconciliation-tags span { padding: 3px 6px; border-radius: 5px; color: #3b5f58; background: #e7f0ed; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.native-fact-lock, .destination-difference { display: flex; align-items: center; gap: 12px; margin: 0 14px 10px; padding: 9px 11px; border: 1px solid #b8d8cc; border-radius: 8px; color: #155846; background: #edf7f3; font-size: 9px; }
.native-fact-lock strong, .destination-difference strong { flex: 0 0 auto; font-size: 9px; text-transform: uppercase; }
.destination-difference { flex-wrap: wrap; border-color: #dacfac; color: #6b531a; background: #faf5e7; }
.reconciliation-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 14px; border-top: 1px solid #ecece6; }
.reconciliation-card > footer p { margin: 0; color: var(--muted); font-size: 9px; }
.reconciliation-card > footer p strong { color: var(--ink); }
.reconciliation-card > footer .btn { min-height: 32px; padding-block: 6px; font-size: 10px; }
.reconciliation-safety-footer { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 11px 13px; border: 1px solid #b9d7cd; border-radius: 9px; color: #235a4e; background: #f0f8f5; font-size: 9px; }
.reconciliation-preview-warning { display: grid; gap: 3px; margin: 14px 0; padding: 11px; border: 1px solid #d7c69e; border-radius: 8px; color: #684e16; background: #fbf5e5; font-size: 10px; }
.reconciliation-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reconciliation-preview-grid > div { padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.reconciliation-audit { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.reconciliation-audit h3 { font-size: 14px; }
.reconciliation-audit dl { display: grid; gap: 5px; }
.reconciliation-audit dl > div { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 8px; }
.reconciliation-audit dt { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.reconciliation-audit dd { margin: 0; overflow-wrap: anywhere; font-size: 9px; }
.reconciliation-preview-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 16px; }
.reconciliation-preview-actions button:disabled { cursor: not-allowed; opacity: .45; }
.reconciliation-preview-result { margin: 10px 0 0; color: var(--muted); font-size: 9px; }

.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: var(--shadow); }
.payable-head, .payable-row { display: grid; grid-template-columns: minmax(140px,1.15fr) 92px minmax(150px,1.15fr) 95px 95px 95px 92px 82px 50px; gap: 8px; align-items: center; }
.payable-head { min-height: 35px; padding: 0 10px; color: #44534f; background: #f0f1ef; font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.payable-row { width: 100%; min-height: 48px; padding: 7px 10px; border: 0; border-top: 1px solid #e4e7e4; color: var(--muted); background: transparent; cursor: pointer; text-align: left; text-decoration: none; font-size: 9px; }
.payable-row:nth-child(even) { background: #fafbf9; }
.payable-row:hover { background: #edf5f2; }
.payable-row strong { color: var(--ink); font-size: 11px; }
.payable-identity strong, .payable-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payable-identity strong { color: #12334c; font-size: 11px; }
.payable-identity small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.nature-cell { display: flex; flex-wrap: wrap; gap: 3px; }
.expense-cell > strong { display: block; }
.expense-cell > small { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-action { color: var(--petrol-700); font-size: 9px; font-weight: 850; text-decoration: underline; text-underline-offset: 2px; }

.status-pill, .due-pill { display: inline-flex; width: fit-content; max-width: 100%; min-height: 21px; align-items: center; padding: 3px 7px; overflow: hidden; border-radius: 4px; color: #fff; background: #2674be; font-size: 8px; font-weight: 850; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.status-pill.PARCIAL, .due-pill.today { color: #fff; background: #d98900; }
.status-pill.PAGO { color: #fff; background: var(--green-strong); }
.status-pill.VENCIDO { color: #fff; background: var(--red-strong); }
.status-pill.CANCELADO { color: var(--muted); background: #ecece7; }
.due-pill { color: var(--ink); background: transparent; }
.due-pill.overdue { color: var(--red-strong); background: #fff0ed; }
.nature-badge, .category-badge, .document-badge { display: inline-flex; align-items: center; width: fit-content; min-height: 18px; padding: 2px 6px; border-radius: 4px; font-size: 7px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.nature-badge.FIXO { color: #fff; background: var(--teal-strong); }
.nature-badge.VARIAVEL { color: #fff; background: var(--purple-strong); }
.nature-badge.NAO_CLASSIFICADO { color: var(--muted); background: #ecece7; }
.category-badge { color: #72551f; background: #f3ead1; }
.document-badge { color: #4f5d6b; background: #e9edf0; }
.document-badge.present { color: #315f5c; background: #deeceb; }
.review-badge { display: inline-flex; margin-top: 4px; padding: 2px 6px; border-radius: 4px; color: var(--amber); background: var(--amber-soft); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.origin-badge { display: inline-flex; margin-left: 6px; padding: 2px 6px; border-radius: 4px; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.origin-badge.IMPORTADO { color: var(--petrol-800); background: var(--petrol-100); }
.origin-badge.PILOTO { color: #6c4a22; background: var(--amber-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700; text-decoration: none; }
.btn:disabled { cursor: not-allowed; opacity: .62; }
.btn-primary { border-color: var(--petrol-800); color: #fff; background: var(--petrol-800); }
.btn-primary:hover:not(:disabled) { background: var(--petrol-950); }
.btn-secondary { border-color: var(--line); color: var(--petrol-800); background: var(--paper); }
.btn-secondary:hover:not(:disabled) { border-color: #aebdb7; background: #faf8f1; }
.btn-danger { border-color: var(--red); color: #fff; background: var(--red); }
.btn-full { width: 100%; margin-top: 8px; }
.back-link { display: inline-flex; margin-bottom: 20px; color: var(--petrol-700); font-size: 12px; font-weight: 800; text-decoration: none; }

.workspace-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.workspace-header-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.workspace-actions { align-items: flex-start; flex: 0 0 auto; }
.btn-edit { min-width: 112px; box-shadow: 0 7px 18px rgba(8,47,45,.12); }
.version-card { flex: 0 0 190px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,253,248,.78); }
.version-card span, .version-card small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.version-card strong { display: block; margin: 3px 0; color: var(--petrol-950); font-size: 22px; }
.money-trio { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 20px; }
.money-trio > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.money-trio span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.money-trio strong { display: block; margin-top: 5px; color: var(--petrol-950); font-size: 18px; }
.tabs { position: sticky; top: 0; z-index: 10; display: flex; gap: 2px; margin: 0; padding: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px 10px 0 0; background: rgba(251,248,240,.96); backdrop-filter: blur(12px); }
.tab { flex: 0 0 auto; padding: 8px 13px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.tab:hover { color: var(--petrol-800); background: var(--petrol-100); }
.tab[aria-selected="true"] { color: #fff; background: var(--petrol-800); }
.tab-panel { min-height: 340px; padding: 24px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 11px 11px; background: rgba(255,253,248,.54); }
.card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); box-shadow: 0 8px 28px rgba(9,47,44,.04); }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; margin: 0; }
.detail-row { min-width: 0; padding: 11px 0; border-bottom: 1px solid #ece9df; }
.detail-row dt { margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.detail-row dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; white-space: pre-wrap; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }

table.dense { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); font-size: 12px; }
table.dense thead th { padding: 9px 12px; color: var(--muted); background: #f7f4eb; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
table.dense tbody td { padding: 10px 12px; border-top: 1px solid #e9e7df; color: var(--ink); }
table.dense tbody tr:nth-child(even) { background: #faf8f1; }
table.dense td.money, table.dense th.money { text-align: right; }
.timeline { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline::before { position: absolute; top: 8px; bottom: 12px; left: 5px; width: 1px; content: ""; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 12px minmax(0,1fr); gap: 12px; padding-bottom: 18px; }
.timeline-dot { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 4px; border: 3px solid var(--paper); border-radius: 50%; background: var(--petrol-700); box-shadow: 0 0 0 1px var(--petrol-700); }
.timeline-date { display: block; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.timeline-item strong { display: block; margin-top: 2px; color: var(--ink); font-size: 12px; }
.timeline-item p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(5,28,27,.34); backdrop-filter: blur(1px); }
.drawer { position: fixed; z-index: 21; top: 0; right: 0; width: min(570px,96vw); height: 100vh; overflow-y: auto; padding: 34px 31px 50px; border-left: 1px solid rgba(255,255,255,.4); background: var(--paper); box-shadow: -24px 0 70px rgba(4,35,33,.17); }
.drawer-close { position: absolute; top: 20px; right: 20px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font-size: 22px; }
.drawer-header { padding-right: 38px; }
.drawer-header h2 { margin: 6px 0 8px; font-size: 28px; }
.drawer-form { display: grid; gap: 14px; margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; }
.span-2 { grid-column: 1 / -1; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 13px; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input.invalid { border-color: var(--red); background: #fff8f6; }
.field-error, .form-error { color: var(--red); font-size: 10px; font-weight: 700; }
.drawer-form-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.confirm-box { display: grid; gap: 10px; padding: 13px 14px; border: 1px solid #dfc992; border-left: 3px solid var(--amber); border-radius: 4px 8px 8px 4px; color: #705716; background: #fbf4df; font-size: 12px; }

.empty-state, .error-state { display: grid; place-items: center; min-height: 260px; padding: 35px; text-align: center; }
.empty-state-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 13px; border-radius: 50%; color: var(--petrol-700); background: var(--petrol-100); font-family: Georgia, serif; font-size: 21px; }
.empty-state p, .error-state p { max-width: 460px; margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.loading-lines { display: grid; gap: 1px; }
.loading-lines span { display: block; height: 58px; background: linear-gradient(90deg,#eeeae0 25%,#f7f4ec 44%,#eeeae0 65%); background-size: 300% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.toast-container { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 8px; max-width: min(380px,90vw); }
.toast { padding: 12px 15px; border-radius: 9px; font-size: 12px; font-weight: 700; box-shadow: 0 10px 30px rgba(9,47,44,.16); }
.toast.success { border: 1px solid #bed8cc; color: var(--green); background: var(--green-soft); }
.toast.error { border: 1px solid #e6c9c4; color: var(--red); background: var(--red-soft); }
.notice { margin-bottom: 18px; padding: 13px 16px; border: 1px solid #ddc8a4; border-radius: 9px; color: #6c4a22; background: var(--amber-soft); font-size: 13px; }
.pilot-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 7px 11px; border: 1px solid #ddc8a4; border-radius: 7px; color: #6c4a22; background: #fff4d8; font-size: 9px; }
.pilot-banner strong { flex: 0 0 auto; font-size: 10px; letter-spacing: .08em; }
.pilot-banner span { line-height: 1.45; }
.scope-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; padding: 8px 12px; border: 1px solid #b8d0ca; border-radius: 7px; color: var(--petrol-800); background: #f1f8f6; font-size: 10px; }
.scope-notice span { color: var(--muted); text-align: right; }
.scope-coverage { display: flex; align-items: stretch; gap: 7px; margin: 10px 0; }
.scope-coverage > div { display: grid; gap: 2px; min-width: 155px; padding: 9px 12px; border: 1px solid #b8d0ca; border-radius: 8px; color: var(--petrol-800); background: #f1f8f6; }
.scope-coverage > div:first-child { flex: 1; }
.scope-coverage > div.excluded { border-color: #ead5ad; color: #735416; background: #fff8e5; }
.scope-coverage span, .scope-coverage small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.scope-coverage strong { font-size: 11px; }
.coverage-state { align-items: flex-start; }
.coverage-state > span:last-child { margin-top: 8px; color: var(--muted); font-size: 10px; font-weight: 750; }

.company-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin: 10px 0; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,253,248,.78); }
.company-tab { display: grid; place-items: center; min-height: 46px; padding: 7px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--petrol-800); background: transparent; cursor: pointer; }
.company-tab strong { font-size: 11px; letter-spacing: .04em; }
.company-tab small { margin-top: 2px; color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: .08em; }
.company-tab:hover { background: var(--petrol-100); }
.company-tab.active { border-color: var(--petrol-800); color: #fff; background: var(--petrol-800); box-shadow: 0 5px 14px rgba(8,47,45,.14); }
.company-tab.active small { color: rgba(255,255,255,.8); }
.company-tab.construction:not(.active) { color: #735416; background: #fff8e5; }

.financial-layer-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 10px 0; }
.financial-layer { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--petrol-800); background: var(--paper); cursor: pointer; text-align: left; }
.financial-layer strong, .financial-layer small { display: block; }
.financial-layer strong { font-size: 12px; }
.financial-layer small { color: var(--muted); font-size: 9px; }
.financial-layer.active { border-color: var(--petrol-800); color: #fff; background: var(--petrol-800); }
.financial-layer.active small { color: rgba(255,255,255,.8); }
.financial-layer.informational.active { border-color: #7d4aa5; background: #6f2a9b; }

.open-equation { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.1fr; align-items: stretch; gap: 6px; margin-top: 9px; }
.open-equation > div { display: grid; min-width: 0; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.open-equation > b { align-self: center; color: var(--muted); font-size: 17px; }
.open-equation span { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.open-equation strong { overflow: hidden; color: var(--petrol-950); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.open-equation small { color: var(--muted); font-size: 8px; }
.open-equation .open-result { border-color: #d98b24; color: #fff; background: var(--orange-strong); }
.open-equation .open-result span, .open-equation .open-result strong, .open-equation .open-result small { color: #fff; }

.info-symbol { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #6f2a9b; font-family: Georgia,serif; font-size: 17px; font-weight: 800; }
.info-boundary { display: flex; gap: 10px; margin-bottom: 9px; padding: 9px 11px; border-left: 4px solid #6f2a9b; color: #674b72; background: #faf4ff; font-size: 10px; }
.info-row-badge { display: inline-flex; margin-left: 5px; padding: 2px 5px; border-radius: 3px; color: #5f247f; background: #efe0f6; font-size: 7px; }
.nature-badge.INFO, .status-pill.INFORMATIVO { color: #fff; background: #6f2a9b; }
.quick-filter.filter-info, .quick-filter.filter-EM_ABERTO, .quick-filter.filter-A_VENCER, .quick-filter.filter-SEM_DATA { background: #6f2a9b; }
.quick-filter.filter-VENCIDO { background: var(--red-strong); }

.construction-panel { display: grid; min-height: 260px; place-items: center; align-content: center; margin-top: 10px; padding: 36px; border: 1px dashed #c8b06f; border-radius: 12px; color: #6c5827; background: #fff9e9; text-align: center; }
.construction-panel h2 { margin-top: 12px; font-size: 24px; }
.construction-panel p { max-width: 650px; margin: 9px 0 0; color: #756746; font-size: 12px; }
.construction-panel.source-ready { border-color: #8eb4aa; color: var(--petrol-800); background: #f0f8f5; }
.construction-tag { padding: 5px 9px; border-radius: 4px; color: #fff; background: #8a6820; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.source-ready .construction-tag { background: var(--petrol-700); }

.information-boundary-detail { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 20px; }
.information-boundary-detail > div { padding: 14px 16px; border: 1px solid #d8c2e5; border-radius: 9px; background: #faf4ff; }
.information-boundary-detail span { display: block; color: #765184; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.information-boundary-detail strong { display: block; margin-top: 5px; color: #5f247f; font-size: 17px; }
.field input[readonly] { color: var(--muted); background: #f0f0eb; cursor: not-allowed; }

.receivable-scope { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 10px 0; }
.receivable-scope > div, .receivable-scope > button { display: grid; align-content: center; gap: 4px; min-height: 78px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; color: inherit; background: var(--paper); text-align: left; box-shadow: 0 5px 16px rgba(9,47,44,.035); }
.receivable-scope > button { cursor: pointer; }
.receivable-scope > button:hover { border-color: #147d66; }
.receivable-scope > button.active { border-color: #147d66; color: #fff; background: #147d66; box-shadow: 0 8px 22px rgba(20,125,102,.22), inset 0 0 0 2px rgba(255,255,255,.18); }
.receivable-scope > div.unavailable { color: #715c2b; background: #fff8e5; }
.receivable-scope span { font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.receivable-scope strong { font-size: 13px; }
.receivable-scope small { color: var(--muted); font-size: 8px; }
.receivable-scope button.active small { color: rgba(255,255,255,.8); }
.receivable-boundary { display: flex; align-items: center; gap: 12px; margin: 10px 0; padding: 10px 13px; border-left: 4px solid #147d66; color: #174f44; background: #eef8f4; font-size: 10px; }
.receivable-boundary strong { flex: 0 0 auto; font-size: 9px; letter-spacing: .08em; }
.receivable-boundary.compact { justify-content: space-between; min-height: 30px; margin: 7px 0; padding: 6px 10px; border-left-width: 3px; font-size: 8px; }
.receivable-boundary.compact span { color: var(--muted); font-weight: 700; text-transform: uppercase; }
.receivable-kpis { grid-template-columns: repeat(5,minmax(0,1fr)); }
.receivable-equation { display: grid; grid-template-columns: 1.2fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 7px; margin-top: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.receivable-equation > div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 7px; background: #f2f7f5; }
.receivable-equation span { color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.receivable-equation strong { color: var(--petrol-950); font-size: 14px; }
.receivable-equation > small { grid-column: 1 / -1; color: var(--muted); font-size: 8px; text-align: right; }
.receivable-foundations { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(420px,1.3fr); gap: 8px; margin-top: 8px; }
.reconciliation-compact { min-height: 58px; padding: 10px 13px; border: 1px solid #b9d7cd; border-radius: 9px; color: #16584b; background: #f0f8f5; }
.reconciliation-compact summary { cursor: pointer; font-size: 10px; font-weight: 850; }
.reconciliation-compact > div { display: grid; gap: 3px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #cfe3dc; }
.reconciliation-compact strong { font-size: 15px; }
.reconciliation-compact span, .reconciliation-compact small { color: var(--muted); font-size: 8px; }
.receipt-limit-foundation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; min-height: 58px; border: 1px solid #d8d5c9; border-radius: 9px; background: var(--paper); }
.receipt-limit-foundation > div { display: grid; align-content: center; gap: 2px; padding: 9px 13px; }
.receipt-limit-foundation > div + div { border-left: 1px solid var(--line); }
.receipt-limit-foundation span { color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.receipt-limit-foundation strong { color: var(--petrol-950); font-size: 12px; }
.receipt-limit-foundation small { color: #8a651f; font-size: 8px; }
.receivable-quick-filters { display: flex; gap: 6px; margin-bottom: 9px; overflow-x: auto; padding: 2px; }
.receivable-quick-filters button { flex: 0 0 auto; min-height: 34px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--petrol-800); background: var(--paper); cursor: pointer; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.receivable-quick-filters button.active { border-color: var(--petrol-800); color: #fff; background: var(--petrol-800); box-shadow: 0 0 0 2px rgba(8,47,45,.12); }
.receivable-filters { display: grid; grid-template-columns: minmax(260px,1fr) auto; align-items: start; gap: 10px; margin-bottom: 9px; }
.receivable-filters label { display: grid; gap: 4px; }
.receivable-filters label > span { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.receivable-filters select, .receivable-filters input { min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.receivable-more-filters { position: relative; }
.receivable-more-filters summary { min-height: 38px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--petrol-800); background: var(--paper); cursor: pointer; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.receivable-more-filters > div { display: grid; grid-template-columns: 160px 190px 210px; gap: 8px; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f8f7f2; }
.receivable-head, .receivable-row { display: grid; grid-template-columns: minmax(92px,.65fr) minmax(82px,.58fr) minmax(150px,1.08fr) repeat(4,minmax(78px,.57fr)) minmax(112px,.8fr) minmax(116px,.84fr) 76px; align-items: center; gap: 7px; }
.receivable-head { padding: 8px 12px; color: var(--muted); background: #f2f1eb; font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.receivable-row { width: 100%; min-height: 46px; padding: 6px 12px; border: 0; border-top: 1px solid rgba(110,125,120,.17); color: inherit; background: var(--paper); cursor: pointer; text-align: left; transition: box-shadow .12s ease, filter .12s ease; }
.receivable-row.state-RECEBIDO { background: #d2eadb; }
.receivable-row.state-PARCIAL { background: #fff2d8; }
.receivable-row.state-EM_ABERTO { background: #f5f9fc; box-shadow: inset 3px 0 #7ba6cc; }
.receivable-row.state-REVIEW { background: #fbe8e5; box-shadow: inset 3px 0 #c96b62; }
.receivable-row.state-UNKNOWN { background: #eef0ef; }
.receivable-row:hover { filter: brightness(.975); box-shadow: inset 4px 0 var(--petrol-700); }
.receivable-row:focus-visible { outline: 3px solid rgba(20,125,102,.24); outline-offset: -3px; }
.receivable-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.receivable-kind { display: inline-flex; padding: 3px 6px; border-radius: 4px; color: #fff; background: #147d66; font-size: 8px; }
.channel-badge { display: inline-flex; width: fit-content; padding: 3px 7px; border-radius: 5px; color: #3d4b4a; background: #e8eceb; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.channel-badge.highlight { color: #fff; background: #176ac2; }
.destination-pill { display: inline-flex; width: fit-content; padding: 3px 6px; border-radius: 4px; color: #135a4c; background: #dff2ec; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.destination-pill.actual { color: #fff; background: #1b6f64; }
.destination-pill.actual.divergent { background: #a34f62; }
.destination-pill.multiple { color: #fff; background: #6f5b9f; }
.destination-pill.pending { color: #805600; background: #fff0c7; }
.destination-pill.unknown { color: #56615f; background: #ecefed; }
.due-date-pill { display: inline-flex; width: fit-content; padding: 3px 6px; border-radius: 4px; color: #15594e; background: #dff2ec; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.due-date-pill.overdue { color: #fff; background: #a34f62; }
.due-date-pill.due_today { color: #6b4300; background: #ffe29f; }
.due-date-pill.next_7_days { color: #155184; background: #dcecff; }
.due-date-pill.future { color: #315c57; background: #e2efec; }
.due-date-pill.estimated { color: #5c4d92; background: #eee9ff; }
.due-date-pill.settled { color: #fff; background: #27765f; }
.due-date-pill.review { color: #714f13; background: #fff0c7; }
.due-date-pill.unknown { color: #56615f; background: #ecefed; }
.quarantine-row { cursor: default; }
.quarantine-row:hover { filter: none; box-shadow: inset 3px 0 #c96b62; }
.status-pill.RECEIVABLE_RECEBIDO { color: #fff; background: var(--green); }
.status-pill.RECEIVABLE_PARCIAL { color: #fff; background: #ca7a14; }
.status-pill.RECEIVABLE_EM_ABERTO { color: #fff; background: #176ac2; }
.receivable-money { grid-template-columns: repeat(4,minmax(0,1fr)); }
.drawer-money { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 20px 0 10px; }
.drawer-money > div { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8f8f3; }
.drawer-money span, .destination-compare span { display: block; color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.drawer-money strong { display: block; margin-top: 4px; color: var(--petrol-950); font-size: 17px; }
.destination-compare { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 20px; }
.destination-compare > div { padding: 13px; border: 1px solid #bad6ce; border-radius: 8px; background: #f0f8f5; }
.destination-compare strong { display: block; margin-top: 5px; color: var(--petrol-950); font-size: 12px; }
.destination-compare small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.due-date-detail { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 10px 0 20px; }
.due-date-detail > div { padding: 13px; border: 1px solid #bfd8d2; border-radius: 8px; background: #f0f8f5; }
.due-date-detail.overdue > div:first-child { border-color: #d6a2ad; background: #faecef; }
.due-date-detail.due_today > div:first-child { border-color: #e3bd69; background: #fff5dc; }
.due-date-detail.no_due_date > div:first-child { border-color: #d2d8d6; background: #f2f4f3; }
.due-date-detail span { display: block; color: var(--muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.due-date-detail strong { display: block; margin-top: 5px; color: var(--petrol-950); font-size: 15px; }
.due-date-detail small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.due-date-detail > .due-date-detail-action { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding: 0; border: 0; background: transparent; }
.due-date-detail-action .btn { min-height: 34px; }
.drawer-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.drawer-section h3 { margin-bottom: 10px; font-size: 15px; }
.boundary-note { margin: 0 0 10px; padding: 9px 11px; border-left: 3px solid #d18b12; color: #745616; background: #fff7df; font-size: 10px; line-height: 1.45; }
.support-list { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; }
.support-list > div { padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fafaf6; }
.support-list span, .support-list strong, .support-list small { display: block; }
.support-list span, .support-list small { color: var(--muted); font-size: 8px; }
.support-list strong { margin: 3px 0; font-size: 11px; }
.drawer-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.drawer-list li { display: grid; gap: 3px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; }
.drawer-list span { color: var(--muted); font-size: 9px; }
.shell-page-header { align-items: center; }
.construction-badge { flex: 0 0 auto; padding: 6px 9px; border-radius: 5px; color: #71551c; background: #fff0c7; font-size: 9px; font-weight: 850; letter-spacing: .06em; }
.future-shell-card { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; max-width: 780px; margin-top: 22px; padding: 28px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow); }
.future-shell-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; color: #d8bd82; background: var(--petrol-950); font-size: 28px; }
.future-shell-card h2 { margin-bottom: 8px; }
.future-shell-card p { color: var(--muted); font-size: 12px; }
.future-shell-card ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0 20px; padding: 0; list-style: none; }
.future-shell-card li { padding: 5px 8px; border-radius: 5px; color: var(--petrol-800); background: var(--petrol-100); font-size: 9px; font-weight: 750; }

.executive-mode .sidebar { background: var(--petrol-950); border-right-color: rgba(255,255,255,.06); }
.executive-mode .nav-item.active { background: rgba(255,255,255,.10); }
.executive-mode, .executive-mode .workspace { background: var(--ivory-50); }
.executive-cockpit { margin: -22px clamp(-30px,-2vw,-16px) -44px; min-height: 100vh; padding: 22px clamp(16px,2vw,30px) 44px; color: var(--ink); background: var(--ivory-50); }
.executive-cockpit h1, .executive-cockpit h2, .executive-cockpit h3 { color: var(--petrol-950); }
.executive-cockpit .eyebrow { color: var(--petrol-700); }
.cockpit-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cockpit-header h1 { margin-top: 2px; font-size: clamp(30px,3vw,46px); letter-spacing: -.04em; }
.cockpit-header p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.cockpit-header .cockpit-executive-sentence { max-width: 880px; color: var(--petrol-800); font-size: clamp(14px,1.35vw,19px); font-weight: 700; line-height: 1.45; }
.cockpit-context { display: grid; justify-items: end; gap: 7px; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.cockpit-context b { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--petrol-800); background: var(--paper); }
.cockpit-context .period-badge.partial { border-color: #e0c477; color: #72551a; background: #fff3d2; }
.cockpit-context small { color: var(--muted); font-size: 8px; }
.cockpit-hero-kpis, .cockpit-support-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.cockpit-hero-kpis { margin: 17px 0 10px; }
.cockpit-support-kpis { margin: 0 0 17px; }
.cockpit-kpi { position: relative; display: grid; align-content: space-between; min-height: 126px; padding: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.cockpit-kpi-hero::before { position: absolute; top: 0; bottom: 0; left: 0; width: 5px; content: ""; background: #2fbfb8; }
.cockpit-kpi-hero.tone-out::before { background: #9279c7; }
.cockpit-kpi-hero.tone-late::before { background: #b86d7e; }
.cockpit-kpi-hero.tone-attention::before { background: #c59c3f; }
.cockpit-kpi-support { min-height: 92px; padding: 14px 17px; box-shadow: none; }
.cockpit-kpi span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.cockpit-kpi strong { margin: 12px 0; overflow: hidden; color: var(--petrol-950); font-size: clamp(17px,1.35vw,23px); line-height: 1; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.cockpit-kpi small { color: var(--muted); font-size: 8px; }
.cockpit-kpi-hero strong { font-size: clamp(24px,2.35vw,38px); }
.cockpit-kpi-support strong { margin: 8px 0; font-size: clamp(18px,1.55vw,25px); }
.cockpit-command-grid { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(420px,1.45fr) minmax(260px,.78fr); align-items: stretch; gap: 14px; }
.attention-panel, .central-visual, .composition-panel, .trend-panel { min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.attention-panel { padding: 18px; }
.attention-panel > header, .central-visual > header, .composition-panel > header, .trend-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.attention-panel > header span, .central-visual header span:first-child, .composition-panel header span, .trend-panel > header > div:first-child > span { color: var(--petrol-700); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.attention-panel > header b { color: var(--muted); font-size: 8px; letter-spacing: .06em; }
.attention-dominant { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.attention-dominant strong { color: var(--petrol-950); font-size: 70px; line-height: .86; letter-spacing: -.08em; }
.attention-dominant span { color: var(--muted); font-size: 10px; font-weight: 750; line-height: 1.45; text-transform: uppercase; }
.attention-module-split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-bottom: 12px; }
.attention-module-split > div { padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory-50); }
.attention-module-split span, .attention-module-split strong, .attention-module-split small { display: block; }
.attention-module-split span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.attention-module-split strong { margin: 4px 0; color: var(--petrol-950); font-size: 24px; }
.attention-module-split small { color: var(--muted); font-size: 7px; line-height: 1.35; }
.attention-overlap-note { margin: 0 0 10px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.attention-list { display: grid; gap: 5px; }
.central-visual, .composition-panel { display: flex; min-height: 100%; padding: 19px; flex-direction: column; }
.central-visual h2, .composition-panel h2, .trend-panel h2 { margin-top: 3px; font-size: 17px; }
.central-visual .executive-chart { display: block; width: 100%; }
.executive-chart { height: clamp(360px,28vw,460px); }
.executive-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.executive-chart text { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-anchor: middle; }
.executive-chart .chart-value { font-size: 10px; font-weight: 800; }
.executive-chart .incoming-value { fill: var(--petrol-700); }
.executive-chart .outgoing-value { fill: var(--purple-strong); }
.executive-chart .chart-period { fill: var(--muted); font-size: 11px; font-weight: 700; }
.executive-chart .chart-baseline { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.central-visual > p, .composition-panel > small { display: block; margin: 7px 0 0; color: var(--muted); font-size: 8px; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; color: var(--muted); font-size: 8px; }
.chart-legend span::before { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; content: ""; background: #35c8bd; }
.chart-legend .legend-out::before { background: #a57fd1; }
.reconciliation-executive-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.reconciliation-executive-summary > div { padding: 11px; border: 1px solid #c8ded7; border-radius: 12px; background: #f0f8f5; }
.reconciliation-executive-summary > div.blocked { border-color: #e0c7c1; background: #faf0ee; }
.reconciliation-executive-summary span, .reconciliation-executive-summary strong { display: block; }
.reconciliation-executive-summary span { color: var(--muted); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.reconciliation-executive-summary strong { margin-top: 5px; color: var(--petrol-950); font-size: 26px; line-height: 1; }
.reconciliation-owner-copy { margin: 10px 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.reconciliation-executive-list { display: grid; flex: 1 1 auto; grid-auto-rows: minmax(54px,1fr); gap: 6px; }
.reconciliation-executive-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--ivory-50); cursor: pointer; text-align: left; }
.reconciliation-executive-item:hover, .reconciliation-executive-item:focus-visible { border-color: #68a89a; background: #eef7f4; }
.reconciliation-executive-item span { min-width: 0; }
.reconciliation-executive-item strong, .reconciliation-executive-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reconciliation-executive-item strong { color: var(--petrol-900); font-size: 8px; }
.reconciliation-executive-item small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.reconciliation-executive-item > b { color: var(--petrol-950); font-size: 8px; white-space: nowrap; }
.reconciliation-executive-link { align-self: flex-start; margin-top: 11px; color: var(--petrol-700); font-size: 9px; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.cockpit-action { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--ivory-50); cursor: pointer; text-align: left; }
.cockpit-action:hover { border-color: #68a89a; background: #eef7f4; }
.cockpit-action span:nth-child(2) { min-width: 0; }
.cockpit-action strong, .cockpit-action small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cockpit-action strong { font-size: 9px; }
.cockpit-action small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.cockpit-action > b { color: var(--petrol-950); font-size: 17px; }
.action-state { padding: 3px 6px; border-radius: 6px; color: #072b30; background: #59d2c4; font-size: 7px; font-weight: 900; letter-spacing: .04em; }
.action-state.critical { color: #fff; background: #a76070; } .action-state.act { color: #282217; background: #d6b55d; } .action-state.check { color: #fff; background: #4e95c8; } .action-state.review { color: #fff; background: #806fa5; }
.trend-panel { margin-top: 14px; padding: 19px; }
.trend-panel > p { margin: 7px 0 0; color: var(--muted); font-size: 8px; }
.trend-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; color: var(--muted); font-size: 8px; }
.trend-legend span::before { display: inline-block; width: 18px; height: 3px; margin: 0 6px 2px 0; border-radius: 999px; content: ""; background: #2fbfb8; }
.trend-legend .trend-out::before { background: #9a78d0; }
.executive-trend { width: 100%; height: clamp(360px,26vw,440px); margin-top: 8px; }
.executive-trend svg { display: block; width: 100%; height: 100%; }
.executive-trend text { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.trend-grid-line { stroke: #e4e5de; stroke-width: 1; vector-effect: non-scaling-stroke; }
.trend-axis-value { fill: var(--muted); font-size: 8px; text-anchor: end; }
.trend-period { fill: var(--muted); font-size: 9px; font-weight: 700; text-anchor: middle; }
.trend-line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; vector-effect: non-scaling-stroke; }
.trend-line-in { stroke: #2fbfb8; }
.trend-line-out { stroke: #9a78d0; }
.trend-dot { fill: var(--paper); stroke-width: 3; vector-effect: non-scaling-stroke; }
.trend-dot-in { stroke: #2fbfb8; }
.trend-dot-out { stroke: #9a78d0; }
.source-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 9px; color: var(--muted); font-size: 8px; }
.source-strip span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.source-strip .cockpit-load-status { margin-left: auto; border-color: transparent; background: transparent; }
.cockpit-empty { margin: 0; color: var(--muted); font-size: 9px; }
.module-action-center { margin: 10px 0; padding: 13px; border: 1px solid #c8d9d4; border-radius: 9px; background: #f3f8f6; }
.module-action-center > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.module-action-center h2 { font-size: 17px; }
.module-action-center > header p:last-child { margin: 0; color: var(--muted); font-size: 9px; }
.module-action-center > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.module-action-center .cockpit-action { color: var(--ink); background: var(--paper); border-color: var(--line); }
.module-action-center .cockpit-action:hover { border-color: #68a89a; background: #eef7f4; }
.module-action-center .cockpit-action strong { color: var(--ink); }
.module-action-center .cockpit-action small { color: var(--muted); }
.module-action-center .cockpit-action > b { color: var(--petrol-950); }
.access-denied { max-width: 640px; margin: 12vh auto 0; padding: 34px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.access-denied p:not(.eyebrow) { color: var(--muted); }

.login-screen { display: grid; grid-template-columns: minmax(320px,.85fr) minmax(480px,1.15fr); min-height: 100vh; }
.login-editorial { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(34px,6vw,90px); color: #f5f2e9; background: var(--petrol-950); }
.login-editorial h1 { color: #fff; font-size: clamp(46px,6vw,78px); }
.login-editorial > p:not(.eyebrow) { max-width: 420px; margin: 18px 0 0; color: rgba(245,242,233,.7); font-size: 16px; }
.login-editorial footer { position: absolute; right: clamp(34px,6vw,90px); bottom: 36px; left: clamp(34px,6vw,90px); display: flex; justify-content: space-between; color: rgba(245,242,233,.5); font-size: 10px; letter-spacing: .12em; }
.login-brand { position: absolute; top: 34px; left: clamp(34px,6vw,90px); display: flex; align-items: center; gap: 12px; font-family: Georgia,serif; }
.login-side { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px,5vw,72px); background: var(--ivory-50); }
.login-wrap { width: 100%; max-width: 440px; margin: auto; }
.login-kicker { margin: 0 0 10px; color: #708179; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.login-card { padding: clamp(29px,4vw,44px); border: 1px solid rgba(92,106,97,.18); border-radius: 26px; background: var(--paper); box-shadow: 0 30px 82px rgba(25,47,43,.1); }
.login-card h2 { font-family: Georgia,"Times New Roman",serif; font-size: 32px; font-weight: 400; }
.login-sub { margin: 9px 0 28px; color: var(--muted); font-size: 13px; }
.login-card .field { margin-top: 15px; }
.login-footer { display: flex; justify-content: space-between; gap: 18px; width: 100%; max-width: 440px; margin: 24px auto 0; color: var(--muted); font-size: 10px; letter-spacing: .08em; }

@media (max-width: 1450px) {
  .kpi { padding-inline: 10px; }
  .kpi-value { font-size: clamp(16px,1.45vw,21px); }
}
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 210px minmax(0,1fr); }
  .sidebar { padding-inline: 14px; }
  .workspace { padding-inline: 18px; }
  .kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .filters-advanced { grid-template-columns: repeat(3,minmax(150px,1fr)); }
  .payable-head, .payable-row { grid-template-columns: minmax(135px,1.1fr) 85px minmax(145px,1.1fr) 90px 90px 90px 80px 46px; }
  .payable-head > :nth-child(5), .payable-row > :nth-child(5) { display: none; }
  .cockpit-command-grid { grid-template-columns: minmax(240px,.75fr) minmax(420px,1.25fr); }
  .composition-panel { grid-column: 1 / -1; }
  .reconciliation-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .reconciliation-card-body { grid-template-columns: 1fr 1fr; }
  .reconciliation-card-body > section:last-child { grid-column: 1 / -1; border-top: 1px solid #ecece6; border-left: 0; }
}
@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; top: 0; z-index: 19; width: 100%; height: auto; padding: 11px 16px; flex-direction: row; align-items: center; gap: 12px; }
  .brand { padding: 0; }
  .brand small { display: none; }
  .mobile-nav-toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 7px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; color: #fff; background: rgba(255,255,255,.07); cursor: pointer; font-size: 12px; }
  .main-nav { position: absolute; top: 100%; right: 12px; left: 12px; display: none; max-height: calc(100vh - 76px); padding: 10px; overflow-y: auto; border: 1px solid rgba(255,255,255,.14); border-radius: 0 0 12px 12px; background: var(--petrol-950); box-shadow: 0 20px 45px rgba(0,0,0,.25); }
  .main-nav.mobile-open { display: grid; }
  .nav-item { padding: 9px 10px; }
  .nav-item small { display: block; }
  .sidebar-foot { margin: 0; padding: 0 0 0 10px; border: 0; border-left: 1px solid rgba(255,255,255,.12); }
  .sidebar-pilot { display: none; }
  .sidebar-session-label, .sidebar-session > strong, .sidebar-session > small { display: none; }
  .logout-action { margin: 0; padding: 8px 4px; }
  .workspace { padding: 28px 22px 48px; }
  .glance-header { display: block; }
  .glance-actions { justify-content: flex-start; margin-top: 14px; }
  .filter-toolbar { grid-template-columns: 1fr; }
  .open-equation { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .open-equation > b { display: none; }
  .open-equation .open-result { grid-column: 1 / -1; }
  .login-screen { grid-template-columns: 1fr; }
  .receivable-scope { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .receivable-equation { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .receivable-equation > b { display: none; }
  .receivable-foundations { grid-template-columns: 1fr; }
  .login-editorial { min-height: 280px; }
  .login-editorial footer { display: none; }
  .executive-cockpit { margin: 0 -22px -48px; padding: 48px 22px 22px; }
  .cockpit-command-grid { grid-template-columns: 1fr; }
  .central-visual, .composition-panel { min-height: auto; }
  .composition-panel { grid-column: auto; }
  .exposure-list { grid-auto-rows: auto; }
}
@media (max-width: 780px) {
  .page-header, .workspace-header { display: block; }
  .page-actions, .version-card { margin-top: 17px; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .time-grid { grid-template-columns: 1fr; }
  .time-card { border-top: 1px solid var(--line); border-left: 0; }
  .time-card:first-child { border-top: 0; }
  .forecast-heading { align-items: flex-start; flex-direction: column; }
  .filters-primary, .filters-advanced { grid-template-columns: 1fr; }
  .payable-head { display: none; }
  .panel { border: 0; background: transparent; box-shadow: none; }
  .payable-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .payable-row { display: grid; grid-template-columns: 1fr; gap: 8px; min-height: 0; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
  .payable-row > span:not(.payable-identity):not(.status-pill):not(.row-action) { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 8px; text-align: left; }
  .payable-row > span:not(.payable-identity):not(.status-pill):not(.row-action)::before { content: attr(data-label); color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: 1; }
  .money-trio { grid-template-columns: 1fr; }
  .information-boundary-detail { grid-template-columns: 1fr; }
  .receivable-filters { grid-template-columns: 1fr; }
  .receivable-more-filters > div { grid-template-columns: 1fr; }
  .receivable-head { display: none; }
  .receivable-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .receivable-row { display: grid; grid-template-columns: 1fr; gap: 8px; border: 1px solid var(--line); border-radius: 9px; }
  .receivable-row > span:not(.payable-identity):not(.status-pill):not(.row-action) { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 8px; }
  .receivable-row > span:not(.payable-identity):not(.status-pill):not(.row-action)::before { content: attr(data-label); color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
  .receipt-limit-foundation { grid-template-columns: 1fr; }
  .due-date-detail { grid-template-columns: 1fr; }
  .receipt-limit-foundation > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .future-shell-card { grid-template-columns: 1fr; padding: 22px; }
  .cockpit-header { display: grid; }
  .cockpit-context { justify-items: start; }
  .module-action-center > div { grid-template-columns: 1fr; }
  table.dense thead { display: none; }
  table.dense, table.dense tbody, table.dense tr, table.dense td { display: block; width: 100%; }
  table.dense tbody td { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 8px; border-top: 0; }
  table.dense tbody td::before { content: attr(data-label); color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
  table.dense tbody tr { border-top: 1px solid #e9e7df; }
  .reconciliation-toolbar, .reconciliation-card > footer { align-items: stretch; flex-direction: column; }
  .reconciliation-toolbar label { flex-basis: auto; }
  .reconciliation-card-body { grid-template-columns: 1fr; }
  .reconciliation-card-body > section + section, .reconciliation-card-body > section:last-child { grid-column: auto; border-top: 1px solid #ecece6; border-left: 0; }
  .reconciliation-card-body h3 { overflow-wrap: anywhere; white-space: normal; }
  .reconciliation-values > div { grid-template-columns: minmax(0,1fr); }
  .reconciliation-values dd { text-align: left; }
}
@media (max-width: 600px) {
  .sidebar { gap: 9px; padding-inline: 12px; }
  .brand > span:last-child { display: none; }
  .brand-mark { width: 35px; height: 35px; }
  .main-nav { gap: 2px; }
  .nav-item { padding: 7px 8px; font-size: 12px; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .payable-list { grid-template-columns: 1fr; }
  .glance-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .company-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scope-coverage { display: grid; }
  .financial-layer-tabs { grid-template-columns: 1fr; }
  .open-equation { grid-template-columns: 1fr; }
  .open-equation .open-result { grid-column: auto; }
  .header-filter select, .header-filter input { width: 100%; min-width: 0; }
  .drawer { width: 100vw; max-width: 100%; padding-inline: 22px; }
  .login-editorial { display: none; }
  .login-side { min-height: 100vh; padding: 22px 16px; }
  .login-card { padding: 30px 22px; }
  .receivable-scope, .receivable-kpis, .receivable-list, .receivable-money { grid-template-columns: 1fr; }
  .receivable-equation { grid-template-columns: 1fr; }
  .cockpit-hero-kpis, .cockpit-support-kpis { grid-template-columns: 1fr; }
  .cockpit-kpi { min-height: 102px; padding: 11px; }
  .cockpit-kpi strong { font-size: 18px; }
  .attention-module-split { grid-template-columns: 1fr; }
  .chart-legend { justify-content: flex-start; }
  .executive-chart .chart-value { font-size: 7px; }
  .executive-chart, .executive-trend { height: 340px; }
  .trend-panel > header { display: grid; }
  .trend-legend { justify-content: flex-start; }
  .reconciliation-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reconciliation-card > header { align-items: flex-start; }
  .reconciliation-source-version { justify-items: start; margin-top: 12px; }
  .reconciliation-preview-grid, .reconciliation-preview-actions { grid-template-columns: 1fr; }
  .reconciliation-audit dl > div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
