/* ============================================================
   Visonta — panel.css
   Token sistemi --vs-* (renk değerleri Eronta ile aynı,
   isimler --vs- prefix'i ile)
   ============================================================ */

:root {
  /* Sidebar */
  --vs-side-bg:      #0b0f17;
  --vs-side-bg2:     #070a10;
  --vs-side-line:    rgba(255, 255, 255, .08);
  --vs-side-text:    #e9eefc;
  --vs-side-muted:   rgba(233, 238, 252, .62);
  --vs-side-w:       280px;
  --vs-side-w-min:   72px;

  /* Page */
  --vs-page-bg:      #f4f6fb;
  --vs-card:         #ffffff;
  --vs-line:         #edf0f6;
  --vs-text:         #0f172a;
  --vs-muted:        #64748b;
  --vs-main-pad:     24px;
  --vs-topbar-h:     56px;

  /* Brand / accent */
  --vs-primary:      rgb(111, 85, 255);
  --vs-primary2:     rgb(95, 70, 230);
  --vs-primary-soft: rgba(111, 85, 255, .12);

  /* States */
  --vs-ok:           #16a34a;
  --vs-bad:          #ef4444;
  --vs-warn:         #f59e0b;

  /* Shadow / radius */
  --vs-shadow:       0 2px 8px  rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .03);
  --vs-shadow2:      0 1px 3px  rgba(15, 23, 42, .04);
  --vs-shadow-hover: 0 8px 24px rgba(15, 23, 42, .10), 0 2px 6px rgba(15, 23, 42, .04);
  --vs-r:            5px;
  --vs-r2:           5px;
  --vs-r-lg:         12px;

  /* Focus / motion */
  --vs-focus:        0 0 0 4px rgba(111, 85, 255, .15);
  --vs-ease:         cubic-bezier(.25, .46, .45, .94);
}

/* ── reset ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 14px;
  color: var(--vs-text);
  background: var(--vs-page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a       { color: inherit; text-decoration: none; }
button  { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }
img     { display: block; max-width: 100%; }
svg     { display: block; }

::selection { background: var(--vs-primary-soft); color: var(--vs-primary2); }

/* ── app shell ─────────────────────────────────────────────── */
.app {
  display: flex;
  min-height: 100vh;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--vs-page-bg);
}

.content {
  flex: 1;
  padding: var(--vs-main-pad);
  min-width: 0;
}

/* ── sidebar ───────────────────────────────────────────────── */
.side {
  width: var(--vs-side-w);
  min-width: var(--vs-side-w);
  background: linear-gradient(180deg, var(--vs-side-bg) 0%, var(--vs-side-bg2) 100%);
  color: var(--vs-side-text);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--vs-side-line);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  transition: width .25s var(--vs-ease), min-width .25s var(--vs-ease);
}
.side.collapsed { width: var(--vs-side-w-min); min-width: var(--vs-side-w-min); }
.side.collapsed .label,
.side.collapsed .caret,
.side.collapsed .s-search,
.side.collapsed .brand-mini ~ * { display: none !important; }
.side.collapsed .brand-logo { display: none; }
.side.collapsed .brand-mini { display: block; }

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--vs-side-line);
  position: relative;
}
.brand-logo-wrap { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.brand-logo {
  height: 28px; width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}
.brand-mini { display: none; height: 28px; width: 28px; }
.brand-line { position: absolute; left: 16px; right: 16px; bottom: -1px; height: 1px; background: var(--vs-side-line); }
.brand-line-glow { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--vs-primary), transparent); opacity: .4; }

.side-toggle {
  background: transparent;
  border: 1px solid var(--vs-side-line);
  color: var(--vs-side-muted);
  width: 28px; height: 28px;
  border-radius: var(--vs-r);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s var(--vs-ease), color .15s var(--vs-ease);
}
.side-toggle:hover { background: rgba(255, 255, 255, .06); color: var(--vs-side-text); }

/* search */
.s-search {
  position: relative;
  margin: 12px 14px;
}
.s-search input {
  width: 100%;
  padding: 9px 36px 9px 34px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--vs-side-line);
  border-radius: var(--vs-r);
  color: var(--vs-side-text);
  outline: none;
  transition: border-color .15s var(--vs-ease), box-shadow .15s var(--vs-ease);
}
.s-search input::placeholder { color: var(--vs-side-muted); }
.s-search input:focus {
  border-color: var(--vs-primary);
  box-shadow: var(--vs-focus);
}
.s-search .sico {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--vs-side-muted);
}
.s-search .kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 10px; color: var(--vs-side-muted);
  border: 1px solid var(--vs-side-line);
  padding: 1px 6px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* nav */
.nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .14) transparent;
}
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 3px; }

.group { margin: 2px 0; }

.nav a, .nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--vs-r);
  background: transparent;
  border: 0;
  color: var(--vs-side-text);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: background .15s var(--vs-ease), color .15s var(--vs-ease);
}
.nav a .left, .nav button .left {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; flex: 1;
}
.nav .ico {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--vs-side-muted);
  transition: color .15s var(--vs-ease);
}
.nav .label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--vs-side-text);
}

.nav a:hover, .nav button:hover {
  background: rgba(255, 255, 255, .04);
}
.nav a:hover .ico, .nav button:hover .ico { color: var(--vs-side-text); }

.nav .navlink.active {
  background: var(--vs-primary-soft);
  color: #fff;
}
.nav .navlink.active .ico,
.nav .navlink.active .label { color: #fff; }

/* accordion */
.acc .caret {
  width: 14px; height: 14px;
  color: var(--vs-side-muted);
  transition: transform .2s var(--vs-ease);
}
.acc.open .caret { transform: rotate(180deg); }

.sub {
  display: none;
  padding: 4px 0 6px 28px;
  border-left: 1px dashed var(--vs-side-line);
  margin-left: 18px;
}
.acc.open + .sub { display: block; }
.sub a {
  font-size: 13px;
  padding: 6px 10px;
  color: var(--vs-side-muted);
}
.sub a:hover { color: var(--vs-side-text); }
.sub a.active { color: #fff; background: var(--vs-primary-soft); }

/* ── topbar ────────────────────────────────────────────────── */
.topbar {
  height: var(--vs-topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--vs-main-pad);
  background: var(--vs-card);
  border-bottom: 1px solid var(--vs-line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .crumb {
  font-size: 13px;
  color: var(--vs-muted);
}
.topbar .crumb b { color: var(--vs-text); font-weight: 600; }
.topbar .spacer { flex: 1; }

.topbar .userchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--vs-line);
  background: var(--vs-card);
  cursor: pointer;
  transition: box-shadow .15s var(--vs-ease);
}
.topbar .userchip:hover { box-shadow: var(--vs-shadow); }
.topbar .userchip .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--vs-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.topbar .userchip .name {
  font-size: 13px;
  color: var(--vs-text);
}
.topbar .userchip .role {
  font-size: 11px;
  color: var(--vs-muted);
  margin-left: 4px;
}

/* ── card / button / input ─────────────────────────────────── */
.card {
  background: var(--vs-card);
  border: 1px solid var(--vs-line);
  border-radius: var(--vs-r-lg);
  box-shadow: var(--vs-shadow);
  padding: 18px;
}
.card + .card { margin-top: 16px; }
.card h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--vs-r);
  border: 1px solid var(--vs-line);
  background: var(--vs-card);
  color: var(--vs-text);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s var(--vs-ease), border-color .15s var(--vs-ease), box-shadow .15s var(--vs-ease);
}
.btn:hover { box-shadow: var(--vs-shadow); }
.btn:focus-visible { outline: none; box-shadow: var(--vs-focus); }
.btn-primary {
  background: var(--vs-primary);
  color: #fff;
  border-color: var(--vs-primary);
}
.btn-primary:hover { background: var(--vs-primary2); border-color: var(--vs-primary2); }
.btn-block { width: 100%; }

.input, .select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--vs-line);
  border-radius: var(--vs-r);
  background: var(--vs-card);
  color: var(--vs-text);
  outline: none;
  transition: border-color .15s var(--vs-ease), box-shadow .15s var(--vs-ease);
}
.input:focus, .select:focus {
  border-color: var(--vs-primary);
  box-shadow: var(--vs-focus);
}

label.field {
  display: block;
  margin-bottom: 12px;
}
label.field .lbl {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--vs-muted);
  margin-bottom: 4px;
}

/* ── login layout ──────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 30%, rgba(111, 85, 255, .18) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(95, 70, 230, .14) 0%, transparent 45%),
    var(--vs-page-bg);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--vs-card);
  border: 1px solid var(--vs-line);
  border-radius: var(--vs-r-lg);
  box-shadow: var(--vs-shadow-hover);
  padding: 28px 28px 24px;
}
.login-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.login-brand img { height: 32px; }
.login-brand .name {
  font-size: 18px; font-weight: 700; letter-spacing: .04em;
  color: var(--vs-text);
}
.login-card h1 {
  margin: 0 0 4px; font-size: 18px; font-weight: 600;
}
.login-card p.muted {
  margin: 0 0 18px; font-size: 13px; color: var(--vs-muted);
}
.login-error {
  display: none;
  margin: 10px 0 0;
  padding: 8px 12px;
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .25);
  border-radius: var(--vs-r);
  color: var(--vs-bad);
  font-size: 12.5px;
}
.login-error.show { display: block; }

/* ── page header / placeholder ─────────────────────────────── */
.page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin: 0 0 16px;
  gap: 16px;
}
.page-header h1 {
  margin: 0; font-size: 20px; font-weight: 600;
}
.page-header .sub {
  margin-top: 4px; color: var(--vs-muted); font-size: 13px;
}

.placeholder {
  background: var(--vs-card);
  border: 1px dashed var(--vs-line);
  border-radius: var(--vs-r-lg);
  padding: 40px;
  text-align: center;
  color: var(--vs-muted);
}
.placeholder .ico {
  width: 36px; height: 36px;
  margin: 0 auto 8px;
  color: var(--vs-primary);
}

/* ── grid helper ───────────────────────────────────────────── */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.kpi {
  background: var(--vs-card);
  border: 1px solid var(--vs-line);
  border-radius: var(--vs-r-lg);
  padding: 16px;
  box-shadow: var(--vs-shadow2);
}
.kpi .lbl { color: var(--vs-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.kpi .val { font-size: 22px; font-weight: 700; margin-top: 6px; }

/* ── mobile / responsive ───────────────────────────────────── */
.sideburger {
  display: none;
  position: fixed; top: 12px; left: 12px;
  z-index: 30;
  width: 38px; height: 38px;
  border-radius: var(--vs-r);
  background: var(--vs-card);
  border: 1px solid var(--vs-line);
  box-shadow: var(--vs-shadow);
  align-items: center; justify-content: center;
}
.side-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .4);
  z-index: 20;
}

@media (max-width: 880px) {
  .side {
    position: fixed; top: 0; left: 0; z-index: 25;
    transform: translateX(-100%);
    transition: transform .25s var(--vs-ease);
  }
  .side.open { transform: translateX(0); }
  .side-overlay.open { display: block; }
  .sideburger { display: inline-flex; }
  .topbar { padding-left: 64px; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

/* ── data table ────────────────────────────────────────────── */
.vs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vs-table thead th {
  text-align: left; font-weight: 600; color: var(--vs-muted);
  padding: 10px 12px; border-bottom: 1px solid var(--vs-line);
  background: var(--vs-card); position: sticky; top: 0;
}
.vs-table tbody td {
  padding: 10px 12px; border-bottom: 1px solid var(--vs-line);
  color: var(--vs-text);
}
.vs-table tbody tr:hover td { background: rgba(111,85,255,0.04); }
.vs-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.vs-table .actions { text-align: right; white-space: nowrap; }

.vs-empty { padding: 40px; text-align: center; color: var(--vs-muted); }

/* ── badges & chips ───────────────────────────────────────── */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  background: var(--vs-line); color: var(--vs-text);
}
.badge.ok    { background: rgba(34,197,94,.12); color: #16a34a; }
.badge.warn  { background: rgba(234,179,8,.12); color: #b45309; }
.badge.bad   { background: rgba(239,68,68,.12); color: var(--vs-bad); }
.badge.muted { background: rgba(148,163,184,.12); color: var(--vs-muted); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--vs-line); background: var(--vs-card);
  color: var(--vs-text); font-size: 12px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.chip:hover { background: rgba(111,85,255,0.04); }
.chip.active { background: var(--vs-primary); border-color: var(--vs-primary); color: #fff; }

/* ── pagination ───────────────────────────────────────────── */
.pager {
  display: flex; align-items: center; gap: 8px; justify-content: flex-end;
  padding: 12px 0 0;
  font-size: 12px; color: var(--vs-muted);
}
.pager .btn { padding: 6px 10px; font-size: 12px; }
.pager .info { margin-right: 8px; }

/* ── drawer (right side panel) ────────────────────────────── */
.vs-drawer-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15,23,42,.42);
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--vs-ease);
}
.vs-drawer-backdrop.show { opacity: 1; pointer-events: auto; }

.vs-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 51;
  width: 480px; max-width: 100vw;
  background: var(--vs-card);
  border-left: 1px solid var(--vs-line);
  box-shadow: var(--vs-shadow-hover);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s var(--vs-ease);
}
.vs-drawer.show { transform: translateX(0); }
.vs-drawer header {
  padding: 14px 18px; border-bottom: 1px solid var(--vs-line);
  display: flex; align-items: center; gap: 12px;
}
.vs-drawer header h2 { margin: 0; font-size: 15px; font-weight: 600; flex: 1; }
.vs-drawer .x {
  width: 28px; height: 28px; border-radius: 8px;
  background: transparent; border: 1px solid transparent; cursor: pointer;
  color: var(--vs-muted); font-size: 18px; line-height: 1;
}
.vs-drawer .x:hover { background: var(--vs-line); color: var(--vs-text); }
.vs-drawer .body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.vs-drawer footer {
  padding: 12px 18px; border-top: 1px solid var(--vs-line);
  display: flex; gap: 8px; justify-content: flex-end;
  background: var(--vs-card);
}

@media (max-width: 540px) { .vs-drawer { width: 100vw; } }

/* ── form helpers ─────────────────────────────────────────── */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-error .input,
.field-error .select { border-color: var(--vs-bad); box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
.field-error .err {
  display: block; margin-top: 4px; font-size: 11.5px; color: var(--vs-bad);
}
label.field .err { display: none; }
.radio-row { display: flex; gap: 16px; align-items: center; }
.radio-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }

/* ── toast ────────────────────────────────────────────────── */
.vs-toast-host {
  position: fixed; bottom: 16px; right: 16px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.vs-toast {
  pointer-events: auto;
  min-width: 240px; max-width: 360px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--vs-card); color: var(--vs-text);
  border: 1px solid var(--vs-line);
  box-shadow: var(--vs-shadow-hover);
  font-size: 13px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s var(--vs-ease), transform .2s var(--vs-ease);
}
.vs-toast.show { opacity: 1; transform: translateY(0); }
.vs-toast-success { border-left: 3px solid #16a34a; }
.vs-toast-error   { border-left: 3px solid var(--vs-bad); }
.vs-toast-warn    { border-left: 3px solid #d97706; }
.vs-toast-info    { border-left: 3px solid var(--vs-primary); }

/* ── modal ────────────────────────────────────────────────── */
.vs-modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15,23,42,.42);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s var(--vs-ease);
}
.vs-modal-backdrop.show { opacity: 1; }
.vs-modal {
  background: var(--vs-card); border-radius: var(--vs-r-lg);
  border: 1px solid var(--vs-line); padding: 22px;
  width: 100%; max-width: 380px;
  box-shadow: var(--vs-shadow-hover);
}
.vs-modal h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.vs-modal p  { margin: 0 0 16px; font-size: 13px; color: var(--vs-muted); }
.vs-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ── ui helpers (Commit 10) ─────────────────────────────── */

/* skeleton shimmer */
.skeleton {
  display: inline-block; vertical-align: middle;
  background: linear-gradient(90deg, rgba(148,163,184,.10) 25%, rgba(148,163,184,.22) 37%, rgba(148,163,184,.10) 63%);
  background-size: 400% 100%;
  animation: vs-shimmer 1.4s ease infinite;
  border-radius: 4px; min-width: 40px; height: 12px;
}
@keyframes vs-shimmer { 0%{background-position:100% 50%} 100%{background-position:0 50%} }

/* empty state */
.empty-state {
  padding: 36px 16px; text-align: center; color: var(--vs-muted);
}
.empty-state-title { font-weight: 600; color: var(--vs-text); margin-bottom: 4px; }
.empty-state-msg   { font-size: 13px; margin-bottom: 12px; }

/* form helpers */
.form-required { color: var(--vs-bad); margin-left: 2px; }
.form-hint     { display: block; margin-top: 4px; font-size: 11.5px; color: var(--vs-muted); }
.form-error    { display: block; margin-top: 4px; font-size: 11.5px; color: var(--vs-bad); min-height: 0; }
.field.has-error .input,
.field.has-error .select,
.field.has-error textarea {
  border-color: var(--vs-bad);
  box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}
.field-2 { grid-column: 1 / -1; }

/* danger button */
.btn-danger {
  background: var(--vs-bad); color: #fff; border-color: var(--vs-bad);
}
.btn-danger:hover { filter: brightness(.92); }

/* list-page filter row */
.lp-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* toast extras */
.vs-toast { display: flex; align-items: center; gap: 10px; }
.vs-toast-msg     { flex: 1; }
.vs-toast-action  {
  border: 0; background: transparent; color: var(--vs-primary);
  font-weight: 600; font-size: 12.5px; padding: 4px 8px; border-radius: 6px;
  cursor: pointer;
}
.vs-toast-action:hover { background: rgba(111,85,255,0.10); }
.vs-toast-x {
  border: 0; background: transparent; color: var(--vs-muted);
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.vs-toast-x:hover { color: var(--vs-text); }

/* modal sizes */
.vs-modal-sm { max-width: 380px; }
.vs-modal-md { max-width: 520px; }
.vs-modal-lg { max-width: 760px; }
.vs-modal.is-loading { opacity: .8; pointer-events: none; }
.vs-modal-body { font-size: 13.5px; color: var(--vs-text); }
.vs-modal-body p { margin: 0 0 12px; color: var(--vs-muted); }

/* drawer loading */
.vs-drawer.is-loading { opacity: .92; }

/* ── Commit 11: products page ────────────────────────────────────── */

/* KPI bar */
.kpi-bar {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px; margin-bottom: 14px;
}
@media (max-width: 880px) { .kpi-bar { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: var(--vs-bg-card); border: 1px solid var(--vs-line);
  border-radius: 12px; padding: 14px 16px;
}
.kpi-label { font-size: 12px; color: var(--vs-muted); margin-bottom: 6px; }
.kpi-value { font-size: 22px; font-weight: 700; color: var(--vs-text); }
.kpi-value.warn { color: #b45309; }

/* ListPage extensions */
.lp-toolbar { display: flex; gap: 8px; align-items: center; }
.lp-toolbar .btn { display: inline-flex; align-items: center; gap: 6px; }
.btn-ico { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
.lp-pagesize {
  margin-right: 12px; max-width: 80px;
}
.lp-selbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--vs-primary-soft);
  border-bottom: 1px solid var(--vs-line);
  font-size: 13px;
}
.lp-selbar > span { font-weight: 600; color: var(--vs-text); margin-right: auto; }
.lp-selclear { margin-left: 4px; }

/* table extras */
.vs-table th.lp-sel, .vs-table td.lp-sel { width: 36px; text-align: center; }
.vs-table tr.is-selected { background: rgba(111,85,255,0.05); }

.lp-thumb {
  display: inline-block; width: 36px; height: 36px;
  border-radius: 6px; object-fit: cover;
  background: var(--vs-bg-soft, #f3f4f6); border: 1px solid var(--vs-line);
  vertical-align: middle;
}
.lp-thumb-empty { color: var(--vs-muted); padding: 8px; }
.lp-thumb-empty svg { width: 18px; height: 18px; display: block; margin: auto; }

.lp-stock-low {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: rgba(220,38,38,0.10); color: #b91c1c; font-weight: 600;
}

/* form section divider */
.vs-form-section {
  grid-column: 1 / -1;
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  color: var(--vs-muted); text-transform: uppercase;
  margin: 14px 0 4px; padding-bottom: 4px;
  border-bottom: 1px dashed var(--vs-line);
}
.vs-form-section:first-child { margin-top: 0; }

/* small chips */
.chip-soft   { background: var(--vs-primary-soft); color: var(--vs-primary, #6f55ff); padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.chip-ok     { background: rgba(16,185,129,0.12); color: #047857; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.chip-muted  { background: rgba(107,114,128,0.10); color: #6b7280; padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.muted       { color: var(--vs-muted); }
.mono        { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* sidebar accordion caret tweak */
.acc { width: 100%; background: transparent; border: 0; cursor: pointer; }
.acc .caret { width: 14px; height: 14px; transition: transform .18s; }

/* ── Accounts (Commit 13) ───────────────────────────────────────── */
.acct-summary {
  display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 12px;
  padding: 10px 12px; background: var(--vs-soft, #f8fafc);
  border: 1px solid var(--vs-line); border-radius: 10px;
  margin-bottom: 12px; align-items: center;
}
.acct-summary .kv { font-size: 13px; }
.acct-summary .kv > span { color: var(--vs-muted); margin-right: 4px; }
.acct-toolbar { display: flex; gap: 8px; margin: 8px 0; }
.acct-toolbar .btn {
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--vs-line);
  background: #fff; cursor: pointer; font-size: 13px;
}
.acct-toolbar .btn.primary { background: var(--vs-primary, #6f55ff); color: #fff; border-color: transparent; }
.acct-detail .lp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.acct-detail .lp-table th, .acct-detail .lp-table td {
  padding: 6px 8px; border-bottom: 1px solid var(--vs-line); text-align: left;
}
.acct-detail .lp-table th.ar, .acct-detail .lp-table td.ar { text-align: right; }
.acct-detail .lp-table .empty { color: var(--vs-muted); text-align: center; padding: 18px; }
.cari-link { color: var(--vs-primary, #6f55ff); text-decoration: none; font-weight: 600; }
.kpi .val.ok  { color: #16a34a; }
.kpi .val.bad { color: var(--vs-bad, #dc2626); }
