/* WDPL LIS 26-Nov: an application look. Light surfaces, one teal accent, a left sidebar, no dark filled bars.
   Every class the pages already use is kept; only how they look changed. */
:root {
    --bg: #F3F5F7; --surface: #FFFFFF; --surface-2: #F8FAFB; --line: #E3E8ED; --line-2: #EDF1F4;
    --text: #2F3B48; --text-2: #4A5866; --muted: #6E7A87; --faint: #9AA4AF; --head: #243140;
    --accent: #0F7B6C; --accent-2: #0B6457; --accent-soft: #E7F4F1; --accent-line: #B9DED6;
    --warn: #9A6200; --warn-soft: #FFF5DA; --bad: #B42318; --bad-soft: #FDEDEB; --info: #3A5A8C; --info-soft: #EEF2F8;
    --radius: 12px; --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px -6px rgba(16, 24, 40, .08);
    --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, .18), 0 2px 6px rgba(16, 24, 40, .06);
    --side: 244px; --bar: 60px;
    --font: "Segoe UI Variable Text", "Segoe UI", Inter, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 var(--font); color: var(--text); background: var(--bg) radial-gradient(1200px 500px at 100% -10%, #E9F5F2 0%, transparent 60%) no-repeat fixed; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
h1 { color: var(--head); font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; margin: 2px 0 2px; }
h2 { color: var(--head); font-size: 17px; font-weight: 600; margin: 0 0 6px; }
h3 { color: var(--head); font-size: 14.5px; font-weight: 600; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.code { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.warn { color: var(--warn); }
svg { flex-shrink: 0; }
::selection { background: var(--accent-line); }

/* ---------- the shell: sidebar + top bar ---------- */
.app { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--surface); border-right: 1px solid var(--line);
    display: flex; flex-direction: column; z-index: 40; }
.side-brand { display: flex; align-items: center; gap: 10px; height: var(--bar); padding: 0 18px; border-bottom: 1px solid var(--line-2); color: var(--text); }
.side-brand:hover { text-decoration: none; color: var(--text); }
.side-brand .logo { width: 32px; height: 32px; color: var(--accent); filter: drop-shadow(0 4px 8px rgba(15, 123, 108, .35)); }
.side-brand b { display: block; font-size: 14.5px; letter-spacing: .01em; }
.side-brand small { display: block; font-size: 11.5px; color: var(--muted); margin-top: -2px; }
.side-nav { flex: 1; overflow-y: auto; padding: 10px 10px 16px; scrollbar-width: thin; }
.side-group { margin: 16px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.side-nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 7px 10px; margin: 1px 0; border-radius: var(--radius-sm);
    color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.side-nav a svg { width: 18px; height: 18px; color: var(--faint); }
.side-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.side-nav a:hover svg { color: var(--muted); }
.side-nav a.on { background: linear-gradient(90deg, #E3F3EF, #F1F9F7); color: var(--accent-2); font-weight: 650; box-shadow: inset 0 0 0 1px #CFEAE3; }
.side-nav a.on svg { color: var(--accent); }
.side-nav a.on::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side-foot { display: block; padding: 12px 20px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.side-foot:hover, .side-foot.on { color: var(--accent); text-decoration: none; }
.scrim { display: none; }

.shell { margin-left: var(--side); min-width: 0; }
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: var(--bar); padding: 0 24px;
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.bar-title { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bar-search { position: relative; margin-left: auto; width: min(380px, 34vw); }
.bar-search svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.bar-search input { width: 100%; height: 36px; padding: 0 12px 0 34px; font: inherit; font-size: 13.5px; color: var(--text);
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.bar-search input:focus { outline: 0; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bar-new { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bar-new svg { width: 16px; height: 16px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: #fff; color: var(--text-2); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.only-sm, .only-lg { display: none; }

.me { position: relative; }
.me summary { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid transparent; }
.me summary:hover, .me[open] summary { background: var(--surface-2); border-color: var(--line); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-2); font-weight: 700; font-size: 13px; border: 1px solid var(--accent-line); }
.me-name { font-size: 13px; font-weight: 600; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .chev { width: 14px; height: 14px; color: var(--muted); }
.menu { position: absolute; right: 0; top: calc(100% + 6px); width: 230px; padding: 6px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 50; }
.menu-head { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 6px;
    font: inherit; font-size: 13.5px; color: var(--text-2); cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.menu svg { width: 16px; height: 16px; color: var(--muted); }
.menu form { margin: 0; }

.main { max-width: 1320px; margin: 0 auto; padding: 22px 28px 40px; }

/* ---------- page parts ---------- */
.head { margin-bottom: 18px; }
.head h1 + p, .head > p { margin: 2px 0 0; max-width: 860px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .head { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 18px; border-bottom: 1px solid var(--line-2); }
.card-body { padding: 16px 18px; }
.card-foot { padding: 13px 18px; border-top: 1px solid var(--line-2); background: var(--surface-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.linked { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 18px; color: var(--text);
    display: flex; flex-direction: column; box-shadow: var(--shadow); }
.stat b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12.5px; }
.stat { overflow: hidden; border-radius: 14px; padding: 16px 18px; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 85%); }
.stat::after { content: ""; position: absolute; right: -36px; top: -36px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, #E3F3EF 0%, transparent 70%); pointer-events: none; }
.stat b { position: relative; z-index: 1; }
a.stat:hover { text-decoration: none; color: var(--text); border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }

/* tables: quiet header, row hover, numbers line up */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
    padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tbody tr:hover td { background: #FAFCFC; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
tr.off td, .param.off { opacity: .55; }
tr.group td, .table tbody tr.group:hover td { background: var(--surface-2); border-top: 1px solid var(--line); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; line-height: 18px; padding: 1px 9px; border-radius: 999px;
    background: #EEF1F4; color: var(--text-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.b-ok { background: var(--accent-soft); color: var(--accent-2); }
.b-wait { background: var(--warn-soft); color: var(--warn); }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-info { background: var(--info-soft); color: var(--info); }

/* forms and buttons */
.field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 550; color: var(--text-2); }
.input { font: inherit; font-size: 13.5px; font-weight: 400; color: var(--text); height: 36px; padding: 0 11px; border: 1px solid #D3DAE1; border-radius: var(--radius-sm);
    background: #fff; min-width: 0; transition: border-color .12s, box-shadow .12s; }
textarea.input { height: auto; padding: 8px 11px; resize: vertical; }
select.input { padding-right: 28px; }
.input:hover { border-color: #BCC5CE; }
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[readonly], .input:disabled { background: var(--surface-2); color: var(--muted); }
.btn { font: inherit; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 15px;
    border: 1px solid #D3DAE1; border-radius: var(--radius-sm); background: #fff; color: var(--text); cursor: pointer; white-space: nowrap;
    box-shadow: 0 1px 1px rgba(16, 24, 40, .04); transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { border-color: #B6C0CA; background: var(--surface-2); color: var(--text); text-decoration: none; }
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.btn.primary { background: linear-gradient(180deg, #13907E, #0F7B6C); border-color: #0D6E61; color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 4px 10px -4px rgba(15, 123, 108, .6); }
.btn.primary:hover { background: linear-gradient(180deg, #0F7B6C, #0B6457); border-color: #0B6457; color: #fff; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.danger, .link.danger { color: var(--bad); }
.btn.danger:hover { border-color: #E9B4AE; background: var(--bad-soft); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link { font: inherit; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }
.link:hover { color: var(--accent-2); text-decoration: underline; }
.filters { display: flex; gap: 12px; align-items: flex-end; padding: 14px 18px; flex-wrap: wrap; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 15px; height: 15px; }

.toast { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 500; border: 1px solid transparent; }
.toast.ok { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent-line); }
.toast.bad { background: var(--bad-soft); color: var(--bad); border-color: #F3C4BE; }

.param { padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.param-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ranges { margin: 4px 0 8px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.row-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 10px 0; }
.row-form .field { min-width: 110px; }
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details.inline { display: inline-block; }
form.inline { display: inline; }

.tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 13px; color: var(--muted); font-weight: 550; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--accent-2); border-bottom-color: var(--accent); font-weight: 650; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 18px; align-items: start; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; margin: 10px 0; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.input.price { width: 110px; text-align: right; }

/* ---------- dashboard ---------- */
.dash-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-hello h1 { font-size: 22px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); color: var(--text); }
a.kpi:hover { text-decoration: none; color: var(--text); border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.kpi .ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.kpi .ico svg { width: 20px; height: 20px; }
.kpi.k-warn .ico { background: var(--warn-soft); color: var(--warn); }
.kpi.k-bad .ico { background: var(--bad-soft); color: var(--bad); }
.kpi.k-info .ico { background: var(--info-soft); color: var(--info); }
.kpi b { display: block; font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { display: block; font-size: 12.5px; color: var(--muted); }
.kpi small { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); }
.flow a { padding: 14px 16px; border-right: 1px solid var(--line-2); color: var(--text); }
.flow a:last-child { border-right: 0; }
.flow a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.flow b { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.flow span { font-size: 12px; color: var(--muted); }
.flow i { display: block; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.bars { position: relative; display: flex; align-items: flex-end; gap: 12px; height: 170px; margin: 16px 18px 0; padding-top: 18px;
    background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #EEF2F5 calc(25% - 1px), #EEF2F5 25%); border-bottom: 1px solid var(--line); }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; cursor: default; }
.bars .bar-v { width: 100%; max-width: 44px; min-height: 3px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #7CCBBE 0%, #B9E2DA 100%);
    transition: filter .15s, transform .15s; transform-origin: bottom; }
.bars .col.today .bar-v { background: linear-gradient(180deg, #11907E 0%, #3FB3A1 100%); box-shadow: 0 6px 14px -6px rgba(15, 123, 108, .55); }
.bars .col:hover .bar-v { filter: brightness(.9) saturate(1.25); transform: scaleY(1.02); }
.bars .col em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bars .col.today em { color: var(--accent-2); }
.bars-x { display: flex; gap: 12px; padding: 8px 18px 16px; }
.bars-x span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); }
.meter { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; min-width: 60px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.empty { padding: 26px 18px; text-align: center; color: var(--muted); }

/* ---------- sign-in ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 1fr); background: #fff; }
.login-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px; overflow: hidden;
    background: linear-gradient(160deg, #F1F8F6 0%, #E6F2EF 55%, #DCEDE8 100%); border-right: 1px solid var(--line); }
.login-art .side-brand { height: auto; padding: 0; border: 0; }
.login-art h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.02em; max-width: 460px; margin: 0 0 12px; color: var(--text); }
.login-art p { color: var(--text-2); max-width: 440px; margin: 0; }
.login-points { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.login-points li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13.5px; }
.login-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.login-art .foot { font-size: 12px; color: var(--muted); }
.login-wrap { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.login { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.login h1 { font-size: 24px; margin: 0; }
.login .btn { height: 40px; }
.login .input { height: 40px; }
.login .brand { font-size: 18px; }


/* ---------- 26-Nov: like the ERP: the main modules on the navbar, a fold button, and a folded sidebar (icon rail) ---------- */
.side, .shell { transition: width .18s ease, margin-left .18s ease, box-shadow .18s ease; }
.side-nav .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px 0 9px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.back-btn svg { width: 16px; height: 16px; }
.back-btn:hover { background: var(--surface-2); color: var(--text); }
.bar-nav { display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; }
.bar-nav a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px; border-radius: 8px; white-space: nowrap;
    color: var(--text-2); font-size: 13.5px; font-weight: 550; }
.bar-nav a svg { width: 16px; height: 16px; color: var(--muted); }
.bar-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.bar-nav a.on { background: var(--accent-soft); color: var(--accent-2); font-weight: 650; box-shadow: inset 0 -2px 0 var(--accent); }
.bar-nav a.on svg { color: var(--accent); }
.bar-nav em { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center;
    background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; }
.bar-nav em.warn { background: var(--accent); }
.bar-nav em.bad, .bar-nav a.crit svg { background: var(--bad); }
.bar-nav a.crit { color: var(--bad); }
.bar-nav a.crit svg { background: none; color: var(--bad); }
/* the navbar takes the title's place; the page's own heading says where you are */
.bar:has(.bar-nav a) .bar-title { display: none; }
.bar-search { flex: 0 1 280px; width: auto; min-width: 150px; }
.bar-nav { flex: 0 1 auto; }
@media (max-width: 1599px) { .bar-nav a:first-child { display: none; } }

@media (min-width: 901px) {
    .side-mini { --side: 68px; }
    .side-mini .side { width: var(--side); overflow: hidden; }
    .side-mini .side-brand { padding: 0 19px; }
    .side-mini .side-brand > span, .side-mini .side-group, .side-mini .side-nav .lbl, .side-mini .side-foot { display: none; }
    .side-mini .side-nav { padding: 10px 10px 16px; overflow-x: hidden; }
    .side-mini .side-nav a { justify-content: center; padding: 9px 0; }
    .side-mini .side-nav a svg { width: 20px; height: 20px; }
    .side-mini .side-group + a { margin-top: 12px; }
    /* the rail opens over the page on hover, and the names come back */
    .side-mini .side:hover, .side-mini .side:focus-within { width: 244px; box-shadow: var(--shadow-lg); }
    .side-mini .side:hover .side-brand, .side-mini .side:focus-within .side-brand { padding: 0 18px; }
    .side-mini .side:hover .side-brand > span, .side-mini .side:focus-within .side-brand > span,
    .side-mini .side:hover .side-group, .side-mini .side:focus-within .side-group,
    .side-mini .side:hover .side-foot, .side-mini .side:focus-within .side-foot { display: block; }
    .side-mini .side:hover .side-nav .lbl, .side-mini .side:focus-within .side-nav .lbl { display: inline; }
    .side-mini .side:hover .side-nav a, .side-mini .side:focus-within .side-nav a { justify-content: flex-start; padding: 7px 10px; }
    .side-mini .side:hover .side-nav a svg, .side-mini .side:focus-within .side-nav a svg { width: 18px; height: 18px; }
    .side-mini .side:hover .side-group + a, .side-mini .side:focus-within .side-group + a { margin-top: 1px; }
    .only-lg { display: inline-flex; }
}
@media (max-width: 1439px) { .bar-nav a:nth-child(n+6):not(.crit) { display: none; } }
@media (max-width: 1280px) { .bar-nav a .lbl { display: none; } .bar-nav a { padding: 0 9px; } .back-btn span { display: none; } .back-btn { padding: 0 8px; } }
@media (max-width: 900px) { .bar-nav, .back-btn, .only-lg { display: none; } }

@media (max-width: 1100px) {
    .dash-grid { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .kpis { gap: 10px; }
    .kpi { flex-direction: column; gap: 8px; padding: 13px; }
    .kpi .ico { width: 32px; height: 32px; }
    .kpi b { font-size: 21px; }
}
@media (max-width: 900px) {
    .side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
    .side-open .side { transform: none; }
    .side-open .scrim { display: block; position: fixed; inset: 0; background: rgba(16, 24, 40, .35); z-index: 35; }
    .shell { margin-left: 0; }
    .only-sm { display: inline-flex; }
    .bar { padding: 0 14px; gap: 10px; }
    .bar-search { width: auto; flex: 1; }
    .bar-new span, .me-name, .me .chev, .bar-title { display: none; }
    .bar-new { width: 36px; padding: 0; }
    .main { padding: 16px; }
    .login-page { grid-template-columns: 1fr; }
    .login-art { display: none; }
    .flow { grid-template-columns: repeat(2, 1fr); }
    .flow a { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 720px) {
    .split { grid-template-columns: 1fr; }
    .card { overflow-x: auto; }
}
@media print {
    .side, .bar, .scrim { display: none !important; }
    .shell { margin: 0; }
    body { background: #fff; }
    .card { box-shadow: none; }
}

/* ---------- 26-Nov: the ERP's charts (same look as the ERP dashboard): legend, insights strip, bar chart, tooltip, donut, bars ---------- */
:root { --c-1: #0F7B6C; --c-1b: #16927F; --c-1d: #0B6457; --c-2: #6CC2B2; --c-2b: #A9DDD3; --c-tip: #123A34; --c-grid: #E6EEEC; --c-track: #E7F2EF; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-legend .lg-a { background: linear-gradient(180deg, var(--c-1b), var(--c-1d)); }
.chart-legend .lg-b { background: linear-gradient(180deg, var(--c-2b), var(--c-2)); }
.chart-legend .lg-amber { background: var(--c-2); }
.chart-legend .lg-l { background: var(--c-1d); height: 3px; width: 16px; border-radius: 2px; }
.chart-legend .lg-l.dash { background: repeating-linear-gradient(90deg, var(--c-1d) 0 5px, transparent 5px 8px); }
.chart-scroll { overflow-x: auto; }
.chart-insights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.chart-insights > div { padding: 12px 20px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chart-insights > div + div { border-left: 1px solid var(--line); }
.chart-insights .k { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.chart-insights b { font-size: 17px; color: var(--head); font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.chart-insights small { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tchart-wrap { position: relative; min-width: 620px; }
.tchart { display: block; width: 100%; height: auto; font-family: var(--font); overflow: visible; }
.tchart .grid line { stroke: var(--c-grid); stroke-width: 1; shape-rendering: crispEdges; }
.tchart .grid line:first-of-type { stroke: #C6D8D4; }
.tchart .ax-y { font-size: 11px; fill: var(--muted); font-weight: 500; }
.tchart .ax-x { font-size: 12px; fill: var(--muted); font-weight: 600; }
.tchart .ax-x.now { fill: var(--head); font-weight: 700; }
.tchart .now-band { fill: #DDEFEB; opacity: .7; }
.tchart .bar-a { fill: url(#lisA); }
.tchart .bar-b { fill: url(#lisB); }
.tchart .line-l { fill: none; stroke: var(--c-1d); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.tchart .line-l.dash { stroke-width: 2; stroke-dasharray: 6 5; }
.tchart .hit { fill: transparent; cursor: pointer; }
.tchart .hit.on { fill: rgba(15, 123, 108, .06); }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 190px; padding: 10px 12px; border-radius: 10px;
    background: var(--c-tip); color: #fff; font-size: 12.5px; box-shadow: 0 10px 28px rgba(18, 58, 52, .28); }
.chart-tip[hidden] { display: none; }
.chart-tip .tt { font-weight: 700; margin-bottom: 6px; color: #fff; }
.chart-tip .row { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 2px 0; }
.chart-tip .row span { display: inline-flex; align-items: center; gap: 7px; color: #CFE6E1; }
.chart-tip .row i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.chart-tip .row b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut.erp { position: relative; width: 150px; height: 150px; flex: none; }
.donut.erp svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut.erp .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut.erp .center b { display: block; font-size: 24px; color: var(--head); font-variant-numeric: tabular-nums; line-height: 1.1; font-weight: 650; }
.donut.erp .center small { color: var(--muted); font-size: 11.5px; }
.legend-list { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 10px; }
.legend-list .li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.legend-list .li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend-list .li span { flex: 1; color: var(--text-2); min-width: 0; }
.legend-list .li b { font-variant-numeric: tabular-nums; color: var(--head); }
.hbars { display: flex; flex-direction: column; gap: 15px; }
.hbar-row { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.hbar-row .name { min-width: 0; }
.hbar-row .name b { display: block; font-size: 13px; color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hbar-row .name small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-row .track { position: relative; height: 12px; background: var(--c-track); border-radius: 8px; overflow: hidden; }
.hbar-row .track span { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 8px; background: linear-gradient(90deg, var(--c-1b), var(--c-1d)); }
.hbar-row .track span.hb-b { background: var(--c-2); border-radius: 0 8px 8px 0; }
.hbar-row .val { text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; white-space: nowrap; }
.hbar-row .val b { color: var(--head); font-size: 13px; }
@media (max-width: 900px) {
    .chart-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chart-insights > div:nth-child(3) { border-left: 0; }
    .chart-insights > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .hbar-row { grid-template-columns: minmax(0, 1fr) auto; }
    .hbar-row .track { grid-column: 1 / -1; grid-row: 2; }
}

/* =====================================================================================================
   26-Nov: the ERP's own design system on the LIS (Boby: the ERP design is great, make the LIS related to it).
   Steel-blue sidebar with navy text, the chosen item as a white card with a navy bar; canvas #eef2f7; navy buttons;
   ERP cards, tables, inputs and badges. Charts in one colour family (navy).
   ===================================================================================================== */
:root {
    --brand: #d4dde9; --brand-50: #f5f8fb; --brand-100: #e9eef5; --brand-150: #dfe6ef; --brand-300: #b8c6d8; --brand-400: #93a6bf; --brand-500: #6b819e;
    --navy-950: #0c1a2c; --navy-900: #12243b; --navy-800: #1a3150; --navy-700: #24406a; --navy-600: #2f5385; --navy-500: #3d68a3;
    --bg: #eef2f7; --surface: #fff; --surface-2: #f7f9fc; --line: #dde4ee; --line-2: #e9eef5;
    --text: #15263d; --text-2: #42546d; --muted: #6c7d93; --faint: #94a3b6; --head: #12243b;
    --accent: #2f5385; --accent-2: #1a3150; --accent-soft: #e9eef5; --accent-line: #b8c6d8;
    --warn: #a8690f; --warn-soft: #fcf1dc; --bad: #c0392f; --bad-soft: #fce8e6; --info: #2a64ad; --info-soft: #e4eefb;
    --ok: #17845a; --ok-soft: #e2f4ec;
    --radius: 16px; --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(18, 36, 59, .06);
    --side: 260px; --bar: 64px;
    --c-1: #24406a; --c-1b: #3d68a3; --c-1d: #1a3150; --c-2: #93a6bf; --c-2b: #b8c6d8; --c-tip: #0c1a2c; --c-grid: #e4eaf2; --c-track: #e9eef5;
}
body { background: var(--bg); color: var(--text); }
a { color: var(--navy-600); }
a:hover { color: var(--navy-800); }
h1, h2, h3 { color: var(--navy-900); }
h1 { font-size: 23px; font-weight: 700; }

/* sidebar */
.side { background: var(--brand); border-right: 1px solid var(--brand-300); }
.side-brand { height: var(--bar); border-bottom: 1px solid var(--brand-300); }
.side-brand .logo { color: var(--navy-800); filter: drop-shadow(0 6px 10px rgba(18, 36, 59, .28)); }
.side-brand b { color: var(--navy-950); }
.side-brand small { color: var(--navy-600); }
.side-group { color: var(--brand-500); opacity: 1; }
.side-nav a { color: var(--navy-800); font-weight: 500; border-radius: 10px; min-height: 38px; }
.side-nav a svg { color: var(--navy-600); }
.side-nav a:hover { background: rgba(255, 255, 255, .5); color: var(--navy-950); }
.side-nav a.on { background: #fff; color: var(--navy-950); font-weight: 600; box-shadow: 0 1px 2px rgba(18, 36, 59, .08), 0 2px 8px rgba(18, 36, 59, .06); }
.side-nav a.on svg { color: var(--navy-800); }
.side-nav a.on::before { display: block; background: var(--navy-700); }
.side-foot { border-top: 1px solid var(--brand-300); color: var(--navy-600); }
.side-mini .side:hover, .side-mini .side:focus-within { background: var(--brand); }

/* top bar */
.bar { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.bar-title { color: var(--navy-900); }
.bar-search input { background: #fff; border: 1px solid var(--line); border-radius: 10px; height: 38px; }
.bar-search input:focus { border-color: var(--navy-500); box-shadow: 0 0 0 3px var(--brand-50); }
.bar-nav a { color: var(--navy-800); }
.bar-nav a svg { color: var(--navy-600); }
.bar-nav a:hover { background: var(--brand-50); color: var(--navy-950); }
.bar-nav a.on { background: var(--brand-50); color: var(--navy-950); box-shadow: inset 0 -2px 0 var(--navy-700); }
.bar-nav a.on svg { color: var(--navy-800); }
.bar-nav em { background: var(--navy-800); }
.bar-nav em.warn { background: #d08b2a; }
.bar-nav em.bad { background: var(--bad); }
.back-btn, .icon-btn { border: 1px solid var(--line); background: #fff; color: var(--navy-700); border-radius: 10px; }
.back-btn:hover, .icon-btn:hover { background: var(--brand-50); border-color: #c9d4e2; color: var(--navy-900); }
.me summary { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.me summary:hover, .me[open] summary { background: var(--brand-50); border-color: #c9d4e2; }
.avatar { background: var(--brand-100); color: var(--navy-700); border: 0; }
.me-name { color: var(--navy-900); }

/* buttons, inputs */
.btn { height: 38px; border-radius: 10px; border-color: #c9d4e2; color: var(--navy-800); }
.btn:hover { background: var(--brand-50); color: var(--navy-950); border-color: var(--brand-400); }
.btn.primary, .btn.primary:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; box-shadow: 0 1px 2px rgba(18, 36, 59, .2), inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn.primary:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn.sm { height: 32px; border-radius: 8px; }
.input { height: 40px; border: 1px solid #c9d4e2; border-radius: 10px; }
textarea.input { height: auto; }
.input:hover { border-color: var(--brand-400); }
.input:focus { border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(61, 104, 163, .16); }
.field { color: var(--text-2); font-weight: 600; }
.link { color: var(--navy-600); }
input[type=checkbox], input[type=radio] { accent-color: var(--navy-700); }

/* cards, tables, badges, tabs, toasts */
.card { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(18, 36, 59, .06); }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-body { padding: 20px; }
.card-foot { background: var(--surface-2); border-top: 1px solid var(--line); }
.stat, .kpi { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(18, 36, 59, .06); }
.stat::before { background: linear-gradient(90deg, var(--navy-700), transparent 85%); }
.stat::after { background: radial-gradient(circle, var(--brand-100) 0%, transparent 70%); }
a.stat:hover { border-color: var(--brand-300); box-shadow: 0 0 0 3px var(--brand-50); }
.table th { background: var(--surface-2); color: var(--muted); font-size: 11.5px; letter-spacing: .04em; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.table td b { color: var(--navy-900); }
.table tbody tr:hover td { background: #fafbfd; }
.badge { height: 22px; font-weight: 650; background: var(--brand-100); color: var(--navy-700); }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-wait { background: var(--warn-soft); color: var(--warn); }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-info { background: var(--info-soft); color: var(--info); }
.tabs { border-bottom: 1px solid var(--line); }
.tabs a { color: var(--muted); }
.tabs a.on { color: var(--navy-900); border-bottom-color: var(--navy-700); }
.toast.ok { background: var(--ok-soft); color: var(--ok); border-color: #bfe3d1; }
.toast.bad { background: var(--bad-soft); color: var(--bad); border-color: #f1c4bf; }
.code { color: var(--navy-600); }

/* charts: the ERP's navy family, one colour */
.chart-legend .lg-a { background: linear-gradient(180deg, var(--navy-500), var(--navy-800)); }
.chart-legend .lg-b { background: linear-gradient(180deg, var(--brand-300), var(--brand-400)); }
.chart-legend .lg-l, .chart-legend .lg-amber { background: var(--navy-700); }
.tchart .now-band { fill: #d4dde9; opacity: .55; }
.tchart .line-l { stroke: var(--navy-700); }
.tchart .hit.on { fill: rgba(36, 64, 106, .05); }
.hbar-row .track span { background: linear-gradient(90deg, var(--navy-600), var(--navy-800)); }
.hbar-row .track span.hb-b { background: var(--brand-400); }
.chart-tip .row span { color: #c9d4e3; }

/* the WDPL mark, as on the ERP */
.logo-img { width: 38px; height: 38px; border-radius: 11px; flex: none; background: #fff; padding: 3px; border: 1px solid #E3E8F0; box-shadow: 0 2px 8px rgba(18, 36, 59, .18); display: grid; place-items: center; }
.logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.side-nav { scrollbar-width: none; }
.side-nav::-webkit-scrollbar { display: none; }
.side-mini .side-brand { padding: 0 14px; }

/* =====================================================================================================
   26-Nov: BRIGHT BLUE (Boby's references: the Hypatho dashboard, new booking and bulk booking screens, "better than
   these, and no darkness anywhere"). A bright blue sidebar, white top bar with a search button and Add Patient,
   light blue table headers, blue buttons; no navy or black blocks, no dark tooltips.
   ===================================================================================================== */
:root {
    --p: #1F6FC5; --p-2: #185DA8; --p-3: #2F86DE; --p-soft: #EAF3FD; --p-line: #C9DEF5;
    --bg: #F3F6FA; --surface: #fff; --surface-2: #F7FAFD; --line: #E3EAF3; --line-2: #EEF3F9;
    --text: #22364D; --text-2: #4A5F78; --muted: #6E8197; --faint: #9AAABD; --head: #1D3550;
    --accent: #1F6FC5; --accent-2: #185DA8; --accent-soft: #EAF3FD; --accent-line: #C9DEF5;
    --orange: #F08A24; --green: #16A34A; --red: #E5484D; --violet: #7C5CE0;
    --ok: #16A34A; --ok-soft: #E7F6EC; --warn: #C76A0A; --warn-soft: #FFF1E1; --bad: #D93A3F; --bad-soft: #FDECEC; --info: #1F6FC5; --info-soft: #EAF3FD;
    --c-1: #1F6FC5; --c-1b: #4A90E2; --c-1d: #1F6FC5; --c-2: #A9CBF0; --c-2b: #CFE2F7; --c-grid: #E8EEF6; --c-track: #EAF0F7;
    --side: 248px; --bar: 64px;
}
body { background: var(--bg); color: var(--text); }
a { color: var(--p); }
a:hover { color: var(--p-2); }
h1, h2, h3 { color: var(--head); }

/* sidebar: bright blue, white text, the chosen item as a white pill */
.side { background: linear-gradient(180deg, #2A7AD0 0%, #1F6AB9 100%); border-right: 0; box-shadow: 2px 0 14px -6px rgba(31, 111, 197, .45); }
.side-brand { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.side-brand b { color: #fff; }
.side-brand small { color: rgba(255, 255, 255, .78); }
.side-group { color: rgba(255, 255, 255, .62); }
.side-nav a { color: rgba(255, 255, 255, .92); font-weight: 500; border-radius: 10px; }
.side-nav a svg { color: rgba(255, 255, 255, .85); }
.side-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.side-nav a.on { background: #fff; color: var(--p); font-weight: 650; box-shadow: 0 4px 12px -4px rgba(10, 50, 100, .35); }
.side-nav a.on svg { color: var(--p); }
.side-nav a.on::before { display: none; }
.side-foot { border-top: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8); }
.side-foot:hover, .side-foot.on { color: #fff; }
.side-mini .side:hover, .side-mini .side:focus-within { background: linear-gradient(180deg, #2A7AD0 0%, #1F6AB9 100%); }
.logo-img { border: 0; box-shadow: 0 4px 10px rgba(10, 50, 100, .25); }

/* top bar */
.bar { background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--line); box-shadow: 0 1px 3px rgba(31, 60, 100, .06); }
.bar-search { display: flex; }
.bar-search input { height: 40px; border: 1px solid #CFDDEC; border-right: 0; border-radius: 10px 0 0 10px; background: #fff; }
.bar-search input:focus { border-color: var(--p); box-shadow: none; }
.bar-search button { display: inline-grid; place-items: center; width: 44px; height: 40px; border: 0; border-radius: 0 10px 10px 0; background: var(--p); color: #fff; cursor: pointer; }
.bar-search button svg { position: static; transform: none; width: 18px; height: 18px; color: #fff; }
.bar-search button:hover { background: var(--p-2); }
.bar-search > svg { display: none; }
.bar-search input { padding-left: 12px; }
.bar-nav a { color: var(--text-2); }
.bar-nav a svg { color: var(--muted); }
.bar-nav a:hover { background: var(--p-soft); color: var(--p); }
.bar-nav a.on { background: var(--p-soft); color: var(--p); box-shadow: none; }
.bar-nav a.on svg { color: var(--p); }
.bar-nav em { background: var(--p); }
.bar-nav em.warn { background: var(--orange); }
.bar-nav em.bad { background: var(--red); }
.back-btn { border: 0; background: var(--p-soft); color: var(--p); border-radius: 50%; width: 36px; height: 36px; padding: 0; justify-content: center; }
.back-btn span { display: none; }
.back-btn:hover { background: var(--p); color: #fff; }
.icon-btn { border: 1px solid var(--line); background: #fff; color: var(--p); border-radius: 10px; }
.me summary { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.me summary:hover, .me[open] summary { background: var(--p-soft); border-color: var(--p-line); }
.avatar { background: var(--p); color: #fff; border: 0; }
.me-name { color: var(--head); }

/* buttons, inputs */
.btn { height: 38px; border-radius: 10px; border: 1px solid #CFDDEC; background: #fff; color: var(--p); font-weight: 600; box-shadow: none; }
.btn:hover { background: var(--p-soft); color: var(--p-2); border-color: var(--p-line); }
.btn.primary, .btn.primary:hover { background: var(--p); border-color: var(--p); color: #fff; box-shadow: 0 4px 12px -4px rgba(31, 111, 197, .55); }
.btn.primary:hover { background: var(--p-2); border-color: var(--p-2); }
.btn.sm { height: 32px; border-radius: 8px; }
.btn.danger { color: var(--red); }
.input { height: 40px; border: 1px solid #CFDDEC; border-radius: 10px; color: var(--text); }
textarea.input { height: auto; }
.input:hover { border-color: #A9C4E2; }
.input:focus { border-color: var(--p); box-shadow: 0 0 0 3px rgba(31, 111, 197, .14); }
.field { color: var(--text-2); font-weight: 600; }
.link { color: var(--p); }
input[type=checkbox], input[type=radio] { accent-color: var(--p); }

/* cards, tables, badges, tabs */
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 8px -4px rgba(31, 60, 100, .12); }
.card-head { padding: 15px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h3, .card-head h2 { color: var(--head); font-weight: 650; }
.card-foot { background: var(--surface-2); border-top: 1px solid var(--line-2); }
.stat, .kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 8px -4px rgba(31, 60, 100, .12); }
.stat::before { background: linear-gradient(90deg, var(--p), transparent 85%); }
.stat::after { background: radial-gradient(circle, var(--p-soft) 0%, transparent 70%); }
.stat b { color: var(--head); }
.table th { background: #EEF5FD; color: #2D4B6B; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: none; padding: 11px 16px; border-bottom: 1px solid #DCE8F6; }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line-2); color: var(--text-2); }
.table td b { color: var(--head); }
.table tbody tr:hover td { background: #F7FAFE; }
.badge { height: 22px; font-weight: 650; background: #EEF2F7; color: #4A5F78; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-wait { background: var(--warn-soft); color: var(--warn); }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-info { background: var(--info-soft); color: var(--info); }
.tabs { border-bottom: 1px solid var(--line); }
.tabs a { color: var(--muted); }
.tabs a.on { color: var(--p); border-bottom-color: var(--p); }
.toast.ok { background: var(--ok-soft); color: var(--ok); border-color: #BFE6CD; }
.toast.bad { background: var(--bad-soft); color: var(--bad); border-color: #F5C6C7; }
.code { color: var(--p-2); }

/* charts: blue shades, a white tooltip (nothing dark) */
.chart-legend .lg-a { background: linear-gradient(180deg, #4A90E2, #1F6FC5); }
.chart-legend .lg-b { background: linear-gradient(180deg, #CFE2F7, #A9CBF0); }
.chart-legend .lg-l, .chart-legend .lg-amber { background: var(--orange); }
.tchart .now-band { fill: #E3EEFB; opacity: .8; }
.tchart .grid line:first-of-type { stroke: #C9D8EA; }
.tchart .line-l { stroke: var(--orange); }
.tchart .hit.on { fill: rgba(31, 111, 197, .05); }
.chart-tip { background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: 0 12px 28px -10px rgba(31, 60, 100, .35); }
.chart-tip .tt { color: var(--head); }
.chart-tip .row span { color: var(--muted); }
.chart-tip .row b { color: var(--head); }
.hbar-row .track span { background: linear-gradient(90deg, #4A90E2, #1F6FC5); }
.hbar-row .track span.hb-b { background: var(--orange); }
.hbar-row .name b, .hbar-row .val b { color: var(--head); }

/* 26-Nov: sidebar option 2 "Halka Aasmani" (chosen by Boby): light sky sidebar, blue-grey text, the chosen item as a white card */
.side { background: #E8F2FD; border-right: 1px solid #D3E4F7; box-shadow: none; }
.side-brand { border-bottom: 1px solid #D3E4F7; }
.side-brand b { color: #1D3550; }
.side-brand small { color: #5C7896; }
.side-group { color: #7D97B5; }
.side-nav a { color: #2D4B6B; }
.side-nav a svg { color: #4F78A6; }
.side-nav a:hover { background: rgba(255, 255, 255, .7); color: #1F6FC5; }
.side-nav a.on { background: #fff; color: #1F6FC5; box-shadow: 0 3px 10px -4px rgba(31, 111, 197, .35); }
.side-nav a.on svg { color: #1F6FC5; }
.side-foot { border-top: 1px solid #D3E4F7; color: #5C7896; }
.side-foot:hover, .side-foot.on { color: #1F6FC5; }
.side-mini .side:hover, .side-mini .side:focus-within { background: #E8F2FD; box-shadow: 0 10px 30px -10px rgba(31, 60, 100, .3); }
.logo-img { box-shadow: 0 2px 8px rgba(31, 60, 100, .18); }

/* 26-Nov: dark blue sidebar (Boby asked for it after option 2): deep blue, white text, the chosen item as a white card */
.side { background: linear-gradient(180deg, #17457F 0%, #123766 100%); border-right: 0; box-shadow: 2px 0 14px -6px rgba(18, 55, 102, .5); }
.side-brand { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.side-brand b { color: #fff; }
.side-brand small { color: rgba(255, 255, 255, .72); }
.side-group { color: rgba(255, 255, 255, .55); }
.side-nav a { color: rgba(255, 255, 255, .9); }
.side-nav a svg { color: rgba(255, 255, 255, .78); }
.side-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.side-nav a:hover svg { color: #fff; }
.side-nav a.on { background: #fff; color: #1F6FC5; box-shadow: 0 4px 12px -4px rgba(0, 20, 50, .45); }
.side-nav a.on svg { color: #1F6FC5; }
.side-foot { border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .75); }
.side-foot:hover, .side-foot.on { color: #fff; }
.side-mini .side:hover, .side-mini .side:focus-within { background: linear-gradient(180deg, #17457F 0%, #123766 100%); box-shadow: 0 10px 30px -10px rgba(18, 55, 102, .5); }
.logo-img { box-shadow: 0 2px 8px rgba(0, 20, 50, .35); }

/* 26-Nov: error and change-password pages: one centred card (they lost their look when the sign-in page became two halves) */
.msg-page { min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.msg-page .login.card { max-width: 420px; padding: 28px 30px; border-radius: 16px; box-shadow: 0 12px 32px -16px rgba(31, 60, 100, .35); }
.msg-page h2 { margin: 4px 0 0; font-size: 22px; color: var(--head); }
.msg-page p { margin: 0; }
.msg-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.msg-brand b { font-size: 16px; color: var(--head); }
.msg-brand .logo-img { width: 36px; height: 36px; }

/* 26-Nov: a slightly deeper page background inside the app (Boby: "thoda sa dark"), so the white cards stand out */
body.app { --bg: #E6ECF4; background: #E6ECF4; }
body.app .card, body.app .kc, body.app .stat, body.app .kpi { border-color: #D9E2EE; }

/* 26-Nov: sidebar in Boby's colour #0c96a2 (teal), a touch deeper at the bottom; white text, the chosen item a white card in teal */
.side { background: linear-gradient(180deg, #0C96A2 0%, #0A8490 100%); box-shadow: 2px 0 14px -6px rgba(8, 100, 110, .5); }
.side-group { color: rgba(255, 255, 255, .7); }
.side-nav a { color: #fff; }
.side-nav a svg { color: rgba(255, 255, 255, .9); }
.side-nav a:hover { background: rgba(255, 255, 255, .16); }
.side-nav a.on { background: #fff; color: #0A7F8A; box-shadow: 0 4px 12px -4px rgba(0, 60, 66, .45); }
.side-nav a.on svg { color: #0A7F8A; }
.side-brand small { color: rgba(255, 255, 255, .82); }
.side-foot { color: rgba(255, 255, 255, .85); }
.side-mini .side:hover, .side-mini .side:focus-within { background: linear-gradient(180deg, #0C96A2 0%, #0A8490 100%); box-shadow: 0 10px 30px -10px rgba(8, 100, 110, .5); }

/* 26-Nov: a lab illustration on the sign-in page's left half (Boby); the half takes the sidebar's teal tint */
.login-art { background: linear-gradient(160deg, #EFF9FA 0%, #E2F3F4 55%, #D3ECEE 100%); }
.login-points li::before { background: #0C96A2; box-shadow: 0 0 0 4px rgba(12, 150, 162, .15); }
.login-illus { display: block; width: 100%; max-width: 520px; height: auto; margin-top: 30px; }
@media (max-height: 760px) { .login-illus { max-width: 400px; margin-top: 18px; } }
/* the sign-in page's brand sits on a light background (the sidebar's white brand text must not apply there) */
.login-art .side-brand b { color: #1D3550; }
.login-art .side-brand small { color: #5C7896; }
.login-art .side-brand { margin-bottom: 18px; }

/* 26-Nov: a module that does not fit in the top bar drops out whole (wraps to a hidden second row) instead of being cut
   in half next to the search (Boby: "Approval" ran into the search box with the sidebar open) */
.bar-nav { flex: 1 1 auto; flex-wrap: wrap; height: 36px; overflow: hidden; align-content: flex-start; }
.bar-nav a { flex: none; }

/* 26-Nov: nothing is hidden or cut in the top bar (Boby: "kuch bhi crop na ho"). When the modules do not fit beside the
   search, they move to a second row of the bar with their names; on a wide screen everything stays on one row. */
@media (min-width: 901px) {
    .bar { flex-wrap: wrap; height: auto; min-height: var(--bar); padding: 12px 24px 0; row-gap: 0; }
    .bar .bar-nav { order: 10; flex: 1 0 100%; height: auto; flex-wrap: wrap; overflow: visible; gap: 4px;
        margin-top: 10px; padding: 6px 0 8px; border-top: 1px solid var(--line-2); }
    .bar .bar-nav a { display: inline-flex !important; padding: 0 12px; }
    .bar .bar-nav a .lbl { display: inline; }
    .bar .back-btn { flex: none; }
}
@media (min-width: 1780px) {
    body.side-mini .bar { flex-wrap: nowrap; height: var(--bar); padding: 0 24px; }
    body.side-mini .bar .bar-nav { order: 0; flex: 0 1 auto; flex-wrap: nowrap; margin-top: 0; padding: 0; border-top: 0; }
}
@media (min-width: 1960px) {
    .bar { flex-wrap: nowrap; height: var(--bar); padding: 0 24px; }
    .bar .bar-nav { order: 0; flex: 0 1 auto; flex-wrap: nowrap; margin-top: 0; padding: 0; border-top: 0; }
}

/* 26-Nov: while a tab or filter loads in place */
.main.soft-loading { opacity: .55; transition: opacity .12s; pointer-events: none; }

/* 27-Nov: Razorpay online payment on the order page, the QR page and the settings steps */
.pay-online { border-top: 1px solid var(--line-2); }
.pay-online-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pay-online-head form { margin-left: auto; }
.pay-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pay-actions form { margin: 0; }
.pay-qr .card-body { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pay-qr img { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--text-2); }

/* 27-Nov: the home visit block on the order page (WDPL Phlebo app) */
.home-visit { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #F6FBFB; }
.hv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- sign-in page (04-Dec, laid out like the reference Boby sent): top bar, one box = banner + form ---------- */
body.hl { min-height: 100vh; margin: 0; display: flex; flex-direction: column;
    background: radial-gradient(1100px 600px at 50% 55%, #DCEAF8 0%, #F3F8FD 60%, #FFFFFF 100%); }
.hl-top { height: 58px; display: flex; align-items: center; padding: 0 22px; background: #fff; border-top: 3px solid #1E9BD7; border-bottom: 1px solid #E1E8EF; }
.hl-logo { display: flex; align-items: center; gap: 10px; color: #14324A; }
.hl-logo:hover { text-decoration: none; }
.hl-logo img { width: 34px; height: 34px; object-fit: contain; }
.hl-logo b { display: block; font-size: 16px; letter-spacing: .02em; color: #0E6F87; }
.hl-logo small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6B8296; }
.hl-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 20px; }
.hl-box { display: grid; grid-template-columns: minmax(0, 600px) minmax(300px, 300px); width: 100%; max-width: 900px; border-radius: 16px; overflow: hidden;
    background: #fff; box-shadow: 0 30px 60px -30px rgba(20, 60, 110, .45), 0 2px 8px rgba(20, 60, 110, .06); }

.hl-banner { display: flex; flex-direction: column; min-width: 0; background: linear-gradient(160deg, #FFFFFF 0%, #EEF6FD 45%, #DCEBF8 100%); color: #0D2F5A; }
.hl-banner-main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 20px 22px 6px; }
.hl-brand { display: flex; align-items: center; gap: 8px; margin: 0 0 22px; }
.hl-brand img { width: 40px; height: 40px; object-fit: contain; }
.hl-brand b { display: block; font-size: 22px; letter-spacing: .04em; color: #0E6F87; line-height: 1; }
.hl-brand small { display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #6B8296; margin-top: 3px; }
.hl-banner h2 { margin: 0; color: #0D2F5A; font-size: 19px; line-height: 1.05; font-weight: 800; text-transform: uppercase; }
.hl-banner h2 strong { display: block; font-size: 44px; letter-spacing: -.01em; color: #134E9B; margin: 2px 0; }
.hl-banner h2 span { display: block; font-size: 19px; }
.hl-pulse { display: block; height: 14px; margin: 8px 0 14px; background:
    linear-gradient(#134E9B, #134E9B) left 50% / 62% 2px no-repeat; position: relative; }
.hl-values { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; text-align: center; }
.hl-values li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 4px; border-left: 1px solid #C9DAEA; }
.hl-values li:first-child { border-left: 0; }
.hl-values svg { width: 30px; height: 30px; color: #134E9B; stroke: currentColor; fill: none; margin-bottom: 4px; }
.hl-values b { font-size: 10px; text-transform: uppercase; color: #134E9B; }
.hl-values small { font-size: 9.5px; color: #4C6680; }
.hl-art { position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.hl-tag { margin: 0; text-align: center; font-size: 12px; line-height: 1.35; color: #134E9B; }
.hl-tag b { display: block; font-size: 12.5px; }
.hl-tag span { display: block; margin-top: 6px; font-size: 10.5px; color: #33506B; }
.hl-tag em { display: block; font-style: normal; font-weight: 700; color: #1E9BD7; }
.hl-art img { width: 100%; max-width: 300px; height: auto; margin-top: 6px; }
.hl-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 6px 16px 10px; padding: 8px 6px; list-style: none;
    background: rgba(255, 255, 255, .7); border-radius: 12px; }
.hl-facts li { display: flex; align-items: center; gap: 7px; padding: 2px 4px; border-left: 1px solid #D3E1EE; font-size: 9.5px; line-height: 1.25; color: #4C6680; }
.hl-facts li:first-child { border-left: 0; }
.hl-facts b { display: block; font-size: 11px; color: #134E9B; }
.hl-facts svg { width: 30px; height: 30px; flex: none; padding: 6px; box-sizing: border-box; border-radius: 50%; background: #DDEAF8; color: #134E9B; stroke: currentColor; fill: none; }
.hl-strip { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 22px;
    background: linear-gradient(90deg, #0B2F63 0%, #0E3F80 100%); color: #CFE0F5; font-size: 11px; }
.hl-strip b { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }

.hl-form-side { display: flex; align-items: center; justify-content: center; padding: 26px 26px;
    background: radial-gradient(260px 160px at 80% 85%, #FFFFFF 0%, transparent 70%), radial-gradient(240px 140px at 15% 75%, #FFFFFF 0%, transparent 70%),
                linear-gradient(180deg, #F7FAFD 0%, #E8F1FA 100%); }
.hl-form { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.hl-form-logo { width: 54px; height: 54px; object-fit: contain; margin: 0 auto; }
.hl-form h1 { margin: 0 0 4px; text-align: center; font-size: 16px; color: #14243A; }
.hl-form .field { font-weight: 600; color: #14243A; }
.hl-form .field em { color: #D33; font-style: normal; }
.hl-form .input { height: 42px; background: #fff; }
.hl-pw { position: relative; display: block; }
.hl-pw .input { padding-right: 42px; width: 100%; box-sizing: border-box; }
.hl-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; cursor: pointer; color: #6B7C8F; }
.hl-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hl-eye.on { color: #0E6F87; }
.hl-forgot { margin: -4px 0 0; text-align: right; font-size: 12px; color: #33475C; }
.hl-forgot span { color: #7A8B9C; }
.hl-form .btn.primary.hl-go { height: 42px; font-size: 15px; background: #2FA36B; border-color: #2FA36B; box-shadow: 0 6px 14px -8px rgba(47, 163, 107, .8); }
.hl-form .btn.primary.hl-go:hover { background: #26915D; border-color: #26915D; }
.hl-portal { text-align: center; font-size: 12.5px; }

@media (max-width: 860px) {
    .hl-box { grid-template-columns: 1fr; max-width: 420px; }
    .hl-banner { display: none; }
    .hl-form-side { padding: 28px 22px; }
}
.hl-banner-main { flex: 1; align-items: center; }
.hl-art img { max-width: 100%; margin-top: 14px; }
.hl-facts { margin-bottom: 14px; }

/* ---------- 04-Dec: the admin's colours and font (Users > Colours & font); defaults = Hypatho's look ---------- */
:root { --t-primary: #1F5FA0; --t-side: #1A5A96; --t-head: #1E2A3A; --t-bg: #EEF0F3; --t-font: Inter, "Segoe UI", Roboto, Arial, sans-serif; --t-size: 14px; }
:root, body.app { --accent: var(--t-primary); --accent-2: color-mix(in srgb, var(--t-primary) 82%, #000); --accent-soft: color-mix(in srgb, var(--t-primary) 10%, #fff);
    --accent-line: color-mix(in srgb, var(--t-primary) 30%, #fff); --head: var(--t-head); --font: var(--t-font);
    --navy-500: var(--t-primary); --navy-600: var(--t-primary); --navy-700: var(--t-primary); --navy-800: var(--t-primary);
    --navy-900: var(--t-head); --navy-950: var(--t-head); --brand-50: color-mix(in srgb, var(--t-primary) 7%, #fff); --brand-100: color-mix(in srgb, var(--t-primary) 14%, #fff);
    --c-1: var(--t-primary); --c-1b: color-mix(in srgb, var(--t-primary) 80%, #fff); --c-1d: color-mix(in srgb, var(--t-primary) 80%, #000);
    --c-2: color-mix(in srgb, var(--t-primary) 55%, #fff); --c-2b: color-mix(in srgb, var(--t-primary) 30%, #fff); }
body, body.app, .input, .btn, select, textarea, button { font-family: var(--t-font); }
body.app { font-size: var(--t-size); --bg: var(--t-bg); background: var(--t-bg); }
h1, h2, h3, .bar-title, .card-head h3, .me-name { color: var(--t-head); }
a, .link { color: var(--t-primary); }
a:hover { color: color-mix(in srgb, var(--t-primary) 80%, #000); }
.btn.primary, .btn.primary:hover { background: var(--t-primary); border-color: var(--t-primary); color: #fff;
    box-shadow: 0 4px 10px -6px color-mix(in srgb, var(--t-primary) 80%, transparent); }
.btn.primary:hover { background: color-mix(in srgb, var(--t-primary) 85%, #000); border-color: color-mix(in srgb, var(--t-primary) 85%, #000); }
input[type=checkbox], input[type=radio] { accent-color: var(--t-primary); }
.input:focus { border-color: var(--t-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-primary) 18%, transparent); }
/* the sidebar: the admin's colour, white text, the chosen item a lighter pill */
.side, .side-mini .side:hover, .side-mini .side:focus-within { background: linear-gradient(180deg, var(--t-side) 0%, color-mix(in srgb, var(--t-side) 82%, #000) 100%);
    box-shadow: 2px 0 14px -6px color-mix(in srgb, var(--t-side) 60%, transparent); border-right: 0; }
.side-nav a, .side-brand b { color: #fff; }
.side-nav a svg { color: rgba(255, 255, 255, .92); }
.side-group, .side-brand small, .side-foot { color: rgba(255, 255, 255, .78); }
.side-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.side-nav a.on { background: color-mix(in srgb, var(--t-side) 45%, #6EC1F0); color: #fff; font-weight: 700; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .4); }
.side-nav a.on svg { color: #fff; }
.side-nav a.on::before { display: none; }
/* the top bar and menu: white, the chosen module in the main colour */
.bar-nav a.on { background: var(--accent-soft); color: var(--t-primary); box-shadow: inset 0 -2px 0 var(--t-primary); }
.bar-nav a.on svg { color: var(--t-primary); }
.bar-nav em { background: var(--t-primary); }
/* tables: a dark heading row, as Hypatho's */
.table th { background: var(--t-head); color: #fff; border-bottom-color: var(--t-head); }
.table th a { color: #fff; }
/* the settings page itself */
.th-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.th-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--text-2); }
.th-field small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.th-pick { display: flex; gap: 8px; align-items: center; }
.th-pick input[type=color] { width: 46px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.th-pick .input { width: 110px; font-family: ui-monospace, Consolas, monospace; text-transform: uppercase; }
.th-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); }
/* 04-Dec: the Colours & font panel from the right */
.tdraw-open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.tdraw-open circle { fill: currentColor; stroke: none; }
.tdraw-back { position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .25); opacity: 0; transition: opacity .2s ease; }
.tdraw-back.open { opacity: 1; }
.tdraw { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: 340px; max-width: 92vw; background: #fff; box-shadow: -12px 0 36px -12px rgba(15, 23, 42, .35);
    transform: translateX(100%); transition: transform .2s ease; }
.tdraw.open { transform: none; }
.tdraw-form { display: flex; flex-direction: column; height: 100%; }
.tdraw-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tdraw-head b { font-size: 15px; color: var(--t-head); }
.tdraw-body { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.tdraw-label { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tdraw-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.tdraw-presets button { display: flex; height: 34px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; gap: 2px; }
.tdraw-presets button:hover { border-color: var(--t-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--t-primary) 20%, transparent); }
.tdraw-presets i { flex: 1; border-radius: 6px; }
.tdraw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--text-2); }
.tdraw-row small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.tdraw-row input[type=color] { width: 44px; height: 32px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.tdraw-field { display: flex; flex-direction: column; gap: 5px; font-weight: 600; color: var(--text-2); }
.tdraw-foot { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
