/* ─────────────────────────────────────────────────────────────────────────
   M Dental Care / Skin / Patio — UI refresh overlay v10 (additive, reversible).
   Visual-only: colours, shadows, radii, transitions. No layout/grid changes and
   NO transform/filter/backdrop-filter on page containers (they would trap the
   app's position:fixed modals).
   Every rule is prefixed with `body` so it outranks the app's own stylesheet,
   which is injected AFTER this file (equal-specificity rules would lose).
   Colours come from the app's tokens (--at accent, --atd dark accent, --card,
   --bd …) so dental stays teal and skin stays orange in light AND dark mode.
   --ovl-rgb (accent as "r,g,b") is set by refresh-overlay.js from --at.
   Revert: remove the two <link>/<script> lines from index.html.
   ───────────────────────────────────────────────────────────────────────── */
:root { --ovl-rgb: 43,168,160; --ovl-r: 14px; --ovl-r-lg: 18px;
  --ovl-sh: 0 1px 2px rgba(26,35,50,.04), 0 6px 20px rgba(26,35,50,.06);
  --ovl-sh-hov: 0 2px 6px rgba(26,35,50,.06), 0 14px 34px rgba(26,35,50,.11);
  --ovl-zebra: rgba(var(--ovl-rgb), .035); --ovl-hover: rgba(var(--ovl-rgb), .08); }
.dark { --ovl-sh: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.28);
  --ovl-sh-hov: 0 2px 8px rgba(0,0,0,.35), 0 16px 40px rgba(0,0,0,.42);
  --ovl-zebra: rgba(255,255,255,.025); --ovl-hover: rgba(var(--ovl-rgb), .12); }

/* ── Universal polish ── */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body input:not([type="checkbox"]):not([type="radio"]):focus, body select:focus, body textarea:focus {
  border-color: var(--at) !important; box-shadow: 0 0 0 3px rgba(var(--ovl-rgb), .18) !important; outline: none; }
body button { transition: box-shadow .2s ease, filter .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
body button:hover:not(:disabled) { filter: brightness(1.04); }
body button:active:not(:disabled) { filter: brightness(.95); }
body button:focus-visible, body [role="button"]:focus-visible, body .sni:focus-visible { outline: 2px solid var(--at); outline-offset: 2px; }
body table td, body table th, body .scv, body .atm, body .pcl { font-variant-numeric: tabular-nums; }
::selection { background: rgba(var(--ovl-rgb), .22); }
* { scrollbar-width: thin; scrollbar-color: rgba(var(--ovl-rgb), .35) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: rgba(var(--ovl-rgb), .28); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: rgba(var(--ovl-rgb), .5); }

/* ── Content area: soft brand glow behind every page (background only) ── */
body .ct { background:
  radial-gradient(1100px 520px at 100% -8%, rgba(var(--ovl-rgb), .09), transparent 60%),
  radial-gradient(900px 480px at -10% 105%, rgba(var(--ovl-rgb), .07), transparent 60%),
  var(--bg); }
/* Gentle fade when a page opens — opacity only, skips the app's own .ai fades. */
body .ct > *:not(.ai) { animation: ovlIn .3s ease-out backwards; }
@keyframes ovlIn { from { opacity: 0; } }

/* ── Sidebar ── */
body .sb { background: linear-gradient(180deg, rgba(var(--ovl-rgb), .08) 0%, rgba(var(--ovl-rgb), .015) 38%, rgba(var(--ovl-rgb), .02) 70%, rgba(var(--ovl-rgb), .09) 100%), var(--sb); }
body .snv .sni { border-radius: 12px; margin-bottom: 3px; font-weight: 500; letter-spacing: .1px; }
body .snv .sni:hover svg { transform: scale(1.12); }
body .snv .sni.a, body .snv .sni.a:hover { color: #fff; font-weight: 650;
  background: linear-gradient(135deg, var(--at), var(--atd)); box-shadow: 0 6px 16px rgba(var(--ovl-rgb), .35), inset 0 1px 0 rgba(255,255,255,.2); }
body .snv .sni.a::before { display: none; }
body .snv .sni.a svg { color: #fff; filter: none; }
body .snv .sni.a::after { background: linear-gradient(90deg, rgba(255,255,255,.14), transparent) !important; }

/* ── Top bar + page title ── */
body .tb { box-shadow: 0 1px 0 var(--bdl), 0 6px 18px rgba(26,35,50,.04); }
body.dark .tb { box-shadow: 0 1px 0 var(--bdl), 0 6px 18px rgba(0,0,0,.25); }
body .tbt { background: linear-gradient(95deg, var(--tp) 40%, var(--at)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: 2px; }
body .tbt::after { content: ''; display: block; width: 34px; height: 3px; margin-top: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--at), transparent); }

/* ── Stat cards (class .sc and the inline-styled ones with a coloured top border) ── */
body .sc { border-radius: var(--ovl-r); border-color: transparent; box-shadow: var(--ovl-sh); }
body .sc:hover { box-shadow: var(--ovl-sh-hov); }
body .sc::after { height: 4px; }
body .sc.teal  { background: linear-gradient(155deg, var(--card) 45%, var(--atl)); }
body .sc.blue  { background: linear-gradient(155deg, var(--card) 45%, var(--abl)); }
body .sc.gold  { background: linear-gradient(155deg, var(--card) 45%, var(--agl)); }
body .sc.coral { background: linear-gradient(155deg, var(--card) 45%, var(--acl)); }
body .sci { border-radius: 11px; }
body .scv { font-weight: 800; letter-spacing: -.6px; }
body .ct div[style*="border-top: 3px solid var(--"] { border-radius: 14px !important; box-shadow: var(--ovl-sh); transition: transform .18s ease, box-shadow .22s ease; }
body .ct div[style*="border-top: 3px solid var(--"]:hover { transform: translateY(-2px); box-shadow: var(--ovl-sh-hov); }
body .ct div[style*="border-top: 3px solid var(--at)"] { background: linear-gradient(155deg, var(--card) 50%, var(--atl)) !important; }
body .ct div[style*="border-top: 3px solid var(--ab)"] { background: linear-gradient(155deg, var(--card) 50%, var(--abl)) !important; }
body .ct div[style*="border-top: 3px solid var(--ag)"] { background: linear-gradient(155deg, var(--card) 50%, var(--agl)) !important; }
body .ct div[style*="border-top: 3px solid var(--ac)"] { background: linear-gradient(155deg, var(--card) 50%, var(--acl)) !important; }
body .ct div[style*="border-top: 3px solid var(--ar)"] { background: linear-gradient(155deg, var(--card) 50%, var(--arl)) !important; }
body .ct div[style*="border-top: 3px solid var(--agr)"] { background: linear-gradient(155deg, var(--card) 50%, var(--agrl)) !important; }
body .ct div[style*="border-top: 3px solid var(--"] > div[style*="font-size: 18px"] { font-weight: 800 !important; letter-spacing: -.5px !important; }

/* ── Card shells: panels, tables, calendars ── */
body .pn, body .ptbl, body .cwk, body .supt { border-radius: var(--ovl-r-lg); border-color: transparent; box-shadow: var(--ovl-sh); }
body .pn > .ph { background: linear-gradient(90deg, rgba(var(--ovl-rgb), .12), transparent 72%); border-bottom: 2px solid var(--at); }
body .pt { font-weight: 700; letter-spacing: .1px; }

/* ── Table header bands (patients, suppliers, calendar weekdays) ── */
body .pth, body .supth, body .svcth, body .usrth, body .invth { background: linear-gradient(90deg, rgba(var(--ovl-rgb), .16), rgba(var(--ovl-rgb), .05)) !important;
  color: var(--at) !important; font-weight: 700; letter-spacing: 1px; border-bottom: 2px solid rgba(var(--ovl-rgb), .45) !important; }
body .cwr, body .cwh { background: linear-gradient(90deg, rgba(var(--ovl-rgb), .12), rgba(var(--ovl-rgb), .04)); }
body .cwd, body .cdh { color: var(--at); font-weight: 700; }

/* ── List rows on every page: zebra + hover accent edge ── */
body .pr, body .tpi, body .svctr, body .usrtr, body .suptr, body .invtr { transition: background .14s ease, box-shadow .14s ease; }
body .pr:nth-child(even), body .svctr:nth-child(even), body .usrtr:nth-child(even), body .suptr:nth-child(even), body .invtr:nth-child(even) { background: var(--ovl-zebra); }
body .pr:hover, body .tpi:hover, body .svctr:hover, body .usrtr:hover, body .suptr:hover, body .invtr:hover { background: var(--ovl-hover); box-shadow: inset 4px 0 0 var(--at); }
body .pr:hover .pnt { color: var(--at); }
body .pnt { font-weight: 600; }
body .pav, body .aav, body .usrav { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px rgba(var(--ovl-rgb), .28), 0 3px 8px rgba(26,35,50,.12); font-weight: 700; }
body .ra { width: 32px; height: 32px; border-radius: 50%; margin: 0 auto; transition: background .15s ease, color .15s ease; }
body .pr:hover .ra, body .ra:hover { background: linear-gradient(135deg, var(--at), var(--atd)); color: #fff; box-shadow: 0 3px 10px rgba(var(--ovl-rgb), .35); }

/* ── Balance as pills: Paid (green), owes (coral), No Bill (neutral; tagged by JS) ── */
body .bt { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
body .bt.clear { background: var(--agrl); color: var(--agr); box-shadow: inset 0 0 0 1px rgba(76,175,130,.25); }
body .bt.owed { background: var(--acl); color: var(--ac); box-shadow: inset 0 0 0 1px rgba(232,115,90,.3); }
body .bt.clear.ovl-nobill { background: rgba(128,140,160,.12); color: var(--ts); box-shadow: inset 0 0 0 1px rgba(128,140,160,.22); }

/* ── Status pills: a touch more definition ── */
body .ast, body .sdl, body .stb, body .invs, body .usrrl { box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); font-weight: 700; }

/* ── Buttons, filter chips, tabs ── */
body .bp { background: linear-gradient(135deg, var(--at), var(--atd)); border-radius: 11px;
  box-shadow: 0 4px 14px rgba(var(--ovl-rgb), .32), inset 0 1px 0 rgba(255,255,255,.18); }
body .bp:hover { background: linear-gradient(135deg, var(--at), var(--atd)); box-shadow: 0 8px 22px rgba(var(--ovl-rgb), .42), inset 0 1px 0 rgba(255,255,255,.22); }
body .bs { border-radius: 11px; box-shadow: 0 1px 2px rgba(26,35,50,.05); }
body .bs:hover { border-color: var(--at); color: var(--at); background: rgba(var(--ovl-rgb), .06); }
body .fc { transition: all .18s ease; }
body .fc:hover { background: rgba(var(--ovl-rgb), .06); }
body .fc.a, body .pdti.a, body .vb.a, body .cvb.a, body .df-btn.a { background: linear-gradient(135deg, var(--at), var(--atd)) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 4px 12px rgba(var(--ovl-rgb), .32); }
body .pdti, body .vb, body .df-btn { border-radius: 11px; transition: all .18s ease; }
body .cnb, body .ib, body .navb, body .svceb, body .svcdb { border-radius: 10px; }
body .cnb:hover, body .ib:hover, body .navb:hover { background: rgba(var(--ovl-rgb), .07); }
body .tt.on { background: linear-gradient(135deg, var(--at), var(--atd)); box-shadow: 0 0 0 3px rgba(var(--ovl-rgb), .15); }

/* A–Z letter filter (inline-styled 28px buttons) + its active/“All” button */
body .ct button[style*="width: 28px"][style*="border-radius: 6px"] { border-radius: 9px !important; transition: all .15s ease; }
body .ct button[style*="width: 28px"][style*="border-radius: 6px"]:hover { border-color: var(--at) !important; color: var(--at) !important; background: rgba(var(--ovl-rgb), .08) !important; }
body .ct button[style*="border-radius: 6px"][style*="background: var(--at)"] { background: linear-gradient(135deg, var(--at), var(--atd)) !important; border-color: transparent !important; border-radius: 9px !important; box-shadow: 0 3px 10px rgba(var(--ovl-rgb), .35); }

/* ── Search boxes (inline-styled: an icon + input inside a bordered box) ── */
body .ct div[style*="border: 1px solid var(--bd)"][style*="border-radius: var(--rsm)"]:has(> svg):has(> input),
body .sbox { border-radius: 14px !important; box-shadow: var(--ovl-sh); transition: box-shadow .2s ease, border-color .2s ease; }
body .ct div[style*="border: 1px solid var(--bd)"][style*="border-radius: var(--rsm)"]:has(> svg):has(> input):focus-within,
body .sbox:focus-within { border-color: var(--at) !important; box-shadow: 0 0 0 3px rgba(var(--ovl-rgb), .16), var(--ovl-sh) !important; }
body .ct div[style*="border-radius: var(--rsm)"]:has(> svg):has(> input) > svg { color: var(--at); }

/* ── Inputs ── */
body .fi, body .fta { border-radius: 11px; }
body .fi:hover, body .fta:hover { border-color: rgba(var(--ovl-rgb), .45); }

/* ── Clickable cards (billing invoices etc.): shadow/border only (they run the app's own fade) ── */
body .ct .ai[style*="border: 1px solid var(--bdl)"][style*="cursor: pointer"] { border-radius: 14px !important; box-shadow: var(--ovl-sh); transition: box-shadow .2s ease, border-color .2s ease !important; }
body .ct .ai[style*="border: 1px solid var(--bdl)"][style*="cursor: pointer"]:hover { box-shadow: var(--ovl-sh-hov), inset 4px 0 0 var(--at); border-color: rgba(var(--ovl-rgb), .35) !important; }

/* ── Dashboard lists ── */
body .ar .atm { color: var(--at); }
body .ar:hover, body .sr:hover { background: var(--ovl-hover); }

/* ── Calendar ── */
body .cd { transition: background .14s ease; }
body .cd:hover { background: rgba(var(--ovl-rgb), .05); }
body .cec, body .ce { border-radius: 5px; box-shadow: 0 1px 2px rgba(26,35,50,.06); }

/* ── Modals ── */
body .mo { background: rgba(15,20,30,.46); }
body .mo .mc { border-radius: 20px; box-shadow: 0 24px 64px rgba(15,20,30,.28), 0 0 0 1px rgba(var(--ovl-rgb), .10); }
@media (max-width: 700px) { body .mo .mc { border-radius: 0; } }

/* ── Mobile bottom navigation ── */
body .mob-nav { box-shadow: 0 -6px 22px rgba(26,35,50,.08); }
body .mob-nav-item.a { position: relative; }
body .mob-nav-item.a::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--at); box-shadow: 0 0 8px rgba(var(--ovl-rgb), .55); }
body .mob-more-menu { border-radius: 20px 20px 0 0; }

/* ── Status-tinted rows (colour read from each row's own status pill by the JS) ── */
body .ar.ovl-tint, body .sr.ovl-tint, body .invtr.ovl-tint, body .usrtr.ovl-tint, body .actr.ovl-tint, body .payr.ovl-tint {
  box-shadow: inset 4px 0 0 var(--rc); background: linear-gradient(90deg, var(--rc-wash), transparent 82%); }

/* ── Real <table>s: accent header, zebra; phone cards below 700px ── */
body table.rtable thead th { border-bottom: 2px solid var(--at) !important; background: rgba(var(--ovl-rgb), .10); color: var(--at); }
body.dark table.rtable thead th { color: rgba(255,255,255,.85); }
@media (min-width: 701px) {
  body table.rtable tbody td:first-child { font-weight: 600; }
  body table.rtable tbody tr { transition: background .14s ease; }
  body table.rtable tbody tr.sc { background: var(--rc-wash); box-shadow: inset 3px 0 0 var(--rc); }
  body table.rtable tbody tr.sc:hover { background: var(--rc-wash2); }
  body table.rtable tbody tr:not(.sc):nth-child(even) { background: var(--ovl-zebra); }
  body table.rtable tbody tr:not(.sc):hover { background: var(--ovl-hover); }
}
@media (max-width: 700px) {
  body table.rtable { min-width: 0 !important; width: 100%; display: block; }
  body table.rtable thead { display: none; }
  body table.rtable tbody { display: block; }
  body table.rtable tr { display: block; margin: 0 0 10px; border: 1px solid rgba(20,30,60,.12); border-left: 3px solid var(--at);
    border-radius: 13px; overflow: hidden; background: #fff; box-shadow: 0 6px 22px rgba(20,30,60,.09); }
  body table.rtable tr.sc { border-left-color: var(--rc); }
  body table.rtable td { display: block; position: relative; text-align: right; word-break: break-word;
    padding: 11px 14px 11px 42% !important; border: none; border-bottom: 1px solid rgba(20,30,60,.07); min-height: 40px; }
  body table.rtable tr td:last-child { border-bottom: none; }
  body table.rtable td::before { content: attr(data-l); position: absolute; left: 14px; top: 11px; width: 34%;
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; line-height: 1.35; color: var(--at); }
  body table.rtable td:not([data-l]), body table.rtable td[data-l=""] { padding-left: 14px !important; text-align: left; }
  body table.rtable td:not([data-l])::before, body table.rtable td[data-l=""]::before { content: none; }
  body.dark table.rtable tr { background: rgba(255,255,255,.05); box-shadow: 0 12px 40px rgba(0,0,0,.45);
    border-top-color: rgba(255,255,255,.11); border-right-color: rgba(255,255,255,.11); border-bottom-color: rgba(255,255,255,.11); }
  body.dark table.rtable td { border-bottom-color: rgba(255,255,255,.07); }
}


/* ═════════════ Page-by-page (v10) — every sidebar page gets a visible upgrade ═════════════ */

/* Generic inline "cards" used across pages (supplier cards, settings blocks …):
   rounder, soft shadow. Excludes search boxes (those hold an <input>). */
body .ct div[style*="background: var(--card)"][style*="border: 1px solid var(--bdl)"]:not(:has(> input)) { border-radius: 14px !important; box-shadow: var(--ovl-sh); }

/* Load-more / pill outline buttons */
body .ct button[style*="border-radius: 20px"][style*="color: var(--at)"] { transition: all .18s ease; }
body .ct button[style*="border-radius: 20px"][style*="color: var(--at)"]:hover { background: linear-gradient(135deg, var(--at), var(--atd)) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 4px 14px rgba(var(--ovl-rgb), .35); }

/* ── TREATMENTS: each plan becomes a card ── */
body .tpl { background: transparent; padding: 2px; }
body .tpi { background: var(--card); border: 1px solid var(--bdl); border-radius: 16px; margin: 0 0 12px; box-shadow: var(--ovl-sh); }
body .tpi:last-child { border-bottom: 1px solid var(--bdl); }
body .tpi:hover { box-shadow: var(--ovl-sh-hov), inset 4px 0 0 var(--at); border-color: rgba(var(--ovl-rgb), .35); background: var(--card); }
body .tpi.ovl-tint { box-shadow: var(--ovl-sh), inset 4px 0 0 var(--rc); }
body .tpi.ovl-tint:hover { box-shadow: var(--ovl-sh-hov), inset 4px 0 0 var(--rc); }
body .tpih div[style*="border-radius: 50%"][style*="width: 44px"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px rgba(var(--ovl-rgb), .28), 0 3px 8px rgba(26,35,50,.14); }
body .tpi:hover .tpih div[style*="font-size: 17px"] { color: var(--at) !important; }
body .tpin { display: inline-block; background: rgba(var(--ovl-rgb), .10); color: var(--at) !important; padding: 2px 10px; border-radius: 20px; margin-top: 2px; }
body .tpis { box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); font-weight: 700; letter-spacing: .3px; }
body .tpip { border-left: 2px solid rgba(var(--ovl-rgb), .5); padding-left: 10px; margin-top: 6px; }
body .tppc { border-radius: 8px; box-shadow: 0 1px 3px rgba(26,35,50,.08); }
body .tpc > span:first-child { display: inline-block; font-weight: 800; background: rgba(var(--ovl-rgb), .10); padding: 4px 14px; border-radius: 20px; }

/* ── BILLING: invoice cards ── */
body .ct span[style*="background: var(--atl)"][style*="border-radius: 6px"] { background: linear-gradient(135deg, var(--at), var(--atd)) !important; color: #fff !important; border-radius: 8px !important; box-shadow: 0 3px 8px rgba(var(--ovl-rgb), .3); }
body .ct .ai.ovl-tint[style*="cursor: pointer"] { box-shadow: var(--ovl-sh), inset 4px 0 0 var(--rc); background-image: linear-gradient(90deg, var(--rc-wash), transparent 45%) !important; }
body .ct .ai.ovl-tint[style*="cursor: pointer"]:hover { box-shadow: var(--ovl-sh-hov), inset 4px 0 0 var(--rc); }
body .ct div[style*="height: 6px"][style*="border-radius: 3px"] { height: 8px !important; border-radius: 8px !important; background: rgba(128,140,160,.16) !important; }
body .ct div[style*="height: 6px"][style*="border-radius: 3px"] > div[style*="height: 100%"] { border-radius: 8px !important; background-image: linear-gradient(90deg, rgba(255,255,255,.30), rgba(255,255,255,0) 70%) !important; }

/* ── EXPENSES + CALENDAR STATUS: inline cards with a coloured left border ── */
body .ct div[style*="background: var(--card)"][style*="border-left: 4px solid"] { border-radius: 14px !important; box-shadow: var(--ovl-sh); background-image: linear-gradient(90deg, rgba(var(--ovl-rgb), .04), transparent 40%) !important; transition: box-shadow .2s ease, transform .18s ease !important; }
body .ct div[style*="background: var(--card)"][style*="border-left: 4px solid"]:hover { box-shadow: var(--ovl-sh-hov); }
body .ct div[style*="background: var(--card)"][style*="border-left: 4px solid"][style*="padding: 20px"]:hover { transform: translateY(-3px); }
body .ct div[style*="border-left: 4px solid"] div[style*="font-size: 28px"] { letter-spacing: -1px; }

/* ── CALENDAR ── */
body .ptb span[style*="min-width: 220px"] { font-family: 'Playfair Display', serif; font-size: 21px !important;
  background: linear-gradient(95deg, var(--tp) 40%, var(--at)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body .navb { border-radius: 50%; }
body .navb:hover { background: linear-gradient(135deg, var(--at), var(--atd)); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(var(--ovl-rgb), .35); }
body .pn > .cg { border: none; border-radius: 0; }
body .cg.ch { background: linear-gradient(90deg, rgba(var(--ovl-rgb), .14), rgba(var(--ovl-rgb), .04)); border-bottom: 2px solid rgba(var(--ovl-rgb), .4); }
body .cdh { padding: 12px 10px; letter-spacing: 1.2px; }
body .cd.ot { background-image: repeating-linear-gradient(135deg, rgba(128,140,160,.06) 0 6px, transparent 6px 12px); }
body .cdn { font-weight: 600; }
body .cd.td { border: 0; border-right: 1px solid var(--bdl); border-bottom: 1px solid var(--bdl);
  background: linear-gradient(160deg, rgba(var(--ovl-rgb), .14), rgba(var(--ovl-rgb), .03)); box-shadow: inset 0 0 0 2px var(--at); }
body .cd.td .cdn { box-shadow: 0 0 0 3px rgba(var(--ovl-rgb), .25), 0 3px 8px rgba(var(--ovl-rgb), .4); }
body .ce { border-radius: 6px; padding: 3px 7px; margin-bottom: 3px; box-shadow: 0 1px 3px rgba(26,35,50,.08); transition: filter .15s ease, box-shadow .15s ease; }
body .ce:hover { filter: brightness(.97); box-shadow: 0 3px 8px rgba(26,35,50,.14); }
body .cm { display: inline-block; background: rgba(var(--ovl-rgb), .10); border-radius: 10px; margin-top: 2px; }
/* dark mode: the app paints past/other appointments with a light grey chip — soften it */
body.dark .ce[style*="background: rgb(240, 237, 233)"] { background: rgba(255,255,255,.07) !important; color: var(--ts) !important; }

/* ── Skin extra colour used on Inventory/Purchases stat cards ── */
body .sc.red { background: linear-gradient(155deg, var(--card) 45%, var(--arl)); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
