/* EasyQR — admin/ (área da empresa-cliente)
 * Estilo: neomorfismo (soft-UI) — superfícies na MESMA cor do fundo, relevo dado
 * só por par de sombra clara/escura (nunca borda/cor sólida pra separar elemento
 * do fundo). Referência visual: easyqr/neomorfismo.jpeg.
 * Todas as cores em variável CSS (PADROES.md §7) — nunca cor hardcoded em componente.
 */

/* ── Reset (PADROES.md §7) ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overscroll-behavior-y: none; }
html, body { touch-action: manipulation; }

/* ── Tema claro (padrão) ──────────────────────────────────────────────────── */
:root, [data-theme="claro"] {
  --bg-page: #e9e7f2;
  --bg-sidebar: #e9e7f2;
  --bg-topbar: #e9e7f2;
  --bg-card: #e9e7f2;
  --bg-input: #e9e7f2;
  --bg-hover: #e2dff0;
  --bg-active: #dcd8ec;
  --bg-overlay: rgba(30, 25, 55, .45);

  /* Par de sombra do neomorfismo — clara (luz) e escura (sombra), mesma base de cor do fundo */
  --neu-light: #ffffff;
  --neu-dark: #b9b6cc;
  --neu-distance: 6px;
  --neu-blur: 14px;
  --neu-distance-sm: 3px;
  --neu-blur-sm: 7px;

  --accent: #7c3aed;
  --accent-hover: #6425c9;
  --accent-light: #ece3fc;
  --accent-text: #ffffff;

  --text-primary: #241c3d;
  --text-secondary: #4a4066;
  --text-muted: #7a7295;
  --text-placeholder: #a49dbd;

  --border: #d8d4e8;
  --border-focus: var(--accent);

  --shadow-xs: 0 1px 2px rgba(36,28,61,.06);
  --shadow-sm: 0 2px 6px rgba(36,28,61,.08);
  --shadow-md: 0 6px 16px rgba(36,28,61,.10);
  --shadow-lg: 0 12px 32px rgba(36,28,61,.14);

  --sidebar-width: 248px;
  --topbar-height: 58px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --success: #16a34a; --success-bg: #e4f7ea; --success-border: #bfe9cc;
  --warning: #d97706; --warning-bg: #fdf1de; --warning-border: #f5d9a8;
  --danger:  #dc2626; --danger-bg:  #fbe6e6; --danger-border: #f3c2c2;
  --info:    #2563eb; --info-bg:    #e3ebfd; --info-border:   #bcd0f7;
}

/* ── Tema escuro — cinza neutro (2026-09-06, ajuste pontual: a versão anterior
   tingia fundo/superfícies/texto de roxo; só o --accent continua roxo) ──────── */
[data-theme="escuro"] {
  --bg-page: #262626;
  --bg-sidebar: #262626;
  --bg-topbar: #262626;
  --bg-card: #262626;
  --bg-input: #262626;
  --bg-hover: #2d2d2d;
  --bg-active: #333333;
  --bg-overlay: rgba(0, 0, 0, .6);

  --neu-light: #333333;
  --neu-dark: #121212;
  --neu-distance: 6px;
  --neu-blur: 14px;
  --neu-distance-sm: 3px;
  --neu-blur-sm: 7px;

  --accent: #a578ff;
  --accent-hover: #b995ff;
  --accent-light: #372b57;
  --accent-text: #17102b;

  --text-primary: #f0f0f0;
  --text-secondary: #c8c8c8;
  --text-muted: #939393;
  --text-placeholder: #646464;

  --border: #38383830;
  --border-focus: var(--accent);

  --shadow-xs: 0 1px 2px rgba(0,0,0,.3);
  --shadow-sm: 0 2px 6px rgba(0,0,0,.35);
  --shadow-md: 0 6px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.5);

  --success: #4ade80; --success-bg: #16321f; --success-border: #235430;
  --warning: #fbbf24; --warning-bg: #3a2c0d; --warning-border: #5c4715;
  --danger:  #f87171; --danger-bg:  #3a1616; --danger-border: #5c2222;
  --info:    #60a5fa; --info-bg:    #142a4d; --info-border:   #1f3d6b;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4 { font-family: 'Sora', 'DM Sans', sans-serif; font-weight: 700; color: var(--text-primary); }
a { color: var(--accent); }

/* ── Superfícies neomórficas ──────────────────────────────────────────────── */
/* Relevo "pra fora" (convexo) — cards, botões, ícones em repouso */
.neu-raised {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow:
    var(--neu-distance) var(--neu-distance) var(--neu-blur) var(--neu-dark),
    calc(var(--neu-distance) * -1) calc(var(--neu-distance) * -1) var(--neu-blur) var(--neu-light);
}
/* Relevo "pra dentro" (côncavo/pressionado) — inputs, estado ativo, badges de progresso */
.neu-inset {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow:
    inset var(--neu-distance-sm) var(--neu-distance-sm) var(--neu-blur-sm) var(--neu-dark),
    inset calc(var(--neu-distance-sm) * -1) calc(var(--neu-distance-sm) * -1) var(--neu-blur-sm) var(--neu-light);
}
/* Versão pequena do relevo convexo (botões de ícone, swatches, chips) */
.neu-raised-sm {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow:
    var(--neu-distance-sm) var(--neu-distance-sm) var(--neu-blur-sm) var(--neu-dark),
    calc(var(--neu-distance-sm) * -1) calc(var(--neu-distance-sm) * -1) var(--neu-blur-sm) var(--neu-light);
}

.card { padding: 1.25rem; margin-bottom: 1rem; }
.card.neu-raised { }

/* ── Botões ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: none; cursor: pointer; text-decoration: none;
  font-family: inherit; font-size: .92rem; font-weight: 700;
  padding: .7rem 1.3rem; border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text-primary);
  box-shadow:
    var(--neu-distance-sm) var(--neu-distance-sm) var(--neu-blur-sm) var(--neu-dark),
    calc(var(--neu-distance-sm) * -1) calc(var(--neu-distance-sm) * -1) var(--neu-blur-sm) var(--neu-light);
  transition: box-shadow .12s ease, transform .12s ease;
  min-height: 44px;
}
.btn:active { box-shadow: inset 3px 3px 6px var(--neu-dark), inset -3px -3px 6px var(--neu-light); transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:active { box-shadow: inset 3px 3px 6px rgba(0,0,0,.25), inset -3px -3px 6px rgba(255,255,255,.15); }
.btn-secondary { color: var(--text-secondary); }
.btn-danger { color: var(--danger); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Campos de formulário ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: .82rem; font-weight: 700; color: var(--text-secondary); margin-bottom: .45rem; }
.form-control {
  width: 100%; border: none; outline: none;
  background: var(--bg-input); color: var(--text-primary);
  font-family: inherit; font-size: .95rem;
  padding: .8rem 1rem; border-radius: var(--radius-sm);
  box-shadow: inset var(--neu-distance-sm) var(--neu-distance-sm) var(--neu-blur-sm) var(--neu-dark),
              inset calc(var(--neu-distance-sm) * -1) calc(var(--neu-distance-sm) * -1) var(--neu-blur-sm) var(--neu-light);
  min-height: 44px;
}
.form-control:focus { box-shadow: inset 3px 3px 6px var(--neu-dark), inset -3px -3px 6px var(--neu-light), 0 0 0 2px var(--border-focus); }
.form-control::placeholder { color: var(--text-placeholder); }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .35rem; }

/* ── Form row — 1 coluna no mobile, 2 no desktop (>=900px). Pra qualquer par de
   campos/informações relacionadas lado a lado (achado real: várias telas
   usavam grid-template-columns:1fr 1fr fixo via style inline, sem breakpoint —
   ficava espremido no celular, ex.: panel/perfil.php). ────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 900px) {
  .form-row { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
}
.form-error { font-size: .78rem; color: var(--danger); margin-top: .35rem; display: none; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; }
.badge-success { color: var(--success); background: var(--success-bg); }
.badge-warning { color: var(--warning); background: var(--warning-bg); }
.badge-danger  { color: var(--danger);  background: var(--danger-bg); }
.badge-info    { color: var(--info);    background: var(--info-bg); }
.badge-muted   { color: var(--text-muted); background: var(--bg-hover); }

.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ── Alertas ──────────────────────────────────────────────────────────────── */
.alert { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 600; margin-bottom: 1rem; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert-success { color: var(--success); background: var(--success-bg); }
.alert-warning { color: var(--warning); background: var(--warning-bg); }
.alert-danger  { color: var(--danger);  background: var(--danger-bg); }
.alert-info    { color: var(--info);    background: var(--info-bg); }

/* ── Campo de senha com olho ─────────────────────────────────────────────────*/
.inp-pwd-wrap { position: relative; }
.inp-pwd-wrap .form-control { padding-right: 2.6rem; }
.btn-pwd-eye { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: .25rem; color: var(--text-muted); display: flex; align-items: center; line-height: 0; }
.btn-pwd-eye:hover { color: var(--text-primary); }
.btn-pwd-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Switch (§9.5) ────────────────────────────────────────────────────────── */
.x-switch { position: relative; display: inline-flex; flex-shrink: 0; width: 30px; height: 17px; }
.x-switch-input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.x-switch-track { width: 30px; height: 17px; border-radius: 9px; background: var(--neu-dark); box-shadow: inset 1px 1px 3px var(--neu-dark); transition: background .15s; position: relative; }
.x-switch-thumb { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg-card); box-shadow: var(--shadow-xs); transition: transform .15s; }
.x-switch-input:checked + .x-switch-track { background: var(--accent); }
.x-switch-input:checked + .x-switch-track .x-switch-thumb { transform: translateX(13px); }

/* ── Modal (§9.1) ─────────────────────────────────────────────────────────── */
.modal-backdrop { display: none; position: fixed; inset: 0; background: var(--bg-overlay); z-index: 500; align-items: center; justify-content: center; padding: 2rem 1rem; overflow-y: auto; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; max-height: calc(100vh - 4rem); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; }
.modal-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.05rem; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: .3rem; line-height: 0; }
.modal-body { padding: 0 1.25rem 1.1rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.25rem; }

/* ── Menu de contexto (kebab) — §9.2 ─────────────────────────────────────── */
.ctx-menu { position: fixed; z-index: 600; background: var(--bg-card); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: .35rem; min-width: 170px; }
.ctx-item { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border-radius: 8px; font-size: .86rem; font-weight: 600; color: var(--text-primary); cursor: pointer; }
.ctx-item:hover { background: var(--bg-hover); }
.ctx-item.danger { color: var(--danger); }
.ctx-separator { height: 1px; background: var(--border); margin: .3rem 0; }
.row-kebab { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: .4rem; border-radius: 8px; line-height: 0; }
.row-kebab:hover { background: var(--bg-hover); color: var(--text-primary); }
.row-kebab svg { width: 18px; height: 18px; }

/* ── Layout: sidebar + topbar ─────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; flex: 1; }
.sidebar {
  width: var(--sidebar-width); background: var(--bg-sidebar); flex-shrink: 0;
  padding: 1.1rem .9rem; display: flex; flex-direction: column; gap: .3rem;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 300; overflow-y: auto;
  transform: translateX(-100%); transition: transform .2s ease;
}
.sidebar.open { transform: translateX(0); }
.sidebar-brand { display: flex; align-items: center; gap: .6rem; padding: .5rem .4rem 1.2rem; }
.sidebar-brand img { width: 34px; height: 34px; border-radius: 10px; }
.sidebar-brand span { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--text-primary); }
.nav-link {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-weight: 700; font-size: .88rem; text-decoration: none; min-height: 44px;
}
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-link:hover { background: var(--bg-hover); }
.nav-link.active { background: var(--bg-card); color: var(--accent); box-shadow: inset 3px 3px 6px var(--neu-dark), inset -3px -3px 6px var(--neu-light); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: var(--bg-overlay); z-index: 290; }
.sidebar-overlay.open { display: block; }

.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar-height); background: var(--bg-topbar); display: flex; align-items: center; gap: .8rem;
  padding: 0 1.1rem; position: sticky; top: 0; z-index: 200;
}
.topbar-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.02rem; flex: 1; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--text-secondary); padding: .5rem; border-radius: 10px; display: flex; line-height: 0; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--bg-hover); }
.icon-btn svg { width: 20px; height: 20px; }

/* ── Botão de ajuda "(?)" — abre modal com explicação em vez de texto sempre
   visível (PADROES.md §12 — nunca deixar parágrafo de explicação exposto
   perto de um título/label, some com espaço e pode sobrepor em tela
   estreita). flex-shrink:0 pra nunca ser espremido pelo texto ao lado. ── */
.btn-ajuda {
  background: none; border: 1px solid var(--border-color); border-radius: 50%;
  width: 22px; height: 22px; padding: 0; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); flex-shrink: 0;
}
.btn-ajuda:hover { background: var(--bg-hover); }
.menu-btn { display: flex; }
.btn-back { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-muted); font-size: .82rem; font-weight: 700; text-decoration: none; margin-bottom: .9rem; }

.page-content { flex: 1; padding: 1.2rem 1.1rem calc(1.2rem + 40px); max-width: 720px; width: 100%; margin: 0 auto; }

@media (min-width: 900px) {
  .sidebar { position: sticky; transform: none; }
  .sidebar-overlay { display: none !important; }
  .menu-btn { display: none; }
  .page-content { max-width: 860px; padding: 1.6rem 2rem calc(1.6rem + 40px); }
}

/* ── FAB ──────────────────────────────────────────────────────────────────── */
.fab-container { position: fixed; right: 1.2rem; bottom: calc(1.5rem + 40px); z-index: 250; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-text);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.fab svg { width: 24px; height: 24px; }

/* ── Tela "Gerar QR" ──────────────────────────────────────────────────────── */
.pill-toggle { display: flex; gap: .4rem; background: var(--bg-card); padding: .3rem; border-radius: var(--radius-md);
  box-shadow: inset var(--neu-distance-sm) var(--neu-distance-sm) var(--neu-blur-sm) var(--neu-dark),
              inset calc(var(--neu-distance-sm) * -1) calc(var(--neu-distance-sm) * -1) var(--neu-blur-sm) var(--neu-light); }
.pill-btn { flex: 1; border: none; background: transparent; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .86rem;
  color: var(--text-muted); padding: .65rem 1rem; border-radius: var(--radius-sm); min-height: 44px; }
.pill-btn.active { background: var(--accent); color: var(--accent-text); box-shadow: var(--shadow-sm); }

/* Grade tipo botão de autoatendimento — tiles compactos, várias colunas */
.conta-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: .7rem; }
.conta-card {
  padding: 1.1rem .7rem; cursor: pointer; min-height: 104px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: .45rem;
}
.conta-card-info { display: flex; flex-direction: column; gap: .1rem; max-width: 100%; }
.conta-card strong { font-size: .86rem; color: var(--text-primary); line-height: 1.25; }
.conta-card span { font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.conta-card.active {
  box-shadow: inset var(--neu-distance-sm) var(--neu-distance-sm) var(--neu-blur-sm) var(--neu-dark),
  inset calc(var(--neu-distance-sm) * -1) calc(var(--neu-distance-sm) * -1) var(--neu-blur-sm) var(--neu-light);
  /* Vira uma barra horizontal ocupando a grade inteira — as outras contas
     já estão escondidas (display:none via JS) nesse estado. */
  grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; text-align: left;
  min-height: 0; padding: .9rem 1rem;
}
.conta-card.active .conta-card-info { text-align: left; }
.conta-card.active span { white-space: normal; }
.conta-card.active strong { color: var(--accent); }

.qr-preview-box { display: flex; justify-content: center; padding: 1.2rem; margin-bottom: 1rem; }
.qr-preview-box > div { background: #ffffff; padding: 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }

/* ── Logo do banco por conta PIX — miniatura ─────────────────────────────── */
.conta-logo-thumb {
  width: 32px; height: 32px; border-radius: 9px; object-fit: contain;
  background: #fff; padding: 4px; flex-shrink: 0; box-shadow: var(--shadow-xs);
}
/* Maior — usado no card de seleção de conta em Gerar QR, onde tem mais espaço */
.conta-logo-thumb-lg {
  width: 44px; height: 44px; border-radius: 11px; object-fit: contain;
  background: #fff; padding: 5px; flex-shrink: 0; box-shadow: var(--shadow-xs);
}

/* ── Tela "Contas PIX" — dual markup mobile/desktop (§10, breakpoint 900px) ── */
.contas-grid { display: flex; flex-direction: column; gap: .7rem; }
.contas-tabela-wrap { display: none; }
.conta-item-card { padding: .9rem 1rem; cursor: pointer; }
@media (min-width: 900px) {
  .contas-grid { display: none; }
  .contas-tabela-wrap { display: block; }
}

/* ── Tela "Histórico" — dual markup mobile/desktop (§10, breakpoint 900px) ── */
.hist-grid { display: flex; flex-direction: column; gap: .7rem; }
.hist-tabela-wrap { display: none; }
.hist-item-card { padding: .9rem 1rem; cursor: pointer; }
@media (min-width: 900px) {
  .hist-grid { display: none; }
  .hist-tabela-wrap { display: block; }
}

/* ── Tela "Empresas" (panel/) — dual markup mobile/desktop (§10, breakpoint 900px) ──
   Achado real (2026-09-05): faltava esse tratamento aqui, diferente do resto do
   catálogo — numa tela estreita a tabela cortava e só "Empresa"/"E-mail" ficavam
   visíveis, com o kebab (e a ação "Ver ficha") empurrado pra fora da tela sem
   nenhuma indicação de rolar. */
.empresas-grid { display: flex; flex-direction: column; gap: .7rem; }
.empresas-tabela-wrap { display: none; }
.empresa-item-card { padding: .9rem 1rem; cursor: pointer; }
@media (min-width: 900px) {
  .empresas-grid { display: none; }
  .empresas-tabela-wrap { display: block; }
}

/* ── Cor de acento — swatches (§7.1) ─────────────────────────────────────── */
.cor-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-bottom: 1.1rem; position: relative; }
.cor-swatch {
  width: 38px; height: 38px; min-height: 38px; aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; padding: 0;
  cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .1s;
}
.cor-swatch:hover { transform: scale(1.08); }
.cor-swatch svg { width: 16px; height: 16px; color: #fff; opacity: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.cor-swatch.selecionado { border-color: var(--text-primary); }
.cor-swatch.selecionado svg { opacity: 1; }
.cor-swatch-outra { background: conic-gradient(from 180deg, #ef4444, #eab308, #22c55e, #06b6d4, #6366f1, #ec4899, #ef4444); }
.cor-swatch-outra svg { color: #fff; opacity: 1; }
.cor-swatch-outra.selecionado svg { opacity: 0; }
.cor-swatch-input-real { position: absolute; width: 1px; height: 1px; min-height: 1px; opacity: 0; }

/* ── Rodapé fixo (PADROES.md §8.5) — versão discreta específica do EasyQR,
   igual à do PreçoView. Padrão da casa é uma faixa sólida na cor de acento;
   aqui o usuário pediu algo mais discreto só pra este sistema — decisão
   pontual, não altera PADROES.md a partir disto. ─────────────────────────── */
.footer-fixo {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  background: var(--bg-card); color: var(--text-muted);
  border-top: 1px solid var(--border);
  text-align: center; font-size: .68rem; font-weight: 600;
  padding: .4rem 1rem;
}
.footer-fixo a { color: var(--text-secondary); text-decoration: none; }

@media print {
  .footer-fixo, .sidebar, .topbar, .fab-container { display: none !important; }
}

/* ── Pull-to-refresh (§11) — compartilhado por admin/ e panel/ ─────────────── */
#ptr-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-64px);
  opacity: 0;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 600;
  pointer-events: none;
  transition: transform .26s cubic-bezier(.34,1.4,.64,1), opacity .2s ease;
}
#ptr-indicator.ptr-pulling { transition: none; }
#ptr-indicator svg { width: 20px; height: 20px; display: block; }
#ptr-indicator.ptr-refreshing svg { animation: ptr-spin .65s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
