/*
 * Pixel Stock — o painel da loja, a frente de caixa e a tela de entrada.
 *
 * Na família do Pixel Food e do Pixel Barber: cartão branco sobre o fundo da
 * casa, trilha funda de ícones, item ativo na cor de ação da loja com letra
 * branca. A frente de caixa é o "cupom na tela" (opção A) e o produto com
 * grade é o "quadro cor × tamanho" (opção A), escolhidos pelo Kayo em
 * 19/10/2026 (DEC-036).
 *
 * A marca do Pixel Stock (o laranja da Pixel Tech) aparece só na entrada, onde
 * ainda não se sabe de que loja é a pessoa. Os tons --ps-* são os mesmos do
 * public/brand/theme.json, e o teste do tema confere (tests/theme.test.ts).
 *
 * Vermelho, verde e âmbar são estado: acabou, deu certo, no mínimo. Cheios,
 * com letra branca; nunca viram cor de loja. Nada tem cara de navegador:
 * confirmação, lista, calendário, sugestões, área de soltar arquivo e olho da
 * senha são do produto (panel.js).
 */

@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  /* A marca do Pixel Stock (theme.json): o laranja da Pixel Tech. */
  --ps-orange: #fc7a00;
  /* Letra branca no laranja, sempre (pedido do Kayo, 19/10/2026). */
  --ps-on-orange: #ffffff;
  --ps-ink: #1b2230;
  --ps-soft: #5d6676;
  --ps-subtle: #f2f3f5;
  --ps-card: #ffffff;

  /* Estado. */
  --ok: #2b8a3e;
  --bad: #e03131;
  --bad-deep: #c92a2a;
  --bill: #b86400;

  /* Neutros do painel. */
  --ink: #1d2739;
  --soft: #6d7789;
  --line: #e9edf2;
  --sunken: #f4f6f9;
  --card: #ffffff;
  --side: #f6f7f8;

  /* Sem loja (entrada), a paleta Grafite. */
  --t-primary: #2a2f36; --t-deep: #171a1f; --t-action: #c55a00; --t-hi: #fcb045; --t-hi-ink: #2b1700;
  --t-sand: #f1f2f4; --t-line: #e3e6ea; --t-panel: #e8eaed; --t-tint: #fdf2e8;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: "Manrope", "Segoe UI", system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--t-action); outline-offset: 2px; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tnum { font-variant-numeric: tabular-nums; }


/* Aviso cheio, letra branca. */
.notice { border-radius: 12px; padding: 11px 14px; font-size: 13.5px; font-weight: 700; color: #fff; }
.notice-ok { background: var(--ok); }
.notice-error { background: var(--bad); }

/* ------------------------------------------------------------ entrada */

.e-page { min-height: 100vh; background: #e8eaed; display: grid; place-items: center; padding: 24px 16px; }
/* Pelo mesmo motivo do .p-card: o fundo branco é do lado do formulário, e não da
   moldura, para não vazar no canto da arte escura. */
.e-frame { width: min(980px, 100%); min-height: 600px; background: transparent; border-radius: 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; box-shadow: 0 1px 2px rgb(22 32 50 / 5%), 0 18px 50px rgb(22 32 50 / 12%); }
.e-side { padding: 44px 48px; display: flex; flex-direction: column; gap: 16px; background: var(--ps-card); }
.e-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--ps-ink); }
.e-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--ps-orange); display: grid; place-items: center; }
.e-mark svg { width: 24px; height: 24px; fill: #fff; }
.e-title { font-size: 30px; line-height: 1.12; font-weight: 500; color: var(--ps-ink); margin-top: 28px; text-wrap: balance; }
.e-title b { font-weight: 800; }
.e-lead { color: var(--ps-soft); font-size: 15px; line-height: 1.5; }
.e-form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.e-button { display: block; width: 100%; text-align: center; text-decoration: none; border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 800; font-size: 15px; background: var(--ps-orange); color: var(--ps-on-orange); margin-top: 4px; }
.e-button.e-flat { background: var(--ps-subtle); color: var(--ps-ink); }
.e-side form + form, .e-side a + form { margin-top: 0; }
.e-foot { margin-top: auto; padding-top: 24px; font-size: 12.5px; color: var(--ps-soft); line-height: 1.6; }
.e-foot b { color: var(--ps-ink); }
.e-art { position: relative; background: #1b1f24; overflow: hidden; }
.e-p { position: absolute; width: 520px; height: 470px; right: -120px; bottom: -80px; fill: var(--ps-orange); opacity: .95; }
.e-card { position: absolute; background: #fff; border-radius: 18px; padding: 14px 16px; width: 250px; box-shadow: 0 18px 40px rgb(0 0 0 / .3); display: flex; flex-direction: column; gap: 4px; }
.e-card small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c55a00; }
.e-card b { font-size: 14.5px; line-height: 1.35; color: var(--ps-ink); }
.e-card-1 { left: 36px; top: 54px; }
.e-card-2 { left: 70px; top: 170px; }
.e-card-3 { left: 30px; top: 286px; }
@media (max-width: 820px) {
  .e-frame { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .e-art { display: none; }
  .e-side { padding: 32px 24px; }
}

/* O rótulo mora dentro do campo e sobe quando se digita. */
.field-float { position: relative; }
.field-float input { width: 100%; height: 58px; border: 1.5px solid #dfe3e9; border-radius: 14px; padding: 22px 16px 6px; font-size: 15.5px; background: #fff; outline: 0; }
.field-float input:focus { border-color: var(--ps-orange); }
.field-float label { position: absolute; left: 17px; top: 19px; font-size: 15px; color: var(--ps-soft); pointer-events: none; transition: top .12s ease, font-size .12s ease; }
.field-float input:focus + label, .field-float input:not(:placeholder-shown) + label { top: 8px; font-size: 11.5px; font-weight: 700; }
.field-float .eye { position: absolute; right: 8px; top: 9px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ps-soft); display: grid; place-items: center; }
.field-float input[type="password"]::-ms-reveal { display: none; }
.field-hint { font-size: 12.5px; color: var(--soft); }
.field-error { font-size: 12.5px; color: var(--bad); font-weight: 700; }


/* ------------------------------------------------------------- painel */

.p-page { background: var(--t-panel); min-height: 100vh; }
.p { padding: 14px; height: 100vh; display: flex; }
/* O cartão não pinta fundo: cada parte pinta o seu. Branco atrás da trilha escura
   vazava no canto arredondado como um fio claro (visto no programa de mesa). */
.p-card { flex: 1; min-width: 0; background: transparent; border-radius: 26px; display: flex; overflow: hidden; position: relative; box-shadow: 0 1px 2px rgb(22 32 50 / 5%), 0 10px 30px rgb(22 32 50 / 7%); }
.p-rail { width: 92px; background: var(--t-deep); color: rgb(255 255 255 / .74); display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 3px; flex: none; overflow-y: auto; scrollbar-width: none; }
.p-rail::-webkit-scrollbar { display: none; }
.logo { width: 48px; height: 48px; border-radius: 50%; background: var(--t-hi); color: var(--t-hi-ink); display: grid; place-items: center; flex: none; overflow: hidden; }
.logo svg { width: 58%; height: 58%; fill: currentColor; }
.logo b { font: 900 17px/1 "Figtree", "Segoe UI", sans-serif; }
.logo.has-img { background: #fff; }
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-rail > .logo { margin-bottom: 12px; box-shadow: 0 0 0 3px rgb(255 255 255 / .14); }
.p-nav { border: 0; background: transparent; color: inherit; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 10.5px "Manrope", sans-serif; padding: 9px 2px; width: 76px; border-radius: 15px; position: relative; flex: none; text-align: center; }
.p-nav:hover { color: #fff; background: rgb(255 255 255 / .08); }
.p-nav.on { background: var(--t-action); color: #fff; }
/* No item selecionado o aviso inverte: bola branca, número na cor da casa. */
.p-nav.on .count { background: #fff; color: var(--t-action); }
.p-nav .count { position: absolute; top: 4px; right: 10px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--bad); color: #fff; font: 800 10.5px/18px "Manrope", sans-serif; padding: 0 5px; }
.p-rail .spacer { flex: 1; min-height: 8px; }
.p-out { margin: 0; }
.p-made { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 9px "Manrope", sans-serif; color: rgb(255 255 255 / .55); letter-spacing: .04em; margin-top: 6px; }
.p-made svg { width: 18px; height: 18px; fill: var(--ps-orange); }
.p-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--card); }
/* A aba no meio da borda da trilha, na cor do próprio menu, como se saísse
   dele (opção A, escolhida pelo Kayo): recolhe o menu para só os ícones e
   expande de volta. Tudo corre junto e devagar, sem pulo: a faixa estreita, os
   nomes somem antes (e voltam depois, na volta), a logo encolhe e a aba anda
   com a borda. Com mouse, a aba só aparece com ele em cima do menu ou dela;
   em tela de toque (o tablet do balcão) não há "em cima", e ela fica sempre. */
.p-rail-toggle { position: absolute; top: 50%; left: 92px; z-index: 5; transform: translateY(-50%); width: 14px; height: 44px; padding: 0; border: 0; border-radius: 0 9px 9px 0; background: var(--t-deep); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: left .32s cubic-bezier(.4, 0, .2, 1), transform .2s ease, opacity .2s ease, background-color .15s; }
.p-rail-toggle:hover { background: var(--t-primary); }
.p-rail-toggle svg.i { width: 14px; height: 14px; stroke-width: 2.6; transform: rotate(-90deg); }
@media (hover: hover) {
  .p-rail-toggle { opacity: 0; transform: translate(-6px, -50%); }
  .p-rail:hover ~ .p-rail-toggle, .p-rail-toggle:hover, .p-rail-toggle:focus-visible { opacity: 1; transform: translateY(-50%); }
}
.p-rail, .p-nav, .p-rail > .logo, .p-rail-toggle svg.i, .p-nav .count { transition: width .32s cubic-bezier(.4, 0, .2, 1), height .32s cubic-bezier(.4, 0, .2, 1), gap .32s cubic-bezier(.4, 0, .2, 1), left .32s cubic-bezier(.4, 0, .2, 1), right .32s cubic-bezier(.4, 0, .2, 1), transform .32s cubic-bezier(.4, 0, .2, 1), background-color .15s; }
/* O nome se corta dentro dele mesmo, e não o item inteiro: a bola do aviso
   passa da quina arredondada do item e não pode sair cortada. */
.p-nav .lbl, .p-made .lbl { display: block; max-width: 100%; max-height: 16px; overflow: hidden; white-space: nowrap; transition: opacity .2s ease .14s, max-height .32s cubic-bezier(.4, 0, .2, 1); }
@media (min-width: 861px) {
  .rail-closed .p-rail { width: 64px; }
  .rail-closed .p-nav { width: 48px; gap: 0; }
  .rail-closed .p-nav .lbl, .rail-closed .p-made .lbl { opacity: 0; max-height: 0; transition: opacity .12s ease, max-height .32s cubic-bezier(.4, 0, .2, 1); }
  .rail-closed .p-nav .count { right: 1px; top: 1px; }
  .rail-closed .p-rail > .logo { width: 40px; height: 40px; }
  .rail-closed .p-rail-toggle { left: 64px; }
  .rail-closed .p-rail-toggle svg.i { transform: rotate(90deg); }
}
.p-band { background: var(--bill); color: #fff; font-weight: 700; font-size: 13.5px; padding: 10px 22px; }
.p-band a { color: #fff; font-weight: 800; }
.p-head { display: flex; align-items: center; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.p-head h1 { font-size: 21px; font-weight: 800; }
.p-head p { font-size: 12.5px; color: var(--soft); margin-top: 2px; }
.p-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.p-stat { background: var(--sunken); border-radius: 13px; padding: 7px 13px; }
.p-stat span { display: block; font-size: 11px; font-weight: 600; color: var(--soft); }
.p-stat b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.p-stat.red { background: var(--bad); color: #fff; }
.p-stat.red span { color: #fff; }
.p-user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.p-user small { display: block; font-weight: 500; color: var(--soft); font-size: 11.5px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--t-deep); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; flex: none; }
.p-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; position: relative; }
.p-body > .notice { margin: 14px 22px 0; }
/* As telas ocupam a janela toda (pedido do Kayo, 19/10/2026): nada de coluna
   estreita encostada na esquerda com o resto em branco. */
.p-pad { padding: 16px 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.p-btn { border: 0; border-radius: 10px; padding: 8px 12px; font: 800 12.5px "Manrope", sans-serif; background: var(--t-primary); color: #fff; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.p-btn svg.i { width: 16px; height: 16px; }
.p-btn.ghost { background: var(--sunken); color: var(--ink); }
.p-btn.big { padding: 11px 16px; font-size: 13.5px; border-radius: 12px; }
.p-btn.danger { background: var(--bad); color: #fff; }
.p-btn.danger-text { color: var(--bad-deep); }
.p-btn:disabled { opacity: .6; cursor: default; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--sunken); color: var(--ink); display: inline-grid; place-items: center; text-decoration: none; flex: none; }
.icon-btn svg.i { width: 17px; height: 17px; }
.p-h4 { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); font-weight: 800; margin-top: 4px; }
.p-title { font-size: 14px; font-weight: 800; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.p-title small { font-size: 11.5px; font-weight: 600; color: var(--soft); }
.p-soft { color: var(--soft); font-size: 12.5px; }
.p-note { background: var(--sunken); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.5; color: #3b4556; }
.p-empty { background: #fff; border: 1px dashed #d8dee6; border-radius: 16px; padding: 16px; text-align: center; font-size: 13px; color: var(--soft); font-weight: 600; }
.p-empty a { font-weight: 800; }
.pill { display: inline-block; font-size: 10.5px; font-weight: 800; border-radius: 6px; padding: 2px 7px; background: var(--t-primary); color: #fff; vertical-align: 2px; margin-left: 4px; }
.pill.soft { background: var(--sunken); color: var(--soft); }
.pill.yes { background: var(--ok); color: #fff; }
.pill.no { background: var(--sunken); color: var(--soft); }
.p-row-end { display: flex; justify-content: flex-end; }


/* Linhas de cadastro: categorias, equipe, vendedores, caixas. */
.p-mgroup { display: flex; flex-direction: column; gap: 8px; }
.mg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mi { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px 12px 8px 8px; }
.mi-ph { width: 54px; height: 54px; border-radius: 12px; overflow: hidden; background: var(--t-sand); display: grid; place-items: center; color: var(--t-primary); font: 800 15px "Manrope", sans-serif; }
.mi-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mi-ph svg.i { width: 22px; height: 22px; }
.mi-text { min-width: 0; }
.mi-text b { font-size: 14px; display: block; }
.mi-text > span { font-size: 12px; color: var(--soft); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi .money { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.mi.off { background: #fff6f6; border-color: #ffd8d8; }
.mi.off .mi-ph img { filter: grayscale(1); opacity: .55; }
.mi.archived { background: var(--sunken); }
.mi.archived .mi-ph img { filter: grayscale(1); opacity: .5; }
.mi-state { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; justify-content: flex-end; margin: 0; }
.mi-state em { color: var(--ok); }
.mi.off .mi-state em { color: var(--bad); }
.mi-actions { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.mi-actions form { margin: 0; }
.avatar-ph { border-radius: 50%; background: var(--t-sand); color: var(--t-deep); }
.archived-zone { margin-top: 10px; padding-top: 14px; border-top: 1px dashed #d8dee6; }
.qty { display: inline-flex; align-items: center; gap: 4px; }



/* Números e listas */
.p-rev-top { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.p-big { font-size: 40px; font-weight: 800; line-height: 1; }
.p-stars { display: inline-flex; gap: 2px; color: var(--t-action); }
.p-stars svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.p-stars svg.off { color: #d5dbe4; }
.bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 12px; font-weight: 700; color: var(--soft); }
.bar-row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: #eef1f5; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--t-primary); }
.rv { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; }
.rv-head { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; flex-wrap: wrap; }
.rv-head span { color: var(--soft); font-weight: 600; }
.rv p { font-size: 13.5px; line-height: 1.5; color: #2b3445; }
.rv-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-tags span { font-size: 11px; font-weight: 700; background: #f1f4f8; border-radius: 6px; padding: 3px 8px; color: #3b4556; }
.gs { display: grid; grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1fr) 70px 110px 80px; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; font-size: 13px; }
.gs.head { background: transparent; border: 0; padding-block: 0; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.gs b { display: block; font-size: 14px; }
.gs small { color: var(--soft); font-size: 12px; }
.gs .avatar { width: 40px; height: 40px; background: var(--t-sand); color: var(--t-deep); }
.p-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.kpi span { display: block; font-size: 12px; font-weight: 600; color: var(--soft); }
.kpi b { display: block; font-size: 24px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12px; color: var(--soft); font-weight: 600; }
.p-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.chart svg { width: 100%; height: auto; display: block; }
.ch-grid { stroke: #e8ecf1; stroke-width: 1; }
.ch-label { font: 600 11px "Manrope", sans-serif; fill: var(--soft); }
.ch-bar { fill: var(--t-primary); }
.ch-now { fill: var(--t-action); }



/* Formulários */
.p-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-label-static { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.field input, .field textarea, .field select, .p-inline input, .p-inline select, .copy-line input, .p-search input {
  width: 100%; border: 1.5px solid #dfe3e9; border-radius: 12px; padding: 11px 13px; font-size: 14.5px; background: #fff; outline: 0;
}
.field input:focus, .field textarea:focus, .p-inline input:focus, .p-search input:focus { border-color: var(--t-primary); }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-actions.sticky { position: sticky; bottom: 0; background: #fff; padding: 12px 0; border-top: 1px solid var(--line); }
.p-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--sunken); border-radius: 16px; padding: 10px; margin: 0; }
.p-inline input, .p-inline select { flex: 1 1 160px; width: auto; padding: 9px 12px; font-size: 13.5px; }
.p-search { margin: 0; }
.p-search label { display: flex; align-items: center; gap: 8px; max-width: 420px; border: 1.5px solid #dfe3e9; border-radius: 12px; padding: 0 12px; background: #fff; color: var(--soft); }
.p-search input { border: 0; padding: 10px 0; }
.p-search input::-webkit-search-cancel-button { display: none; }
.check-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; position: relative; font-size: 13px; color: var(--soft); cursor: pointer; }
.check-row b { display: block; color: var(--ink); font-size: 13.5px; }
.check-row input { position: absolute; left: 0; top: 0; width: 24px; height: 24px; opacity: 0; margin: 0; cursor: pointer; }
.check-row i { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #d5dbe4; display: grid; place-items: center; color: #fff; }
.check-row i svg { width: 15px; height: 15px; stroke-width: 3; opacity: 0; }
.check-row input:checked + i { background: var(--t-primary); border-color: var(--t-primary); }
.check-row input:checked + i svg { opacity: 1; }
.check-row input:focus-visible + i { outline: 3px solid var(--t-action); outline-offset: 2px; }
.check-row.slim { align-items: center; margin-top: 4px; }
.p-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #ffd8d8; background: #fff8f8; border-radius: 16px; padding: 14px 16px; margin: 6px 0 0; }
.p-danger-zone.flat { margin: 0; }
.p-danger-zone b { display: block; font-size: 13.5px; }
.p-danger-zone span { font-size: 12.5px; color: var(--soft); }
.p-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.p-created { background: var(--ok); color: #fff; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.p-created code { background: #fff; color: var(--ink); border-radius: 8px; padding: 3px 8px; font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.p-created .p-btn { vertical-align: middle; }
.copy-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-line input { flex: 1 1 260px; width: auto; background: var(--sunken); font-variant-numeric: tabular-nums; }
.p-links { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.p-links b { display: block; font-size: 14px; }
.p-links > div > span { font-size: 12.5px; color: var(--soft); }
.p-links .copy-line { flex: 1 1 380px; }

/* Área de soltar a foto: o campo de arquivo de verdade fica por cima,
   transparente, e é ele que o formulário envia. */
.drop { position: relative; display: flex; align-items: center; gap: 14px; border: 2px dashed #d5dbe4; border-radius: 16px; padding: 14px; background: #fafbfc; cursor: pointer; min-height: 86px; }
.drop.over { border-color: var(--t-primary); background: #f3f6f9; }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-current { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; flex: none; }
.drop-current.round { border-radius: 50%; width: 64px; height: 64px; }
.drop-current.wide { width: 160px; height: 90px; }
.drop-text { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--soft); }
.drop-text b { color: var(--ink); font-size: 14px; }
.drop-text svg.i { color: var(--t-primary); }
.drop.small { min-height: 72px; }

/* Escolher a cara da casa */
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-card { display: flex; flex-direction: column; gap: 8px; border: 2px solid var(--line); border-radius: 16px; padding: 12px; height: 100%; background: #fff; }
.pick input:checked + .pick-card { border-color: var(--t-action); box-shadow: 0 0 0 2px var(--t-action) inset; }
.pick input:focus-visible + .pick-card { outline: 3px solid var(--t-action); outline-offset: 2px; }
.pick-card b { font-size: 13px; }
.swatches { display: flex; gap: 4px; }
.swatches i { width: 26px; height: 26px; border-radius: 8px; display: block; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.pick-button { color: #fff; font-weight: 800; font-size: 12px; border-radius: 9px; padding: 7px 10px; text-align: center; }
.font-sample { font-size: 19px; line-height: 1.1; color: var(--ink); min-height: 42px; display: flex; align-items: center; }
.pick.small .pick-card { align-items: center; text-align: center; }
.picks:has(.pick.small) { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }



/* Lista que substitui a do <select> (panel.js). */
.sel { position: relative; }
.sel-button { width: 100%; text-align: left; border: 1.5px solid #dfe3e9; border-radius: 12px; padding: 11px 38px 11px 13px; font-size: 14.5px; background: #fff; position: relative; min-height: 46px; }
.p-inline .sel { flex: 0 1 150px; }
.p-inline .sel-button { padding: 9px 34px 9px 12px; font-size: 13.5px; min-height: 0; }
.sel-button::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); }
/* As listas que abrem por cima (select, sugestao, calendario) vao para o body:
   ficam acima da caixa (.modal-bg, 100) e abaixo do balao de dica (300). */
.sel-list { position: fixed; z-index: 200; background: #fff; border: 1px solid #dfe3e9; border-radius: 12px; box-shadow: 0 14px 34px rgb(20 26 36 / .18); padding: 5px; max-height: 280px; overflow-y: auto; }
.sel-list button { display: block; width: 100%; text-align: left; border: 0; background: none; border-radius: 8px; padding: 9px 11px; font-size: 14px; }
.sel-list button:hover, .sel-list button.active { background: var(--sunken); }
.sel-list button[aria-selected="true"] { font-weight: 800; color: var(--t-primary); }
.sug-list { position: fixed; z-index: 200; background: #fff; border: 1px solid #dfe3e9; border-radius: 12px; box-shadow: 0 14px 34px rgb(20 26 36 / .18); padding: 5px; max-height: 240px; overflow-y: auto; }
.sug-list button { display: block; width: 100%; text-align: left; border: 0; background: none; border-radius: 8px; padding: 9px 11px; font-size: 14px; }
.sug-list button:hover, .sug-list button.active { background: var(--sunken); }

/* Confirmação do produto (nunca o confirm do navegador). */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgb(20 26 36 / .45); display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 20px; padding: 22px; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgb(0 0 0 / .25); }
.modal p { font-size: 15px; line-height: 1.5; font-weight: 600; }
/* Os botões da confirmação (a div sem classe que o panel.js monta). */
.modal > div:not([class]) { display: flex; gap: 10px; justify-content: flex-end; }



/* Selos. Estado cheio, com letra branca; os da casa na cor dela. */
.pill.new { background: var(--t-action); color: #fff; }
.pill.wait { background: var(--bill); color: #fff; }
.pill.paid, .pill.ok, .pill.done { background: var(--ok); color: #fff; }
.pill.bad { background: var(--bad); color: #fff; }
.pill.hi { background: var(--t-hi); color: var(--t-hi-ink); }

/* Os sinais (escolha do Kayo no Pixel Barber): ícone pequeno no lugar do selo
   colorido, com a dica do painel. Acima do link esticado da linha, para a dica
   aparecer. */
.mk { display: inline-flex; align-items: center; gap: 2px; margin-left: 3px; vertical-align: -2px; color: var(--soft); position: relative; z-index: 1; }
.mk svg.i { width: 15px; height: 15px; stroke-width: 2; }
.mk b { font-size: 12px; font-weight: 800; }
.mk.ok { color: var(--ok); }
.mk.bad { color: var(--bad); }
.mk.wait { color: var(--bill); }
.mk-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 2px 0; font-size: 11.5px; font-weight: 700; color: var(--soft); }
.mk-key span { display: inline-flex; align-items: center; gap: 4px; }
.mk-key svg.i { width: 14px; height: 14px; }

/* A dica: a do painel, e não o balão do navegador. */
.p-tip { position: fixed; z-index: 300; padding: 6px 10px; border-radius: 8px; background: var(--t-deep); color: #fff; font: 700 12px "Manrope", sans-serif; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 22px rgb(20 26 36 / .22); opacity: 0; transform: translateY(3px); transition: opacity .11s ease, transform .11s ease; }
.p-tip[data-open] { opacity: 1; transform: none; }
.p-tip[hidden] { display: none; }


.rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.rows > .p-empty { border: 0; border-radius: 0; }
/* Colunas de largura fixa: cada linha é uma grade própria, e com "auto" as
   colunas andavam conforme os botões da linha (visto no Pixel Barber). Fixas,
   elas ficam alinhadas na lista toda. */
.r { display: grid; grid-template-columns: 52px minmax(0, 1fr) 150px 190px; gap: 12px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 54px; }
.r:first-child { border-top: 0; }
.r.compact { grid-template-columns: 52px minmax(0, 1fr) auto auto; }
.r.compact.cash { grid-template-columns: 52px minmax(0, 1fr) 110px 150px; }
.r .tm { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.r .cl { min-width: 0; text-decoration: none; color: inherit; }
.r .cl b { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.r .cl small { font-size: 12px; font-weight: 600; color: var(--soft); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Escolha do Kayo no Pixel Barber: passar o mouse acende a linha inteira, e o
   clique em qualquer lugar dela abre o cadastro — o link do nome se estica por
   cima da linha. Os botões ficam acima dele e continuam sendo botões. */
.r:has(> a.cl) { position: relative; }
.r > a.cl::after { content: ""; position: absolute; inset: 0; }
.r > a.cl:focus-visible { outline: none; }
.r .ra { position: relative; z-index: 1; pointer-events: none; }
.r .ra > * { pointer-events: auto; }
.r:has(> a.cl):hover, .r:has(> a.cl:focus-visible), a.r:hover, a.r:focus-visible { background: var(--sunken); box-shadow: inset 3px 0 0 var(--t-primary); outline: none; }
.r .ra { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.r .ra form { margin: 0; }
.r .money { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.r.late .tm { color: var(--bad); }
.r.st-cancelled { opacity: .55; }
.r.st-cancelled .cl b { text-decoration: line-through; }

.box { background: #fff; border-radius: 16px; padding: 13px; box-shadow: 0 1px 2px rgb(22 32 50 / 6%); display: flex; flex-direction: column; gap: 7px; text-decoration: none; color: var(--ink); }
.box h6 { margin: 0; font-size: 13.5px; font-weight: 800; display: flex; justify-content: space-between; align-items: baseline; }
.box h6 small { font-size: 11.5px; font-weight: 600; color: var(--soft); }
.box .b-sm { align-self: flex-start; margin-top: 2px; }
.big { font-size: 25px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.big small { font-size: 12px; font-weight: 600; color: var(--soft); display: block; margin-top: 2px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--soft); }
.kv b { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.alert { border-radius: 14px; padding: 11px 12px; font-size: 12.5px; font-weight: 700; line-height: 1.4; display: flex; flex-direction: column; gap: 7px; text-decoration: none; }
.alert.bad { background: var(--bad); color: #fff; }
.alert.bad .b-sm { background: #fff; color: var(--bad-deep); align-self: flex-start; }
.alert.info { background: var(--sunken); color: var(--ink); }

/* O calendário do produto, no lugar do do navegador (panel.js). */
.date-wrap { position: relative; }
.date-wrap input { padding-right: 42px; }
.date-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--soft); display: grid; place-items: center; }
.date-btn svg.i { width: 18px; height: 18px; }
.cal-pop { position: fixed; z-index: 200; width: 292px; background: #fff; border: 1px solid #dfe3e9; border-radius: 16px; box-shadow: 0 14px 34px rgb(20 26 36 / .18); padding: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; }
.cal-head b { font-size: 14px; font-weight: 800; }
.cal-head button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--sunken); display: grid; place-items: center; }
.cal-head svg.i { width: 16px; height: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-grid span { font-size: 10.5px; font-weight: 800; color: var(--soft); text-align: center; padding: 4px 0; }
.cal-grid button { height: 36px; border: 0; border-radius: 9px; background: none; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-grid button:hover { background: var(--sunken); }
.cal-grid button[data-other] { color: #b4bcc8; }
.cal-grid button[data-today] { box-shadow: inset 0 0 0 1.5px var(--t-action); }
.cal-grid button[aria-pressed="true"] { background: var(--t-primary); color: #fff; }
.cal-quick { display: flex; gap: 6px; padding-top: 8px; margin-top: 6px; border-top: 1px solid var(--line); }
.cal-quick button { flex: 1; border: 0; border-radius: 9px; background: var(--sunken); padding: 7px 4px; font-size: 12px; font-weight: 800; }


/* Painel estreito (o celular do dono): a trilha vira faixa em cima. */
@media (max-width: 860px) {
  .p { padding: 0; height: 100dvh; }
  .p-card { border-radius: 0; flex-direction: column; }
  .p-rail { width: 100%; flex-direction: row; padding: 8px 10px; gap: 4px; overflow-x: auto; overflow-y: hidden; }
  .p-rail > .logo { width: 38px; height: 38px; margin: 0 6px 0 0; }
  .p-rail .spacer, .p-made { display: none; }
  .p-rail-toggle { display: none; }
  .p-nav { width: auto; padding: 8px 11px; }
  .p-head { padding: 12px 16px; gap: 10px; }
  .p-user { display: none; }
  .p-pad { padding: 14px 14px 20px; }
  .field-row, .field-row.three { grid-template-columns: minmax(0, 1fr); }
  .p-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mi { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .mi .money { display: none; }
  .mi > span:empty { display: none; }
  .mi-actions { grid-column: 2 / -1; justify-content: flex-start; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .switch::after, .field-float label, .p-rail, .p-nav, .p-nav .lbl, .p-made .lbl, .p-rail > .logo, .p-rail-toggle, .p-rail-toggle svg.i, .p-nav .count { transition: none !important; } }

/* ============================================================ Pixel Stock */

.js [data-noscript-only] { display: none; }
.p-head-title { min-width: 0; }
.p-btn.act, .btn-act { background: var(--t-action); color: #fff; }
.btn-act { border: 0; border-radius: 12px; padding: 10px 14px; font: 800 13px "Manrope", sans-serif; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.btn-act svg.i { width: 16px; height: 16px; stroke-width: 2.4; }
.p-btn.big.act { padding: 12px 18px; }
.p-head .stats { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.p-head .stats + .btn-act, .p-head .stats + .p-btn { margin-left: 0; }
.stats .st { background: var(--sunken); border-radius: 13px; padding: 6px 12px; }
.stats .st span { display: block; font-size: 11px; font-weight: 600; color: var(--soft); }
.stats .st b { font-size: 15.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stats .st.red { background: var(--bad); color: #fff; }
.stats .st.red span { color: #fff; }
.b-sm { border: 0; border-radius: 9px; padding: 7px 10px; font: 800 12px "Manrope", sans-serif; background: var(--sunken); color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; cursor: pointer; }
.b-sm svg.i { width: 14px; height: 14px; }
.b-sm.go { background: var(--t-primary); color: #fff; }
.b-sm.act { background: var(--t-action); color: #fff; }
.b-sm.danger { background: var(--bad); color: #fff; }
.b-sm:disabled { opacity: .6; }
.kbd { display: inline-block; font: 800 10.5px/1 "Manrope", sans-serif; border-radius: 6px; padding: 4px 6px 3px; background: var(--sunken); color: var(--ink); box-shadow: inset 0 -1.5px 0 rgb(29 39 57 / .16); white-space: nowrap; }
.kbd.light { background: rgb(255 255 255 / .2); color: #fff; box-shadow: inset 0 -1.5px 0 rgb(0 0 0 / .18); }
.dots { display: flex; gap: 14px; margin-left: auto; }
.dot { display: flex; align-items: center; gap: 6px; font: 700 11.5px "Manrope", sans-serif; color: var(--soft); white-space: nowrap; }
.dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: block; }
.dot.off i { background: #b7bec9; }
.dot.bad { color: var(--bad-deep); }
.dot.bad i { background: var(--bad); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.neg { color: var(--bad-deep); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 13px; font: 800 12.5px "Manrope", sans-serif; background: #fff; text-decoration: none; color: var(--ink); white-space: nowrap; }
.tab.on { background: var(--t-primary); border-color: var(--t-primary); color: #fff; }
.p-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }

/* ------------------------------------------------- a frente de caixa (A) */

/* A frente de caixa ocupa a tela inteira: a lista rola por dentro, o total e
   o botão de receber ficam sempre à vista. */
.pdv-mode .p-body { overflow: hidden; display: flex; flex-direction: column; }
.pdv-mode .p-body > [data-region="body"] { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pdv { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pdv-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.pdv-main { padding: 14px 18px 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.scan { display: flex; align-items: center; gap: 10px; height: 56px; border: 2px solid var(--t-primary); border-radius: 14px; padding: 0 8px 0 14px; background: #fff; flex: none; margin: 0; position: relative; }
.scan > svg.i { width: 26px; height: 26px; color: var(--t-primary); stroke-width: 2; }
.scan input { flex: 1; min-width: 0; border: 0; outline: 0; font: 600 17px "Manrope", sans-serif; background: transparent; height: 100%; }
.scan input::placeholder { color: var(--soft); }
.scan .qty-chip { background: var(--t-action); color: #fff; border-radius: 9px; padding: 6px 9px; font: 800 13px "Manrope", sans-serif; white-space: nowrap; }
.scan button { border: 0; background: var(--sunken); border-radius: 10px; height: 40px; padding: 0 12px; font: 800 12.5px "Manrope", sans-serif; }
.scan-msg { font: 700 12.5px "Manrope", sans-serif; border-radius: 10px; padding: 8px 12px; background: var(--bad); color: #fff; flex: none; }
.items { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.items-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.it { display: grid; grid-template-columns: 30px minmax(0, 1fr) 70px 92px 100px 34px; gap: 10px; align-items: center; padding: 8px 10px 8px 14px; border-top: 1px solid var(--line); font: 600 13px "Manrope", sans-serif; }
.items-scroll .it:first-child { border-top: 0; }
.it.head { border-top: 0; background: var(--sunken); font: 800 10px "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding-block: 7px; flex: none; }
.it .n { color: var(--soft); font-variant-numeric: tabular-nums; font-weight: 700; }
.it b { display: block; font: 800 13.5px "Manrope", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it small { display: block; font: 600 11px "Manrope", sans-serif; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.it .num.strong { font-weight: 800; }
.it.last { background: var(--t-tint); box-shadow: inset 4px 0 0 var(--t-action); }
.it form { margin: 0; }
.it .x { width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--soft); display: grid; place-items: center; }
.it .x:hover { background: var(--sunken); color: var(--bad-deep); }
.it .x svg.i { width: 15px; height: 15px; stroke-width: 2.4; }
.items-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--soft); font: 600 14px "Manrope", sans-serif; padding: 30px; }
.items-empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.pdv-side { background: var(--side); border-left: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }
.last-card { background: var(--t-primary); color: #fff; border-radius: 16px; padding: 13px 14px; display: flex; flex-direction: column; gap: 3px; }
.last-card small { font: 800 9.5px "Manrope", sans-serif; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.last-card b { font: 800 16.5px "Manrope", sans-serif; }
.last-card span { font: 600 12px "Manrope", sans-serif; opacity: .85; font-variant-numeric: tabular-nums; }
.last-card .pr-now { font: 800 25px "Manrope", sans-serif; opacity: 1; margin-top: 4px; }
.last-card.idle { background: #fff; color: var(--soft); box-shadow: 0 1px 2px rgb(22 32 50 / 6%); }
.last-card.idle b { color: var(--ink); }
.sum { background: #fff; border-radius: 14px; padding: 12px 13px; box-shadow: 0 1px 2px rgb(22 32 50 / 6%); display: flex; flex-direction: column; gap: 6px; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed #d6dce4; padding-top: 8px; margin-top: 2px; }
.total span { font: 800 12px "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.total b { font: 800 32px "Manrope", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.side-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 0; border-radius: 12px; padding: 9px 12px; font: 600 12.5px "Manrope", sans-serif; color: var(--soft); box-shadow: 0 1px 2px rgb(22 32 50 / 6%); text-decoration: none; width: 100%; text-align: left; }
.side-row b { color: var(--ink); font-weight: 800; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-row svg.i { width: 18px; height: 18px; }
a.side-row:hover, button.side-row:hover { box-shadow: 0 0 0 1.5px var(--t-primary); }
.pay-btn { margin-top: auto; background: var(--t-action); color: #fff; border: 0; border-radius: 15px; padding: 16px; font: 800 18px "Manrope", sans-serif; display: flex; justify-content: space-between; align-items: center; text-decoration: none; }
.pay-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.fkeys { display: flex; gap: 6px 14px; padding: 10px 18px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; background: #fff; flex: none; }
.fk { display: flex; align-items: center; gap: 6px; font: 700 11.5px "Manrope", sans-serif; color: var(--soft); text-decoration: none; border: 0; background: none; padding: 0; }
.fk:hover { color: var(--ink); }
.pdv-done { background: var(--ok); color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font: 700 13px "Manrope", sans-serif; }
.pdv-done b { font-size: 16px; font-weight: 800; }
.pdv-done.warn { background: var(--bill); }

/* Abrir o caixa. */
.open-box { max-width: 480px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.open-box h2 { font-size: 21px; font-weight: 800; }
.open-box p { color: var(--soft); font-size: 13.5px; line-height: 1.5; }
.open-box form { display: flex; flex-direction: column; gap: 12px; margin: 0; }

/* As caixas do caixa (desconto, CPF, quantidade, sangria, receber): a
   confirmação do produto (.modal), mais larga. */
.modal.wide { max-width: 600px; gap: 13px; }
.modal.mid { max-width: 470px; }
.modal h2 { font-size: 19px; font-weight: 800; }
.modal .lead { font-size: 13px; color: var(--soft); font-weight: 600; margin-top: -8px; }
.modal form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.modal .acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal .pay-head p { font-size: 12.5px; color: var(--soft); margin-top: 2px; font-weight: 600; }
.pay-total { text-align: right; }
.pay-total small { display: block; font: 800 10.5px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.pay-total b { font: 800 30px "Manrope", sans-serif; font-variant-numeric: tabular-nums; }
.methods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mt { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 6px 9px; display: flex; flex-direction: column; align-items: center; gap: 5px; font: 800 12px "Manrope", sans-serif; position: relative; background: #fff; cursor: pointer; }
.mt svg.i { width: 22px; height: 22px; color: var(--t-primary); }
.mt .kbd { position: absolute; top: 6px; right: 6px; font-size: 9.5px; padding: 3px 5px 2px; }
.mt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mt:has(input:checked) { border-color: var(--t-primary); box-shadow: inset 0 0 0 1px var(--t-primary); }
.mt:has(input:focus-visible) { outline: 3px solid var(--t-action); outline-offset: 2px; }
.mt:has(input:disabled) { opacity: .45; cursor: default; }
.plines { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pl { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 30px; gap: 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.pl:first-child { border-top: 0; }
.pl > svg.i { color: var(--soft); }
.pl b { font: 800 13.5px "Manrope", sans-serif; display: block; }
.pl small { font: 600 11.5px "Manrope", sans-serif; color: var(--soft); display: block; }
.pl .money { font: 800 15px "Manrope", sans-serif; font-variant-numeric: tabular-nums; }
.pl form { margin: 0; }
.pl .x { width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--sunken); display: grid; place-items: center; }
.pl .x svg.i { width: 13px; height: 13px; stroke-width: 2.4; }
.pay-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.change { background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: baseline; }
.change span { font: 800 11px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.change b { font: 800 24px "Manrope", sans-serif; font-variant-numeric: tabular-nums; }
.change.due { background: var(--sunken); color: var(--ink); }
.pay-add { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; align-items: end; }
.pay-go { background: var(--t-action); color: #fff; border: 0; border-radius: 15px; padding: 15px 16px; font: 800 17px "Manrope", sans-serif; display: flex; justify-content: space-between; align-items: center; width: 100%; }
.pay-go:disabled { opacity: .5; }
.modal .pay-note { font: 600 12px "Manrope", sans-serif; color: var(--soft); text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pay-note svg.i { width: 15px; height: 15px; }
.qr-box { display: flex; gap: 14px; align-items: center; background: var(--sunken); border-radius: 14px; padding: 12px; }
.qr-box img { width: 168px; height: 168px; border-radius: 10px; background: #fff; image-rendering: pixelated; flex: none; }
.qr-box b { display: block; font-size: 15px; }
.qr-box span { font-size: 12.5px; color: var(--soft); font-weight: 600; }
.found { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-height: 340px; overflow-y: auto; }
.found:empty { display: none; }
.found button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; text-align: left; border: 0; border-top: 1px solid var(--line); background: #fff; padding: 9px 12px; }
.found button:first-child { border-top: 0; }
.found button:hover, .found button:focus-visible, .found button.active { background: var(--sunken); outline: none; }
.found b { font: 800 13.5px "Manrope", sans-serif; }
.found small { font: 600 11.5px "Manrope", sans-serif; color: var(--soft); grid-column: 1; }
.found .money { font: 800 13.5px "Manrope", sans-serif; grid-row: 1 / span 2; grid-column: 2; align-self: center; }

/* ------------------------------------------- o produto com grade (A) */

.prod { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 100%; }
.prod-side { background: var(--side); border-right: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.photo { height: 150px; border-radius: 16px; background: var(--t-primary); display: grid; place-items: center; color: rgb(255 255 255 / .9); position: relative; overflow: hidden; flex: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo svg.i { width: 54px; height: 54px; stroke-width: 1.4; }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.prices div { background: var(--sunken); border-radius: 10px; padding: 6px 8px; }
.prices span { display: block; font: 600 10.5px "Manrope", sans-serif; color: var(--soft); }
.prices b { font: 800 13.5px "Manrope", sans-serif; font-variant-numeric: tabular-nums; }
.prod-main { padding: 14px 18px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ph4 { font: 800 11px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ph4 small { letter-spacing: 0; text-transform: none; font: 600 11.5px "Manrope", sans-serif; }
.mx-wrap { overflow-x: auto; }
.mx { display: grid; gap: 6px; min-width: 480px; }
.mx > span, .mx > a { display: flex; align-items: center; }
.mx .h { font: 800 12px "Manrope", sans-serif; color: var(--soft); justify-content: center; padding-bottom: 2px; }
.mx .h:first-child { justify-content: flex-start; }
.mx .cl { gap: 8px; font: 800 13px "Manrope", sans-serif; min-width: 0; }
.mx .cl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw { width: 20px; height: 20px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); flex: none; background: var(--t-sand); }
.cell { border: 1.5px solid var(--line); border-radius: 13px; height: 58px; flex-direction: column; justify-content: center; gap: 1px; text-decoration: none; color: var(--ink); background: #fff; position: relative; }
a.cell:hover, a.cell:focus-visible { border-color: var(--t-primary); outline: none; }
.cell b { font: 800 22px/1 "Manrope", sans-serif; font-variant-numeric: tabular-nums; }
.cell small { font: 600 10px "Manrope", sans-serif; color: var(--soft); font-variant-numeric: tabular-nums; }
.cell.zero { background: var(--bad); border-color: var(--bad); color: #fff; }
.cell.zero small { color: #fff; opacity: .9; }
.cell.low::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--bill); }
.cell.sel { box-shadow: 0 0 0 3px var(--t-action); border-color: var(--t-action); }
.mx .tot { justify-content: center; font: 800 15px "Manrope", sans-serif; font-variant-numeric: tabular-nums; background: var(--sunken); border-radius: 13px; }
.mx .foot { justify-content: center; font: 800 13px "Manrope", sans-serif; color: var(--soft); font-variant-numeric: tabular-nums; }
.mx .foot.all { color: var(--ink); }
.mx-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 600 11.5px "Manrope", sans-serif; color: var(--soft); }
.mx-key span { display: inline-flex; align-items: center; gap: 6px; }
.mx-key i { width: 12px; height: 12px; border-radius: 4px; display: block; }
.cell-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--t-tint); border-radius: 16px; padding: 12px 14px; }
.cell-box b { font-size: 15px; }
.cell-box small { display: block; font-size: 12px; color: var(--soft); font-weight: 600; }
.cell-box form { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cell-box input { width: 110px; border: 1.5px solid #dfe3e9; border-radius: 10px; padding: 8px 10px; font-size: 13.5px; background: #fff; }
.mv { display: grid; grid-template-columns: 96px 110px minmax(0, 1fr) 70px 70px; gap: 12px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); font: 600 12.5px "Manrope", sans-serif; }
.mv:first-child { border-top: 0; }
.mv .when { color: var(--soft); font-variant-numeric: tabular-nums; }
.mv .kind { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.mv .kind svg.i { width: 15px; height: 15px; color: var(--soft); }
.mv .what { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv .q { text-align: right; font: 800 13px "Manrope", sans-serif; font-variant-numeric: tabular-nums; }
.mv .q.in { color: var(--ok); }
.mv .bal { text-align: right; color: var(--soft); font-variant-numeric: tabular-nums; }

/* A lista de produtos. */
.pr { display: grid; grid-template-columns: 46px minmax(0, 1fr) 150px 140px 120px; gap: 12px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; }
.pr:first-child { border-top: 0; }
.pr > .num { white-space: nowrap; }
a.pr:hover, a.pr:focus-visible { background: var(--sunken); box-shadow: inset 3px 0 0 var(--t-primary); outline: none; }
.pr .th { width: 46px; height: 46px; border-radius: 12px; background: var(--t-sand); overflow: hidden; display: grid; place-items: center; color: var(--t-primary); }
.pr .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr .th svg.i { width: 22px; height: 22px; }
.pr b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr small { display: block; font-size: 12px; color: var(--soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr .stock { text-align: right; font: 800 14px "Manrope", sans-serif; font-variant-numeric: tabular-nums; display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.pr.head { font: 800 10.5px "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); background: var(--sunken); padding-block: 7px; }
.pr.archived { opacity: .6; }

/* Formulário do produto: as cores e os tamanhos da grade. */
.chips-edit { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; border: 1.5px solid #dfe3e9; border-radius: 12px; padding: 6px; background: #fff; min-height: 46px; }
.chips-edit input { border: 0 !important; padding: 6px !important; flex: 1 1 120px; min-width: 100px; outline: 0; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; background: var(--sunken); border-radius: 999px; padding: 4px 6px 4px 11px; font: 700 12.5px "Manrope", sans-serif; }
.chip-x button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 0; }
.chip-x button svg.i { width: 11px; height: 11px; stroke-width: 2.6; }

/* ------------------------------------------------ vendas e a nota */

.sl { display: grid; grid-template-columns: 74px 64px minmax(0, 1fr) 150px 110px 34px; gap: 12px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.sl:first-child { border-top: 0; }
a.sl:hover, a.sl:focus-visible { background: var(--sunken); box-shadow: inset 3px 0 0 var(--t-primary); outline: none; }
.sl .tm { font: 800 14px "Manrope", sans-serif; font-variant-numeric: tabular-nums; }
.sl .no { font: 700 12.5px "Manrope", sans-serif; color: var(--soft); font-variant-numeric: tabular-nums; }
.sl b { display: block; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl small { display: block; font-size: 12px; color: var(--soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl .money { font: 800 14px "Manrope", sans-serif; font-variant-numeric: tabular-nums; text-align: right; }
.sl.cancelled { opacity: .55; }
.sl.cancelled b { text-decoration: line-through; }
.sl.head { font: 800 10.5px "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); background: var(--sunken); padding-block: 7px; }
.nf { border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.nf b { font-size: 15px; }
.nf.ok { background: var(--ok); color: #fff; }
.nf.wait { background: var(--bill); color: #fff; }
.nf.bad { background: var(--bad); color: #fff; }
.nf.off { background: var(--sunken); color: var(--soft); }
.nf.off b { color: var(--ink); }
.nf .key { font: 700 12px "Manrope", sans-serif; letter-spacing: .02em; word-spacing: 3px; font-variant-numeric: tabular-nums; opacity: .92; }
.nf form { margin: 0; }
.nf .b-sm { background: #fff; color: var(--ink); align-self: flex-start; }
.lines { display: flex; flex-direction: column; }
.p-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.p-line.total { font-weight: 800; font-size: 16px; border-bottom: 0; }
.p-line small { color: var(--soft); font-weight: 600; margin-left: 4px; }

/* Relatórios. */
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(6px, 1fr); gap: 4px; align-items: end; height: 150px; padding-top: 8px; }
.bars span { background: var(--t-primary); border-radius: 5px 5px 2px 2px; min-height: 2px; }
.bars span.now { background: var(--t-action); }
.bars-labels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(6px, 1fr); gap: 4px; font: 700 10px "Manrope", sans-serif; color: var(--soft); text-align: center; font-variant-numeric: tabular-nums; }
.rk { display: grid; grid-template-columns: 26px minmax(0, 1fr) 90px 110px; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.rk:first-child { border-top: 0; }
.rk .n { color: var(--soft); font-weight: 800; font-variant-numeric: tabular-nums; }
.rk b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.rk small { color: var(--soft); font-weight: 600; display: block; }
.rk .num { font-weight: 800; }
.abc { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font: 900 11.5px "Figtree", sans-serif; background: var(--sunken); color: var(--ink); }
.abc.a { background: var(--t-primary); color: #fff; }

/* Ajustes. */
.cfg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.missing { display: flex; flex-wrap: wrap; gap: 6px; }
.missing span { background: #fff; color: var(--bad-deep); border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 800; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

@media (max-width: 1100px) {
  .pdv-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .prod { grid-template-columns: minmax(0, 1fr); }
  .prod-side { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .pdv-mode .p-body { overflow-y: auto; }
  .pdv-grid { grid-template-columns: minmax(0, 1fr); }
  .pdv-side { border-left: 0; border-top: 1px solid var(--line); }
  .it { grid-template-columns: 24px minmax(0, 1fr) 54px 84px 30px; }
  .it > :nth-child(4) { display: none; }
  .pr { grid-template-columns: 46px minmax(0, 1fr) 90px; }
  .pr > :nth-child(3), .pr > :nth-child(4) { display: none; }
  .sl { grid-template-columns: 60px minmax(0, 1fr) 90px; }
  .sl > :nth-child(2), .sl > :nth-child(4), .sl > :nth-child(6) { display: none; }
  .mv { grid-template-columns: 80px minmax(0, 1fr) 60px; }
  .mv > :nth-child(2), .mv > :nth-child(5) { display: none; }
  .methods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cfg, .pay-row { grid-template-columns: minmax(0, 1fr); }
  .dots { display: none; }
}
.change.cpf { text-decoration: none; }
.change.cpf b { font-size: 15px; }
.modal.static { box-shadow: none; border: 1px solid var(--line); margin: 12px auto; }
a.mv { text-decoration: none; color: var(--ink); }
a.mv:hover, a.mv:focus-visible { background: var(--sunken); box-shadow: inset 3px 0 0 var(--t-primary); outline: none; }
.mv .q.neg, .mv .when.neg { color: var(--bad-deep); }
.p-box.tight { gap: 6px; }
.p-box .p-inline { padding: 8px; }
.voucher-code { font: 900 34px/1 "Figtree", sans-serif; letter-spacing: .12em; text-align: center; background: var(--sunken); border-radius: 14px; padding: 16px; font-variant-numeric: tabular-nums; }
.day-nav { display: flex; align-items: center; height: 34px; border-radius: 10px; background: var(--sunken); box-shadow: inset 0 0 0 1.5px var(--t-primary); }
.dn-step { width: 32px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); text-decoration: none; flex: none; }
.dn-step svg.i { width: 16px; height: 16px; }
.day-pick { margin: 0; position: relative; display: flex; align-items: center; min-width: 0; }
.day-pick::before, .day-pick::after { content: ""; width: 1px; height: 20px; background: var(--t-line); flex: none; }
.day-label { border: 0; background: none; height: 34px; padding: 0 9px; display: flex; align-items: center; gap: 7px; font: 800 12.5px "Manrope", sans-serif; color: var(--ink); white-space: nowrap; cursor: pointer; }
.day-label svg.i { width: 16px; height: 16px; flex: none; }
html:not(.js) .day-label { display: none; }
a.p-user { text-decoration: none; color: inherit; }
