/*
 * Pixel Barber — o painel da barbearia e a tela de entrada.
 *
 * Na família do Pixel Food e do Tribus: cartão branco sobre o fundo da casa,
 * trilha funda de ícones, item ativo na cor de ação da barbearia com letra
 * branca. A tela principal é a fila do dia (opção B, escolhida pelo Kayo em
 * 19/10/2026).
 *
 * A marca do Pixel Barber (o laranja da Pixel Tech) aparece só na entrada, onde
 * ainda não se sabe de que casa é a pessoa. Os tons --pb-* 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: faltou, deu certo, esperando. Cheios,
 * com letra branca; nunca viram cor de barbearia. Nada tem cara de navegador:
 * confirmação, lista, calendário, sugestões, área de soltar a foto 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; }
@font-face { font-family: "Alfa Slab One"; src: url("fonts/alfa-slab-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url("fonts/archivo-black.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-display-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  /* A marca do Pixel Barber (theme.json): o laranja da Pixel Tech. */
  --pb-orange: #fc7a00;
  /* Letra branca no laranja, sempre (pedido do Kayo, 19/10/2026). */
  --pb-on-orange: #ffffff;
  --pb-ink: #1b2230;
  --pb-soft: #5d6676;
  --pb-subtle: #f2f3f5;
  --pb-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;

  /* Sem barbearia (entrada), a paleta Grafite. */
  --t-primary: #2a2f36; --t-deep: #171a1f; --t-action: #c55a00; --t-hi: #fcb045; --t-hi-ink: #2b1700;
  --t-bg: #ffffff; --t-sand: #f1f2f4; --t-ink: #1b1f24; --t-soft: #5f6670; --t-line: #e3e6ea; --t-panel: #e8eaed;
  --t-logo-bg: #fc7a00; --t-logo-fg: #1b1f24; --t-display: "Figtree", sans-serif; --t-dw: 800; --t-ds: normal;
}

* { 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; }
.disp { font-family: var(--t-display); font-weight: var(--t-dw); font-style: var(--t-ds); }

/* 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(--pb-card); }
.e-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--pb-ink); }
.e-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--pb-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(--pb-ink); margin-top: 28px; text-wrap: balance; }
.e-title b { font-weight: 800; }
.e-lead { color: var(--pb-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(--pb-orange); color: var(--pb-on-orange); margin-top: 4px; }
.e-button.e-flat { background: var(--pb-subtle); color: var(--pb-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(--pb-soft); line-height: 1.6; }
.e-foot b { color: var(--pb-ink); }
.e-art { position: relative; background: #1b1f24; overflow: hidden; }
.e-p { position: absolute; width: 520px; height: 470px; right: -120px; bottom: -80px; fill: var(--pb-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(--pb-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(--pb-orange); }
.field-float label { position: absolute; left: 17px; top: 19px; font-size: 15px; color: var(--pb-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(--pb-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-logo-bg); color: var(--t-logo-fg); display: grid; place-items: center; flex: none; overflow: hidden; }
.logo svg { width: 58%; height: 58%; fill: currentColor; }
.logo b { font: var(--t-ds) var(--t-dw) 16px/1 var(--t-display); }
.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(--pb-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; }
.p-pad { padding: 16px 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.p-pad.narrow { max-width: 760px; }
.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; }

/* Serviços, equipe, clube e clientes: linhas de cadastro */
.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); }
.sel-list { position: fixed; z-index: 90; 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: 90; 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; }
.modal div { display: flex; gap: 10px; justify-content: flex-end; }


/* --------------------------------------------------- peças da barbearia */

.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-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; }
.dn { display: flex; gap: 4px; align-items: center; }
.ib { width: 34px; height: 34px; border-radius: 10px; background: var(--sunken); display: grid; place-items: center; text-decoration: none; color: var(--ink); }
.ib svg.i { width: 16px; height: 16px; }
.today-btn { padding: 0 12px; height: 34px; border-radius: 10px; background: var(--sunken); font: 800 12.5px "Manrope", sans-serif; display: flex; align-items: center; text-decoration: none; color: var(--ink); }
/* O dia da agenda (opção B): as setas em volta do dia escrito, num grupo só. */
.day-nav { display: flex; align-items: center; margin-left: 4px; 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; min-width: 0; }
.day-label svg.i { width: 16px; height: 16px; flex: none; }
.day-label .lg { overflow: hidden; text-overflow: ellipsis; }
.day-label .sm { display: none; }
.js .day-pick input[type="date"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
html:not(.js) .day-label { display: none; }
.p-head .stats { display: flex; gap: 8px; margin-left: auto; }
.p-head .stats + .btn-act { margin-left: 0; }
.p-head .dn { margin-left: auto; }
.p-head .dn + .btn-act { margin-left: 0; }

/* Os círculos dos barbeiros. */
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font: 800 13px "Manrope", sans-serif; flex: none; overflow: hidden; background: var(--t-primary); }
.av.xs { width: 22px; height: 22px; font-size: 10px; }
.av.big { width: 52px; height: 52px; font-size: 19px; }
.av.has-img { background: var(--sunken); }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mi-ph.av { border-radius: 50%; font-size: 18px; }
.ps { display: flex; align-items: center; gap: 7px; font: 700 12.5px "Manrope", sans-serif; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps.muted { color: var(--soft); font-weight: 600; }

/* Selos. Estado cheio, com letra branca; os da casa na cor dela. */
.pill.new { background: var(--t-action); color: #fff; }
.pill.club { background: var(--t-deep); color: var(--t-hi); }
.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.chair { background: var(--t-primary); color: #fff; }
.pill.hi { background: var(--t-hi); color: var(--t-hi-ink); }

/* Os sinais (opção A, 19/10/2026): í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.club { color: var(--t-primary); }
.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; }

/* Hoje: a fila do dia (opção B). */
.fd { display: grid; grid-template-columns: minmax(0, 1fr) 310px; min-height: 100%; }
.fd-main { padding: 16px 22px 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fd-h { font: 800 11.5px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.fd-h small { letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 12px; }
.fd-h a { color: var(--ink); }
.fd-side { background: #f7f8fa; border-left: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.now-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.nc { border-radius: 18px; padding: 13px; display: flex; flex-direction: column; gap: 6px; border: 1.5px solid var(--line); min-height: 140px; background: #fff; }
.nc.busy { background: var(--t-primary); border-color: var(--t-primary); color: #fff; }
.nc.off { background: var(--sunken); border-color: var(--sunken); color: var(--soft); }
.nc-top { display: flex; align-items: center; gap: 9px; }
.nc-top b { font-size: 14.5px; font-weight: 800; display: block; }
.nc-top small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; opacity: .75; display: block; }
.nc.busy .av { box-shadow: 0 0 0 2px rgb(255 255 255 / .35); }
.nc .who { font-size: 16px; font-weight: 800; margin-top: 2px; }
.nc .what { font-size: 12.5px; font-weight: 600; opacity: .88; }
.nc.free .what { color: var(--soft); }
.bar { height: 6px; border-radius: 3px; background: rgb(255 255 255 / .22); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--t-hi); border-radius: 3px; }
.nc .nx { font-size: 12px; font-weight: 600; margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; opacity: .92; }
.nc.free .nx { color: var(--soft); }
.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.go { background: var(--t-primary); color: #fff; }
.b-sm.act { background: var(--t-action); color: #fff; }
.b-sm.light { background: #fff; color: var(--t-deep); }
.b-sm:disabled { opacity: .6; }

.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" o
   barbeiro andava conforme os botões da linha (Confirmar e Recusar ocupam mais
   que um selo). Fixas, o barbeiro e os botões ficam em coluna 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; }
/* Opção A (19/10/2026): passar o mouse acende a linha inteira, e o clique em
   qualquer lugar dela abre o horário — 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; }
.r.st-arrived { background: #f3f7f5; }
.done-rows .r { opacity: .8; }

.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); }
.wa-ok { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.wa-ok i { width: 9px; height: 9px; border-radius: 50%; background: var(--soft); display: block; flex: none; }
.wa-ok.ok i { background: var(--ok); }
.wa-ok.bad i { background: var(--bad); }

/* Agenda */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wk { border: 1.5px solid var(--line); border-radius: 14px; padding: 7px 4px 8px; text-align: center; text-decoration: none; color: var(--ink); background: #fff; display: flex; flex-direction: column; gap: 1px; }
.wk small { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.wk b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wk span { font-size: 11.5px; font-weight: 700; color: var(--soft); }
.wk.today { border-color: var(--t-action); }
.wk.on { background: var(--t-primary); border-color: var(--t-primary); color: #fff; }
.wk.on small, .wk.on span { color: rgb(255 255 255 / .8); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; font: 700 12.5px "Manrope", sans-serif; text-decoration: none; color: var(--ink); background: #fff; }
.chip.plain { padding: 6px 13px; }
.chip.on { background: var(--t-primary); border-color: var(--t-primary); color: #fff; }
.shifts { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 12px; color: var(--soft); font-weight: 600; }
.shift { display: inline-flex; align-items: center; gap: 6px; }
.shift b { color: var(--ink); }
.shift.off { opacity: .6; }

/* Formulários da barbearia */
.p-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.p-col-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.p-box.tight { gap: 4px; }
.p-box > h2.p-title + .p-title { margin-top: 8px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; }
.check-row span { font-size: 12.5px; }
.hours-head, .hours-row { display: grid; grid-template-columns: minmax(110px, 1.2fr) repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; }
.hours-head span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.hours-row .sel-button { padding: 8px 30px 8px 10px; font-size: 13px; min-height: 0; }
.hours-row .sel-button::after { right: 11px; }
.hours-row select { width: 100%; border: 1.5px solid #dfe3e9; border-radius: 10px; padding: 8px; font-size: 13px; background: #fff; }
.out-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 13px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.out-row form { margin: 0; }
.p-inline .prefix { font-size: 13px; font-weight: 700; color: var(--soft); white-space: nowrap; }
.p-confirm { background: var(--bill); color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; font-weight: 700; }
.p-confirm .check-row b, .p-confirm .check-row { color: #fff; }
.p-confirm .check-row i { border-color: rgb(255 255 255 / .7); }
.p-confirm .check-row input:checked + i { background: #fff; border-color: #fff; color: var(--bill); }
form.mini { display: flex; gap: 6px; align-items: center; margin: 0; }
form.mini .sel { flex: none; width: 110px; }
form.mini .sel-button { padding: 8px 30px 8px 10px; font-size: 13px; min-height: 0; }

/* O horário */
.ap-head { display: flex; align-items: center; gap: 12px; }
.ap-head > div { flex: 1; min-width: 0; }
.ap-head b { display: block; font-size: 16px; font-weight: 800; }
.ap-head span { font-size: 13px; color: var(--soft); }
.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; }
.p-line.due { color: var(--bad-deep); font-weight: 800; }
.ap-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-tags .pill { margin: 0; }
.finish-due { background: var(--sunken); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.finish-due span { font-size: 12.5px; font-weight: 700; color: var(--soft); }
.finish-due b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.finish-due small { font-size: 12px; color: var(--soft); font-weight: 600; }
.picks.methods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.picks.methods .pick-card { gap: 6px; padding: 12px 8px; }
.picks.methods .pick-card svg.i { color: var(--t-primary); }

/* Clientes e caixa */
.gs { grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 110px; text-decoration: none; color: var(--ink); }
.gs > span:not(.avatar) { font-size: 12.5px; color: var(--soft); font-weight: 600; }
.gs.cm { grid-template-columns: 40px minmax(0, 1.4fr) 90px 110px 110px; }
.gs.cm b { font-size: 14px; }
.gs .pill { margin-left: 6px; }
.mg-head .p-inline { flex: 1 1 420px; }
.p-kpis.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-kpis.fluid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.p-two.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.mi-text a { text-decoration: none; color: inherit; }
.mi-text b .pill { margin-left: 6px; }
.p-note { white-space: pre-line; }
.msgs { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.msg-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.msg-row small { color: var(--soft); width: 100%; }
.msg-row .pill { margin: 0; }
details.msg-row { display: block; }
details.msg-row summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
details.msg-row summary::-webkit-details-marker { display: none; }
details.msg-row pre { white-space: pre-wrap; font: 500 13px/1.5 "Manrope", sans-serif; background: var(--sunken); border-radius: 12px; padding: 10px 12px; margin: 8px 0 2px; }
.msgs.big .msg-row { padding: 10px 0; }

/* WhatsApp e pagamento em Ajustes */
.wa-card { border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.wa-card b { font-size: 14.5px; }
.wa-card form { margin: 4px 0 0; }
.wa-card.ok { background: var(--ok); color: #fff; }
.wa-card.ok .p-btn.ghost { background: #fff; color: var(--ok); }
.wa-card.bad { background: var(--bad); color: #fff; }
.wa-card.wait { background: var(--sunken); }
.wa-card.off { background: var(--sunken); color: var(--soft); }
.wa-card.off b { color: var(--ink); }
.qr-box { width: 240px; height: 240px; border-radius: 16px; background: #fff; display: grid; place-items: center; margin-top: 6px; }
.qr-box img { width: 220px; height: 220px; image-rendering: pixelated; }

/* O calendário do produto, no lugar do do navegador (panel.js). */
.date-wrap { position: relative; }
.date-wrap input { padding-right: 42px; }
.date-wrap input::-webkit-calendar-picker-indicator { display: none; }
.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: 90; 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 barbeiro e do dono. */
@media (max-width: 1100px) {
  .fd { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 860px) {
  .fd { grid-template-columns: minmax(0, 1fr); }
  .fd-side { border-left: 0; border-top: 1px solid var(--line); }
  .fd-main { padding: 14px 14px 20px; }
  .p-two, .p-two.wide-left, .hours-head { grid-template-columns: minmax(0, 1fr); }
  .hours-head { display: none; }
  .hours-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 0; border-bottom: 1px solid var(--line); }
  .hours-row .check-row { grid-column: 1 / -1; }
  .r { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .r .ps { display: none; }
  .r.compact, .r.compact.cash { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .r.compact .ps { display: none; }
  .week { gap: 4px; }
  .wk b { font-size: 15px; }
  .p-head .stats { order: 3; width: 100%; margin-left: 0; }
  .gs, .gs.cm { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .gs > :nth-child(n+4) { display: none; }
  .picks.methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .day-label .lg { display: none; }
  .day-label .sm { display: inline; }
  .r .ra { flex-wrap: wrap; }
  .now-row { grid-template-columns: minmax(0, 1fr); }
}

/* Painel estreito (o celular do barbeiro): 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; } }

/* Os números do cabeçalho (o dia e a agenda). */
.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; }
