/* Invoice Manager. Ported from the approved mockup "N2X Invoice Manager v2" (artifact VNmxRRgJCaEicyF1E2bPYd);
   tokens and components follow Ops Connect (ops-connect/stock-manager/css/style.css). */
/* Layout: ops-connect header + two columns — the document on the left, context (dossier/obra) and reconciliation in a sticky column on the right. */
:root {
    --bg: #f5f6f8; --surface: #ffffff; --surface-2: #eef1f4; --border: #e1e3e6;
    --text: #181a1c; --muted: #5b6169; --accent: #3a6ea5; --accent-ink: #ffffff; --accent-soft: #dde8f2;
    --danger: #b91c1c;
    --shadow: 0 1px 2px rgba(24,26,28,.04), 0 8px 24px -12px rgba(24,26,28,.16);
    --st-pending-fg: #6b6458; --st-pending-bg: #efece5;
    --st-hold-fg: #92650a;   --st-hold-bg: #f8ecd2;
    --st-done-fg: #15803d;   --st-done-bg: #dcf3e2;
    --st-cancel-fg: #b91c1c; --st-cancel-bg: #fbe2e0;
    --t-inv: #0e7c86;
    --brand-g1: #a06bff; --brand-g2: #6a2fd6; --brand-fill: #ffffff; --brand-ink: #0f172a; --brand-sub: #7c3aed;
    --brand-font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --ob1: #2f6fc0; --ob2: #c2570c; --ob3: #7a55b8; --ob4: #0f8a5f; --ob5: #a8326e; --ob6: #8a6d0b; --ob7: #0e7490; --ob8: #b4232f;
    --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #101214; --surface: #16181b; --surface-2: #1d2024; --border: #2e3236;
        --text: #e8eaec; --muted: #9aa0a6; --accent: #7fa8d6; --accent-ink: #16181b; --accent-soft: #242c35;
        --danger: #f5a19c;
        --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 28px -14px rgba(0,0,0,.55);
        --st-pending-fg: #b3aa9a; --st-pending-bg: #2a2721;
        --st-hold-fg: #f0c264;   --st-hold-bg: #332512;
        --st-done-fg: #7fe0a0;   --st-done-bg: #142e1e;
        --st-cancel-fg: #f5a19c; --st-cancel-bg: #3a1a17;
        --t-inv: #4dbdc6;
        --brand-g1: #c9a7ff; --brand-g2: #7b3fe4; --brand-fill: #07101b; --brand-ink: #ffffff; --brand-sub: #c9a7ff;
        --ob1: #6b9fe0; --ob2: #e8894a; --ob3: #a98be0; --ob4: #4cc994; --ob5: #e07aa9; --ob6: #d6b44a; --ob7: #4fc3dc; --ob8: #f07a82;
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #101214; --surface: #16181b; --surface-2: #1d2024; --border: #2e3236;
    --text: #e8eaec; --muted: #9aa0a6; --accent: #7fa8d6; --accent-ink: #16181b; --accent-soft: #242c35;
    --danger: #f5a19c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 28px -14px rgba(0,0,0,.55);
    --st-pending-fg: #b3aa9a; --st-pending-bg: #2a2721;
    --st-hold-fg: #f0c264;   --st-hold-bg: #332512;
    --st-done-fg: #7fe0a0;   --st-done-bg: #142e1e;
    --st-cancel-fg: #f5a19c; --st-cancel-bg: #3a1a17;
    --t-inv: #4dbdc6;
    --brand-g1: #c9a7ff; --brand-g2: #7b3fe4; --brand-fill: #07101b; --brand-ink: #ffffff; --brand-sub: #c9a7ff;
    --ob1: #6b9fe0; --ob2: #e8894a; --ob3: #a98be0; --ob4: #4cc994; --ob5: #e07aa9; --ob6: #d6b44a; --ob7: #4fc3dc; --ob8: #f07a82;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); padding-inline: 16px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
svg.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--t-inv); outline-offset: 2px; }
.wrap { max-width: 112rem; margin: 0 auto; padding-block: 20px 64px; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; min-width: 0; }
.lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }

/* Header (ops-connect) */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; border-radius: 10px; }
.brand .brand-hex { width: 40px; height: 40px; }
.brand h1 { font-family: var(--brand-font); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.brand p { margin: 1px 0 0; font-size: 12px; color: var(--muted); }
.brand p.pw b { font-family: var(--brand-font); font-weight: 700; color: var(--text); }
.brand p.pw .sub2 { font-size: .62em; font-weight: 800; color: var(--brand-sub); vertical-align: -.18em; margin: 0 .02em; }
/* Section tabs under the header, as in Ops Connect's Package Builder: the active one is raised and joined to the content. */
.vtabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 6px; margin-bottom: -2px; min-width: 0; }
.vtabs button { position: relative; bottom: -1px; padding: 9px 18px 10px; font-size: 15px; font-weight: 600; color: var(--muted); background: transparent; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; cursor: pointer; }
.vtabs button:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.vtabs button[aria-selected="true"] { color: var(--text); background: var(--surface); border-color: var(--border); box-shadow: inset 0 3px 0 var(--t-inv); }
.vtabs button:focus-visible { outline: 2px solid var(--t-inv); outline-offset: -2px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; padding: 1px 10px; border-radius: 999px; background: color-mix(in srgb, var(--t-inv) 12%, var(--surface)); color: color-mix(in srgb, var(--t-inv) 75%, var(--text)); border: 1px solid color-mix(in srgb, var(--t-inv) 30%, var(--surface)); white-space: nowrap; }
.who { font-size: 12px; color: var(--muted); }
.link { border: 0; background: none; color: var(--t-inv); cursor: pointer; font-weight: 500; padding: 4px 6px; border-radius: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 2px; }
.icbtn { border: 1px solid var(--border); background: var(--surface); border-radius: 9px; padding: 6px; display: inline-flex; cursor: pointer; color: var(--muted); }
.icbtn:hover { color: var(--text); border-color: var(--text); }
.banner { display: flex; align-items: center; gap: 10px; background: var(--st-hold-bg); color: var(--st-hold-fg); border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 500; }

/* Buttons */
.btn { border: 1px solid var(--border); background: var(--surface); border-radius: 9px; padding: 7px 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--text); white-space: nowrap; }
.btn:hover { border-color: var(--t-inv); }
.btn.t { background: var(--t-inv); border-color: var(--t-inv); color: #fff; }
.btn.t:hover { filter: brightness(1.08); }
.btn.sm { padding: 4px 10px; font-size: 12.5px; }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.dng { background: var(--st-cancel-fg); border-color: var(--st-cancel-fg); color: var(--surface); }
.btn.dng:hover { filter: brightness(1.08); }
kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--surface); color: var(--muted); white-space: nowrap; }
.btn.t kbd { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }

/* Page title */
.ptitle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ti { --tc: var(--t-inv); display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 10px; width: 36px; height: 36px; color: var(--tc); background: color-mix(in srgb, var(--tc) 13%, var(--surface)); }
.ptitle h2 { font-size: 19px; letter-spacing: -.01em; }
.ptitle p { margin: 0; color: var(--muted); font-size: 13px; }
.ptitle .grow { flex: 1 1 16rem; min-width: 0; }

/* Two-column entry layout */
.lz { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 16px; align-items: start; }
.main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 1080px) { .lz { grid-template-columns: 1fr; } .side { position: static; order: -1; } }
.sec-h { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sec-h h3 { font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.cnt { font-size: 11px; font-weight: 700; background: var(--surface-2); border-radius: 999px; padding: 1px 8px; color: var(--text); }

/* Scanner */
.scan { display: flex; gap: 8px; }
.scan input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 18px; padding: 10px 12px; border: 2px solid var(--t-inv); border-radius: 11px; background: var(--surface); color: var(--text); }
.scan input::placeholder { color: var(--muted); font-size: 15px; }
.scan input:focus-visible { outline: 3px solid color-mix(in srgb, var(--t-inv) 35%, transparent); outline-offset: 1px; }
.sims { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.sims button { border: 1px dashed var(--border); background: none; border-radius: 999px; padding: 2px 10px; font-size: 12px; cursor: pointer; color: var(--text); }
.sims button:hover { border-color: var(--t-inv); }
.res { --c: var(--st-done-fg); margin-top: 10px; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 7%, var(--surface)); border-radius: 0 10px 10px 0; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.res.warn { --c: var(--st-hold-fg); } .res.err { --c: var(--st-cancel-fg); } .res.info { --c: var(--accent); }
.res b { color: var(--c); display: flex; gap: 8px; align-items: center; }
.res p { margin: 0; font-size: 13px; }
.res .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* Document header */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 10px 12px; }
.f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.f.w2 { grid-column: span 2; }
@media (max-width: 560px) { .f.w2 { grid-column: auto; } }
.f label { font-size: 11.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.f label svg.ic { width: 12px; height: 12px; }
.inp { width: 100%; min-width: 0; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 6px 9px; color: var(--text); }
.inp:disabled { background: var(--surface-2); color: var(--text); border-color: transparent; opacity: 1; cursor: default; -webkit-text-fill-color: var(--text); }
select.inp:disabled { appearance: none; }
.inp.r { text-align: right; font-variant-numeric: tabular-nums; }
.locknote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.locknote svg.ic { width: 15px; height: 15px; color: var(--t-inv); }
.at { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.at b { color: var(--text); font-weight: 600; }
.at .ok { color: var(--st-done-fg); font-weight: 600; }
.at .wn { color: var(--st-hold-fg); font-weight: 600; }
.rt { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
.rt th { text-align: right; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 4px 6px; }
.rt th:first-child, .rt td:first-child { text-align: left; }
.rt td { padding: 3px 6px; text-align: right; font-variant-numeric: tabular-nums; }
.rt td:first-child { font-weight: 600; white-space: nowrap; }
.rt td .inp { max-width: 9rem; margin-left: auto; display: block; }
.rt tr.tot td { border-top: 1px solid var(--border); padding-top: 7px; font-weight: 700; }
.newforn { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--st-hold-bg); color: var(--st-hold-fg); border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; font-size: 13px; font-weight: 500; }
.newforn input { flex: 1 1 14rem; min-width: 0; }
.ro { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; font-size: 13px; }

/* Lines grid */
.lwrap { overflow-x: auto; margin-inline: -4px; padding-inline: 4px; }
.lg { min-width: 52rem; display: flex; flex-direction: column; }
.lr { --oc: transparent; display: grid; grid-template-columns: 1.5rem 7.6rem minmax(14rem, 1fr) 4.8rem 5.2rem 6rem 4.2rem 5.6rem 2.6rem 7rem 1.8rem; gap: 5px; align-items: center; padding: 3px 4px 3px 6px; border-left: 3px solid var(--oc); border-radius: 0 8px 8px 0; }
.lr.h { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; border-left-color: transparent; padding-bottom: 6px; }
.lr.h > :nth-child(n+5):nth-child(-n+8), .lr.h > :nth-child(10) { text-align: right; }
.lr { --rowbg: var(--surface); }
.lr:not(.h):focus-within { --rowbg: color-mix(in srgb, var(--t-inv) 6%, var(--surface)); background: var(--rowbg); }
/* Total and delete stay pinned to the right while the grid scrolls sideways. */
.lr > :nth-child(10), .lr > :nth-child(11) { position: sticky; background: var(--rowbg); z-index: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.lr > :nth-child(11) { right: 0; align-items: center; }
.lr > :nth-child(10) { right: calc(1.8rem + 5px); box-shadow: -8px 0 8px -8px color-mix(in srgb, var(--text) 25%, transparent); padding-left: 6px; }
.lr.h > :nth-child(10) { align-items: flex-end; }
.lr .n { font-size: 11px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.ci { width: 100%; min-width: 0; border: 1px solid var(--border); background: var(--surface); border-radius: 7px; padding: 5px 7px; color: var(--text); }
.ci.r { text-align: right; font-variant-numeric: tabular-nums; }
.ci.cod { font-family: var(--mono); font-size: 13px; }
.ci:disabled { background: transparent; border-color: transparent; -webkit-text-fill-color: var(--text); opacity: 1; }
.dcell { position: relative; min-width: 0; }
.dcell .ci { padding-right: 4.6rem; }
.tag { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 0 6px; pointer-events: none; }
.tag.chg { color: var(--st-hold-fg); background: var(--st-hold-bg); }
.tag.new { color: var(--accent); background: var(--accent-soft); }
.tag.cat { color: var(--st-done-fg); background: var(--st-done-bg); }
.obtn { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; border: 1px solid var(--border); background: var(--surface); border-radius: 7px; padding: 5px 7px; cursor: pointer; text-align: left; }
.obtn { justify-content: center; padding: 3px; }
/* Obra bubble: colour + 2-letter code, so obras sharing a colour still tell apart. */
.obub { --oc2: var(--oc, var(--muted)); display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--oc2); color: #fff; font: 700 10.5px/1 var(--mono); font-style: normal; letter-spacing: .02em; }
.pal li .obub { width: 30px; height: 30px; font-size: 11.5px; }
.obtn:disabled { cursor: default; border-color: transparent; background: transparent; }
.odot { width: 9px; height: 9px; border-radius: 999px; background: var(--oc, var(--muted)); flex: none; }
.ltot { text-align: right; font-variant-numeric: tabular-nums; line-height: 1.25; }
.ltot b { font-weight: 600; display: block; }
.ltot small { color: var(--muted); font-size: 11px; }
.lx { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 17px; line-height: 1; padding: 3px; border-radius: 6px; }
.lx:hover { color: var(--st-cancel-fg); background: var(--surface-2); }
/* Active line: the row stays in place and a detail strip opens underneath it. */
.lr.on { --rowbg: color-mix(in srgb, var(--t-inv) 7%, var(--surface)); background: var(--rowbg); border-radius: 0 8px 0 0; }
.ldet { --oc: var(--t-inv); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px 18px; margin-bottom: 6px; padding: 4px 10px 10px calc(1.5rem + 11px); border-left: 3px solid var(--oc); border-radius: 0 0 8px 8px; background: color-mix(in srgb, var(--t-inv) 7%, var(--surface)); }
.ldet .ci { font-size: 14px; padding: 7px 9px; }
.ldet .f label.lbl { font-size: 11px; color: var(--muted); }
.dinfo { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; min-width: 0; }
.di { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.di small { color: var(--muted); }
.okc { color: var(--st-done-fg); font-weight: 600; }
.wnc { color: var(--st-hold-fg); font-weight: 600; }
.lfoot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.keys { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.keys span { display: inline-flex; gap: 5px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 4px 10px; font-size: 12.5px; cursor: pointer; border-right: 1px solid var(--border); color: var(--text); font-weight: 600; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.seg button:disabled { cursor: default; }

/* Context panel */
.ctx { display: flex; flex-direction: column; gap: 12px; }
.ctx .row { display: flex; flex-direction: column; gap: 5px; }
.obig { --oc: var(--muted); display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--border); border-left: 5px solid var(--oc); background: var(--surface); border-radius: 10px; padding: 8px 10px; cursor: pointer; text-align: left; }
.obig:hover { border-color: var(--oc); }
.obig .t { flex: 1; min-width: 0; }
.obig .t b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obig .t small { color: var(--muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent { display: flex; flex-wrap: wrap; gap: 5px; }
.recent button { --oc: var(--muted); display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 2px 9px; font-size: 12px; cursor: pointer; }
.recent button:hover { border-color: var(--oc); }
.dsub { font-size: 12px; color: var(--muted); }

/* Reconciliation */
.st { --c: var(--st-hold-fg); --b: var(--st-hold-bg); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; padding: 2px 10px 2px 7px; border-radius: 999px; color: var(--c); background: var(--b); border: 1.5px solid transparent; white-space: nowrap; }
.st i { font-style: normal; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 999px; font-size: 12px; line-height: 1; background: var(--c); color: var(--surface); }
.st.ok { --c: var(--st-done-fg); --b: var(--st-done-bg); }
.st.approx { --c: var(--st-done-fg); --b: var(--st-done-bg); border-color: var(--st-hold-fg); }
.st.approx i { background: var(--st-hold-fg); }
.st.big { font-size: 13.5px; padding: 4px 12px 4px 8px; }
.st.big i { width: 20px; height: 20px; font-size: 13px; }
.prog { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.prog .l1 { display: flex; justify-content: space-between; font-size: 12.5px; gap: 8px; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; background: var(--t-inv); transition: width .2s; }
.bar i.over { background: var(--st-cancel-fg); }
.falta { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.falta.zero { color: var(--st-done-fg); }
.falta.neg { color: var(--st-cancel-fg); }
.ct { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 12px; }
.ct th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; text-align: right; padding: 3px 4px; }
.ct th:first-child, .ct td:first-child { text-align: left; }
.ct td { padding: 4px; text-align: right; font-variant-numeric: tabular-nums; border-top: 1px solid var(--border); white-space: nowrap; }
.ct td.k { font-weight: 600; }
.ct td.sub { color: var(--muted); font-size: 11px; padding-top: 0; border-top: 0; }
.ct .d0 { color: var(--st-done-fg); font-weight: 700; }
.ct .d1 { color: var(--st-hold-fg); font-weight: 700; }
.ct .d2 { color: var(--st-cancel-fg); font-weight: 700; }
.ct tr.tot td { border-top: 2px solid var(--border); font-weight: 700; }
.issues { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--st-hold-fg); }
.issues li::before { content: "• "; }
.byobra { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.byobra div { --oc: var(--muted); display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.byobra div span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.byobra div b { font-variant-numeric: tabular-nums; font-weight: 600; }
.tolnote { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.savebar { display: flex; gap: 8px; flex-wrap: wrap; }
.savebar .btn.t { flex: 1; }

/* Empty / placeholders */
.empty { text-align: center; padding: 34px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ti { width: 54px; height: 54px; border-radius: 14px; }
.empty .ti svg.ic { width: 28px; height: 28px; }
.empty h3 { color: var(--text); font-size: 16px; }
.empty p { margin: 0; max-width: 32rem; }
.empty ul { text-align: left; margin: 4px 0 0; padding-left: 18px; max-width: 32rem; }

/* Documents list */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { --c: var(--t-inv); display: flex; flex-direction: column; gap: 1px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--c); border-radius: 12px; padding: 9px 12px; box-shadow: var(--shadow); min-width: 0; }
.kpi b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.2; }
.kpi span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.kpi.w { --c: var(--st-hold-fg); } .kpi.g { --c: var(--st-done-fg); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.tools select, .tools input { border: 1px solid var(--border); background: var(--surface); border-radius: 9px; padding: 6px 9px; }
.tools input { flex: 1 1 14rem; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.twrap { overflow-x: auto; }
.dt { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 52rem; }
.dt th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.dt td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dt tbody tr { cursor: pointer; }
.dt tbody tr:hover td { background: var(--surface-2); }
.dt tbody tr:last-child td { border-bottom: 0; }
.dt .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dt td.act { text-align: right; white-space: nowrap; }
.dt td.act .uact { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.col2fa { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.mst { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
.mst.on { color: var(--st-done-fg); background: var(--st-done-bg); }
.mst.off { color: var(--st-pending-fg); background: var(--st-pending-bg); }
.mst.lock { color: var(--st-hold-fg); background: var(--st-hold-bg); }
.col2fa .sub { font-size: 11.5px; color: var(--muted); }
.mlist { margin: 6px 0 0; padding-left: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.opills { display: flex; flex-wrap: wrap; gap: 4px; }
.opill { --oc: var(--muted); display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 0 8px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.dsp { font-size: 12px; font-weight: 600; white-space: nowrap; }
.dsp.closed { color: var(--muted); }
.lock-i { display: inline-flex; vertical-align: -3px; color: var(--muted); }
.lock-i svg.ic { width: 14px; height: 14px; }

/* Typeahead, palette, modal, toast */
#ta { position: fixed; z-index: 50; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 4px; max-height: 18rem; overflow-y: auto; min-width: 22rem; max-width: calc(100vw - 32px); }
#ta div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 7px; cursor: pointer; font-size: 13px; }
#ta div[aria-selected="true"] { background: color-mix(in srgb, var(--t-inv) 12%, var(--surface)); }
#ta .c { font-family: var(--mono); font-size: 12px; color: var(--muted); }
#ta .p { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
#ta .hd { display: block; font-size: 11px; color: var(--muted); padding: 4px 8px 2px; cursor: default; }
.ovl { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--text) 35%, transparent); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.pal { width: min(30rem, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.pal h4 { font-size: 13px; color: var(--muted); font-weight: 600; }
.pal input { border: 2px solid var(--t-inv); border-radius: 10px; padding: 8px 11px; font-size: 15px; background: var(--surface); }
.pal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 20rem; overflow-y: auto; }
.pal li { --oc: var(--muted); display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 9px; cursor: pointer; }
.pal li[aria-selected="true"] { background: color-mix(in srgb, var(--oc) 13%, var(--surface)); }
.pal li .t { flex: 1; min-width: 0; }
.pal li .t b { display: block; font-size: 13.5px; }
.pal li .t small { color: var(--muted); font-size: 12px; }
.pal li em { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pal .ft { font-size: 11.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.mdl { width: min(34rem, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mdl h3 { font-size: 16px; }
.mdl p { margin: 0; color: var(--muted); }
.mdl .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.chg { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chg li { border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; gap: 6px; }
.chg .ft { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.chg s { color: var(--muted); }
.chg b { color: var(--t-inv); font-weight: 600; }
.chg label { display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 600; cursor: pointer; }
#toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; z-index: 70; max-width: calc(100% - 32px); text-align: center; }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }

/* --- Login (same look as Ops Connect, mockup "Invoice Manager Login") --- */
/* N2Forge brand on the login (body.brand-login): light = Variant B (Light Cyan), dark = Variant A (Dark Cyan).
   Only the brand elements use the brand font (Segoe UI); the rest stays in IBM Plex. */
body.brand-login {
    --bg: #f8fafc; --surface: #ffffff; --surface-2: #f1f5f9; --border: #e2e8f0;
    --text: #0f172a; --muted: #5b6b80; --accent: #0084d1; --accent-ink: #ffffff; --accent-soft: #e0f2fe;
    --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px -12px rgba(15,23,42,.18);
    --err-fg: #9b1c1c; --err-bg: #fdecec; --err-line: #d92d20; --err-ring: rgba(217,45,32,.18);
    --warn-bg: #fff4d6; --warn-fg: #7a5200;
    --brand-g1: #a06bff; --brand-g2: #6a2fd6; --brand-fill: #ffffff; --brand-ink: #0f172a; --brand-sub: #7c3aed;
    --brand-font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body.brand-login {
        --bg: #07101b; --surface: #0c1726; --surface-2: #122136; --border: #1e3048;
        --text: #e6f1fa; --muted: #93a6bc; --accent: #00d2ff; --accent-ink: #07101b; --accent-soft: #0a2a3d;
        --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 28px -14px rgba(0,0,0,.7);
        --err-fg: #f5a19c; --err-bg: #3a1618; --err-line: #f0645c; --err-ring: rgba(240,100,92,.22);
        --warn-bg: #3a2f10; --warn-fg: #f2d17a;
        --brand-g1: #c9a7ff; --brand-g2: #7b3fe4; --brand-fill: #07101b; --brand-ink: #ffffff; --brand-sub: #c9a7ff;
    }
}
:root[data-theme="dark"] body.brand-login {
    --bg: #07101b; --surface: #0c1726; --surface-2: #122136; --border: #1e3048;
    --text: #e6f1fa; --muted: #93a6bc; --accent: #00d2ff; --accent-ink: #07101b; --accent-soft: #0a2a3d;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 28px -14px rgba(0,0,0,.7);
    --err-fg: #f5a19c; --err-bg: #3a1618; --err-line: #f0645c; --err-ring: rgba(240,100,92,.22);
    --warn-bg: #3a2f10; --warn-fg: #f2d17a;
    --brand-g1: #c9a7ff; --brand-g2: #7b3fe4; --brand-fill: #07101b; --brand-ink: #ffffff; --brand-sub: #c9a7ff;
}
.login-wrap { display: flex; justify-content: center; margin-top: 12vh; }
.login-card { width: 100%; max-width: 23rem; padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 6px; }
.login-card.wide { max-width: 27rem; }
.login-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.login-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-hex { width: 56px; height: 56px; flex: none; display: block; }
.brand-hex svg { width: 100%; height: 100%; display: block; overflow: visible; }
.login-card .login-brand h1 { margin: 0; font-family: var(--brand-font); font-weight: 700; font-size: 23px; line-height: 1.15; letter-spacing: -.01em; }
.by-n2 { display: block; margin-top: 2px; font-family: var(--brand-font); font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.by-n2 b { font-weight: 700; color: var(--brand-ink); }
.by-n2 .sub2 { font-size: .62em; font-weight: 800; color: var(--brand-sub); vertical-align: -.18em; margin: 0 .02em; }
.login-card label { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.login-card input:not([type=checkbox]) { width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 9px; padding: 9px 11px; }
.login-card :focus-visible { outline-color: var(--accent); }
.login-card .btn:hover { border-color: var(--accent); }
.login-card .btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-size: 15px; margin-top: 14px; }
.login-card .btn.sm { padding: 5px 11px; font-size: 12.5px; }
.login-card .link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.login-card .when { font-size: 12px; color: var(--muted); font-weight: 400; }
.login-card .lg-h { font-size: 17px; margin: 0; }
.login-card .lg-p { margin: 0 0 4px; color: var(--muted); font-size: 13.5px; }
.login-card input.lg-otp { font-family: var(--mono); font-size: 26px; letter-spacing: .35em; text-align: center; padding: 10px 8px 10px 16px; margin-top: 6px; }
.login-card input.lg-rec { font-size: 18px; letter-spacing: .12em; text-align: center; text-transform: uppercase; margin-top: 6px; }
.login-card input.bad { border: 2px solid var(--err-line); background: var(--err-bg); color: var(--err-fg); box-shadow: 0 0 0 4px var(--err-ring); animation: lg-shake .35s; }
.login-card input.lg-otp.bad { padding: 9px 7px 9px 15px; }
.login-card input.lg-rec.bad { padding: 8px 10px; }
@keyframes lg-shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .login-card input.bad { animation: none; } }
.login-card .lg-err { display: flex; gap: 12px; align-items: center; margin: 14px 0 0; padding: 10px 12px; border-radius: 9px; color: var(--err-fg); background: var(--err-bg); border: 1px solid var(--err-line); border-left-width: 4px; font-size: 13px; font-weight: 600; }
.login-card .lg-err svg.ic { width: 28px; height: 28px; flex: none; color: var(--err-line); }
.login-card .lg-msg { margin: 0 0 6px; background: var(--warn-bg); color: var(--warn-fg); border-radius: 9px; padding: 8px 11px; font-size: 13px; font-weight: 500; }
.login-card .lg-trust { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; font-size: 13px; font-weight: 400; color: var(--text); cursor: pointer; }
.login-card .lg-trust > span { display: flex; flex-direction: column; gap: 2px; }
.login-card .lg-trust input { margin: 2px 0 0; padding: 0; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
.lg-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 13px; }
.lg-links.lg-left { justify-content: flex-start; }
.lg-steps { margin: 0 0 4px; padding-left: 20px; font-size: 13.5px; display: flex; flex-direction: column; gap: 3px; }
.lg-qrrow { display: flex; gap: 14px; align-items: center; margin: 6px 0 2px; }
.lg-qr { padding: 6px; flex: none; background: #fff; border-radius: 12px; border: 1px solid var(--border); line-height: 0; }
.lg-qr svg, .lg-qr .lg-noqr { width: 150px; height: 150px; }
.lg-man { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lg-man code { font-family: var(--mono); font-size: 12.5px; word-break: break-all; background: var(--surface-2); border-radius: 7px; padding: 6px 8px; }
.lg-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: 15px; letter-spacing: .06em; text-align: center; margin: 4px 0; }
@media (max-width: 30rem) { .lg-qrrow { flex-direction: column; align-items: flex-start; } }
.error { color: var(--danger); font-size: .85rem; margin: .5rem 0 0; }
/* --- Only in the app (not in the mockup) --- */
.loading { text-align: center; margin-top: 15vh; color: var(--muted); }
.icbtn.txt { padding: 5px 10px; font-size: 12.5px; font-weight: 600; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
#view { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* Dossiers, Obras, Produtos, Administração */
.subtabs button { padding: 6px 12px; font-size: 13px; }
.vchip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 1px 9px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.vchip.open { color: var(--st-done-fg); background: var(--st-done-bg); }
.vchip.closed { color: var(--muted); background: var(--surface-2); }
.vchip .lock-i svg.ic { width: 12px; height: 12px; }
.lz2 { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 16px; align-items: start; }
.lz2 .stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 1080px) { .lz2 { grid-template-columns: 1fr; } }
.tl { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.tl li { position: relative; --c: var(--muted); }
.tl li::before { content: ""; position: absolute; left: -23px; top: 4px; width: 10px; height: 10px; border-radius: 999px; background: var(--surface); border: 2px solid var(--c); }
.tl li.created { --c: var(--accent); } .tl li.closed { --c: var(--st-done-fg); } .tl li.reopened { --c: var(--st-hold-fg); }
.tl .nt { margin-top: 3px; background: var(--surface-2); border-radius: 8px; padding: 4px 9px; display: inline-block; font-size: 12.5px; }
.mform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.mform .w2 { grid-column: span 2; }
.mform .f small { font-size: 11.5px; }
.flabel { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.swatches { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.swatches label { cursor: pointer; position: relative; }
.swatches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatches i { display: block; width: 26px; height: 26px; border-radius: 999px; background: var(--oc); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.swatches input:checked + i { box-shadow: 0 0 0 2px var(--text); }
.swatches input:focus-visible + i { outline: 2px solid var(--t-inv); outline-offset: 2px; }
.sw { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; color: var(--text); }
.sw input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; margin: 0; }
.sw span { width: 30px; height: 18px; border-radius: 999px; background: var(--border); position: relative; flex: none; transition: background .15s; }
.sw span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.sw input:checked + span { background: var(--st-done-fg); }
.sw input:checked + span::after { transform: translateX(12px); }
.sw input:focus-visible + span { outline: 2px solid var(--t-inv); outline-offset: 2px; }
.sw input:disabled + span { opacity: .55; cursor: not-allowed; }
.sw.sm span { width: 26px; height: 16px; }
.sw.sm span::after { width: 12px; height: 12px; }
.sw.sm input:checked + span::after { transform: translateX(10px); }
.lvl { display: inline-flex; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.lvl.edit { color: var(--accent); background: var(--accent-soft); }
/* Credit notes ↔ invoices */
.atag { display: inline-flex; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.atag.warn { background: var(--st-hold-bg); color: var(--st-hold-fg); }
.atag.link { background: color-mix(in srgb, var(--t-inv) 13%, var(--surface)); color: var(--t-inv); }
.assoc .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.arow { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; cursor: pointer; background: var(--surface); width: 100%; text-align: left; }
.arow:hover { border-color: var(--t-inv); }
.arow + .arow { margin-top: 6px; }
.arow .l { display: flex; flex-direction: column; min-width: 0; }
.arow .l small { color: var(--muted); font-size: 12.5px; }
.asum { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 8px; }
.asum b { color: var(--text); } .asum b.neg { color: var(--st-cancel-fg); }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.origpick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 34px; }
.pick { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.plist { overflow: auto; display: flex; flex-direction: column; gap: 6px; max-height: 50vh; }
.chips .warnchip { border-color: var(--st-hold-fg); color: var(--st-hold-fg); }
.chips .warnchip[aria-pressed="true"] { background: var(--st-hold-fg); color: var(--surface); }
.searchbox { display: flex; gap: 6px; flex: 1 1 18rem; min-width: 0; margin-left: auto; max-width: 34rem; }
.searchbox input { flex: 1; min-width: 0; }
.lvl.sys { color: var(--bg); background: var(--text); }
.lvl.admin { color: var(--t-inv); background: color-mix(in srgb, var(--t-inv) 13%, var(--surface)); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.keybox { border: 1px dashed var(--t-inv); border-radius: 10px; padding: 10px 12px; background: color-mix(in srgb, var(--t-inv) 6%, var(--surface)); }
.keybox .key { font-size: 13px; overflow-wrap: anywhere; user-select: all; font-weight: 600; }
.row-in { display: flex; gap: 8px; align-items: center; margin: 2px 0 4px; }
.sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 820px) { .sgrid { grid-template-columns: 1fr; } }
.sinp { border: 1px solid var(--border); background: var(--surface); border-radius: 9px; padding: 6px 9px; flex: 0 1 18rem; min-width: 0; }
.mdl.wide { width: min(46rem, 100%); }
.mdl { max-height: calc(100vh - 14vh - 16px); overflow-y: auto; }
.dt tr.hl td { background: color-mix(in srgb, var(--t-inv) 8%, var(--surface)); }
.btn.danger { color: var(--st-cancel-fg); }
.chg li { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.ptitle .obub { flex: none; }
