/* =====================================================================
   EzySewa UI  —  single stylesheet for the whole project.
   Replaces Bootstrap CSS, theme.css, dark-mode.css, retailer-theme.css,
   dashboard_assets/*, new_assets/css/*.
   Design language: PharmaLy dashboard (left sidebar, breadcrumb header,
   rounded white cards, soft shadows, emerald accent, Inter font).
   Class names intentionally mirror the markup already used in views, so
   pages keep working; Bootstrap's JS is only used for open/close behaviour.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* ---------- Tokens ---------- */
:root {
  --ez-primary: #1257cf;
  --ez-primary-600: #0e45a6;
  --ez-primary-50: #eaf4ff;
  --ez-ink: #102340;
  --ez-text: #334155;
  --ez-muted: #64748b;
  --ez-bg: #f5f7fa;
  --ez-surface: #ffffff;
  --ez-surface-2: #f8fafc;
  --ez-border: #e5e9f0;
  --ez-sidebar-bg: #ffffff;
  --ez-success: #12a86b;
  --ez-warning: #f59e0b;
  --ez-danger: #dc2626;
  --ez-info: #0ea5e9;
  --ez-radius: 12px;
  --ez-radius-sm: 8px;
  --ez-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 14px rgba(15, 23, 42, .05);
  --ez-shadow-lg: 0 18px 40px rgba(15, 23, 42, .14);
  --ez-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* legacy hooks read by common.js / inline styles */
  --stm-primary: var(--ez-primary);
  --stm-bg: var(--ez-bg);
  --stm-card-bg: var(--ez-surface);
  --stm-text: var(--ez-text);
  --stm-border: var(--ez-border);
  --stm-accent: var(--ez-primary);
  --stm-primary-dark: var(--ez-primary-600);
  --stm-primary-light: #3b82f6;
  --bs-primary: var(--ez-primary);
  --bs-success: var(--ez-success);
  --bs-warning: var(--ez-warning);
  --bs-danger: var(--ez-danger);
  --bs-info: var(--ez-info);
  --bs-secondary: var(--ez-muted);
}
:root[data-theme="dark"] {
  --ez-ink: #f1f5f9;
  --ez-text: #cbd5e1;
  --ez-muted: #94a3b8;
  --ez-bg: #0b1220;
  --ez-surface: #111a2e;
  --ez-surface-2: #16213a;
  --ez-border: #25324d;
  --ez-sidebar-bg: #0e1729;
  --ez-primary-50: rgba(15, 157, 120, .16);
  --ez-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--ez-font); font-size: .9rem; line-height: 1.5;
  color: var(--ez-text); background: var(--ez-bg); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; color: var(--ez-ink); font-weight: 600; line-height: 1.25; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.125rem; } h5, .h5 { font-size: 1rem; } h6, .h6 { font-size: .9rem; }
.h1 { font-size: 1.75rem; } .h2 { font-size: 1.5rem; } .h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--ez-primary); text-decoration: none; }
a:hover { color: var(--ez-primary-600); }
img, svg { vertical-align: middle; max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--ez-border); margin: 1rem 0; opacity: 1; }
small, .small { font-size: .8rem; }
label { display: inline-block; }
button { font-family: inherit; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
code, pre, .font-monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { color: #be185d; font-size: .85em; }
::selection { background: var(--ez-primary-50); }
:focus-visible { outline: 2px solid var(--ez-primary); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Layout: container + grid ---------- */
.container, .container-fluid { width: 100%; padding-inline: 12px; margin-inline: auto; }
.container { max-width: 1320px; }
.row { --gx: 0px; --gy: 0px; display: flex; flex-wrap: wrap; margin: calc(var(--gy) * -1) calc(var(--gx) * -.5) 0; }
.row > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-inline: calc(var(--gx) * .5); margin-top: var(--gy); }
.g-0 { --gx: 0px; --gy: 0px; } .g-1 { --gx: .25rem; --gy: .25rem; } .g-2 { --gx: .5rem; --gy: .5rem; }
.g-3 { --gx: 1rem; --gy: 1rem; } .g-4 { --gx: 1.5rem; --gy: 1.5rem; } .g-5 { --gx: 3rem; --gy: 3rem; }
.gx-3 { --gx: 1rem; } .gy-3 { --gy: 1rem; } .gx-2 { --gx: .5rem; } .gy-2 { --gy: .5rem; }
.col { flex: 1 0 0%; } .col-auto { flex: 0 0 auto; width: auto; }
@media (min-width: 0) {
  .col-1{flex:0 0 auto;width:8.3333%}.col-2{flex:0 0 auto;width:16.6667%}.col-3{flex:0 0 auto;width:25%}
  .col-4{flex:0 0 auto;width:33.3333%}.col-5{flex:0 0 auto;width:41.6667%}.col-6{flex:0 0 auto;width:50%}
  .col-7{flex:0 0 auto;width:58.3333%}.col-8{flex:0 0 auto;width:66.6667%}.col-9{flex:0 0 auto;width:75%}
  .col-10{flex:0 0 auto;width:83.3333%}.col-11{flex:0 0 auto;width:91.6667%}.col-12{flex:0 0 auto;width:100%}
}
@media (min-width: 576px) {
  .col-sm{flex:1 0 0%}.col-sm-auto{flex:0 0 auto;width:auto}
  .col-sm-1{flex:0 0 auto;width:8.3333%}.col-sm-2{flex:0 0 auto;width:16.6667%}.col-sm-3{flex:0 0 auto;width:25%}
  .col-sm-4{flex:0 0 auto;width:33.3333%}.col-sm-5{flex:0 0 auto;width:41.6667%}.col-sm-6{flex:0 0 auto;width:50%}
  .col-sm-7{flex:0 0 auto;width:58.3333%}.col-sm-8{flex:0 0 auto;width:66.6667%}.col-sm-9{flex:0 0 auto;width:75%}
  .col-sm-10{flex:0 0 auto;width:83.3333%}.col-sm-11{flex:0 0 auto;width:91.6667%}.col-sm-12{flex:0 0 auto;width:100%}
  .d-sm-none{display:none!important}.d-sm-block{display:block!important}.d-sm-flex{display:flex!important}.d-sm-inline{display:inline!important}
}
@media (min-width: 768px) {
  .col-md{flex:1 0 0%}.col-md-auto{flex:0 0 auto;width:auto}
  .col-md-1{flex:0 0 auto;width:8.3333%}.col-md-2{flex:0 0 auto;width:16.6667%}.col-md-3{flex:0 0 auto;width:25%}
  .col-md-4{flex:0 0 auto;width:33.3333%}.col-md-5{flex:0 0 auto;width:41.6667%}.col-md-6{flex:0 0 auto;width:50%}
  .col-md-7{flex:0 0 auto;width:58.3333%}.col-md-8{flex:0 0 auto;width:66.6667%}.col-md-9{flex:0 0 auto;width:75%}
  .col-md-10{flex:0 0 auto;width:83.3333%}.col-md-11{flex:0 0 auto;width:91.6667%}.col-md-12{flex:0 0 auto;width:100%}
  .d-md-none{display:none!important}.d-md-block{display:block!important}.d-md-flex{display:flex!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}
  .ms-md-auto{margin-left:auto!important}.me-md-auto{margin-right:auto!important}
  .px-md-4{padding-inline:1.5rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.py-md-5{padding-block:3rem!important}
  .text-md-end{text-align:right!important}.text-md-start{text-align:left!important}
  .flex-md-row{flex-direction:row!important}.justify-content-md-between{justify-content:space-between!important}
}
@media (min-width: 992px) {
  .col-lg{flex:1 0 0%}.col-lg-auto{flex:0 0 auto;width:auto}
  .col-lg-1{flex:0 0 auto;width:8.3333%}.col-lg-2{flex:0 0 auto;width:16.6667%}.col-lg-3{flex:0 0 auto;width:25%}
  .col-lg-4{flex:0 0 auto;width:33.3333%}.col-lg-5{flex:0 0 auto;width:41.6667%}.col-lg-6{flex:0 0 auto;width:50%}
  .col-lg-7{flex:0 0 auto;width:58.3333%}.col-lg-8{flex:0 0 auto;width:66.6667%}.col-lg-9{flex:0 0 auto;width:75%}
  .col-lg-10{flex:0 0 auto;width:83.3333%}.col-lg-11{flex:0 0 auto;width:91.6667%}.col-lg-12{flex:0 0 auto;width:100%}
  .d-lg-none{display:none!important}.d-lg-block{display:block!important}.d-lg-flex{display:flex!important}.d-lg-inline{display:inline!important}
  .px-lg-4{padding-inline:1.5rem!important}
}
@media (min-width: 1200px) {
  .col-xl{flex:1 0 0%}
  .col-xl-1{flex:0 0 auto;width:8.3333%}.col-xl-2{flex:0 0 auto;width:16.6667%}.col-xl-3{flex:0 0 auto;width:25%}
  .col-xl-4{flex:0 0 auto;width:33.3333%}.col-xl-5{flex:0 0 auto;width:41.6667%}.col-xl-6{flex:0 0 auto;width:50%}
  .col-xl-8{flex:0 0 auto;width:66.6667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-12{flex:0 0 auto;width:100%}
  .d-xl-none{display:none!important}.d-xl-block{display:block!important}.d-xl-flex{display:flex!important}
}
.offset-md-2{margin-left:16.6667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.3333%}
.order-1{order:1}.order-2{order:2}.order-first{order:-1}.order-last{order:13}
@media (min-width: 768px) { .order-md-1{order:1}.order-md-2{order:2} }
@media (min-width: 992px) { .order-lg-1{order:1}.order-lg-2{order:2} }

/* ---------- Utilities ---------- */
.d-none{display:none!important}.d-block{display:block!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}
.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-grid{display:grid!important}.d-table{display:table!important}
.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}
.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-fill{flex:1 1 auto!important}
.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}
.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}
.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}
.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}
.align-self-center{align-self:center!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}
.align-middle{vertical-align:middle!important}.align-top{vertical-align:top!important}.align-baseline{vertical-align:baseline!important}
.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}
.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}
.top-0{top:0!important}.bottom-0{bottom:0!important}.start-0{left:0!important}.end-0{right:0!important}
.top-50{top:50%!important}.start-50{left:50%!important}.translate-middle{transform:translate(-50%,-50%)!important}
.overflow-hidden{overflow:hidden!important}.overflow-auto{overflow:auto!important}.overflow-x-auto{overflow-x:auto!important}
.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}
.h-100{height:100%!important}.h-auto{height:auto!important}.min-vh-100{min-height:100vh!important}.vh-100{height:100vh!important}.mw-100{max-width:100%!important}
.min-w-0{min-width:0!important}
.m-0{margin:0!important}.m-auto{margin:auto!important}.mx-auto{margin-inline:auto!important}.ms-auto{margin-left:auto!important}.me-auto{margin-right:auto!important}.mt-auto{margin-top:auto!important}.mb-auto{margin-bottom:auto!important}
.my-0{margin-block:0!important}.mx-0{margin-inline:0!important}
.p-0{padding:0!important}.px-0{padding-inline:0!important}.py-0{padding-block:0!important}
.pt-0{padding-top:0!important}.pb-0{padding-bottom:0!important}.ps-0{padding-left:0!important}.pe-0{padding-right:0!important}
.border{border:1px solid var(--ez-border)!important}.border-0{border:0!important}.border-top{border-top:1px solid var(--ez-border)!important}
.border-bottom{border-bottom:1px solid var(--ez-border)!important}.border-start{border-left:1px solid var(--ez-border)!important}.border-end{border-right:1px solid var(--ez-border)!important}
.border-primary{border-color:var(--ez-primary)!important}.border-danger{border-color:var(--ez-danger)!important}.border-success{border-color:var(--ez-success)!important}
.rounded{border-radius:var(--ez-radius-sm)!important}.rounded-0{border-radius:0!important}.rounded-2{border-radius:6px!important}.rounded-3{border-radius:var(--ez-radius)!important}
.rounded-4{border-radius:16px!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:999px!important}
.shadow-sm{box-shadow:var(--ez-shadow)!important}.shadow{box-shadow:var(--ez-shadow-lg)!important}.shadow-none{box-shadow:none!important}
.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}
.text-nowrap{white-space:nowrap!important}.text-wrap{white-space:normal!important}.text-break{word-break:break-word!important}
.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.text-uppercase{text-transform:uppercase!important}.text-lowercase{text-transform:lowercase!important}.text-capitalize{text-transform:capitalize!important}
.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}
.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium{font-weight:500!important}
.fw-semibold{font-weight:600!important}.fw-bold,.fw-bolder{font-weight:700!important}.fst-italic{font-style:italic!important}
.fs-1{font-size:2rem!important}.fs-2{font-size:1.65rem!important}.fs-3{font-size:1.4rem!important}.fs-4{font-size:1.2rem!important}.fs-5{font-size:1.05rem!important}.fs-6{font-size:.9rem!important}
.display-1{font-size:4.5rem;font-weight:700}.display-4{font-size:2.5rem;font-weight:700}.display-6{font-size:1.9rem;font-weight:700}
.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}
.text-primary{color:var(--ez-primary)!important}.text-secondary{color:var(--ez-muted)!important}.text-success{color:var(--ez-success)!important}
.text-danger{color:var(--ez-danger)!important}.text-warning{color:#d97706!important}.text-info{color:var(--ez-info)!important}
.text-light{color:#f1f5f9!important}.text-dark{color:var(--ez-ink)!important}.text-white{color:#fff!important}
.text-muted,.text-body-secondary{color:var(--ez-muted)!important}.text-body{color:var(--ez-text)!important}.text-red{color:var(--ez-danger)!important}
.bg-white{background:var(--ez-surface)!important}.bg-light{background:var(--ez-surface-2)!important}.bg-transparent{background:transparent!important}
.bg-primary{background:var(--ez-primary)!important;color:#fff}.bg-success{background:var(--ez-success)!important;color:#fff}
.bg-danger{background:var(--ez-danger)!important;color:#fff}.bg-warning{background:var(--ez-warning)!important;color:#1f2937}
.bg-info{background:var(--ez-info)!important;color:#fff}.bg-secondary{background:var(--ez-muted)!important;color:#fff}.bg-dark{background:#0f172a!important;color:#fff}
.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}
.cursor-pointer,[role="button"]{cursor:pointer}
.pe-none{pointer-events:none!important}.user-select-none{user-select:none!important}
.float-end{float:right!important}.float-start{float:left!important}
.clearfix::after{content:"";display:table;clear:both}
.list-unstyled{list-style:none;padding-left:0}.list-inline{list-style:none;padding-left:0}.list-inline-item{display:inline-block}
.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--ez-ratio,56.25%);content:""}
.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-16x9{--ez-ratio:56.25%}.ratio-4x3{--ez-ratio:75%}.ratio-1x1{--ez-ratio:100%}
/* spacing scale 1..5 */
.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}
.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-0{margin-top:0!important}
.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}
.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}
.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}
.mx-1{margin-inline:.25rem!important}.mx-2{margin-inline:.5rem!important}.mx-3{margin-inline:1rem!important}
.my-1{margin-block:.25rem!important}.my-2{margin-block:.5rem!important}.my-3{margin-block:1rem!important}.my-4{margin-block:1.5rem!important}.my-5{margin-block:3rem!important}
.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}
.px-1{padding-inline:.25rem!important}.px-2{padding-inline:.5rem!important}.px-3{padding-inline:1rem!important}.px-4{padding-inline:1.5rem!important}.px-5{padding-inline:3rem!important}
.py-1{padding-block:.25rem!important}.py-2{padding-block:.5rem!important}.py-3{padding-block:1rem!important}.py-4{padding-block:1.5rem!important}.py-5{padding-block:3rem!important}
.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}
.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}
.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}
.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}

/* ---------- Buttons ---------- */
.btn {
  --b-bg: transparent; --b-fg: var(--ez-ink); --b-bd: transparent; --b-hbg: var(--ez-surface-2); --b-hfg: var(--b-fg); --b-hbd: var(--b-bd);
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .5rem .95rem; font-size: .875rem; font-weight: 500; line-height: 1.4; text-align: center; white-space: nowrap;
  color: var(--b-fg); background: var(--b-bg); border: 1px solid var(--b-bd); border-radius: var(--ez-radius-sm);
  cursor: pointer; user-select: none; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.btn:hover { color: var(--b-hfg); background: var(--b-hbg); border-color: var(--b-hbd); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled, fieldset:disabled .btn { opacity: .55; pointer-events: none; }
.btn-primary { --b-bg: var(--ez-primary); --b-fg: #fff; --b-bd: var(--ez-primary); --b-hbg: var(--ez-primary-600); --b-hfg: #fff; box-shadow: 0 1px 2px rgba(18,87,207,.25); }
.btn-success { --b-bg: var(--ez-success); --b-fg: #fff; --b-bd: var(--ez-success); --b-hbg: #15803d; --b-hfg: #fff; }
.btn-danger { --b-bg: var(--ez-danger); --b-fg: #fff; --b-bd: var(--ez-danger); --b-hbg: #b91c1c; --b-hfg: #fff; }
.btn-warning { --b-bg: var(--ez-warning); --b-fg: #1f2937; --b-bd: var(--ez-warning); --b-hbg: #d97706; --b-hfg: #1f2937; }
.btn-info { --b-bg: var(--ez-info); --b-fg: #fff; --b-bd: var(--ez-info); --b-hbg: #0284c7; --b-hfg: #fff; }
.btn-secondary { --b-bg: #475569; --b-fg: #fff; --b-bd: #475569; --b-hbg: #334155; --b-hfg: #fff; }
.btn-dark { --b-bg: #0f172a; --b-fg: #fff; --b-bd: #0f172a; --b-hbg: #1e293b; --b-hfg: #fff; }
.btn-light { --b-bg: var(--ez-surface-2); --b-fg: var(--ez-ink); --b-bd: var(--ez-border); --b-hbg: var(--ez-border); }
.btn-outline-primary { --b-fg: var(--ez-primary); --b-bd: var(--ez-primary); --b-hbg: var(--ez-primary); --b-hfg: #fff; }
.btn-outline-secondary { --b-fg: var(--ez-text); --b-bd: var(--ez-border); --b-hbg: var(--ez-surface-2); --b-hfg: var(--ez-ink); --b-hbd: #cbd5e1; }
.btn-outline-success { --b-fg: var(--ez-success); --b-bd: var(--ez-success); --b-hbg: var(--ez-success); --b-hfg: #fff; }
.btn-outline-danger { --b-fg: var(--ez-danger); --b-bd: var(--ez-danger); --b-hbg: var(--ez-danger); --b-hfg: #fff; }
.btn-outline-warning { --b-fg: #b45309; --b-bd: var(--ez-warning); --b-hbg: var(--ez-warning); --b-hfg: #1f2937; }
.btn-outline-info { --b-fg: var(--ez-info); --b-bd: var(--ez-info); --b-hbg: var(--ez-info); --b-hfg: #fff; }
.btn-outline-dark { --b-fg: var(--ez-ink); --b-bd: var(--ez-ink); --b-hbg: var(--ez-ink); --b-hfg: var(--ez-surface); }
.btn-link { --b-fg: var(--ez-primary); --b-hbg: transparent; --b-hfg: var(--ez-primary-600); padding-inline: .25rem; }
.btn-link:hover { text-decoration: underline; }
.btn-sm { padding: .3rem .65rem; font-size: .8rem; border-radius: 7px; }
.btn-lg { padding: .7rem 1.3rem; font-size: 1rem; }
.btn-close {
  width: 1.9rem; height: 1.9rem; padding: 0; border: 0; border-radius: 8px; cursor: pointer; opacity: .6;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3E%3Cpath d='M2.1 2.1a1 1 0 0 1 1.4 0L8 6.6l4.5-4.5a1 1 0 1 1 1.4 1.4L9.4 8l4.5 4.5a1 1 0 0 1-1.4 1.4L8 9.4l-4.5 4.5a1 1 0 0 1-1.4-1.4L6.6 8 2.1 3.5a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") center/.8rem no-repeat;
}
.btn-close:hover { opacity: 1; background-color: var(--ez-surface-2); }
.btn-group, .btn-group-vertical { display: inline-flex; vertical-align: middle; }
.btn-group > .btn:not(:first-child) { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.btn-group > .btn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-group-sm > .btn { padding: .3rem .65rem; font-size: .8rem; }
.btn-group-vertical { flex-direction: column; }
.btn-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Forms ---------- */
.form-label, label.form-label { margin-bottom: .35rem; font-size: .8rem; font-weight: 600; color: var(--ez-ink); }
.form-control, .form-select, .select2-container--default .select2-selection--single {
  display: block; width: 100%; padding: .5rem .75rem; font: inherit; font-size: .875rem; line-height: 1.5;
  color: var(--ez-ink); background-color: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: var(--ez-radius-sm);
  appearance: none; transition: border-color .15s, box-shadow .15s;
}
.form-select {
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 14px;
}
.form-control::placeholder { color: #94a3b8; }
.form-control:focus, .form-select:focus { border-color: var(--ez-primary); box-shadow: 0 0 0 3px rgba(18,87,207,.15); outline: 0; }
.form-control:disabled, .form-control[readonly], .form-select:disabled { background: var(--ez-surface-2); opacity: .85; }
.form-control-sm, .form-select-sm { padding: .3rem .6rem; font-size: .8rem; border-radius: 7px; }
.form-control-lg, .form-select-lg { padding: .7rem 1rem; font-size: 1rem; }
.form-control-plaintext { display: block; width: 100%; padding: .5rem 0; background: transparent; border: 0; color: var(--ez-ink); }
.form-control-color { width: 3rem; height: 2.4rem; padding: .2rem; }
textarea.form-control { min-height: 5rem; resize: vertical; }
input[type="file"].form-control { padding: .35rem .5rem; }
input[type="file"]::file-selector-button { margin-right: .7rem; padding: .3rem .7rem; border: 0; border-radius: 6px; background: var(--ez-primary-50); color: var(--ez-primary-600); font-weight: 600; cursor: pointer; }
.form-text { margin-top: .25rem; font-size: .75rem; color: var(--ez-muted); }
.form-group { margin-bottom: 1rem; }
.form-check { display: block; min-height: 1.4rem; padding-left: 1.6rem; margin-bottom: .25rem; }
.form-check .form-check-input { float: left; margin-left: -1.6rem; }
.form-check-inline { display: inline-block; margin-right: 1rem; }
.form-check-input {
  width: 1.1rem; height: 1.1rem; margin-top: .2rem; vertical-align: top; appearance: none; cursor: pointer;
  background: var(--ez-surface) center/70% no-repeat; border: 1.5px solid #cbd5e1; flex-shrink: 0;
}
.form-check-input[type="checkbox"] { border-radius: 5px; }
.form-check-input[type="radio"] { border-radius: 50%; }
.form-check-input:checked { background-color: var(--ez-primary); border-color: var(--ez-primary); }
.form-check-input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E"); }
.form-check-input[type="radio"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='2' fill='%23fff'/%3E%3C/svg%3E"); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(18,87,207,.18); outline: 0; }
.form-check-input:disabled { opacity: .5; }
.form-check-label { cursor: pointer; font-size: .875rem; }
.form-switch { padding-left: 2.8rem; }
.form-switch .form-check-input {
  width: 2.2rem; margin-left: -2.8rem; border-radius: 999px; background-color: #cbd5e1; border-color: #cbd5e1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E");
  background-position: left center; background-size: auto 100%; transition: background-position .15s, background-color .15s;
}
.form-switch .form-check-input:checked { background-position: right center; background-color: var(--ez-primary); border-color: var(--ez-primary); }
.form-switch .form-check-input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E"); }
.form-range { width: 100%; accent-color: var(--ez-primary); }
.input-group { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
.input-group > .form-control, .input-group > .form-select { flex: 1 1 auto; width: 1%; min-width: 0; position: relative; }
.input-group-text { display: flex; align-items: center; padding: .5rem .75rem; font-size: .875rem; color: var(--ez-muted); background: var(--ez-surface-2); border: 1px solid var(--ez-border); border-radius: var(--ez-radius-sm); white-space: nowrap; }
.input-group > :not(:first-child) { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > :not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-sm > .form-control, .input-group-sm > .input-group-text, .input-group-sm > .btn { padding: .3rem .6rem; font-size: .8rem; }
.is-invalid, .was-validated :invalid { border-color: var(--ez-danger) !important; }
.is-valid { border-color: var(--ez-success) !important; }
.invalid-feedback { display: none; width: 100%; margin-top: .25rem; font-size: .75rem; color: var(--ez-danger); }
.is-invalid ~ .invalid-feedback, .was-validated :invalid ~ .invalid-feedback { display: block; }
.valid-feedback { display: none; font-size: .75rem; color: var(--ez-success); }
.required::after, .req-star { color: var(--ez-danger); }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }

/* ---------- Cards ---------- */
.card, .stm-card, .cardx {
  position: relative; display: flex; flex-direction: column; min-width: 0; word-wrap: break-word;
  background: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: var(--ez-radius); box-shadow: var(--ez-shadow);
}
.card-header, .card-head { padding: .85rem 1.1rem; font-weight: 600; color: var(--ez-ink); background: transparent; border-bottom: 1px solid var(--ez-border); }
.card-body, .card-bodyx { flex: 1 1 auto; padding: 1.1rem; }
.card-footer { padding: .8rem 1.1rem; border-top: 1px solid var(--ez-border); background: var(--ez-surface-2); border-radius: 0 0 var(--ez-radius) var(--ez-radius); }
.card-title { margin-bottom: .5rem; font-size: 1rem; font-weight: 600; }
.card-text:last-child { margin-bottom: 0; }
.card-img-top { width: 100%; border-radius: var(--ez-radius) var(--ez-radius) 0 0; }
.stm-card.p-4, .stm-card.p-3, .stm-card.p-2 { display: block; }

/* ---------- Badges / alerts ---------- */
.badge { display: inline-block; padding: .28em .65em; font-size: .72rem; font-weight: 600; line-height: 1.1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: 999px; background: var(--ez-muted); }
.badge.rounded-pill { border-radius: 999px; }
.text-bg-primary { color: var(--ez-primary-600) !important; background: var(--ez-primary-50) !important; }
.text-bg-secondary { color: #475569 !important; background: #eef2f6 !important; }
.text-bg-success { color: #166534 !important; background: #dcfce7 !important; }
.text-bg-danger { color: #991b1b !important; background: #fee2e2 !important; }
.text-bg-warning { color: #92400e !important; background: #fef3c7 !important; }
.text-bg-info { color: #075985 !important; background: #e0f2fe !important; }
.text-bg-light { color: var(--ez-text) !important; background: var(--ez-surface-2) !important; border: 1px solid var(--ez-border); }
.text-bg-dark { color: #fff !important; background: #0f172a !important; }
:root[data-theme="dark"] .text-bg-secondary { color: #cbd5e1 !important; background: #1f2b45 !important; }
:root[data-theme="dark"] .text-bg-success { color: #86efac !important; background: rgba(22,163,74,.18) !important; }
:root[data-theme="dark"] .text-bg-danger { color: #fca5a5 !important; background: rgba(220,38,38,.2) !important; }
:root[data-theme="dark"] .text-bg-warning { color: #fcd34d !important; background: rgba(245,158,11,.18) !important; }
:root[data-theme="dark"] .text-bg-info { color: #7dd3fc !important; background: rgba(14,165,233,.18) !important; }
.badge.bg-primary, .badge.bg-success, .badge.bg-danger, .badge.bg-warning, .badge.bg-info, .badge.bg-secondary { color: #fff; }
.badge.bg-warning { color: #1f2937; }
.alert { position: relative; padding: .8rem 1rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: var(--ez-radius-sm); }
.alert-primary, .alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info { background: #f0f9ff; border-color: #bae6fd; color: #075985; }
.alert-light, .alert-secondary { background: var(--ez-surface-2); border-color: var(--ez-border); color: var(--ez-text); }
.alert-dismissible { padding-right: 3rem; }
.alert-dismissible .btn-close { position: absolute; top: .55rem; right: .6rem; }
.alert-link { font-weight: 600; text-decoration: underline; }
:root[data-theme="dark"] .alert-primary, :root[data-theme="dark"] .alert-success { background: rgba(22,163,74,.12); border-color: rgba(22,163,74,.35); color: #86efac; }
:root[data-theme="dark"] .alert-danger { background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.35); color: #fca5a5; }
:root[data-theme="dark"] .alert-warning { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); color: #fcd34d; }
:root[data-theme="dark"] .alert-info { background: rgba(14,165,233,.12); border-color: rgba(14,165,233,.35); color: #7dd3fc; }

/* ---------- Tables ---------- */
.table { width: 100%; margin-bottom: 1rem; color: var(--ez-text); border-collapse: collapse; }
.table > :not(caption) > * > * { padding: .7rem .85rem; border-bottom: 1px solid var(--ez-border); background: transparent; }
.table > thead > tr > th, .table th { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ez-muted); background: var(--ez-surface-2) !important; text-align: left; white-space: nowrap; }
.table > tbody > tr:last-child > * { border-bottom: 0; }
.table-sm > :not(caption) > * > * { padding: .4rem .6rem; }
.table-hover > tbody > tr:hover > * { background: var(--ez-primary-50); }
.table-striped > tbody > tr:nth-of-type(odd) > * { background: var(--ez-surface-2); }
.table-bordered > :not(caption) > * > * { border: 1px solid var(--ez-border); }
.table-borderless > :not(caption) > * > * { border: 0; }
.table-responsive, .stm-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive::-webkit-scrollbar, .stm-table-wrap::-webkit-scrollbar { height: 8px; }
.table-responsive::-webkit-scrollbar-thumb, .stm-table-wrap::-webkit-scrollbar-thumb { background: var(--ez-border); border-radius: 8px; }
.table-light > * > * { background: var(--ez-surface-2) !important; }
.table-active, .table-active > * { background: var(--ez-primary-50) !important; }
caption { padding: .5rem 0; color: var(--ez-muted); text-align: left; caption-side: bottom; }

/* DataTables (v2) — theme only the visual parts */
.dt-container { width: 100%; font-size: .85rem; }
.dt-container .dt-layout-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin: .5rem 0; }
.dt-container .dt-layout-row.dt-layout-table { display: block; }
.dt-container .dt-layout-cell { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dt-container .dt-layout-end { margin-left: auto; }
.dt-container .dt-search input, .dt-container .dt-length select { padding: .35rem .6rem; border: 1px solid var(--ez-border); border-radius: 7px; background: var(--ez-surface); color: var(--ez-ink); font-size: .82rem; }
.dt-container .dt-search input:focus { border-color: var(--ez-primary); outline: 0; box-shadow: 0 0 0 3px rgba(18,87,207,.15); }
.dt-container .dt-info { color: var(--ez-muted); font-size: .8rem; }
.dt-container .dt-paging .dt-paging-button, .dt-container .page-link { display: inline-block; min-width: 2rem; margin: 0 2px; padding: .3rem .6rem; border: 1px solid var(--ez-border); border-radius: 7px; background: var(--ez-surface); color: var(--ez-text) !important; font-size: .8rem; text-align: center; cursor: pointer; }
.dt-container .dt-paging .dt-paging-button.current, .dt-container .dt-paging .dt-paging-button.current:hover { background: var(--ez-primary) !important; border-color: var(--ez-primary); color: #fff !important; }
.dt-container .dt-paging .dt-paging-button:hover:not(.current):not(.disabled) { background: var(--ez-primary-50) !important; }
.dt-container .dt-paging .dt-paging-button.disabled { opacity: .45; cursor: default; }
table.dataTable { width: 100% !important; border-collapse: collapse; }
table.dataTable thead th { cursor: pointer; }
table.dataTable thead th.dt-orderable-asc, table.dataTable thead th.dt-orderable-desc { position: relative; }
table.dataTable td.dt-control::before { content: "+"; display: inline-block; width: 1.2rem; height: 1.2rem; line-height: 1.1rem; text-align: center; border-radius: 50%; background: var(--ez-primary); color: #fff; cursor: pointer; }
table.dataTable tr.dtr-expanded td.dt-control::before { content: "−"; background: var(--ez-danger); }
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before { content: "+"; display: inline-block; width: 1.2rem; height: 1.2rem; margin-right: .4rem; line-height: 1.1rem; text-align: center; border-radius: 50%; background: var(--ez-primary); color: #fff; }
.dt-buttons { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.dt-button, .stm-export-btn, .stm-columns-btn { padding: .32rem .7rem; border: 1px solid var(--ez-border); border-radius: 7px; background: var(--ez-surface); color: var(--ez-text); font-size: .78rem; font-weight: 500; cursor: pointer; }
.dt-button:hover { background: var(--ez-primary-50); border-color: var(--ez-primary); }
div.dt-button-collection { position: absolute; z-index: 2000; padding: .4rem; background: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: var(--ez-radius-sm); box-shadow: var(--ez-shadow-lg); }
div.dt-button-collection .dt-button { display: block; width: 100%; margin: 2px 0; text-align: left; }
div.dt-button-collection .dt-button.dt-button-active { background: var(--ez-primary-50); }
.dtr-details { list-style: none; padding: 0; margin: 0; }

/* ---------- Nav / tabs / pills ---------- */
.nav { display: flex; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.nav-link { display: block; padding: .5rem .9rem; color: var(--ez-text); text-decoration: none; background: none; border: 0; cursor: pointer; font-size: .875rem; }
.nav-link:hover { color: var(--ez-primary); }
.nav-tabs { border-bottom: 1px solid var(--ez-border); gap: .15rem; }
.nav-tabs .nav-link { margin-bottom: -1px; border: 1px solid transparent; border-radius: var(--ez-radius-sm) var(--ez-radius-sm) 0 0; font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--ez-primary-600); background: var(--ez-surface); border-color: var(--ez-border) var(--ez-border) var(--ez-surface); }
.nav-pills { gap: .25rem; }
.nav-pills .nav-link { border-radius: var(--ez-radius-sm); }
.nav-pills .nav-link.active { color: #fff; background: var(--ez-primary); }
.tab-content > .tab-pane { display: none; } .tab-content > .active { display: block; }
.breadcrumb { display: flex; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; font-size: .82rem; color: var(--ez-muted); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; padding: 0 .5rem; color: #94a3b8; }
.breadcrumb-item.active { color: var(--ez-ink); font-weight: 500; }
.pagination { display: flex; gap: .25rem; padding: 0; list-style: none; }
.page-link { display: block; padding: .35rem .7rem; border: 1px solid var(--ez-border); border-radius: 7px; background: var(--ez-surface); color: var(--ez-text); }
.page-item.active .page-link { background: var(--ez-primary); border-color: var(--ez-primary); color: #fff; }
.page-item.disabled .page-link { opacity: .5; pointer-events: none; }
.list-group { display: flex; flex-direction: column; padding: 0; margin: 0; list-style: none; border-radius: var(--ez-radius-sm); }
.list-group-item { padding: .65rem 1rem; background: var(--ez-surface); border: 1px solid var(--ez-border); margin-top: -1px; color: var(--ez-text); }
.list-group-item:first-child { border-radius: var(--ez-radius-sm) var(--ez-radius-sm) 0 0; margin-top: 0; }
.list-group-item:last-child { border-radius: 0 0 var(--ez-radius-sm) var(--ez-radius-sm); }
.list-group-item.active { background: var(--ez-primary-50); border-color: var(--ez-primary); color: var(--ez-primary-600); }
.list-group-item-action:hover { background: var(--ez-surface-2); }
.list-group-flush > .list-group-item { border-width: 0 0 1px; border-radius: 0; }

/* ---------- Progress / spinner ---------- */
.progress { display: flex; height: .55rem; overflow: hidden; background: var(--ez-border); border-radius: 999px; }
.progress-bar { display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: #fff; text-align: center; white-space: nowrap; background: var(--ez-primary); transition: width .4s ease; font-size: .65rem; }
.progress-bar-striped { background-image: linear-gradient(45deg, rgba(255,255,255,.18) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.18) 75%, transparent 75%); background-size: 1rem 1rem; }
.progress-bar-animated { animation: ez-stripes 1s linear infinite; }
@keyframes ez-stripes { to { background-position: 1rem 0; } }
.spinner-border, .spinner-grow { display: inline-block; width: 1.8rem; height: 1.8rem; vertical-align: -.125em; border: .2em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ez-spin .7s linear infinite; }
.spinner-border-sm { width: 1rem; height: 1rem; border-width: .15em; }
.spinner-grow { background: currentColor; border: 0; animation: ez-grow .75s linear infinite; }
@keyframes ez-spin { to { transform: rotate(360deg); } }
@keyframes ez-grow { 0% { transform: scale(0); } 50% { opacity: 1; transform: none; } }

/* ---------- Collapse / dropdown / modal / offcanvas / tooltip ---------- */
.collapse:not(.show) { display: none; }
.collapsing { height: 0; overflow: hidden; transition: height .25s ease; }
.fade { transition: opacity .15s linear; } .fade:not(.show) { opacity: 0; }
.dropdown, .dropup { position: relative; }
.dropdown-toggle::after { content: ""; display: inline-block; margin-left: .4em; vertical-align: .15em; border-top: .3em solid; border-right: .3em solid transparent; border-left: .3em solid transparent; }
.dropdown-menu {
  position: absolute; z-index: 1050; display: none; min-width: 11rem; padding: .35rem; margin: .25rem 0 0; list-style: none; font-size: .85rem;
  background: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: var(--ez-radius-sm); box-shadow: var(--ez-shadow-lg);
}
.dropdown-menu.show { display: block; } .dropdown-menu-end { right: 0; left: auto; }
.dropdown-item { display: flex; align-items: center; width: 100%; padding: .45rem .7rem; color: var(--ez-text); background: none; border: 0; border-radius: 6px; text-align: left; white-space: nowrap; cursor: pointer; text-decoration: none; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--ez-primary-50); color: var(--ez-primary-600); }
.dropdown-item.active { background: var(--ez-primary); color: #fff; }
.dropdown-divider { height: 0; margin: .35rem 0; border-top: 1px solid var(--ez-border); }
.dropdown-header { padding: .4rem .7rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ez-muted); }

.modal { position: fixed; inset: 0; z-index: 1055; display: none; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0; }
.modal.show { display: block; }
.modal-dialog { position: relative; width: auto; max-width: 540px; margin: 1.75rem auto; pointer-events: none; }
.modal.fade .modal-dialog { transition: transform .25s ease-out; transform: translateY(-30px); }
.modal.show .modal-dialog { transform: none; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 3.5rem); }
.modal-dialog-scrollable .modal-content { max-height: calc(100vh - 3.5rem); } .modal-dialog-scrollable .modal-body { overflow-y: auto; }
.modal-sm { max-width: 320px; } .modal-lg { max-width: 840px; } .modal-xl { max-width: 1140px; }
.modal-fullscreen { max-width: none; margin: 0; height: 100%; } .modal-fullscreen .modal-content { height: 100%; border-radius: 0; }
.modal-content { position: relative; display: flex; flex-direction: column; width: 100%; pointer-events: auto; background: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: 16px; box-shadow: var(--ez-shadow-lg); outline: 0; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--ez-border); }
.modal-title { margin: 0; font-size: 1.05rem; font-weight: 600; }
.modal-body { position: relative; flex: 1 1 auto; padding: 1.25rem; }
.modal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; padding: .85rem 1.25rem; border-top: 1px solid var(--ez-border); }
.modal-backdrop { position: fixed; inset: 0; z-index: 1050; width: 100vw; height: 100vh; background: #0f172a; }
.modal-backdrop.fade { opacity: 0; } .modal-backdrop.show { opacity: .5; }
body.modal-open { overflow: hidden; }

.offcanvas { position: fixed; bottom: 0; z-index: 1045; display: flex; flex-direction: column; max-width: 100%; visibility: hidden; background: var(--ez-surface); box-shadow: var(--ez-shadow-lg); transition: transform .3s ease-in-out; }
.offcanvas.showing, .offcanvas.show:not(.hiding) { transform: none; } .offcanvas.showing, .offcanvas.show, .offcanvas.hiding { visibility: visible; }
.offcanvas-start { top: 0; left: 0; width: 400px; transform: translateX(-100%); }
.offcanvas-end { top: 0; right: 0; width: 440px; transform: translateX(100%); }
.offcanvas-top { top: 0; left: 0; right: 0; height: 30vh; transform: translateY(-100%); }
.offcanvas-bottom { left: 0; right: 0; height: 30vh; max-height: 100%; transform: translateY(100%); }
.offcanvas-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--ez-border); }
.offcanvas-title { margin: 0; font-size: 1.05rem; font-weight: 600; }
.offcanvas-body { flex-grow: 1; padding: 1.25rem; overflow-y: auto; }
.offcanvas-backdrop { position: fixed; inset: 0; z-index: 1040; background: #0f172a; }
.offcanvas-backdrop.fade { opacity: 0; } .offcanvas-backdrop.show { opacity: .5; }

.tooltip { position: absolute; z-index: 1080; display: block; font-size: .75rem; opacity: 0; }
.tooltip.show { opacity: 1; }
.tooltip-inner { max-width: 240px; padding: .3rem .6rem; color: #fff; text-align: center; background: #0f172a; border-radius: 6px; }
.tooltip .tooltip-arrow { display: none; }
.popover { position: absolute; z-index: 1070; max-width: 280px; background: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: var(--ez-radius-sm); box-shadow: var(--ez-shadow-lg); }
.popover-header { padding: .5rem .8rem; font-weight: 600; border-bottom: 1px solid var(--ez-border); } .popover-body { padding: .6rem .8rem; } .popover-arrow { display: none; }
.toast-container { position: fixed; z-index: 1090; padding: 1rem; }
.toast { width: 320px; background: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: var(--ez-radius-sm); box-shadow: var(--ez-shadow-lg); }
.toast:not(.show) { display: none; } .toast-body { padding: .75rem; }
.accordion-item { border: 1px solid var(--ez-border); background: var(--ez-surface); } .accordion-item:first-child { border-radius: var(--ez-radius-sm) var(--ez-radius-sm) 0 0; } .accordion-item:last-child { border-radius: 0 0 var(--ez-radius-sm) var(--ez-radius-sm); }
.accordion-button { display: flex; align-items: center; width: 100%; padding: .85rem 1rem; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ez-ink); }
.accordion-button:not(.collapsed) { color: var(--ez-primary-600); background: var(--ez-primary-50); }
.accordion-body { padding: 1rem; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }

/* ---------- App shell (admin) — PharmaLy-style left sidebar + header ---------- */
.stm-admin-shell { display: flex; min-height: 100vh; }
.stm-sidebar {
  width: 260px; flex-shrink: 0; height: 100vh; position: sticky; top: 0; overflow-y: auto; z-index: 1030;
  background: var(--ez-sidebar-bg); color: var(--ez-text); border-right: 1px solid var(--ez-border);
  transition: transform .25s ease; scrollbar-width: thin; scrollbar-color: var(--ez-border) transparent;
}
.stm-sidebar-brand { padding: 1.1rem 1.15rem; border-bottom: 1px solid var(--ez-border); color: var(--ez-ink); font-size: 1.05rem; }
.stm-sidebar-brand img { height: 34px; width: auto; }
.stm-sidebar-brand small { display: block; font-size: .7rem; font-weight: 500; color: var(--ez-muted); letter-spacing: .02em; }
.stm-sidebar .nav-pills { padding-block: .6rem; }
.stm-nav-link { display: flex; align-items: center; gap: .65rem; padding: .55rem .8rem; border-radius: 10px; color: var(--ez-text) !important; font-size: .87rem; font-weight: 500; }
.stm-nav-link .bi { font-size: 1.05rem; color: var(--ez-muted); }
.stm-nav-link:hover { background: var(--ez-surface-2); color: var(--ez-ink) !important; }
.stm-nav-link.active { background: var(--ez-primary-50); color: var(--ez-primary-600) !important; }
.stm-nav-link.active .bi { color: var(--ez-primary); }
.stm-submenu-caret { transition: transform .2s ease; font-size: .7rem; }
.stm-nav-link.collapsed .stm-submenu-caret { transform: rotate(-90deg); }
.stm-admin-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.stm-topbar { position: sticky; top: 0; z-index: 1020; height: 64px; background: var(--ez-surface); border-bottom: 1px solid var(--ez-border); }
.stm-topbar h1 { font-size: 1.05rem; }
.stm-admin-content { flex: 1 1 auto; }
.ez-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.ez-page-head h2 { margin: 0; font-size: 1.35rem; }
@media (max-width: 991.98px) {
  .stm-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); box-shadow: var(--ez-shadow-lg); }
  .stm-sidebar.stm-sidebar-open { transform: none; }
}

/* ---------- Stat cards / retailer shell / misc component hooks ---------- */
.stm-stat-card { position: relative; overflow: hidden; background: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: var(--ez-radius); box-shadow: var(--ez-shadow); transition: transform .2s, box-shadow .2s; }
.stm-stat-card:hover { transform: translateY(-3px); box-shadow: var(--ez-shadow-lg); }
.stm-stat-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--stm-accent, var(--ez-primary)); }
.stm-stat-label { color: var(--ez-muted); font-size: .78rem; font-weight: 500; }
.stm-stat-value { color: var(--ez-ink); font-weight: 700; }
.stm-stat-card--success { --stm-accent: var(--ez-success); } .stm-stat-card--danger { --stm-accent: var(--ez-danger); } .stm-stat-card--warning { --stm-accent: var(--ez-warning); }
.stm-chart-card { background: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: var(--ez-radius); box-shadow: var(--ez-shadow); padding: 1.1rem; }
.stm-retailer-header { display: flex; background: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: var(--ez-radius); box-shadow: var(--ez-shadow); }
.stm-retailer-header img { height: 36px; width: auto; }
.stm-retailer-header h2 { margin: 0; }
.stm-retailer-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; font-size: .84rem; font-weight: 500; color: #fff; background: var(--ez-primary); border: 1px solid var(--ez-primary); border-radius: var(--ez-radius-sm); cursor: pointer; text-decoration: none; transition: background .15s; }
.stm-retailer-btn:hover { background: var(--ez-primary-600); color: #fff; }
.stm-doc-preview { border: 1px solid var(--ez-border); border-radius: var(--ez-radius-sm); background: var(--ez-surface-2); max-width: 100%; }
.stm-top-user-row { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--ez-border); }
.stm-top-user-rank { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ez-primary-50); color: var(--ez-primary-600); font-weight: 700; font-size: .75rem; }
.stm-row-actions-menu { min-width: 9rem; }
.stm-fade-in, .stm-form-fade-in-up, .stm-fade-in-up, .stm-anim-row { animation: ez-fade-up .35s ease both; }
.stm-delay-1 { animation-delay: .05s; } .stm-delay-2 { animation-delay: .1s; } .stm-delay-3 { animation-delay: .15s; } .stm-delay-4 { animation-delay: .2s; }
@keyframes ez-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.stm-video-frame-wrap { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--ez-radius-sm); background: #000; }
.stm-video-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stm-live-reload-banner { position: fixed; bottom: 1rem; right: 1rem; z-index: 2000; padding: .6rem 1rem; color: #fff; background: #0f172a; border-radius: var(--ez-radius-sm); box-shadow: var(--ez-shadow-lg); }

/* ---------- Auth pages ---------- */
.stm-auth-body { background: radial-gradient(1200px 600px at 10% -10%, var(--ez-primary-50), transparent 60%), var(--ez-bg); }
.stm-auth-card { width: 100%; max-width: 440px; border-radius: 18px; box-shadow: var(--ez-shadow-lg); }
.ez-auth-logo { height: 52px; width: auto; }

/* ---------- Select2 / flatpickr / SweetAlert harmonising ---------- */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single { height: auto; padding: .35rem .6rem; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.5; color: var(--ez-ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }
.select2-dropdown { border-color: var(--ez-border); border-radius: var(--ez-radius-sm); background: var(--ez-surface); }
.swal2-popup { border-radius: 16px !important; font-family: var(--ez-font) !important; }
.swal2-styled.swal2-confirm { background: var(--ez-primary) !important; border-radius: 8px !important; }

/* ---------- Dark-mode safety for inline-white legacy blocks ---------- */
:root[data-theme="dark"] .bg-white, :root[data-theme="dark"] .bg-light { color: var(--ez-text); }
:root[data-theme="dark"] .dt-container .dt-search input, :root[data-theme="dark"] .dt-container .dt-length select { background: var(--ez-surface-2); }

/* ---------- Print ---------- */
@media print {
  .stm-sidebar, .stm-topbar, .no-print, .btn, .dt-buttons { display: none !important; }
  body { background: #fff; }
  .card, .stm-card { box-shadow: none; }
}

/* ---------- Logo (light/dark variants from /new_assets) ---------- */
.ez-logo-dark { display: none; }
:root[data-theme="dark"] .ez-logo-light { display: none; }
:root[data-theme="dark"] .ez-logo-dark { display: inline-block; }
.stm-sidebar-brand img { height: 40px; width: auto; }

/* =====================================================================
   Common dashboard shell extras (retailer home, wallet chip, bell,
   page-header cleanup for pages that moved into the shell)
   ===================================================================== */
.ez-i-blue   { background: #e3edff; color: #1257cf; }
.ez-i-green  { background: #dcf6ea; color: #0c8a56; }
.ez-i-orange { background: #fff0d9; color: #c7790a; }
.ez-i-purple { background: #eee7ff; color: #6a43d6; }
.ez-i-sky    { background: #e0f4ff; color: #0a84c1; }
.ez-i-red    { background: #ffe5e5; color: #d03636; }
[data-theme="dark"] .ez-i-blue   { background: rgba(18,87,207,.22); color: #8db6ff; }
[data-theme="dark"] .ez-i-green  { background: rgba(18,168,107,.2);  color: #54dba2; }
[data-theme="dark"] .ez-i-orange { background: rgba(245,158,11,.2);  color: #fbbf5a; }
[data-theme="dark"] .ez-i-purple { background: rgba(124,92,230,.22); color: #b9a4ff; }
[data-theme="dark"] .ez-i-sky    { background: rgba(14,165,233,.2);  color: #6cc9f5; }
[data-theme="dark"] .ez-i-red    { background: rgba(220,38,38,.2);   color: #ff9a9a; }

.ez-welcome { display: flex; gap: 1.25rem; justify-content: space-between; align-items: stretch; flex-wrap: wrap;
  padding: 1.6rem 1.75rem; border-radius: 20px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #102340 0%, #1257cf 100%); box-shadow: var(--ez-shadow-lg); }
.ez-welcome::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 92% -10%, rgba(18,168,107,.45), transparent 50%), radial-gradient(circle at 0% 120%, rgba(255,255,255,.12), transparent 45%); }
.ez-welcome > * { position: relative; z-index: 1; }
.ez-welcome-main { flex: 1 1 340px; }
.ez-welcome-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; font-size: .75rem; font-weight: 600;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; }
.ez-welcome-title { font-size: 1.7rem; font-weight: 800; margin: .7rem 0 .25rem; color: #fff; }
.ez-welcome-sub { margin: 0; color: rgba(255,255,255,.8); max-width: 520px; font-size: .92rem; }
.ez-welcome-wallet { flex: 0 0 auto; min-width: 230px; display: flex; flex-direction: column; justify-content: center; gap: .15rem;
  padding: 1.1rem 1.3rem; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(4px); }
.ez-welcome-wallet span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.75); }
.ez-welcome-wallet strong { font-size: 2rem; font-weight: 800; line-height: 1.15; }
.ez-welcome-wallet a { color: #fff; font-size: .82rem; text-decoration: none; opacity: .9; }
.ez-welcome-wallet a:hover { text-decoration: underline; }
.ez-welcome .btn-outline-light:hover { color: #102340; }

.ez-kpi, .ez-action { display: flex; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; height: 100%; }
.ez-kpi { align-items: center; gap: .85rem; padding: 1rem 1.1rem; }
.ez-kpi:hover, .ez-action:hover, .ez-tile:hover { transform: translateY(-3px); box-shadow: var(--ez-shadow-lg); color: inherit; }
.ez-kpi-ico { width: 46px; height: 46px; flex: 0 0 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 1.3rem; }
.ez-kpi-body { display: flex; flex-direction: column; min-width: 0; }
.ez-kpi-num { font-size: 1.55rem; font-weight: 800; color: var(--ez-ink); line-height: 1.1; }
.ez-kpi-label { font-size: .8rem; color: var(--ez-muted); font-weight: 600; }
.ez-action { flex-direction: column; align-items: flex-start; gap: .15rem; padding: 1rem; }
.ez-action .ez-kpi-ico { margin-bottom: .55rem; }
.ez-action-t { font-weight: 700; color: var(--ez-ink); font-size: .95rem; }
.ez-action-s { font-size: .78rem; color: var(--ez-muted); }

.ez-block { background: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: 18px; padding: 1.2rem 1.25rem; box-shadow: var(--ez-shadow); }
.ez-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ez-block-head h2 { font-size: 1.05rem; font-weight: 800; margin: 0; color: var(--ez-ink); }
.ez-block-head span, .ez-viewall { font-size: .8rem; color: var(--ez-muted); }
.ez-viewall { color: var(--ez-primary); font-weight: 600; text-decoration: none; }
.ez-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .85rem; }
.ez-tile { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; padding: .95rem .6rem;
  text-decoration: none; background: var(--ez-surface-2); border: 1px solid var(--ez-border); border-radius: 16px;
  transition: transform .18s ease, box-shadow .18s ease; }
.ez-tile-ico { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; font-size: 1.5rem; overflow: hidden; }
.ez-tile-ico img { max-width: 34px; max-height: 34px; object-fit: contain; }
.ez-emoji { font-size: 1.5rem; line-height: 1; }
.ez-tile-t { font-size: .82rem; font-weight: 600; color: var(--ez-ink); line-height: 1.25; }

.ez-news { margin-bottom: 1rem; padding: .6rem 1rem; border-radius: 12px; background: var(--ez-ink); color: #fff; overflow: hidden; }

.ez-wallet-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: .85rem; color: var(--ez-ink); background: var(--ez-primary-50); border: 1px solid transparent; }
.ez-wallet-chip:hover { border-color: var(--ez-primary); }
.ez-wallet-chip i { color: var(--ez-primary); }
.ez-wallet-add { font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; background: var(--ez-primary); color: #fff; }
.ez-fund-balance { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; border-radius: 14px; background: var(--ez-primary-50); }
.ez-fund-balance strong { font-size: 1.3rem; color: var(--ez-ink); }
.ez-notif-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--ez-danger); color: #fff; font-size: .65rem; line-height: 18px; text-align: center; font-weight: 700; }
.ez-notif-menu { width: 330px; max-width: 92vw; max-height: 420px; overflow-y: auto; border-radius: 14px; }
.ez-notif-item { display: block; padding: .65rem 1rem; border-bottom: 1px solid var(--ez-border); text-decoration: none; color: inherit; }
.ez-notif-item.unread { background: var(--ez-primary-50); }
.ez-notif-item:hover { background: var(--ez-surface-2); }

/* Pages that moved into the shell keep their own title bar; the logo/home button are now in the shell. */
.stm-admin-content .stm-retailer-header { background: transparent; border: 0; box-shadow: none; padding-left: 0 !important; padding-right: 0 !important; padding-top: 0 !important; }
.stm-admin-content .stm-retailer-header > div:first-child img { display: none; }
.stm-admin-content > .container, .stm-admin-content > .container-fluid { max-width: 100%; padding-left: 0; padding-right: 0; }

@media (max-width: 575.98px) {
  .ez-welcome { padding: 1.2rem; border-radius: 16px; }
  .ez-welcome-title { font-size: 1.35rem; }
  .ez-welcome-wallet { width: 100%; }
  .ez-tiles { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}

.ez-kpi { flex-direction: row; }
.btn-outline-light { --b-fg: #fff; --b-bd: rgba(255,255,255,.55); --b-hbg: #fff; --b-hfg: var(--ez-ink); --b-hbd: #fff; }
.ez-welcome .btn-light { --b-bg: #fff; --b-fg: var(--ez-primary-600); --b-bd: #fff; --b-hbg: #eaf4ff; }
.stm-sidebar .stm-nav-link.active { background: var(--ez-primary); color: #fff !important; box-shadow: 0 6px 14px rgba(18,87,207,.28); }
.stm-sidebar .stm-nav-link.active .bi { color: #fff; }

/* =====================================================================
   PharmaLy-style shell: dark brand sidebar, search topbar, dashboard cards
   ===================================================================== */
.stm-sidebar { background: #102340; color: #c7d3ea; border-right: 0; }
.stm-sidebar .stm-sidebar-brand { border-bottom: 1px solid rgba(255,255,255,.08); }
.stm-sidebar .ez-logo-light { display: none !important; }
.stm-sidebar .ez-logo-dark { display: block !important; }
.stm-sidebar { scrollbar-color: rgba(255,255,255,.2) transparent; padding-bottom: 0; }
.stm-sidebar .stm-nav-link { color: #c7d3ea !important; }
.stm-sidebar .stm-nav-link .bi { color: #8fa3c7; }
.stm-sidebar .stm-nav-link:hover { background: rgba(255,255,255,.07); color: #fff !important; }
.stm-sidebar .stm-nav-link:hover .bi { color: #fff; }
.stm-sidebar .stm-nav-link.active, .stm-sidebar .nav-pills .nav-link.active { background: rgba(18,168,107,.2); color: #5ee0a8 !important; box-shadow: none; }
.stm-sidebar .stm-nav-link.active .bi { color: #5ee0a8; }
.stm-sidebar .collapse > .nav .stm-nav-link { font-size: .84rem; padding: .45rem .8rem; }
.ez-side-user { position: sticky; bottom: 0; margin-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .85rem 1rem; background: #0c1b33; border-top: 1px solid rgba(255,255,255,.08); }
.ez-side-user-main { display: flex; align-items: center; gap: .65rem; min-width: 0; text-decoration: none; color: #fff; }
.ez-side-user-main img, .ez-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; object-fit: cover; }
.ez-avatar { display: inline-flex; align-items: center; justify-content: center; background: var(--ez-success); color: #fff; font-weight: 700; }
.ez-side-user strong { font-size: .84rem; color: #fff; }
.ez-side-user small { font-size: .72rem; color: #8fa3c7; }
.ez-side-logout { color: #8fa3c7; font-size: 1.15rem; padding: .3rem; border-radius: 8px; }
.ez-side-logout:hover { color: #fff; background: rgba(255,255,255,.08); }

.stm-topbar { gap: 1rem; }
.ez-search { position: relative; flex: 1 1 auto; max-width: 420px; margin-left: auto; }
.ez-search > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ez-muted); font-size: .9rem; }
.ez-search input { width: 100%; height: 38px; padding: 0 .9rem 0 2.35rem; font-size: .85rem; color: var(--ez-text);
  background: var(--ez-surface-2); border: 1px solid var(--ez-border); border-radius: 10px; outline: 0; }
.ez-search input:focus { border-color: var(--ez-primary); box-shadow: 0 0 0 3px rgba(18,87,207,.12); background: var(--ez-surface); }
.ez-search-results { position: absolute; z-index: 1050; top: 44px; left: 0; right: 0; background: var(--ez-surface); border: 1px solid var(--ez-border);
  border-radius: 12px; box-shadow: var(--ez-shadow-lg); overflow: hidden; }
.ez-search-results a { display: flex; justify-content: space-between; gap: .75rem; padding: .6rem .9rem; text-decoration: none; color: var(--ez-ink); font-size: .85rem; }
.ez-search-results a:hover { background: var(--ez-primary-50); }
.ez-search-results small { color: var(--ez-muted); }

.stm-admin-content { background: var(--ez-bg); }
.ez-title-row { margin-bottom: 1rem; }
.ez-title { font-size: 1.75rem; font-weight: 800; margin: 0; color: var(--ez-ink); letter-spacing: -.01em; }
.ez-subtitle { margin: .2rem 0 0; color: var(--ez-muted); font-size: .95rem; }
.ez-panel { padding: 1.25rem 1.4rem; border-radius: 16px; }
.ez-panel-flush { padding: 0; overflow: hidden; }
.ez-panel-title { font-size: 1.05rem; font-weight: 700; color: var(--ez-ink); margin: 0 0 1rem; }
.ez-panel-sub { margin: -.7rem 0 1rem; font-size: .84rem; color: var(--ez-muted); }
.ez-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: 1.25rem 1.4rem .9rem; }
.ez-panel-head .ez-panel-title { margin-bottom: .25rem; }
.ez-panel-head .ez-panel-sub { margin: 0; }
.ez-panel > .ez-panel-head { padding: 0 0 .9rem; }
.ez-panel > .ez-tiles { margin-top: .25rem; }
.ez-qa { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; padding-bottom: .5rem; }
.ez-qa-item { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-decoration: none; color: var(--ez-ink); font-size: .8rem; font-weight: 500; text-align: center; transition: transform .15s ease; }
.ez-qa-item:hover { transform: translateY(-3px); color: var(--ez-ink); }
.ez-qa-ico { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: #fff; font-size: 1.25rem; box-shadow: 0 6px 14px rgba(15,23,42,.16); }

.ez-stat { padding: 1.1rem 1.2rem; border-radius: 16px; height: 100%; }
.ez-stat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.ez-stat-label { font-size: .88rem; color: var(--ez-muted); text-decoration: none; font-weight: 500; }
.ez-stat-num { font-size: 1.75rem; font-weight: 800; color: var(--ez-ink); line-height: 1.2; margin-top: .15rem; }
.ez-stat-ico { width: 42px; height: 42px; flex: 0 0 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.15rem; }
.ez-stat-sub { margin-top: .7rem; font-size: .78rem; min-height: 1.1rem; color: var(--ez-muted); }
.ez-stat-sub a { color: var(--ez-primary); text-decoration: none; font-weight: 600; }
.ez-tone-good { color: var(--ez-success); font-weight: 600; }
.ez-tone-warn { color: #d97706; font-weight: 600; }
.ez-tone-bad { color: var(--ez-danger); font-weight: 600; }
.ez-tone-muted { color: var(--ez-muted); }

.ez-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .9rem; margin-top: 1rem; font-size: .78rem; color: var(--ez-muted); }
.ez-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .35rem; }
.ez-legend b { color: var(--ez-ink); margin-left: .15rem; }
.ez-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ez-muted); font-weight: 600; background: transparent; border-top: 1px solid var(--ez-border); border-bottom: 1px solid var(--ez-border); padding: .7rem 1.4rem; }
.ez-table td { padding: .85rem 1.4rem; font-size: .88rem; border-bottom: 1px solid var(--ez-border); color: var(--ez-text); }
.ez-table tbody tr:last-child td { border-bottom: 0; }
.ez-pill { display: inline-block; padding: .12rem .65rem; font-size: .72rem; font-weight: 600; border-radius: 999px; border: 1px solid; }
.ez-pill-good { color: #0c8a56; background: #e7f8ef; border-color: #bfe9d3; }
.ez-pill-bad { color: #c93131; background: #fdeaea; border-color: #f6c6c6; }
.ez-list-row { display: flex; align-items: center; gap: .8rem; padding: .75rem 1.4rem; text-decoration: none; color: var(--ez-ink); border-top: 1px solid var(--ez-border); }
.ez-list-row:hover { background: var(--ez-surface-2); }
.ez-list-ico { width: 36px; height: 36px; flex: 0 0 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; overflow: hidden; }
.ez-list-ico img { max-width: 22px; max-height: 22px; object-fit: contain; }
.ez-list-t { flex: 1; font-size: .88rem; font-weight: 600; min-width: 0; }
.ez-list-row > .bi { color: var(--ez-muted); font-size: .8rem; }

@media (max-width: 991.98px) { .ez-qa { grid-template-columns: repeat(3, 1fr); row-gap: 1.2rem; } }
@media (max-width: 575.98px) { .ez-title { font-size: 1.4rem; } .ez-stat-num { font-size: 1.4rem; } .ez-panel { padding: 1rem; } }

@media (max-width: 767.98px) { .ez-search { display: none; } }
.stm-sidebar .stm-sidebar-brand { padding: .9rem 1rem; }
.stm-sidebar .stm-sidebar-brand a { background: #fff; border-radius: 12px; padding: .4rem .7rem; display: inline-flex; }
.stm-sidebar .ez-logo-light { display: block !important; }
.stm-sidebar .ez-logo-dark { display: none !important; }
.ez-donut-wrap { position: relative; height: 210px; }
.ez-donut-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .82rem; color: var(--ez-muted); }

/* =====================================================================
   PharmaLy reference theme (values taken from the saved reference build):
   primary #003032 · accent #c9f15a · page #f6f7f6 · border #e8eceb
   Everything below overrides earlier rules; change the tokens to re-colour.
   ===================================================================== */
:root {
  --ez-primary: #003032;
  --ez-primary-600: #00494c;
  --ez-primary-50: #eef6d8;
  --ez-accent: #c9f15a;
  --ez-accent-fg: #003032;
  --ez-ink: #172b2c;
  --ez-text: #3b4a4b;
  --ez-muted: #7a8998;
  --ez-bg: #f6f7f6;
  --ez-surface: #ffffff;
  --ez-surface-2: #f1f3f2;
  --ez-border: #e8eceb;
  --ez-success: #2dbe68;
  --ez-warning: #f59e0b;
  --ez-danger: #ef4444;
  --ez-info: #3b82f6;
  --ez-radius: 12px;
  --ez-shadow: none;
  --ez-shadow-lg: 0 10px 30px rgba(0, 48, 50, .12);
  --ez-sidebar-bg: #003032;
}
[data-theme="dark"] {
  --ez-ink: #eef3f2;
  --ez-text: #cfd9d8;
  --ez-muted: #8da0a0;
  --ez-bg: #061a1b;
  --ez-surface: #0c2a2c;
  --ez-surface-2: #11383a;
  --ez-border: #1b4244;
  --ez-primary-50: rgba(201, 241, 90, .12);
  --ez-primary: #c9f15a;
  --ez-primary-600: #b4dc48;
  --ez-sidebar-bg: #00191a;
}
body { background: var(--ez-bg); }
.btn-primary { --b-fg: #fff; --b-hfg: #fff; box-shadow: none; }
[data-theme="dark"] .btn-primary { --b-fg: #003032; --b-hfg: #003032; }

/* ---------- Sidebar ---------- */
.stm-sidebar { width: 256px; background: #003032; border-right: 0; color: rgba(203,213,225,.7); }
.stm-sidebar .stm-sidebar-brand { height: 64px; padding: 0 1rem; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); }
.stm-sidebar .stm-sidebar-brand a { background: transparent !important; padding: 0 !important; border-radius: 0; display: flex; align-items: center; gap: .75rem; text-decoration: none; width: 100%; }
.ez-brand-tile { width: 36px; height: 36px; flex: 0 0 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #c9f15a; }
.ez-brand-tile img { width: 24px; height: 24px; object-fit: contain; }
.ez-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.ez-brand-text b { color: #fff; font-size: 1.1rem; font-weight: 700; }
.ez-brand-text small { color: rgba(203,213,225,.5); font-size: .75rem; }
.stm-sidebar .nav-pills { padding: 1rem .75rem !important; gap: .25rem; }
.stm-sidebar .stm-nav-link { gap: .75rem; padding: .625rem .75rem; border-radius: 8px; font-size: .875rem; font-weight: 500; color: rgba(203,213,225,.7) !important; transition: all .2s ease; }
.stm-sidebar .stm-nav-link .bi { font-size: 1.1rem; color: rgba(203,213,225,.7); }
.stm-sidebar .stm-nav-link:hover { background: rgba(255,255,255,.05); color: #cbd5e1 !important; }
.stm-sidebar .stm-nav-link:hover .bi { color: #cbd5e1; }
.stm-sidebar .stm-nav-link.active, .stm-sidebar .nav-pills .nav-link.active { background: rgba(201,241,90,.1); color: #c9f15a !important; box-shadow: none; }
.stm-sidebar .stm-nav-link.active .bi { color: #c9f15a; }
.stm-sidebar .collapse > .nav { margin: .25rem 0 .25rem 1.4rem !important; padding: 0 0 0 .6rem !important; border-left: 1px solid rgba(255,255,255,.1); }
.stm-sidebar .collapse > .nav .stm-nav-link { padding: .45rem .75rem; font-size: .83rem; }
.stm-sidebar .stm-submenu-caret { color: rgba(203,213,225,.5); }
.ez-side-user { background: transparent; border-top: 1px solid rgba(255,255,255,.1); padding: 1rem; margin-top: 0; }
.ez-side-user-main { padding: .375rem; border-radius: 8px; flex: 1; transition: background .2s; }
.ez-side-user-main:hover { background: rgba(255,255,255,.05); }
.ez-avatar { background: rgba(201,241,90,.2); color: #c9f15a; }
.ez-side-user small { color: rgba(203,213,225,.5); }
.ez-side-logout { color: rgba(203,213,225,.4); }
.ez-side-logout:hover { color: #f87171; background: transparent; }

/* ---------- Topbar ---------- */
.stm-topbar { height: 64px; background: var(--ez-surface); border-bottom: 1px solid var(--ez-border); padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.stm-topbar .breadcrumb { --sep: "\F285"; font-size: .875rem; }
.stm-topbar .breadcrumb-item a { color: var(--ez-muted); text-decoration: none; }
.stm-topbar .breadcrumb-item a:hover { color: var(--ez-ink); }
.stm-topbar .breadcrumb-item.active { color: var(--ez-ink); font-weight: 500; }
.stm-topbar .breadcrumb-item + .breadcrumb-item::before { font-family: "bootstrap-icons"; content: "\F285"; font-size: .7rem; color: var(--ez-muted); padding-right: .35rem; }
.stm-topbar .btn-outline-secondary { border: 0; background: transparent; color: var(--ez-ink); padding: .5rem; border-radius: 8px; }
.stm-topbar .btn-outline-secondary:hover { background: var(--ez-surface-2); }
.stm-topbar .btn-outline-secondary .bi { font-size: 1.1rem; }
.ez-search { max-width: 448px; }
.ez-search input { background: rgba(241,243,242,.5); border-radius: 8px; height: 38px; }
.ez-search input:focus { border-color: #c9f15a; box-shadow: 0 0 0 3px rgba(201,241,90,.3); background: var(--ez-surface); }
.stm-topbar .dropdown > .btn.dropdown-toggle { border: 0; border-left: 1px solid var(--ez-border); border-radius: 0 8px 8px 0; padding-left: .85rem; }
.stm-topbar .dropdown > .btn.dropdown-toggle::after { display: none; }
.ez-notif-badge { top: 6px; right: 6px; min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; background: #ef4444; border-radius: 50%; }
.ez-wallet-chip { background: rgba(201,241,90,.35); color: #003032; }
.ez-wallet-chip i { color: #003032; }
.ez-wallet-add { background: #003032; color: #c9f15a; }
[data-theme="dark"] .ez-wallet-chip { background: rgba(201,241,90,.15); color: #c9f15a; }
[data-theme="dark"] .ez-wallet-chip i { color: #c9f15a; }
[data-theme="dark"] .ez-wallet-add { background: #c9f15a; color: #003032; }

/* ---------- Content ---------- */
.stm-admin-content { background: var(--ez-bg); padding: 1.5rem !important; }
@media (min-width: 1200px) { .stm-admin-content { padding: 2rem !important; } }
.stm-card, .card, .ez-panel, .ez-block { box-shadow: none; border-radius: 12px; border: 1px solid var(--ez-border); }
.ez-title { font-size: 1.5rem; font-weight: 700; letter-spacing: 0; }
.ez-subtitle { font-size: 1rem; margin-top: .25rem; }
.ez-panel { padding: 1.25rem; }
.ez-panel-title { font-size: 1rem; font-weight: 600; }
.ez-title-row { margin-bottom: 1.5rem; }

.ez-qa { grid-template-columns: repeat(6, 1fr); gap: .75rem; padding: 0; }
.ez-qa-item { padding: .75rem; border-radius: 12px; gap: .5rem; transition: background .2s; }
.ez-qa-item:hover { background: var(--ez-surface-2); transform: none; }
.ez-qa-ico { width: 44px; height: 44px; border-radius: 12px; box-shadow: none; transition: transform .2s; }
.ez-qa-item:hover .ez-qa-ico { transform: scale(1.05); }
.ez-qa-item span:last-child { font-size: .75rem; font-weight: 500; line-height: 1.2; }
.ez-stat { padding: 1.25rem; border-radius: 12px; transition: box-shadow .2s; }
.ez-stat:hover { box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ez-stat-label { font-size: .875rem; font-weight: 500; }
.ez-stat-num { font-size: 1.5rem; font-weight: 700; margin-top: .25rem; }
.ez-stat-ico { width: 44px; height: 44px; border-radius: 12px; }
.ez-stat-sub { margin-top: .75rem; font-size: .75rem; }
.ez-i-blue, .ez-i-sky { background: rgba(59,130,246,.1); color: #3b82f6; }
.ez-i-green { background: rgba(45,190,104,.1); color: #2dbe68; }
.ez-i-orange { background: rgba(245,158,11,.1); color: #f59e0b; }
.ez-i-purple { background: rgba(124,92,230,.1); color: #7c5ce6; }
.ez-i-red { background: rgba(239,68,68,.1); color: #ef4444; }
.ez-i-teal { background: rgba(0,48,50,.1); color: #003032; }
[data-theme="dark"] .ez-i-teal { background: rgba(201,241,90,.14); color: #c9f15a; }
.ez-pill-good { color: #1f9a52; background: rgba(45,190,104,.1); border-color: rgba(45,190,104,.35); }
.ez-pill-bad { color: #dc2626; background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.3); }
.ez-table thead th { background: transparent; }
.ez-viewall { color: var(--ez-primary); }
.ez-tone-good { color: var(--ez-success); }
@media (max-width: 991.98px) { .stm-sidebar { width: 280px; } .stm-topbar { padding-left: .75rem !important; padding-right: .75rem !important; } }
@media (max-width: 575.98px) { .ez-qa { grid-template-columns: repeat(3, 1fr); } .stm-admin-content { padding: .75rem !important; } }
:root { --ez-font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

/* sidebar: brand + footer fixed, only the menu scrolls */
.stm-sidebar { overflow: hidden; }
.stm-sidebar > .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin-bottom: 0 !important; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.stm-sidebar .stm-sidebar-brand, .stm-sidebar .ez-side-user { flex: 0 0 auto; }
.ez-side-user { position: static; }
.stm-sidebar > .nav { overflow-x: hidden; }

/* fix: menu must be one column that scrolls (bootstrap .nav wraps otherwise) */
.stm-sidebar > .nav, .stm-sidebar .nav-pills { flex-wrap: nowrap !important; flex-direction: column !important; }
.stm-sidebar > .nav > .nav-item { width: 100%; flex: 0 0 auto; }
.stm-sidebar .collapse > .nav { flex-wrap: nowrap !important; flex-direction: column !important; }

/* =====================================================================
   PharmaLy reference components (rf-*): cards, stat cards, tabs, tables, lists
   Mirrors the Tailwind classes of the reference dashboard 1:1.
   ===================================================================== */
.rf-space > * + * { margin-top: 1.5rem; }
.rf-card { background: var(--ez-surface); border: 1px solid var(--ez-border); border-radius: 12px; }
.rf-card.rf-p { padding: 1.25rem; }
.rf-card.rf-hide { overflow: hidden; }
.rf-card-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--ez-border); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.rf-h3 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--ez-ink); line-height: 1.5; }
.rf-sub { margin: .125rem 0 0; font-size: .875rem; color: var(--ez-muted); }
.rf-grid-qa { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.rf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.rf-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; }
.rf-qa { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .75rem; border-radius: 12px; text-decoration: none; transition: background .2s; }
.rf-qa:hover { background: var(--ez-surface-2); }
.rf-qa-ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; transition: transform .2s; }
.rf-qa:hover .rf-qa-ico { transform: scale(1.05); }
.rf-qa span.t { font-size: .75rem; font-weight: 500; color: var(--ez-ink); text-align: center; line-height: 1.25; }
.rf-stat { padding: 1.25rem; transition: box-shadow .2s; }
.rf-stat:hover { box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.rf-stat-row { display: flex; align-items: flex-start; justify-content: space-between; }
.rf-stat-label { margin: 0; font-size: .875rem; font-weight: 500; color: var(--ez-muted); }
.rf-stat-val { margin: .25rem 0 0; font-size: 1.5rem; font-weight: 700; color: var(--ez-ink); line-height: 2rem; }
.rf-stat-ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.rf-trend { display: flex; align-items: center; gap: .375rem; margin-top: .75rem; font-size: .75rem; }
.rf-trend b { font-weight: 500; }
.rf-trend .m { color: var(--ez-muted); }
.rf-up { color: var(--ez-success); } .rf-down { color: var(--ez-danger); } .rf-flat { color: var(--ez-muted); }
.rf-seg { display: inline-flex; gap: .25rem; padding: .25rem; background: var(--ez-surface-2); border-radius: 8px; }
.rf-seg button { border: 0; background: transparent; padding: .375rem .75rem; font-size: .75rem; font-weight: 500; color: var(--ez-muted); border-radius: 6px; cursor: pointer; transition: all .2s; }
.rf-seg button:hover { color: var(--ez-ink); }
.rf-seg button.on { background: var(--ez-surface); color: var(--ez-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.rf-chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.5rem; }
.rf-chart { position: relative; height: 18rem; }
.rf-chart.sm { height: 16rem; }
.rf-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1rem; margin-top: .75rem; font-size: .75rem; color: var(--ez-muted); }
.rf-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .35rem; vertical-align: 1px; }
.rf-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--ez-muted); pointer-events: none; }
.rf-table { width: 100%; border-collapse: collapse; }
.rf-table th { text-align: left; padding: .75rem 1.25rem; font-size: .75rem; font-weight: 500; color: var(--ez-muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--ez-border); white-space: nowrap; }
.rf-table td { padding: .875rem 1.25rem; font-size: .875rem; color: var(--ez-ink); border-bottom: 1px solid var(--ez-border); }
.rf-table tbody tr:last-child td { border-bottom: 0; }
.rf-table tbody tr:hover { background: rgba(241,243,242,.3); }
.rf-table .r { text-align: right; } .rf-table .c { text-align: center; }
.rf-table .fw5 { font-weight: 500; } .rf-table .fw6 { font-weight: 600; } .rf-table .mu { color: var(--ez-muted); }
.rf-pill { display: inline-flex; align-items: center; padding: .125rem .625rem; border-radius: 999px; font-size: .75rem; font-weight: 500; border: 1px solid transparent; }
.rf-pill.ok { color: var(--ez-success); background: rgba(45,190,104,.1); border-color: rgba(45,190,104,.2); }
.rf-pill.warn { color: var(--ez-warning); background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.2); }
.rf-pill.bad { color: var(--ez-danger); background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.2); }
.rf-badge { display: inline-flex; padding: .125rem .5rem; border-radius: 4px; font-size: .75rem; font-weight: 500; }
.rf-badge.ok { color: var(--ez-success); background: rgba(45,190,104,.1); }
.rf-badge.warn { color: var(--ez-warning); background: rgba(245,158,11,.1); }
.rf-badge.bad { color: var(--ez-danger); background: rgba(239,68,68,.1); }
.rf-dots { border: 0; background: transparent; color: var(--ez-muted); padding: .375rem; border-radius: 8px; line-height: 1; }
.rf-dots:hover { background: var(--ez-surface-2); color: var(--ez-ink); }
.rf-list > * + * { border-top: 1px solid var(--ez-border); }
.rf-row { display: flex; align-items: center; gap: 1rem; padding: .875rem 1.25rem; text-decoration: none; color: inherit; transition: background .2s; }
.rf-row:hover { background: rgba(241,243,242,.3); color: inherit; }
.rf-rank { width: 1.25rem; flex: 0 0 1.25rem; font-size: .75rem; font-weight: 500; color: var(--ez-muted); }
.rf-thumb { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px; background: rgba(241,243,242,.5); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; font-size: 1.1rem; color: var(--ez-ink); }
.rf-thumb.warn { background: rgba(245,158,11,.1); color: var(--ez-warning); }
.rf-thumb.bad { background: rgba(239,68,68,.1); color: var(--ez-danger); }
.rf-thumb.ok { background: rgba(45,190,104,.1); color: var(--ez-success); }
.rf-thumb.info { background: rgba(59,130,246,.1); color: var(--ez-info); }
.rf-grow { flex: 1 1 auto; min-width: 0; }
.rf-name { margin: 0; font-size: .875rem; font-weight: 500; color: var(--ez-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-meta { margin: 0; font-size: .75rem; color: var(--ez-muted); }
.rf-amt { margin: 0; font-size: .875rem; font-weight: 600; color: var(--ez-ink); text-align: right; }
.rf-right { text-align: right; flex: 0 0 auto; }
.rf-scroll { max-height: 20rem; overflow-y: auto; }
.rf-nodata { padding: 2rem 1rem; text-align: center; font-size: .875rem; color: var(--ez-muted); }
.rf-fill { background: rgba(0,48,50,.1); color: #003032; }
[data-theme="dark"] .rf-fill { background: rgba(201,241,90,.14); color: #c9f15a; }
@media (max-width: 1199.98px) { .rf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rf-cols { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) { .rf-grid-qa { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .rf-stats { gap: .75rem; } .rf-stat { padding: 1rem; } .rf-stat-val { font-size: 1.25rem; } }

/* DataTables everywhere: same table look as the reference (uppercase muted header, airy rows, hairline dividers) */
table.dataTable thead th, table.table thead th { background: transparent !important; color: var(--ez-muted); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--ez-border) !important; padding: .75rem 1rem; }
table.dataTable tbody td, table.table tbody td { padding: .875rem 1rem; font-size: .875rem; border-bottom: 1px solid var(--ez-border); border-top: 0; }
table.dataTable tbody tr:hover > *, .table-hover tbody tr:hover > * { background: rgba(241,243,242,.35) !important; box-shadow: none !important; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background: transparent !important; box-shadow: none !important; }
.rf-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 1199.98px) { .rf-grid3 { grid-template-columns: 1fr; } }
.rf-table td { white-space: nowrap; }
.rf-table td:nth-child(2) { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
