/* ---------- dashboard ---------- */
.hero { padding: 22px 24px; }
.hero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hero-main { min-width: 0; }
.hero-spark { flex: none; }
.hero-cash { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.hero .lbl { color: var(--ink-3); font-weight: 600; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.hero .big { font-size: 52px; line-height: 1.05; font-weight: 750; letter-spacing: -0.035em; margin: 6px 0 8px; }
.hero .big small { font-size: 22px; font-weight: 650; color: var(--ink-3); letter-spacing: 0; margin-right: 8px; }
.hero-greet { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; height: 100%; box-sizing: border-box; }
.kpi .lbl { color: var(--ink-3); font-weight: 600; font-size: 12.5px; display: flex; align-items: center; gap: 7px; }
.kpi .val { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.kpi .val .cur { font-size: 0.5em; font-weight: 650; color: var(--ink-3); letter-spacing: 0; margin-left: 0.1em; vertical-align: 0.18em; }
.kpi .parts { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-3); }
.kpi .part { display: flex; justify-content: space-between; gap: 12px; }
.kpi .part b { color: var(--ink); font-weight: 600; }
.kpi .sub { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kpi .ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.delta.up { background: var(--good-bg); color: var(--good-ink); } .delta.down { background: var(--danger-bg); color: var(--danger-ink); } .delta.flat { background: var(--surface-3); color: var(--ink-3); }
.attention { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: .12s; }
.attention:hover { background: var(--surface-2); text-decoration: none; border-color: var(--line-strong); }
.attention .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.attention .ico.warn { background: var(--warn-bg); color: var(--warn-ink); } .attention .ico.bad { background: var(--danger-bg); color: var(--danger-ink); } .attention .ico.info { background: var(--info-bg); color: var(--info-ink); } .attention .ico.good { background: var(--good-bg); color: var(--good-ink); }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); list-style: none; }
.checklist { padding: 0; margin: 0; } .checklist li:last-child { border-bottom: 0; }
.checklist .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; color: transparent; }
.checklist li.done .tick { background: var(--good); border-color: var(--good); color: #fff; } .checklist li.done .t { color: var(--ink-3); text-decoration: line-through; }
@media (max-width: 760px) { .hero { padding: 18px; } .hero .big { font-size: 40px; } .kpi .val { font-size: 23px; } .kpi .part { flex-direction: column; gap: 0; } .kpi .part b { font-size: 13px; } }

/* ---------- charts ---------- */
.chart-card .chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.chart-card .chart-body { padding: 10px 14px 14px; }
.chart { position: relative; width: 100%; }
.chart svg { overflow: visible; touch-action: pan-y; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis-line { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart text { fill: var(--ink-4); font: 500 11px var(--font); }
.chart text.val { fill: var(--ink-2); font-weight: 650; }
.chart .mark { transition: opacity .12s; }
.chart .dim { opacity: .35; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); border-radius: 10px; padding: 8px 11px; font-size: 12px; min-width: 120px; transform: translate(-50%, -100%); white-space: nowrap; }
.chart-tip .tt-title { color: var(--ink-3); margin-bottom: 4px; font-weight: 600; }
.chart-tip .tt-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; } .chart-tip .tt-row b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; margin-left: 12px; }
.chart-tip .key { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend .it { display: inline-flex; align-items: center; gap: 7px; } .legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.chart.loading { opacity: .55; }
.hbar-row { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.hbar-row .track { height: 10px; border-radius: 5px; background: var(--surface-3); position: relative; }
.hbar-row .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--series-1); border-radius: 0 4px 4px 0; transition: width .4s var(--ease); }
.hbar-row:hover .fill { filter: brightness(1.08); }
.spark path.line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark path.area { fill: var(--series-1); opacity: .10; }
.spark circle { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }

/* ---------- POS ---------- */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: calc(100vh - var(--topbar-h)); background: var(--page); }
.pos-left { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pos-tools { padding: 14px 18px 8px; display: flex; flex-direction: column; gap: 10px; }
.pos-grid { flex: 1; overflow-y: auto; padding: 4px 18px 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: min-content; gap: 12px; align-content: start; }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); min-height: 112px; box-shadow: var(--shadow-1); transition: transform .08s var(--ease), box-shadow .12s, border-color .12s; }
.tile:hover { border-color: var(--accent-solid); box-shadow: var(--shadow-2); }
.tile:active { transform: scale(.975); }
.tile .em { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: none; }
.tile .nm { font-weight: 650; line-height: 1.25; font-size: 13.5px; }
.tile .pr { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.tile .pr b { font-size: 15px; font-variant-numeric: tabular-nums; } .tile .st { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.tile .st.low { color: var(--warn-ink); } .tile .st.out { color: var(--danger-ink); }
.tile .qty { position: absolute; top: 8px; right: 8px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--accent-solid); color: var(--accent-ink); font-weight: 750; font-size: 12.5px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.tile.unavailable { opacity: .55; }
.tile.in-cart { border-color: var(--accent-solid); background: var(--accent-soft); }
.pos-right { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.cart-head { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.cart-lines { flex: 1; overflow-y: auto; padding: 4px 16px; }
.cart-line { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .nm { font-weight: 600; line-height: 1.25; } .cart-line .meta { font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cart-line .lt { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cart-line .ctl { grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; }
.cart-line .issue { grid-column: 2 / -1; color: var(--danger-ink); font-size: 12px; font-weight: 600; }
.cart-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--ink-3); padding: 24px; }
.cart-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -6px 18px rgba(0,0,0,.04); }
.totals { display: grid; gap: 5px; font-size: 13.5px; } .totals .r { display: flex; justify-content: space-between; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.totals .grand { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 700; color: var(--ink); } .totals .grand b { font-size: 30px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.totals.dim { opacity: .55; }
.pos-cartbar { display: none; }
.method-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .method-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.method { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; font-size: 13px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font-weight: 650; color: var(--ink-2); transition: .12s; }
.method:hover { border-color: var(--line-strong); background: var(--surface-2); }
.method[aria-pressed="true"] { border-color: var(--accent-solid); background: var(--accent-soft); color: var(--accent-text); }
.method[disabled] { opacity: .45; pointer-events: none; }
.method .icon { width: 24px; height: 24px; }
.big-total { text-align: center; padding: 8px 0 16px; } .big-total .amt { font-size: 44px; font-weight: 750; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; } .big-total .lbl { color: var(--ink-3); font-weight: 600; }
.quick-cash { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-cash .btn { min-width: 74px; }
.change-box { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--good-bg); color: var(--good-ink); font-weight: 700; } .change-box.short { background: var(--danger-bg); color: var(--danger-ink); } .change-box b { font-size: 26px; font-variant-numeric: tabular-nums; }
.pay-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; }
.success { text-align: center; padding: 8px 0 4px; }
.success .check { width: 76px; height: 76px; border-radius: 50%; background: var(--good-bg); color: var(--good-ink); display: grid; place-items: center; margin: 0 auto 14px; animation: pop .3s var(--ease); }
.success .check .icon { width: 40px; height: 40px; stroke-width: 2.4; }
.success .chg { font-size: 40px; font-weight: 750; letter-spacing: -0.03em; color: var(--good-ink); margin: 8px 0 2px; }
@media (max-width: 1000px) {
  .pos { grid-template-columns: minmax(0, 1fr); height: calc(100vh - var(--topbar-h)); }
  .pos-right { position: fixed; inset: 0; z-index: 60; transform: translateY(102%); transition: transform .25s var(--ease); border: 0; }
  .pos-right.open { transform: none; }
  .pos-cartbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 25; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--accent-solid); color: var(--accent-ink); box-shadow: var(--shadow-3); border: 0; font-weight: 700; font-size: 15px; }
  .pos-cartbar .grow { text-align: left; } .pos-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); padding-bottom: 150px; gap: 10px; }
}

/* ---------- orders ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.board-col { background: var(--surface-2); border-radius: var(--r-lg); padding: 10px; min-height: 160px; display: flex; flex-direction: column; gap: 10px; border: 1px solid transparent; transition: border-color .12s, background .12s; }
.board-col.over { border-color: var(--accent-solid); background: var(--accent-soft); }
.board-col h3 { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; font-size: 13px; }
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-1); cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .12s, border-color .12s; text-align: left; width: 100%; }
.order-card:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.order-card.dragging { opacity: .4; }
.order-card .t { font-weight: 650; line-height: 1.3; }
.due { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); }
.due.late { background: var(--danger-bg); color: var(--danger-ink); } .due.today { background: var(--warn-bg); color: var(--warn-ink); } .due.soon { background: var(--info-bg); color: var(--info-ink); }
.agenda-day { margin-bottom: 20px; } .agenda-day h3 { margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.agenda-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.agenda-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); } .agenda-item .time { font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline { position: relative; padding-left: 22px; } .timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline .ev { position: relative; padding-bottom: 14px; } .timeline .ev::before { content: ""; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent-solid); }
.item-editor .row-item { display: grid; grid-template-columns: minmax(0, 1fr) 84px 110px 90px 34px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .item-editor .row-item { grid-template-columns: minmax(0, 1fr) 70px 90px 34px; } .item-editor .row-item .lt { display: none; } }

/* ---------- combobox ---------- */
.combo { position: relative; }
.combo-list { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-2); max-height: 300px; overflow-y: auto; padding: 5px; }
.combo-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; width: 100%; border: 0; background: none; text-align: left; }
.combo-opt:hover, .combo-opt.active { background: var(--accent-soft); }
.combo-opt .sub { margin-left: auto; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.combo-sep { padding: 6px 10px 3px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }

/* ---------- command palette ---------- */
.palette { width: 100%; max-width: 640px; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-3); border: 1px solid var(--border); overflow: hidden; margin-top: 8vh; animation: pop .15s var(--ease); }
.palette input { width: 100%; height: 56px; border: 0; border-bottom: 1px solid var(--line); padding: 0 20px 0 52px; font-size: 16px; background: transparent; outline: none; }
.palette .pi { position: absolute; left: 20px; top: 19px; color: var(--ink-3); } .palette .res { max-height: 56vh; overflow-y: auto; padding: 8px; }
.palette .grp { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.palette .opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; text-align: left; }
.palette .opt.active { background: var(--accent-soft); } .palette .opt .sub { margin-left: auto; color: var(--ink-3); font-size: 12.5px; }
.palette .foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }

/* ---------- chat / whatsapp ---------- */
.chat { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - var(--topbar-h) - 150px); min-height: 460px; overflow: hidden; }
.threads { border-right: 1px solid var(--line); overflow-y: auto; }
.thread { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); width: 100%; border-left: 3px solid transparent; background: none; border-top: 0; border-right: 0; text-align: left; align-items: center; }
.thread:hover { background: var(--surface-2); } .thread.active { background: var(--accent-soft); border-left-color: var(--accent-solid); }
.thread .unread { background: var(--accent-solid); color: var(--accent-ink); font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.conv { display: flex; flex-direction: column; min-width: 0; background: var(--surface-2); }
.conv-head { background: var(--surface); padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.conv-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 74%; padding: 8px 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.bubble.out { align-self: flex-end; background: var(--accent-soft-2); border-bottom-right-radius: 4px; } .bubble.in { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble .meta { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 3px; text-align: right; }
.composer { background: var(--surface); padding: 10px 12px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { min-height: 42px; max-height: 120px; }
@media (max-width: 900px) { .chat { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; } .chat .conv { height: 70vh; } .chat.has-thread .threads { display: none; } .chat:not(.has-thread) .conv { display: none; } }
.var-chip { border: 1px dashed var(--line-strong); background: var(--surface); border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.var-chip:hover { border-color: var(--accent-solid); color: var(--accent-text); }

/* ---------- settings ---------- */
.settings { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.subnav { position: sticky; top: calc(var(--topbar-h) + 18px); display: flex; flex-direction: column; gap: 2px; }
.subnav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 550; text-decoration: none; } .subnav a:hover { background: var(--surface-2); text-decoration: none; } .subnav a.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); } .setting-row:last-child { border-bottom: 0; } .setting-row .d { color: var(--ink-3); font-size: 13px; margin-top: 2px; max-width: 560px; }
@media (max-width: 900px) { .settings { grid-template-columns: minmax(0, 1fr); } .subnav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; } .subnav a { white-space: nowrap; } }
.logo-preview { width: 84px; height: 84px; border-radius: 18px; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 40px; overflow: hidden; background: var(--accent-soft-2); } .logo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- wizard / type cards ---------- */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.type-card { text-align: left; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; transition: .12s; position: relative; }
.type-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.type-card[aria-pressed="true"] { border-color: var(--tc, var(--accent-solid)); background: color-mix(in oklab, var(--tc, var(--accent)) 9%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in oklab, var(--tc, var(--accent)) 22%, transparent); }
.type-card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 23px; background: color-mix(in oklab, var(--tc, var(--accent)) 16%, var(--surface)); }
.type-card .nm { font-weight: 700; } .type-card .bl { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.type-card .tick { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--tc, var(--accent-solid)); color: #fff; display: none; place-items: center; }
.type-card[aria-pressed="true"] .tick { display: grid; }
.steps { display: flex; gap: 8px; align-items: center; margin-bottom: 24px; } .steps .s { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-weight: 600; font-size: 13px; } .steps .s .n { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; } .steps .s.on { color: var(--ink); } .steps .s.on .n { background: var(--accent-solid); border-color: var(--accent-solid); color: var(--accent-ink); } .steps .s.done .n { background: var(--good); border-color: var(--good); color: #fff; } .steps .bar { flex: 1; height: 2px; background: var(--line); max-width: 40px; }

/* ---------- overview cards ---------- */
.biz-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--bc, var(--accent-solid)); }
.biz-card .metrics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; } .biz-card .metrics .l { font-size: 12px; color: var(--ink-3); font-weight: 600; } .biz-card .metrics .v { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* ---------- devices ---------- */
.device { padding: 14px; display: flex; flex-direction: column; gap: 12px; } .device .top { display: flex; align-items: center; gap: 12px; }
.device.on { border-color: color-mix(in oklab, var(--good) 45%, var(--border)); background: color-mix(in oklab, var(--good) 5%, var(--surface)); }
.device .dico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-3); font-size: 22px; } .device.on .dico { background: var(--good-bg); color: var(--good-ink); }

/* ---------- document-ish blocks (reports) ---------- */
.stmt { width: 100%; font-size: 14px; } .stmt td { padding: 7px 0; } .stmt td:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 14px; }
.stmt th { padding: 4px 0; }
.stmt .sub td { padding-left: 18px; color: var(--ink-2); } .stmt .tot td { font-weight: 700; border-top: 1px solid var(--line-strong); padding-top: 10px; } .stmt .grand td { font-weight: 750; font-size: 16px; border-top: 2px solid var(--ink); padding-top: 10px; }
.vat-box { border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; } .vat-box .l { color: var(--ink-3); font-size: 12.5px; font-weight: 600; } .vat-box .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.print-only { display: none; }
@media print {
  .no-print, .sidebar, .topbar, .bottom-nav, .toasts, .skip-link, .progress-bar { display: none !important; }
  .print-only { display: block !important; }
  body { background: #fff !important; color: #000 !important; }
  .shell { display: block !important; } .page { padding: 0 !important; max-width: none !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
  .overlay, .drawer-wrap { position: static !important; background: none !important; padding: 0 !important; backdrop-filter: none !important; display: block !important; }
  .modal, .drawer { box-shadow: none !important; max-height: none !important; max-width: none !important; border: 0 !important; animation: none !important; }
  .modal-foot, .modal-head .btn { display: none !important; }
  @page { margin: 12mm; }
}

.chart-empty { display: grid; place-items: center; color: var(--ink-3); text-align: center; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 13.5px; padding: 12px; }
.checklist-dismiss { position: absolute; top: 10px; right: 10px; }
.pos-left { position: relative; }
.tagpill { font: inherit; }

.totals-strip { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 10px; }
.totals-strip .num { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.biz-card.current { box-shadow: 0 0 0 2px var(--bc); }

.print-title { font-size: 20px; font-weight: 700; }
