/* MediCare Pharmacy design system (based on the DeshBD v2 system): greens on a charcoal text colour,
   Bricolage Grotesque for headings, Hanken Grotesk for text. Pharmacy additions are at the end of the file. */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800; font-display: swap;
}
@font-face {
    font-family: "Hanken Grotesk";
    src: url("../assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900; font-display: swap;
}

:root {
    /* Palette taken from the DeshBD logo: flag green, light hexagon green, flag red, charcoal. */
    --brand-950: #052a1b;
    --brand-900: #07412a;
    --brand-800: #0a6b43;
    --brand-700: #008848;        /* logo green */
    --accent: #008848;
    --accent-text: #00703b;      /* AA on white */
    --accent-soft: #e5f4ec;
    --lime: #8dc63f;             /* logo light green */
    --lime-text: #3f6b12;
    --red: #e81820;              /* logo red */
    --paper: #f4f8f5;
    --white: #fff;
    --line: #dbe6df;
    --text: #1c2420;
    --muted: #55625b;
    --danger: #b3261e;   --danger-soft: #fde8e6;
    --amber: #8a5300;    --amber-soft: #fff1d0;
    --ok: #1d6b2c;       --ok-soft: #e2f4e5;
    --radius: 10px;
    --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
    --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.6 var(--body); color: var(--text); background: var(--white); }
body.area-admin, body.area-portal { background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; max-width: 68ch; }
:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.icon { flex: none; }
form.inline { margin: 0; display: inline; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--white); color: var(--text);
    font: 600 .95rem/1.3 var(--body); text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--paper); border-color: #b3c7ba; }
.btn-primary { background: #007a41; border-color: #007a41; color: #fff; }
.btn-primary:hover { background: #00613a; border-color: #00613a; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #8d1d17; border-color: #8d1d17; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-sm { padding: 5px 11px; font-size: .86rem; }
.btn-lg { padding: 13px 24px; font-size: 1.05rem; }
.btn .icon { width: 18px; height: 18px; }
.link-quiet { color: var(--muted); text-decoration: none; font-weight: 500; }
.link-quiet:hover { color: var(--text); text-decoration: underline; }

/* ---------- Alerts & badges ---------- */
.alert { padding: 11px 14px; border-radius: 8px; margin: 0 0 16px; border: 1px solid; max-width: none; }
.alert-success { background: var(--ok-soft); color: var(--ok); border-color: #b7dfbd; }
.alert-error { background: var(--danger-soft); color: #8a1f1a; border-color: #f2b8b3; }
.alert-info { background: var(--accent-soft); color: #0b5a37; border-color: #b9dfc8; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 650; white-space: nowrap; background: #e8eeea; color: #3a4560; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-paid, .badge-active, .badge-live, .badge-approved, .badge-upgrade, .badge-sent, .badge-client { background: var(--ok-soft); color: var(--ok); }
.badge-unpaid, .badge-in_progress, .badge-normal, .badge-pending, .badge-review, .badge-downgrade, .badge-skipped, .badge-queued { background: var(--amber-soft); color: var(--amber); }
.badge-overdue, .badge-suspended, .badge-high, .badge-rejected, .badge-failed { background: var(--danger-soft); color: #9a1f19; }
.badge-open { background: var(--accent-soft); color: #0b5a37; }
.badge-closed, .badge-low, .badge-hidden { background: #e8eeea; color: #4b5a52; }

/* ---------- Top navigation (public + portal) ---------- */
.topnav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topnav-in { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { display: block; height: 64px; flex: none; }
.brand .logo { width: auto; height: 64px; max-width: none; display: block; }
.topnav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.topnav-links > a { padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 550; }
.topnav-links > a:hover { background: var(--paper); }
.topnav-links > a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }
.topnav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.who { color: var(--muted); font-size: .92rem; }
.menu-btn { display: none; margin-left: auto; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); cursor: pointer; }

/* ---------- Public hero + plan picker ---------- */
.hero { background: var(--brand-900); color: #fff; position: relative; overflow: hidden; }
.hero::after {   /* decorative signal rings */
    content: ""; position: absolute; right: -180px; top: -140px; width: 640px; height: 640px; border-radius: 50%;
    border: 1px solid rgba(141, 198, 63, .28);
    box-shadow: 0 0 0 70px rgba(141,198,63,.07), 0 0 0 140px rgba(141,198,63,.05), 0 0 0 210px rgba(141,198,63,.035);
    pointer-events: none;
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 0 92px; }
.hero h1, .hero .slide-title { margin-top: 0; font-size: clamp(2.3rem, 4.8vw, 3.9rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin-bottom: 20px; }
.hero p.lead { font-size: 1.2rem; color: #cfe6d8; max-width: 34ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.picker { background: #fff; color: var(--text); border-radius: 14px; padding: 22px; box-shadow: 0 24px 60px rgba(2,24,14,.45); }
.picker-title { font: 600 .95rem var(--body); color: var(--muted); margin: 0 0 10px; }
.picker-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.picker-tabs button { flex: 1 1 auto; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 650 .92rem var(--body); color: var(--text); cursor: pointer; }
.picker-tabs button:hover { border-color: var(--accent); }
.picker-tabs button[aria-checked="true"] { background: var(--brand-900); border-color: var(--brand-900); color: #fff; }
.picker-cats { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--paper); border-radius: 10px; }
.picker-cats button { flex: 1; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; font: 650 .92rem var(--body); color: var(--muted); cursor: pointer; }
.picker-cats button[aria-pressed="true"] { background: #fff; color: var(--brand-900); box-shadow: 0 1px 3px rgba(5,40,27,.2); }
.picker-tabs button[hidden] { display: none; }
.plan-group + .plan-group { margin-top: 36px; }
.plan-group h3 { font-size: 1.3rem; margin-bottom: 12px; }
.plan-group h3 small { font: 500 1rem var(--body); margin-left: 8px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.speed { display: flex; align-items: baseline; gap: 10px; }
.speed-num { font: 800 clamp(3.4rem, 8vw, 5.4rem)/1 var(--display); letter-spacing: -.045em; color: var(--brand-800); font-variant-numeric: tabular-nums; }
.speed-unit { font: 600 1.3rem var(--display); color: var(--muted); }
.meter { display: flex; gap: 5px; align-items: flex-end; height: 44px; margin: 16px 0 14px; }
.meter i { flex: 1; border-radius: 3px; background: #e2ebe5; transition: background-color .35s, height .35s; height: 30%; }
.meter i:nth-child(2) { height: 40%; } .meter i:nth-child(3) { height: 50%; } .meter i:nth-child(4) { height: 60%; }
.meter i:nth-child(5) { height: 72%; } .meter i:nth-child(6) { height: 82%; } .meter i:nth-child(7) { height: 92%; } .meter i:nth-child(8) { height: 100%; }
.meter i.on { background: var(--lime); }
.picker-price { font: 700 1.5rem var(--display); margin: 0 0 4px; }
.picker-price small { font: 500 1rem var(--body); color: var(--muted); }
.picker-for { color: var(--muted); margin: 0 0 18px; min-height: 3em; }
.picker .btn { width: 100%; }

/* ---------- Public sections ---------- */
.section { padding: 72px 0; }
.section.tint { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points .icon { color: var(--accent-text); margin-top: 3px; }
.points h3 { margin: 0 0 2px; }
.points p { margin: 0; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 8px; }
.facts h3 { color: var(--brand-700); }
.page-hero { background: var(--brand-900); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 8px; }
.page-hero p { color: #cfe6d8; margin: 0; font-size: 1.1rem; }
.photo { width: 100%; border-radius: 12px; display: block; }
.stack > * + * { margin-top: 20px; }
.cta-band { background: var(--accent-soft); padding: 48px 0; }
.cta-band .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: 1.6rem; }

.site-footer { background: var(--brand-950); color: #a9c4b4; padding: 40px 0 24px; margin-top: 0; }
body.area-portal .site-footer { background: none; color: var(--muted); padding: 24px 0 32px; }
.foot-grid { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; }
.site-footer strong { color: #fff; font-family: var(--display); font-size: 1.2rem; }
.site-footer p { margin: 6px 0 0; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav a { color: #d6e8dc; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.fine { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 4px; }
.form label { font-weight: 650; margin-top: 12px; font-size: .95rem; }
.form label small, .hint { font-weight: 400; color: var(--muted); font-size: .86rem; }
.form .actions { margin-top: 20px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"],
input[type="search"], input[type="number"], select, textarea {
    width: 100%; padding: 9px 12px; border: 1px solid #b6c8bd; border-radius: 8px; font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid rgba(0,136,72,.25); outline-offset: 0; }
.form-narrow { max-width: 460px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-weight: 500; }
.check input { width: auto; }

.auth { min-height: 70vh; display: grid; place-items: center; padding: 48px 0; background: var(--paper); }
.auth-card { width: min(420px, 100% - 40px); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 4px; }
.auth-card .btn { width: 100%; margin-top: 20px; }
.auth-card .switch { margin: 18px 0 0; text-align: center; font-size: .92rem; color: var(--muted); }

/* ---------- Admin shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--brand-900); color: #c6dccf; padding: 18px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-brand { display: block; width: 100%; border-radius: 8px; background: #fff; margin: 0 0 10px; padding: 8px 10px; text-align: center; }
.side-brand .logo { height: 72px; width: auto; max-width: 100%; display: inline-block; vertical-align: top; }
.side-group { margin: 18px 10px 6px; font-size: .82rem; color: #8fb3a0; font-weight: 600; max-width: none; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; color: #e0eee5; text-decoration: none; font-weight: 550; font-size: .96rem; border: 0; background: none; width: 100%; cursor: pointer; font-family: inherit; }
.side-link:hover { background: rgba(255,255,255,.08); }
.side-link[aria-current="page"] { background: #fff; color: var(--brand-900); }
.side-count { margin-left: auto; background: #f2a900; color: #2b1e00; border-radius: 99px; padding: 0 8px; font-size: .78rem; font-weight: 700; line-height: 1.5; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.side-foot .who { display: block; padding: 0 10px 6px; color: #8fb3a0; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 22px 32px 10px; }
.topbar h1 { font-size: 1.7rem; font-weight: 750; margin: 0; }
.subtitle { margin: 2px 0 0; color: var(--muted); }
.view { padding: 12px 32px 48px; }

/* panels, kpis, tables */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.panel > h2, .panel-head h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.flush .panel-head { padding: 16px 22px 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.kpi { padding: 18px 22px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpi-label { display: block; color: var(--muted); font-size: .9rem; }
.kpi-value { display: block; font: 750 2rem/1.15 var(--display); letter-spacing: -.03em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.kpi-note { color: var(--muted); font-size: .86rem; }
.kpi-note.warn { color: var(--danger); font-weight: 600; }
.cols-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.cols-2.even { grid-template-columns: 1fr 1fr; }
.chart-box { position: relative; height: 270px; }
.chart-box.short { height: 230px; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
.data th { text-align: left; font-weight: 600; font-size: .85rem; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfcfe; }
.data td { padding: 11px 14px; border-bottom: 1px solid #ecf2ee; vertical-align: middle; }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover td { background: #f7fbf8; }
.data td.right, .data th.right { text-align: right; }
.data .row-actions { white-space: nowrap; text-align: right; }
.data a.title { font-weight: 650; color: var(--text); text-decoration: none; }
.data a.title:hover { color: var(--accent-text); text-decoration: underline; }
.empty { padding: 32px 22px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 4px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .grow { flex: 1 1 260px; max-width: 420px; position: relative; }
.toolbar form { display: contents; }
.toolbar select { width: auto; }
.toolbar .spacer { margin-left: auto; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 6px 14px; border-radius: 99px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; border: 1px solid transparent; }
.tabs a:hover { color: var(--text); background: #fff; }
.tabs a[aria-current="true"] { background: #fff; border-color: var(--line); color: var(--text); }

.details { display: grid; grid-template-columns: 8em 1fr; gap: 8px 16px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 550; }

/* tickets */
.thread { display: grid; gap: 14px; }
.msg { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: #fff; max-width: 78ch; }
.msg.staff { background: var(--accent-soft); border-color: #bfdfcc; margin-left: 32px; }
.msg-head { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; color: var(--muted); margin-bottom: 4px; flex-wrap: wrap; }
.msg-head strong { color: var(--text); }
.msg p { margin: 0; max-width: none; }

/* plans admin + public price table */
.plan-table th, .plan-table td { white-space: nowrap; }
.price-big { font: 750 1.2rem var(--display); }

/* invoice document */
.invoice { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; max-width: 800px; }
.invoice-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.invoice-head .brand { margin: 0; height: 84px; }
.invoice-head .brand .logo { height: 84px; }
.invoice h2 { margin: 0; font-size: 1.6rem; }
.invoice .meta { text-align: right; color: var(--muted); }
.invoice .meta strong { color: var(--text); }
.invoice-total { display: flex; justify-content: flex-end; gap: 24px; font: 750 1.4rem var(--display); padding-top: 14px; }
.stamp { display: inline-block; border: 3px solid var(--ok); color: var(--ok); border-radius: 8px; padding: 2px 14px; font: 800 1.3rem var(--display); transform: rotate(-4deg); }
.portal-main { padding: 28px 0 48px; }
.portal-main h1 { font-size: 1.9rem; font-weight: 750; }
.balance { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.balance .big { font: 800 2.6rem/1 var(--display); letter-spacing: -.035em; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-in, .split, .cols-2, .cols-2.even { grid-template-columns: 1fr; }
    .hero-in { padding: 56px 0 64px; gap: 36px; }
    .facts { grid-template-columns: 1fr; gap: 20px; }
    .kpis { grid-template-columns: 1fr 1fr; }
    .kpi:nth-child(3) { border-left: 0; }
    .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
    .menu-btn { display: inline-flex; }
    .topnav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 16px; flex-direction: column; align-items: stretch; }
    .topnav-links.open { display: flex; }
    .topnav-actions { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
    .app { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
    .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(4,30,18,.5); }
    .topbar { padding: 16px 16px 6px; }
    .topbar .menu-btn { margin-left: 0; }
    .view { padding: 8px 16px 40px; }
    .form-grid { grid-template-columns: 1fr; }
    .msg.staff { margin-left: 0; }
}
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } .kpi { border-left: 0 !important; border-top: 1px solid var(--line); } .kpi:first-child { border-top: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Print (invoices) ---------- */
/* ---- Payments and sign-up ---- */
.auth-card.wide { width: min(680px, 100% - 40px); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wallets { display: grid; gap: 12px; margin: 6px 0 18px; border: 0; padding: 0; }
.wallet { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.wallet:has(input:checked) { border-color: var(--wc, var(--brand-900)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wc, #07412a) 16%, transparent); }
.wallet input { margin-top: 5px; }
.wallet-name { font-weight: 700; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wallet-name i { width: 10px; height: 10px; border-radius: 50%; background: var(--wc, #07412a); display: inline-block; }
.wallet-name small { font-weight: 500; color: var(--muted); }
.wallet-num { font: 700 1.35rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.form .wallet { font-weight: 400; margin: 0; }
.wallet-how { color: var(--muted); font-size: .92rem; margin: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.mismatch { color: #9a1f19; font-size: .85rem; font-weight: 600; white-space: normal; }
.pay-actions { display: grid; gap: 8px; min-width: 250px; }
.pay-actions form { display: flex; gap: 6px; }
.pay-actions input[type=text] { flex: 1; min-width: 0; padding: 6px 10px; font-size: .9rem; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
@media print {
    body { background: #fff !important; }
    .topnav, .sidebar, .topbar, .toolbar, .site-footer, .no-print, .skip, .menu-btn, .alert { display: none !important; }
    .app { display: block; }
    .view, .portal-main { padding: 0 !important; }
    .invoice { border: 0; padding: 0; max-width: none; }
    .wrap { width: 100%; }
}

/* Brand stripe: green, light green, red (the logo's colours) */
.topnav { border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.topnav::after, .site-footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--brand-700) 0 68%, var(--lime) 68% 90%, #1b8fa8 90% 100%); }
.site-footer { position: relative; }
.site-footer::before { position: absolute; top: 0; left: 0; right: 0; }

/* ---- Hero slider ---- */
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.slider-ctl { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.slider-ctl[hidden] { display: none; }
.slider-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.slider-btn:hover { background: rgba(255,255,255,.14); }
.slider-btn .icon { width: 18px; height: 18px; }
.slider-dots { display: flex; gap: 8px; align-items: center; padding: 0 4px; }
.slider-dots button { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .25s ease, background .25s ease; }
.slider-dots button::after { content: ""; position: absolute; inset: -10px -4px; }
.slider-dots button[aria-current="true"] { width: 30px; background: var(--lime); }
.ico-play { display: none; }
.hero-slider[data-paused] .ico-pause { display: none; }
.hero-slider[data-paused] .ico-play { display: inline-grid; }
.auth-alt { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.auth-alt p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.auth-alt .btn { width: 100%; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .slide { transform: none; } }

/* ---- Public footer ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.btn-lime { background: var(--lime); border-color: var(--lime); color: #0a2a1a; font-weight: 700; }
.btn-lime:hover { background: #a3d65a; border-color: #a3d65a; color: #0a2a1a; }
.btn-lime .icon { width: 18px; height: 18px; }

.site-footer.site-footer-rich { padding: 0; margin-top: 0; color: #b9d3c4;
    background: radial-gradient(900px 340px at 88% -8%, rgba(141,198,63,.16), transparent 62%),
                radial-gradient(700px 300px at 0% 110%, rgba(0,136,72,.30), transparent 60%), var(--brand-950); }
.site-footer-rich .foot-main { display: grid; grid-template-columns: 1.55fr .85fr .85fr 1.35fr; gap: 48px; padding: 68px 0 48px; }
.site-footer-rich nav { display: block; }
.site-footer-rich p { margin: 0; }
.foot-logo { display: inline-block; background: #fff; border-radius: 16px; padding: 10px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.foot-logo .logo { display: block; height: 68px; width: auto; }
.foot-about p { margin-top: 20px; max-width: 38ch; line-height: 1.65; }
.foot-pills { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.foot-pills li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.05); color: #e0eee5; font-size: .84rem; font-weight: 600; }
.foot-pills .icon { width: 15px; height: 15px; color: var(--lime); }
.foot-col h3 { margin: 0 0 18px; color: #fff; font: 700 .8rem var(--body); letter-spacing: .14em; text-transform: uppercase; }
.foot-col h3::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--lime); }
.foot-links, .foot-contact { list-style: none; margin: 0; padding: 0; }
.foot-links { display: grid; gap: 11px; }
.foot-links a { color: #cfe3d6; text-decoration: none; display: inline-block; transition: color .15s ease, transform .15s ease; }
.foot-links a:hover, .foot-links a:focus-visible { color: #fff; transform: translateX(4px); }
.foot-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin-bottom: 15px; line-height: 1.5; color: #cfe3d6; }
.foot-contact .icon { width: 20px; height: 20px; color: var(--lime); margin-top: 2px; }
.foot-contact a { color: #fff; text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; }
.foot-col .btn-lime { margin-top: 6px; }

.foot-bar { border-top: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.16); }
.foot-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding: 18px 0; font-size: .9rem; color: #94b5a2; }
.foot-pay { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.foot-pay li { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.08); color: #e0eee5; font-weight: 600; font-size: .84rem; }
.foot-pay li.foot-pay-label { background: none; padding-left: 0; color: #94b5a2; font-weight: 500; }
.foot-pay i { width: 9px; height: 9px; border-radius: 50%; background: var(--wc); box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.foot-top { display: inline-flex; align-items: center; gap: 6px; color: #e0eee5; text-decoration: none; font-weight: 600; }
.foot-top .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.foot-top:hover .icon { transform: translateY(-3px); }
@media (max-width: 1000px) {
    .site-footer-rich .foot-main { grid-template-columns: 1fr 1fr; gap: 40px 32px; padding: 52px 0 36px; }
    .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .site-footer-rich .foot-main { grid-template-columns: 1fr; }
    .foot-bar-in { flex-direction: column; align-items: flex-start; }
}

/* ---- Staff and roles ---- */
.badge-admin { background: var(--brand-900); color: #fff; }
.badge-manager { background: var(--ok-soft); color: var(--ok); }
.badge-billing { background: var(--amber-soft); color: var(--amber); }
.badge-support { background: #e8eeea; color: #4b5a52; }
.who-role { display: block; font-size: .8rem; color: #8fb3a0; margin-top: 2px; }
.you { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: .75rem; font-weight: 700; }
.role-help { margin: 8px 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.role-help strong { color: var(--text); }
.perm-table th, .perm-table td { text-align: center; }
.perm-table th:first-child, .perm-table td:first-child { text-align: left; white-space: normal; }
.perm-table .yes { color: var(--ok); }
.perm-table .yes .icon { width: 18px; height: 18px; }
.perm-table .no { color: #b3c2b9; }

/* ---- Plan requests, activity log ---- */
.badge-staff { background: var(--brand-900); color: #fff; }
.badge-change, .badge-cancelled, .badge-guest { background: #e8eeea; color: #4b5a52; }
.wallets.plans .wallet-num { font-family: inherit; font-size: 1.25rem; letter-spacing: 0; }
.btn .icon { width: 17px; height: 17px; }
.stage-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 12px 0 4px; }
.stage-card { border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; display: grid; gap: 6px; align-content: start; }
.stage-card h3 { margin: 0; font-size: 1.05rem; }
.stage-card .when { color: var(--muted); font-size: .9rem; }
.stage-card .count { font: 700 1.6rem var(--display, inherit); color: var(--brand-800); }
.stage-card .btn { margin-top: 6px; justify-content: center; }
.stage-card small { color: var(--muted); }

.badge-system { background: var(--accent-soft); color: var(--accent-text); }

/* ---- Monthly report ---- */
.month-title { margin: 28px 0 10px; font-size: 1.5rem; }
.compare td.picked, .compare th a[aria-current] { background: var(--accent-soft); }
.compare th a { color: var(--text); text-decoration: none; }
.compare th a:hover { text-decoration: underline; }
.compare td:first-child { white-space: normal; }
@media print {
    .month-title { margin-top: 18px; }
    .sidebar, .topbar, .toolbar { display: none !important; }
}

/* =====================================================================
   MediCare Pharmacy additions
   ===================================================================== */

/* ---- Logo lockup (replaces the image logo) ---- */
.brand { height: auto; display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.logo-lockup { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.logo-mark { flex: none; width: 40px; height: 40px; }
.logo-text { display: grid; gap: 3px; }
.logo-text b { font: 800 1.3rem/1 var(--display); letter-spacing: -.03em; color: var(--brand-900); }
.logo-text small { font: 600 .74rem/1 var(--body); letter-spacing: .08em; color: var(--muted); text-transform: none; }
.logo-lockup.on-dark .logo-text b { color: #fff; }
.logo-lockup.on-dark .logo-text small { color: #8fb3a0; }
.side-brand { background: none; padding: 6px 10px 12px; text-align: left; text-decoration: none; margin-bottom: 4px; }
.foot-logo .logo-text b { font-size: 1.5rem; }
.nav-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: #f2a900; color: #2b1e00; font-size: .78rem; font-weight: 700; text-align: center; }

/* ---- Hero: medicine finder ---- */
.hero h1 { max-width: 14ch; }
.finder form { display: grid; gap: 10px; }
.finder label { font-weight: 650; }
.finder-row { display: flex; gap: 8px; }
.finder-row input { flex: 1; min-width: 0; }
.finder .btn { width: auto; }
.finder-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.finder-chips a { padding: 5px 12px; border-radius: 99px; background: var(--paper); color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 600; border: 1px solid var(--line); }
.finder-chips a:hover { border-color: var(--accent); color: var(--accent-text); }
.finder-note { margin: 14px 0 0; color: var(--muted); font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.finder-note .icon { color: var(--accent-text); width: 18px; height: 18px; }

/* ---- Public: categories, steps ---- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cat-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); text-decoration: none; }
.cat-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.cat-card .icon { color: var(--accent-text); }
.cat-card strong { display: block; line-height: 1.25; }
.cat-card small { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 14px; border-top: 3px solid var(--lime); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-900); color: #fff; font: 700 .9rem var(--display); margin-bottom: 8px; }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); margin: 0; }

/* ---- Product cards (public catalogue and portal shop) ---- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.pcard h3 { margin: 0; font-size: 1.05rem; }
.pcard .pmeta { color: var(--muted); font-size: .88rem; }
.pcard .pcat { color: var(--accent-text); font-size: .85rem; font-weight: 600; }
.pcard .pfoot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pcard .pprice { font: 750 1.25rem var(--display); }
.pcard .pprice small { font: 500 .85rem var(--body); color: var(--muted); }
.pcard form { display: flex; gap: 6px; align-items: center; margin: 0; }
.qty-input { width: 64px !important; padding: 6px 8px !important; text-align: center; }
.pcard .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }

/* ---- More status pills ---- */
.badge-in_stock, .badge-fresh, .badge-completed, .badge-read { background: var(--ok-soft); color: var(--ok); }
.badge-low, .badge-exp60, .badge-exp90, .badge-ready { background: var(--amber-soft); color: var(--amber); }
.badge-out, .badge-expired, .badge-exp30, .badge-cancelled, .badge-blocked { background: var(--danger-soft); color: #9a1f19; }
.badge-confirmed, .badge-unread, .badge-portal { background: var(--accent-soft); color: #0b5a37; }
.badge-counter { background: #e8eeea; color: #4b5a52; }
.badge-rx { background: #efe9fb; color: #5a3fa0; }
.badge-pharmacist { background: #e1f1f5; color: #14677c; }
.badge-storekeeper { background: var(--amber-soft); color: var(--amber); }
.badge-cashier { background: #e8eeea; color: #4b5a52; }

/* ---- Expiry: date + days left + shelf-life bar ---- */
.expiry { display: grid; gap: 3px; min-width: 130px; }
.expiry small { font-size: .82rem; }
.exp-expired, .exp-exp30 { color: #9a1f19; font-weight: 650; }
.exp-exp60, .exp-exp90 { color: var(--amber); font-weight: 600; }
.exp-fresh { color: var(--muted); }
.shelf { display: block; height: 6px; width: 120px; max-width: 100%; border-radius: 99px; background: #e2ebe5; overflow: hidden; }
.shelf i { display: block; height: 100%; border-radius: 99px; background: var(--lime); }
.shelf-exp90 i, .shelf-exp60 i { background: #e0a100; }
.shelf-exp30 i, .shelf-expired i { background: var(--red); }
.shelf-expired { background: var(--danger-soft); }
tr.row-expired td { background: #fff7f6; }

/* ---- Stock numbers ---- */
.stock-num { font: 700 1.05rem var(--display); font-variant-numeric: tabular-nums; }
.stock-num small { font: 500 .8rem var(--body); color: var(--muted); }
.kpi-note a { color: inherit; }
.kpis.five { grid-template-columns: repeat(5, 1fr); }
.kpis.six { grid-template-columns: repeat(6, 1fr); }
.kpis.six .kpi { padding: 18px 16px; }
.kpis.six .kpi-value { font-size: 1.7rem; }
.window-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.window-card { display: block; padding: 14px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); }
.window-card:hover { border-color: #b3c7ba; }
.window-card[aria-current="true"] { border-color: var(--brand-800); box-shadow: 0 0 0 3px rgba(0,136,72,.14); }
.window-card .wc-label { display: block; color: var(--muted); font-size: .88rem; }
.window-card .wc-num { display: block; font: 750 1.7rem/1.15 var(--display); font-variant-numeric: tabular-nums; }
.window-card .wc-note { color: var(--muted); font-size: .84rem; }
.window-card.red .wc-num { color: #9a1f19; }
.window-card.amber .wc-num { color: var(--amber); }

/* ---- Pager ---- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 0 0; }
.pager a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pager a:hover { border-color: var(--accent); }
.pager a[aria-current="page"] { background: var(--brand-900); border-color: var(--brand-900); color: #fff; }
.pager-note { margin-left: auto; color: var(--muted); font-size: .88rem; }

/* ---- Line editor (stock in, stock out, sale) ---- */
.lines { width: 100%; border-collapse: collapse; }
.lines th { text-align: left; font-size: .85rem; color: var(--muted); font-weight: 600; padding: 6px 8px 6px 0; white-space: nowrap; }
.lines td { padding: 4px 8px 4px 0; vertical-align: top; }
.lines input, .lines select { padding: 7px 9px; }
.lines .col-qty { width: 90px; }
.lines .col-money { width: 120px; }
.lines .col-date { width: 150px; }
.lines .col-batch { width: 140px; }
.lines .col-x { width: 40px; }
.lines .line-total { padding-top: 11px; font-weight: 650; text-align: right; white-space: nowrap; }
.lines .line-hint { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.line-remove { border: 0; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.line-remove:hover { background: var(--danger-soft); color: #9a1f19; }
.sale-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 18px; padding: 12px 0 0; font: 750 1.5rem var(--display); }
.sale-total small { font: 500 .95rem var(--body); color: var(--muted); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 18px; }

/* ---- Cart / orders ---- */
.cart-summary { display: grid; gap: 6px; margin-left: auto; width: min(340px, 100%); padding-top: 14px; }
.cart-summary div { display: flex; justify-content: space-between; gap: 16px; }
.cart-summary .grand { font: 750 1.35rem var(--display); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.order-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; list-style: none; }
.order-steps li { padding: 5px 14px; border-radius: 99px; background: #e8eeea; color: var(--muted); font-weight: 600; font-size: .9rem; }
.order-steps li.done { background: var(--ok-soft); color: var(--ok); }
.order-steps li.now { background: var(--brand-900); color: #fff; }
.order-steps.cancelled li { opacity: .5; }
.rx-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 8px; background: #efe9fb; color: #46307f; margin: 0 0 14px; max-width: none; }
.rx-note .icon { margin-top: 2px; }
.alert-warn { background: var(--amber-soft); color: #6b4000; border-color: #f0d28c; }

/* ---- Receipt (printable) ---- */
.receipt { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; max-width: 760px; }
.receipt-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.receipt-head .meta { text-align: right; color: var(--muted); }
.receipt-head .meta strong { color: var(--text); }
.receipt table.data th { background: none; }
.receipt .totals { display: grid; gap: 4px; margin: 12px 0 0 auto; width: min(300px, 100%); }
.receipt .totals div { display: flex; justify-content: space-between; }
.receipt .totals .grand { font: 750 1.25rem var(--display); border-top: 1px solid var(--line); padding-top: 6px; }
.receipt .fine-print { margin-top: 18px; color: var(--muted); font-size: .88rem; }

/* ---- Misc ---- */
.row-actions form { display: inline; }
.panel .hint-line { margin: 0 0 12px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px 14px; margin: 14px 0 0; }
.fieldset legend { font-weight: 650; padding: 0 6px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.radio-row label { display: inline-flex; gap: 6px; align-items: center; margin: 6px 0 0; font-weight: 500; }
.radio-row input { width: auto; }

@media (max-width: 980px) {
    .steps { grid-template-columns: 1fr 1fr; }
    .kpis.five, .kpis.six { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .lines thead { display: none; }
    .lines, .lines tbody, .lines tr, .lines td { display: block; width: 100%; }
    .lines tr { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; background: #fff; }
    .lines .col-qty, .lines .col-money, .lines .col-date, .lines .col-batch, .lines .col-x { width: 100%; }
    .lines .line-total { text-align: left; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .kpis.five, .kpis.six { grid-template-columns: 1fr; } }
@media print {
    .receipt { border: 0; padding: 0; max-width: none; }
    .pager, .no-print { display: none !important; }
}

/* Features page */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.feature-chip { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; }
.feature-chip .icon { color: var(--accent-text); flex: none; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.module-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.module-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.15rem; }
.module-card h3 .icon { color: var(--accent-text); }
.module-card .points li { padding: 10px 0; grid-template-columns: 22px 1fr; }
.module-card .points .icon { margin-top: 2px; }

/* Daily profit and loss */
.kpi-value.profit, .pl-cell.profit { color: var(--brand-700); }
.kpi-value.loss, .pl-cell.loss { color: var(--danger); }
.pl-cell { font-weight: 700; }
.pl-cell small { font-weight: 600; font-size: .78rem; opacity: .85; }
.pl-total td { background: #f6f9f6; border-top: 2px solid var(--line); }
.pl-note { padding: 0 22px 16px; margin: 8px 0 0; font-size: .86rem; }

/* Clients module */
.badge-blocked { background: var(--danger-soft); color: #9a1f19; }
.kv { display: grid; grid-template-columns: 9.5rem 1fr; gap: 8px 14px; margin: 8px 0 14px; }
.kv dt { color: var(--muted); font-size: .92rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kpi-value.kpi-small { font-size: 1.35rem; padding: 6px 0 4px; }
.neg { color: var(--danger); font-weight: 600; }
.reveal { border: 2px solid var(--lime); background: #f6fbec; }
.secret { font: 700 1.35rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .06em; background: #fff; border: 1px dashed var(--brand-700); border-radius: 8px; padding: 6px 12px; user-select: all; display: inline-block; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-sub { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.checklist { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.checklist li { margin: 6px 0; }
.more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--brand-700); }
.imp-bar { background: #fff4d6; color: #5c4400; border-bottom: 2px solid #e0a800; font-size: .93rem; position: sticky; top: 0; z-index: 50; }
.imp-in { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.imp-in .icon { width: 16px; height: 16px; vertical-align: -3px; }
@media (max-width: 720px) { .three-col { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }

