:root {
    --sb-bg: #111a2e; --sb-hover: #1e2a45; --sb-active: #2a3a5e; --primary: #4f46e5; --primary-d: #4338ca;
    --muted: #6b7280; --border: #e5e7eb; --bg: #f3f4f8;
}
body { background: var(--bg); font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-size: 14px; color: #1f2937; }
.app { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: var(--sb-bg); color: #cbd5e1; position: fixed; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; z-index: 1030; }
.sidebar .menu { overflow-y: auto; flex: 1; padding: 0 10px 10px; }
.sidebar .menu::-webkit-scrollbar { width: 5px; } .sidebar .menu::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
.biz-head { display: flex; gap: 10px; align-items: center; padding: 14px 16px; }
.biz-logo { width: 36px; height: 36px; border-radius: 50%; background: #e0e7ff; color: var(--primary); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.biz-name { color: #fff; font-weight: 600; } .biz-sub { font-size: 12px; color: #94a3b8; }
.btn-create { background: #e0e7ff; color: #312e81; font-weight: 600; font-size: 13px; border: none; }
.btn-create:hover { background: #c7d2fe; color: #312e81; }
.menu-h { font-size: 11px; color: #64748b; font-weight: 700; letter-spacing: .05em; margin: 14px 8px 6px; }
.menu-i { display: flex; align-items: center; gap: 10px; color: #cbd5e1; text-decoration: none; padding: 8px 10px; border-radius: 8px; margin-bottom: 2px; }
.menu-i:hover { background: var(--sb-hover); color: #fff; } .menu-i.active { background: var(--sb-active); color: #fff; }
.menu-s { display: block; color: #94a3b8; text-decoration: none; padding: 6px 10px 6px 38px; border-radius: 8px; font-size: 13px; }
.menu-s:hover { color: #fff; background: var(--sb-hover); }
.sb-foot { padding: 10px 16px; font-size: 12px; color: #64748b; border-top: 1px solid #1e293b; }
.content { margin-left: 250px; flex: 1; min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 10px 20px; display: flex; align-items: center; position: sticky; top: 0; z-index: 1020; }
.page-title { font-size: 18px; font-weight: 600; margin: 0; }
.page { padding: 20px; }
.card { border: 1px solid var(--border); border-radius: 10px; box-shadow: none; }
.card-header { background: #fff; font-weight: 600; border-bottom: 1px solid var(--border); }
.btn-primary { background: var(--primary); border-color: var(--primary); } .btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); }
.stat { border-radius: 10px; padding: 14px 16px; border: 1px solid var(--border); background: #fff; height: 100%; }
.stat .lbl { font-size: 13px; color: var(--muted); } .stat .val { font-size: 22px; font-weight: 700; }
.stat.green { background: #f0fdf4; border-color: #bbf7d0; } .stat.green .lbl { color: #15803d; }
.stat.red { background: #fef2f2; border-color: #fecaca; } .stat.red .lbl { color: #b91c1c; }
.stat.blue { background: #eff6ff; border-color: #bfdbfe; } .stat.blue .lbl { color: #1d4ed8; }
.stat.purple { background: #f5f3ff; border-color: #ddd6fe; } .stat.purple .lbl { color: #6d28d9; }
.table { font-size: 13.5px; margin-bottom: 0; } .table thead th { background: #f9fafb; color: #4b5563; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.table-hover tbody tr { cursor: default; } tr[data-href] { cursor: pointer; }
.badge-status { font-weight: 600; font-size: 11.5px; padding: 4px 8px; border-radius: 6px; }
.st-Paid { background: #dcfce7; color: #166534; } .st-Unpaid { background: #fee2e2; color: #991b1b; } .st-PartiallyPaid { background: #fef3c7; color: #92400e; }
.st-Cancelled { background: #e5e7eb; color: #4b5563; text-decoration: line-through; } .st-Open { background: #dbeafe; color: #1e40af; }
.st-Converted, .st-Closed { background: #ede9fe; color: #5b21b6; } .st-Draft { background: #f3f4f6; color: #374151; } .st-Expired { background: #fee2e2; color: #7f1d1d; }
.text-collect { color: #15803d; } .text-pay { color: #b91c1c; }
.form-label { font-size: 12.5px; color: #4b5563; font-weight: 600; margin-bottom: 3px; }
.lines-table td, .lines-table th { padding: 4px; vertical-align: middle; } .lines-table input, .lines-table select { font-size: 13px; padding: 4px 6px; }
.lines-table .col-item { min-width: 220px; }
.totals-box td { padding: 4px 8px; }
.empty { text-align: center; padding: 40px; color: var(--muted); }
.pos-item { cursor: pointer; border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: #fff; height: 100%; }
.pos-item:hover { border-color: var(--primary); box-shadow: 0 0 0 2px #e0e7ff; }
.report-card { display: block; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; height: 100%; }
.report-card:hover { border-color: var(--primary); } .report-card i { font-size: 22px; color: var(--primary); }
.copy-banner { background: #fff7ed; border: 1px dashed #fb923c; color: #9a3412; border-radius: 8px; padding: 8px 12px; }

/* ---------- Invoice print ---------- */
.invoice-sheet { background: #fff; max-width: 900px; margin: 0 auto; padding: 28px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.invoice-sheet table { width: 100%; border-collapse: collapse; }
.invoice-sheet .bordered td, .invoice-sheet .bordered th { border: 1px solid #d1d5db; padding: 5px 7px; }
.invoice-sheet .bordered th { background: #f3f4f6; }
.inv-title { font-size: 20px; font-weight: 700; letter-spacing: .03em; }

@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s; } .sidebar.open { transform: none; }
    .content { margin-left: 0; }
}
@media print {
    .no-print, .sidebar, .topbar { display: none !important; }
    .content { margin: 0 !important; } .page { padding: 0 !important; } body { background: #fff; }
    .invoice-sheet { border: none; max-width: 100%; padding: 0; }
}

/* ================= Invoice designs ================= */
.invoice-sheet { --ic: #4f46e5; }
.tpl-classic .inv-title { color: var(--ic); }
.tpl-classic .bordered th { background: color-mix(in srgb, var(--ic) 10%, #fff); }
.inv-totals td { padding: 3px 6px; }
.inv-totals .inv-grand td { font-weight: 700; font-size: 15px; border-top: 1px solid #d1d5db; }

/* Modern */
.tpl-modern { padding: 0; overflow: hidden; }
.tpl-modern > *:not(.mod-band):not(.mod-foot) { margin-left: 28px; margin-right: 28px; }
.tpl-modern .mod-band { background: var(--ic); color: #fff; padding: 22px 28px; }
.tpl-modern .mod-logo { max-height: 56px; background: #fff; border-radius: 8px; padding: 4px; }
.tpl-modern .mod-title { font-size: 13px; letter-spacing: .15em; text-transform: uppercase; opacity: .85; }
.tpl-modern .mod-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ic); font-weight: 700; margin-bottom: 2px; }
.tpl-modern .mod-items { width: calc(100% - 56px); border-collapse: collapse; }
.tpl-modern .mod-items th { background: color-mix(in srgb, var(--ic) 12%, #fff); color: #111; padding: 8px; font-size: 12px; text-transform: uppercase; }
.tpl-modern .mod-items td { padding: 8px; border-bottom: 1px solid #eef0f4; }
.tpl-modern .mod-items tbody tr:nth-child(even) td { background: #fafbfc; }
.tpl-modern .mod-total { background: var(--ic); color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 18px; font-weight: 700; }
.tpl-modern .mod-foot { background: color-mix(in srgb, var(--ic) 10%, #fff); text-align: center; padding: 10px; margin-top: 18px; font-size: 12px; color: #374151; }
.tpl-modern .inv-sign { margin-bottom: 4px; }

/* GST Bordered (Tally style) */
.tpl-bordered { padding: 14px; font-size: 12px; }
.tpl-bordered .bx { width: 100%; border-collapse: collapse; }
.tpl-bordered .bx > tbody > tr > td, .tpl-bordered .bx > tr > td, .tpl-bordered .bx td, .tpl-bordered .bx th { border: 1px solid #111; padding: 4px 6px; vertical-align: top; }
.tpl-bordered .bx + .bx, .tpl-bordered .bx-hsn { margin-top: -1px; }
.tpl-bordered .bx-title { font-size: 15px; font-weight: 700; background: color-mix(in srgb, var(--ic) 12%, #fff); }
.tpl-bordered .bx-inner { width: 100%; border-collapse: collapse; }
.tpl-bordered .bx-inner td { border: 0 !important; border-bottom: 1px solid #111 !important; border-right: 1px solid #111 !important; width: 50%; }
.tpl-bordered .bx-inner tr:last-child td { border-bottom: 0 !important; }
.tpl-bordered .bx-inner td:last-child { border-right: 0 !important; }
.tpl-bordered .bx-items th { background: color-mix(in srgb, var(--ic) 12%, #fff); }
.tpl-bordered .bx-items tbody td { border-top: 0; border-bottom: 0; }
.tpl-bordered .bx-items tfoot td { border-top: 1px solid #111; }
.tpl-bordered .bx-hsn .bordered td, .tpl-bordered .bx-hsn .bordered th { border: 1px solid #111; }
.tpl-bordered .bx-hsn .bordered { margin-bottom: 0 !important; width: 100%; }

/* Minimal */
.tpl-minimal { padding: 40px; border-color: #eee; }
.tpl-minimal .min-title { font-size: 34px; font-weight: 300; letter-spacing: .02em; color: var(--ic); }
.tpl-minimal .min-hr { border-top: 2px solid var(--ic); opacity: 1; margin: 18px 0; }
.tpl-minimal .min-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #9ca3af; margin-bottom: 4px; }
.tpl-minimal .min-items { width: 100%; border-collapse: collapse; }
.tpl-minimal .min-items th { font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #6b7280; border-bottom: 1px solid #111; padding: 6px 4px; }
.tpl-minimal .min-items td { padding: 10px 4px; border-bottom: 1px solid #f0f0f0; }
.tpl-minimal .inv-hsn { display: none; }
.tpl-minimal .inv-totals .inv-grand td { color: var(--ic); font-size: 18px; border-top: 2px solid var(--ic); }

/* Elegant */
.tpl-elegant { display: flex; padding: 0; overflow: hidden; }
.tpl-elegant .el-strip { width: 14px; background: var(--ic); flex-shrink: 0; }
.tpl-elegant .el-body { padding: 28px; flex: 1; }
.tpl-elegant .el-name, .tpl-elegant .el-title { font-family: Georgia, "Times New Roman", serif; }
.tpl-elegant .el-name { font-size: 22px; font-weight: 700; }
.tpl-elegant .el-title { font-size: 26px; color: var(--ic); font-style: italic; }
.tpl-elegant .el-card { border: 1px solid #e5e7eb; border-top: 3px solid var(--ic); border-radius: 6px; padding: 10px; height: 100%; }
.tpl-elegant .el-lbl { font-family: Georgia, serif; font-style: italic; color: var(--ic); margin-bottom: 2px; }
.tpl-elegant .el-items { width: 100%; border-collapse: collapse; }
.tpl-elegant .el-items th { border-bottom: 2px solid var(--ic); padding: 7px 6px; font-family: Georgia, serif; font-weight: 600; }
.tpl-elegant .el-items td { padding: 7px 6px; border-bottom: 1px dashed #e5e7eb; }
.tpl-elegant .inv-totals .inv-grand td { color: var(--ic); }

/* Thermal 80mm */
.tpl-thermal { max-width: 80mm !important; width: 80mm; padding: 8px !important; font-family: "Courier New", monospace; font-size: 12px; border-radius: 0; }
.tpl-thermal td { padding: 1px 0; }
.tpl-thermal .th-sep { border-top: 1px dashed #000; margin: 6px 0; }
.tpl-thermal .upi-qr img, .tpl-thermal .upi-qr canvas { margin: 4px auto; }

/* Template picker */
.tpl-card { border: 2px solid var(--border); border-radius: 10px; padding: 12px; cursor: pointer; height: 100%; background: #fff; }
.tpl-card:hover { border-color: #c7d2fe; }
.tpl-card.sel { border-color: var(--primary); box-shadow: 0 0 0 3px #e0e7ff; }
.tpl-card i { font-size: 22px; color: var(--primary); }
.color-dot { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #d1d5db; cursor: pointer; display: inline-block; }
.color-dot.sel { box-shadow: 0 0 0 2px #111; }
.tpl-preview { width: 100%; height: 900px; border: 1px solid var(--border); border-radius: 8px; background: #f3f4f8; }
@media print { .invoice-sheet { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ================= Mobile friendly ================= */
.sb-backdrop { display: none; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; height: 62px; background: #fff; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-around; z-index: 1040; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 20px rgba(0,0,0,.05); }
.bottom-nav a { flex: 1; text-align: center; color: #6b7280; text-decoration: none; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bottom-nav a i { font-size: 20px; } .bottom-nav a.on { color: var(--primary); font-weight: 600; }
.bottom-nav .fab { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; font-size: 26px; margin-top: -26px; box-shadow: 0 8px 20px rgba(79,70,229,.4); flex-shrink: 0; }
.quick-sheet { height: auto !important; border-radius: 18px 18px 0 0; }
.qs-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border: 1px solid var(--border); border-radius: 14px; color: #1f2937; text-decoration: none; font-size: 12.5px; }
.qs-item i { font-size: 22px; color: var(--primary); }
.top-actions { display: flex; gap: .5rem; align-items: center; }

@media (max-width: 991px) {
    body { padding-bottom: 70px; }
    .sidebar { transform: translateX(-100%); transition: transform .25s ease; width: 270px; box-shadow: 0 0 40px rgba(0,0,0,.25); }
    body.sb-open .sidebar { transform: none; }
    body.sb-open .sb-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 1029; }
    .topbar { padding: 8px 12px; flex-wrap: wrap; gap: 6px; }
    .page-title { font-size: 16px; max-width: 55vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* title + profile on line 1, every action button visible below (wraps, nothing hidden off-screen) */
    .topbar .top-right { display: contents !important; }
    .topbar .top-right > .dropdown { margin-left: auto; order: 2; }
    .top-actions { order: 3; width: 100%; flex-wrap: wrap; gap: 6px; }
    .top-actions:empty { display: none; }
    .top-actions > *, .top-actions form { flex-shrink: 0; }
    .top-actions .btn { padding: 6px 10px; }
    .page { padding: 12px; }
}
@media (max-width: 767px) {
    .stat { padding: 10px 12px; } .stat .val { font-size: 18px; } .stat .lbl { font-size: 12px; }
    .row.g-3 > [class*="col-md-"]:has(> .stat), .row.g-3 > [class*="col-md-"]:has(> a > .stat) { width: 50%; flex: 0 0 auto; }
    .card-body.d-flex.flex-wrap form, .card-body.d-flex.flex-wrap form > * { max-width: 100%; }
    .card-body.d-flex.flex-wrap form .form-control, .card-body.d-flex.flex-wrap form .form-select { width: 100% !important; }
    .card-body.d-flex.flex-wrap > .ms-auto { margin-left: 0 !important; width: 100%; }
    .btn, .form-control, .form-select { min-height: 38px; }
    .modal-dialog { margin: .5rem; }
    .invoice-sheet { padding: 12px; font-size: 11.5px; overflow-x: auto; }
    /* invoice preview on phones: real A4 layout scaled down to the screen width (see fitSheets in site.js) */
    .inv-fit { overflow: hidden; }
    .inv-fit > .invoice-sheet { padding: 28px; font-size: 13px; overflow: visible; transform-origin: top left; }
    .tpl-modern > *:not(.mod-band):not(.mod-foot) { margin-left: 12px; margin-right: 12px; }
    .tpl-modern .mod-items { width: calc(100% - 24px); }

    /* list tables → cards */
    table.m-cards thead { display: none; }
    table.m-cards, table.m-cards tbody, table.m-cards tr, table.m-cards td { display: block; width: 100%; }
    table.m-cards tr { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin: 10px 0; padding: 8px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
    table.m-cards tbody tr:hover { background: #fafbff; }
    table.m-cards td { border: 0 !important; padding: 3px 0 !important; text-align: right !important; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
    table.m-cards td::before { content: attr(data-label); color: #6b7280; font-size: 12px; text-align: left; font-weight: 500; flex-shrink: 0; }
    table.m-cards td:first-child { font-weight: 600; font-size: 14.5px; text-align: left !important; justify-content: flex-start; }
    table.m-cards td:first-child::before { display: none; }
    table.m-cards td.empty { justify-content: center; } table.m-cards td.empty::before { display: none; }
    .card > .table-responsive:has(table.m-cards) { padding: 0 10px; background: var(--bg); }

    /* invoice line items → stacked cards */
    table.lines-table.m-cards tr { position: relative; padding-top: 30px; }
    table.lines-table.m-cards td { text-align: left !important; }
    table.lines-table.m-cards td.idx { position: absolute; top: 6px; left: 12px; font-size: 12px; color: #6b7280; }
    table.lines-table.m-cards td.idx::before { content: "Item #"; display: inline; color: #6b7280; }
    table.lines-table.m-cards td:first-child { font-weight: 400; }
    table.lines-table.m-cards td input, table.lines-table.m-cards td select { max-width: 60%; }
    table.lines-table.m-cards td:nth-child(2) input.item-search { max-width: 100%; }
    table.lines-table.m-cards td:nth-child(2) { flex-direction: column; align-items: stretch; }
    table.lines-table.m-cards td .del { position: absolute; top: 2px; right: 6px; }
    table.lines-table.m-cards td:last-child::before { display: none; }
    table.lines-table.m-cards td.amt { font-size: 15px; color: var(--primary); }
    .totals-box input { max-width: 90px; }
}
@media print { .bottom-nav, .sb-backdrop, .quick-sheet { display: none !important; } body { padding-bottom: 0; }
    .inv-fit { height: auto !important; overflow: visible; } .inv-fit > .invoice-sheet { transform: none !important; width: auto !important; } }

/* ---------------- in-app Help & Training ---------------- */
.help-banner{background:linear-gradient(135deg,#111a2e 0%,#2b2f8f 60%,#4f46e5 100%);color:#fff;border-radius:16px;padding:24px 26px}
.help-search{position:relative;max-width:560px}
.help-search i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#6b7280}
.help-search input{width:100%;border:0;border-radius:30px;padding:11px 16px 11px 40px;font-size:15px}
.help-card{display:block;background:#fff;border:1px solid var(--border,#e5e7eb);border-radius:14px;overflow:hidden;color:inherit;text-decoration:none;height:100%;transition:transform .15s,box-shadow .15s}
.help-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(17,24,39,.08);color:inherit}
.help-card .thumb{aspect-ratio:16/9;background-size:cover;background-position:top left;position:relative;border-bottom:1px solid #eef0f6}
.help-card .no{position:absolute;left:10px;top:10px;background:#111a2e;color:#fff;font-size:11px;font-weight:600;border-radius:20px;padding:3px 9px}
.help-card .play{position:absolute;right:12px;bottom:12px;width:44px;height:44px;border-radius:50%;background:#ff3d6e;color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;box-shadow:0 6px 16px rgba(255,61,110,.4)}
.help-ic{width:44px;height:44px;border-radius:12px;background:#eef0ff;color:#4f46e5;display:inline-flex;align-items:center;justify-content:center;font-size:20px;flex:0 0 44px}
.help-player{width:100%;border-radius:12px;background:#000}
.help-body{font-size:15px;line-height:1.75}
.help-body h3{font-size:18px;font-weight:700;margin-top:24px}
.help-body .lead{font-size:16px;color:#4b5563}
.help-steps{padding-left:22px}.help-steps>li{margin-bottom:22px}
.help-shot img{width:100%;max-width:720px;border:1px solid #e5e7eb;border-radius:10px;margin-top:8px}
.help-code{background:#0f172a;color:#e2e8f0;border-radius:10px;padding:12px 14px;font-size:12.5px;overflow:auto}
.help-faq details{border:1px solid #e5e7eb;border-radius:10px;padding:12px 16px;margin-bottom:8px}
.help-faq summary{font-weight:600;cursor:pointer}.help-faq p{margin:8px 0 0;color:#4b5563}
.help-side{position:sticky;top:76px}
@media (max-width:1199px){.help-side{position:static}}

/* ---------------- Analytics & Inventory (live) ---------------- */
.live-pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#0a7d0a;background:#e8f7e8;border:1px solid #bfe6bf;border-radius:20px;padding:4px 10px;letter-spacing:.5px}
.live-pill .dot{width:8px;height:8px;border-radius:50%;background:#0ca30c;box-shadow:0 0 0 0 rgba(12,163,12,.6);animation:livedot 1.6s infinite}
.live-pill.flash{background:#0ca30c;color:#fff}
@keyframes livedot{0%{box-shadow:0 0 0 0 rgba(12,163,12,.55)}70%{box-shadow:0 0 0 8px rgba(12,163,12,0)}100%{box-shadow:0 0 0 0 rgba(12,163,12,0)}}
.kpi-tile{display:block;height:100%;background:#fff;border:1px solid var(--border,#e5e7eb);border-radius:14px;padding:14px 16px;color:inherit;text-decoration:none;transition:box-shadow .15s,transform .15s}
a.kpi-tile:hover{box-shadow:0 8px 22px rgba(17,24,39,.08);transform:translateY(-1px);color:inherit}
.kpi-tile .lbl{font-size:12.5px;color:#52514e;font-weight:500}
.kpi-tile .lbl i{color:#2a78d6}
.kpi-tile .val{font-size:22px;font-weight:700;color:#0b0b0b;margin-top:4px;white-space:nowrap}
.kpi-tile .sub{font-size:12px;color:#6b7280;margin-top:2px}
.chart-box{position:relative;width:100%}
.hbar{position:relative;height:22px;background:#f1f3f6;border-radius:4px;overflow:hidden}
.hbar span{position:absolute;left:0;top:0;bottom:0;background:#2a78d6;border-radius:4px}
.hbar em{position:relative;font-style:normal;font-size:12px;font-weight:600;padding-left:8px;line-height:22px;color:#0b0b0b;text-shadow:0 0 3px #fff}
.stock-bar{display:flex;gap:2px;height:22px;border-radius:6px;overflow:hidden}
.stock-bar span:first-child{border-radius:4px 0 0 4px}.stock-bar span:last-child{border-radius:0 4px 4px 0}
.an-pnl td{padding:7px 14px;font-size:13.5px}
.an-pnl .an-sub td{background:#f4f8ff;font-weight:600}
.an-pnl .an-total td{background:#0b1020;color:#fff;font-weight:700;font-size:15px}
.an-pnl .an-total.neg td{background:#d03b3b}
.inv-status{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;border-radius:20px;padding:2px 9px}
.inv-status.in{background:#e8f7e8;color:#0a7d0a}.inv-status.low{background:#fff4d6;color:#8a5a00}.inv-status.out{background:#fde8e8;color:#b42323}
@media print{.an-filters,.live-pill{display:none!important}.kpi-tile{border:1px solid #ccc}}
