/* ============================================================
   style.css — PetGest ERP
   ------------------------------------------------------------
   Sumário
   01 · Tokens (tema claro e escuro)
   02 · Base e tipografia
   03 · Layout: sidebar, topbar, main
   04 · Cards, KPIs e grids
   05 · Formulários e botões
   06 · Tabelas
   07 · Tags, pills e estados vazios
   08 · Gráficos
   09 · Entregas
   10 · Caixa e financeiro
   11 · PDV (vendas)
   12 · Clientes e fornecedores
   13 · Assistente
   14 · Modais, toast, skeleton, tooltips
   15 · Notificações
   16 · Câmera e scanner
   17 · Animações
   18 · Responsivo
   19 · Impressão
   ============================================================ */

/* ============================================================
   01 · TOKENS
   ============================================================ */
/* Paleta marrom e branco.
   Todos os pares texto/fundo foram conferidos em contraste WCAG:
   o menor deles fica em 5,4:1 — acima do mínimo de 4,5:1. */
:root {
  /* superfícies — branco puro nos cartões, off-white quente no fundo */
  --bg: #faf7f3;
  --bg-2: #f2ebe3;
  --card: #ffffff;
  --card-2: #fbf8f4;
  --line: #e7dcd0;
  --line-forte: #d4c4b2;

  /* tinta */
  --ink: #2b1d12;
  --ink-2: #6b5544;
  --ink-3: #9a8574;

  /* marca */
  --brand: #7a4f2c;
  --brand-dark: #5c3a1f;
  --brand-soft: #f4e9dd;
  --brand-ink: #5c3a1f;

  /* estados */
  --danger: #b3472f;
  --danger-soft: #fbeae5;
  --warn: #8a5a12;
  --warn-soft: #fbf1de;
  --ok: #5a6b33;
  --ok-soft: #f0f2e2;
  --info: #2a6a8f;
  --info-soft: #e6f0f6;

  /* barra lateral — marrom bem escuro */
  --side-bg: #1c130c;
  --side-ink: #e4d8cb;
  --side-dim: #a08d7c;
  --side-active: rgba(208, 166, 120, .16);
  --side-accent: #d0a678;
  --side-hover: rgba(255, 255, 255, .06);

  /* forma */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(43, 29, 18, .06), 0 4px 16px rgba(43, 29, 18, .07);
  --shadow-md: 0 4px 12px rgba(43, 29, 18, .1), 0 12px 32px rgba(43, 29, 18, .09);
  --shadow-lg: 0 12px 44px rgba(43, 29, 18, .2);

  /* movimento */
  --t: .18s cubic-bezier(.4, 0, .2, 1);
  --t-lento: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Tema escuro ---------- */
:root[data-tema="escuro"] {
  --bg: #14100c;
  --bg-2: #1a1510;
  --card: #1e1811;
  --card-2: #261f17;
  --line: #352c22;
  --line-forte: #473c2f;

  --ink: #f0e7dc;
  --ink-2: #a8968a;
  --ink-3: #80705f;

  --brand: #c49a6c;
  --brand-dark: #d7b189;
  --brand-soft: #2e2418;
  --brand-ink: #e0bd93;

  --danger: #dd7357;
  --danger-soft: #33201a;
  --warn: #d9a441;
  --warn-soft: #2f2615;
  --ok: #9caf5f;
  --ok-soft: #262a17;
  --info: #6aa8cc;
  --info-soft: #17252d;

  --side-bg: #0f0a06;
  --side-ink: #d8cabb;
  --side-dim: #8a7867;

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .34);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .4);
  --shadow-lg: 0 12px 44px rgba(0, 0, 0, .65);
  color-scheme: dark;
}

/* ============================================================
   02 · BASE
   ============================================================ */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t), color var(--t);
}
body.sem-scroll { overflow: hidden; }

h2 { font-size: 17px; margin: 0 0 14px; font-weight: 600; letter-spacing: -.2px; }
h3 {
  font-size: 12px; margin: 0 0 12px; font-weight: 700; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .5px;
  display: flex; align-items: center; gap: 8px;
}
h3 .badge-h { font-size: 11px; background: var(--bg-2); color: var(--ink-2); padding: 2px 8px; border-radius: 20px; letter-spacing: 0; }
a { color: var(--brand-dark); }
::selection { background: var(--brand-soft); color: var(--brand-ink); }

/* barra de rolagem discreta */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-forte); border-radius: 20px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* ============================================================
   03 · LAYOUT
   ============================================================ */
.layout { display: flex; min-height: 100vh; }

.side {
  width: 254px; flex: 0 0 254px;
  background: var(--side-bg); color: var(--side-ink);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  z-index: 40;
}
.side::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-color: transparent; }

.side .brand { display: flex; align-items: center; gap: 11px; padding: 16px 16px 12px; }
.side .brand .logo {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  background: linear-gradient(135deg, #7a4f2c 0%, #c99a63 100%);
  display: grid; place-items: center; font-size: 21px;
  box-shadow: 0 4px 12px rgba(122, 79, 44, .4);
}
.side .brand b { display: block; font-size: 14.5px; font-weight: 600; color: #fff; line-height: 1.25; }
.side .brand small { font-size: 11.5px; color: var(--side-dim); }

.side nav { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px 24px; }
.side nav .grupo {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px;
  color: var(--side-dim); padding: 14px 12px 6px; opacity: .8;
}
.side nav button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: none; border: none; border-radius: 10px; padding: 10px 12px;
  font: inherit; font-size: 14.5px; font-weight: 500; color: var(--side-ink);
  cursor: pointer; text-align: left; position: relative;
  transition: background var(--t), color var(--t);
}
.side nav button svg { width: 19px; height: 19px; flex: 0 0 19px; color: var(--side-dim); transition: color var(--t); }
.side nav button .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side nav button .cnt { font-size: 13px; color: var(--side-dim); font-variant-numeric: tabular-nums; }
.side nav button:hover { background: var(--side-hover); }
.side nav button.active { background: var(--side-active); color: var(--side-accent); font-weight: 600; }
.side nav button.active svg, .side nav button.active .cnt { color: var(--side-accent); }
.side nav button.active::before {
  content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; background: var(--side-accent); border-radius: 0 3px 3px 0;
}
.side nav button .cnt.alerta {
  background: var(--danger); color: #fff; border-radius: 20px; padding: 1px 7px;
  font-size: 11.5px; font-weight: 700; min-width: 20px; text-align: center;
}
.side .sep { height: 1px; background: rgba(255, 255, 255, .09); margin: 9px 12px; }
.side .rodape-side {
  margin-top: auto; padding: 12px 16px 16px; font-size: 11px; color: var(--side-dim);
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 10px 18px; display: flex; align-items: center; gap: 10px;
  position: sticky; top: 0; z-index: 18;
  backdrop-filter: saturate(1.6) blur(6px);
}
.topbar h1 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -.2px; }
.topbar .data { margin-left: auto; font-size: 12.5px; color: var(--ink-2); }
.topbar .icone-btn {
  background: none; border: 1px solid var(--line); border-radius: 9px;
  width: 36px; height: 36px; display: grid; place-items: center;
  cursor: pointer; font-size: 15px; color: var(--ink); position: relative;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.topbar .icone-btn:hover { background: var(--bg-2); transform: translateY(-1px); }
.topbar .icone-btn:active { transform: translateY(0); }

.hamb {
  display: none; background: none; border: 1px solid var(--line); border-radius: 9px;
  width: 36px; height: 36px; cursor: pointer; font-size: 17px; color: var(--ink);
}
.overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 39; }
.overlay.show { display: block; animation: fade .2s; }

main { max-width: 1280px; width: 100%; margin: 0 auto; padding: 20px 18px 90px; }

.page { display: none; }
.page.active { display: block; animation: pageIn .26s cubic-bezier(.4, 0, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   04 · CARDS, KPIs E GRIDS
   ============================================================ */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px;
  transition: box-shadow var(--t), border-color var(--t);
}
.card.plano { box-shadow: none; }
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.card-head .dir { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.grid { display: grid; gap: 14px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 16px; }
.grid.g2 { grid-template-columns: 1fr; }
.grid.g3 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid.g2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } }

.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi .label {
  font-size: 11px; color: var(--ink-2); text-transform: uppercase;
  letter-spacing: .5px; font-weight: 700; display: flex; align-items: center; gap: 6px;
}
.kpi .value { font-size: 25px; font-weight: 700; margin-top: 6px; letter-spacing: -.6px; line-height: 1.15; }
.kpi .hint { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.kpi .spark { position: absolute; right: 12px; bottom: 10px; width: 76px; height: 24px; opacity: .55; }
.kpi.alert .value { color: var(--danger); }
.kpi.warn .value { color: var(--warn); }
.kpi.ok .value { color: var(--ok); }
.kpi.clicavel { cursor: pointer; }
.kpi .delta { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.kpi .delta.sobe { color: var(--ok); }
.kpi .delta.desce { color: var(--danger); }

.split { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.split.a23 { grid-template-columns: 1fr; }
@media (min-width: 1000px) { .split.a23 { grid-template-columns: 1.6fr 1fr; } }

/* ============================================================
   05 · FORMULÁRIOS E BOTÕES
   ============================================================ */
form .row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 12px; }
form .row.larga { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.col-todo { grid-column: 1 / -1; }
.col-2 { grid-column: span 2; }

label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
label .op { font-weight: 500; color: var(--ink-3); }

input, select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: var(--card); color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
textarea { resize: vertical; min-height: 72px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
input[readonly], input:disabled, select:disabled { background: var(--bg-2); color: var(--ink-2); cursor: not-allowed; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5544' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
:root[data-tema="escuro"] select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8968a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
}
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--brand); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.check input { margin: 0; width: 17px; height: 17px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--brand); color: #fff; border: 1px solid transparent;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background var(--t), transform var(--t), box-shadow var(--t), opacity var(--t);
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.sec { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.sec:hover { background: var(--bg-2); border-color: var(--line-forte); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #a13224; }
.btn.warn { background: var(--warn); }
.btn.info { background: var(--info); }
.btn.ghost { background: transparent; color: var(--ink-2); border-color: transparent; }
.btn.ghost:hover { background: var(--bg-2); color: var(--ink); box-shadow: none; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 7px; }
.btn.lg { padding: 13px 22px; font-size: 15.5px; }
.btn.bloco { width: 100%; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: flex-end; }
.toolbar .f { flex: 1; min-width: 150px; }
.toolbar label { margin-bottom: 3px; }

.linkbtn {
  background: none; border: none; color: var(--danger); font: inherit; font-size: 13px;
  cursor: pointer; padding: 2px 4px; font-weight: 600; border-radius: 5px;
}
.linkbtn:hover { background: var(--danger-soft); }
.linkbtn.neutro { color: var(--ink-2); }
.linkbtn.neutro:hover { background: var(--bg-2); }

.hint { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.hint.erro { color: var(--danger); font-weight: 600; }
.muted { color: var(--ink-2); font-size: 13px; }
.sep { height: 1px; background: var(--line); margin: 16px 0; }

/* Campo com botão colado (busca + scanner) */
.campo-acao { display: flex; gap: 0; }
.campo-acao input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.campo-acao .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding-left: 13px; padding-right: 13px; }

/* ============================================================
   06 · TABELAS
   ============================================================ */
.tablewrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--ink-2); font-weight: 700; padding: 9px 10px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
  background: var(--card); position: sticky; top: 0; z-index: 2;
}
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background var(--t); }
tbody tr:hover { background: var(--card-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.acoes { white-space: nowrap; text-align: right; }
td.acoes .btn { margin-left: 4px; }
.empty-td { padding: 0 !important; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line-forte); background: var(--card-2); }

/* miniatura de produto na tabela */
.mini-foto {
  width: 36px; height: 36px; border-radius: 7px; object-fit: cover;
  border: 1px solid var(--line); background: var(--bg-2); flex: 0 0 36px;
}
.mini-vazia { display: grid; place-items: center; font-size: 15px; color: var(--ink-3); }
.cel-prod { display: flex; align-items: center; gap: 10px; }
.cel-prod .txt { min-width: 0; }
.cel-prod b { display: block; }

/* ============================================================
   07 · TAGS, PILLS E VAZIOS
   ============================================================ */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2.5px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.tag.ok { background: var(--ok-soft); color: var(--brand-ink); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.neutral { background: var(--bg-2); color: var(--ink-2); }
.tag.info { background: var(--info-soft); color: var(--info); }
.tag.vip { background: linear-gradient(135deg, #f7d774, #e8a33c); color: #5c3d06; }

.pill-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pill {
  padding: 6px 13px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); border-radius: 20px; font-size: 13px; cursor: pointer; font-weight: 500;
  transition: all var(--t);
}
.pill:hover { border-color: var(--line-forte); background: var(--bg-2); }
.pill.active { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }

.empty { padding: 34px 16px; text-align: center; color: var(--ink-2); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }

/* ============================================================
   08 · GRÁFICOS
   ============================================================ */
.grafico { width: 100%; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafico-vazio {
  padding: 40px 16px; text-align: center; color: var(--ink-2); font-size: 13.5px;
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
}
.hitline, .hitcol { cursor: crosshair; }
.hitcol:hover .col { filter: brightness(1.12); }

.grafico-tip {
  position: fixed; z-index: 120; pointer-events: none;
  background: var(--ink); color: #fff; padding: 7px 11px; border-radius: 8px;
  font-size: 12.5px; line-height: 1.4; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(4px); transition: opacity .13s, transform .13s;
  max-width: 240px;
}
.grafico-tip.show { opacity: 1; transform: none; }
.grafico-tip b { display: block; font-weight: 700; }
.grafico-tip span { opacity: .85; }
:root[data-tema="escuro"] .grafico-tip { background: #33281b; border: 1px solid var(--line); }

/* barras horizontais */
.barras { display: flex; flex-direction: column; gap: 13px; }
.barra-linha { }
.barra-linha[role="button"] { cursor: pointer; }
.barra-cab { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.barra-rot { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-val { font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.barra-trilho { height: 9px; background: var(--bg-2); border-radius: 20px; overflow: hidden; }
.barra-trilho i { display: block; height: 100%; border-radius: 20px; transition: width .5s cubic-bezier(.4, 0, .2, 1); }
.barra-sub { font-size: 11.5px; color: var(--ink-2); margin-top: 3px; }

/* donut */
.donut-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.donut { width: 168px; height: 168px; flex: 0 0 168px; }
.donut-leg { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 190px; display: flex; flex-direction: column; gap: 7px; }
.donut-leg li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.donut-leg .pt { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }
.donut-leg .rot { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut-leg b { font-variant-numeric: tabular-nums; }
.donut-leg small { color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }

.spark { display: block; }

/* cartão de receita (destaque do painel) */
.receita {
  position: relative; overflow: hidden; margin-bottom: 16px;
  background: linear-gradient(135deg, #6b4226 0%, #8d5c33 52%, #b0794a 100%);
  border-radius: var(--radius-lg); padding: 18px 18px 0; color: #fff;
  box-shadow: 0 6px 24px rgba(107, 66, 38, .28);
}
:root[data-tema="escuro"] .receita { background: linear-gradient(135deg, #3d2617 0%, #55361f 52%, #6d472a 100%); }
.receita .cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.receita .tit { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.receita .sub { font-size: 12.5px; opacity: .8; margin-top: 1px; }
.receita select {
  width: auto; background-color: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4);
  color: #fff; border-radius: 20px; padding: 6px 32px 6px 15px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
}
.receita select:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); border-color: rgba(255, 255, 255, .7); }
.receita select option { color: #17251c; background: #fff; }
.receita .valor { margin: 20px 0 4px; line-height: 1; font-weight: 800; letter-spacing: -2px; }
.receita .valor .cifra { font-size: 26px; font-weight: 700; letter-spacing: -1px; }
.receita .valor .int { font-size: 44px; }
.receita .valor .cent { font-size: 23px; font-weight: 700; letter-spacing: -.5px; }
.receita .rodape { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; opacity: .92; margin-top: 6px; }
.receita .graf { margin: 6px -18px 0; }
.receita svg { display: block; width: 100%; height: auto; }
.receita .semdados { padding: 26px 0 34px; text-align: center; opacity: .85; font-size: 13.5px; }

/* ============================================================
   09 · ENTREGAS
   ============================================================ */
#alertbar {
  display: none; position: sticky; top: 57px; z-index: 19;
  background: var(--danger); color: #fff; padding: 11px 16px; font-weight: 600;
  box-shadow: var(--shadow);
}
#alertbar.show { display: block; animation: slideDown .28s; }
#alertbar .wrap { max-width: 1280px; margin: 0 auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#alertbar button {
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .5); color: #fff;
  padding: 5px 13px; border-radius: 20px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
}
#alertbar button:hover { background: rgba(255, 255, 255, .32); }

.entrega {
  border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 12px; background: var(--card);
  transition: box-shadow var(--t), transform var(--t);
}
.entrega:hover { box-shadow: var(--shadow); }
.entrega.urgente { border-left-color: var(--warn); background: var(--warn-soft); }
.entrega.atrasada { border-left-color: var(--danger); background: var(--danger-soft); }
.entrega .top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.entrega .hora { font-size: 24px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
.entrega .cliente { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.entrega .meta { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.entrega .conta { font-size: 13px; font-weight: 700; margin-top: 2px; }
.entrega ul { margin: 10px 0 12px; padding-left: 20px; font-size: 14px; }
.entrega ul li { margin-bottom: 2px; }
.entrega a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.entrega a:hover { text-decoration: underline; }
.entrega .foto-ent { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }

/* trilha de etapas */
.etapas { display: flex; gap: 4px; margin: 10px 0 4px; flex-wrap: wrap; }
.etapa-pt {
  display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px; background: var(--bg-2); color: var(--ink-3);
  border: 1px solid transparent;
}
.etapa-pt.feita { background: var(--ok-soft); color: var(--brand-ink); }
.etapa-pt.atual { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(122, 79, 44, .32); }
.etapa-pt.cancel { background: var(--danger-soft); color: var(--danger); }

.itens-list { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 6px 0 12px; overflow: hidden; }
.itens-list .it {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.itens-list .it:last-child { border-bottom: none; }
.itens-list .vazio { padding: 16px; text-align: center; color: var(--ink-2); font-size: 13.5px; }

/* lista de lotes */
.lotebox { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 6px; max-height: 250px; overflow: auto; }
.lotebox .item {
  display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px;
  border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.lotebox .item:last-child { border-bottom: none; }
.lotebox .item.first { background: var(--brand-soft); }

/* ============================================================
   10 · CAIXA E FINANCEIRO
   ============================================================ */
.resumo { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.resumo .b { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--card); }
.resumo .b .l { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-2); font-weight: 700; }
.resumo .b .v { font-size: 21px; font-weight: 700; margin-top: 3px; letter-spacing: -.5px; }
.resumo .b.ent .v { color: var(--ok); }
.resumo .b.sai .v { color: var(--danger); }

.tipo-toggle { display: flex; gap: 8px; margin-bottom: 12px; }
.tipo-toggle button {
  flex: 1; padding: 11px; border: 1px solid var(--line); background: var(--card); border-radius: 10px;
  font: inherit; font-weight: 600; cursor: pointer; color: var(--ink-2); transition: all var(--t);
}
.tipo-toggle button:hover { border-color: var(--line-forte); }
.tipo-toggle button.on-ent { background: var(--brand); border-color: var(--brand); color: #fff; }
.tipo-toggle button.on-sai { background: var(--danger); border-color: var(--danger); color: #fff; }

.barra { height: 8px; background: var(--line); border-radius: 20px; overflow: hidden; margin: 8px 0 6px; }
.barra i { display: block; height: 100%; background: var(--brand); transition: width .5s; }
.barra i.meio { background: var(--warn); }
.barra i.cheio { background: var(--danger); }

/* linha de conta a pagar/receber */
.conta-lin { display: flex; align-items: center; gap: 10px; }
.conta-lin .pt { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.conta-lin .pt.pago { background: var(--ok); }
.conta-lin .pt.vencido { background: var(--danger); }
.conta-lin .pt.aberto { background: var(--warn); }

/* ============================================================
   11 · PDV (VENDAS)
   ============================================================ */
.pdv { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1050px) { .pdv { grid-template-columns: 1.35fr 1fr; } }

.pdv-busca { position: relative; }
.pdv-result {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 25;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); max-height: 340px; overflow-y: auto; display: none;
}
.pdv-result.show { display: block; animation: fadeUp .16s; }
.pdv-result button {
  display: flex; width: 100%; gap: 11px; align-items: center; text-align: left;
  background: none; border: none; border-bottom: 1px solid var(--line);
  padding: 10px 12px; font: inherit; color: var(--ink); cursor: pointer;
}
.pdv-result button:last-child { border-bottom: none; }
.pdv-result button:hover, .pdv-result button.sel { background: var(--brand-soft); }
.pdv-result .info { flex: 1; min-width: 0; }
.pdv-result .info b { display: block; font-size: 14px; }
.pdv-result .info small { color: var(--ink-2); font-size: 12px; }
.pdv-result .preco { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pdv-result .sem { color: var(--danger); font-size: 11.5px; font-weight: 700; }

.pdv-itens { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; }
.pdv-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-bottom: 1px solid var(--line); animation: fadeUp .2s;
}
.pdv-item:last-child { border-bottom: none; }
.pdv-item .nome { flex: 1; min-width: 0; }
.pdv-item .nome b { display: block; font-size: 14px; }
.pdv-item .nome small { color: var(--ink-2); font-size: 12px; }
.pdv-item .qtdbox { display: flex; align-items: center; gap: 0; flex: 0 0 auto; }
.pdv-item .qtdbox button {
  width: 28px; height: 30px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); cursor: pointer; font-size: 15px; font-weight: 700; line-height: 1;
}
.pdv-item .qtdbox button:first-child { border-radius: 7px 0 0 7px; }
.pdv-item .qtdbox button:last-child { border-radius: 0 7px 7px 0; }
.pdv-item .qtdbox button:hover { background: var(--bg-2); }
.pdv-item .qtdbox input {
  width: 54px; height: 30px; text-align: center; border-radius: 0; border-left: none; border-right: none;
  padding: 4px; font-variant-numeric: tabular-nums;
}
.pdv-item .sub { font-weight: 700; min-width: 82px; text-align: right; font-variant-numeric: tabular-nums; }

.pdv-totais { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.pdv-totais .l { display: flex; justify-content: space-between; gap: 10px; }
.pdv-totais .l.total {
  font-size: 22px; font-weight: 800; letter-spacing: -.6px;
  border-top: 2px solid var(--line-forte); padding-top: 11px; margin-top: 5px;
}
.pdv-totais .l.total b { color: var(--brand); }

.pag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.pag-btn {
  padding: 13px 8px; border: 1.5px solid var(--line); background: var(--card); border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 5px; transition: all var(--t);
}
.pag-btn .ic { font-size: 19px; }
.pag-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.pag-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(122, 79, 44, .32); }

.troco-box { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 11px 13px; margin-bottom: 12px; }
.troco-box .v { font-size: 21px; font-weight: 800; color: var(--brand-ink); letter-spacing: -.5px; }

/* cupom / comprovante */
.cupom-visor {
  font-family: "Courier New", ui-monospace, monospace; font-size: 12.5px; line-height: 1.55;
  background: var(--card-2); border: 1px dashed var(--line-forte); border-radius: var(--radius-sm);
  padding: 16px; max-height: 46vh; overflow: auto; white-space: pre-wrap; color: var(--ink);
}

/* ============================================================
   12 · CLIENTES E FORNECEDORES
   ============================================================ */
.cards-lista { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.pessoa-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--card);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.pessoa-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-forte); }
.pessoa-card .cab { display: flex; gap: 11px; align-items: center; margin-bottom: 10px; }
.pessoa-card .av {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
}
.pessoa-card .av.vip { background: linear-gradient(135deg, #f7d774, #e8a33c); color: #5c3d06; }
.pessoa-card .nm { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.pessoa-card .sub { font-size: 12.5px; color: var(--ink-2); }
.pessoa-card .dados { font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; margin-bottom: 11px; }
.pessoa-card .dados span { display: flex; gap: 6px; align-items: flex-start; }
.pessoa-card .stats { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); margin-bottom: 10px; }
.pessoa-card .stats div { flex: 1; }
.pessoa-card .stats .l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-2); font-weight: 700; }
.pessoa-card .stats .v { font-size: 15px; font-weight: 700; }

/* ============================================================
   13 · ASSISTENTE
   ============================================================ */
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 56vh; overflow-y: auto; padding: 4px 2px 8px; }
.msg { display: flex; gap: 10px; max-width: 88%; animation: fadeUp .24s; }
.msg.eu { align-self: flex-end; flex-direction: row-reverse; }
.msg .av {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; background: var(--brand-soft);
}
.msg.eu .av { background: var(--bg-2); }
.msg .bolha {
  background: var(--card-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 14px; font-size: 14px; line-height: 1.55;
}
.msg.eu .bolha { background: var(--brand); color: #fff; border-color: transparent; }
.msg .bolha b { font-weight: 700; }
.msg .bolha ul { margin: 7px 0 0; padding-left: 19px; }
.msg .bolha li { margin-bottom: 3px; }
.msg .bolha table { font-size: 13px; margin-top: 8px; }
.msg .bolha th, .msg .bolha td { padding: 5px 7px; }
.sugestoes { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.sugestao {
  padding: 8px 13px; border: 1px solid var(--line); background: var(--card); border-radius: 20px;
  font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); transition: all var(--t);
}
.sugestao:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.digitando span {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); margin-right: 3px;
  animation: pulsa 1.1s infinite;
}
.digitando span:nth-child(2) { animation-delay: .18s; }
.digitando span:nth-child(3) { animation-delay: .36s; }
@keyframes pulsa { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ============================================================
   14 · MODAIS, TOAST, SKELETON, TOOLTIPS
   ============================================================ */
.modal {
  position: fixed; inset: 0; background: rgba(30, 20, 12, .55); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50;
}
.modal.show { display: flex; animation: fade .18s; }
.modal .box {
  background: var(--card); border-radius: var(--radius-lg); padding: 22px;
  max-width: 560px; width: 100%; max-height: 90vh; overflow: auto;
  box-shadow: var(--shadow-lg); position: relative;
  animation: modalIn .24s cubic-bezier(.2, .9, .3, 1);
}
.modal .box.larga { max-width: 860px; }
.modal .box h2 { margin-bottom: 16px; padding-right: 30px; }
.modal-x {
  position: absolute; right: 14px; top: 14px; width: 30px; height: 30px;
  border: none; background: var(--bg-2); color: var(--ink-2); border-radius: 8px;
  font-size: 19px; line-height: 1; cursor: pointer; transition: all var(--t);
}
.modal-x:hover { background: var(--danger-soft); color: var(--danger); }
.modal-txt { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-bottom: 4px; }
.modal-txt b { color: var(--ink); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(24px);
  background: var(--ink); color: var(--card); padding: 12px 18px; border-radius: 10px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; z-index: 100;
  box-shadow: var(--shadow-lg); max-width: min(92vw, 480px);
  display: flex; align-items: center; gap: 10px; font-size: 14px;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast .ico {
  width: 21px; height: 21px; flex: 0 0 21px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--ok); color: #fff;
}
#toast.err { background: var(--danger); color: #fff; }
#toast.err .ico { background: rgba(255, 255, 255, .25); }
#toast.warn { background: var(--warn); color: #fff; }
#toast.warn .ico { background: rgba(255, 255, 255, .25); }
:root[data-tema="escuro"] #toast { background: #2f2519; color: var(--ink); border: 1px solid var(--line); }

/* skeleton */
.skel {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--line) 50%, var(--bg-2) 75%);
  background-size: 200% 100%; border-radius: 6px; animation: shimmer 1.3s infinite;
}
.skel-wrap { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* tooltip */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--ink); color: var(--card); padding: 5px 9px; border-radius: 6px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap; letter-spacing: 0; text-transform: none;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 90;
}
[data-tip]:hover::after, [data-tip].tip-aberto::after { opacity: 1; transform: translateX(-50%) translateY(0); }
:root[data-tema="escuro"] [data-tip]::after { background: #3a2d1e; color: var(--ink); border: 1px solid var(--line); }

/* ============================================================
   15 · NOTIFICAÇÕES
   ============================================================ */
.notif-badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--warn); color: #fff; border-radius: 20px; font-size: 10.5px; font-weight: 700;
  display: none; align-items: center; justify-content: center; border: 2px solid var(--card);
}
.notif-badge.show { display: flex; }
.notif-badge.critico { background: var(--danger); }

.notif-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 55; }
.notif-overlay.show { display: block; animation: fade .18s; }
.notif-panel {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(390px, 92vw); z-index: 56;
  background: var(--card); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .26s cubic-bezier(.3, .9, .3, 1);
  display: flex; flex-direction: column;
}
.notif-panel.show { transform: none; }
.notif-panel .cab {
  padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px;
}
.notif-panel .cab h2 { margin: 0; flex: 1; }
.notif-lista { flex: 1; overflow-y: auto; padding: 8px; }
.notif-item {
  display: flex; gap: 11px; align-items: center; width: 100%; text-align: left;
  background: none; border: none; border-radius: 10px; padding: 11px 12px; cursor: pointer;
  font: inherit; color: var(--ink); transition: background var(--t);
}
.notif-item:hover { background: var(--bg-2); }
.notif-item .ico {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; display: grid; place-items: center; font-size: 16px;
  background: var(--bg-2);
}
.notif-item.critico .ico { background: var(--danger-soft); }
.notif-item.aviso .ico { background: var(--warn-soft); }
.notif-item .txt { flex: 1; min-width: 0; }
.notif-item .txt b { display: block; font-size: 13.5px; font-weight: 600; }
.notif-item .txt small { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.notif-item .seta { color: var(--ink-3); font-size: 18px; }

/* ============================================================
   16 · CÂMERA E SCANNER
   ============================================================ */
.fotobox { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.fotobox img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
#camVideo, #scanVideo { width: 100%; max-height: 58vh; background: #000; border-radius: 10px; display: block; }
.camacoes { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
#visorFoto img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }

.scan-wrap { position: relative; }
.scan-mira {
  position: absolute; left: 8%; right: 8%; top: 30%; height: 34%;
  border: 2px solid rgba(224, 189, 147, .95); border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 2000px rgba(0, 0, 0, .28);
}
.scan-mira::after {
  content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px;
  background: #e0bd93; box-shadow: 0 0 10px #e0bd93; animation: varre 1.8s ease-in-out infinite;
}
@keyframes varre { 0%, 100% { top: 10%; } 50% { top: 88%; } }

/* ============================================================
   17 · ANIMAÇÕES
   ============================================================ */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
.fade-in { animation: fadeUp .3s ease-out; }

/* respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================
   18 · RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
  .side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .24s cubic-bezier(.3, .9, .3, 1); }
  .side.open { transform: none; }
  .hamb { display: grid; place-items: center; }
  main { padding: 16px 14px 90px; }
  .topbar { padding: 9px 13px; }
  .topbar h1 { font-size: 15.5px; }
  .topbar .data { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 14.5px; }
  .card { padding: 14px; border-radius: 10px; }
  .kpi .value { font-size: 22px; }
  .receita .valor .int { font-size: 37px; }
  .receita .valor .cifra { font-size: 22px; }
  .receita .valor .cent { font-size: 20px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal .box { max-height: 94vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 18px; }
  @keyframes modalIn { from { transform: translateY(100%); } to { transform: none; } }
  .actions .btn { flex: 1; min-width: 120px; }
  .donut-wrap { justify-content: center; }
  .pdv-item { flex-wrap: wrap; }
  .pdv-item .nome { flex: 1 0 100%; }
  table { font-size: 13.5px; }
  td, th { padding: 8px 7px; }
  .toolbar .f { min-width: 100%; }
}
/* alvos de toque maiores no celular */
@media (hover: none) {
  .btn.sm { padding: 8px 12px; }
  .pill { padding: 8px 14px; }
}

/* ============================================================
   19 · IMPRESSÃO
   ============================================================ */
@media print {
  .side, .topbar, #alertbar, #toast, .notif-panel, .notif-overlay, .overlay,
  .actions, .toolbar, .pill-row, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  main { padding: 0; max-width: none; }
}
