/* ==========================================================================
   FieldServo Vendor Dashboard
   Authenticated workspace shell for the business vendor.
   ========================================================================== */

body.vendor-app { background: var(--slate-50); }

.vendor-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; transition: grid-template-columns .22s var(--ease); }
body.vendor-app.sidebar-compact .vendor-shell { grid-template-columns: 84px 1fr; }
@media (max-width: 1024px) { .vendor-shell { grid-template-columns: 1fr; } }

/* ---------- Sidebar ---------- */
.vendor-sidebar {
  background: var(--navy-900); color: var(--slate-300);
  padding: 18px 14px; position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.04);
  z-index: 40;
  transition: width .22s var(--ease), padding .22s var(--ease);
}
@media (max-width: 1024px) {
  .vendor-sidebar { position: fixed; left: 0; top: 0; width: 248px; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .vendor-sidebar.is-open { transform: translateX(0); }
}
.vendor-sidebar::-webkit-scrollbar { width: 6px; }
.vendor-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

.v-sidebar-top { display: flex; align-items: center; gap: 8px; padding: 4px 8px 18px; }
.v-brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.v-brand img { height: 32px; width: auto; }
.v-sidebar-compact-toggle {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05); color: var(--white);
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}
.v-sidebar-compact-toggle:hover { background: rgba(255,255,255,0.1); }
.v-sidebar-compact-toggle svg { width: 16px; height: 16px; }

.v-nav-section { padding: 14px 4px 6px; }
.v-nav-section h6,
.v-nav-accordion {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate-500); font-weight: 700;
}
.v-nav-accordion {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 0 10px 8px; background: transparent; border: 0; cursor: pointer;
}
.v-nav-accordion:hover { color: var(--slate-300); }
.v-nav-accordion span { pointer-events: none; }
.v-nav-accordion svg {
  width: 14px; height: 14px; color: currentColor;
  transition: transform .18s var(--ease);
}
.v-nav-section.is-collapsed .v-nav-accordion svg { transform: rotate(-90deg); }
.v-nav-section.is-collapsed .v-nav { display: none; }
.v-nav-section.is-collapsed .v-submenu-label { display: none; }
.v-nav-section.has-active > .v-nav-accordion { color: var(--slate-300); }
.v-nav {
  overflow: hidden;
  transition: max-height .2s var(--ease), opacity .2s var(--ease);
}
.v-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  color: var(--slate-300); font-size: 0.88rem; font-weight: 500;
  margin-bottom: 2px;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.v-nav a:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.v-nav a.is-active { background: var(--mint-500); color: var(--white); font-weight: 600; box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.v-nav a.is-active .v-ico { color: var(--white); }
.v-submenu-label {
  color: var(--slate-500);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px 5px 40px;
}
.v-nav a.v-subnav {
  margin-left: 18px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.v-nav a .v-ico {
  width: 18px; height: 18px; flex-shrink: 0; color: var(--slate-500);
  display: grid; place-items: center;
}
.v-nav a .v-ico svg { width: 16px; height: 16px; }
.v-nav a.v-subnav .v-ico svg { width: 15px; height: 15px; }
.v-nav a[data-testid="v-nav-profile-management"] .v-ico svg { width: 15px; height: 15px; }
.v-nav a.v-signout .v-ico { width: 12px; height: 12px; }
.v-nav a.v-signout .v-ico svg { width: 10px; height: 10px; }
.v-sidebar-foot > a .v-ico { width: 12px; height: 12px; }
.v-sidebar-foot > a .v-ico svg { width: 10px; height: 10px; }
.v-nav a .v-count { margin-left: auto; font-size: 0.7rem; background: rgba(255,255,255,0.08); padding: 2px 8px; border-radius: 999px; color: var(--slate-300); }
.v-nav a.is-active .v-count { background: rgba(255,255,255,0.2); color: var(--white); }

.v-sidebar-foot { margin-top: auto; padding-top: 24px; }
.v-user {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.v-user .v-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--mint-500));
  color: var(--white); display: grid; place-items: center;
  font-family: "Plus Jakarta Sans"; font-weight: 700; font-size: 0.8rem;
}
.v-user .v-name { color: var(--white); font-size: 0.85rem; font-weight: 600; font-family: "Plus Jakarta Sans"; }
.v-user .v-role { color: var(--slate-500); font-size: 0.72rem; }

body.vendor-app.sidebar-compact .vendor-sidebar { padding-left: 10px; padding-right: 10px; }
body.vendor-app.sidebar-compact .v-sidebar-top { justify-content: center; padding-left: 0; padding-right: 0; }
body.vendor-app.sidebar-compact .v-brand { justify-content: center; flex: 0 0 auto; }
body.vendor-app.sidebar-compact .v-brand img { height: 28px; }
body.vendor-app.sidebar-compact .sa-brand .sa-pill,
body.vendor-app.sidebar-compact .v-nav-accordion span,
body.vendor-app.sidebar-compact .v-nav a,
body.vendor-app.sidebar-compact .v-submenu-label,
body.vendor-app.sidebar-compact .v-user > div,
body.vendor-app.sidebar-compact .v-nav a .v-count { font-size: 0; }
body.vendor-app.sidebar-compact .v-nav-section { padding-top: 10px; }
body.vendor-app.sidebar-compact .v-nav-accordion {
  justify-content: center; padding: 0 0 8px; min-height: 24px;
}
body.vendor-app.sidebar-compact .v-nav-accordion svg { display: none; }
body.vendor-app.sidebar-compact .v-nav { display: flex !important; flex-direction: column; gap: 4px; opacity: 1; }
body.vendor-app.sidebar-compact .v-nav a,
body.vendor-app.sidebar-compact .v-sidebar-foot .v-signout,
body.vendor-app.sidebar-compact .v-sidebar-foot .v-user {
  justify-content: center; padding-left: 0; padding-right: 0; min-height: 42px;
}
body.vendor-app.sidebar-compact .v-nav a.v-subnav { margin-left: 0; border-left: 0; }
body.vendor-app.sidebar-compact .v-nav a .v-ico,
body.vendor-app.sidebar-compact .v-sidebar-foot > a .v-ico { margin: 0; width: 18px; height: 18px; }
body.vendor-app.sidebar-compact .v-user { padding: 10px 0; }
body.vendor-app.sidebar-compact .v-user .v-av { margin: 0 auto; }
body.vendor-app.sidebar-compact .v-sidebar-compact-toggle { position: absolute; right: 8px; top: 20px; }
body.vendor-app.sidebar-compact .v-sidebar-foot { padding-top: 16px; }

@media (max-width: 1024px) {
  body.vendor-app.sidebar-compact .vendor-shell { grid-template-columns: 1fr; }
  body.vendor-app.sidebar-compact .vendor-sidebar { padding-left: 14px; padding-right: 14px; }
}

/* ---------- Content area ---------- */
.vendor-content { display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }

.vendor-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 14px 28px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 20;
}
.vendor-topbar .v-burger {
  background: var(--slate-100); border: 0; border-radius: 8px;
  width: 36px; height: 36px; display: none; place-items: center; cursor: pointer;
  color: var(--navy-800);
}
@media (max-width: 1024px) { .vendor-topbar .v-burger { display: grid; } }

.vendor-topbar .v-search {
  flex: 1; max-width: 480px; position: relative;
}
.vendor-topbar .v-search input {
  width: 100%; padding: 10px 14px 10px 38px;
  border: 1px solid var(--slate-200); border-radius: 10px;
  font-family: inherit; font-size: 0.9rem; color: var(--navy-800);
  background: var(--slate-50);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.vendor-topbar .v-search input:focus { border-color: var(--mint-500); box-shadow: 0 0 0 3px rgba(16,185,129,0.16); background: var(--white); }
.vendor-topbar .v-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--slate-400); }

.vendor-topbar .v-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.vendor-topbar .v-iconbtn {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--slate-50); border: 1px solid var(--slate-200);
  display: grid; place-items: center; cursor: pointer; position: relative;
  color: var(--navy-800);
}
.vendor-topbar .v-iconbtn:hover { background: var(--slate-100); }
.vendor-topbar .v-iconbtn svg { width: 16px; height: 16px; }
.vendor-topbar .v-iconbtn .v-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; background: var(--mint-500); border: 2px solid var(--white); border-radius: 50%; }

/* ---------- Page surface ---------- */
.vendor-page { flex: 1; padding: 28px; min-width: 0; }
@media (max-width: 720px) { .vendor-page { padding: 20px 16px; } }

.v-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.v-crumbs { font-size: 0.78rem; color: var(--slate-500); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.v-crumbs a { color: var(--slate-600); }
.v-crumbs span { color: var(--slate-400); }
.v-page-head h1 { font-family: "Plus Jakarta Sans"; font-size: 1.6rem; color: var(--navy-800); font-weight: 800; letter-spacing: -0.02em; }
.v-page-head .v-sub { color: var(--slate-600); font-size: 0.94rem; margin-top: 4px; max-width: 640px; }
.v-page-head .v-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- KPI cards ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
@media (max-width: 1200px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden;
}
.kpi .kpi-label { font-size: 0.75rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.kpi .kpi-val { font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: 1.7rem; color: var(--navy-800); letter-spacing: -0.02em; }
.kpi .kpi-delta { font-size: 0.78rem; font-weight: 600; color: var(--mint-600); display: flex; align-items: center; gap: 4px; }
.kpi .kpi-delta.neg { color: var(--danger); }
.kpi .kpi-ico {
  position: absolute; right: 14px; top: 14px;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--mint-50); color: var(--mint-600);
  display: grid; place-items: center;
}
.kpi .kpi-ico svg { width: 16px; height: 16px; }

/* ---------- Widget cards ---------- */
.widgets-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; }
@media (max-width: 960px) { .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; } }

.widget {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: 12px; padding: 20px; min-width: 0;
}
.widget-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.widget-head h3 { font-family: "Plus Jakarta Sans"; font-size: 1rem; color: var(--navy-800); font-weight: 700; }
.widget-head .widget-actions { display: flex; gap: 6px; }

/* ---------- Data table ---------- */
.v-table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.v-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.v-table th, .v-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--slate-200); font-size: 0.88rem; }
.v-table th { font-family: "Plus Jakarta Sans"; font-weight: 700; color: var(--slate-500); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--slate-50); }
.v-table tr:last-child td { border-bottom: 0; }
.v-table tr:hover td { background: var(--slate-50); }
.v-table td .row-av { display: inline-flex; align-items: center; gap: 8px; }
.v-table .av-sm { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-700), var(--mint-500)); color: var(--white); display: inline-grid; place-items: center; font-weight: 700; font-size: 0.72rem; font-family: "Plus Jakarta Sans"; }

.v-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.v-pill.green { background: var(--mint-50); color: var(--mint-600); }
.v-pill.blue { background: #EEF2FF; color: #4F46E5; }
.v-pill.amber { background: #FFFBEB; color: #B45309; }
.v-pill.red { background: #FEF2F2; color: #B91C1C; }
.v-pill.slate { background: var(--slate-100); color: var(--slate-700); }
.v-pill.navy { background: rgba(10,31,68,0.08); color: var(--navy-800); }

.v-link-btn { background: transparent; border: 0; color: var(--mint-600); font-weight: 600; cursor: pointer; padding: 4px 8px; border-radius: 6px; font-family: inherit; font-size: 0.84rem; }
.v-link-btn:hover { background: var(--mint-50); }

/* ---------- Toolbar / filters ---------- */
.v-toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: 12px; padding: 12px; margin-bottom: 16px;
}
.v-toolbar .v-tab-row { display: flex; background: var(--slate-100); border-radius: 8px; padding: 3px; }
.v-toolbar .v-tab-row button { background: transparent; border: 0; padding: 7px 14px; border-radius: 6px; font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--slate-600); cursor: pointer; }
.v-toolbar .v-tab-row button.is-active { background: var(--white); color: var(--navy-800); box-shadow: var(--shadow-sm); }
.v-toolbar select, .v-toolbar input[type="search"], .v-toolbar input[type="text"] { padding: 8px 12px; border: 1px solid var(--slate-200); border-radius: 8px; font-family: inherit; font-size: 0.85rem; background: var(--white); color: var(--navy-800); outline: none; }
.v-toolbar select:focus, .v-toolbar input:focus { border-color: var(--mint-500); }

/* ---------- Activity feed ---------- */
.v-feed { display: flex; flex-direction: column; gap: 14px; max-height: 380px; overflow-y: auto; padding-right: 6px; }
.v-feed-item { display: flex; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--slate-200); }
.v-feed-item:last-child { border-bottom: 0; }
.v-feed-item .v-feed-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--mint-50); color: var(--mint-600); display: grid; place-items: center; flex-shrink: 0; }
.v-feed-item .v-feed-ico svg { width: 16px; height: 16px; }
.v-feed-item.warn .v-feed-ico { background: #FFFBEB; color: #B45309; }
.v-feed-item.alert .v-feed-ico { background: #FEF2F2; color: #B91C1C; }
.v-feed-item.info .v-feed-ico { background: #EEF2FF; color: #4F46E5; }
.v-feed-body p { color: var(--slate-700); font-size: 0.88rem; margin-bottom: 2px; }
.v-feed-body p b { color: var(--navy-800); font-weight: 600; }
.v-feed-body small { font-size: 0.74rem; color: var(--slate-500); }

/* ---------- Alerts ---------- */
.v-alert {
  display: flex; gap: 14px; padding: 14px 16px;
  border-radius: 10px; border: 1px solid;
  margin-bottom: 10px;
}
.v-alert.warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.v-alert.danger { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.v-alert.info { background: #EEF2FF; border-color: #C7D2FE; color: #3730A3; }
.v-alert.success { background: var(--mint-50); border-color: #A7F3D0; color: var(--mint-600); }
.v-alert b { display: block; font-family: "Plus Jakarta Sans"; font-weight: 700; }
.v-alert p { color: inherit; margin-top: 2px; font-size: 0.88rem; }
.v-alert .v-alert-ico { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Form fields (dashboard variant) ---------- */
.v-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .v-form-grid { grid-template-columns: 1fr; } }
.v-field label { display: block; font-family: "Plus Jakarta Sans"; font-size: 0.82rem; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; }
.v-field input, .v-field textarea, .v-field select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--slate-200); border-radius: 9px;
  font-family: inherit; font-size: 0.9rem;
  color: var(--navy-800); background: var(--white);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.v-field input:focus, .v-field textarea:focus, .v-field select:focus { border-color: var(--mint-500); box-shadow: 0 0 0 3px rgba(16,185,129,0.16); }
.v-field .v-hint { font-size: 0.75rem; color: var(--slate-500); margin-top: 4px; }
.booking-addon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.booking-addon-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--slate-200); border-radius: 14px; background: #fff; cursor: pointer; }
.booking-addon-card.is-selected { box-shadow: inset 3px 0 0 var(--mint-500); background: linear-gradient(180deg, rgba(236,253,245,0.9), #fff); }
.booking-addon-card input { margin-top: 3px; margin-left: 0; }
.booking-addon-copy { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.booking-addon-copy b { font-family: "Plus Jakarta Sans"; font-size: 0.92rem; color: var(--navy-800); }
.booking-addon-copy small { color: var(--slate-500); font-size: 0.78rem; line-height: 1.4; }
.booking-addon-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-left: auto; }
.booking-addon-price { font-family: "Plus Jakarta Sans"; font-weight: 800; color: var(--mint-700); white-space: nowrap; }
.booking-addon-qty { display: inline-flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 999px; background: var(--slate-100); }
.booking-addon-qty button { width: 24px; height: 24px; border: 0; border-radius: 999px; background: #fff; color: var(--navy-800); font-family: "Plus Jakarta Sans"; font-size: 1rem; line-height: 1; box-shadow: 0 1px 3px rgba(15,23,42,0.08); cursor: pointer; }
.booking-addon-qty span { min-width: 12px; text-align: center; font-family: "Plus Jakarta Sans"; font-weight: 700; font-size: 0.84rem; color: var(--navy-800); }
.payment-method-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.payment-method-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--slate-200); border-radius: 12px; background: #fff; cursor: pointer; }
.payment-method-card.is-selected { border-color: var(--mint-500); box-shadow: 0 10px 24px rgba(16,185,129,0.12); }
.payment-method-copy { display: flex; flex-direction: column; gap: 3px; }
.payment-method-copy b { font-family: "Plus Jakarta Sans"; color: var(--navy-800); }
.payment-method-copy small { color: var(--slate-500); font-size: 0.78rem; }
.payment-card-form { padding: 14px; border: 1px solid var(--slate-200); border-radius: 14px; background: var(--slate-50); }
.payment-save-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.84rem; color: var(--slate-600); }
@media (max-width: 720px) { .booking-addon-grid { grid-template-columns: 1fr; } }

/* Toggle switch */
.v-switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.v-switch input { opacity: 0; width: 0; height: 0; }
.v-switch .v-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--slate-300); border-radius: 22px;
  transition: background .2s;
}
.v-switch .v-slider::before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 2px; top: 2px;
  background: var(--white); border-radius: 50%; transition: transform .2s;
}
.v-switch input:checked + .v-slider { background: var(--mint-500); }
.v-switch input:checked + .v-slider::before { transform: translateX(18px); }

/* Kanban (CRM Leads) */
.v-kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .v-kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .v-kanban { grid-template-columns: 1fr; } }
.v-kanban-col { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 11px; padding: 12px; }
.v-kanban-col h4 { font-family: "Plus Jakarta Sans"; font-size: 0.78rem; color: var(--navy-800); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.v-kanban-col h4 .ct { color: var(--slate-500); background: var(--white); border: 1px solid var(--slate-200); padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; }
.v-kanban-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: 9px; padding: 10px; margin-bottom: 8px; cursor: grab; transition: box-shadow .15s, transform .15s; }
.v-kanban-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.v-kanban-card b { display: block; font-family: "Plus Jakarta Sans"; color: var(--navy-800); font-size: 0.85rem; }
.v-kanban-card small { display: block; color: var(--slate-500); font-size: 0.74rem; margin-top: 3px; }
.v-kanban-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 0.72rem; color: var(--slate-600); }

/* Calendar (vendor) */
.v-staff-filter {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.v-staff-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.v-staff-filter-head h3 {
  font-family: "Plus Jakarta Sans";
  font-size: 0.96rem;
  color: var(--navy-800);
  font-weight: 700;
}
.v-staff-filter-head span {
  font-size: 0.78rem;
  color: var(--slate-500);
  font-weight: 600;
}
.v-staff-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.v-staff-list button {
  min-width: 92px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--slate-600);
  font-family: inherit;
}
.v-staff-list button.is-active {
  background: var(--mint-50);
  border-color: var(--mint-500);
  color: var(--mint-600);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.v-staff-list img,
.v-staff-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--slate-200);
}
.v-staff-avatar {
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: var(--white);
  font-family: "Plus Jakarta Sans";
  font-size: 0.74rem;
  font-weight: 800;
}
.v-staff-list b {
  color: var(--navy-800);
  font-size: 0.8rem;
  font-family: "Plus Jakarta Sans";
}
.v-staff-list small { color: var(--slate-500); font-size: 0.72rem; }
.v-cal { background: var(--white); border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; }
.v-cal-head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--slate-50); }
.v-cal-head div { padding: 10px; font-family: "Plus Jakarta Sans"; font-size: 0.78rem; font-weight: 700; color: var(--slate-600); text-align: center; text-transform: uppercase; letter-spacing: 0.06em; border-right: 1px solid var(--slate-200); }
.v-cal-head div:last-child { border-right: 0; }
.v-cal-body { display: grid; grid-template-columns: repeat(7, 1fr); }
.v-cal-cell { border-right: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); min-height: 110px; padding: 8px; font-size: 0.78rem; }
.v-cal-cell:nth-child(7n) { border-right: 0; }
.v-cal-cell .v-date { font-family: "Plus Jakarta Sans"; font-weight: 700; color: var(--navy-800); margin-bottom: 6px; }
.v-cal-cell.is-today .v-date { color: var(--mint-600); }
.v-cal-cell.is-muted { background: var(--slate-50); }
.v-cal-cell.is-muted .v-date { color: var(--slate-400); }
.v-cal-evt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 4px 7px;
  border-radius: 5px;
  border: 0;
  background: var(--mint-50);
  color: var(--mint-600);
  margin-bottom: 3px;
  font-family: inherit;
  font-size: 0.7rem;
  cursor: pointer;
}
.v-cal-evt:hover { filter: brightness(0.98); box-shadow: inset 0 0 0 1px currentColor; }
.v-cal-evt.blue { background: #EEF2FF; color: #4F46E5; }
.v-cal-evt.amber { background: #FFFBEB; color: #B45309; }
.v-cal-evt.navy { background: rgba(10,31,68,0.08); color: var(--navy-800); }

.v-booking-detail {
  display: grid;
  gap: 14px;
}
.v-booking-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 14px;
}
.v-booking-hero b {
  display: block;
  color: var(--navy-800);
  font-family: "Plus Jakarta Sans";
  font-size: 1rem;
}
.v-booking-hero small,
.v-booking-list small {
  display: block;
  color: var(--slate-500);
  margin-top: 3px;
}
.v-booking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.v-booking-list div {
  border: 1px solid var(--slate-200);
  border-radius: 9px;
  padding: 10px 12px;
}
.v-booking-list span {
  display: block;
  color: var(--slate-500);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  margin-bottom: 4px;
}
.v-booking-list b { color: var(--navy-800); font-family: "Plus Jakarta Sans"; }
.v-booking-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.v-option-stack {
  display: grid;
  gap: 8px;
}
.v-option-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
  background: var(--slate-50);
}
.v-option-row input { width: auto; margin-top: 3px; accent-color: var(--mint-500); }
.v-option-row b {
  display: block;
  color: var(--navy-800);
  font-family: "Plus Jakarta Sans";
  font-size: 0.86rem;
}
.v-option-row small {
  display: block;
  color: var(--slate-500);
  font-size: 0.75rem;
  margin-top: 2px;
}
.v-widget-preview-field {
  margin-top: 14px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  border-radius: 9px;
  padding: 10px 12px;
}
.v-widget-preview-field.compact { margin-top: 12px; }
.v-widget-preview-field label {
  display: block;
  font-size: 0.7rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 5px;
}
.v-widget-preview-field div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--navy-800);
  font-weight: 700;
}
.v-widget-preview-field span {
  color: var(--mint-600);
  font-size: 0.78rem;
  font-weight: 600;
}
.v-widget-addons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.v-widget-addons label {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--slate-700);
  font-size: 0.82rem;
}
.v-widget-addons b { color: var(--mint-600); margin-left: auto; }
@media (max-width: 720px) {
  .v-booking-list,
  .v-widget-addons { grid-template-columns: 1fr; }
}

/* Map mock (vendor) */
.v-map { position: relative; height: 460px; border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #DEEFFE, #E8F5FB); }
.v-map .v-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(10,31,68,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(10,31,68,0.06) 1px, transparent 1px); background-size: 40px 40px; }
.v-map .v-road { position: absolute; background: var(--white); box-shadow: 0 0 0 1px var(--slate-200); }
.v-map-legend { position: absolute; left: 14px; bottom: 14px; background: var(--white); border: 1px solid var(--slate-200); border-radius: 10px; padding: 10px 12px; font-size: 0.78rem; box-shadow: var(--shadow-sm); }
.v-map-legend div { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.v-map-legend .dot { width: 10px; height: 10px; border-radius: 50%; }

/* Checklist */
.v-checklist { list-style: none; padding: 0; }
.v-checklist li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--slate-200); }
.v-checklist li:last-child { border-bottom: 0; }
.v-checklist .v-cb { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--slate-300); flex-shrink: 0; display: grid; place-items: center; cursor: pointer; }
.v-checklist .v-cb.is-checked { background: var(--mint-500); border-color: var(--mint-500); color: var(--white); }
.v-checklist .v-cb svg { width: 12px; height: 12px; }
.v-checklist b { color: var(--navy-800); font-family: "Plus Jakarta Sans"; font-weight: 600; }
.v-checklist small { display: block; color: var(--slate-500); margin-top: 2px; font-size: 0.78rem; }

/* Tabs */
.v-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--slate-200); margin-bottom: 20px; flex-wrap: wrap; }
.v-tabs button { background: transparent; border: 0; padding: 10px 16px; font-family: inherit; font-weight: 600; font-size: 0.9rem; color: var(--slate-600); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.v-tabs button:hover { color: var(--navy-800); }
.v-tabs button.is-active { color: var(--mint-600); border-bottom-color: var(--mint-500); }

/* Big chart placeholder (SVG-style) */
.v-chart {
  height: 240px; position: relative;
  background: linear-gradient(180deg, var(--mint-50), transparent 70%);
  border-radius: 10px; padding: 18px;
  display: flex; align-items: flex-end; gap: 8px;
  border: 1px solid var(--slate-200);
}
.v-chart .b { flex: 1; background: linear-gradient(180deg, var(--mint-400), var(--mint-600)); border-radius: 5px 5px 0 0; min-height: 4px; position: relative; }
.v-chart .b.navy { background: linear-gradient(180deg, var(--navy-700), var(--navy-900)); }

/* Code/key blocks */
.v-key {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--slate-50);
  border: 1px solid var(--slate-200); border-radius: 9px;
  font-family: "Source Code Pro", Menlo, monospace; font-size: 0.85rem;
  color: var(--navy-800);
}
.v-key code { flex: 1; overflow-x: auto; white-space: nowrap; background: transparent; padding: 0; }
.v-key button { background: var(--white); border: 1px solid var(--slate-200); border-radius: 6px; padding: 4px 10px; font-family: inherit; font-size: 0.78rem; cursor: pointer; color: var(--slate-700); }
.v-key button:hover { border-color: var(--mint-500); color: var(--mint-600); }

/* ---------- Customer-specific bits ---------- */
.job-tracker {
  display: flex; align-items: center; gap: 0;
  padding: 18px 0;
}
.job-tracker .step {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative;
}
.job-tracker .step .step-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--slate-100); color: var(--slate-400);
  border: 2px solid var(--slate-200);
  display: grid; place-items: center;
  font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: 0.82rem;
  z-index: 2; transition: all .3s var(--ease);
}
.job-tracker .step.done .step-dot { background: var(--mint-500); border-color: var(--mint-500); color: var(--white); }
.job-tracker .step.current .step-dot { background: var(--mint-500); border-color: var(--mint-500); color: var(--white); box-shadow: 0 0 0 6px rgba(16,185,129,0.18); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 6px rgba(16,185,129,0.18); } 50% { box-shadow: 0 0 0 10px rgba(16,185,129,0.08); } }
.job-tracker .step .step-label { font-size: 0.78rem; color: var(--slate-600); font-weight: 600; text-align: center; }
.job-tracker .step.done .step-label, .job-tracker .step.current .step-label { color: var(--navy-800); }
.job-tracker .step + .step::before {
  content: ""; position: absolute; left: -50%; right: 50%; top: 18px;
  height: 2px; background: var(--slate-200); z-index: 1;
}
.job-tracker .step.done::before, .job-tracker .step.current::before { background: var(--mint-500); }

.balance-card {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--white); border-radius: 14px; padding: 22px;
  position: relative; overflow: hidden;
}
.balance-card::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16,185,129,0.4), transparent);
}
.balance-card .label { font-size: 0.78rem; color: var(--slate-300); text-transform: uppercase; letter-spacing: 0.08em; }
.balance-card .val { font-family: "Plus Jakarta Sans"; font-weight: 800; font-size: 2.2rem; margin: 6px 0 14px; letter-spacing: -0.02em; }
.balance-card .meta { color: var(--slate-300); font-size: 0.85rem; margin-bottom: 18px; }

.cc-card {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white); border-radius: 12px; padding: 18px;
  position: relative; min-height: 130px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cc-card.is-default { box-shadow: 0 0 0 2px var(--mint-500); }
.cc-card .brand { font-family: "Plus Jakarta Sans"; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; }
.cc-card .num { font-family: "Source Code Pro", monospace; letter-spacing: 0.15em; font-size: 1rem; }
.cc-card .row2 { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--slate-300); }
.cc-card .badge { position: absolute; top: 12px; right: 12px; font-size: 0.65rem; background: var(--mint-500); padding: 3px 8px; border-radius: 999px; font-weight: 700; }

/* ============ STAFF / TECHNICIAN DASHBOARD ============ */

/* Topbar clock-in pill */
.staff-clock-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint-50); color: var(--mint-600);
  border: 1px solid var(--mint-200, #A7F3D0); border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 0.78rem; padding: 7px 14px; cursor: pointer;
  letter-spacing: 0.02em;
}
.staff-clock-btn:hover { background: var(--mint-100, #D1FAE5); }
.staff-clock-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint-500);
  animation: staff-pulse 1.6s ease-in-out infinite;
}
@keyframes staff-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* Main dashboard — Clock In/Out widget */
.staff-clock-widget {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--white); border: 0;
  position: relative; overflow: hidden;
}
.staff-clock-widget::before {
  content: ""; position: absolute; right: -80px; bottom: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16,185,129,0.35), transparent);
}
.staff-clock-status {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em;
  color: #A7F3D0;
}
.staff-clock-time {
  position: relative; z-index: 1;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 2.8rem; letter-spacing: -0.02em; margin-top: 8px;
}
.staff-clock-sub {
  position: relative; z-index: 1;
  color: #CBD5E1; font-size: 0.82rem; margin-top: 4px;
}
.staff-clock-actions {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px;
}
.staff-clock-actions .btn-outline {
  background: rgba(255,255,255,0.08); color: var(--white);
  border: 1px solid rgba(255,255,255,0.18);
}
.staff-clock-actions .btn-outline:hover { background: rgba(255,255,255,0.16); }
.staff-geo-pill {
  position: relative; z-index: 1; margin-top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; color: #A7F3D0;
  background: rgba(16,185,129,0.18); padding: 4px 10px; border-radius: 999px;
}
.staff-geo-pill svg { width: 12px; height: 12px; }

/* Daily target grid */
.staff-target-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.staff-target-cell {
  background: var(--slate-50); border-radius: 10px; padding: 14px;
}
.staff-target-num {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  color: var(--navy-800); font-size: 1.4rem; letter-spacing: -0.02em;
}
.staff-target-lbl {
  font-size: 0.74rem; color: var(--slate-500); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600; margin: 4px 0 8px;
}
.staff-bar {
  height: 6px; background: var(--slate-200); border-radius: 3px; overflow: hidden;
}
.staff-bar-fill {
  height: 100%; background: var(--mint-500); border-radius: 3px;
  transition: width 0.4s ease;
}

/* Route matrix */
.staff-route { display: flex; flex-direction: column; gap: 4px; position: relative; }
.staff-route-row {
  display: grid;
  grid-template-columns: 64px 36px 1fr auto auto auto;
  gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: 10px;
  background: var(--white); border: 1px solid var(--slate-200);
  position: relative;
}
.staff-route-row.done { opacity: 0.6; }
.staff-route-row.current {
  background: linear-gradient(90deg, rgba(16,185,129,0.06), transparent);
  border-color: var(--mint-500); box-shadow: 0 4px 14px -8px rgba(16,185,129,0.5);
}
.staff-route-time {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  color: var(--navy-800); font-size: 0.92rem;
}
.staff-route-pin {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--slate-100); color: var(--navy-800);
  display: grid; place-items: center; font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.85rem;
}
.staff-route-row.current .staff-route-pin {
  background: var(--mint-500); color: var(--white);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
}
.staff-route-row.done .staff-route-pin {
  background: var(--navy-800); color: var(--white);
}
.staff-route-body b {
  display: block; color: var(--navy-800);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.94rem;
}
.staff-route-body small { color: var(--slate-500); font-size: 0.8rem; display: block; margin-top: 2px; }
.staff-route-money {
  color: var(--mint-600); font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.92rem;
}
.staff-route-rating {
  color: var(--slate-500); font-size: 0.78rem; display: block;
}
.staff-route-meta { text-align: right; }

@media (max-width: 768px) {
  .staff-route-row {
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
  }
  .staff-route-time { grid-column: 1; grid-row: 1; font-size: 0.84rem; }
  .staff-route-pin { display: none; }
  .staff-route-body { grid-column: 2; grid-row: 1 / span 2; }
  .staff-route-meta, .staff-route-state, .staff-route-action {
    grid-column: 3; text-align: right;
  }
  .staff-target-grid { grid-template-columns: 1fr; }
}

/* Active job — hero */
.staff-job-hero {
  background: linear-gradient(135deg, var(--navy-900, #051026), var(--navy-700));
  color: var(--white); border: 0;
  display: grid; grid-template-columns: 1fr 280px; gap: 28px;
  padding: 28px;
}
.staff-job-hero h2 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 1.8rem; letter-spacing: -0.02em; margin: 12px 0 6px;
}
.staff-job-cust { color: #CBD5E1; font-size: 0.95rem; }
.staff-job-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
.staff-job-meta span {
  background: rgba(255,255,255,0.08); padding: 6px 12px;
  border-radius: 999px; font-size: 0.78rem; color: #E2E8F0;
}
.staff-job-hero-r { display: flex; flex-direction: column; gap: 10px; }
.staff-job-hero-r .btn-outline {
  background: rgba(255,255,255,0.06); color: var(--white);
  border: 1px solid rgba(255,255,255,0.18);
}
.staff-job-hero-r .btn-outline:hover { background: rgba(255,255,255,0.14); }
.staff-job-hero-r .btn-primary svg { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }

@media (max-width: 768px) {
  .staff-job-hero { grid-template-columns: 1fr; padding: 20px; }
}

/* Customer/property insights list */
.staff-insight-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.staff-insight-list li {
  display: flex; gap: 12px; padding: 12px;
  background: var(--slate-50); border-radius: 10px;
}
.staff-insight-list li b {
  display: block; font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--navy-800); font-size: 0.9rem;
}
.staff-insight-list li small {
  display: block; color: var(--slate-600); font-size: 0.82rem; margin-top: 2px;
}
.staff-insight-ico {
  flex: 0 0 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
}
.staff-insight-ico svg { width: 14px; height: 14px; }
.staff-insight-ico.mint { background: var(--mint-50); color: var(--mint-600); }
.staff-insight-ico.red { background: #FEF2F2; color: #B91C1C; }
.staff-insight-ico.navy { background: rgba(10,31,68,0.08); color: var(--navy-800); }
.staff-insight-ico.amber { background: #FFFBEB; color: #B45309; }

/* Checklist with current state */
.v-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.v-checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 8px; }
.v-checklist li.current { background: rgba(16,185,129,0.06); border: 1px solid var(--mint-500); }
.v-checklist li.done { opacity: 0.65; }
.v-checklist li b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; color: var(--navy-800); }
.v-checklist li.done b { text-decoration: line-through; color: var(--slate-500); }
.v-checklist li small { color: var(--slate-500); font-size: 0.78rem; display: block; margin-top: 2px; }
.v-cb {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--slate-300); display: grid; place-items: center;
  background: var(--white); margin-top: 2px;
}
.v-cb svg { width: 14px; height: 14px; color: var(--white); display: none; }
.v-cb.is-checked { background: var(--mint-500); border-color: var(--mint-500); }
.v-cb.is-checked svg { display: block; }
.v-cb.is-current { border-color: var(--mint-500); }
.v-cb.is-current .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint-500);
  animation: staff-pulse 1.4s ease-in-out infinite;
}

/* Voice notes pad */
.staff-voice-pad {
  background: linear-gradient(135deg, var(--slate-50), var(--white));
  border: 1px dashed var(--slate-300); border-radius: 12px;
  padding: 28px; text-align: center;
}
.staff-voice-mic {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--mint-500); color: var(--white);
  border: 0; display: inline-grid; place-items: center; cursor: pointer;
  position: relative; box-shadow: 0 8px 24px -8px rgba(16,185,129,0.5);
}
.staff-voice-mic svg { width: 28px; height: 28px; }
.staff-voice-pulse {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid var(--mint-500); opacity: 0;
  animation: staff-mic-pulse 2s ease-out infinite;
}
@keyframes staff-mic-pulse {
  0% { opacity: 0.7; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.4); }
}
.staff-voice-hint { color: var(--slate-600); font-size: 0.82rem; margin-top: 12px; }
.staff-voice-transcript { margin-top: 16px; max-height: 160px; overflow-y: auto; }
.staff-voice-transcript p {
  font-size: 0.86rem; color: var(--slate-700);
  background: var(--slate-50); padding: 10px 12px; border-radius: 8px;
  margin-bottom: 8px; line-height: 1.5;
}
.staff-voice-transcript b { color: var(--navy-800); font-family: 'Plus Jakarta Sans', sans-serif; }

/* Upsell grid */
.staff-upsell-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.staff-upsell-card {
  background: var(--white); border: 1.5px solid var(--slate-200);
  border-radius: 10px; padding: 14px 10px; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  color: var(--navy-800); font-size: 0.84rem; text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.staff-upsell-card small {
  display: block; color: var(--mint-600); font-size: 0.78rem; margin-top: 4px;
}
.staff-upsell-card:hover {
  border-color: var(--mint-500); transform: translateY(-1px);
}
.staff-upsell-card.is-custom {
  background: var(--slate-50); border-style: dashed; color: var(--slate-600);
}
@media (max-width: 640px) {
  .staff-upsell-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Signature pad */
.staff-sign-summary {
  background: var(--slate-50); border-radius: 10px;
  padding: 14px; margin: 12px 0; display: flex; flex-direction: column; gap: 6px;
  font-size: 0.88rem;
}
.staff-sign-summary div { display: flex; justify-content: space-between; }
.staff-sign-summary div.total {
  padding-top: 8px; border-top: 1px solid var(--slate-200);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  color: var(--navy-800); font-size: 1.05rem;
}
.staff-sign-pad {
  height: 120px; border: 1.5px dashed var(--slate-300); border-radius: 10px;
  display: grid; place-items: center; color: var(--slate-400);
  font-size: 0.85rem; gap: 6px; flex-direction: column;
}
.staff-sign-pad svg { width: 32px; height: 32px; }

/* Shift summary cards (used on staff-shifts) */
.staff-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.staff-summary > div { background: var(--slate-50); padding: 12px; border-radius: 10px; text-align: center; }
.staff-summary b {
  display: block; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; color: var(--navy-800); font-size: 1.4rem;
}
.staff-summary small {
  display: block; color: var(--slate-500); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px;
}

.v-cal-evt.is-off {
  background: rgba(10,31,68,0.06); color: var(--slate-500); font-style: italic;
}

/* Payouts breakdown rows */
.staff-payout-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--slate-200);
  font-size: 0.9rem; color: var(--slate-700);
}
.staff-payout-row:last-child { border-bottom: 0; }
.staff-payout-row b {
  font-family: 'Plus Jakarta Sans', sans-serif; color: var(--navy-800); font-weight: 700;
}
.staff-payout-row.neg b { color: #B91C1C; }
.staff-payout-row.total {
  padding-top: 14px; margin-top: 6px; border-top: 2px solid var(--slate-200); border-bottom: 0;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--navy-800);
  font-size: 1.05rem;
}
.staff-payout-row.total b { font-size: 1.2rem; color: var(--mint-600); }

/* SVG size guards (icons must never expand) */
.v-pill svg { width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; }
.v-pill { display: inline-flex; align-items: center; gap: 4px; }
.staff-clock-status svg { width: 10px; height: 10px; }
.staff-route-row svg { width: 14px; height: 14px; }
.staff-checklist .v-cb svg { width: 14px; height: 14px; }
.staff-voice-mic svg { width: 28px !important; height: 28px !important; }
.staff-sign-pad svg { width: 32px !important; height: 32px !important; }
.staff-job-hero-r .btn svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }

/* Active job hero — fix pill/title stacking */
.staff-job-hero-l { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.staff-job-hero-l > .v-pill { margin-bottom: 14px; background: rgba(245, 158, 11, 0.18); color: #FCD34D; border: 1px solid rgba(245, 158, 11, 0.35); }
.staff-job-hero h2 { color: var(--white) !important; margin: 0 0 8px !important; line-height: 1.15; }
.staff-job-hero .staff-job-cust { margin: 0; }

/* ============ SUPERADMIN (ops/infra theme) ============ */
.sa-app { background: #020817; }
.sa-app .vendor-shell { background: #020817; }
.sa-app .vendor-content { background: #020817; }
.sa-app .vendor-page { color: #E2E8F0; }
.sa-app .v-page-head h1 { color: #F8FAFC; }
.sa-app .v-page-head .v-sub { color: #94A3B8; }
.sa-app .v-crumbs, .sa-app .v-crumbs a { color: #94A3B8; }
.sa-app .v-crumbs a:hover { color: #F59E0B; }

/* Sidebar — deeper ink */
.sa-sidebar { background: #0A1429 !important; border-right: 1px solid #1E293B !important; }
.sa-app .v-nav-section h6 { color: #64748B; }
.sa-app .v-nav a { color: #94A3B8; }
.sa-app .v-nav a:hover { background: rgba(245,158,11,0.08); color: #FBBF24; }
.sa-app .v-nav a.is-active {
  background: rgba(245,158,11,0.12); color: #FBBF24;
  border-left: 3px solid #F59E0B; padding-left: 13px;
}
.sa-app .v-nav a.is-active .v-ico { color: #F59E0B; }
.sa-app .v-count { background: rgba(245,158,11,0.2); color: #FBBF24; }
.sa-app .v-sidebar-foot { border-top: 1px solid #1E293B; }
.sa-app .v-user .v-name { color: #F8FAFC; }
.sa-app .v-user .v-role { color: #94A3B8; }
.sa-av { background: linear-gradient(135deg, #F59E0B, #DC2626) !important; color: #fff !important; }
.sa-brand { display: flex; align-items: center; gap: 10px; }
.sa-pill {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 0.6rem; padding: 2px 8px; border-radius: 4px;
  background: linear-gradient(90deg, #F59E0B, #DC2626); color: #fff;
  letter-spacing: 0.1em;
}

/* Topbar */
.sa-topbar { background: #0A1429 !important; border-bottom: 1px solid #1E293B !important; }
.sa-app .v-search input { background: #1E293B; color: #F8FAFC; border-color: #334155; }
.sa-app .v-search input::placeholder { color: #64748B; }
.sa-app .v-search svg { color: #64748B; }
.sa-app .v-iconbtn { color: #94A3B8; }
.sa-app .v-iconbtn:hover { color: #F59E0B; }
.sa-env-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,158,11,0.12); color: #FBBF24;
  border: 1px solid rgba(245,158,11,0.3); border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; padding: 5px 12px;
  font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: 0.04em;
}
.sa-env-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #F59E0B;
  animation: staff-pulse 1.6s ease-in-out infinite;
}

/* Widget/card surfaces — dark */
.sa-app .widget { background: #0F172A; border: 1px solid #1E293B; color: #E2E8F0; }
.sa-app .widget-head h3 { color: #F8FAFC; }
.sa-app .widget-head { border-bottom-color: #1E293B; }
.sa-app .kpi { background: #0F172A; border: 1px solid #1E293B; }
.sa-app .kpi-label { color: #94A3B8; }
.sa-app .kpi-val { color: #F8FAFC; }
.sa-app .kpi-delta { color: #94A3B8; }
.sa-app .kpi-delta.neg { color: #FCA5A5; }
.sa-app .kpi-ico { background: rgba(245,158,11,0.12); color: #F59E0B; }

/* Tables */
.sa-app .v-table { background: #0F172A; color: #E2E8F0; }
.sa-app .v-table thead { background: #1E293B; }
.sa-app .v-table thead th { color: #94A3B8; border-bottom-color: #334155; }
.sa-app .v-table tbody td { border-bottom-color: #1E293B; }
.sa-app .v-table tbody tr:hover { background: rgba(245,158,11,0.04); }
.sa-app .v-link-btn { color: #FBBF24; }
.sa-app .v-link-btn:hover { color: #F59E0B; }

/* Buttons in dark theme */
.sa-app .btn-outline { background: transparent; color: #E2E8F0; border-color: #334155; }
.sa-app .btn-outline:hover { background: rgba(245,158,11,0.08); border-color: #F59E0B; color: #FBBF24; }
.sa-app .btn-primary { background: linear-gradient(180deg, #FBBF24, #F59E0B); color: #0F172A; border-color: #F59E0B; }
.sa-app .btn-primary:hover { background: linear-gradient(180deg, #F59E0B, #D97706); }

/* Pills in dark theme retain semantic colors but with adjusted bg */
.sa-app .v-pill.green { background: rgba(16,185,129,0.15); color: #6EE7B7; }
.sa-app .v-pill.red { background: rgba(220,38,38,0.18); color: #FCA5A5; }
.sa-app .v-pill.amber { background: rgba(245,158,11,0.18); color: #FCD34D; }
.sa-app .v-pill.blue { background: rgba(59,130,246,0.15); color: #93C5FD; }
.sa-app .v-pill.slate { background: rgba(148,163,184,0.15); color: #CBD5E1; }
.sa-app .v-pill.navy { background: rgba(59,130,246,0.18); color: #93C5FD; }
.sa-app .v-pill.mint { background: rgba(16,185,129,0.15); color: #6EE7B7; }

/* Feed in dark theme */
.sa-app .v-feed-item { background: #0F172A; border: 1px solid #1E293B; }
.sa-app .v-feed-item p { color: #CBD5E1; }
.sa-app .v-feed-item p b { color: #F8FAFC; }
.sa-app .v-feed-item small { color: #64748B; }
.sa-app .v-feed-item.warn { border-color: rgba(245,158,11,0.3); }
.sa-app .v-feed-item.crit { border-color: rgba(110,231,183,0.3); }
.sa-app .v-feed-ico { background: rgba(245,158,11,0.12); color: #F59E0B; }

/* Form inputs in dark theme */
.sa-app input, .sa-app select, .sa-app textarea {
  background: #1E293B; color: #F8FAFC; border-color: #334155;
}
.sa-app input::placeholder, .sa-app textarea::placeholder { color: #64748B; }
.sa-app .v-field label { color: #94A3B8; }

/* Tabs */
.sa-app .v-tab-row { background: #1E293B; padding: 3px; border-radius: 8px; }
.sa-app .v-tab-row button { color: #94A3B8; background: transparent; }
.sa-app .v-tab-row button.is-active { background: rgba(245,158,11,0.15); color: #FBBF24; }
.sa-app .v-toolbar { background: #0F172A; border-color: #1E293B; }

/* System health monitor */
.sa-health { padding-bottom: 8px; }
.sa-health-row {
  display: grid; grid-template-columns: 16px 1fr 80px; gap: 12px;
  align-items: center; padding: 10px 0;
  border-bottom: 1px dashed #1E293B;
}
.sa-health-row:last-child { border-bottom: 0; }
.sa-health-row b { color: #F8FAFC; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.88rem; }
.sa-health-row small { color: #64748B; display: block; font-size: 0.78rem; margin-top: 2px; }
.sa-health-dot { width: 10px; height: 10px; border-radius: 50%; }
.sa-health-dot.ok { background: #10B981; box-shadow: 0 0 8px rgba(16,185,129,0.6); }
.sa-health-dot.warn { background: #F59E0B; box-shadow: 0 0 8px rgba(245,158,11,0.6); }
.sa-health-dot.crit { background: #DC2626; box-shadow: 0 0 8px rgba(220,38,38,0.6); }
.sa-health-bar { display: block; height: 4px; background: #1E293B; border-radius: 2px; overflow: hidden; }
.sa-health-bar span { display: block; height: 100%; background: #10B981; border-radius: 2px; }

/* MRR mini-stats */
.sa-mini-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #1E293B;
}
.sa-mini-stats > div { text-align: center; }
.sa-mini-stats b {
  display: block; color: #FBBF24; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.15rem;
}
.sa-mini-stats small { color: #64748B; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; display: block; }

/* Pagination footer */
.sa-paginated {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6px 0; margin-top: 12px;
  border-top: 1px solid #1E293B; flex-wrap: wrap; gap: 12px;
}
.sa-app .sa-page-info { color: #94A3B8; font-size: 0.86rem; }
.sa-app .sa-page-info b { color: #F8FAFC; }
.sa-page-size { display: flex; align-items: center; gap: 8px; }
.sa-page-size label { color: #94A3B8; font-size: 0.86rem; }
.sa-page-size select { padding: 4px 24px 4px 10px; font-size: 0.82rem; }
.sa-page-nav { display: flex; gap: 4px; }
.sa-page-nav button {
  min-width: 32px; height: 32px; padding: 0 8px;
  background: #1E293B; color: #CBD5E1;
  border: 1px solid #334155; border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 0.84rem;
  cursor: pointer;
}
.sa-page-nav button:hover:not(:disabled) { background: rgba(245,158,11,0.12); color: #FBBF24; border-color: #F59E0B; }
.sa-page-nav button.is-active { background: #F59E0B; color: #0F172A; border-color: #F59E0B; }
.sa-page-nav button:disabled { opacity: 0.4; cursor: not-allowed; }

/* SA toolbar */
.sa-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  background: #0F172A; border: 1px solid #1E293B; border-radius: 10px;
  padding: 12px; margin-bottom: 14px; gap: 12px; flex-wrap: wrap;
}
.sa-toolbar-l { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sa-toolbar-l > span { color: #64748B; font-size: 0.86rem; }
.sa-toolbar-r { display: flex; gap: 6px; }
.sa-search-inline { position: relative; min-width: 220px; }
.sa-search-inline input { width: 100%; padding: 7px 14px 7px 32px; font-size: 0.84rem; border-radius: 8px; }
.sa-search-inline svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: #64748B; }
.sa-toolbar input[type=date] { padding: 6px 10px; font-size: 0.82rem; }
.sa-toolbar select { padding: 6px 26px 6px 10px; font-size: 0.82rem; }

/* Tenant drill-down hero */
.sa-tenant-hero {
  background: linear-gradient(135deg, #0A1429, #1E293B);
  border: 1px solid #1E293B; border-radius: 12px;
  padding: 22px; margin-bottom: 18px;
  display: flex; justify-content: space-between; gap: 18px; align-items: flex-start;
  flex-wrap: wrap;
}
.sa-tenant-id { display: flex; gap: 16px; align-items: flex-start; }
.sa-tenant-logo {
  width: 64px; height: 64px; border-radius: 14px;
  background: linear-gradient(135deg, #F59E0B, #DC2626);
  display: grid; place-items: center; color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.6rem;
}
.sa-tenant-id h2 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  color: #F8FAFC; font-size: 1.5rem; letter-spacing: -0.02em; margin: 6px 0 4px;
}
.sa-tenant-id h2 small { font-weight: 400; color: #64748B; font-size: 0.85rem; margin-left: 6px; }
.sa-tenant-id p { color: #94A3B8; font-size: 0.88rem; margin: 0; }
.sa-tenant-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.sa-action-log { list-style: none; padding: 0; margin: 0; }
.sa-action-log li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #1E293B; }
.sa-action-log li:last-child { border-bottom: 0; }
.sa-action-log b { color: #F8FAFC; font-size: 0.88rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.sa-action-log small { display: block; color: #64748B; font-size: 0.78rem; margin-top: 2px; }
.sa-action-log > li > div { flex: 1; color: #CBD5E1; font-size: 0.88rem; }
.sa-action-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.sa-action-dot.mint { background: #10B981; }
.sa-action-dot.amber { background: #F59E0B; }
.sa-action-dot.navy { background: #3B82F6; }
.sa-action-dot.red { background: #DC2626; }

/* Plan cards */
.sa-plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1080px) { .sa-plan-grid { grid-template-columns: repeat(2, 1fr); } }
.sa-plan-card {
  background: #0F172A; border: 1px solid #1E293B; border-radius: 12px;
  padding: 22px; position: relative;
}
.sa-plan-card.is-popular { border-color: #F59E0B; box-shadow: 0 0 0 1px rgba(245,158,11,0.3); }
.sa-plan-badge {
  position: absolute; top: -10px; right: 18px;
  background: #F59E0B; color: #0F172A;
  padding: 3px 10px; border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 0.7rem; letter-spacing: 0.04em;
}
.sa-plan-card h3 { color: #F8FAFC; font-size: 1.1rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.sa-plan-price {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  color: #FBBF24; font-size: 2.2rem; letter-spacing: -0.02em; margin: 4px 0 8px;
}
.sa-plan-price small { font-size: 0.85rem; color: #64748B; font-weight: 400; }
.sa-plan-blurb { color: #94A3B8; font-size: 0.84rem; min-height: 38px; margin-bottom: 12px; }
.sa-plan-feats { list-style: none; padding: 0; margin: 0 0 14px; }
.sa-plan-feats li { display: flex; gap: 8px; align-items: flex-start; color: #CBD5E1; font-size: 0.84rem; padding: 4px 0; }
.sa-plan-feats li svg { width: 14px; height: 14px; color: #10B981; flex-shrink: 0; margin-top: 2px; }
.sa-plan-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid #1E293B; }

/* Toggle grid */
.sa-toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 768px) { .sa-toggle-grid { grid-template-columns: 1fr; } }
.sa-toggle {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 14px; background: #1E293B; border: 1px solid #334155; border-radius: 10px;
  cursor: pointer;
}
.sa-toggle b { display: block; color: #F8FAFC; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.88rem; }
.sa-toggle small { display: block; color: #94A3B8; font-size: 0.78rem; margin-top: 4px; }
.sa-toggle input[type=checkbox] {
  appearance: none; width: 36px; height: 20px; border-radius: 999px;
  background: #334155; position: relative; cursor: pointer; flex-shrink: 0;
  transition: background 0.2s;
}
.sa-toggle input[type=checkbox]::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: #F8FAFC; position: absolute; top: 2px; left: 2px;
  transition: left 0.2s;
}
.sa-toggle input[type=checkbox]:checked { background: #F59E0B; }
.sa-toggle input[type=checkbox]:checked::after { left: 18px; }

/* API key card */
.sa-api-card { padding: 18px; }
.sa-api-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.sa-api-logo {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(245,158,11,0.12); color: #F59E0B;
  display: grid; place-items: center;
}
.sa-api-logo svg { width: 22px; height: 22px; }
.sa-api-head h3 { margin: 0; font-size: 1rem; }
.sa-api-head small { color: #64748B; font-size: 0.76rem; }
.sa-api-head .v-pill { margin-left: auto; }
.sa-api-key-row {
  display: flex; align-items: center; gap: 8px;
  background: #1E293B; border: 1px solid #334155; border-radius: 8px;
  padding: 8px 10px; margin-bottom: 12px;
}
.sa-api-key-row code {
  flex: 1; font-family: 'Source Code Pro', monospace; font-size: 0.78rem;
  color: #CBD5E1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sa-api-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.sa-api-meta > div { background: #1E293B; padding: 10px; border-radius: 8px; }
.sa-api-meta b { display: block; color: #F8FAFC; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem; }
.sa-api-meta small { color: #64748B; font-size: 0.74rem; }
.sa-api-actions { display: flex; gap: 8px; }

/* Add-on cards */
.sa-addon-card { padding: 20px; }
.sa-addon-ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(245,158,11,0.12); color: #F59E0B;
  display: grid; place-items: center; margin-bottom: 14px;
}
.sa-addon-ico svg { width: 24px; height: 24px; }
.sa-addon-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.sa-addon-card p { color: #94A3B8; font-size: 0.84rem; margin: 0 0 14px; min-height: 38px; }
.sa-addon-meta {
  display: flex; gap: 18px; margin-bottom: 14px;
  padding: 10px 0; border-top: 1px solid #1E293B; border-bottom: 1px solid #1E293B;
}
.sa-addon-meta b { display: block; color: #FBBF24; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.1rem; }
.sa-addon-meta small { color: #64748B; font-size: 0.74rem; }
.sa-addon-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Gateway cards */
.sa-gw-card { padding: 20px; position: relative; }
.sa-gw-card.is-primary { border-color: #10B981; box-shadow: 0 0 0 1px rgba(16,185,129,0.3); }
.sa-gw-card h3 { display: inline; margin: 0; font-size: 1.05rem; }
.sa-gw-card .v-pill { margin-left: 8px; vertical-align: middle; }
.sa-gw-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; padding: 10px 0; border-top: 1px solid #1E293B; border-bottom: 1px solid #1E293B; }
.sa-gw-meta b { display: block; color: #F8FAFC; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 0.92rem; }
.sa-gw-meta small { color: #64748B; font-size: 0.72rem; }
.sa-gw-foot { display: flex; gap: 8px; }

/* Cohort table */
.sa-cohort tbody td { font-size: 0.82rem; text-align: center; padding: 6px 4px; }
.sa-cohort tbody td:first-child { text-align: left; padding-left: 12px; }
.sa-cohort-cell { display: inline-block; min-width: 44px; padding: 4px 6px; border-radius: 6px; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.78rem; }

/* Reason rows */
.sa-reason-row { display: grid; grid-template-columns: 140px 1fr 40px; gap: 12px; align-items: center; padding: 8px 0; color: #CBD5E1; font-size: 0.86rem; }
.sa-reason-row b { color: #F8FAFC; text-align: right; }
.sa-reason-bar { background: #1E293B; height: 6px; border-radius: 3px; overflow: hidden; }
.sa-reason-bar span { display: block; height: 100%; border-radius: 3px; }

/* Perms matrix */
.sa-perms tbody td { font-size: 0.82rem; text-align: center; padding: 8px 6px; }
.sa-perms tbody td:first-child { text-align: left; padding-left: 12px; }

/* Maintenance grid */
.sa-maint-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 960px) { .sa-maint-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .sa-maint-grid { grid-template-columns: 1fr; } }
.sa-maint-btn {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px;
  background: #1E293B; border: 1px solid #334155; border-radius: 10px;
  color: #CBD5E1; text-align: left; cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.sa-maint-btn:hover { border-color: #F59E0B; background: rgba(245,158,11,0.04); }
.sa-maint-btn svg { width: 22px; height: 22px; color: #F59E0B; flex-shrink: 0; margin-top: 2px; }
.sa-maint-btn b { display: block; color: #F8FAFC; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.92rem; }
.sa-maint-btn small { display: block; color: #94A3B8; font-size: 0.78rem; margin-top: 2px; }
.sa-maint-btn.is-danger svg { color: #DC2626; }
.sa-maint-btn.is-danger:hover { border-color: #DC2626; background: rgba(220,38,38,0.04); }

/* SA filter bar v-toolbar override */
.sa-app .v-toolbar input { background: #1E293B; }

/* Bar chart helper (used across all dashboards) */
.v-bar-chart {
  display: flex; align-items: flex-end; gap: 8px;
  height: 200px; padding: 16px 8px 0;
  border-bottom: 1px solid var(--slate-200);
}
.v-bar-col {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 6px; min-width: 0;
}
.v-bar {
  width: 100%; min-height: 4px;
  background: linear-gradient(180deg, var(--mint-500), var(--mint-600));
  border-radius: 4px 4px 0 0;
  transition: opacity 0.18s;
}
.v-bar:hover { opacity: 0.85; }
.v-bar-col small {
  font-size: 0.72rem; color: var(--slate-500);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
  white-space: nowrap;
}
.sa-app .v-bar-chart { border-bottom-color: #1E293B; }
.sa-app .v-bar-col small { color: #64748B; }

/* Card titles in SA dark theme */
.sa-app .sa-api-head h3,
.sa-app .sa-addon-card h3,
.sa-app .sa-gw-card h3,
.sa-app .sa-tenant-id h2 { color: #F8FAFC; }
.sa-app .sa-tenant-id h2 small { color: #64748B; }
.sa-app .sa-addon-card p { color: #94A3B8; }
.sa-app .sa-api-head small { color: #64748B; }

/* h2 inside SA tenant hero, override default */
.sa-app h2 { color: #F8FAFC; font-family: 'Plus Jakarta Sans', sans-serif; }

/* ============ INTERACTIVE: MODAL + NOTIF DROP + LIGHT PAGINATION + TOAST ============ */

/* ── Modal ──────────────────────────────────────────────────────── */
.v-modal-host {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
}
.v-modal-host.is-open { display: flex; }
.v-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 31, 68, 0.55);
  backdrop-filter: blur(4px);
  animation: v-fade-in 0.18s ease-out;
}
.v-modal-host.is-sa .v-modal-backdrop { background: rgba(2, 8, 23, 0.7); }
.v-modal {
  position: relative; z-index: 1;
  background: #fff; color: var(--navy-800);
  border-radius: 16px; width: min(560px, 92vw);
  max-height: 86vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4);
  animation: v-modal-in 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.v-modal-host.is-sa .v-modal { background: #0F172A; color: #E2E8F0; border: 1px solid #1E293B; }
@keyframes v-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes v-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.v-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--slate-200);
}
.v-modal-host.is-sa .v-modal-head { border-bottom-color: #1E293B; }
.v-modal-head h3 {
  margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 1.1rem; color: var(--navy-800); letter-spacing: -0.01em;
}
.v-modal-host.is-sa .v-modal-head h3 { color: #F8FAFC; }
.v-modal-x {
  background: transparent; border: 0; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px;
  font-size: 1.5rem; line-height: 1; color: var(--slate-500);
}
.v-modal-x:hover { background: var(--slate-100); color: var(--navy-800); }
.v-modal-host.is-sa .v-modal-x { color: #94A3B8; }
.v-modal-host.is-sa .v-modal-x:hover { background: #1E293B; color: #F8FAFC; }
.v-modal-body {
  padding: 22px; overflow-y: auto;
}
.v-modal-sub {
  color: var(--slate-500); font-size: 0.86rem; margin: 0 0 16px;
  background: var(--slate-50); padding: 10px 12px; border-radius: 8px;
  border-left: 3px solid var(--mint-500);
}
.v-modal-host.is-sa .v-modal-sub { background: #1E293B; color: #94A3B8; border-left-color: #F59E0B; }
.v-modal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .v-modal-form { grid-template-columns: 1fr; } }
.v-modal-form .v-field label { font-size: 0.82rem; }
.v-modal-detail {
  display: flex; flex-direction: column; gap: 8px;
}
.v-modal-kv {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 12px; background: var(--slate-50); border-radius: 8px;
  font-size: 0.88rem;
}
.v-modal-host.is-sa .v-modal-kv { background: #1E293B; }
.v-modal-kv span { color: var(--slate-500); font-weight: 500; flex-shrink: 0; }
.v-modal-host.is-sa .v-modal-kv span { color: #94A3B8; }
.v-modal-kv b { color: var(--navy-800); text-align: right; font-family: 'Plus Jakarta Sans', sans-serif; }
.v-modal-host.is-sa .v-modal-kv b { color: #F8FAFC; }
.v-modal-foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 16px 22px; border-top: 1px solid var(--slate-200);
  background: var(--slate-50);
}
.v-modal-host.is-sa .v-modal-foot { background: #0A1429; border-top-color: #1E293B; }

/* ── Notifications dropdown ───────────────────────────────────── */
.v-notif-drop {
  position: fixed; z-index: 150;
  width: 360px; background: #fff;
  border: 1px solid var(--slate-200); border-radius: 14px;
  box-shadow: 0 20px 50px -16px rgba(0,0,0,0.2);
  opacity: 0; transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  overflow: hidden;
}
.v-notif-drop.is-sa { background: #0F172A; border-color: #1E293B; color: #E2E8F0; }
.v-notif-drop.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
@media (max-width: 480px) {
  .v-notif-drop { width: calc(100vw - 24px); right: 12px !important; }
}
.v-notif-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--slate-200);
}
.v-notif-drop.is-sa .v-notif-head { border-bottom-color: #1E293B; }
.v-notif-head b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; color: var(--navy-800); }
.v-notif-drop.is-sa .v-notif-head b { color: #F8FAFC; }
.v-notif-head a { font-size: 0.82rem; color: var(--mint-600); text-decoration: none; font-weight: 600; }
.v-notif-drop.is-sa .v-notif-head a { color: #FBBF24; }
.v-notif-list { max-height: 380px; overflow-y: auto; padding: 4px 0; }
.v-notif-item {
  display: flex; gap: 10px; padding: 12px 16px;
  border-bottom: 1px dashed var(--slate-200); cursor: pointer;
  transition: background 0.15s ease;
}
.v-notif-drop.is-sa .v-notif-item { border-bottom-color: #1E293B; }
.v-notif-item:last-child { border-bottom: 0; }
.v-notif-item:hover { background: var(--slate-50); }
.v-notif-drop.is-sa .v-notif-item:hover { background: #1E293B; }
.v-notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint-500); margin-top: 6px; flex-shrink: 0;
}
.v-notif-item.is-warn .v-notif-dot { background: #F59E0B; }
.v-notif-item.is-critical .v-notif-dot { background: #DC2626; }
.v-notif-item.is-info .v-notif-dot { background: #3B82F6; }
.v-notif-item > div { flex: 1; min-width: 0; }
.v-notif-item p { margin: 0; font-size: 0.86rem; color: var(--navy-800); line-height: 1.4; }
.v-notif-drop.is-sa .v-notif-item p { color: #E2E8F0; }
.v-notif-item p b { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--navy-800); }
.v-notif-drop.is-sa .v-notif-item p b { color: #F8FAFC; }
.v-notif-item small { display: block; color: var(--slate-500); font-size: 0.74rem; margin-top: 3px; }
.v-notif-drop.is-sa .v-notif-item small { color: #64748B; }
.v-notif-foot {
  text-align: center; padding: 12px;
  border-top: 1px solid var(--slate-200); background: var(--slate-50);
}
.v-notif-drop.is-sa .v-notif-foot { background: #0A1429; border-top-color: #1E293B; }
.v-notif-foot a {
  color: var(--navy-800); font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 0.86rem; text-decoration: none;
}
.v-notif-drop.is-sa .v-notif-foot a { color: #FBBF24; }

/* ── Light-theme pagination (mirror of .sa-paginated) ─────────── */
.v-paginated {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6px 0; margin-top: 12px;
  border-top: 1px solid var(--slate-200);
  flex-wrap: wrap; gap: 12px;
}
.v-paginated .sa-page-info { color: var(--slate-500); font-size: 0.86rem; }
.v-paginated .sa-page-info b { color: var(--navy-800); }
.v-paginated .sa-page-size label { color: var(--slate-500); font-size: 0.86rem; }
.v-paginated .sa-page-size select {
  padding: 4px 24px 4px 10px; font-size: 0.82rem;
  background: var(--white); color: var(--navy-800);
  border: 1px solid var(--slate-200); border-radius: 6px;
}
.v-paginated .sa-page-nav button {
  min-width: 32px; height: 32px; padding: 0 8px;
  background: var(--white); color: var(--slate-700);
  border: 1px solid var(--slate-200); border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 0.84rem;
  cursor: pointer;
}
.v-paginated .sa-page-nav button:hover:not(:disabled) {
  background: var(--mint-50); color: var(--mint-600); border-color: var(--mint-500);
}
.v-paginated .sa-page-nav button.is-active {
  background: var(--mint-500); color: var(--white); border-color: var(--mint-500);
}
.v-paginated .sa-page-nav button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Toast ──────────────────────────────────────────────────────── */
.toast-host {
  position: fixed; bottom: 24px; right: 24px; z-index: 250;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.v-toast {
  background: var(--navy-800); color: var(--white);
  padding: 12px 18px; border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
  font-size: 0.86rem; letter-spacing: 0.01em;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
  transform: translateY(20px); opacity: 0;
  transition: transform 0.22s ease-out, opacity 0.22s ease-out;
  pointer-events: auto;
}
.v-toast.is-in { transform: translateY(0); opacity: 1; }
