/*
 * Quiet / premium dashboard theme.
 * White canvas, ink-black text, one green accent used sparingly.
 * Hairline borders instead of shadows. No decorative gradients.
 * Presentation only — no markup/route/controller/model logic here.
 */

:root{
  --fv-c-green-bg:#e6f7ef; --fv-c-green-fg:#0a8f5c;
  --fv-c-blue-bg:#e6f1fd;  --fv-c-blue-fg:#3f68d6;
  --fv-c-purple-bg:#f3ecfd; --fv-c-purple-fg:#7c4fd6;
  --fv-c-orange-bg:#fef1e2; --fv-c-orange-fg:#df8a2d;
  --fv-c-gray-bg:#eef1f3;  --fv-c-gray-fg:#4c5a67;
  --fv-c-red-bg:#fbeced;   --fv-c-red-fg:#a3302f;
  --fv-c-track:#d8dbdd;
  --fv-brand:#0a8f5c;
  --fv-brand-dark:#076e47;
  --fv-brand-tint:#eaf6f0;
  --fv-ink:#15181b;
  --fv-ink-soft:#5c636a;
  --fv-ink-faint:#98a0a6;
  --fv-line:#e9ebec;
  --fv-line-strong:#d8dbdd;
  --fv-canvas:#fbfbfa;
  --fv-surface:#ffffff;
  --fv-amber:#9a6a13;
  --fv-amber-bg:#faf3e3;
  --fv-amber-line:#e7b955;
  --fv-red:#a3302f;
  --fv-red-bg:#fbecec;
  --fv-red-line:#d9605f;
  --fv-radius-sm:10px;
  --fv-radius:14px;
  --fv-font-display:'TikTok Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- base canvas & type ---------- */
body{
  background:var(--fv-canvas) !important;
  color:var(--fv-ink);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{
  font-family:var(--fv-font-display);
  letter-spacing:-0.01em;
  color:var(--fv-ink);
}
::-webkit-scrollbar{width:8px;height:8px;}
::-webkit-scrollbar-thumb{background:var(--fv-line-strong);border-radius:8px;}
::-webkit-scrollbar-track{background:transparent;}

/* ---------- sidebar ---------- */
.lw-sidebar-container,
.navbar-vertical{
  background:var(--fv-surface) !important;
  border-right:1px solid var(--fv-line);
  box-shadow:none !important;
}
.navbar-vertical .navbar-brand{
  padding:20px 22px 16px !important;
  border-bottom:1px solid var(--fv-line);
  margin-bottom:14px;
}
.navbar-vertical .navbar-nav{
  padding:0 10px;
}
.navbar-vertical .navbar-nav .nav-item{
  margin-bottom:1px;
}
.navbar-vertical .navbar-nav .nav-item .nav-link{
  border-radius:8px;
  padding:9px 12px !important;
  color:var(--fv-ink-soft) !important;
  font-weight:600 !important;
  display:flex;
  align-items:center;
  gap:2px;
  border-left:2px solid transparent;
  transition:background .12s ease, color .12s ease, border-color .12s ease;
}
.navbar-vertical .navbar-nav .nav-item .nav-link:hover{
  background:var(--fv-canvas);
  color:var(--fv-ink) !important;
}
.navbar-vertical .navbar-nav > .nav-item > .nav-link.active{
  background:var(--fv-brand-tint) !important;
  color:var(--fv-ink) !important;
  border-left-color:var(--fv-brand);
  font-weight:700 !important;
}
.navbar-vertical .navbar-nav .nav-item .nav-link[data-fv-icon]{
  color:var(--fv-ink-faint);
  width:24px;
  font-size:15px;
  text-align:center;
  transition:color .12s ease;
}
.navbar-vertical .navbar-nav .nav-item .nav-link:hover [data-fv-icon]{
  color:var(--fv-ink-soft);
}
.navbar-vertical .navbar-nav > .nav-item > .nav-link.active [data-fv-icon]{
  color:var(--fv-brand) !important;
}
.navbar-vertical [data-fv-icon="sm"]{
  width:20px;
  font-size:12px;
}
.navbar-vertical .lw-expandable-nav .nav-link{
  padding-left:32px !important;
  font-size:.87rem;
  font-weight:500 !important;
}
.navbar-vertical .lw-expandable-nav .nav-link.active{
  background:var(--fv-brand-tint) !important;
  color:var(--fv-ink) !important;
  border-left-color:var(--fv-brand);
  font-weight:600 !important;
}
.navbar-vertical .lw-expandable-nav .nav-link.active [data-fv-icon]{
  color:var(--fv-brand) !important;
}

/* ---------- top navbar ---------- */
.navbar-top{
  background:rgba(255,255,255,.96) !important;
  border-bottom:1px solid var(--fv-line) !important;
}
.navbar-top .dropdown-menu{
  border-radius:12px !important;
  box-shadow:0 8px 24px rgba(20,24,27,.08) !important;
}

/* ---------- generic surfaces ---------- */
.card{
  border:1px solid var(--fv-line) !important;
  border-radius:var(--fv-radius) !important;
  box-shadow:none !important;
}
.card .card-body{
  padding:1.25rem;
}
.alert{
  border:none !important;
  border-radius:var(--fv-radius-sm) !important;
}

/* ================================================================
   Vendor dashboard
   ================================================================ */
.fv-dashboard .row{
  --bs-gutter-x:1.25rem;
}
.fv-section-gap{
  margin-top:1.25rem;
}

/* -- slim status / alert strips -- */
.fv-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  background:var(--fv-surface);
  border:1px solid var(--fv-line);
  border-left:3px solid var(--fv-ink-faint);
  border-radius:8px;
  padding:.6rem 1rem;
  margin-top:1.25rem;
  margin-bottom:.75rem;
  font-size:.86rem;
}
.fv-strip-text{
  display:flex;
  align-items:center;
  gap:.6rem;
  color:var(--fv-ink-soft);
  font-weight:600;
}
.fv-strip-text i{font-size:1rem;}
.fv-strip-text a{color:inherit;text-decoration:underline;}
.fv-strip.fv-strip-danger{border-left-color:var(--fv-red-line);}
.fv-strip.fv-strip-danger .fv-strip-text{color:var(--fv-red);}
.fv-strip.fv-strip-warning{border-left-color:var(--fv-amber-line);}
.fv-strip.fv-strip-warning .fv-strip-text{color:var(--fv-amber);}
.fv-strip.fv-strip-ok{border-left-color:var(--fv-brand);}
.fv-strip.fv-strip-ok .fv-strip-text{color:var(--fv-ink);}
.fv-strip-link{
  font-weight:700;
  font-size:.82rem;
  white-space:nowrap;
  color:var(--fv-brand-dark);
  text-decoration:none;
}
.fv-strip-link:hover{color:var(--fv-brand-dark);text-decoration:underline;}
.fv-strip-dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--fv-brand);
  flex-shrink:0;
}
.fv-strip-dot.fv-dot-red{background:var(--fv-red-line);}
.fv-strip-dot.fv-dot-amber{background:var(--fv-amber-line);}

/* -- KPI row -- */
.fv-kpi{
  height:100%;
}
.fv-kpi-label{
  font-size:.72rem;
  font-weight:700;
  color:var(--fv-ink-faint);
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:.5rem;
}
.fv-kpi-value{
  font-family:var(--fv-font-display);
  font-size:1.9rem;
  font-weight:800;
  color:var(--fv-ink);
  line-height:1;
}
.fv-kpi-sub{
  font-size:.78rem;
  color:var(--fv-ink-faint);
  margin-top:.4rem;
}
.fv-kpi-sub.fv-up{color:var(--fv-brand-dark);}

/* -- card heading -- */
.fv-card-title{
  font-family:var(--fv-font-display);
  font-size:.98rem;
  font-weight:800;
  color:var(--fv-ink);
  margin-bottom:1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.fv-card-title small{
  font-family:inherit;
  font-size:.72rem;
  font-weight:600;
  color:var(--fv-ink-faint);
  text-transform:none;
}

/* -- setup checklist -- */
.fv-checklist{
  display:flex;
  flex-direction:column;
  gap:.15rem;
}
.fv-check-row{
  display:flex;
  align-items:center;
  gap:.7rem;
  padding:.6rem .1rem;
  border-bottom:1px solid var(--fv-line);
  text-decoration:none;
  color:var(--fv-ink);
}
.fv-check-row:last-child{border-bottom:none;}
.fv-check-row:hover{color:var(--fv-ink);text-decoration:none;}
.fv-check-mark{
  width:20px;height:20px;
  border-radius:50%;
  border:1.5px solid var(--fv-line-strong);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  font-size:.65rem;
  color:transparent;
}
.fv-check-row.fv-done .fv-check-mark{
  background:var(--fv-brand);
  border-color:var(--fv-brand);
  color:#fff;
}
.fv-check-row.fv-done .fv-check-label{color:var(--fv-ink-faint);text-decoration:line-through;}
.fv-check-label{font-weight:600;font-size:.88rem;flex:1;}
.fv-check-row .fv-qa-chevron{color:var(--fv-ink-faint);font-size:.8rem;}

/* -- delivery split bar (sent vs pending) -- */
.fv-split-bar{
  height:10px;
  border-radius:6px;
  background:var(--fv-line);
  overflow:hidden;
  display:flex;
  margin:1rem 0 .9rem;
}
.fv-split-bar-sent{
  background:var(--fv-brand);
  height:100%;
}
.fv-split-legend{
  display:flex;
  justify-content:space-between;
  font-size:.82rem;
}
.fv-split-legend-item{display:flex;align-items:center;gap:.4rem;color:var(--fv-ink-soft);font-weight:600;}
.fv-split-legend-item .fv-dot{width:8px;height:8px;border-radius:50%;}
.fv-split-legend-item .fv-dot.fv-dot-sent{background:var(--fv-brand);}
.fv-split-legend-item .fv-dot.fv-dot-pending{background:var(--fv-line-strong);}
.fv-split-legend-item b{color:var(--fv-ink);font-weight:800;}

/* -- quiet quick actions list -- */
.fv-quick-actions{
  display:flex;
  flex-direction:column;
}
.fv-quick-action{
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.65rem .1rem;
  border-bottom:1px solid var(--fv-line);
  text-decoration:none;
  color:var(--fv-ink);
}
.fv-quick-action:last-child{border-bottom:none;}
.fv-quick-action:hover{color:var(--fv-ink);text-decoration:none;}
.fv-quick-action:hover .fv-qa-title{color:var(--fv-brand-dark);}
.fv-quick-action .fv-qa-icon{
  width:30px;
  color:var(--fv-ink-faint);
  font-size:1rem;
  text-align:center;
  flex-shrink:0;
}
.fv-quick-action .fv-qa-title{font-weight:600;font-size:.9rem;transition:color .12s ease;}
.fv-quick-action .fv-qa-chevron{color:var(--fv-ink-faint);margin-left:auto;font-size:.8rem;}

/* -- quiet secondary stat strip -- */
.fv-mini-stats{
  display:flex;
  flex-wrap:wrap;
  gap:0;
}
.fv-mini-stat{
  flex:1 1 0;
  min-width:110px;
  text-decoration:none;
  color:var(--fv-ink);
  padding:.2rem 1rem;
  border-right:1px solid var(--fv-line);
}
.fv-mini-stat:last-child{border-right:none;}
.fv-mini-stat:hover{color:var(--fv-ink);text-decoration:none;}
.fv-mini-stat .fv-mini-value{
  font-family:var(--fv-font-display);
  font-size:1.25rem;
  font-weight:800;
  color:var(--fv-ink);
}
.fv-mini-stat .fv-mini-label{
  font-size:.74rem;
  color:var(--fv-ink-faint);
  font-weight:600;
}
@media (max-width:767.98px){
  .fv-mini-stat{border-right:none;border-bottom:1px solid var(--fv-line);padding:.6rem .1rem;}
  .fv-mini-stat:last-child{border-bottom:none;}
}

/* -- QR block -- */
.fv-qr-row{
  display:flex;
  align-items:center;
  gap:1rem;
}
.fv-qr-row img.lw-qr-image{
  border:1px solid var(--fv-line) !important;
  padding:4px;
  border-radius:8px;
  background:#fff;
}
.fv-qr-name{font-weight:700;color:var(--fv-ink);font-size:.9rem;}
.fv-qr-number{font-weight:600;color:var(--fv-ink-faint);font-size:.82rem;}
.fv-qr-empty{color:var(--fv-ink-faint);font-size:.85rem;}

/* -- demo banner -- */
.fv-demo-banner{
  background:var(--fv-canvas) !important;
  border:1px solid var(--fv-line) !important;
  border-radius:var(--fv-radius) !important;
  color:var(--fv-ink);
}
.fv-demo-banner h2{font-size:1.1rem;color:var(--fv-ink);}

/* ================================================================
   Dark mode — reuses the app's own theme signal (lw-theme-mode
   attribute + users_current_app_theme session, set via the existing
   route('change.app.theme', ...)). No new/competing dark-mode system.
   Because every rule above reads var(--fv-*), redefining the
   variables here re-themes the whole dashboard automatically.
   ================================================================ */
html[lw-theme-mode="dark"]{
  --fv-brand:#17b57a;
  --fv-brand-dark:#12996a;
  --fv-brand-tint:#123024;
  --fv-ink:#eef1f0;
  --fv-ink-soft:#a9b2b6;
  --fv-ink-faint:#727b7f;
  --fv-line:#262b2d;
  --fv-line-strong:#383f42;
  --fv-canvas:#101314;
  --fv-surface:#16191b;
  --fv-amber:#e3ac52;
  --fv-amber-bg:#2c2413;
  --fv-amber-line:#c99539;
  --fv-red:#e2807d;
  --fv-red-bg:#2c1919;
  --fv-red-line:#c2615e;
  --fv-c-green-bg:#123024;  --fv-c-green-fg:#17b57a;
  --fv-c-blue-bg:#182338;   --fv-c-blue-fg:#7295e8;
  --fv-c-purple-bg:#241c33; --fv-c-purple-fg:#a884ec;
  --fv-c-orange-bg:#302614; --fv-c-orange-fg:#e3a25a;
  --fv-c-gray-bg:#23282b;   --fv-c-gray-fg:#a9b2b6;
  --fv-c-red-bg:#2c1919;    --fv-c-red-fg:#e2807d;
  --fv-c-track:#383f42;
}
@media (prefers-color-scheme: dark){
  html[lw-theme-mode="system_default"]{
    --fv-brand:#17b57a;
    --fv-brand-dark:#12996a;
    --fv-brand-tint:#123024;
    --fv-ink:#eef1f0;
    --fv-ink-soft:#a9b2b6;
    --fv-ink-faint:#727b7f;
    --fv-line:#262b2d;
    --fv-line-strong:#383f42;
    --fv-canvas:#101314;
    --fv-surface:#16191b;
    --fv-amber:#e3ac52;
    --fv-amber-bg:#2c2413;
    --fv-amber-line:#c99539;
    --fv-red:#e2807d;
    --fv-red-bg:#2c1919;
    --fv-red-line:#c2615e;
    --fv-c-green-bg:#123024;  --fv-c-green-fg:#17b57a;
    --fv-c-blue-bg:#182338;   --fv-c-blue-fg:#7295e8;
    --fv-c-purple-bg:#241c33; --fv-c-purple-fg:#a884ec;
    --fv-c-orange-bg:#302614; --fv-c-orange-fg:#e3a25a;
    --fv-c-gray-bg:#23282b;   --fv-c-gray-fg:#a9b2b6;
    --fv-c-red-bg:#2c1919;    --fv-c-red-fg:#e2807d;
    --fv-c-track:#383f42;
  }
}

/* semantic tint classes - single source of truth consumed by both
   the CSS-rendered legends/icons and, via getComputedStyle, the
   JS-rendered Chart.js segments. Fixes light/dark drift. */
.fv-tint-green{--fv-tile-bg:var(--fv-c-green-bg);--fv-tile-fg:var(--fv-c-green-fg);}
.fv-tint-blue{--fv-tile-bg:var(--fv-c-blue-bg);--fv-tile-fg:var(--fv-c-blue-fg);}
.fv-tint-purple{--fv-tile-bg:var(--fv-c-purple-bg);--fv-tile-fg:var(--fv-c-purple-fg);}
.fv-tint-orange{--fv-tile-bg:var(--fv-c-orange-bg);--fv-tile-fg:var(--fv-c-orange-fg);}
.fv-tint-gray{--fv-tile-bg:var(--fv-c-gray-bg);--fv-tile-fg:var(--fv-c-gray-fg);}
.fv-tint-red{--fv-tile-bg:var(--fv-c-red-bg);--fv-tile-fg:var(--fv-c-red-fg);}
.fv-legend-dot-green{background:var(--fv-c-green-fg) !important;}
.fv-legend-dot-blue{background:var(--fv-c-blue-fg) !important;}
.fv-legend-dot-red{background:var(--fv-c-red-fg) !important;}
.fv-legend-dot-track{background:var(--fv-c-track) !important;}

/* ================================================================
   New: delta badges, sparklines, chart cards, range switcher,
   skeleton loaders, campaign bars, activity feed, command palette,
   theme toggle icon
   ================================================================ */

.fv-kpi-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.5rem;
}
.fv-delta{
  display:inline-flex;
  align-items:center;
  gap:3px;
  font-size:.72rem;
  font-weight:700;
  padding:1px 6px;
  border-radius:20px;
}
.fv-delta.fv-delta-up{color:var(--fv-brand-dark);background:var(--fv-brand-tint);}
.fv-delta.fv-delta-down{color:var(--fv-red);background:var(--fv-red-bg);}
.fv-delta.fv-delta-flat{color:var(--fv-ink-faint);background:var(--fv-canvas);}
.fv-kpi-sparkline{
  display:block;
  width:100%;
  height:28px;
  margin-top:.5rem;
}
.fv-kpi-sparkline polyline{
  fill:none;
  stroke:var(--fv-brand);
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.fv-kpi-sparkline polygon{
  fill:var(--fv-brand-tint);
  stroke:none;
}

.fv-chart-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:.6rem;
  margin-bottom:.9rem;
}
.fv-range-switcher{
  display:inline-flex;
  border:1px solid var(--fv-line);
  border-radius:8px;
  overflow:hidden;
}
.fv-range-btn{
  border:none;
  background:var(--fv-surface);
  color:var(--fv-ink-soft);
  font-size:.76rem;
  font-weight:700;
  padding:.3rem .6rem;
  cursor:pointer;
}
.fv-range-btn + .fv-range-btn{border-left:1px solid var(--fv-line);}
.fv-range-btn.fv-active{background:var(--fv-brand);color:#fff;}
.fv-chart-wrap{position:relative;height:220px;}
.fv-chart-wrap.fv-chart-sm{height:190px;}

.fv-skeleton{
  border-radius:8px;
  background:linear-gradient(90deg, var(--fv-line) 25%, var(--fv-line-strong) 37%, var(--fv-line) 63%);
  background-size:400% 100%;
  animation:fvShimmer 1.4s ease infinite;
}
@keyframes fvShimmer{
  0%{background-position:100% 50%;}
  100%{background-position:0 50%;}
}

.fv-campaign-row{
  margin-bottom:.85rem;
}
.fv-campaign-row:last-child{margin-bottom:0;}
.fv-campaign-row-top{
  display:flex;
  justify-content:space-between;
  font-size:.82rem;
  margin-bottom:.35rem;
}
.fv-campaign-row-top .fv-c-title{font-weight:600;color:var(--fv-ink);}
.fv-campaign-row-top .fv-c-count{font-weight:700;color:var(--fv-ink-soft);}
.fv-campaign-track{
  height:7px;
  border-radius:5px;
  background:var(--fv-line);
  overflow:hidden;
}
.fv-campaign-fill{
  height:100%;
  background:var(--fv-brand);
  border-radius:5px;
}
.fv-empty-note{
  color:var(--fv-ink-faint);
  font-size:.85rem;
}

.fv-activity-feed{
  display:flex;
  flex-direction:column;
}
.fv-activity-item{
  display:flex;
  align-items:flex-start;
  gap:.7rem;
  padding:.6rem 0;
  border-bottom:1px solid var(--fv-line);
}
.fv-activity-item:last-child{border-bottom:none;}
.fv-activity-icon{
  width:30px;height:30px;
  border-radius:8px;
  background:var(--fv-brand-tint);
  color:var(--fv-brand-dark);
  display:flex;align-items:center;justify-content:center;
  font-size:.85rem;
  flex-shrink:0;
}
.fv-activity-title{font-size:.85rem;font-weight:600;color:var(--fv-ink);}
.fv-activity-sub{font-size:.78rem;color:var(--fv-ink-faint);}
.fv-activity-time{font-size:.72rem;color:var(--fv-ink-faint);white-space:nowrap;margin-left:auto;padding-left:.5rem;}

.fv-checklist-done-note{
  display:flex;
  align-items:center;
  gap:.5rem;
  color:var(--fv-brand-dark);
  font-weight:700;
  font-size:.9rem;
}

/* -- command palette -- */
.fv-cmdk-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,18,20,.45);
  z-index:2000;
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding-top:12vh;
}
.fv-cmdk-overlay.fv-open{display:flex;}
.fv-cmdk-modal{
  width:100%;
  max-width:560px;
  background:var(--fv-surface);
  border-radius:14px;
  border:1px solid var(--fv-line);
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  overflow:hidden;
  max-height:70vh;
  display:flex;
  flex-direction:column;
}
.fv-cmdk-input{
  border:none;
  border-bottom:1px solid var(--fv-line);
  padding:.9rem 1.1rem;
  font-size:.95rem;
  width:100%;
  background:var(--fv-surface);
  color:var(--fv-ink);
  outline:none;
}
.fv-cmdk-list{
  overflow-y:auto;
  padding:.5rem;
}
.fv-cmdk-item{
  display:flex;
  align-items:center;
  gap:.7rem;
  padding:.6rem .7rem;
  border-radius:8px;
  cursor:pointer;
  color:var(--fv-ink);
  text-decoration:none;
}
.fv-cmdk-item i{width:18px;color:var(--fv-ink-faint);font-size:.9rem;}
.fv-cmdk-item.fv-cmdk-active{background:var(--fv-brand-tint);}
.fv-cmdk-item.fv-cmdk-active i{color:var(--fv-brand-dark);}
.fv-cmdk-empty{padding:1rem;color:var(--fv-ink-faint);font-size:.85rem;text-align:center;}
.fv-cmdk-hint{
  border-top:1px solid var(--fv-line);
  padding:.5rem 1rem;
  font-size:.72rem;
  color:var(--fv-ink-faint);
  display:flex;
  gap:1rem;
}
.fv-cmdk-hint kbd{
  background:var(--fv-canvas);
  border:1px solid var(--fv-line);
  border-radius:4px;
  padding:0 5px;
  font-size:.7rem;
}

.fv-search-trigger{cursor:pointer;}

/* ================================================================
   v4 — per-metric color system, sub-labels, footer links,
   center-percent ring, colored action icons (matches reference)
   ================================================================ */

/* per-metric accent palette (used via inline --fv-tile-bg/--fv-tile-fg) */
.fv-kpi-icon{
  width:34px;height:34px;
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  font-size:.95rem;
  background:var(--fv-tile-bg);
  color:var(--fv-tile-fg);
  flex-shrink:0;
}
.fv-kpi-value{
  font-family:var(--fv-font-display);
  font-size:1.55rem;
  font-weight:800;
  color:var(--fv-ink);
  line-height:1;
  margin:.4rem 0 .3rem;
}
.fv-kpi-label{font-size:.82rem;font-weight:700;color:var(--fv-ink);}
.fv-kpi-sub{font-size:.74rem;color:var(--fv-ink-faint);}
.fv-kpi-sub .fv-up{color:var(--fv-brand-dark);font-weight:700;}
.fv-kpi-sub .fv-down{color:var(--fv-red);font-weight:700;}

.fv-card-title{font-size:.92rem;}
.fv-card-title .fv-card-sub{font-size:.72rem;font-weight:600;color:var(--fv-ink-faint);}
.fv-card-badge{
  font-size:.7rem;font-weight:700;
  background:var(--fv-brand-tint);color:var(--fv-brand-dark);
  padding:2px 9px;border-radius:20px;
}
.fv-card-desc{font-size:.76rem;color:var(--fv-ink-faint);margin:-.5rem 0 .8rem;}
.fv-card-footer{
  display:flex;justify-content:space-between;align-items:center;
  border-top:1px solid var(--fv-line);
  margin-top:.9rem;padding-top:.7rem;
  font-size:.76rem;color:var(--fv-ink-faint);
}
.fv-footer-link{color:var(--fv-brand-dark);font-weight:700;text-decoration:none;}
.fv-footer-link:hover{color:var(--fv-brand-dark);text-decoration:underline;}

/* center-percent success ring */
.fv-ring-wrap{position:relative;width:150px;height:150px;margin:.5rem auto 1rem;}
.fv-ring-center{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.fv-ring-pct{font-family:var(--fv-font-display);font-size:1.6rem;font-weight:800;color:var(--fv-ink);line-height:1;}
.fv-ring-caption{font-size:.62rem;font-weight:700;color:var(--fv-ink-faint);letter-spacing:.05em;text-transform:uppercase;margin-top:2px;}
.fv-ring-legend{display:flex;justify-content:center;gap:14px;margin-top:.6rem;font-size:.76rem;color:var(--fv-ink-soft);}
.fv-ring-legend span{display:inline-flex;align-items:center;gap:5px;}
.fv-ring-legend .fv-dot{width:8px;height:8px;border-radius:50%;}

/* checklist header row with badge + desc */
.fv-checklist-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.2rem;}

/* quick actions with colored icon badges */
.fv-quick-action .fv-qa-icon{
  width:32px;height:32px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  font-size:.85rem;flex-shrink:0;
  background:var(--fv-tile-bg,var(--fv-brand-tint));
  color:var(--fv-tile-fg,var(--fv-brand-dark));
}

/* activity icons colored */
.fv-activity-icon{
  background:var(--fv-tile-bg,var(--fv-brand-tint));
  color:var(--fv-tile-fg,var(--fv-brand-dark));
}

/* QR card — solid brand panel */
.fv-qr-card{
  background:linear-gradient(135deg,var(--fv-brand) 0%,var(--fv-brand-dark) 100%);
  border:none !important;
  border-radius:14px !important;
  color:#fff;
}
.fv-qr-card .fv-card-title{color:#fff;}
.fv-qr-card .fv-qr-desc{font-size:.8rem;color:rgba(255,255,255,.85);margin-bottom:.8rem;}
.fv-qr-card .fv-btn-qr{
  display:inline-flex;align-items:center;gap:.4rem;
  background:#fff;color:var(--fv-brand-dark);
  font-weight:700;font-size:.82rem;
  padding:.45rem .9rem;border-radius:9px;text-decoration:none;
}
.fv-qr-card .fv-btn-qr:hover{color:var(--fv-brand-dark);text-decoration:none;opacity:.92;}
.fv-qr-thumb{position:relative;width:64px;height:64px;flex-shrink:0;}
.fv-qr-thumb img{width:100%;height:100%;border-radius:8px;background:#fff;padding:4px;}
.fv-qr-badge{
  position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);
  background:#fff;color:var(--fv-ink-faint);
  font-size:.55rem;font-weight:700;
  padding:1px 6px;border-radius:20px;white-space:nowrap;
}

/* ================================================================
   v5 — WhatsApp Health, Needs Attention, multi-segment campaign
   bars, and subscription usage widget (points 4/6/7/10/11)
   ================================================================ */

.fv-health-row{
  display:flex;justify-content:space-between;align-items:center;
  padding:.55rem 0;border-bottom:1px solid var(--fv-line);
  font-size:.85rem;
}
.fv-health-row:last-child{border-bottom:none;}
.fv-health-label{color:var(--fv-ink-soft);font-weight:600;}
.fv-health-status{font-weight:700;padding:2px 9px;border-radius:20px;font-size:.76rem;}
.fv-health-ok{background:var(--fv-brand-tint);color:var(--fv-brand-dark);}
.fv-health-warn{background:var(--fv-amber-bg);color:var(--fv-amber);}
.fv-health-bad{background:var(--fv-red-bg);color:var(--fv-red);}

.fv-attention-list{display:flex;flex-direction:column;gap:.5rem;}
.fv-attention-row{
  display:flex;align-items:center;gap:.7rem;
  padding:.6rem .8rem;border-radius:10px;
  text-decoration:none;font-size:.84rem;font-weight:600;
  border-left:3px solid transparent;
}
.fv-attention-row:hover{text-decoration:none;opacity:.9;}
.fv-attention-danger{background:var(--fv-red-bg);color:var(--fv-red);border-left-color:var(--fv-red-line);}
.fv-attention-warning{background:var(--fv-amber-bg);color:var(--fv-amber);border-left-color:var(--fv-amber-line);}
.fv-attention-info{background:var(--fv-brand-tint);color:var(--fv-brand-dark);border-left-color:var(--fv-brand);}
.fv-attention-text{flex:1;}
.fv-attention-cta{font-size:.76rem;white-space:nowrap;opacity:.85;}

.fv-campaign-track{
  height:8px;border-radius:5px;background:var(--fv-line);
  overflow:hidden;display:flex;margin-bottom:.4rem;
}
.fv-campaign-seg{height:100%;}
.fv-seg-delivered{background:var(--fv-c-green-fg);}
.fv-seg-failed{background:var(--fv-c-red-fg);}
.fv-campaign-legend{
  display:flex;gap:12px;font-size:.72rem;color:var(--fv-ink-faint);margin-bottom:.9rem;
}
.fv-campaign-legend span{display:inline-flex;align-items:center;gap:4px;}
.fv-campaign-legend .fv-dot{width:6px;height:6px;border-radius:50%;}

.fv-quota-row{margin-bottom:.9rem;}
.fv-quota-row:last-child{margin-bottom:0;}
.fv-quota-top{display:flex;justify-content:space-between;font-size:.82rem;margin-bottom:.35rem;}
.fv-quota-top .fv-quota-label{font-weight:600;color:var(--fv-ink);}
.fv-quota-top .fv-quota-count{color:var(--fv-ink-faint);}
.fv-quota-bar{height:7px;border-radius:5px;background:var(--fv-line);overflow:hidden;}
.fv-quota-fill{height:100%;background:var(--fv-brand);border-radius:5px;}
.fv-quota-fill.fv-quota-warn{background:var(--fv-amber);}
.fv-quota-fill.fv-quota-over{background:var(--fv-red);}

/* ================================================================
   v6 — cap list heights so cards don't grow unbounded as data
   accumulates (Needs Attention, Recent Activity, Top Campaigns)
   ================================================================ */
.fv-attention-list{
  max-height:220px;
  overflow-y:auto;
  padding-right:4px;
}
.fv-activity-feed{
  max-height:260px;
  overflow-y:auto;
  padding-right:4px;
}
.fv-table-wrap{
  max-height:280px;
  overflow-y:auto;
}

/* ================================================================
   v7 — real "Top Campaigns" analytics table (replaces bar rows)
   ================================================================ */
.fv-table-wrap{overflow-x:auto;}
.fv-table{width:100%;border-collapse:collapse;font-size:.85rem;}
.fv-table thead th{
  text-align:left;
  font-size:.7rem;font-weight:700;color:var(--fv-ink-faint);
  text-transform:uppercase;letter-spacing:.04em;
  padding:0 0 .6rem;border-bottom:1px solid var(--fv-line);
  white-space:nowrap;
  position:sticky;top:0;background:var(--fv-surface);
}
.fv-table tbody td{
  padding:.65rem 0;border-bottom:1px solid var(--fv-line);
  color:var(--fv-ink);white-space:nowrap;
}
.fv-table tbody tr:last-child td{border-bottom:none;}
.fv-table .fv-table-title{font-weight:700;white-space:normal;}
.fv-table .fv-table-green{color:var(--fv-c-green-fg);font-weight:700;}
.fv-table .fv-table-blue{color:var(--fv-c-blue-fg);font-weight:700;}
.fv-table .fv-table-red{color:var(--fv-c-red-fg);font-weight:700;}
.fv-table th + th, .fv-table td + td{padding-left:1.2rem;}

/* ================================================================
   v8 — expandable topbar search box (icon-only -> real input with
   placeholder on hover/focus)
   ================================================================ */
.fv-search-box{
  position:relative;
  display:flex;
  align-items:center;
  height:36px;
  width:240px;
  border-radius:20px;
  background:var(--fv-canvas);
  border:1px solid var(--fv-line);
  overflow:hidden;
}
.fv-search-box i{
  position:absolute;
  left:11px;
  font-size:14px;
  color:var(--fv-ink-faint);
  pointer-events:none;
}
.fv-search-input{
  width:100%;
  height:100%;
  border:none;
  background:transparent;
  padding:0 12px 0 32px;
  font-size:.84rem;
  color:var(--fv-ink);
  outline:none;
  cursor:pointer;
}
.fv-search-input::placeholder{
  color:var(--fv-ink-faint);
}
.fv-search-box:focus-within{
  border-color:var(--fv-brand);
  background:var(--fv-surface);
}
@media (max-width:767.98px){
  .fv-search-box{ width:150px; }
}

/* ================================================================
   v9 — welcome banner with embedded WhatsApp status + illustration
   ================================================================ */
.fv-welcome{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.25rem;
  background:linear-gradient(120deg, var(--fv-c-green-bg) 0%, var(--fv-surface) 70%);
  border:1px solid var(--fv-line);
  border-radius:var(--fv-radius);
  padding:1.1rem 1.4rem;
  margin-bottom:1.25rem;
  overflow:hidden;
  position:relative;
}
.fv-welcome-main{flex:1;min-width:0;position:relative;z-index:1;}
.fv-welcome-greeting{
  font-family:var(--fv-font-display);
  font-size:1.2rem;
  font-weight:800;
  color:var(--fv-ink);
  margin-bottom:.15rem;
}
.fv-wave{display:inline-block;animation:fvWave 2.4s ease infinite;transform-origin:70% 70%;}
@keyframes fvWave{
  0%,60%,100%{transform:rotate(0deg);}
  10%{transform:rotate(14deg);}
  20%{transform:rotate(-8deg);}
  30%{transform:rotate(14deg);}
  40%{transform:rotate(-4deg);}
}
.fv-welcome-sub{font-size:.82rem;color:var(--fv-ink-soft);margin-bottom:.75rem;}
.fv-welcome-alert{
  display:flex;
  align-items:center;
  gap:.85rem;
  background:var(--fv-surface);
  border:1px solid var(--fv-line);
  border-radius:12px;
  padding:.6rem .9rem;
  max-width:600px;
  flex-wrap:wrap;
}
.fv-welcome-alert-danger{background:var(--fv-red-bg);border-color:var(--fv-red-line);}
.fv-welcome-alert-ok{background:var(--fv-c-green-bg);border-color:var(--fv-brand);}
.fv-welcome-alert-icon{
  width:32px;height:32px;border-radius:50%;
  background:var(--fv-c-red-fg);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:.9rem;flex-shrink:0;
}
.fv-welcome-alert-icon-ok{background:var(--fv-brand);}
.fv-welcome-alert-text{flex:1;min-width:180px;}
.fv-welcome-alert-title{font-weight:800;font-size:.92rem;color:var(--fv-ink);}
.fv-welcome-alert-desc{font-size:.8rem;color:var(--fv-ink-faint);}
.fv-btn-solid-sm{
  background:var(--fv-brand);color:#fff;font-weight:700;font-size:.82rem;
  padding:.5rem 1rem;border-radius:9px;text-decoration:none;white-space:nowrap;
  display:inline-flex;align-items:center;gap:.4rem;
}
.fv-btn-solid-sm:hover{background:var(--fv-brand-dark);color:#fff;text-decoration:none;}
.fv-btn-outline-sm{
  background:transparent;color:var(--fv-brand-dark);font-weight:700;font-size:.82rem;
  padding:.5rem 1rem;border-radius:9px;text-decoration:none;white-space:nowrap;
  border:1.5px solid var(--fv-brand);
}
.fv-btn-outline-sm:hover{color:var(--fv-brand-dark);text-decoration:none;background:var(--fv-c-green-bg);}

/* decorative illustration - CSS/icon built, no image assets */
.fv-welcome-art{
  position:relative;
  width:140px;height:104px;
  flex-shrink:0;
  align-items:center;
  justify-content:center;
}
.fv-art-phone{
  width:58px;height:96px;
  background:linear-gradient(160deg, var(--fv-brand) 0%, var(--fv-brand-dark) 100%);
  border-radius:13px;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:1.4rem;
  box-shadow:0 10px 22px rgba(10,143,92,.22);
  position:relative;z-index:1;
}
.fv-art-chip{
  position:absolute;
  width:26px;height:26px;border-radius:8px;
  background:var(--fv-surface);
  border:1px solid var(--fv-line);
  display:flex;align-items:center;justify-content:center;
  color:var(--fv-brand-dark);font-size:.7rem;
  box-shadow:0 6px 14px rgba(20,26,31,.06);
}
.fv-art-chip-1{top:2px;left:0;}
.fv-art-chip-2{bottom:26px;left:2px;color:var(--fv-c-blue-fg);}
.fv-art-chip-3{top:14px;right:0;color:var(--fv-c-orange-fg);}
.fv-art-chip-4{bottom:6px;right:14px;color:var(--fv-brand-dark);}

@media (max-width:991.98px){
  .fv-welcome{flex-direction:column;align-items:flex-start;}
}

/* ================================================================
   v10 — admin-controlled promotional announcement banner
   Deliberately styled differently from system alerts (amber/gold
   accent, gift icon) so a festival offer never reads as a warning.
   ================================================================ */
.fv-announcement{
  display:flex;
  align-items:center;
  gap:1rem;
  background:linear-gradient(120deg, var(--fv-amber-bg) 0%, var(--fv-surface) 80%);
  border:1px solid var(--fv-amber-line);
  border-radius:var(--fv-radius);
  padding:1rem 1.3rem;
  margin-bottom:1.5rem;
  flex-wrap:wrap;
}
.fv-announcement-icon{
  width:38px;height:38px;border-radius:10px;flex-shrink:0;
  background:var(--fv-amber);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:1.05rem;
}
.fv-announcement-text{flex:1;min-width:200px;}
.fv-announcement-title{font-weight:800;font-size:.92rem;color:var(--fv-ink);}
.fv-announcement-desc{font-size:.82rem;color:var(--fv-ink-soft);}
.fv-announcement-btn{background:var(--fv-amber);white-space:nowrap;}
.fv-announcement-btn:hover{background:#c17d0f;}