/* =============================================================
   Estoque Central — Design system
   Operar: clareza > expressão. Precisão de livro-razão.
   ============================================================= */

:root {
  /* Superfícies */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --surface-3: #E9EEF5;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  /* Texto */
  --text: #0F172A;
  --text-2: #334155;
  --muted: #64748B;
  --faint: #94A3B8;

  /* Marca: índigo profundo e discreto */
  --primary: #3341C4;
  --primary-hover: #2834A6;
  --primary-press: #212C8C;
  --primary-soft: #EEF0FC;
  --primary-soft-2: #DFE3FA;
  --ring: 0 0 0 3px rgba(51, 65, 196, .28);

  /* Semânticas (sempre acompanhadas de texto/ícone) */
  --success: #15803D;  --success-soft: #EDFAF2;  --success-line: #B7EBC9;
  --warning: #A15C07;  --warning-soft: #FFF8EB;  --warning-line: #F8DDA4;
  --danger:  #B91C1C;  --danger-soft:  #FEF2F2;  --danger-line:  #F8C9C9;
  --info:    #0B6BA8;  --info-soft:    #EEF7FD;  --info-line:    #BFE0F5;
  --violet:  #5B3CC4;  --violet-soft:  #F3F0FD;  --violet-line:  #D9D0F7;

  /* Tipografia */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --fs-xs: 11.5px;
  --fs-sm: 12.5px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 21px;
  --fs-2xl: 26px;

  /* Espaço e forma */
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-pop: 0 12px 32px -8px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .06);
  --sidebar-w: 248px;
  --topbar-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 120ms;
  --t: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.011em; }
p { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
::selection { background: var(--primary-soft-2); }

.num, .tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -0.01em; white-space: nowrap; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.strong { font-weight: 600; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 16px; height: 16px; flex: none; stroke-width: 1.75; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 20px; height: 20px; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 12px; background: var(--text); color: #fff; border-radius: var(--r); }
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------
   Shell
   --------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 14px 12px;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { font-weight: 650; font-size: var(--fs-md); letter-spacing: -0.015em; line-height: 1.15; }
.brand-sub { font-size: var(--fs-xs); color: var(--muted); }

.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-label { font-size: var(--fs-xs); font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 16px 10px 6px; }
.nav a {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--r);
  color: var(--text-2); font-weight: 500; font-size: 13.5px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav a .icon { color: var(--faint); transition: color var(--t-fast); }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a:hover .icon { color: var(--muted); }
.nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-press); }
.nav a[aria-current="page"] .icon { color: var(--primary); }
.nav .count {
  margin-left: auto; min-width: 20px; padding: 0 6px; height: 18px; border-radius: 999px;
  display: inline-grid; place-items: center; font-size: 11px; font-weight: 600;
  background: var(--surface-3); color: var(--text-2); font-variant-numeric: tabular-nums;
}
.nav .count.attn { background: var(--warning-soft); color: var(--warning); box-shadow: inset 0 0 0 1px var(--warning-line); }
.nav a[aria-current="page"] .count { background: #fff; }

.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 650;
  background: var(--surface-3); color: var(--text-2);
}
.user-chip .who { min-width: 0; flex: 1; }
.user-chip .who b { display: block; font-weight: 600; font-size: 13px; }
.user-chip .who span { display: block; font-size: var(--fs-xs); color: var(--muted); }

.scrim { display: none; }
[data-page-title]:focus, [data-page-title]:focus-visible { box-shadow: none; outline: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { padding: 28px 32px 56px; max-width: 1360px; width: 100%; margin: 0 auto; }
.content:focus { outline: none; }

/* Cabeçalho de página */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .crumbs { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 6px; }
.page-head .crumbs a { color: var(--muted); }
.page-head h1 { font-size: var(--fs-2xl); font-weight: 650; letter-spacing: -0.022em; }
.page-head .lede { color: var(--muted); margin-top: 4px; max-width: 64ch; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------
   Botões
   --------------------------------------------------------------- */
.btn {
  --h: 36px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: var(--h); padding: 0 14px; border-radius: var(--r);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-weight: 550; font-size: 13.5px; white-space: nowrap; cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  -webkit-user-select: none; user-select: none;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(.5px); }
.btn:focus-visible { box-shadow: var(--ring); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(33, 44, 140, .25), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-primary:active { background: var(--primary-press); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #991B1B; border-color: #991B1B; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #126B33; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-soft-danger { color: var(--danger); }
.btn-soft-danger:hover { background: var(--danger-soft); border-color: var(--danger-line); }
.btn-sm { --h: 30px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
.btn-lg { --h: 42px; padding: 0 18px; font-size: var(--fs-md); }
.btn-icon { width: var(--h); padding: 0; }
.btn-block { width: 100%; }
.btn .spinner { width: 14px; height: 14px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
  color: var(--text-2);
}
.btn-primary.is-loading::after, .btn-danger.is-loading::after, .btn-success.is-loading::after { color: #fff; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); border-right-color: var(--primary); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------
   Cartões e superfícies
   --------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { font-size: var(--fs-md); font-weight: 620; }
.card-head .sub { font-size: var(--fs-sm); color: var(--muted); margin-top: 1px; }
.card-body { padding: 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-link { font-size: var(--fs-sm); font-weight: 550; display: inline-flex; align-items: center; gap: 4px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }

/* KPIs — uma faixa única, divisórias finas, sem cards em excesso */
.kpis {
  display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs); margin-bottom: 16px; overflow: hidden;
}
.kpi { position: relative; padding: 16px 18px 15px; border-left: 1px solid var(--border); min-width: 0; color: inherit; }
.kpi:first-child { border-left: 0; }
a.kpi { transition: background var(--t-fast); }
a.kpi:hover { background: var(--surface-2); text-decoration: none; }
.kpi-label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.kpi-label .icon { width: 14px; height: 14px; color: var(--faint); }
.kpi-value { font-size: 26px; font-weight: 620; letter-spacing: -0.025em; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 3px; }
.kpi.is-attn .kpi-value { color: var(--warning); }
.kpi.is-danger .kpi-value { color: var(--danger); }
.kpi.is-attn::before, .kpi.is-danger::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--warning); }
.kpi.is-danger::before { background: var(--danger); }

/* ---------------------------------------------------------------
   Tabelas
   --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th {
  text-align: left; font-weight: 550; font-size: var(--fs-sm); color: var(--muted);
  padding: 9px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.table th:first-child { padding-left: 18px; }
.table th:last-child { padding-right: 18px; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table td:first-child { padding-left: 18px; }
.table td:last-child { padding-right: 18px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr.is-click { cursor: pointer; }
.table tbody tr.is-click:hover, .table tbody tr:focus-within { background: #FAFBFD; }
.table tbody tr.is-muted td { color: var(--muted); }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; width: 1%; }
.table .cell-title { font-weight: 550; color: var(--text); }
.table .cell-sub { font-size: var(--fs-xs); color: var(--muted); margin-top: 1px; }
.table-compact td { padding-top: 9px; padding-bottom: 9px; }
.th-sort { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: inherit; font-weight: inherit; cursor: pointer; font-size: inherit; }
.th-sort:hover { color: var(--text); }
.th-sort .icon { width: 12px; height: 12px; opacity: .35; }
.th-sort[aria-sort] .icon { opacity: 1; color: var(--primary); }
.table tfoot td { font-weight: 600; background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 0; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--muted); }
.pager .row { gap: 6px; }

/* Barra de filtros */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.toolbar .grow { flex: 1 1 220px; min-width: 180px; }
.search { position: relative; }
.search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search .input { padding-left: 32px; }

/* Abas de status */
.tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 8px 11px; margin: 0 2px; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-weight: 550; font-size: 13px; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px; }
.tab .count { font-size: 11px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; line-height: 18px; }
.tab[aria-selected="true"] .count { background: var(--primary-soft); color: var(--primary); }

.segmented { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: var(--r); border: 1px solid var(--border); gap: 2px; }
.segmented button {
  border: 0; background: transparent; padding: 0 12px; height: 28px; border-radius: 6px; cursor: pointer;
  color: var(--muted); font-weight: 550; font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------
   Formulários
   --------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 550; color: var(--text-2); }
.label .opt, .field .opt { font-weight: 400; color: var(--faint); }
.hint { font-size: var(--fs-xs); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 36px; padding: 0 11px;
  border: 1px solid var(--border-strong); border-radius: var(--r);
  background: var(--surface); color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-size: 13.5px;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: #B6C2D2; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.textarea { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(185, 28, 28, .18); }
.field-error { font-size: var(--fs-xs); color: var(--danger); display: flex; gap: 5px; align-items: center; }
.field-error .icon { width: 13px; height: 13px; }
.input-affix { position: relative; }
.input-affix .affix { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.input-affix .affix.left { left: 11px; }
.input-affix .affix.left + .input { padding-left: 34px; }
.input-affix .affix.right { right: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-section { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--border); }
.form-section > h3 { font-size: 13.5px; font-weight: 620; margin-bottom: 2px; }
.form-section > p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 14px; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); margin: 0; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 34px; height: 20px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background var(--t); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform var(--t) var(--ease); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }

/* Stepper de quantidade */
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface); height: 34px; overflow: hidden; }
.qty button { width: 32px; border: 0; background: transparent; cursor: pointer; color: var(--text-2); display: grid; place-items: center; transition: background var(--t-fast); }
.qty button:hover { background: var(--surface-2); }
.qty button:disabled { color: var(--faint); cursor: not-allowed; background: transparent; }
.qty input { width: 52px; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; background: var(--primary-soft); }
.qty:focus-within { border-color: var(--primary); box-shadow: var(--ring); }

/* ---------------------------------------------------------------
   Status, badges e medidor de estoque
   --------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 7px;
  border-radius: 999px; font-size: 12px; font-weight: 550; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border);
}
.badge .icon { width: 13px; height: 13px; stroke-width: 2; }
.badge.success { background: var(--success-soft); color: var(--success); box-shadow: inset 0 0 0 1px var(--success-line); }
.badge.warning { background: var(--warning-soft); color: var(--warning); box-shadow: inset 0 0 0 1px var(--warning-line); }
.badge.danger  { background: var(--danger-soft);  color: var(--danger);  box-shadow: inset 0 0 0 1px var(--danger-line); }
.badge.info    { background: var(--info-soft);    color: var(--info);    box-shadow: inset 0 0 0 1px var(--info-line); }
.badge.primary { background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary-soft-2); }
.badge.violet  { background: var(--violet-soft);  color: var(--violet);  box-shadow: inset 0 0 0 1px var(--violet-line); }
.badge.neutral { background: var(--surface-2); color: var(--muted); }
.badge.flat { box-shadow: none; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 5px; font-size: 11.5px; font-weight: 550; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.cat-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: none; }
.cat-fraldas { background: var(--primary); }
.cat-lencos { background: #0E9AA7; }

/* Medidor: físico dividido em reservado (hachurado) + disponível; traço = mínimo */
.meter { display: flex; flex-direction: column; gap: 5px; min-width: 140px; }
.meter-track { position: relative; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: visible; }
.meter-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--success); transition: width 420ms var(--ease); }
.meter-res { position: absolute; top: 0; bottom: 0; border-radius: 0 999px 999px 0; background: repeating-linear-gradient(135deg, #A9B6C8 0 3px, #CBD5E1 3px 6px); transition: left 420ms var(--ease), width 420ms var(--ease); }
.meter-min { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text-2); border-radius: 1px; opacity: .55; }
.meter.baixo .meter-fill { background: var(--warning); }
.meter.sem_estoque .meter-fill { background: var(--danger); }
.meter-legend { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.meter-legend b { color: var(--text); font-weight: 600; font-size: 13px; }

/* Atualização visual de números */
@keyframes bump { 0% { background: var(--primary-soft-2); } 100% { background: transparent; } }
.bump { animation: bump 900ms var(--ease); border-radius: 4px; }

/* ---------------------------------------------------------------
   Listas, feed e linha do tempo
   --------------------------------------------------------------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--border); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }

.feed { list-style: none; margin: 0; padding: 6px 18px 12px; }
.feed li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 9px 0; position: relative; }
.feed li:not(:last-child)::before { content: ""; position: absolute; left: 13.5px; top: 36px; bottom: -6px; width: 1px; background: var(--border); }
.feed .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.feed .dot .icon { width: 14px; height: 14px; }
.feed .dot.success { background: var(--success-soft); color: var(--success); box-shadow: inset 0 0 0 1px var(--success-line); }
.feed .dot.warning { background: var(--warning-soft); color: var(--warning); box-shadow: inset 0 0 0 1px var(--warning-line); }
.feed .dot.danger { background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-line); }
.feed .dot.primary { background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary-soft-2); }
.feed .msg { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.feed .when { font-size: var(--fs-xs); color: var(--faint); margin-top: 1px; }

/* Progresso do pedido */
.progress-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 20px 18px 18px; counter-reset: step; }
.pstep { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-right: 12px; min-width: 0; }
.pstep::before { content: ""; position: absolute; top: 13px; left: 30px; right: 0; height: 2px; background: var(--border); border-radius: 2px; }
.pstep:last-child::before { display: none; }
.pstep.done::before { background: var(--primary); }
.pstep .node { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--faint); box-shadow: inset 0 0 0 1.5px var(--border-strong); position: relative; z-index: 1; transition: background var(--t), box-shadow var(--t); }
.pstep .node .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.pstep.done .node { background: var(--primary); color: #fff; box-shadow: none; }
.pstep.current .node { background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary), 0 0 0 4px var(--primary-soft); }
.pstep.warn .node { background: var(--warning-soft); color: var(--warning); box-shadow: inset 0 0 0 1.5px var(--warning); }
.pstep .ptitle { font-size: 13px; font-weight: 600; color: var(--text); }
.pstep.todo .ptitle { color: var(--muted); font-weight: 550; }
.pstep .pwhen { font-size: var(--fs-xs); color: var(--muted); margin-top: -6px; font-variant-numeric: tabular-nums; }
.closed-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; }

/* Dados descritivos */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 9px 16px; margin: 0; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }

/* Avisos inline */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--r); font-size: 13px; line-height: 1.45; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.alert .icon { margin-top: 1px; }
.alert.info { background: var(--info-soft); border-color: var(--info-line); color: #0A4E7A; }
.alert.warning { background: var(--warning-soft); border-color: var(--warning-line); color: #7A4505; }
.alert.danger { background: var(--danger-soft); border-color: var(--danger-line); color: #8F1717; }
.alert.success { background: var(--success-soft); border-color: var(--success-line); color: #0F5E2D; }
.alert b { font-weight: 620; }

/* Estado vazio */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 24px; gap: 8px; }
.empty .glyph { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); margin-bottom: 6px; }
.empty .glyph .icon { width: 20px; height: 20px; }
.empty h3 { font-size: var(--fs-md); font-weight: 620; }
.empty p { color: var(--muted); max-width: 42ch; font-size: 13.5px; }
.empty .btn { margin-top: 10px; }
.empty.compact { padding: 26px 18px; }

/* Skeleton */
.sk { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 6px; height: 12px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-row { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.sk-block { height: 120px; border-radius: var(--r-lg); }

/* ---------------------------------------------------------------
   Diálogos e painéis laterais (<dialog>)
   --------------------------------------------------------------- */
dialog { padding: 0; border: 0; color: inherit; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(15, 23, 42, .38); backdrop-filter: blur(1.5px); }
dialog[open]::backdrop { animation: fadeIn var(--t) var(--ease); }
.modal { width: min(520px, calc(100vw - 32px)); margin: auto; }
.modal.wide { width: min(760px, calc(100vw - 32px)); }
.modal-card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; max-height: calc(100dvh - 48px); }
.modal[open] .modal-card { animation: popIn 200ms var(--ease); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 4px; }
.modal-head h2 { font-size: var(--fs-lg); font-weight: 640; }
.modal-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.modal-head .close { margin-left: auto; margin-top: -4px; margin-right: -6px; }
.modal-body { padding: 14px 20px 18px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: #FBFCFD; border-radius: 0 0 14px 14px; }
.modal-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.modal-icon.danger { background: var(--danger-soft); color: var(--danger); }
.modal-icon.warning { background: var(--warning-soft); color: var(--warning); }
.modal-icon.success { background: var(--success-soft); color: var(--success); }

.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(560px, 100vw); }
.drawer.wide { width: min(720px, 100vw); }
.drawer-card { background: var(--surface); height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-pop); border-left: 1px solid var(--border); }
.drawer[open] .drawer-card { animation: slideIn 240ms var(--ease); }
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px 16px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: var(--fs-lg); font-weight: 640; }
.drawer-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.drawer-head .close { margin-left: auto; margin-right: -8px; margin-top: -4px; }
.drawer-body { padding: 20px 22px 28px; overflow-y: auto; flex: 1; }
.drawer-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); background: #FBFCFD; }
.drawer-foot .left { margin-right: auto; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }

/* Toasts */
.toasts { position: fixed; z-index: 1000; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 12px 12px 14px; border-radius: 10px; background: #0F172A; color: #E2E8F0;
  box-shadow: var(--shadow-pop); font-size: 13.5px; line-height: 1.4;
  animation: toastIn 220ms var(--ease);
}
.toast .icon { margin-top: 1px; }
.toast.success .icon { color: #4ADE80; }
.toast.error .icon { color: #F87171; }
.toast.warning .icon { color: #FBBF24; }
.toast .t-body { flex: 1; }
.toast .t-body b { color: #fff; font-weight: 600; display: block; }
.toast button { background: none; border: 0; color: #94A3B8; cursor: pointer; padding: 2px; border-radius: 4px; }
.toast button:hover { color: #fff; }
.toast.leaving { animation: toastOut 180ms var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* Menu de ações */
.menu { position: relative; display: inline-block; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 4px; animation: popIn 140ms var(--ease); }
.menu-pop button, .menu-pop a { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px 10px; border: 0; background: none; border-radius: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; text-align: left; }
.menu-pop button:hover, .menu-pop a:hover, .menu-pop button:focus-visible { background: var(--surface-2); color: var(--text); text-decoration: none; box-shadow: none; }
.menu-pop .danger { color: var(--danger); }
.menu-pop .danger:hover { background: var(--danger-soft); color: var(--danger); }
.menu-pop hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }

/* ---------------------------------------------------------------
   Gráfico de fluxo (SVG próprio, sem dependências)
   --------------------------------------------------------------- */
.chart { padding: 6px 18px 14px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis-label { fill: var(--faint); font-size: 10.5px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .bar-in { fill: var(--primary); }
.chart .bar-out { fill: #A5B1F0; }
.chart .bar-hit { fill: transparent; cursor: default; }
.chart .bar-hit:hover + g rect, .chart g.col:hover rect.bar-in, .chart g.col:hover rect.bar-out { opacity: .85; }
.chart-legend { display: flex; gap: 14px; font-size: var(--fs-sm); color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-tip { position: fixed; z-index: 50; pointer-events: none; background: #0F172A; color: #E2E8F0; padding: 8px 10px; border-radius: 8px; font-size: 12px; box-shadow: var(--shadow-pop); line-height: 1.5; font-variant-numeric: tabular-nums; }
.chart-tip b { color: #fff; }

.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.hbar-track { grid-column: 1 / -1; height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.hbar-track span { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width 500ms var(--ease); }

/* ---------------------------------------------------------------
   Catálogo do lojista
   --------------------------------------------------------------- */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); transition: border-color var(--t), box-shadow var(--t); }
.pcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.pcard.in-cart { border-color: var(--primary-soft-2); box-shadow: 0 0 0 1px var(--primary-soft-2), var(--shadow-sm); }
.pcard-top { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-xs); color: var(--muted); }
.pcard h3 { font-size: 14.5px; font-weight: 600; line-height: 1.35; letter-spacing: -0.008em; }
.pcard .attrs { display: flex; flex-wrap: wrap; gap: 5px; }
.pcard-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.pcard-price .price { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pcard-price .per { font-size: var(--fs-xs); color: var(--muted); }
.pcard-stock { font-size: var(--fs-sm); display: flex; align-items: center; gap: 6px; color: var(--muted); }
.pcard-stock .icon { width: 13px; height: 13px; }
.pcard-stock.low { color: var(--warning); }
.pcard-stock.out { color: var(--danger); }
.pcard-act { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); background: #FBFCFD; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.pcard-act .btn { flex: 1; }

.cartbar {
  position: sticky; bottom: 16px; z-index: 20; margin-top: 18px;
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  padding: 12px 12px 12px 18px; border-radius: 12px; background: #0F172A; color: #E2E8F0; box-shadow: var(--shadow-pop);
  animation: popIn 220ms var(--ease);
}
.cartbar b { color: #fff; font-variant-numeric: tabular-nums; }
.cartbar .btn-primary { background: #fff; color: var(--text); border-color: #fff; box-shadow: none; }
.cartbar .btn-primary:hover { background: #E2E8F0; }

.summary { position: sticky; top: 20px; }
.summary .line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.summary .total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; font-size: var(--fs-lg); font-weight: 650; }

/* Linha de produto (carrinho, entrada) */
.line-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.line-item:last-child { border-bottom: 0; }
.line-item .sub { font-size: var(--fs-xs); color: var(--muted); }

.entry-lines { display: flex; flex-direction: column; gap: 8px; }
.entry-line { display: grid; grid-template-columns: minmax(0, 1fr) 96px 110px 32px; gap: 8px; align-items: start; }
.entry-line .lbl { font-size: var(--fs-xs); color: var(--muted); }

.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; max-height: 260px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 4px; margin: 0; list-style: none; }
.combo-list li { padding: 7px 10px; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--primary-soft); }
.combo-list li .mono { color: var(--muted); }
.combo-list .none { color: var(--muted); cursor: default; background: none !important; }

/* Login */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--surface); }
.auth-side { position: relative; background: #0E1430; color: #CBD5E1; padding: 40px 48px; display: flex; flex-direction: column; overflow: hidden; }
.auth-side .brand-name { color: #fff; }
.auth-side .brand-sub { color: #8B97B5; }
.auth-side .brand-mark { background: #fff; color: #0E1430; }
.auth-ledger { margin-top: auto; position: relative; z-index: 1; }
.auth-ledger h2 { color: #fff; font-size: 30px; font-weight: 620; letter-spacing: -0.028em; line-height: 1.15; max-width: 16ch; }
.auth-ledger p { color: #94A3C4; margin-top: 12px; max-width: 42ch; font-size: 14.5px; }
.ledger-rows { margin-top: 30px; border-top: 1px solid rgba(255,255,255,.09); font-family: var(--mono); font-size: 12px; }
.ledger-rows div { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); color: #8B97B5; }
.ledger-rows div span:last-child { text-align: right; color: #C7D0E8; }
.ledger-rows .in { color: #86EFAC !important; }
.ledger-rows .out { color: #A5B4FC !important; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-form { width: min(380px, 100%); }
.auth-form h1 { font-size: 24px; font-weight: 650; letter-spacing: -0.022em; }
.auth-form .lede { color: var(--muted); margin: 6px 0 26px; }
.auth-form .field + .field { margin-top: 14px; }
.auth-form .btn { margin-top: 22px; }
.auth-foot { margin-top: 26px; font-size: var(--fs-sm); color: var(--muted); }
.pwd-wrap { position: relative; }
.pwd-wrap .input { padding-right: 40px; }
.pwd-wrap button { margin-top: 0 !important; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }

/* Boot */
.boot { min-height: 100dvh; display: grid; place-items: center; }

/* ---------------------------------------------------------------
   Responsivo
   --------------------------------------------------------------- */
@media (max-width: 1200px) {
  .kpis { --cols: 3 !important; }
  .kpi:nth-child(3n + 1) { border-left: 0; }
  .kpi:nth-child(n + 4) { border-top: 1px solid var(--border); }
}
@media (max-width: 1080px) {
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .hide-lg { display: none !important; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(290px, 86vw);
    transform: translateX(-102%); transition: transform 240ms var(--ease); box-shadow: var(--shadow-pop);
  }
  .shell.nav-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(15,23,42,.35); opacity: 0; pointer-events: none; transition: opacity var(--t); }
  .shell.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .topbar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 40;
    height: var(--topbar-h); padding: 0 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
  }
  .topbar .brand { padding: 0; }
  .topbar .spacer { flex: 1; }
  .content { padding: 20px 16px 48px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .hide-md { display: none !important; }
  .page-head h1 { font-size: 22px; }
  .progress-steps { grid-template-columns: 1fr; gap: 0; padding: 16px 18px; }
  .pstep { flex-direction: row; align-items: center; gap: 12px; padding: 0 0 18px; }
  .pstep::before { top: 30px; bottom: 0; left: 13px; right: auto; width: 2px; height: auto; }
  .pstep .pwhen { margin-top: 0; margin-left: auto; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 640px) {
  .kpis { --cols: 2 !important; }
  .kpi { border-left: 1px solid var(--border) !important; border-top: 1px solid var(--border); }
  .kpi:nth-child(odd) { border-left: 0 !important; }
  .kpi:nth-child(-n + 2) { border-top: 0; }
  .kpi-value { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .line-item { grid-template-columns: minmax(0, 1fr) auto; }
  .line-item .li-price { display: none; }
  .entry-line { grid-template-columns: minmax(0, 1fr) 80px 32px; }
  .entry-line .cost { display: none; }
  .modal-foot, .drawer-foot { flex-wrap: wrap; }
  .modal-foot .btn, .drawer-foot .btn { flex: 1; }
  .drawer-foot .left { flex-basis: 100%; }
  .toasts { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .catalog { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 8px; }
  .card-head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .sidebar, .topbar, .page-actions, .toasts, .btn { display: none !important; }
  .shell { display: block; }
  .card { box-shadow: none; }
}

/* Atalhos de acesso da demonstração */
.demo-access { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo-grid .btn { margin-top: 0; --h: auto; justify-content: flex-start; padding: 9px 10px; text-align: left; gap: 10px; white-space: normal; }
.demo-grid .btn b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.demo-grid .btn small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 450; }
.demo-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 650; }
