/* ERP styles (the command chrome lives in shared/chrome.css, shared pieces in shared/kit.css, charts in shared/charts.css). */
#app { background: var(--page); }
#main { background: var(--page); }

/* ---------- search box (row 1 of the header, beside Cloud sync) ---------- */

/* ---------- sub-pages (chips) – the modules are the left bar's sections ---------- */
.erp-sub:focus-visible { outline: 2px solid var(--prog); outline-offset: -2px; border-radius: 4px; }
#erp-subnav {
  position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 24px;
  background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
}
#erp-subnav::-webkit-scrollbar { display: none; }
#erp-subnav[hidden] { display: none; }
.erp-sub {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 13px;
  color: var(--muted); text-decoration: none; font-size: 12.5px; white-space: nowrap; background: var(--surface);
}
.erp-sub:hover { color: var(--text); background: var(--hover); }
.erp-sub.on { background: var(--prog-soft); border-color: transparent; color: var(--prog-strong); font-weight: 500; }
#erp-main { flex: 1; min-height: 0; overflow: auto; padding: 20px 24px 32px; outline: none; }

/* ---------- common ---------- */
.page { max-width: 1480px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px 8px; }
.card-head h2 { margin: 0; font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.card-foot { padding: 10px 16px 12px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.card-foot.muted { font-size: 12px; line-height: 1.5; }
.pad { padding: 12px 16px; }
.muted.pad { display: block; }
.muted.block, .block { display: block; }
.pad-top { padding-top: 10px; }
.mt { margin-top: 14px; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -.01em; }
.neg { color: var(--danger); }
.rec-link, .ref-link { color: var(--accent); text-decoration: none; }
.rec-link:hover, .ref-link:hover { text-decoration: underline; }
.rec-link { font-weight: 500; }
button.rec-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 500; cursor: pointer; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:disabled:hover { background: var(--surface); }
.btn.primary:disabled:hover { background: #18181b; }
.icon-btn.on { background: var(--accent-soft); color: #041e49; }
.obj-ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; color: #fff; flex: none; }
.obj-ico .material-symbols-outlined { font-size: 18px; }
.obj-ico.sm { width: 22px; height: 22px; border-radius: 5px; }
.obj-ico.sm .material-symbols-outlined { font-size: 15px; }
.obj-ico.lg { width: 40px; height: 40px; border-radius: 8px; }
.obj-ico.lg .material-symbols-outlined { font-size: 24px; }
.badge { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 10px; background: var(--line); color: var(--text-2); white-space: nowrap; vertical-align: middle; letter-spacing: .01em; }
.badge.tone-good { background: var(--ok-soft); color: var(--ok); }
.badge.tone-bad { background: var(--danger-soft); color: var(--danger); }
.badge.tone-warn { background: var(--warn-soft); color: var(--warn); }
.badge.tone-info { background: var(--info-soft); color: var(--info); }
.badge.tone-muted { background: var(--hover); color: var(--faint); }
td .badge + .badge, dd .badge { margin-left: 6px; }
.check-note { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.check-note .material-symbols-outlined { font-size: 18px; flex: none; }
.check-note.good { background: var(--ok-soft); color: var(--ok); }
.check-note.bad { background: var(--danger-soft); color: var(--danger); }
.card > .check-note { margin: 0 16px 14px; }
.toolbar-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar-row .fg-cell { min-width: 150px; }
.toolbar-row .fg-cell.wide { flex: 1; min-width: 240px; max-width: 460px; }
.toolbar-row > .btn { margin-bottom: 1px; }
.check-label { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer; padding: 6px 0; }
.check-label input { margin-top: 3px; }
.err-list { margin: 6px 0; padding-left: 18px; font-size: 13px; line-height: 1.55; max-height: 50vh; overflow: auto; }
.kbd-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.kbd-table td { padding: 5px 6px; border-bottom: 1px solid var(--line-soft); }
kbd { font: 12px Consolas, monospace; background: var(--hover); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; white-space: nowrap; }
ul.feat { padding-left: 18px; margin: 4px 0; line-height: 1.55; font-size: 13px; }
.load-error { max-width: 520px; padding: 16px; color: var(--danger); }

/* ---------- page header ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ph-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ph-text { min-width: 0; }
.ph-kicker { font-size: 12px; color: var(--muted); }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 500; overflow-wrap: anywhere; text-wrap: balance; }
.page-head .muted { font-size: 13px; margin-top: 2px; }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- lists ---------- */
.list-page { display: flex; flex-direction: column; height: 100%; min-height: 460px; }
.list-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.chip-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 4px 10px 4px 12px; font-size: 13px; cursor: pointer; color: var(--text-2); white-space: nowrap; }
.chip-btn:hover { background: var(--hover); }
.chip-btn.on { background: #d5ecec; border-color: #d5ecec; color: #003737; font-weight: 500; }
.chip-n { font-size: 11px; background: var(--line-soft); color: var(--muted); border-radius: 10px; padding: 0 7px; font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 4px; }
.chip-btn.on .chip-n { background: var(--surface); color: #003737; }
.lb-right { display: flex; align-items: center; gap: 8px; }
.lb-search { width: 240px; border-radius: 18px; padding: 6px 12px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl-wrap.fixed { flex: 1; min-height: 0; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.erp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.erp-table th { background: var(--panel); color: var(--text-2); font-weight: 500; text-align: left; padding: 0 10px; height: 36px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl-wrap.fixed .erp-table th { position: sticky; top: 0; z-index: 1; }
.erp-table td { padding: 0 10px; height: 36px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.erp-table tbody tr:hover td { background: var(--hover); }
.erp-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.erp-table tfoot td { font-weight: 500; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 0; font-variant-numeric: tabular-nums; }
.tbl-wrap.fixed .erp-table tfoot td { position: sticky; bottom: 0; }
.erp-table tr.late td:nth-child(4) { color: var(--danger); }
.erp-table tr.opening td { background: var(--bg); font-style: italic; }
.erp-table tr.dim td { color: var(--muted); }
.erp-table tr.spacer td, .erp-table tr.spacer:hover td { padding: 0; border: 0; height: auto; background: none; }
.erp-table .c-num { width: 34px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; padding: 0 4px 0 8px; }
.erp-table .c-act { width: 40px; text-align: right; padding: 0 4px; }
.erp-table .c-sel { width: 34px; padding-right: 0; }
.erp-table td .btn { padding: 3px 10px; font-size: 12px; }
.card > .tbl-wrap .erp-table tr:last-child td { border-bottom: 0; }
.tbl-card { overflow: hidden; }
.th-btn { border: 0; background: none; font: inherit; color: inherit; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; padding: 0; }
.th-btn:disabled { cursor: default; }
.num .th-btn { flex-direction: row-reverse; }
.sort-ic { font-size: 15px; color: var(--accent); }
.crm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.crm-table th { text-align: left; font-weight: 500; color: var(--text-2); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.crm-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); }
.crm-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- records ---------- */
.rec-page { padding-bottom: 40px; }
.rec-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 16px; align-items: start; }
.rec-main, .rec-side { min-width: 0; }
.rec-body:not(:has(.rec-side)) { grid-template-columns: minmax(0, 1fr); }
.save-bar { position: sticky; top: -20px; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 16px; margin-bottom: 14px; background: #fff8e1; border: 1px solid #f9df9a; border-radius: 12px; box-shadow: 0 2px 6px rgba(60, 64, 67, .12); }
.save-bar .sb-text { flex: 1; font-size: 13px; color: var(--warn); font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 24px; margin: 0; padding: 16px; }
.fact { min-width: 0; }
.fact dt { font-size: 12px; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.fact.big dd { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; padding: 4px 16px 16px; }
.card > .form-grid:first-child { padding-top: 16px; }
.fg-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fg-cell.wide { grid-column: 1 / -1; }
.fg-cell input[type=checkbox] { width: 18px; height: 18px; margin: 7px 0; }
.fg-hint { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.req { color: var(--danger); text-decoration: none; margin-right: 2px; }
.inp.num { text-align: right; font-variant-numeric: tabular-nums; }
.inp.invalid, .inp.invalid:focus { outline: 2px solid #e8a39c; outline-offset: -1px; border-color: transparent; background: var(--bg); }
.inp[readonly], .inp:disabled { background: var(--sunk); color: var(--text-2); }
textarea.inp { resize: vertical; }
.totals { padding: 4px 16px 14px; }
.tot-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.tot-row:last-child { border-bottom: 0; }
.tot-row.strong { font-weight: 600; font-size: 15px; }
.tot-row.bad .tot-v { color: var(--danger); font-weight: 600; }
.tot-row.good .tot-v { color: var(--ok); }

/* account picker & lookups */
.acct { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-in { font-family: var(--mono); font-size: 13px; }
.acct-desc { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 15px; }
.acct-desc.err { color: var(--danger); }
.acct.compact .acct-desc { max-width: 260px; }
.dd { position: fixed; z-index: 1500; background: var(--surface); border-radius: 10px; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); padding: 4px 0; max-height: 320px; overflow: auto; max-width: min(460px, calc(100vw - 16px)); }
.dd-opt { padding: 6px 12px; cursor: pointer; }
.dd-opt:hover, .dd-opt.hi { background: var(--hover); }
.dd-main { font-size: 13px; }
.dd-sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-empty { padding: 8px 12px; font-size: 13px; color: var(--muted); }

/* line grids */
.lines { padding: 0 0 12px; }
.lines-scroll { overflow-x: auto; }
.lines-table td { height: auto; padding: 5px 6px; vertical-align: top; overflow: visible; max-width: none; }
.lines-table th { padding: 0 6px; }
.lines-table .inp { padding: 5px 7px; font-size: 13px; }
.lines-table td.c-num { padding-top: 12px; }
.lines-table td.c-act { padding-top: 6px; }
.lines-table .lc-Account { min-width: 210px; }
.lines-table .lc-Description { min-width: 180px; }
.lines-table .lc-Debit, .lines-table .lc-Credit, .lines-table .lc-Amount, .lines-table .lc-UnitPrice { min-width: 110px; }
.lines-table .lc-Quantity { min-width: 80px; }
.lines-table .lc-SiteName, .lines-table .lc-AddressLine1, .lines-table .lc-City { min-width: 140px; }
.lines-table .lc-TaxCode, .lines-table .lc-UOM, .lines-table .lc-LineType { min-width: 100px; }
.lines-table .lc-NeedByDate { min-width: 140px; }
.lines-table .lc-ItemNumber { min-width: 120px; }
.lines-table tbody tr:hover td { background: none; }
.add-line { margin: 10px 12px 0; }
.card-foot .ref-link { font-weight: 500; }

/* ---------- home ---------- */
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.home-head h1 { margin: 0; font-size: 24px; font-weight: 500; }
.home-head .muted { font-size: 13px; margin-top: 2px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
a.tile:hover { border-color: #9fcfcf; }
.tile-label { font-size: 13px; color: var(--muted); }
.tile-value { font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tile.neg .tile-value { color: var(--danger); }
.tile-sub { font-size: 12px; color: var(--muted); }
.tile-sub.bad { color: var(--danger); font-weight: 500; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.home-col { min-width: 0; display: flex; flex-direction: column; }
.chart-card .card-head { align-items: flex-start; flex-wrap: nowrap; }
.chart-body { padding: 4px 16px 14px; overflow-x: auto; }
.chart-host { min-height: 120px; }
.chart-sub { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.todo { list-style: none; margin: 0; padding: 0 8px 8px; }
.todo-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 8px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.todo-btn:hover { background: var(--sunk); }
.todo-btn > .material-symbols-outlined:first-child { color: var(--prog); background: #e0f0f0; border-radius: 50%; padding: 6px; font-size: 18px; }
.todo-btn.warn > .material-symbols-outlined:first-child { color: var(--danger); background: var(--danger-soft); }
.todo-text { flex: 1; display: flex; flex-direction: column; gap: 1px; font-size: 14px; min-width: 0; }
.todo-go { color: var(--muted); }
.recent { list-style: none; margin: 0; padding: 0 8px 8px; }
.recent-link { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--text); }
.recent-link:hover { background: var(--sunk); }
.recent-text { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.recent-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oracle-card .card-head h2::before { content: ''; width: 10px; height: 10px; border-radius: 2px; background: var(--prog); display: inline-block; }
.oracle-card p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; }

/* ---------- general ledger ---------- */
.fs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: start; }
.fs-card { margin-bottom: 0; }
.fs-grid + .card { margin-top: 16px; }
.fs-scroll { overflow-x: auto; padding: 0 16px 14px; }
.fs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fs-table td { padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.fs-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.fs-head td { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); padding-top: 14px; border-bottom: 1px solid var(--line); }
.fs-total td { font-weight: 500; border-bottom: 1px solid var(--line); }
.fs-total.grand td { font-weight: 600; font-size: 15px; border-top: 2px solid #3c4043; border-bottom: 3px double #3c4043; padding: 8px 0; }
.fs-acc { color: var(--text); text-decoration: none; }
.fs-acc:hover { color: var(--accent); }
.fs-acc .mono { color: var(--muted); margin-right: 4px; }
.inq-desc { font-size: 14px; color: var(--text-2); margin: -4px 0 12px; }
.inq-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.inq-sum > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; min-width: 0; }
.inq-v { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.coa-table td { height: auto; padding: 4px 8px; overflow: visible; }
.coa-table .inp { padding: 4px 7px; font-size: 13px; }
.coa-values .chips { padding: 0 16px 10px; }
.coa-add { display: grid; grid-template-columns: 120px minmax(0, 1fr) 160px auto; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid var(--line-soft); align-items: center; }
.coa-add:not(:has(select)) { grid-template-columns: 120px minmax(0, 1fr) auto; }

/* ---------- payables / receivables workbenches ---------- */
.pay-table td { height: auto; padding: 5px 10px; }
.pay-amt { width: 130px; padding: 5px 8px; font-size: 13px; }
.pay-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.pay-total { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; margin-right: auto; }
.pay-total.bad { color: var(--danger); }
.recv-table td { height: auto; padding: 5px 8px; }
.recv-table .inp { width: 110px; }

/* ---------- Oracle ---------- */
.imp-pick { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr); gap: 16px; padding: 16px; align-items: stretch; }
.imp-drop { border: 2px dashed #b9c4ce; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px 16px; text-align: center; background: var(--bg); }
.imp-drop.over { border-color: var(--accent); background: var(--info-soft); }
.imp-drop > .material-symbols-outlined { font-size: 36px; color: var(--prog); }
.imp-drop-title { font-size: 16px; font-weight: 500; }
.imp-drop .btn { margin-top: 6px; }
.imp-kinds { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; }
.imp-busy { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.imp-busy .spinner { width: 20px; height: 20px; border-width: 2px; }
.plan-table td { height: auto; padding: 6px 10px; white-space: normal; }
.plan-table td:nth-child(2) { max-width: 320px; overflow-wrap: anywhere; }
.plan-table select { width: auto; min-width: 170px; padding: 4px 6px; font-size: 13px; }
.imp-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2px 20px; padding: 10px 16px 6px; border-top: 1px solid var(--line-soft); }
.imp-opts .muted { font-size: 12px; }
.imp-result h2 .material-symbols-outlined { color: var(--ok); }
.imp-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.imp-list li { display: flex; align-items: center; gap: 8px; }
.imp-list .material-symbols-outlined { font-size: 18px; color: var(--prog); }
.imp-more { margin-top: 8px; font-size: 13px; }
.imp-more summary { cursor: pointer; font-weight: 500; }
.imp-more.bad summary { color: var(--danger); }
.imp-help { padding: 0; }
.imp-help > summary { padding: 14px 16px; cursor: pointer; font-weight: 500; font-size: 15px; }
.imp-help[open] > summary { border-bottom: 1px solid var(--line-soft); }
.map-scroll { max-height: 60vh; }
.map-table td { white-space: normal; height: auto; padding: 6px 10px; vertical-align: top; overflow: visible; }
.map-table select { width: 100%; min-width: 180px; }
.map-ex { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; font-family: var(--mono); }
.exp-list { display: flex; flex-direction: column; }
.exp-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line-soft); }
.exp-row:first-child { border-top: 0; }
.exp-row > input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.exp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.exp-main .muted { font-size: 13px; }
.exp-title { font-size: 15px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.exp-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.exp-filters .fg-cell { min-width: 150px; }
.exp-filters .inp { padding: 5px 8px; font-size: 13px; }
.exp-note { font-style: italic; }
.exp-row > .btn { flex: none; }

/* ---------- responsive ---------- */
@media (max-width: 1150px) {
  .rec-body, .home-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .imp-pick { grid-template-columns: 1fr; }
  .inq-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  #erp-main { padding: 14px 16px 24px; }
  #erp-subnav { padding-left: 16px; padding-right: 16px; }
  .lb-right { flex: 1; }
  .lb-search { width: 100%; }
  .page-head h1 { font-size: 20px; }
  .tile-value { font-size: 24px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .toolbar-row .fg-cell, .toolbar-row .fg-cell.wide { flex: 1 1 100%; max-width: none; }
  .coa-add, .coa-add:not(:has(select)) { grid-template-columns: 1fr; }
  .exp-row { flex-wrap: wrap; }
  .exp-row > .btn { margin-left: 30px; }
  .save-bar { top: -14px; }
  .list-page { min-height: 70vh; }
}
