/* AdminBeat Partner Program: one stylesheet for sign-up, partner area and admin.
   Colours from adminbeat.com (css/style.css): --c-1 #048dc9, --c-2 #036a99, --c-head #0B1520. */
:root {
    --c-1: #048dc9; --c-2: #036a99; --c-blue: #224DB7; --c-head: #0B1520; --c-text: #1E293B; --c-muted: #64748B;
    --bg: #F4F7FA; --card: #FFFFFF; --line: #E2E8F0; --soft: #F1F5F9; --input: #FFFFFF;
    --green: #15803d; --green-bg: #DCFCE7; --amber: #a16207; --amber-bg: #FEF3C7; --red: #b91c1c; --red-bg: #FEE2E2;
    --blue-t: #1d4ed8; --blue-bg: #DBEAFE; --teal: #0f766e; --teal-bg: #CCFBF1; --grey-t: #475569; --grey-bg: #E2E8F0;
    --radius: 10px; --shadow: 0 2px 12px rgba(15, 23, 42, .07);
    --font-body: 'Mulish', 'Segoe UI', Tahoma, sans-serif; --font-head: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}
[data-theme="dark"] {
    --c-head: #F1F5F9; --c-text: #E2E8F0; --c-muted: #94A3B8; --bg: #0B1520; --card: #121F2E; --line: #22344A; --soft: #172738; --input: #0E1A27;
    --green-bg: #12351F; --green: #4ade80; --amber-bg: #3A2C0B; --amber: #fbbf24; --red-bg: #3B1414; --red: #f87171;
    --blue-bg: #13284A; --blue-t: #93c5fd; --teal-bg: #0E3532; --teal: #5eead4; --grey-bg: #22344A; --grey-t: #CBD5E1;
    --shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--c-text); background: var(--bg); }
h1, h2, h3 { font-family: var(--font-head); color: var(--c-head); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
a { color: var(--c-1); text-decoration: none; } a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
code { font-family: Consolas, monospace; background: var(--soft); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
img { max-width: 100%; }
.ic { flex: none; vertical-align: middle; }
.muted { color: var(--c-muted); } .small { font-size: .88rem; } .sr { position: absolute; left: -9999px; }
.right { text-align: right; } .nowrap { white-space: nowrap; } .mt { margin-top: 18px; } .mb0 { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 var(--font-body); padding: 12px 20px; border-radius: 8px; border: 1.5px solid transparent; cursor: pointer; background: var(--c-1); color: #fff; text-decoration: none !important; transition: background .2s, opacity .2s; }
.btn:hover { background: var(--c-2); }
.btn.block { width: 100%; padding: 14px 20px; }
.btn.light { background: var(--card); color: var(--c-text); border-color: var(--line); } .btn.light:hover { background: var(--soft); }
.btn.green { background: #16a34a; } .btn.green:hover { background: #15803d; }
.btn.red { background: #dc2626; } .btn.red:hover { background: #b91c1c; }
.btn.wa { background: #25D366; color: #0B1520; } .btn.wa:hover { background: #1ebe5a; }
.btn.sm { padding: 8px 12px; font-size: 13.5px; }
.btn[disabled], .btn.busy { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.link-btn { background: none; border: 0; color: var(--c-1); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }

/* ---------- Forms (CLINICBEAT style) ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--c-head); }
.field .opt { font-weight: 400; color: var(--c-muted); }
.input-wrap { position: relative; }
.input-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--c-muted); pointer-events: none; display: flex; }
.ctl { width: 100%; font: 15px var(--font-body); color: var(--c-text); background: var(--input); border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; transition: border-color .2s, box-shadow .2s; }
.ctl.has-ic { padding-left: 40px; }
textarea.ctl { resize: vertical; min-height: 80px; }
select.ctl { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-muted) 50%), linear-gradient(135deg, var(--c-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.ctl:focus { outline: none; border-color: var(--c-1); box-shadow: 0 0 0 3px rgba(4, 141, 201, .18); }
.ctl[readonly] { background: var(--soft); }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--c-muted); cursor: pointer; padding: 6px; display: flex; }
.pw-meter { height: 5px; background: var(--line); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; background: #dc2626; transition: width .2s, background .2s; }
.hint { font-size: 13px; color: var(--c-muted); margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 4px 0 18px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-1); flex: none; }
.code-input { font: 700 26px/1 Consolas, monospace; letter-spacing: 10px; text-align: center; }
.file-box { border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; background: var(--soft); }
.file-box img { max-height: 120px; margin: 8px auto 0; display: block; border-radius: 6px; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.radio-cards label { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 8px; text-align: center; cursor: pointer; font-weight: 700; font-size: 13.5px; background: var(--card); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.radio-cards input { position: absolute; opacity: 0; }
.radio-cards input:checked + label, .radio-cards label:has(input:checked) { border-color: var(--c-1); box-shadow: 0 0 0 3px rgba(4, 141, 201, .15); }

/* ---------- Notices and badges ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14.5px; }
.notice > div { flex: 1; } .notice p:last-child { margin: 0; }
.notice-error { background: var(--red-bg); color: var(--red); }
.notice-success { background: var(--green-bg); color: var(--green); }
.notice-info { background: var(--blue-bg); color: var(--blue-t); }
.notice-warning { background: var(--amber-bg); color: var(--amber); }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.badge-green { background: var(--green-bg); color: var(--green); } .badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); } .badge-blue { background: var(--blue-bg); color: var(--blue-t); }
.badge-teal { background: var(--teal-bg); color: var(--teal); } .badge-grey { background: var(--grey-bg); color: var(--grey-t); }
.pay-badge { display: inline-flex; align-items: center; font-weight: 800; font-size: 12.5px; padding: 4px 10px; border-radius: 6px; }
.pay-badge.has-logo { padding: 0; } .pay-badge img { height: 24px; width: auto; }
.pay-bank { background: #E0E7FF; color: #3730A3; } .pay-jazzcash { background: #FEE2E2; color: #B91C1C; } .pay-easypaisa { background: #DCFCE7; color: #166534; }
[data-theme="dark"] .pay-bank { background: #26285A; color: #C7D2FE; } [data-theme="dark"] .pay-jazzcash { background: #4A1717; color: #FCA5A5; } [data-theme="dark"] .pay-easypaisa { background: #123A22; color: #86EFAC; }

/* ---------- Theme button ---------- */
.theme-btn { background: none; border: 1.5px solid var(--line); color: var(--c-text); border-radius: 8px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.theme-sun { display: none; } [data-theme="dark"] .theme-sun { display: flex; } [data-theme="dark"] .theme-moon { display: none; } .theme-moon { display: flex; }

/* ---------- Auth (two panels, like CLINICBEAT) ---------- */
body.auth { min-height: 100vh; }
.auth-theme-btn { position: fixed; top: 14px; right: 14px; z-index: 5; background: var(--card); }
.auth-shell { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; min-height: 100vh; }
.auth-aside { background: radial-gradient(circle at 20% 10%, #12324a 0, #0B1520 55%); color: #CBD5E1; padding: 34px 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; position: sticky; top: 0; height: 100vh; }
.auth-aside .brand img { height: 34px; width: auto; }
.auth-aside h2 { color: #fff; font-size: 1.8rem; margin: 8px 0 10px; }
.auth-aside p { color: #CBD5E1; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #FFB703; }
.sample-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 16px; margin: 20px 0 24px; }
.sample-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sample-top small, .sample-tiles small { color: #94A3B8; font-size: 12px; display: block; }
.sample-top b { font: 700 18px/1 Consolas, monospace; color: #FFB703; letter-spacing: 2px; }
.sample-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sample-tiles div { background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 10px; }
.sample-tiles b { color: #fff; font-size: 18px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #94A3B8; }
.steps li span { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #334155; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: none; }
.steps li.now { color: #fff; font-weight: 700; } .steps li.now span { background: var(--c-1); border-color: var(--c-1); color: #fff; }
.steps li.done span { background: #16a34a; border-color: #16a34a; color: #fff; }
.aside-foot { font-size: 13px; color: #94A3B8 !important; margin: 0; display: flex; gap: 6px; align-items: center; }
.auth-main { display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 470px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 32px 30px; margin: auto 0; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .lead { color: var(--c-muted); margin-bottom: 22px; }
.step-count { font-size: 12.5px; font-weight: 800; color: var(--c-1); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: 14px; }
@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { position: static; height: auto; padding: 22px 20px; }
    .auth-aside .sample-card, .auth-aside .aside-foot { display: none; }
    .auth-aside h2 { font-size: 1.35rem; }
    .auth-main { padding: 22px 14px 40px; }
    .auth-card { padding: 24px 18px; }
}

/* ---------- App shell (partner + admin) ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.topbar .brand img { height: 28px; width: auto; }
.topbar .brand span { font: 700 14px var(--font-head); color: var(--c-muted); border-left: 1px solid var(--line); padding-left: 10px; }
.logo-dark { display: none; } [data-theme="dark"] .logo-dark { display: block; } [data-theme="dark"] .logo-light { display: none; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.who { font-weight: 700; font-size: 14px; } .who small { color: var(--c-muted); font-weight: 600; }
.icon-link { color: var(--c-text); display: inline-flex; padding: 6px; border-radius: 8px; } .icon-link:hover { background: var(--soft); }
.menu-btn { display: none; background: none; border: 0; color: var(--c-text); cursor: pointer; padding: 4px; }
.layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 57px); }
.sidenav { background: var(--card); border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--c-text); font-weight: 600; text-decoration: none !important; }
.sidenav a:hover { background: var(--soft); }
.sidenav a.active { background: rgba(4, 141, 201, .12); color: var(--c-1); }
.sidenav a em { font-style: normal; background: #dc2626; color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.sidenav .small-link { margin-top: auto; font-size: 13.5px; color: var(--c-muted); }
.content { padding: 24px 28px 60px; min-width: 0; max-width: 1180px; }
.page-title { font-size: 1.45rem; margin-bottom: 18px; }
.test-strip { background: var(--blue-bg); color: var(--blue-t); font-size: 13.5px; padding: 8px 12px; border-radius: 8px; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.bottomnav { display: none; }
@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
    .content { padding: 18px 14px 90px; }
    .who { display: none; }
    .shell.partner .sidenav { display: none; }
    .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
    .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; color: var(--c-muted); padding: 4px 0; text-decoration: none !important; }
    .bottomnav a.active { color: var(--c-1); }
    .shell.admin .menu-btn { display: inline-flex; }
    .shell.admin .sidenav { display: none; position: fixed; top: 57px; left: 0; bottom: 0; width: 250px; z-index: 25; box-shadow: var(--shadow); overflow-y: auto; }
    .shell.admin.menu-open .sidenav { display: flex; }
    .topbar { padding: 10px 14px; }
    .topbar .brand span { display: none; }
}

/* ---------- Cards, tiles, tables ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.tile small { display: block; color: var(--c-muted); font-size: 12.5px; font-weight: 700; }
.tile b { font: 700 1.25rem var(--font-head); color: var(--c-head); }
.tile-ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(4, 141, 201, .12); color: var(--c-1); flex: none; }
.tile.green .tile-ic { background: var(--green-bg); color: var(--green); } .tile.amber .tile-ic { background: var(--amber-bg); color: var(--amber); } .tile.teal .tile-ic { background: var(--teal-bg); color: var(--teal); }
.banner { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; display: flex; gap: 12px; align-items: flex-start; }
.banner.promo { background: linear-gradient(135deg, #FFB703, #FB8500); color: #0B1520; font-weight: 700; }
.banner.wait { background: var(--amber-bg); color: var(--amber); }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--c-muted); padding: 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
table.list td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.num, table.list th.num { text-align: right; white-space: nowrap; }
@media (max-width: 700px) {
    table.list.stack thead { display: none; }
    table.list.stack tr { display: block; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 6px 4px; }
    table.list.stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 10px; text-align: right; }
    table.list.stack td::before { content: attr(data-label); font-weight: 700; color: var(--c-muted); text-align: left; }
    table.list.stack td.num { text-align: right; }
}
.empty { text-align: center; color: var(--c-muted); padding: 26px 10px; }
.empty .ic { opacity: .5; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters a { padding: 6px 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--c-text); font-weight: 700; font-size: 13px; text-decoration: none !important; }
.filters a.active { background: var(--c-1); border-color: var(--c-1); color: #fff; }
.filters form { display: flex; gap: 8px; margin-left: auto; } .filters .ctl { padding: 7px 10px; }
.pager { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pager a { padding: 6px 11px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); font-weight: 700; color: var(--c-text); }
.pager a.active { background: var(--c-1); color: #fff; border-color: var(--c-1); }
dl.facts { display: grid; grid-template-columns: 170px 1fr; gap: 8px 14px; margin: 0; }
dl.facts dt { color: var(--c-muted); font-weight: 700; } dl.facts dd { margin: 0; word-break: break-word; }
@media (max-width: 600px) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 8px; } }
.inline-form { display: inline; }

/* ---------- Share page ---------- */
.code-big { font: 800 2rem/1 Consolas, monospace; letter-spacing: 4px; color: var(--c-head); }
.copy-row { display: flex; gap: 8px; margin-bottom: 10px; }
.copy-row .ctl { font-family: Consolas, monospace; font-size: 14px; }
.qr-box { background: #fff; padding: 14px; border-radius: 12px; display: inline-block; border: 1px solid var(--line); }
.qr-box canvas, .qr-box img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #0B1520; color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 14px; z-index: 50; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.cnic-view img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- Public program page ---------- */
.pp-hero { background: radial-gradient(circle at 15% 20%, #12324a 0, #0B1520 60%); color: #CBD5E1; padding: 70px 0 60px; }
.pp-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.pp-hero p { font-size: 1.1rem; max-width: 620px; }
.pp-wrap { width: min(100% - 40px, 1140px); margin: 0 auto; }
.pp-section { padding: 56px 0; }
.pp-section h2 { font-size: 1.7rem; text-align: center; margin-bottom: 28px; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.pp-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.pp-card .num { width: 38px; height: 38px; border-radius: 50%; background: var(--c-1); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px; }
.pp-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.pp-faq summary { font-weight: 800; cursor: pointer; color: var(--c-head); }
.pp-faq details p { margin: 10px 0 0; }
.pp-cta { text-align: center; }
.pp-hero .btn-row { margin-top: 24px; }
.btn.amber { background: #FFB703; color: #0B1520; } .btn.amber:hover { background: #FB8500; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; } .btn.ghost:hover { background: rgba(255,255,255,.08); }
.terms h2 { text-align: left; font-size: 1.2rem; margin-top: 28px; }
.terms ol li, .terms ul li { margin-bottom: 6px; }
.terms ul { list-style: disc; padding-left: 22px; } .terms ol { padding-left: 22px; }
.copy-row .ctl { flex: 1; min-width: 0; }
.copy-row .btn { flex: none; }
.sidenav .nav-group { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--c-muted); padding: 14px 12px 4px; }
.sidenav .nav-group:first-child { padding-top: 0; }
.shell.admin .sidenav { overflow-y: auto; }

/* ---------- Office: accounts ---------- */
.filter-bar { padding: 14px 16px; }
.fb-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 6px; }
.fb-row label { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 700; color: var(--c-muted); gap: 4px; min-width: 150px; flex: 1; }
.fb-row .ctl { padding: 8px 10px; font-size: 14px; }
.fb-row select.ctl { padding-right: 30px; }
.fb-btns { display: flex; gap: 6px; }
.filter-bar:not(.custom-on) .fb-custom { display: none; }
.fb-share { margin: 6px 0 4px; font-size: 13px; }
.tile-chg { display: block; font-size: 11.5px; color: var(--c-muted); font-weight: 600; }
.neg { color: var(--red); } .pos { color: var(--green); }
.tile b.neg { color: var(--red); }
.profit-tile { border: 2px solid var(--c-1); }
.profit-tile .tile-ic { background: var(--c-1); color: #fff; }
svg.chart { width: 100%; height: auto; display: block; }
.ch-axis { stroke: var(--line); }
.ch-in { fill: var(--c-1); }
.ch-out { fill: #94A3B8; }
.ch-profit { fill: none; stroke: #16a34a; stroke-width: 2; }
.ch-dot { fill: #16a34a; }
.ch-lbl { fill: var(--c-muted); font-size: 10.5px; font-family: var(--font-body); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--c-muted); align-items: center; margin-top: 6px; }
.legend span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -8px; }
.lg-in { background: var(--c-1); } .lg-out { background: #94A3B8; } .lg-profit { background: #16a34a; height: 4px !important; }
.hbar { margin-bottom: 10px; }
.hbar-top { display: flex; justify-content: space-between; font-size: 13.5px; gap: 8px; }
.hbar-track { height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; margin-top: 3px; }
.hbar-track span { display: block; height: 100%; background: var(--c-1); border-radius: 4px; }
tr.cancelled td { opacity: .55; text-decoration: line-through; }
tr.cancelled td:last-child { text-decoration: none; }
tr.late td:first-child { color: var(--red); font-weight: 800; }
.list-edit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.list-edit .ctl { flex: 1; min-width: 140px; padding: 7px 10px; }
.list-edit label { display: flex; gap: 4px; align-items: center; }
.pl-table td:first-child { white-space: nowrap; }
.pl-table tr.pl-strong td { font-weight: 800; }
.pl-table tr.pl-total td { font-weight: 800; border-top: 2px solid var(--c-head); background: rgba(4, 141, 201, .06); }
.pl-table tr.pl-muted td { color: var(--c-muted); }
@media print {
    .topbar, .sidenav, .filter-bar, .btn-row, .filters, .bottomnav { display: none !important; }
    .layout { display: block; } .content { padding: 0; max-width: none; } .card { box-shadow: none; border: 0; }
}
.ch-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.ch-axis { stroke: var(--c-muted); }
.ch-dot-neg { fill: #dc2626; }
.tile b { white-space: nowrap; }

.shell.admin .content { max-width: none; }
details.card > summary.card-summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
details.card > summary.card-summary::-webkit-details-marker { display: none; }
details.card > summary.card-summary h2 { margin: 0; }
details.card > summary.card-summary::after { content: '+'; font: 700 1.4rem var(--font-head); color: var(--c-muted); }
details.card[open] > summary.card-summary { margin-bottom: 14px; }
details.card[open] > summary.card-summary::after { content: '\2212'; }
