/* ============================================================
   STAFF V3 — Módulo de Profesionales
   LUZOcrm · tokens LUZOkit exclusivos
   ============================================================ */

/* ── Variables locales ─────────────────────────────────────── */
.st-root, .sp-root, .sc-root {
  --pres: #6d28d9;
  --pres-lt: #ede9fe;
  --tele: #0369a1;
  --tele-lt: #e0f2fe;
  --tele-bd: #bae6fd;
}

/* ══════════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL
   ══════════════════════════════════════════════════════════════ */
.st-root {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--bg-body);
}
.st-scene {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.st-main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.st-topbar {
  background: var(--bg-surface);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
}
.st-topbar-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--tx-base);
}
.st-topbar-count {
  font-size: 11px;
  color: var(--tx-muted);
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
}
.st-spacer { flex: 1; }
.st-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--lk-radius, 6px);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--tx-muted);
  width: 196px;
  cursor: text;
}
.st-search svg {
  width: 12px; height: 12px;
  stroke: var(--tx-muted); fill: none;
  stroke-width: 2; stroke-linecap: round;
  flex-shrink: 0;
}
.st-search input {
  border: none; background: none; outline: none;
  font-size: 12px; color: var(--tx-base);
  font-family: inherit; width: 100%;
}
.st-search input::placeholder { color: var(--tx-muted); }
.st-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  border: 0.5px solid var(--border);
  border-radius: var(--lk-radius, 6px);
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  background: var(--bg-card);
  color: var(--tx-muted);
  transition: background 0.15s;
  white-space: nowrap;
}
.st-btn:hover { background: var(--bg-surface); }
.st-btn svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
}
.st-btn--primary {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
}
.st-btn--primary:hover { opacity: 0.9; background: var(--c-brand); }
.st-btn--primary svg { stroke: #fff; }

/* ── Filters ────────────────────────────────────────────────── */
.st-filters {
  background: var(--bg-surface);
  padding: 9px 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.st-fl {
  font-size: 10px; font-weight: 500;
  color: var(--tx-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.st-chip {
  padding: 4px 11px;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  font-size: 11px; font-weight: 500;
  cursor: pointer;
  background: var(--bg-card);
  color: var(--tx-muted);
  transition: all 0.15s;
  user-select: none;
}
.st-chip:hover { border-color: var(--c-brand-light, #c4b5fd); color: var(--c-brand); }
.st-chip.on {
  background: var(--c-brand-muted, #ede9fe);
  border-color: var(--c-brand-light, #c4b5fd);
  color: var(--c-brand);
}
.st-dvr {
  width: 1px; height: 14px;
  background: var(--border);
  margin: 0 2px; flex-shrink: 0;
}
.st-sort {
  font-size: 11px; color: var(--tx-muted);
  cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  user-select: none;
  margin-left: auto;
}
.st-sort:hover { color: var(--tx-base); }
.st-sort svg {
  width: 11px; height: 11px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
}

/* ── Empty / Loading states ─────────────────────────────────── */
.st-loading, .st-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--tx-muted);
  font-size: 12px;
  gap: 8px;
  padding: 40px;
}
.st-loading svg, .st-empty svg {
  width: 32px; height: 32px;
  stroke: var(--border); fill: none;
  stroke-width: 1.5; stroke-linecap: round;
}

/* ── Cards grid ─────────────────────────────────────────────── */
.st-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  padding: 16px 20px;
}

/* ── Professional card ──────────────────────────────────────── */
.st-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.st-card:hover {
  border-color: var(--c-brand-light, #c4b5fd);
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.07);
}
.st-card.sel {
  border-color: var(--c-brand-light, #c4b5fd);
}
.st-card--yo {
  background: var(--c-brand-muted, #ede9fe);
  border-color: var(--c-brand-light, #c4b5fd);
}
.st-card--yo:hover {
  box-shadow: 0 2px 12px rgba(109, 40, 217, 0.13);
}
.st-card--inactive { opacity: 0.6; }

/* card top */
.st-card-top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 11px;
}
.st-av {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: #fff;
  flex-shrink: 0;
  position: relative;
}
.st-av-dot {
  position: absolute;
  bottom: 0; right: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}
.st-card--yo .st-av-dot {
  border-color: var(--c-brand-muted, #ede9fe);
}
.st-card-info { flex: 1; min-width: 0; }
.st-card-name {
  font-size: 13px; font-weight: 500;
  color: var(--tx-base);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 1px;
  display: flex; align-items: center; gap: 6px;
}
.st-yo-tag {
  font-size: 9px; font-weight: 500;
  padding: 2px 6px; border-radius: 8px;
  background: var(--c-brand); color: #fff;
  flex-shrink: 0; line-height: 1.4;
}
.st-card-esp {
  font-size: 10px; color: var(--tx-muted);
  margin-bottom: 5px;
}
.st-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.st-bdg {
  font-size: 9px; font-weight: 500;
  padding: 2px 6px; border-radius: 10px;
  line-height: 1.4;
}
.st-bdg--green { background: #dcfce7; color: #166534; }
.st-bdg--red   { background: #fee2e2; color: #991b1b; }
.st-bdg--brand {
  background: rgba(109, 40, 217, 0.12);
  color: #5b21b6;
}
.st-card--yo .st-bdg--brand {
  background: rgba(109, 40, 217, 0.22);
  color: #4c1d95;
}
.st-bdg--gray {
  background: rgba(0,0,0,.05);
  color: #475569;
}
.st-card--yo .st-bdg--gray {
  background: rgba(109, 40, 217, 0.1);
  color: #5b21b6;
}
/* kebab */
.st-kebab {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--tx-muted);
  opacity: 0; border: none; background: none;
  transition: opacity 0.15s;
}
.st-card:hover .st-kebab { opacity: 1; }
.st-kebab:hover { background: var(--bg-surface); }
.st-kebab svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

/* card divider */
.st-card-dv {
  height: 0.5px; background: var(--border);
  margin: 0 0 10px;
}
.st-card--yo .st-card-dv { background: var(--c-brand-light, #c4b5fd); }

/* stats row */
.st-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3px; margin-bottom: 10px; text-align: center;
}
.st-stat-n { font-size: 15px; font-weight: 500; }
.st-stat-l { font-size: 9px; color: var(--tx-muted); margin-top: 1px; }

/* occ bar */
.st-obar {
  height: 5px; border-radius: 3px;
  overflow: hidden; margin-bottom: 3px;
}
.st-obar-fill { height: 100%; border-radius: 3px; }
.st-oinfo {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--tx-muted); margin-bottom: 9px;
}
.st-opct { font-weight: 500; }

/* days row */
.st-days { display: flex; gap: 3px; margin-bottom: 10px; }
.st-day {
  width: 22px; height: 22px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 500;
}
.st-day--on { background: var(--c-brand-muted, #ede9fe); color: var(--c-brand); }
.st-card--yo .st-day--on {
  background: rgba(109, 40, 217, 0.25); color: #4c1d95;
}
.st-day--no {
  background: var(--bg-surface); color: var(--tx-muted);
  border: 0.5px solid var(--border);
}
.st-card--yo .st-day--no {
  background: rgba(109, 40, 217, 0.05);
  border-color: var(--c-brand-light, #c4b5fd);
}
.st-day--na { color: var(--border); }

/* card footer */
.st-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 0.5px solid var(--border);
}
.st-card--yo .st-card-foot { border-color: var(--c-brand-light, #c4b5fd); }
.st-card-mod {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--tx-muted);
}
.st-card-mod svg {
  width: 11px; height: 11px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
}
.st-card-actions { display: flex; gap: 4px; }
.st-act-btn {
  width: 24px; height: 24px;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--tx-muted);
  background: var(--bg-card);
}
.st-act-btn:hover {
  border-color: var(--c-brand-light, #c4b5fd);
  color: var(--c-brand);
}
.st-card--yo .st-act-btn {
  background: rgba(255,255,255,0.65);
  border-color: var(--c-brand-light, #c4b5fd);
  color: var(--c-brand);
}
.st-card--yo .st-act-btn:hover { background: #fff; }
.st-act-btn svg {
  width: 11px; height: 11px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
}

/* ══════════════════════════════════════════════════════════════
   BLADE (staff-profile.js)
   ══════════════════════════════════════════════════════════════ */
.st-blade {
  width: 528px;
  flex-shrink: 0;
  border-left: 0.5px solid var(--border);
  background: var(--bg-card);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.st-blade.open { display: flex; }

/* blade hero */
.sp-hero {
  background: var(--bg-surface);
  border-bottom: 0.5px solid var(--border);
  padding: 16px 18px 0;
  flex-shrink: 0;
}
.sp-hero-top {
  display: flex; align-items: flex-start; gap: 11px;
  margin-bottom: 13px;
}
.sp-av {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 500; color: #fff;
  flex-shrink: 0;
}
.sp-hero-info { flex: 1; min-width: 0; }
.sp-name {
  font-size: 15px; font-weight: 500;
  color: var(--tx-base); margin-bottom: 2px;
}
.sp-line2 {
  font-size: 11px; color: var(--tx-muted); margin-bottom: 6px;
}
.sp-line2-sep { padding: 0 4px; opacity: .45; }
.sp-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.sp-bdg {
  font-size: 10px; font-weight: 500;
  padding: 2px 7px; border-radius: 20px;
}
.sp-bdg--green { background: #dcfce7; color: #166534; }
.sp-bdg--brand { background: var(--c-brand-muted, #ede9fe); color: #5b21b6; }
.sp-bdg--gray {
  background: #f1f5f9; color: #475569;
  border: 0.5px solid var(--border);
}
.sp-close {
  width: 26px; height: 26px;
  border: 0.5px solid var(--border);
  border-radius: 6px; background: var(--bg-card);
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  color: var(--tx-muted); flex-shrink: 0;
}
.sp-close svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none; stroke-width: 2;
}
/* blade tabs */
.sp-tabs {
  display: flex; padding: 0 2px; gap: 0;
}
.sp-tab {
  padding: 9px 13px; font-size: 12px; font-weight: 500;
  color: var(--tx-muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap; transition: color .15s, border-color .15s;
}
.sp-tab:hover { color: var(--tx-base); }
.sp-tab.on { color: var(--c-brand); border-bottom-color: var(--c-brand); }
/* blade body */
.sp-body {
  flex: 1; overflow-y: auto; padding: 14px 18px;
}
.sp-tc { display: none; }
.sp-tc.on { display: block; }
/* shared inner */
.sp-sl {
  font-size: 10px; font-weight: 500;
  color: var(--tx-muted); letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 8px;
}
.sp-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.sp-g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.sp-field {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: 6px; padding: 8px 10px;
}
.sp-fl { font-size: 10px; color: var(--tx-muted); margin-bottom: 2px; }
.sp-fv { font-size: 12px; font-weight: 500; color: var(--tx-base); }
.sp-fv.mu { font-weight: 400; color: var(--tx-muted); font-size: 11px; }
.sp-dv { height: 0.5px; background: var(--border); margin: 11px 0; }
.sp-sec { margin-bottom: 12px; }
.sp-bio {
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: 6px; padding: 10px;
  font-size: 12px; color: var(--tx-base); line-height: 1.6;
}
.sp-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.sp-tag {
  font-size: 10px; padding: 2px 8px; border-radius: 20px;
  background: var(--c-brand-muted, #ede9fe); color: #5b21b6; font-weight: 500;
}
/* month header */
.sp-mhdr {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-surface); border: 0.5px solid var(--border);
  border-radius: 6px; padding: 8px 12px; margin-bottom: 10px;
}
.sp-mhdr-lbl { font-size: 13px; font-weight: 500; color: var(--tx-base); }
.sp-mhdr-sub { font-size: 10px; color: var(--tx-muted); margin-top: 1px; }
.sp-marrows { display: flex; gap: 4px; }
.sp-marr {
  width: 24px; height: 24px;
  border: 0.5px solid var(--border); border-radius: 4px;
  background: var(--bg-card); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--tx-muted);
}
.sp-marr svg {
  width: 10px; height: 10px;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round;
}
/* alert banner */
.sp-alert {
  background: #fffbeb; border: 0.5px solid #fde68a;
  border-radius: 6px; padding: 9px 12px;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.sp-alert-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: #f59e0b; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.sp-alert-icon svg {
  width: 11px; height: 11px;
  stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round;
}
.sp-alert-body { flex: 1; }
.sp-alert-t { font-size: 11px; font-weight: 500; color: #92400e; }
.sp-alert-s { font-size: 10px; color: #b45309; }
.sp-alert-btn {
  padding: 4px 10px; font-size: 11px; font-weight: 500;
  border-radius: 4px; background: #f59e0b; color: #fff;
  border: none; cursor: pointer; white-space: nowrap;
}
/* sched mode */
.sp-smode { display: flex; gap: 6px; margin-bottom: 8px; align-items: center; }
.sp-mb {
  padding: 3px 11px; font-size: 11px; font-weight: 500;
  border-radius: 20px; cursor: pointer; border: 0.5px solid transparent;
  transition: all .15s;
}
.sp-mb--pres { background: var(--pres-lt); color: var(--pres); border-color: var(--c-brand-light, #c4b5fd); }
.sp-mb--tele { background: var(--tele-lt); color: var(--tele); border-color: var(--tele-bd); }
.sp-mb--off  { background: var(--bg-surface); color: var(--tx-muted); border-color: var(--border); }
.sp-mhint { font-size: 10px; color: var(--tx-muted); margin-left: 2px; }
/* sched grid */
.sp-sgrid {
  border: 0.5px solid var(--border);
  border-radius: 6px; overflow: hidden; font-size: 10px;
}
.sp-sgi { display: grid; grid-template-columns: 34px repeat(6, 1fr); }
.sp-shd {
  background: var(--bg-surface); padding: 5px 2px;
  text-align: center; font-weight: 500; color: var(--tx-base);
  border-bottom: 0.5px solid var(--border);
  border-right: 0.5px solid var(--border); font-size: 10px;
}
.sp-shd:last-child { border-right: none; }
.sp-shr {
  padding: 5px 4px 5px 0; text-align: right;
  color: var(--tx-muted); font-size: 10px;
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  background: var(--bg-surface); white-space: nowrap;
}
.sp-scell {
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  height: 22px; cursor: pointer; transition: background .1s;
}
.sp-scell:last-child { border-right: none; }
.sp-scell:hover:not(.pres):not(.tele) { background: rgba(109,40,217,.06); }
.sp-scell.pres { background: var(--pres-lt); }
.sp-scell.tele { background: var(--tele-lt); }
.sp-scell.lrow { border-bottom: none; }
/* stats row */
.sp-hstats { display: flex; gap: 8px; margin-top: 10px; }
.sp-hstat {
  flex: 1; background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: 6px; padding: 8px 10px; text-align: center;
}
.sp-hstat--brand {
  background: var(--c-brand-muted, #ede9fe);
  border-color: var(--c-brand-light, #c4b5fd);
}
.sp-hstat-n { font-size: 18px; font-weight: 500; color: var(--c-brand); line-height: 1; }
.sp-hstat--brand .sp-hstat-n { color: var(--c-brand); }
.sp-hstat-l { font-size: 10px; color: var(--tx-muted); margin-top: 1px; }
.sp-hstat-sub { font-size: 9px; color: var(--tx-muted); margin-top: 1px; }
/* agenda abierta rows */
.sp-agrow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 11px; background: var(--bg-surface);
  border: 0.5px solid var(--border); border-radius: 6px; margin-bottom: 7px;
}
.sp-agrow.disabled { opacity: .55; }
.sp-agl { font-size: 12px; font-weight: 500; color: var(--tx-base); }
.sp-ags { font-size: 10px; color: var(--tx-muted); }
.sp-prox {
  font-size: 10px; font-weight: 500; padding: 2px 7px;
  border-radius: 10px; background: #f1f5f9; color: #64748b;
  border: 0.5px solid var(--border); margin-left: 6px;
}
/* toggle */
.sp-tg {
  width: 33px; height: 18px; border-radius: 9px;
  background: #10b981; position: relative; cursor: pointer;
  flex-shrink: 0; transition: background .2s;
}
.sp-tg::after {
  content: '';
  position: absolute; width: 14px; height: 14px;
  background: #fff; border-radius: 50%;
  top: 2px; right: 2px; transition: right .15s, left .15s;
}
.sp-tg.off { background: var(--border); }
.sp-tg.off::after { right: auto; left: 2px; }
.sp-tg.disabled { pointer-events: none; }
/* prestaciones */
.sp-pl { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sp-pi {
  background: var(--bg-surface); border: 0.5px solid var(--border);
  border-radius: 6px; padding: 8px 10px;
  display: flex; align-items: center; gap: 8px;
}
.sp-pin { font-size: 12px; font-weight: 500; color: var(--tx-base); }
.sp-pic { font-size: 10px; color: var(--tx-muted); }
.sp-pip {
  font-size: 12px; font-weight: 500; color: var(--tx-base);
  cursor: pointer; padding: 3px 7px; border-radius: 4px;
  border: 0.5px solid transparent;
  white-space: nowrap; min-width: 62px; text-align: right; outline: none;
}
.sp-pip:hover { background: var(--bg-card); border-color: var(--border); }
.sp-pip:focus { background: var(--bg-card); border-color: var(--c-brand); }
.sp-pip.off { color: var(--tx-muted); text-decoration: line-through; font-weight: 400; }
.sp-tgsm {
  width: 28px; height: 16px; border-radius: 8px;
  background: #10b981; position: relative; flex-shrink: 0; cursor: pointer;
  transition: background .2s;
}
.sp-tgsm::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  background: #fff; border-radius: 50%; top: 2px; right: 2px;
  transition: right .15s, left .15s;
}
.sp-tgsm.off { background: #cbd5e1; }
.sp-tgsm.off::after { right: auto; left: 2px; }
/* video */
.sp-prov2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.sp-pvcard {
  background: var(--bg-surface); border: 0.5px solid var(--border);
  border-radius: 10px; padding: 14px 12px;
  text-align: center; cursor: pointer; transition: all .15s;
}
.sp-pvcard:hover { border-color: var(--c-brand-light, #c4b5fd); }
.sp-pvcard.sel { background: var(--c-brand-muted, #ede9fe); border-color: var(--c-brand-light, #c4b5fd); }
.sp-pvicon { margin-bottom: 6px; display: flex; justify-content: center; }
.sp-pvname { font-size: 12px; font-weight: 500; color: var(--tx-base); }
.sp-pvcard.sel .sp-pvname { color: var(--c-brand); }
.sp-dwd-hdr {
  display: flex; align-items: center; gap: 10px; padding: 12px 13px;
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: 6px; margin-top: 10px;
}
.sp-dwd-logo {
  width: 38px; height: 38px; border-radius: 7px;
  background: var(--bg-card); border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sp-dwd-t { font-size: 12px; font-weight: 500; color: var(--tx-base); }
.sp-dwd-s { font-size: 10px; color: var(--tx-muted); margin-top: 2px; line-height: 1.4; }
.sp-tid-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f0f9ff; border: 0.5px solid #bae6fd;
  border-radius: 4px; padding: 2px 7px;
  font-size: 10px; font-weight: 500; color: #0369a1; margin-top: 5px;
}
.sp-explain {
  background: var(--bg-surface); border: 0.5px solid var(--border);
  border-radius: 6px; padding: 10px 12px; margin-top: 8px;
}
.sp-explain p { font-size: 11px; color: var(--tx-base); line-height: 1.6; }
.sp-hchk-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; margin-bottom: 6px;
}
.sp-hchk-lbl {
  font-size: 10px; font-weight: 500; color: var(--tx-muted);
  letter-spacing: .05em; text-transform: uppercase;
}
.sp-reverif {
  padding: 4px 10px; font-size: 10px; font-weight: 500;
  border: 0.5px solid var(--border); border-radius: 4px;
  background: var(--bg-card); color: var(--tx-muted); cursor: pointer;
}
.sp-hclist { display: flex; flex-direction: column; gap: 5px; }
.sp-hci {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; background: var(--bg-card);
  border: 0.5px solid var(--border); border-radius: 6px;
}
.sp-hci-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.d-ok { background: #10b981; }
.d-warn { background: #f59e0b; }
.d-err { background: #ef4444; }
.d-chk { background: var(--border); }
.sp-hci-name { font-size: 11px; font-weight: 500; color: var(--tx-base); flex: 1; }
.sp-hci-status { font-size: 10px; color: var(--tx-muted); }
.sp-hci-status.ok { color: #059669; }
.sp-hci-status.warn { color: #d97706; }
.sp-lrow { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.sp-linput {
  flex: 1; background: var(--bg-surface); border: 0.5px solid var(--border);
  border-radius: 6px; padding: 6px 9px; font-size: 11px;
  color: var(--tx-muted); font-family: monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sp-cpbtn {
  padding: 5px 10px; background: var(--bg-surface);
  border: 0.5px solid var(--border); border-radius: 6px;
  font-size: 11px; font-weight: 500; cursor: pointer; color: var(--tx-base);
}
.sp-zinput {
  width: 100%; background: transparent; border: none;
  font-size: 12px; color: var(--tx-base); font-weight: 500;
  outline: none; padding: 0; margin-top: 2px; font-family: inherit;
}
/* blade footer */
.sp-footer {
  border-top: 0.5px solid var(--border); padding: 10px 18px;
  display: flex; gap: 7px; background: var(--bg-card); flex-shrink: 0;
}
.sp-btn {
  padding: 6px 13px; border-radius: 6px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  border: 0.5px solid transparent;
}
.sp-btn--primary { background: var(--c-brand); color: #fff; }
.sp-btn--primary:hover { opacity: .9; }
.sp-btn--ghost {
  background: transparent; color: var(--tx-muted);
  border-color: var(--border);
}
.sp-btn--ghost:hover { background: var(--bg-surface); }
.sp-btn--danger {
  background: transparent; color: #dc2626;
  border-color: #fecaca;
}

/* ══════════════════════════════════════════════════════════════
   CAPACITY VIEW (staff-capacity.js)
   ══════════════════════════════════════════════════════════════ */
.sc-root {
  flex: 1; overflow-y: auto;
  padding: 14px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
/* capacity topbar */
.sc-topbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.sc-wsel {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-surface); border: 0.5px solid var(--border);
  border-radius: 6px; padding: 6px 11px;
  font-size: 12px; font-weight: 500; color: var(--tx-base); cursor: pointer;
}
.sc-wsel svg {
  width: 12px; height: 12px;
  stroke: var(--tx-muted); fill: none; stroke-width: 2; stroke-linecap: round;
}
/* KPI row */
.sc-krow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sc-kcard {
  background: var(--bg-surface); border: 0.5px solid var(--border);
  border-radius: 6px; padding: 11px 13px;
}
.sc-kcard.alert { background: rgba(220,38,38,.06); border-color: rgba(220,38,38,.18); }
.sc-kn { font-size: 22px; font-weight: 500; color: var(--c-brand); line-height: 1; }
.sc-kcard.alert .sc-kn { color: #dc2626; }
.sc-kl { font-size: 10px; color: var(--tx-muted); margin-top: 3px; }
.sc-ksub { font-size: 10px; margin-top: 2px; }
/* table */
.sc-tbl-wrap {
  border: 0.5px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.sc-tbl { width: 100%; border-collapse: collapse; }
.sc-tbl thead th {
  padding: 7px 10px; font-size: 10px; font-weight: 500;
  color: var(--tx-muted); letter-spacing: .04em; text-transform: uppercase;
  background: var(--bg-surface); border-bottom: 0.5px solid var(--border);
  text-align: left; white-space: nowrap; user-select: none; cursor: pointer;
}
.sc-tbl thead th:hover { color: var(--tx-base); }
.sc-tbl thead th.day-th { text-align: center; width: 42px; padding: 7px 4px; }
.sc-tbl thead th.sd::after { content: ' ↓'; color: var(--c-brand); }
.sc-tbl thead th.sa::after { content: ' ↑'; color: var(--c-brand); }
.sc-tbl tbody tr {
  border-bottom: 0.5px solid var(--border);
  transition: background .1s; cursor: pointer;
}
.sc-tbl tbody tr:last-child { border-bottom: none; }
.sc-tbl tbody tr:hover { background: var(--bg-surface); }
.sc-tbl tbody tr.sel { background: var(--c-brand-muted, #ede9fe); }
.sc-tbl tfoot td {
  background: var(--bg-surface); border-top: 0.5px solid var(--border);
  padding: 8px 10px; font-size: 11px; font-weight: 500; color: var(--tx-muted);
}
/* table cells */
.sc-pcell {
  padding: 10px;
  display: flex; align-items: center; gap: 8px;
}
.sc-pav {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; color: #fff; flex-shrink: 0;
}
.sc-pnm { font-size: 12px; font-weight: 500; color: var(--tx-base); white-space: nowrap; }
.sc-pesp { font-size: 10px; color: var(--tx-muted); }
.sc-dcell { padding: 6px 4px; text-align: center; vertical-align: middle; }
.sc-dbar-outer {
  width: 22px; height: 32px; background: var(--bg-surface);
  border-radius: 3px; overflow: hidden; border: 0.5px solid var(--border);
  display: flex; align-items: flex-end; margin: 0 auto;
}
.sc-dbar-inner { width: 100%; border-radius: 3px; transition: height .3s; }
.sc-dbar-lbl { font-size: 9px; color: var(--tx-muted); white-space: nowrap; margin-top: 2px; }
.sc-ocell { padding: 8px 10px; }
.sc-obar-wrap { display: flex; height: 6px; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.sc-obar-bk { height: 100%; }
.sc-orow { display: flex; align-items: center; justify-content: space-between; }
.sc-opct { font-size: 13px; font-weight: 500; }
.sc-ohrs { font-size: 10px; color: var(--tx-muted); }
.sc-ccell { padding: 8px 10px; text-align: center; }
.sc-cnum { font-size: 14px; font-weight: 500; color: var(--tx-base); }
.sc-csub { font-size: 10px; color: var(--tx-muted); }
.sc-acell { padding: 8px; display: flex; gap: 4px; align-items: center; justify-content: center; }
.sc-abtn {
  width: 26px; height: 26px; border: 0.5px solid var(--border);
  border-radius: 6px; background: var(--bg-card);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--tx-muted);
}
.sc-abtn:hover { border-color: var(--c-brand-light, #c4b5fd); color: var(--c-brand); }
.sc-abtn svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round;
}
/* gap section */
.sc-gap-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 9px;
}
.sc-gap-title {
  font-size: 12px; font-weight: 500; color: var(--tx-base);
  display: flex; align-items: center; gap: 6px;
}
.sc-gap-title svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round;
}
.sc-gap-cnt {
  background: rgba(220,38,38,.08); color: #dc2626;
  font-size: 10px; font-weight: 500; padding: 2px 7px;
  border-radius: 10px; border: 0.5px solid rgba(220,38,38,.18);
}
/* gap cards — Alt C horizontal */
.sc-glist { display: flex; flex-direction: column; gap: 7px; }
.sc-gc {
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: 10px; padding: 11px 13px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color .15s; cursor: pointer;
}
.sc-gc:hover { border-color: var(--c-brand-light, #c4b5fd); }
.sc-gc-icon {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sc-gc-icon svg {
  width: 18px; height: 18px;
  stroke-linecap: round; stroke-linejoin: round;
}
.sc-gc-body { flex: 1; min-width: 0; }
.sc-gc-row1 {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 2px; flex-wrap: wrap;
}
.sc-gc-title { font-size: 12px; font-weight: 500; color: var(--tx-base); }
.sc-gc-sev {
  font-size: 9px; font-weight: 500; padding: 1px 6px;
  border-radius: 8px; white-space: nowrap;
}
.sc-gc-desc { font-size: 10px; color: var(--tx-muted); line-height: 1.4; }
.sc-gc-right {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 3px; flex-shrink: 0;
}
.sc-gc-met { font-size: 17px; font-weight: 500; line-height: 1; text-align: right; }
.sc-gc-sub { font-size: 9px; color: var(--tx-muted); text-align: right; }
.sc-gc-act {
  font-size: 10px; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; gap: 2px;
  white-space: nowrap; background: none; border: none; padding: 0;
}
.sc-gc-act svg {
  width: 10px; height: 10px;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round;
}
/* flow panel */
.sc-flow { display: none; border-top: 0.5px solid var(--border); padding: 14px 16px; background: var(--bg-surface); }
.sc-flow.open { display: block; }
.sc-flow-title {
  font-size: 10px; font-weight: 500; color: var(--tx-muted);
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px;
}
.sc-steps {
  display: flex; gap: 0; align-items: flex-start; position: relative;
}
.sc-steps::before {
  content: ''; position: absolute; top: 16px; left: 16px; right: 16px;
  height: 0.5px; background: var(--border); z-index: 0;
}
.sc-step {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 5px; position: relative; z-index: 1;
}
.sc-step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; flex-shrink: 0;
  border: 0.5px solid; transition: all .2s;
}
.sc-step-dot svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round;
}
.sc-step-lbl {
  font-size: 10px; font-weight: 500; text-align: center;
  line-height: 1.3; max-width: 72px; color: var(--tx-base);
}
.sc-step-sub {
  font-size: 9px; color: var(--tx-muted); text-align: center;
  line-height: 1.3; max-width: 72px; white-space: pre-line;
}
.sc-step.pending .sc-step-dot {
  background: var(--bg-surface) !important;
  border-color: var(--border) !important;
  color: var(--tx-muted) !important;
}
.sc-flow-actions { display: flex; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.sc-fa {
  padding: 6px 13px; border-radius: 6px; font-size: 11px; font-weight: 500;
  cursor: pointer; border: 0.5px solid; transition: opacity .15s;
}
.sc-fa:hover { opacity: .85; }
.sc-fa--s { background: var(--bg-card); color: var(--tx-base); border-color: var(--border); }
.sc-fa--s:hover { background: var(--bg-surface); }
.sc-flow-note {
  margin-top: 10px; padding: 8px 10px; border-radius: 6px;
  font-size: 10px; line-height: 1.55;
  display: flex; gap: 8px; align-items: flex-start;
}
.sc-fn-icon {
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 0.5px;
}
.sc-fn-icon svg {
  width: 9px; height: 9px; stroke: #fff; fill: none;
  stroke-width: 2.5; stroke-linecap: round;
}
.st-av img{width:100%;height:100%;object-fit:cover;border-radius:50%}
