/* Camada visual independente: preserva o código e as regras do aplicativo. */
:root{--green:#137b5c;--ink:#193a30;--muted:#647b70;--line:#e0e9e3;--bg:#f4f7f3;color-scheme:light}
body{font-family:'DM Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
.portal-header{height:76px;padding:0 clamp(20px,4vw,64px);display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #e3eae5;gap:16px}
.portal-header>a:first-child{display:flex;align-items:center;gap:0;text-decoration:none;font:800 23px 'Manrope',sans-serif;letter-spacing:-1px;color:#173e32}.portal-header img{margin-right:10px}.portal-header a span{font-weight:500}.portal-header b{color:#17835f}.portal-header>a:last-child{font-size:13px;text-decoration:none;color:#557064}.portal-header>a:last-child span{margin-left:8px}
body:has(.app-shell)>.portal-header{display:none}
.commercial-access{min-height:calc(100dvh - 76px);max-width:1500px;margin:auto;background:radial-gradient(ellipse at 20% 45%,#e4edde 0,transparent 65%);padding:65px clamp(24px,6vw,100px);gap:clamp(40px,8vw,130px);grid-template-columns:1fr 1fr;font-family:'DM Sans',system-ui,sans-serif;align-items:center;position:relative}
.commercial-access:before{content:'Sua rotina mais leve.\A Seu negócio mais forte.';white-space:pre-line;font:750 clamp(36px,4vw,58px)/1.15 'Manrope',sans-serif;letter-spacing:-2.4px;color:#173f31;max-width:560px;grid-column:1;grid-row:1;padding-bottom:160px}
.commercial-access:after{content:'Vendas, despesas e operação em um só lugar.\A Entre para cuidar do seu negócio com mais clareza.';white-space:pre-line;color:#567163;line-height:1.8;font-size:17px;grid-column:1;grid-row:1;align-self:center;padding-top:130px;max-width:500px;pointer-events:none}
.access-card{grid-column:2;grid-row:1;max-width:470px;border-radius:24px;padding:38px;border:1px solid #dce5dd;box-shadow:0 24px 80px #173e3110;background:#fff;z-index:1}
.access-card h1{font:750 30px/1.2 'Manrope',sans-serif;letter-spacing:-1px}.access-brand{font-family:'Manrope',sans-serif}.access-card .access-submit{background:#145b43;border-radius:10px;min-height:49px;box-shadow:0 4px 10px #145b4318}.access-card input{border-color:#c8d7cd;border-radius:10px}.access-card input:focus{border-color:#17734f}.access-notice{color:#315d42;background:#f0f6e9;border:1px solid #dce9cf}.access-card nav button{font-size:14px}.access-footnote{line-height:1.7!important}
.sidebar{background:#123c32;border:0;color:#fff;padding-top:30px}.sidebar .brand{color:#fff}.sidebar .brand-icon{background:#ffffff12;color:#d6f6a7}.sidebar .brand-dot{color:#c5e996}.sidebar .workspace{border-color:#ffffff19;background:#ffffff07}.sidebar .workspace-avatar{background:#d6f6a7;color:#25452c}.sidebar .workspace small,.sidebar .profile small{color:#abc1b7}.sidebar .nav-label{color:#93ad9f}.sidebar .nav-item{color:#d0ddd4;font-size:13px;min-height:46px}.sidebar .nav-item:hover{background:#ffffff0b}.sidebar .nav-item.active{background:#d6f6a7;color:#214431}.sidebar .nav-item.active:before{background:#d6f6a7}.sidebar .count{background:#ffffff16;color:inherit}.sidebar .nav-item.active .count{background:#163e3212}.sidebar .tip{background:#ffffff08;border-color:#ffffff12}.sidebar .tip>span,.sidebar .tip p{color:#adc4b7}.sidebar .tip strong{color:#e2ecdf}.sidebar .tip-chart{color:#b9da98}.sidebar .profile{border-color:#ffffff17}.sidebar .profile-avatar{background:#ffffff14;color:#d9edc4}
.topbar{height:80px;background:#ffffffd9}.topbar>span,.private{font-size:12px}.page-heading{margin-bottom:30px}.page-heading h1{font-size:clamp(27px,2.4vw,37px);letter-spacing:-1.4px}.eyebrow{font-size:10px;letter-spacing:1.6px;color:#67816f}.subtitle{font-size:14px;line-height:1.6;color:#667e6d}.primary,.outline,.danger{border-radius:9px;min-height:44px;font-size:12px}.primary{background:#146046;box-shadow:0 4px 12px #15583f12}.stat{border-radius:16px;padding:22px;border-color:#e0e8df;box-shadow:0 3px 7px #173e3103}.stat-top{font-size:12px;color:#587262}.stat>strong{font-size:clamp(23px,2vw,31px);font-variant-numeric:tabular-nums}.stat small{font-size:11px;line-height:1.5;color:#6e8374}.stat.balance{background:linear-gradient(125deg,#174f3b,#28674b);border:0}.panel{border-radius:16px;border-color:#e0e8df;box-shadow:0 4px 12px #173e3103}.panel h2{font-size:16px}.panel p{font-size:12px;line-height:1.6;color:#6d8173}.demo-banner{border-radius:10px;font-size:12px}.demo-banner button{font-size:12px}.period-picker input{font-size:13px}.period-row>span{font-size:12px}.export{font-size:12px}.ops-card{background:#fcfdfb;border-color:#e0e8df}.ops-tabs button{border-radius:9px}.ops-summary article{box-shadow:0 4px 10px #173e3103}.modal,.ops-modal{box-shadow:0 32px 100px #102a3230;border-radius:20px}.table-wrap th{font-size:11px}.table-wrap td{font-size:13px}.toast{border-radius:12px}button,a,input,select,summary{touch-action:manipulation}
@media(min-width:1800px){.main-wrap main{padding-top:52px}.stats{gap:22px}.charts{gap:24px}.stat{padding:26px}.stat>strong{font-size:34px}}
@media(max-width:1000px){.commercial-access{gap:35px;padding:44px 28px}.commercial-access:before{font-size:40px}.commercial-access:after{font-size:15px}.access-card{padding:28px}.stats{gap:10px}.stat{padding:17px 13px}.stat small{font-size:10px}}
@media(max-width:760px){.commercial-access{display:flex;min-height:calc(100dvh - 70px);padding:30px 16px;background:#f1f5ed;align-items:flex-start;justify-content:center}.commercial-access:before,.commercial-access:after{display:none}.portal-header{height:70px;padding:0 20px}.portal-header>a:first-child{font-size:21px}.portal-header>a:last-child{font-size:12px}.access-card{padding:28px 24px;border-radius:20px}.stat{border-radius:13px}.page-heading .subtitle{font-size:13px}.primary,.outline,.danger{min-height:44px}.panel h2{font-size:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.commercial-access:before,.commercial-access:after{justify-self:start}.demo-preview>.portal-header{display:flex!important;position:sticky;top:0;z-index:30}.demo-preview .sidebar{top:76px;overflow-y:auto}.demo-preview .portal-header .demo-access{background:#d6f5ad;color:#204d32;padding:10px 14px;border-radius:8px;font-size:12px;font-weight:700}.demo-preview .app-shell{min-height:calc(100vh - 76px)}.sidebar{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#507565 #123c32}.sidebar .sidebar-bottom{padding-top:20px}.sidebar .tip{margin-top:10px;padding:15px}.sidebar .tip-chart{font-size:22px;margin-top:7px}.sidebar .profile{padding:16px 0}.sidebar .workspace{margin:26px 0 22px}@media(max-width:760px){.demo-preview .sidebar{top:70px}.demo-preview .portal-header .demo-access{font-size:11px;padding:10px}.demo-preview .portal-header{gap:10px}}

.operations>section.panel{padding:24px}.demo-preview main>section.panel{padding:24px}.daily-overview{border-color:#e0e8df;border-radius:18px;box-shadow:0 4px 12px #173e3103}.daily-grid article{border-radius:13px;border-color:#e3eae0}.daily-heading h2{font-size:18px}.daily-heading p,.daily-grid span{font-size:12px}.daily-grid small{font-size:11px;line-height:1.6}.daily-grid strong{font-family:Manrope,system-ui,sans-serif;letter-spacing:-.7px}.quick-action{border-radius:13px;border-color:#e0e8df;min-height:83px}.quick-action strong{font-size:14px}.quick-action small{font-size:12px}.ledger-card{border-radius:14px;border-color:#e0e8df}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  transform: translateY(calc(-100% - 1rem));
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #123c32;
  color: #fff;
}
.skip-link:focus {
  transform: none;
}
body :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #123c32;
}

/* Dashboard and account surfaces */
:root {
  --cc-canvas: #f4f6fa;
  --cc-text: #182235;
  --cc-muted: #52627a;
  --cc-border: #dce3ee;
  --cc-brand: #075c4f;
  --cc-sidebar: #111b2d;
}

body, .app-shell, .main-wrap {
  background: var(--cc-canvas);
  color: var(--cc-text);
  font-family: 'DM Sans', system-ui, sans-serif;
}
.main-wrap {
  min-width: 0;
}
.main-wrap main { min-width: 0; width: 100%; box-sizing: border-box; }

/* Keep the movements panel inside the available screen area. */
.app-shell .ledger-panel { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.ledger-panel .table-header { flex-wrap: wrap; gap: 12px; padding: 16px 18px 12px; }
.ledger-panel .ledger-home-empty { margin: 0; padding: 0 18px 16px; color: #455e7c; font-size: .85rem; }
.ledger-panel .table-tools { flex-wrap: wrap; gap: 10px; padding: 0 18px 14px; min-width: 0; }
.ledger-panel .table-tools .search { flex: 1 1 230px; width: auto; max-width: none; min-width: 0; }
.ledger-panel .table-tools > select { flex: 1 1 170px; max-width: 100%; margin-left: 0; }
.ledger-panel .ledger-origin-filter, .ledger-panel .ledger-clear-filters { flex: 0 0 auto; min-height: 42px; }
.ledger-panel .ledger-origin-filter[aria-pressed="true"] { background: #edf2ff; border-color: #315bd6; color: #2448a4; }
.ledger-panel .ledger-summary { margin: 0 18px 14px; padding: 12px 14px; border: 1px solid #dfe7f2; border-radius: 12px; background: #f7f9fc; }
.ledger-panel .ledger-summary h3 { margin: 0 0 8px; font-size: .8125rem; color: #24364f; }
.ledger-panel .ledger-summary dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 134px), 1fr)); gap: 8px 16px; margin: 0; }
.ledger-panel .ledger-summary dt { font-size: .75rem; color: #51677f; }
.ledger-panel .ledger-summary dd { margin: 2px 0 0; font-size: .9375rem; font-weight: 700; overflow-wrap: anywhere; color: #244377; }
.ledger-panel .ledger-summary .ledger-total-income { color: #17644c; }
.ledger-panel .ledger-summary .ledger-total-expense { color: #922d39; }
.ledger-panel .ledger-period-filter { flex: 0 0 auto; min-height: 42px; max-width: 100%; white-space: normal; }
.ledger-panel .ledger-period-filter[aria-expanded="true"], .ledger-panel .ledger-period-filter.has-range { background: #edf2ff; border-color: #315bd6; color: #2448a4; }
.ledger-panel .ledger-date-range { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin: 0 18px 14px; padding: 12px 14px; border: 1px solid #dfe7f2; border-radius: 12px; background: #f7f9fc; }
.ledger-panel .ledger-date-range label { display: grid; gap: 5px; flex: 1 1 150px; min-width: 0; font-size: .8125rem; color: #354c67; }
.ledger-panel .ledger-date-range input, .ledger-panel .ledger-date-range select { width: 100%; box-sizing: border-box; min-height: 40px; padding: 6px 8px; border: 1px solid #cbd7e8; border-radius: 8px; background: #fff; color: #263953; }
.ledger-panel .ledger-date-range button { min-height: 40px; }
.ledger-panel .ledger-date-range p { flex: 1 0 100%; margin: 0; color: #51677f; font-size: .75rem; }
.ledger-panel > .table-scroll { width: 100%; max-width: 100%; min-width: 0; max-height: min(420px,55vh); max-height: min(420px,55dvh); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.ledger-panel > .table-scroll table { width: 100%; table-layout: fixed; white-space: normal; }
.ledger-panel > .table-scroll th, .ledger-panel > .table-scroll td { padding: 10px 8px; overflow-wrap: anywhere; }
.ledger-panel > .table-scroll th { position: sticky; top: 0; z-index: 1; background: #f5f7fb; font-size: .6875rem; line-height: 1.5; }
.ledger-panel > .table-scroll td { font-size: .8125rem; line-height: 1.5; }
.ledger-panel > .table-scroll table:not(:has(.selection-column)) th:first-child { width: 30%; }
.ledger-panel > .table-scroll table:not(:has(.selection-column)) th:nth-child(2) { width: 11%; }
.ledger-panel > .table-scroll table:not(:has(.selection-column)) th:nth-child(3) { width: 12%; }
.ledger-panel > .table-scroll table:not(:has(.selection-column)) th:nth-child(4) { width: 17%; }
.ledger-panel > .table-scroll table:not(:has(.selection-column)) th:nth-child(5) { width: 10%; }
.ledger-panel > .table-scroll table:not(:has(.selection-column)) th:nth-child(6) { width: 11%; }
.ledger-panel > .table-scroll table:not(:has(.selection-column)) th:nth-child(7) { width: 9%; }
.ledger-panel > .table-scroll table:has(.selection-column) th:nth-child(1) { width: 5%; }
.ledger-panel > .table-scroll table:has(.selection-column) th:nth-child(2) { width: 25%; }
.ledger-panel > .table-scroll table:has(.selection-column) th:nth-child(3) { width: 11%; }
.ledger-panel > .table-scroll table:has(.selection-column) th:nth-child(4) { width: 12%; }
.ledger-panel > .table-scroll table:has(.selection-column) th:nth-child(5) { width: 17%; }
.ledger-panel > .table-scroll table:has(.selection-column) th:nth-child(6) { width: 10%; }
.ledger-panel > .table-scroll table:has(.selection-column) th:nth-child(7) { width: 11%; }
.ledger-panel > .table-scroll table:has(.selection-column) th:nth-child(8) { width: 9%; }
.ledger-panel .description { min-width: 0; align-items: flex-start; }
.ledger-panel .description > div { min-width: 0; }
.ledger-panel .description strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.ledger-panel .description .entry-icon { flex: 0 0 28px; width: 28px; height: 28px; }
.ledger-panel .category-tag, .ledger-panel .status { white-space: normal; overflow-wrap: anywhere; }
.ledger-panel .actions { flex-wrap: wrap; gap: 4px; }
.ledger-panel > .table-scroll .actions button { min-width: 28px; min-height: 32px; padding: 4px; }
.ledger-panel > .mobile-ledger { display: none; }
.ledger-panel .bulk-actions { min-width: 0; max-width: 100%; flex-wrap: wrap; }
@media(max-width:1100px) {
  .ledger-panel > .table-scroll { display: none; }
  .ledger-panel > .mobile-ledger { display: block; max-height: min(420px,55vh); max-height: min(420px,55dvh); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
  .ledger-panel .ledger-card { min-width: 0; padding: 14px 16px; }
  .ledger-panel .ledger-main { min-width: 0; flex-wrap: wrap; }
  .ledger-panel .ledger-main > div { flex: 1 1 140px; }
  .ledger-panel .ledger-bottom { flex-wrap: wrap; }
}
.main-wrap main {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3.2vw, 52px);
}
.app-shell .sidebar {
  background: var(--cc-sidebar);
  scrollbar-color: #4f607b var(--cc-sidebar);
}
.app-shell .sidebar .workspace {
  background: #1d2a42;
  border-color: #34435c;
  border-radius: 14px;
}
.app-shell .sidebar .nav-item {
  color: #dae3f2;
  border-radius: 10px;
  font-size: .875rem;
}
.app-shell .sidebar .nav-item:hover {
  background: #23314c;
}
.app-shell .sidebar .nav-item.active {
  background: #c1f6e2;
  color: #103e36;
}
.app-shell .sidebar .nav-item.active::before {
  background: transparent;
}
.app-shell .topbar, .portal-header {
  background: #fff;
  border-bottom: 1px solid var(--cc-border);
}
.app-shell .page-heading h1 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.055em;
  color: var(--cc-text);
}
.app-shell .subtitle, .app-shell .panel p, .app-shell .stat small {
  color: var(--cc-muted);
}
.app-shell .stats, .app-shell .charts, .app-shell .quick-actions {
  gap: clamp(12px, 1.5vw, 22px);
}
.app-shell .stat, .app-shell .panel, .app-shell .daily-overview,
.app-shell .quick-action, .app-shell .ledger-card {
  border: 1px solid var(--cc-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 5px #1b31550a;
}
.app-shell .stat.balance {
  background: linear-gradient(125deg, #104437, #076659);
  color: #fff;
  border-color: transparent;
}
.app-shell .stat.balance :is(.stat-top, small, strong) {
  color: #fff;
}
.app-shell .stat > strong, .app-shell .daily-grid strong {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
}
.app-shell .panel h2, .app-shell .daily-heading h2 {
  font-size: 1.125rem;
  letter-spacing: -.025em;
}
.app-shell .quick-action {
  text-align: left;
  min-width: 0;
  min-height: 88px;
  padding: 14px 16px;
  transition: background-color .15s, border-color .15s;
}
.app-shell .quick-action:not(:disabled):hover {
  background: #edf9f5;
  border-color: #6bb6a4;
}
.app-shell .quick-action strong {
  color: var(--cc-text);
  font-size: .9375rem;
}
.app-shell .quick-action small {
  color: var(--cc-muted);
}
.app-shell .primary, .access-card .access-submit {
  background: var(--cc-brand);
  color: #fff;
  border-radius: 12px;
}
.app-shell .outline {
  border-radius: 12px;
}
.app-shell :is(.primary,.outline,.danger) {
  font-size: .875rem;
}
.app-shell .cc-entry-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  background: var(--cc-sidebar);
  color: #fff;
}
.app-shell .cc-entry-feedback button {
  min-height: 40px;
  padding-inline: 12px;
  border: 1px solid #65738b;
  border-radius: 9px;
  background: #26354e;
  color: #fff;
}
.commercial-access {
  background: radial-gradient(ellipse at 20% 40%, #d9f3eb, transparent 62%), var(--cc-canvas);
}
.commercial-access .access-card {
  border: 1px solid var(--cc-border);
  border-radius: 24px;
  box-shadow: 0 18px 52px #1b315512;
}
@media (max-width: 760px) {
  .app-shell .page-heading { margin-bottom: 20px; }
  .app-shell .stat, .app-shell .panel, .app-shell .daily-overview {
    border-radius: 16px;
  }
  .app-shell .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .quick-action { padding: 10px; gap: 8px; border-radius: 14px; }
  .app-shell .quick-action > svg { display: none; }
  .app-shell .quick-action > span { flex-shrink: 0; }
  .app-shell .cc-mobile-bar {
    background: #fff;
    border-top: 1px solid var(--cc-border);
    box-shadow: 0 -6px 20px #11234112;
  }
  .app-shell .cc-entry-feedback { bottom: 84px; }
}
@media (max-width: 360px) {
  .app-shell .quick-actions { grid-template-columns: minmax(0, 1fr); }
}

/* Visual do painel */
:root {
  --cc-canvas: #f4f6fa;
  --cc-text: #182230;
  --cc-muted: #475467;
  --cc-border: #e1e6ee;
  --cc-brand: #2451a6;
  --cc-sidebar: #fff;
}
.app-shell .sidebar {
  color: var(--cc-text);
  border-right: 1px solid var(--cc-border);
  scrollbar-color: #cbd3df #fff;
}
.app-shell .sidebar .brand, .app-shell .sidebar .workspace strong, .app-shell .sidebar .profile strong { color: var(--cc-text); }
.app-shell .sidebar .workspace { background: #f5f7fa; border-color: var(--cc-border); }
.app-shell .sidebar :is(.brand-icon,.workspace-avatar,.profile-avatar) { background: #e7effb; color: #254f98; }
.app-shell .sidebar .brand-dot, .app-shell .page-heading .heading-dot, .portal-header b { color: var(--cc-brand); }
.app-shell .sidebar :is(.nav-item,.nav-label,.workspace small,.profile small) { color: var(--cc-muted); }
.app-shell .sidebar .nav-item:hover { background: #f1f4f8; }
.app-shell .sidebar .nav-item.active { background: #e9effa; color: #214982; }
.app-shell .sidebar .count { background: #eef1f6; color: #38475d; }
.app-shell .sidebar .tip { display: none; }
.app-shell .sidebar .profile { border-color: var(--cc-border); }
.app-shell .topbar { height: 64px; }
.app-shell .page-heading { margin-bottom: 20px; }
.app-shell .page-heading h1 { font-size: clamp(28px, 3.3vw, 42px); letter-spacing: -.045em; }
.app-shell :is(.stat,.panel,.quick-action,.daily-overview,.ledger-card) { border-radius: 13px; box-shadow: none; }
.app-shell .stats { grid-template-columns: 1.2fr repeat(3,minmax(0,1fr)); }
.app-shell .stat > strong { overflow-wrap: anywhere; }
.app-shell .stat.balance { background: #253247; border-color: transparent; }
.app-shell .stat.balance .stat-icon { background: #ffffff24; color: #fff; }
.app-shell .stat-icon.green { background: #e7f4ed; color: #255f42; }
.app-shell .stat-icon.coral { background: #f9ece8; color: #8c3c2e; }
.app-shell .stat-icon.purple { background: #e9effa; color: #2451a6; }
.app-shell .quick-action { min-height: 74px; }
.app-shell .quick-action:not(:disabled):hover { background: #f3f7ff; border-color: #a5badb; }
.app-shell .quick-action > span.green { background: #e7f4ed; color: #255f42; }
.app-shell .quick-action > span.coral { background: #f9ece8; color: #8c3c2e; }
.app-shell .period-mode button[aria-pressed="true"] { background: #e7effb; color: #214982; }
.app-shell .due-banner { background: #fff7e8; color: #673e18; border-color: #eedbb9; }
.app-shell .due-banner small { color: #69482d; }
.app-shell .due-banner button { color: #244d91; }
.app-shell .cc-entry-feedback { background: #253247; }
.app-shell .cc-start-card { background: #eef3fb; border-color: #dde6f4; }
.commercial-access { background: #eff3f9; }
.commercial-access::before { content: 'Acesse seu Conta Certa'; color: #253247; }
.commercial-access::after { content: 'Vendas, despesas e cobranças em um só lugar.'; color: #475467; }
.access-card input:focus { border-color: var(--cc-brand); }
.demo-preview .portal-header .demo-access { background: #e9effa; color: #214982; }
.app-shell .demo-banner { background: #eef3fb; border-color: #dde6f4; color: #3d4f69; }
.app-shell .cc-mobile-bar .cc-mobile-add { background: var(--cc-brand); color: #fff; }
@media (max-width: 1150px) {
  .app-shell .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .app-shell .topbar { height: 60px; }
  .app-shell .stat { padding: 14px; }
  .app-shell .stat > strong { font-size: clamp(19px,5vw,26px); }
  .app-shell .period-picker input { width: 145px; min-width: 0; }
  .app-shell .period-picker > svg { display: none; }
  .app-shell .cc-mobile-bar button.active { background: #e9effa; color: #214982; }
}
.app-shell .sidebar .brand-icon { background: transparent; }
.app-shell .cc-manual-preview { background: #eef3fb; border-color: #dde6f4; }
.cc-whatsapp-queue[hidden] { display: none; }
.cc-whatsapp-queue textarea { width: 100%; resize: vertical; }
.cc-fiado-contact { display: grid; justify-items: start; gap: 4px; margin-top: 8px; }
.cc-fiado-contact .outline { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; white-space: nowrap; }
.fiado-customers { margin-bottom: 16px; }
.panel.loan-manager { margin-bottom: 20px; padding: 24px; border-radius: 18px; }
.loan-heading, .loan-tools, .loan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.loan-heading { justify-content: space-between; }
.loan-heading h2, .loan-detail h3 { margin: 0; color: #213d66; }
.loan-heading p { margin: 6px 0 0; color: #4c627c; font-size: 13px; }
.loan-basis { color: #4c627c; font-size: 12px; line-height: 1.6; }
.loan-stats { margin: 12px 0; }
.loan-manager > dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.loan-manager > dl div { padding: 12px; border: 1px solid #dce5f2; border-radius: 10px; background: #f4f7fc; min-width: 0; }
.loan-manager dt { color: #4c627c; font-size: 12px; }
.loan-manager dd { margin: 5px 0 0; color: #213d66; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.loan-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.loan-manager fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.loan-manager label { display: grid; gap: 6px; min-width: 0; margin: 0; color: #435a76; font-size: 12px; }
.loan-manager input, .loan-manager select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 10px; border: 1px solid #c8d6e8; border-radius: 9px; background: #fff; color: #243954; font: inherit; font-size: 14px; }
.loan-manager button { min-height: 44px; }
.loan-form { margin: 16px 0; padding: 16px; border: 1px solid #cbd9ee; border-radius: 12px; background: #f9fbfe; }
.loan-form h3, .loan-form h4 { margin-top: 0; color: #213d66; }
.loan-preview { padding: 12px; margin-top: 12px; border-radius: 9px; background: #eaf1fc; color: #243f68; }
.loan-preview p { margin-bottom: 0; font-size: 13px; }
.loan-tools { align-items: end; margin: 16px 0 12px; }
.loan-tools label { flex: 1 1 200px; }
.loan-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.app-shell .loan-card { display: flex; flex-direction: column; align-items: start; gap: 7px; padding: 14px; border: 1px solid #d1ddec; border-radius: 11px; background: #fff; color: #243954; text-align: left; font: inherit; cursor: pointer; overflow-wrap: anywhere; min-width: 0; white-space: normal; }
.app-shell .loan-card[aria-pressed="true"] { border-color: #345ba5; background: #eef3fc; box-shadow: inset 0 0 0 1px #345ba5; }
.loan-card span { font-size: 21px; font-weight: 750; }
.loan-card small { color: #52647d; font-size: 12px; }
.loan-card .loan-status { padding: 5px 8px; border-radius: 7px; background: #edf2fc; color: #2f507f; font-size: 12px; font-weight: 650; }
.loan-card .loan-status-overdue { background: #fff0ed; color: #9a382b; }
.loan-card .loan-status-settled { background: #f0f2f6; color: #4d5b70; }
.loan-attention { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.app-shell .loan-attention-card { display: grid; align-content: start; gap: 7px; padding: 14px; text-align: left; border: 1px solid #d4deee; border-radius: 11px; background: #fff; color: #28456c; font: inherit; cursor: pointer; min-width: 0; white-space: normal; }
.loan-attention-card span { font-size: 12px; }
.loan-attention-card strong { font-size: 17px; }
.loan-attention-card small { font-size: 12px; color: #52647d; overflow-wrap: anywhere; }
.app-shell .loan-attention-card[aria-pressed="true"] { background: #edf3ff; border-color: #345ba5; box-shadow: inset 0 0 0 1px #345ba5; }
.loan-manager button:focus-visible, .loan-manager input:focus-visible, .loan-manager select:focus-visible { outline: 2px solid #345ba5; outline-offset: 3px; }
.loan-date-range { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 12px; padding: 14px; background: #f4f7fc; border-radius: 10px; }
.loan-date-range label { flex: 1 1 180px; }
.loan-date-range p { margin: 0 0 10px; color: #4c627c; font-size: 12px; }
.loan-results, .loan-detail-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0; }
.loan-results p { margin: 0; color: #4c627c; font-size: 12px; }
.loan-detail-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.loan-detail-totals div { padding: 12px; background: #f4f7fc; border: 1px solid #dce5f2; border-radius: 10px; min-width: 0; }
.loan-detail-totals dd { font-size: 18px; }
.loan-next-interest { padding: 12px 14px; border-left: 3px solid #345ba5; background: #edf3ff; border-radius: 0 8px 8px 0; color: #28456c; font-size: 14px; line-height: 1.6; }
@media (max-width: 560px) {
  .panel.loan-manager { padding: 16px; }
  .loan-attention { grid-template-columns: 1fr; gap: 8px; }
  .app-shell .loan-attention-card { grid-template-columns: 1fr auto; align-items: center; padding: 12px; }
  .loan-attention-card strong { font-size: 15px; }
  .loan-attention-card small { grid-column: 1 / -1; }
  .loan-detail-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.loan-detail { margin-top: 16px; border-top: 1px solid #dce5f2; padding-top: 16px; }
.loan-detail-balance { display: block; color: #213d66; font-size: 20px; overflow-wrap: anywhere; }
.loan-statement { margin: 14px 0; }
.loan-statement .loan-actions { margin-bottom: 10px; }
.loan-statement .loan-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid #c8d6e8; border-radius: 9px; text-decoration: none; font-weight: 600; }
.loan-statement .loan-actions a.primary { color: #fff; background: #3455ad; border-color: #3455ad; }
.loan-statement .loan-actions a.outline { color: #243954; background: #fff; }
.loan-statement iframe { margin-top: 12px; }
.loan-document { margin: 20px 0; padding: 18px; border: 1px solid #cfdbed; border-radius: 12px; background: #f8faff; scroll-margin-top: 100px; }
.loan-document-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.loan-document-heading h4 { margin: 0; color: #213d66; font-size: 16px; }
.loan-document-heading p { margin: 6px 0; color: #4c627c; font-size: 12px; line-height: 1.6; }
.loan-document-identity { margin: 12px 0; }
.loan-document-identity summary { min-height: 44px; align-content: center; cursor: pointer; color: #28456c; font-size: 13px; font-weight: 600; }
.loan-document-identity .loan-fields { margin: 10px 0; }
.loan-document-note { padding: 10px 12px; background: #fff8ed; border-radius: 8px; color: #755122; font-size: 12px; line-height: 1.6; }
.loan-document .loan-actions a { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 9px; min-height: 44px; text-decoration: none; background: #3455ad; color: #fff; font-size: 13px; font-weight: 600; }
.loan-document-preview { display: block; width: 100%; height: 850px; margin-top: 14px; border: 1px solid #d5dfed; border-radius: 10px; background: #fff; }
@media(max-width:560px) { .loan-document { padding: 12px; } .loan-document-preview { height: 720px; } .loan-document .loan-actions a { width: 100%; text-align: center; white-space: normal; } }
.loan-history { list-style: none; margin: 12px 0; padding: 0; max-height: 420px; overflow-y: auto; }
.loan-history li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #e2e9f3; font-size: 13px; }
.loan-history li > div { min-width: 0; overflow-wrap: anywhere; }
.loan-history li > div:last-child { text-align: right; }
.loan-history small { display: block; margin-top: 4px; color: #52647d; }
@media (max-width: 760px) { .loan-manager > dl, .loan-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .loan-fields, .loan-list { grid-template-columns: 1fr; }
  .loan-actions button, .loan-heading > button { flex: 1 1 150px; }
  .loan-manager > dl { grid-template-columns: 1fr 1fr; }
  .loan-manager dd { font-size: 17px; }
}
.stock-overview { margin-bottom: 16px; }
.stock-overview h2 { margin: 0; color: #213d66; }
.stock-overview-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 10px; margin: 14px 0 10px; }
.stock-overview-stats div { min-width: 0; padding: 14px; border: 1px solid #dce5f2; border-radius: 10px; background: #f4f7fc; }
.stock-overview-stats dt { font-size: 12px; color: #4c627c; }
.stock-overview-stats dd { margin: 6px 0 0; font-size: 20px; font-weight: 700; color: #213d66; overflow-wrap: anywhere; }
.stock-overview-filtered { margin-top: 16px; }
.stock-overview-filtered h3 { margin: 0; color: #213d66; font-size: 16px; }
.stock-overview-basis { color: #4c627c; font-size: 12px; line-height: 1.6; }
.stock-overview summary { min-height: 44px; align-content: center; cursor: pointer; font-weight: 600; color: #213d66; }
.stock-overview-warning { padding: 10px 12px; border-radius: 8px; background: #fff7ed; color: #855025; font-size: 13px; }
.stock-overview-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 10px; }
.stock-overview-tools label { display: grid; gap: 5px; flex: 1 1 190px; min-width: 0; margin: 0; font-size: 12px; color: #435a76; }
.stock-overview-tools input, .stock-overview-tools select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #d1dce9; border-radius: 9px; background: #fff; color: #243954; font: inherit; font-size: 14px; }
.stock-overview-tools button, .stock-overview-pages button, .stock-overview-list button { min-height: 44px; }
.stock-overview-list { list-style: none; padding: 0; margin: 0; }
.stock-overview-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid #e1e8f2; font-size: 13px; }
.stock-overview-list li div { min-width: 0; overflow-wrap: anywhere; }
.stock-overview-list small { display: block; color: #4c627c; margin-top: 4px; font-size: 12px; }
.stock-overview-list .stock-overview-alert { color: #9b3a2a; }
.stock-overview-pages { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; }
@media (max-width: 560px) {
  .stock-overview-tools button { width: 100%; }
  .stock-overview-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .stock-overview-list li div:first-child { grid-column: 1 / -1; }
}
.fiado-customers label { min-width: 0; }
.fiado-customers input, .fiado-customers select {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #d1dce9;
  border-radius: 9px; background: #fff; color: #243954; font: inherit;
}
.fiado-customer-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fiado-customer-controls label { display: grid; gap: 6px; margin: 0; font-size: 12px; color: #435a76; }
.fiado-customer-controls input, .fiado-customer-controls select { font-size: 14px; }
.fiado-customer-results { margin: 16px 0; }
.fiado-customer-list-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fiado-customer-list-heading p { margin: 0; color: #435a76; font-size: 13px; }
.fiado-customer-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.app-shell .fiado-customer-card {
  display: flex; flex-direction: column; align-items: start; gap: 4px; min-width: 0; padding: 15px;
  border: 1px solid #d3deed; border-radius: 12px; background: #fff; color: #243954;
  font: inherit; text-align: left; cursor: pointer; box-shadow: none; white-space: normal; overflow-wrap: anywhere;
}
.app-shell .fiado-customer-card:hover { background: #f5f8fe; border-color: #8faad2; }
.app-shell .fiado-customer-card[aria-pressed="true"] { background: #eef3fc; border-color: #345ba5; box-shadow: inset 0 0 0 1px #345ba5; }
.app-shell .fiado-customer-card:focus-visible { outline: 3px solid #345ba5; outline-offset: 3px; }
.fiado-customer-card strong { font-size: 14px; }
.fiado-customer-card small { color: #52647d; font-size: 12px; }
.fiado-customer-card-balance { margin-top: 8px; font-weight: 750; font-size: 21px; font-variant-numeric: tabular-nums; }
.fiado-customer-overdue, .fiado-customer-status { margin-top: 7px; font-size: 12px; line-height: 1.5; }
.fiado-customer-overdue { color: #9b3a2a; }
.fiado-customer-pages { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.fiado-customer-pages span { font-size: 12px; color: #52647d; }
.fiado-customer-pages button, .fiado-customer-list-heading button { min-height: 44px; }
@media (max-width: 760px) { .fiado-customer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .fiado-customer-controls, .fiado-customer-list { grid-template-columns: 1fr; }
  .fiado-customer-pages button { flex: 1 1 140px; }
}
.fiado-customer-profile { border-top: 1px solid #dce5f2; padding-top: 12px; }
.fiado-customer-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.fiado-customer-heading h3 { margin: 0; color: #213d66; overflow-wrap: anywhere; }
.fiado-customer-heading a { display: inline-flex; align-items: center; text-decoration: none; }
.fiado-customer-profile dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 9px; margin: 12px 0 0; }
.fiado-customer-profile dl div { padding: 10px 12px; border-radius: 8px; background: #f2f6fb; }
.fiado-customer-profile dt { color: #4c627c; font-size: 12px; }
.fiado-customer-profile dd { margin: 4px 0 0; color: #213d66; font-weight: 700; overflow-wrap: anywhere; }
.fiado-statement-shell { margin-top: 14px; }
.fiado-statement-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.fiado-statement-actions button { min-height: 44px; }
.fiado-statement-preview { display: block; width: 100%; height: 650px; border: 1px solid #cbd8e9; border-radius: 10px; background: #fff; }
.fiado-receipt-form { margin: 16px 0; padding: 20px; background: #f6f8fc; border: 1px solid #cbd9ec; border-radius: 14px; }
.fiado-receipt-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.fiado-receipt-heading h3 { margin: 0; color: #203a5c; font-size: 17px; }
.fiado-receipt-heading p { margin: 5px 0 0; overflow-wrap: anywhere; }
.fiado-receipt-balance { display: grid; gap: 4px; text-align: right; flex-shrink: 0; color: #203a5c; }
.fiado-receipt-balance small { font-size: 12px; }
.fiado-receipt-balance strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.fiado-receipt-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.fiado-receipt-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.fiado-receipt-fields label { display: grid; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; color: #344c68; min-width: 0; }
.fiado-receipt-fields input, .fiado-receipt-fields select {
  width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; background: #fff;
  border: 1px solid #bdccdf; border-radius: 8px; color: #203a5c; font: inherit;
}
.fiado-receipt-fields input:focus-visible, .fiado-receipt-fields select:focus-visible { outline: 2px solid #486fa7; outline-offset: 2px; }
.fiado-receipt-form .fiado-receipt-result { color: #344c68; margin: 14px 0; }
.fiado-receipt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fiado-receipt-actions button { min-height: 46px; }
@media (max-width: 560px) {
  .fiado-receipt-form { padding: 16px; }
  .fiado-receipt-heading { flex-direction: column; gap: 10px; }
  .fiado-receipt-balance { text-align: left; }
  .fiado-receipt-fields { grid-template-columns: 1fr; }
  .fiado-receipt-actions button { flex: 1 1 150px; }
}
.order-margin { margin: 12px 0; padding: 12px; border: 1px solid #dce5f2; border-radius: 10px; background: #f3f7fc; }
.order-margin h3 { margin: 0 0 8px; color: #213d66; }
.order-margin dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 8px; margin: 0; }
.order-margin dl div { padding: 8px; border: 1px solid #e0e8f1; border-radius: 8px; background: #fff; }
.order-margin dt { color: #435e7c; font-size: 12px; }
.order-margin dd { margin: 4px 0 0; color: #213d66; font-weight: 700; overflow-wrap: anywhere; }
.order-margin p:last-child { margin-bottom: 0; }
.order-margin .order-margin-percent { font-weight: 700; }
.order-result-report { margin-bottom: 16px; }
.order-result-report summary { min-height: 44px; align-content: center; color: #213d66; cursor: pointer; font-weight: 700; }
.order-result-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 9px; margin: 12px 0;
}
.order-result-stats div { background: #f2f6fb; border: 1px solid #dce5f2; border-radius: 9px; padding: 10px; }
.order-result-stats dt { color: #435e7c; font-size: 12px; }
.order-result-stats dd { margin: 4px 0 0; font-weight: 700; color: #213d66; overflow-wrap: anywhere; }
.order-result-view { display: grid; gap: 5px; max-width: 255px; margin: 10px 0; font-size: 12px; font-weight: 600; }
.order-result-view select { min-height: 44px; padding: 8px 10px; border: 1px solid #d1dce9; border-radius: 9px; }
.order-result-list { margin: 0; padding: 0; list-style: none; }
.order-result-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid #e0e8f1; font-size: 13px;
}
.order-result-list li div { min-width: 0; overflow-wrap: anywhere; }
.order-result-list li small { display: block; color: #435e7c; margin-top: 4px; }
.order-result-loss { color: #982a35; font-weight: 700; }
.order-result-page { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.order-result-export { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 10px 0; }
.order-result-export .order-result-view { margin: 0; }
.panel.stock-replenishment { margin-bottom: 16px; padding: 8px 16px 12px; }
.stock-replenishment summary { min-height: 44px; align-content: center; color: #213d66; cursor: pointer; font-weight: 700; }
.stock-replenishment p { margin: 8px 0; }
.stock-replenishment-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.stock-replenishment-tools label {
  display: grid; gap: 4px; flex: 1 1 175px; min-width: 0; color: #435e7c; font-size: 12px; font-weight: 600;
}
.stock-replenishment-tools :is(input, select) {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #d1dce9;
  border-radius: 9px; background: #fff; color: #243954; font: inherit; font-size: 14px;
}
.stock-replenishment-tools button { min-height: 44px; max-width: 100%; white-space: normal; }
@media (max-width: 480px) {
  .stock-replenishment-tools button { flex: 1 1 155px; }
}
.stock-replenishment-total strong { color: #213d66; }
.stock-replenishment-list { margin: 0; padding: 0; list-style: none; }
.stock-replenishment-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(105px, auto) auto; align-items: center;
  gap: 12px; padding: 10px 0; border-top: 1px solid #e0e8f1; font-size: 13px;
}
.stock-replenishment-list li div { min-width: 0; overflow-wrap: anywhere; }
.stock-replenishment-list li small { display: block; margin-top: 4px; color: #435e7c; }
.panel.due-agenda { margin-bottom: 16px; padding: 16px; }
.due-agenda-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; }
.due-agenda-head h2, .due-agenda h3 { margin: 0; color: #213d66; }
.due-agenda-head label { display: grid; gap: 4px; color: #435e7c; font-size: 12px; font-weight: 600; }
.due-agenda-head select {
  min-height: 44px; padding: 8px 10px; border: 1px solid #d1dce9; border-radius: 9px; background: #fff; color: #243954;
}
.due-agenda-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
.due-agenda-totals div { min-width: 0; padding: 10px; border: 1px solid #dce5f2; border-radius: 9px; background: #f2f6fb; }
.due-agenda-totals dt, .due-agenda-day small { color: #435e7c; font-size: 12px; }
.due-agenda-totals dd { margin: 4px 0 0; color: #213d66; font-weight: 700; overflow-wrap: anywhere; }
.due-agenda-totals dd.due-agenda-negative { color: #982a35; }
.due-agenda-head p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: #4c627c; }
.due-agenda-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 12px; }
.due-agenda-filters label { display: grid; gap: 6px; min-width: 0; color: #435e7c; font-size: 12px; font-weight: 600; }
.due-agenda-filters input, .due-agenda-filters select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 10px; border: 1px solid #c8d6e8; border-radius: 9px; background: #fff; color: #243954; font: inherit; font-size: 14px; }
.due-agenda .due-agenda-include { display: inline-flex; align-items: center; gap: 9px; margin: 3px 0 8px; font-size: 12px; line-height: 1.6; color: #435e7c; cursor: pointer; }
.due-agenda .due-agenda-include input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin: 0; accent-color: #345ba5; }
.due-agenda .due-agenda-scope { font-size: 12px; color: #435e7c; line-height: 1.6; }
.due-agenda .due-agenda-basis { font-size: 12px; line-height: 1.6; color: #52647d; }
.due-agenda-export, .due-agenda-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; font-size: 12px; color: #435e7c; }
.due-agenda-export a { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid #c8d6e8; border-radius: 9px; text-decoration: none; background: #fff; color: #243954; font-weight: 600; }
.due-agenda-pages { justify-content: flex-end; }
.due-agenda :is(input, select, button, a):focus-visible { outline: 2px solid #345ba5; outline-offset: 3px; }
@media (max-width: 700px) { .due-agenda-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .due-agenda-filters { grid-template-columns: minmax(0, 1fr); } }
.due-agenda-overdue, .due-agenda-days, .due-agenda-entries { margin: 8px 0 12px; padding: 0; list-style: none; }
.due-agenda h3 { margin-top: 14px; font-size: 14px; }
.due-agenda-trigger {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) auto;
  gap: 9px; align-items: center; min-height: 54px; margin-top: 6px; padding: 8px 10px; text-align: left;
  border: 1px solid #dce5f2; border-radius: 9px; background: #fff; color: #213d66; font: inherit; cursor: pointer;
}
.due-agenda-trigger:hover, .due-agenda-trigger[aria-expanded="true"] { border-color: #6584b4; background: #f2f6fb; }
.due-agenda-overdue .due-agenda-trigger { border-color: #e8cbd0; background: #fff6f7; }
.due-agenda-day small { display: block; }
.due-agenda-day span, .due-agenda-entries div { min-width: 0; overflow-wrap: anywhere; }
.due-agenda-chevron { font-weight: 700; }
.due-agenda-entries li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center;
  gap: 10px; padding: 8px 0; border-bottom: 1px solid #e0e8f1; font-size: 13px;
}
@media (max-width: 480px) {
  .due-agenda-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .due-agenda-totals div:last-child { grid-column: 1 / -1; }
  .due-agenda-trigger { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .due-agenda-trigger span:first-child, .due-agenda-entries div { grid-column: 1 / -1; }
  .due-agenda-entries li { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 560px) {
  .stock-replenishment-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .stock-replenishment-list li div:first-child { grid-column: 1 / -1; }
  .stock-replenishment-list li button { justify-self: end; }
}
@media (max-width: 560px) {
  .order-result-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .order-result-list li div { grid-column: 1 / -1; }
  .order-result-list li button { justify-self: end; }
}
.modal-backdrop.cc-entry-backdrop { z-index: 101; }
.panel.order-priorities { padding: 20px; margin-bottom: 16px; border-radius: 14px; }
.operations > div.panel { padding: 20px; }
.operations-orders .ops-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.operations-orders .ops-card-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; width: 100%; min-width: 0; max-width: none; }
.operations-orders .ops-card-actions > strong { margin-right: auto; color: #213d66; font-size: 20px; }
.operations-orders .ops-card-actions > button { width: auto; max-width: 100%; white-space: normal; }
.order-priorities-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.order-priorities h2 { margin: 0; color: #213d66; font-size: 18px; }
.order-priorities-head p { margin: 6px 0 0; color: #4c627c; font-size: 13px; line-height: 1.6; }
.order-priority-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 12px; }
.app-shell .order-priority-card { display: grid; align-content: start; gap: 7px; min-width: 0; min-height: 110px; padding: 13px; border: 1px solid #d3dfed; border-radius: 10px; background: #f7f9fe; color: #28456c; font: inherit; text-align: left; white-space: normal; cursor: pointer; }
.order-priority-card span { font-size: 12px; font-weight: 600; }
.order-priority-card strong { font-size: 25px; }
.order-priority-card small { color: #52647d; font-size: 11px; }
.app-shell .order-priority-card.order-priority-overdue { background: #fff5f1; border-color: #edcfc4; }
.app-shell .order-priority-card[aria-pressed="true"] { background: #eaf1ff; border-color: #345ba5; box-shadow: inset 0 0 0 1px #345ba5; }
.order-priorities button:focus-visible { outline: 2px solid #345ba5; outline-offset: 3px; }
.order-priorities-result { margin: 12px 0 6px; color: #28456c; font-size: 13px; font-weight: 600; }
.order-priorities-basis { margin: 0; color: #52647d; font-size: 12px; line-height: 1.6; }
.ops-card .order-reminder-note { margin: 10px 0 0; padding: 8px 10px; border-left: 3px solid #5275ad; border-radius: 0 7px 7px 0; background: #edf3fc; color: #28456c; font-size: 12px; }
@media(max-width:760px) { .order-priority-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:480px) { .panel.order-priorities, .operations > div.panel { padding: 16px; } .app-shell .order-priority-card { padding: 11px; } }
.cash-review-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.cash-review-filters label { display: grid; gap: 5px; flex: 0 1 185px; font-size: 12px; font-weight: 600; }
.cash-review-filters input, .cash-review-filters select {
  width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #d1dce9;
  border-radius: 9px; background: #fff; color: #243954; font: inherit;
}
.daily-overview .cash-review-period { margin: 8px 0 12px; color: #4b607a; }
.cash-review-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 10px; }
.cash-review-total {
  display: grid; align-content: start; gap: 6px; min-width: 0; padding: 12px;
  border: 1px solid #dce5f2; border-radius: 11px; background: #f6f8fc;
  color: #344c68; cursor: pointer; font: inherit; text-align: left;
}
.cash-review-total span { font-size: 12px; font-weight: 600; }
.cash-review-total strong { color: #213d66; font-size: clamp(15px, 2vw, 21px); overflow-wrap: anywhere; }
.cash-review-total:hover, .cash-review-total[aria-pressed="true"] { border-color: #4d74b0; background: #e9effa; }
.cash-review-total:focus-visible { outline: 2px solid #315a97; outline-offset: 2px; }

.stock-history-filters {
  display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0 12px;
}
.stock-history-quick-periods { gap: 8px; margin-bottom: 0; }
.app-shell .stock-history-quick-periods button[aria-pressed="true"] {
  border-color: #315a97; background: #e9effa; color: #243954;
}
.stock-history-filters label {
  display: grid; gap: 5px; flex: 1 1 185px; min-width: 0; margin: 0; color: #435a76; font-size: 12px; font-weight: 600;
}
.stock-history-filters :is(input, select) {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #d1dce9;
  border-radius: 9px; background: #fff; color: #243954; font: inherit; font-size: 14px;
}
.stock-history :is(.stock-history-count, .stock-history-pages) { color: #435a76; font-size: 13px; }
.stock-history-list { padding: 0; margin: 0; list-style: none; }
.stock-history-list li {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 8px 16px; padding: 12px 0; border-top: 1px solid #e1e8f2; font-size: 14px;
}
.stock-history-list li > div:first-child { flex: 1 1 175px; min-width: 0; overflow-wrap: anywhere; }
.stock-history-list small { margin-top: 3px; color: #435a76; }
.stock-history-amount { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.stock-history-direction { padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 650; }
.stock-history-direction.in { background: #eaf2ff; color: #284f90; }
.stock-history-direction.out { background: #f7efea; color: #843d26; }
.stock-history-pages { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stock-history :is(.stock-history-pages, .stock-history-filters) button { min-height: 44px; }
.stock-history { scroll-margin-top: 120px; }
.stock-history:focus { outline: none; }
.stock-history-product {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 16px; margin: 14px 0 10px; color: #243954; overflow-wrap: anywhere;
}
.stock-history-product button { min-height: 44px; white-space: normal; }
.stock-history-totals {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 8px; margin: 10px 0 16px;
}
.stock-history-totals > div {
  min-width: 0; padding: 10px; border: 1px solid #dce5f2; border-radius: 8px; background: #f3f7fc; overflow-wrap: anywhere;
}
.stock-history-totals dt { color: #435a76; font-size: 12px; }
.stock-history-totals dd { margin: 4px 0 0; color: #213d66; font-size: 17px; font-weight: 700; }
.stock-history-period { padding: 10px; border: 1px solid #dce5f2; border-radius: 8px; }
.stock-history-period .error { flex: 1 1 100%; }
.ledger-export-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.ledger-export-tools button { min-height: 44px; }

.point-sales { min-width: 0; }
.point-lookup { margin: 16px 0; padding: 14px; border: 1px solid #dce5f2; border-radius: 10px; background: #f7f9fc; }
.point-lookup-filters {
  display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 10px;
}
.point-sales .point-lookup-filters textarea { resize: vertical; max-width: 100%; }
.point-sales .point-lookup-presets[aria-label="Atalhos de situação do Mercado Pago"] { margin-block: 10px; }
.point-sales .point-lookup-presets button[aria-pressed="true"] {
  color: #17468b; background: #e8f1ff; border-color: #a3c2ee;
}
.point-sales .point-lookup-filters label { display: grid; gap: 5px; min-width: 0; margin: 0; color: #435a76; font-size: 12px; }
.point-sales .point-lookup-filters :is(input, select, textarea) {
  width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 9px 10px; border: 1px solid #c8d6e8;
  border-radius: 8px; background: #fff; color: #243954; font: inherit; font-size: 14px;
}
.point-lookup-summary, .point-lookup-hidden {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px;
}
.point-sales .point-lookup-summary p, .point-sales .point-lookup-hidden p { margin: 0; font-size: 13px; }
.point-lookup-hidden { padding: 10px; border-radius: 8px; border: 1px solid #efddbe; background: #fff8ed; }
.point-sales .point-lookup-hidden p { flex: 1 1 260px; color: #634324; }
.point-sales .point-lookup button { white-space: normal; }
@media (max-width: 760px) { .point-lookup-filters { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .point-sales.account-tools { padding: 16px; }
  .point-sales > .form-row { grid-template-columns: minmax(0, 1fr); }
  .point-sales > .form-row label, .point-sales > .form-row input { min-width: 0; max-width: 100%; }
  .point-sales > button { max-width: 100%; white-space: normal; text-align: center; }
}

.point-sales .point-results { min-width: 0; margin: 16px 0; }
.point-sales .point-results-table { min-width: 0; max-width: 100%; margin: 0; }
.point-sales .point-results-table table {
  width: 100%;
  min-width: 0;
  margin: 0;
  table-layout: fixed;
}
.point-sales .point-results-table :is(th, td) {
  padding: 10px 6px;
  overflow-wrap: anywhere;
  white-space: normal;
  vertical-align: middle;
}
.point-sales .point-results-table th {
  background: #f3f6fb;
  color: #354b68;
  font-size: 12px;
  line-height: 1.4;
}
.point-sales .point-results-table td { color: #354b68; font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1.4; }
.point-sales .point-results-table td:last-child { min-width: 0; max-width: none; }
.point-results-table th:nth-child(1) { width: 8%; }
.point-results-table th:nth-child(2) { width: 14%; }
.point-results-table th:nth-child(3) { width: 12%; }
.point-results-table th:nth-child(4) { width: 10%; }
.point-results-table th:nth-child(5) { width: 9%; }
.point-results-table th:nth-child(6) { width: 10%; }
.point-results-table th:nth-child(7) { width: 10%; }
.point-results-table th:nth-child(8) { width: 12%; }
.point-results-table th:nth-child(9) { width: 15%; }
.point-sales .point-results input[type=checkbox] { margin: 0; accent-color: #2c56a0; }

.point-results-cards { display: none; margin: 0; padding: 0; list-style: none; }
.point-result-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce5f2;
  border-radius: 10px;
  background: #fff;
}
.point-result-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.point-result-identity { display: grid; gap: 4px; min-width: 0; color: #243954; overflow-wrap: anywhere; }
.point-result-identity strong { font-size: 15px; }
.point-result-identity small { color: #435a76; }
.point-result-status {
  display: inline-block;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 6px;
  background: #edf1f6;
  color: #354b68;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.point-result-status.available { background: #e9f4ec; color: #27583c; }
.point-result-status.waiting { background: #fff4df; color: #694a20; }
.point-result-status.review { background: #f8edf9; color: #634070; }
.point-result-data {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 116px), 1fr));
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #e3eaf4;
}
.point-result-data > div { min-width: 0; overflow-wrap: anywhere; }
.point-result-data dt { color: #435a76; font-size: 12px; }
.point-result-data dd { margin: 4px 0 0; color: #243954; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.point-sales .point-result-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 8px 0 0;
  color: #243954;
  font-size: 13px;
}
.point-result-select input { flex-shrink: 0; }

@media (max-width: 1100px) {
  .point-sales .point-results-table { display: none; }
  .point-results-cards { display: grid; gap: 10px; }
}
.daily-overview .cash-review-basis { margin: 8px 0 0; }
.cash-review-methods, .cash-review-details { margin-top: 15px; }
.cash-review-methods h3, .cash-review-details h3 { margin: 0 0 8px; color: #243954; font-size: 14px; }
.cash-review-details { padding: 12px 14px; border: 1px solid #dce5f2; border-radius: 11px; }
.cash-review-details-head, .cash-review-details li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cash-review-details-head h3 { margin: 0; }
.cash-review-details ul { margin: 8px 0 0; padding: 0; list-style: none; }
.cash-review-details li { padding: 9px 0; border-top: 1px solid #e7edf4; font-size: 13px; }
.cash-review-details li div { min-width: 0; overflow-wrap: anywhere; }
.cash-review-details li small { display: block; margin-top: 3px; color: #506783; }
.cash-review-details li b { white-space: nowrap; }
.cash-closing { margin-top: 18px; padding: 12px 14px; border: 1px solid #dce5f2; border-radius: 11px; }
.cash-closing summary { min-height: 44px; align-content: center; color: #213d66; cursor: pointer; font-weight: 700; }
.cash-closing label { display: grid; gap: 5px; max-width: 360px; margin: 8px 0; font-size: 12px; font-weight: 600; }
.cash-closing input, .cash-closing select, .cash-closing textarea {
  width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #d1dce9;
  border-radius: 9px; background: #fff; color: #243954; font: inherit;
}
.cash-closing textarea { resize: vertical; }
.cash-closing-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 12px 0; }
.cash-closing-totals div { padding: 10px; border-radius: 8px; background: #f2f6fb; }
.cash-closing-totals dt { color: #4c627c; font-size: 12px; }
.cash-closing-totals dd { margin: 5px 0 0; color: #213d66; font-weight: 700; overflow-wrap: anywhere; }
.cash-closing-totals .cash-closing-short { color: #982a35; }
.daily-overview .cash-closing-warning { padding: 8px 10px; border-radius: 8px; background: #fff6df; color: #714b12; }
.cash-closing-history { margin-top: 16px; padding-top: 12px; border-top: 1px solid #dce5f2; }
.cash-closing-history h3 { margin: 0; color: #243954; font-size: 14px; }
.loan-cash-choice { margin: 16px 0; padding: 14px 16px; border: 1px solid #d0ddef; border-radius: 12px; background: #f5f8fd; }
.loan-manager .loan-cash-check { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; color: #243954; min-height: 44px; cursor: pointer; }
.loan-manager .loan-cash-check input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; margin: 0; flex: 0 0 20px; accent-color: #294e93; }
.loan-cash-choice > label:not(.loan-cash-check) { max-width: 360px; }
.loan-manager .loan-cash-state { font-size: .875rem; color: #36567e; line-height: 1.6; }
.loan-reversal-form { padding: 18px; margin: 20px 0; border: 1px solid #d9bd98; border-radius: 14px; background: #fffaf2; scroll-margin-top: 100px; }
.loan-reversal-form h4 { margin-top: 0; color: #684619; font-size: 1.125rem; }
.loan-reversal-form textarea { width: 100%; padding: 12px; border: 1px solid #c5cfdd; border-radius: 9px; resize: vertical; background: white; font: inherit; font-size: .875rem; line-height: 1.6; }
.loan-reversal-form label { font-size: .875rem; }
.loan-reversals { margin: 18px 0; padding: 16px; border: 1px solid #dbe2ec; border-radius: 12px; background: #f8f9fc; }
.loan-reversals h4 { margin: 0; font-size: 1rem; color: #52647d; }
.loan-reversals p { font-size: .875rem; overflow-wrap: anywhere; }
.loan-view-switch, .loan-customer-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.loan-view-switch { padding: 5px; border-radius: 12px; background: #edf2fa; width: fit-content; }
.loan-view-switch .outline { border-color: transparent; background: transparent; }
.loan-view-switch [aria-pressed="true"], .loan-customer-tabs [aria-pressed="true"] { background: #294e93; border-color: #294e93; color: white; }
.loan-customer-count { font-size: .875rem; color: #4c627c; }
.loan-customer-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.loan-customer-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 7px; padding: 18px; border: 1px solid #d2ddec; border-radius: 14px; background: white; color: #243954; min-width: 0; overflow-wrap: anywhere; }
.loan-customer-card:hover { border-color: #7394ca; background: #f8faff; }
.loan-customer-card[aria-pressed="true"] { border-color: #365d9e; box-shadow: 0 0 0 1px #365d9e; background: #f0f5ff; }
.loan-customer-card strong { font-size: 1rem; }
.loan-customer-card b { font-size: 1.375rem; }
.loan-customer-card small, .loan-customer-card span { font-size: .875rem; color: #4c627c; }
.loan-customer-card small:nth-of-type(2) { margin-top: 8px; }
.loan-customer-detail { padding: 22px; border: 1px solid #cbd9ed; border-radius: 16px; background: white; margin: 24px 0; scroll-margin-top: 100px; }
.loan-customer-detail h3 { margin: 5px 0; color: #213d66; font-size: 1.375rem; }
.loan-customer-detail .loan-detail-heading p, .loan-customer-detail .loan-detail-heading small { color: #4c627c; font-size: .875rem; }
.loan-customer-totals { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.loan-customer-totals > div { padding: 14px; border-radius: 10px; background: #f2f6fc; min-width: 0; }
.loan-customer-totals > div:first-child { background: #e8f0ff; }
.loan-customer-totals dt { font-size: .875rem; }
.loan-customer-totals dd { font-size: 1.25rem; }
.loan-customer-records { list-style: none; padding: 0; margin: 0; max-height: 560px; overflow-y: auto; }
.loan-customer-records li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid #dce5f2; }
.loan-customer-records li > div { min-width: 0; overflow-wrap: anywhere; }
.loan-customer-records small { display: block; margin-top: 5px; font-size: .875rem; color: #4c627c; line-height: 1.5; }
.loan-customer-records strong, .loan-customer-records b { font-size: 1rem; color: #243954; }
.loan-customer-record-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.loan-manager .loan-customer-picker { margin: 16px 0; max-width: 600px; font-size: .875rem; }
.loan-manager input[readonly] { background: #f1f4f8; color: #52647d; }
.loan-customer-detail:focus, .loan-detail:focus { outline: none; }
@media(max-width:1050px) { .loan-customer-list { grid-template-columns: repeat(2,minmax(0,1fr)); } .loan-customer-totals { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  .loan-customer-list { grid-template-columns: 1fr; }
  .loan-customer-detail { padding: 16px; }
  .loan-customer-totals { gap: 8px; }
  .loan-customer-totals > div { padding: 10px; }
  .loan-customer-totals dd { font-size: 1.125rem; }
  .loan-customer-records li { flex-wrap: wrap; gap: 12px; }
  .loan-customer-record-actions { justify-content: flex-start; width: 100%; }
  .loan-customer-tabs button { flex: 1 1 100px; }
}
.loan-payment-receipt { margin: 22px 0; padding: 20px; border: 1px solid #cbd9ed; border-radius: 16px; background: #f7faff; scroll-margin-top: 24px; min-width: 0; }
.loan-payment-receipt .loan-detail-heading { align-items: flex-start; }
.loan-payment-receipt h4 { margin: 0; font-size: 1.125rem; color: #243954; }
.loan-payment-receipt p { font-size: .875rem; line-height: 1.6; }
.loan-receipt-preview { display: block; width: 100%; height: 720px; max-height: 85vh; margin-top: 16px; border: 1px solid #d7e1ee; border-radius: 10px; background: white; }
.loan-payment-preview { padding: 4px 16px; margin: 16px 0; border: 1px solid #cbd9ed; border-radius: 12px; background: #f3f7fd; }
.loan-payment-preview .loan-detail-totals { margin: 12px 0; }
.loan-payment-preview p { font-size: .875rem; line-height: 1.6; }
.loan-history .loan-receipt-history-action { margin-top: 8px; min-height: 42px; padding: 8px 12px; font-size: .875rem; }
@media(max-width:600px) {
  .loan-payment-receipt { padding: 14px; }
  .loan-payment-receipt .loan-detail-heading { flex-wrap: wrap; }
  .loan-payment-preview { padding: 4px 10px; }
  .loan-payment-preview .loan-detail-totals { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cash-review-filters label { flex: 1 1 135px; }
  .cash-review-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cc-nav-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #d6e1ef;
  border-radius: 9px;
  background: #f7faff;
  color: #2c4c79;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
}
.cc-nav-search-trigger:hover { border-color: #a2b7d6; background: #edf4ff; }
.cc-nav-search-key {
  padding: 2px 5px;
  border: 1px solid #d6e1ef;
  border-radius: 4px;
  background: white;
  color: #415775;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}
.cc-nav-search-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(540px, calc(100% - 28px));
  max-height: min(610px, calc(100vh - 28px));
  max-height: min(610px, calc(100dvh - 28px));
  margin: auto;
  padding: 18px;
  border: 1px solid #d6e1ef;
  border-radius: 16px;
  background: #fff;
  color: #243954;
  box-shadow: 0 22px 72px #17325a3b;
}
.cc-nav-search-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cc-nav-search-dialog::backdrop { background: #142b4a6b; }
.cc-nav-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.cc-nav-search-head h2 { margin: 0; color: #203a5e; font-size: 20px; line-height: 1.25; }
.cc-nav-search-dismiss {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d6e1ef;
  border-radius: 9px;
  background: #fff;
  color: #304d72;
}
.cc-nav-search-dismiss:hover { background: #edf4ff; }
.cc-nav-search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #b9cce6;
  border-radius: 10px;
  background: #f7faff;
  color: #446487;
}
.cc-nav-search-field > svg { flex-shrink: 0; }
.cc-nav-search-field input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #243954;
  font: inherit;
  font-size: 16px;
}
.cc-nav-search-field input::placeholder { color: #536c89; }
.cc-nav-search-field input:focus-visible { outline: none; box-shadow: none; }
.cc-nav-search-status, .cc-nav-search-empty { margin: 0; color: #536b88; font-size: 13px; line-height: 1.5; }
.cc-nav-search-empty { padding: 12px; border-radius: 9px; background: #f2f6fc; }
.cc-nav-search-results {
  display: grid;
  gap: 4px;
  min-height: 0;
  margin: 0;
  padding: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}
.cc-nav-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: #28528b;
  text-align: left;
}
.cc-nav-search-item:hover, .cc-nav-search-item:focus-visible {
  border-color: #cbdcf4;
  background: #edf4ff;
}
.cc-nav-search-item-copy { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.cc-nav-search-item-copy strong { color: #243954; font-size: 14px; }
.cc-nav-search-item-copy small { color: #536b88; font-size: 12px; line-height: 1.35; }
.cc-nav-search-item > svg { flex-shrink: 0; }
.cc-nav-search-trigger:focus-visible, .cc-nav-search-dialog button:focus-visible, .cc-nav-search-field:focus-within {
  outline: 2px solid #315a95;
  outline-offset: 2px;
  box-shadow: none;
}
@media (max-width: 860px) {
  .cc-nav-search-key { display: none; }
}
@media (max-width: 600px) {
  .app-shell .topbar > span { gap: 6px; min-width: 0; }
  .app-shell .topbar > span strong { min-width: 0; overflow-wrap: anywhere; }
  .app-shell .top-right { gap: 8px; }
  .cc-nav-search-trigger { width: 44px; padding: 0; }
  .cc-nav-search-trigger-text { display: none; }
  .cc-nav-search-dialog { width: calc(100% - 20px); padding: 14px; }
}

.order-list-tools {
  margin: 0 0 14px;
  padding: 14px;
  min-width: 0;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  background: #f7f9fd;
}
.order-list-controls, .order-list-period, .order-list-period-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}
.order-list-period { flex: 3 1 480px; }
.order-list-tools label {
  display: grid;
  gap: 5px;
  flex: 1 1 142px;
  min-width: 0;
  color: #384f6d;
  font-size: .8125rem;
  font-weight: 600;
}
.order-list-tools input, .order-list-tools select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid #c6d4e8;
  border-radius: 8px;
  background: #fff;
  color: #263953;
}
.order-list-tools button { min-height: 40px; }
.order-list-tools .order-list-period-error,
.order-list-active-period { margin: 10px 0 0; font-size: .8125rem; }
.order-list-active-period { color: #384f6d; }
.order-list-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 12px 0 0;
  padding: 11px 0 0;
  border-top: 1px solid #dce6f4;
}
.order-list-summary dt { color: #4a607a; font-size: .8125rem; }
.order-list-summary dd { margin: 3px 0 0; color: #203b64; font-size: 1.125rem; font-weight: 750; }
@media (max-width: 480px) {
  .order-list-period-actions { width: 100%; }
  .order-list-period-actions button { flex: 1 1 105px; }
}

.labor-payout-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 8px;
  margin: 16px 0 0;
}
.labor-payout-summary > div {
  padding: 10px 12px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: #f7f9fd;
}
.labor-payout-summary dt { color: #4a607a; font-size: .8125rem; }
.labor-payout-summary dd { margin: 4px 0 0; color: #203b64; font-size: 1.0625rem; font-weight: 700; overflow-wrap: anywhere; }

.stock-replenishment-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stock-replenishment-item input { flex: none; accent-color: #345ba5; }
.stock-replenishment-quantity {
  display: grid;
  gap: 4px;
  color: #435e7c;
  font-size: 12px;
  font-weight: 600;
}
.stock-replenishment-quantity input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 9rem;
  min-height: 40px;
  border: 1px solid #d1dce9;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  color: #243954;
}

.panel.recurring-expenses {
  margin-bottom: 16px;
  padding: 8px 16px 12px;
}
.recurring-expenses summary {
  min-height: 44px;
  align-content: center;
  color: #213d66;
  cursor: pointer;
  font-weight: 700;
}
.recurring-expenses p { margin: 4px 0 10px; color: #435a76; font-size: .875rem; }
.recurring-expenses ul { list-style: none; padding: 0; margin: 0; }
.recurring-expenses li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 0;
  border-top: 1px solid #dce6f4;
}
.recurring-expenses li > div:first-child { flex: 1 1 180px; min-width: 0; }
.recurring-expenses li > div:nth-child(2) { flex: 0 1 174px; min-width: 0; }
.recurring-expenses li strong { display: block; overflow-wrap: anywhere; }
.recurring-expenses li small { display: block; margin-top: 3px; color: #435a76; }
.recurring-expenses li button { min-height: 44px; }
.ops-material-check {
  padding: 12px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: #f7f9fd;
}
.ops-material-check h3 { margin: 0 0 6px; color: #213d66; font-size: 1rem; }
.ops-material-check ul { margin: 0 0 6px; padding-left: 20px; }
.ops-material-check p { margin: 0; color: #435a76; font-size: .8125rem; }

.loan-interest-agenda {
  margin: 14px 0;
  padding: 10px 14px;
  border: 1px solid #dce5f2;
  border-radius: 10px;
}
.loan-interest-agenda summary {
  min-height: 36px;
  align-content: center;
  color: #213d66;
  cursor: pointer;
  font-weight: 700;
}
.loan-history-tools label { flex: 0 1 240px; }

.automation-center { display: grid; gap: 16px; }
.automation-tabs, .automation-payment-filters, .automation-collection-actions,
.order-stock-demand-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.automation-tabs, .order-stock-demand .stock-history-pages { flex-direction: row; }
.automation-tabs button { flex: 1 1 165px; min-height: 44px; }
.automation-center .panel, .panel.order-stock-demand { padding: 16px; min-width: 0; }
.automation-center .panel h2, .order-stock-demand h2 { margin: 0; color: #213d66; font-size: 1.125rem; }
.automation-payment-review p, .automation-collections p, .order-stock-demand-note {
  margin: 8px 0;
  color: #435a76;
  font-size: .875rem;
}
.automation-payment-filters label, .automation-collection-filters label,
.order-stock-demand-head label, .automation-collection-draft > label:first-child {
  display: grid;
  gap: 5px;
  flex: 0 1 230px;
  min-width: 0;
  color: #435a76;
  font-size: .8125rem;
  font-weight: 600;
}
.automation-payment-filters select, .automation-collection-filters select,
.order-stock-demand-head select, .automation-collection-draft textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #c9d6e8;
  border-radius: 8px;
  background: #fff;
  color: #243954;
}
.automation-collection-filters { margin-top: 12px; }
.automation-payment-review .automation-payment-total { font-weight: 650; }
.automation-collection-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.automation-collection-summary > div { flex: 1 1 155px; padding: 9px 12px; background: #f2f6fb; border-radius: 8px; }
.automation-collection-summary dt, .order-stock-demand-counts dt { color: #435a76; font-size: .8125rem; }
.automation-collection-summary dd, .order-stock-demand-counts dd {
  margin: 4px 0 0;
  color: #213d66;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.automation-payment-list, .automation-collection-list, .order-stock-demand-list { list-style: none; margin: 0; padding: 0; }
.automation-payment-list li, .automation-collection-item, .order-stock-demand-list li { padding: 12px 0; border-top: 1px solid #dce6f4; }
.automation-payment-list li, .automation-collection-item-head, .order-stock-demand-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 15px;
}
.automation-payment-list li > div:first-child, .automation-collection-item-head > div:first-child,
.order-stock-demand-list li > div:first-child {
  flex: 1 1 160px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.automation-payment-list small, .automation-collection-item-head small, .order-stock-demand-list small {
  display: block;
  margin-top: 4px;
  color: #435a76;
}
.automation-collection-actions { margin-top: 10px; }
.automation-collection-draft { display: grid; gap: 9px; padding: 12px; margin-top: 10px; background: #f7f9fd; border-radius: 8px; }
.automation-collection-draft textarea { resize: vertical; }
.automation-collection-draft button { justify-self: start; }
.automation-collection-consent { display: flex; align-items: start; gap: 7px; font-size: .875rem; }
.order-stock-demand-head { justify-content: space-between; align-items: center; }
.panel.order-stock-demand { margin-bottom: 16px; }
.order-stock-demand-counts { display: flex; flex: 2 1 300px; flex-wrap: wrap; gap: 8px 15px; margin: 0; }
.order-stock-demand-counts > div { flex: 1 1 90px; }

.cash-closing-month h4 {
  margin: 16px 0 8px;
  color: #213d66;
  font-size: .875rem;
}
.cash-closing-gaps { list-style: none; margin: 0; padding: 0; }
.cash-closing-gaps li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  padding: 9px 0;
  border-top: 1px solid #dce5f2;
}
.cash-closing-gaps p { margin: 0; }
.cash-closing-gaps button { min-height: 42px; }

.panel.due-forecast { padding: 16px; margin-bottom: 16px; min-width: 0; }
.due-forecast-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; }
.due-forecast h2, .due-forecast h3 { color: #213d66; margin: 0; }
.due-forecast h2 { font-size: 1.125rem; }
.due-forecast h3 { font-size: 1rem; }
.due-forecast-head label, .order-return-filter-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #435a76;
  font-size: .8125rem;
  font-weight: 600;
}
.due-forecast-head select, .order-return-filter-fields input, .order-return-filter-fields select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  color: #243954;
  background: #fff;
  border: 1px solid #c9d6e8;
  border-radius: 8px;
}
.due-forecast-scope, .order-return-filters p, .point-lookup-stamp {
  margin: 8px 0;
  color: #435a76;
  font-size: .8125rem;
}
.due-forecast-totals, .due-forecast-day-values, .point-lookup-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  gap: 8px;
  margin: 10px 0;
}
.due-forecast-totals > div, .point-lookup-totals > div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f2f6fb;
}
.due-forecast dt, .point-lookup-totals dt { color: #435a76; font-size: .8125rem; }
.due-forecast dd, .point-lookup-totals dd { margin: 4px 0 0; color: #213d66; font-weight: 700; overflow-wrap: anywhere; }
.due-forecast dd.due-forecast-negative { color: #982f37; }
.due-forecast-risk { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: #fbeef0; color: #982f37; font-size: .875rem; }
.due-forecast-days { list-style: none; padding: 0; margin: 10px 0; max-height: 25rem; overflow-y: auto; }
.due-forecast-days li { padding: 10px 0 0; border-top: 1px solid #dce6f4; }
.due-forecast-days time { color: #213d66; font-weight: 650; }
.due-forecast-overdue { padding-top: 10px; border-top: 1px solid #dce6f4; }
.order-return-filters { margin: 10px 0; }
.order-return-filter-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; }
.order-return-filter-fields label { flex: 1 1 175px; }
.point-lookup-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.point-lookup-presets button { min-height: 40px; }

.panel.stock-count {
  min-width: 0;
  padding: 16px;
  margin-bottom: 16px;
}
.stock-count h2 { margin: 0; color: #213d66; font-size: 1.125rem; }
.stock-count-controls, .stock-count-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: 8px 12px;
  margin: 10px 0;
}
.stock-count-controls label { display: grid; gap: 5px; min-width: 0; color: #435a76; font-size: .8125rem; }
.stock-count-controls input, .stock-count-controls select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #c9d6e8;
  border-radius: 8px;
  background: #fff;
  color: #243954;
}
.stock-count-preview > div { min-width: 0; padding: 10px 12px; border-radius: 8px; background: #f2f6fb; }
.stock-count-preview dt { color: #435a76; font-size: .8125rem; }
.stock-count-preview dd { margin: 4px 0 0; color: #213d66; font-weight: 700; overflow-wrap: anywhere; }
.stock-count-actions button { min-height: 42px; }
.loan-payoff { margin-top: 12px; padding: 10px 14px; border: 1px solid #dce5f2; border-radius: 10px; }
.loan-payoff summary { min-height: 36px; align-content: center; color: #213d66; cursor: pointer; font-weight: 700; }
.loan-payoff-content { padding-top: 4px; }
.ledger-panel .ledger-date-range .ledger-amount-error { color: #982f37; }

.cash-review-share { display: block; color: #435a76; font-size: .75rem; }
.cash-review-details li { flex-wrap: wrap; }
.cash-review-item-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.cash-review-item-actions button { min-height: 36px; }

.duplicate-ledger-review p, .order-review-tools p { margin: 8px 0; color: #435a76; font-size: .875rem; }
.duplicate-ledger-filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px 12px; margin: 12px 0;
}
.duplicate-ledger-filters label, .cash-review-method-choice {
  display: grid; gap: 5px; min-width: 0; color: #354c67; font-size: .8125rem; font-weight: 600;
}
.duplicate-ledger-filters :is(select, input), .cash-review-method-choice select {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 40px; padding: 6px 8px;
  border: 1px solid #cbd7e8; border-radius: 8px; background: #fff; color: #263953;
}
.cash-review-method-choice { width: min(100%, 220px); margin: 8px 0; }
.cash-review-detail-filters { align-items: end; margin: 10px 0; }
.cash-review-detail-filters label { flex: 1 1 155px; min-width: 0; }
.cash-review-detail-filters :is(input, select) { width: 100%; min-width: 0; }
.cash-review-detail-filters button { min-height: 38px; }
.duplicate-ledger-groups, .duplicate-ledger-groups ul, .order-review-list { list-style: none; margin: 0; padding: 0; }
.duplicate-ledger-groups > li { border-top: 1px solid #dce5f2; padding: 12px 0; }
.duplicate-ledger-groups h3 { margin: 0 0 6px; font-size: 1rem; }
.duplicate-ledger-groups ul > li, .order-review-row {
  display: flex; gap: 8px 16px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 8px 0;
}
.duplicate-ledger-groups ul > li > span, .order-review-row > div { min-width: 0; overflow-wrap: anywhere; }

.panel.order-review-tools { margin-bottom: 16px; padding: 8px 16px 12px; }
.order-review-tools summary { min-height: 40px; align-content: center; color: #213d66; cursor: pointer; font-weight: 700; }
.order-review-row { border-top: 1px solid #dce5f2; }
.order-review-row small { display: block; margin-top: 4px; color: #435a76; }
.order-vehicle-history-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 8px; margin: 12px 0;
}
.order-vehicle-history-summary > div { min-width: 0; padding: 10px 12px; border-radius: 8px; background: #f2f6fb; }
.order-vehicle-history-summary dt { color: #435a76; font-size: .8125rem; }
.order-vehicle-history-summary dd { margin: 4px 0 0; color: #213d66; font-weight: 700; overflow-wrap: anywhere; }
.order-summary-copy { margin: 8px 0; }

.panel.cash-comparison { margin: 16px 0; padding: 10px 14px 14px; }
.cash-comparison > summary, .point-breakdown summary {
  min-height: 40px; align-content: center; cursor: pointer; color: #213d66; font-weight: 700;
}
.cash-comparison p, .point-breakdown p { margin: 8px 0; color: #435a76; font-size: .875rem; }
.cash-comparison-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0; align-items: end; }
.cash-comparison-filters label { display: grid; gap: 5px; min-width: 0; font-size: .8125rem; color: #354c67; }
.cash-comparison-filters :is(input,select) {
  width: 100%; min-height: 42px; min-width: 0; box-sizing: border-box;
  border: 1px solid #cbd7e8; border-radius: 8px; padding: 7px 9px; background: #fff; color: #263953;
}
.cash-comparison-filters button { min-height: 42px; }
.cash-comparison-metrics, .cash-comparison-insights, .point-breakdown dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; margin: 10px 0;
}
.cash-comparison :is(.cash-comparison-metrics > div,.cash-comparison-insights > article) {
  min-width: 0; padding: 10px 12px; background: #f2f6fb; border-radius: 8px; overflow-wrap: anywhere;
}
.cash-comparison dt, .point-breakdown dt { color: #435a76; font-size: .8125rem; }
.cash-comparison dd, .point-breakdown dd { margin: 4px 0 0; color: #213d66; font-weight: 700; overflow-wrap: anywhere; }
.cash-comparison h4 { margin: 0 0 8px; color: #213d66; }
.cash-comparison-insights article dt { margin-top: 8px; }
.cash-comparison-insights details { margin-top: 10px; }
.cash-comparison-insights details summary { color: #214982; cursor: pointer; font-size: .8125rem; font-weight: 650; }
.cash-comparison ul, .point-breakdown ul { list-style: none; margin: 8px 0 0; padding: 0; }
.cash-comparison-categories li {
  display: flex; gap: 8px 12px; flex-wrap: wrap; justify-content: space-between; align-items: center;
  padding: 9px 0; border-top: 1px solid #e0e8f3;
}
.cash-comparison-categories li > div { min-width: 0; overflow-wrap: anywhere; }
.cash-comparison small, .point-breakdown small, .point-fee-value small { display: block; margin-top: 3px; color: #435a76; }
.cash-comparison-drill h3 { font-size: 1rem; margin: 12px 0 0; }
.cash-comparison-drill li { padding: 8px 0; border-top: 1px solid #dce6f2; }
.point-breakdown { display: grid; gap: 8px; margin: 12px 0; }
.point-breakdown > button { justify-self: start; min-height: 40px; }
.point-breakdown details {
  min-width: 0; padding: 2px 12px 6px; border: 1px solid #dce6f2; border-radius: 8px;
}
.point-breakdown li { min-width: 0; padding: 8px 0; border-top: 1px solid #dce6f2; }
.point-breakdown li > span { display: block; margin-top: 4px; }
.point-breakdown dl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 105px), 1fr)); }
.point-fee-value small { white-space: nowrap; }
.stock-overview-actions { display: grid; gap: 8px; justify-items: end; min-width: 0; }
.stock-overview-actions button { max-width: 100%; white-space: normal; }
#stock-count { scroll-margin-top: 16px; }
.demo-preview #stock-count { scroll-margin-top: 88px; }

.due-forecast-simulation, .bank-audit-summary {
  margin: 8px 0; padding: 4px 12px 8px; border: 1px solid #dce6f2; border-radius: 8px;
}
.due-forecast-simulation > summary, .bank-audit-summary > summary {
  min-height: 38px; align-content: center; color: #213d66; font-weight: 700; cursor: pointer;
}
.due-forecast-controls, .recurring-review-filters {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,165px),1fr));
  gap: 8px 12px; margin: 10px 0;
}
.due-forecast-controls label, .recurring-review-filters label {
  display: grid; gap: 5px; color: #354c67; font-size: .8125rem; min-width: 0;
}
.due-forecast-controls input:not([type=checkbox]), .recurring-review-filters :is(input,select) {
  width: 100%; min-width: 0; min-height: 40px; padding: 6px 8px; color: #263953; background: #fff;
  border: 1px solid #cbd7e8; border-radius: 8px; box-sizing: border-box;
}
.due-forecast-controls .due-forecast-toggle {
  display: flex; align-items: start; gap: 7px; line-height: 1.4;
}
.due-forecast-toggle input { margin-top: 2px; }
.due-forecast-entries { margin-bottom: 10px; }
.due-forecast-entries summary { color: #214982; cursor: pointer; font-weight: 650; }
.due-forecast-entries ul, .bank-audit-summary ul { list-style: none; padding: 0; margin: 6px 0; }
.due-forecast-entries li, .bank-audit-summary li {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between;
  border-top: 1px solid #e0e8f3; padding: 9px 0;
}
.due-forecast-entries li > div, .bank-audit-summary li > div { min-width: 0; overflow-wrap: anywhere; }
.due-forecast-entries small, .bank-audit-summary small, .bank-row-audit small {
  color: #435a76; margin-top: 3px; display: block; overflow-wrap: anywhere;
}
.recurring-expenses .recurring-review-total { color: #213d66; font-weight: 700; }
.bank-audit-summaries { margin: 12px 0; display: grid; gap: 6px; }
.bank-audit-summaries .bank-audit-summary { margin: 0; }
.bank-audit-summaries > button { justify-self: start; min-height: 40px; }
.bank-audit-range button[aria-pressed=true] { background: #eaf1fb; color: #214982; border-color: #87a6d0; }
.bank-row-audit { display: grid; min-width: 0; gap: 4px; padding-top: 6px; }
.bank-row-audit .bank-row-repeat { color: #86540d; font-weight: 650; }
.bank-row-audit details summary { font-size: .8125rem; color: #214982; cursor: pointer; }
.bank-row-audit details p { font-size: .8125rem; overflow-wrap: anywhere; margin: 5px 0; }
