/* v34: professional calculator look. Scoped to calculator tabs only. Uses existing theme variables. */
html body{--c34-head:#14284b;--c34-head-ink:#fff;--c34-acc:#c99b43;--c34-zebra:rgba(20,40,75,.035);--c34-ring:rgba(201,155,67,.35)}
html body.dark,html[data-theme="dark"] body{--c34-head:#27406a;--c34-head-ink:#fff;--c34-zebra:rgba(255,255,255,.04);--c34-ring:rgba(233,196,106,.38)}
html body section.card[data-tab="pay"],html body section.card[data-tab="vat"],html body section.card[data-tab="rat"],html body section.card[data-tab="dep"],html body section.card[data-tab="mat"],html body section.card[data-tab="chk"],html body section.card[data-tab="tq"],html body section.card[data-tab="pharm"],html body section.card[data-tab="lat"],html body section.card[data-tab="reg"]{border-radius:18px!important;padding:22px 24px!important;box-shadow:0 1px 2px rgba(15,35,60,.06),0 12px 32px rgba(15,35,60,.07)!important;border:1px solid var(--line)!important;background:var(--card)!important}
html body section.card[data-tab] h2.sec-title,html body section.card[data-tab] h1.sec-title{font-size:21px!important;font-weight:800!important;letter-spacing:0!important;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 6px!important}
html body section.card[data-tab] .tool-desc{font-size:13.5px!important;line-height:1.85!important;color:var(--ink-2)!important;margin:0 0 14px!important;max-width:78ch}
/* inputs */
html body section.card[data-tab] .fields{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px 16px!important;margin:12px 0 14px!important}
html body section.card[data-tab] .field{display:flex;flex-direction:column;gap:6px}
html body section.card[data-tab] .field>label,html body section.card[data-tab] .field label{font-size:12.5px!important;font-weight:700!important;color:var(--ink)!important;line-height:1.5}
html body section.card[data-tab] input[type=text],html body section.card[data-tab] input[type=number],html body section.card[data-tab] input[type=date],html body section.card[data-tab] input:not([type]),html body section.card[data-tab] select{height:46px;border-radius:12px!important;border:1.5px solid var(--border)!important;background:var(--card)!important;color:var(--ink)!important;padding:0 14px!important;font:inherit;font-size:15px!important;font-weight:600;font-variant-numeric:tabular-nums;transition:border-color .15s,box-shadow .15s}
html body section.card[data-tab] input:focus,html body section.card[data-tab] select:focus{outline:none!important;border-color:var(--c34-acc)!important;box-shadow:0 0 0 4px var(--c34-ring)!important}
html body section.card[data-tab] input::placeholder{color:var(--ink-2);opacity:.7;font-weight:500}
html body section.card[data-tab] .hint,html body section.card[data-tab] .field .hint{font-size:12px!important;line-height:1.7;color:var(--ink-2)!important}
/* check rows */
html body section.card[data-tab] label.chk{display:flex!important;align-items:flex-start;gap:10px;padding:11px 14px;border:1.5px solid var(--line);border-radius:12px;background:var(--cream);font-size:13.5px!important;font-weight:600;line-height:1.7;cursor:pointer}
html body section.card[data-tab] label.chk input{width:18px;height:18px;margin-top:3px;accent-color:#c99b43}
/* step headings in payroll */
html body section.card[data-tab] .pay-step{display:flex;align-items:center;gap:10px;font-weight:800;font-size:15px;margin:20px 0 8px;color:var(--ink)}
html body section.card[data-tab] .pay-n{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--c34-head);color:#fff;font-size:13px;font-weight:800;flex:none}
/* notes */
html body section.card[data-tab] .note,html body section.card[data-tab] .warn,html body section.card[data-tab] .proto-warn,html body section.card[data-tab] .method-note{border-radius:14px!important;padding:13px 16px!important;font-size:13px!important;line-height:1.85!important;border:1px solid var(--line)!important;border-inline-start:4px solid var(--c34-acc)!important;background:var(--note-bg,var(--cream))!important;color:var(--ink)!important}
html body section.card[data-tab] .warn{border-inline-start-color:#d9622b!important;background:var(--warn-bg)!important}
/* results */
html body section.card[data-tab] .mini-res.on{display:block;margin-top:14px!important;padding:6px 0 4px!important;border:1.5px solid var(--border)!important;border-radius:16px!important;background:var(--card)!important;overflow:hidden;box-shadow:0 6px 20px rgba(15,35,60,.06)}
html body section.card[data-tab] .mini-res table{width:100%;border-collapse:collapse;font-size:14px}
html body section.card[data-tab] .mini-res td{padding:11px 18px!important;border-bottom:1px solid var(--line)!important}
html body section.card[data-tab] .mini-res tr:last-child td{border-bottom:0!important}
html body section.card[data-tab] .mini-res td:last-child{font-weight:800!important;font-variant-numeric:tabular-nums;text-align:left!important;direction:ltr;white-space:nowrap}
html body section.card[data-tab] .mini-res tr.hl td{background:var(--c34-head)!important;color:#fff!important;font-size:16px;font-weight:800}
html body section.card[data-tab] #lt-out.on{padding:16px 20px!important;line-height:2!important;font-size:14.5px}
html body section.card[data-tab] #lt-out b{font-variant-numeric:tabular-nums}
/* tables */
html body section.card[data-tab] .tscroll,html body section.card[data-tab] .tbl-wrap{border:1.5px solid var(--border);border-radius:14px;overflow:auto;background:var(--card)}
html body section.card[data-tab] table.audit-out,html body section.card[data-tab] table.ratio-table,html body section.card[data-tab] table.reg-table,html body section.card[data-tab] table.lt-tbl{width:100%;border-collapse:separate;border-spacing:0;font-size:13.5px}
html body section.card[data-tab] table.audit-out th,html body section.card[data-tab] table.ratio-table th,html body section.card[data-tab] table.reg-table th,html body section.card[data-tab] table.lt-tbl th{background:var(--c34-head)!important;color:var(--c34-head-ink)!important;font-weight:800;font-size:12.5px;padding:11px 14px!important;text-align:start;white-space:nowrap}
html body section.card[data-tab] table.audit-out td,html body section.card[data-tab] table.ratio-table td,html body section.card[data-tab] table.reg-table td,html body section.card[data-tab] table.lt-tbl td{padding:10px 14px!important;border-bottom:1px solid var(--line)!important;color:var(--ink)!important;background:transparent}
html body section.card[data-tab] table tbody tr:nth-child(even) td{background:var(--c34-zebra)!important}
html body section.card[data-tab] table tbody tr:hover td{background:var(--c34-ring)!important}
html body section.card[data-tab] td.num,html body section.card[data-tab] th.num{text-align:left!important;direction:ltr;font-variant-numeric:tabular-nums;white-space:nowrap}
html body section.card[data-tab] table tfoot td{font-weight:800;background:var(--cream)!important;border-top:2px solid var(--c34-acc)!important}
/* fixed-assets register rows */
html body section.card[data-tab] .reg-item{border:1.5px solid var(--line)!important;border-radius:16px!important;background:var(--cream)!important;padding:14px!important;margin-bottom:12px}
html body section.card[data-tab] .reg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px 12px}
/* buttons */
html body section.card[data-tab] .exp-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;padding-top:14px;border-top:1px dashed var(--line)}
html body section.card[data-tab] .exp-btn,html body section.card[data-tab] .mini-btn{height:44px;border-radius:12px!important;padding:0 18px!important;font-weight:800!important;font-size:14px!important;box-shadow:0 1px 2px rgba(15,35,60,.08);transition:transform .12s,box-shadow .12s,border-color .12s}
html body section.card[data-tab] .exp-btn:hover,html body section.card[data-tab] .mini-btn:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(15,35,60,.14)}
html body section.card[data-tab] .exp-btn.pdf{background:var(--c34-head)!important;color:#fff!important;border-color:var(--c34-head)!important}
html body section.card[data-tab] .exp-btn.xls{background:var(--card)!important;color:var(--ink)!important;border:1.5px solid var(--border)!important}
html body section.card[data-tab] details>summary{cursor:pointer;font-weight:700;font-size:13px;padding:8px 0}
html body section.card.prov[data-tab]{padding:14px 20px!important;box-shadow:none!important;background:var(--cream)!important}
@media(max-width:600px){html body section.card[data-tab]{padding:16px 14px!important;border-radius:16px!important}html body section.card[data-tab] .fields{grid-template-columns:1fr}html body section.card[data-tab] h2.sec-title{font-size:18px!important}html body section.card[data-tab] .exp-btn{flex:1 1 100%;justify-content:center}}
/* print: only the open calculator, clean sheet */
@media print{
 html body header,html body nav,html body .tabnav,html body #bn-gnav,html body #bn-tick,html body .bn-dock,html body footer,html body .bn-fab,html body [class*="bn-connect"],html body .exp-row,html body .tab-btn,html body .bn-calc-export-bar{display:none!important}
 html body{background:#fff!important;color:#000!important}
 html body section.card[data-tab]{box-shadow:none!important;border:1px solid #999!important;border-radius:0!important;break-inside:avoid;background:#fff!important;color:#000!important}
 html body section.card[data-tab] table th{background:#14284b!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 html body section.card[data-tab] *{color:#000!important}
 html body section.card[data-tab] table th *{color:#fff!important}
}
html body section.card[data-tab] table input,html body section.card[data-tab] table select{height:38px!important;font-size:14px!important;border-radius:10px!important}
html body section.card[data-tab] table td{vertical-align:middle}
html body section.card[data-tab] table.ratio-table td:first-child{font-weight:700;white-space:nowrap}
