/*
 * Nordeste Auto Estética — o painel do lava-jato e a tela de entrada.
 *
 * Na família do Pixel Food, do Pixel Barber e do Tribus: cartão branco sobre o
 * fundo da casa, trilha funda de ícones, item ativo na cor de ação do lava-jato
 * com letra branca. A tela principal é o pátio em colunas (escolha 1 A do
 * Kayo, 20/10/2026), e a vistoria é o carro visto de cima (escolha 2 A).
 *
 * A marca do sistema (o laranja da Pixel Tech) aparece só na entrada, onde
 * ainda não se sabe de que casa é a pessoa. Os tons --na-* 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 lava-jato. 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: "Archivo Black"; src: url("fonts/archivo-black.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* A marca da Nordeste Auto Estética (theme.json): o verde-água da logo no
     cinza-escuro. É a cara da entrada e da cobrança. */
  --na-primary: #0b7d78;
  /* Letra branca no verde-água, sempre. */
  --na-on-primary: #ffffff;
  --na-ink: #ffffff;
  --na-soft: #a3abb4;
  --na-subtle: #33383d;
  --na-card: #2b2f33;

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

  /* Neutros do painel, os claros. A paleta escura troca todos pelo style do
     <body> (themeStyle em src/themes.ts). */
  --ink: #1d2739;
  --ink-2: var(--ink-2);
  --soft: #6d7789;
  --faint: var(--faint);
  --line: #e9edf2;
  --dash: var(--dash);
  --sunken: #f4f6f9;
  --hover: var(--hover);
  --track: var(--track);
  --card: #ffffff;
  --field: #ffffff;
  --field-line: var(--field-line);
  --danger-bg: var(--danger-bg);
  --danger-line: var(--danger-line);

  /* Sem lava-jato, a paleta Grafite clara. */
  --t-primary: #2a2f36; --t-deep: #171a1f; --t-action: #c55a00; --t-hi: #fcb045; --t-hi-ink: #2b1700;
  --t-bg: #ffffff; --t-sand: #eff0f2; --t-ink: #1b1f24; --t-soft: #5f6670; --t-line: #e3e6ea; --t-panel: #e3e5e9; --t-tint: #e6e8ec;
  --t-logo-bg: #fc7a00; --t-logo-fg: #1b1f24; --t-display: "Figtree", sans-serif; --t-dw: 800; --t-ds: normal;
  --t-head: #171a1f; --t-link: #2a2f36; --t-logo-img: #ffffff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Sem barra de rolagem (escolha B do Kayo, 22/10/2026, no lugar da fina): onde
   a área tem mais para ver, uma seta pulsa na beira, centralizada, na cor do
   menu lateral (o panel.js põe as setas). A rodinha do mouse continua rolando. */
* { scrollbar-width: none; }
::-webkit-scrollbar { display: none; }
/* Em cima e embaixo, um marcador de altura zero grudado na beira da área
   (sticky); de lado, um de largura zero. A seta fica por cima do conteúdo. */
.scroll-more { position: sticky; z-index: 6; display: block; flex: none; height: 0; pointer-events: none; }
.scroll-more.up { top: 0; }
.scroll-more.down { bottom: 0; }
.scroll-more.left, .scroll-more.right { width: 0; height: auto; align-self: stretch; }
.scroll-more.left { left: 0; }
.scroll-more.right { right: 0; }
.scroll-more > button.scroll-arrow, .scroll-more > button.scroll-arrow:hover {
  position: absolute; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--t-head); cursor: pointer; pointer-events: auto; transition: opacity .2s ease;
}
.scroll-more.up > button.scroll-arrow, .scroll-more.down > button.scroll-arrow { left: 50%; width: 34px; height: 24px; margin-left: -17px; }
.scroll-more.up > button.scroll-arrow { top: 2px; animation: scroll-up 1.4s ease-in-out infinite; }
.scroll-more.down > button.scroll-arrow { bottom: 2px; animation: scroll-down 1.4s ease-in-out infinite; }
.scroll-more.left > button.scroll-arrow, .scroll-more.right > button.scroll-arrow { top: 50%; width: 24px; height: 34px; margin-top: -17px; }
.scroll-more.left > button.scroll-arrow { left: 2px; animation: scroll-left 1.4s ease-in-out infinite; }
.scroll-more.right > button.scroll-arrow { right: 2px; animation: scroll-right 1.4s ease-in-out infinite; }
/* No celular quem rola é a página inteira: as setas dela ficam presas na tela. */
.scroll-page { position: fixed; left: 50%; z-index: 30; display: grid; place-items: center; width: 34px; height: 24px; margin-left: -17px; padding: 0; border: 0; background: transparent; color: var(--t-head); cursor: pointer; transition: opacity .2s ease; }
.scroll-page.up { top: 6px; animation: scroll-up 1.4s ease-in-out infinite; }
.scroll-page.down { bottom: 6px; animation: scroll-down 1.4s ease-in-out infinite; }
.scroll-page.is-off { opacity: 0; pointer-events: none; }
.scroll-arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.scroll-more.is-off > button.scroll-arrow { opacity: 0; pointer-events: none; }
/* Em cima de qualquer fundo escuro ou degradê (botão, selo, recado, a faixa do menu), branca (o panel.js decide). */
.scroll-more > button.scroll-arrow.on-dark, .scroll-page.on-dark { color: #fff; }
@keyframes scroll-up { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes scroll-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes scroll-left { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@keyframes scroll-right { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .scroll-more > button.scroll-arrow, .scroll-page.up, .scroll-page.down { animation: none; } }
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; }
/* Nada sublinhado (20/10/2026): a linha inteira é o link e acende ao passar
   o mouse; link solto no meio do texto vai na cor do tema. */
a { color: inherit; text-decoration: none; }
p a, .kv b a { color: var(--t-link); font-weight: 800; }
p a:hover, .kv b a:hover { color: var(--t-head); }
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; }
.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: var(--t-panel); 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(--card); }
.e-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--t-head); }
.e-mark { width: 40px; height: 40px; display: block; flex: none; }
.e-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.e-title { font-size: 30px; line-height: 1.12; font-weight: 500; color: var(--t-head); margin-top: 28px; text-wrap: balance; }
.e-title b { font-weight: 800; }
.e-lead { color: var(--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(--na-primary); color: var(--na-on-primary); margin-top: 4px; }
.e-button.e-flat { background: var(--sunken); color: var(--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(--soft); line-height: 1.6; }
.e-foot b { color: var(--ink); }
.e-art { position: relative; background: var(--t-deep); overflow: hidden; }
/* A logo inteira da casa, o cacto e o nome, embaixo dos cartões. */
.e-logo { position: absolute; width: 230px; right: 30px; bottom: 28px; display: block; }
.e-card { position: absolute; background: var(--card); 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: var(--t-link); }
.e-card b { font-size: 14.5px; line-height: 1.35; color: var(--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 var(--field-line); border-radius: 14px; padding: 22px 16px 6px; font-size: 15.5px; background: var(--field); outline: 0; }
.field-float input:focus { border-color: var(--t-link); }
.field-float label { position: absolute; left: 17px; top: 19px; font-size: 15px; color: var(--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(--soft); display: grid; place-items: center; }
.field-float input[type="password"]::-ms-reveal { display: none; }
/* A senha na gaveta da Equipe: o mostrar e esconder dentro do campo (DEC-045). */
.pass-wrap { position: relative; display: block; }
.pass-wrap input { width: 100%; padding-right: 50px; }
.pass-wrap input::-ms-reveal { display: none; }
.pass-wrap .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--soft); display: grid; place-items: center; cursor: pointer; }
.pass-wrap .eye svg.i { width: 18px; height: 18px; }
a.p-user { color: inherit; text-decoration: none; border-radius: 12px; padding: 4px 6px; margin-right: -6px; }
a.p-user:hover { background: var(--sunken); }
.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; }
.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: var(--t-logo-img); }
.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(--na-primary); }
/* min-height: 0: no celular a moldura vira coluna, e sem ele o miolo crescia
   além da tela e era cortado, sem rolar (o que passava da altura sumia). */
.p-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 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) {
  .p-rail > .scroll-more { display: none; }
  .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 { background: #fff; color: var(--bill); font-weight: 800; border-radius: 8px; padding: 3px 10px; margin-left: 6px; white-space: nowrap; }
.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-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; position: relative; }
.p-body > .notice { margin: 14px 22px 0; }
.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-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: var(--ink-2); }
.p-empty { background: var(--card); border: 1px dashed var(--dash); 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); }

/* A nota do cliente nos relatórios: o cartão inteiro é o link. */
a.rv:hover, a.rv:focus-visible { border-color: var(--t-link); outline: none; }
a.rv:hover .rv-head b { color: var(--t-link); }

/* Números e listas */
.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: var(--dash); }
/* As barras finas dos relatórios, como no Pixel Jury (escolha 9 B); a maior da
   hora de chegada na cor de ação. */
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--soft); padding: 3px 0; }
.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; white-space: nowrap; color: var(--ink); font-weight: 800; }
.bar { height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--t-primary); }
.bar i.hi { background: var(--t-action); }
/* Os meses em botões no alto dos relatórios. */
.months { display: flex; gap: 6px; flex-wrap: wrap; padding: 16px 22px 0; }
.months a { background: var(--card); border-radius: 99px; padding: 6px 14px; font: 800 12.5px "Manrope", sans-serif; color: var(--ink); }
.months a:hover, .months a:focus-visible { box-shadow: inset 0 0 0 1.5px var(--t-link); outline: none; }
.months a.on { background: var(--t-primary); color: #fff; box-shadow: none; }
.months + .kpis { padding-top: 10px; }
/* A produção da equipe: uma linha por lavador. */
.tt { display: grid; grid-template-columns: 30px minmax(0, 1fr) 70px 110px 54px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tt.hd { border-top: 0; padding-top: 0; font: 800 10.5px "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.tt > :nth-child(n+3) { text-align: right; }
.tt b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt .av { width: 28px; height: 28px; font-size: 11px; }
.p-box .q { background: var(--sunken); }
.rv { background: var(--card); 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: var(--ink-2); }

/* 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 var(--field-line); border-radius: 12px; padding: 11px 13px; font-size: 14.5px; background: var(--card); outline: 0;
}
.field input:focus, .field textarea:focus, .p-inline input:focus, .p-search input:focus { border-color: var(--t-link); }
.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: var(--card); 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 var(--field-line); border-radius: 12px; padding: 0 12px; background: var(--field); 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 var(--dash); 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 var(--danger-line); background: var(--danger-bg); 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: var(--card); 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: #1d2739; 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; }

/* Á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 var(--dash); border-radius: 16px; padding: 14px; background: var(--sunken); cursor: pointer; min-height: 86px; }
.drop.over { border-color: var(--t-link); background: var(--sunken); }
.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-link); }
.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: var(--card); }
.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 var(--field-line); border-radius: 12px; padding: 11px 38px 11px 13px; font-size: 14.5px; background: var(--field); 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 caixas que abrem por cima (lista, sugestões, calendário) ficam em 200: acima
   da caixa de confirmação (100), abaixo da dica (300). Em 90, abriam atrás. */
.sel-list { position: fixed; z-index: 200; background: var(--card); border: 1px solid var(--field-line); 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-link); }
.sug-list { position: fixed; z-index: 200; background: var(--card); border: 1px solid var(--field-line); 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: var(--card); 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 do lava-jato */

.js [data-noscript-only] { display: none; }
.p-head-title { min-width: 0; }
.p-btn.act { background: var(--t-action); color: #fff; }
.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-link); }
.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; }
html:not(.js) .day-label { display: none; }
/* O título empurra o resto para a direita: o dia, o botão e quem está logado. */
.p-head-title { margin-right: auto; }
.p-head .p-user { margin-left: 4px; }

/* Os círculos dos lavadores. */
.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; }
.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.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.plan { color: var(--t-link); }

/* 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-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); }
.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; }

.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; }

/* Agenda: a semana em cartões brancos, o dia escolhido cheio na cor da casa. */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wk { border-radius: 14px; padding: 7px 4px 8px; text-align: center; color: var(--ink); background: var(--card); 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 span em { font-style: normal; }
.wk:hover { box-shadow: inset 0 0 0 1.5px var(--t-link); }
.wk.today { box-shadow: inset 0 0 0 2px var(--t-action); }
.wk.on { background: var(--t-primary); color: #fff; box-shadow: none; }
.wk.on small, .wk.on span { color: rgb(255 255 255 / .8); }
.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; }
.shift.hint { margin-left: auto; }

/* A grade de horários da agenda (escolha 3 A, 20/10/2026): uma linha por hora,
   uma coluna por veículo que cabe no horário. Na 7 A, as linhas no fundo da
   casa e o marcado em cartão branco com o quadradinho da hora; a vaga,
   tracejada, marca ali; o cartão de quem ainda não chegou se arrasta para
   outra hora. */
.grid-day { display: flex; flex-direction: column; gap: 8px; }
.gh { display: grid; grid-template-columns: 56px repeat(var(--lanes, 2), minmax(0, 1fr)); gap: 10px; align-items: stretch; border-radius: 14px; }
.gh > .h { font: 800 13px "Manrope", sans-serif; color: var(--soft); text-align: right; padding-top: 16px; font-variant-numeric: tabular-nums; }
.gh.quiet { width: 100%; grid-template-columns: 56px minmax(0, 1fr) auto; background: var(--t-panel); border: 0; padding: 9px 14px 9px 0; font: 700 12.5px "Manrope", sans-serif; color: var(--soft); text-align: left; align-items: center; cursor: pointer; }
.gh.quiet > .h { padding-top: 0; }
.gh.quiet .more { color: var(--t-link); font-weight: 800; }
.gh.closed { grid-template-columns: 56px minmax(0, 1fr); padding-block: 2px; }
.gh.closed > .h { padding-top: 0; }
.closed-note { font-size: 12.5px; font-weight: 700; color: var(--soft); align-self: center; }
.gh.drop-over { outline: 2px dashed var(--t-link); outline-offset: 3px; }
.free { border: 1.5px dashed var(--dash); border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12.5px; font-weight: 800; color: var(--soft); min-height: 64px; }
.free svg.i { width: 15px; height: 15px; }
a.free:hover, a.free:focus-visible { border-color: var(--t-link); color: var(--t-link); outline: none; }
.free.off { border-color: transparent; background: color-mix(in srgb, var(--card) 45%, transparent); }
.bk { position: relative; border-radius: 14px; padding: 9px; display: flex; flex-direction: column; gap: 6px; min-width: 0; background: var(--card); }
.bk-link { position: absolute; inset: 0; border-radius: inherit; }
.bk:hover { box-shadow: inset 0 0 0 1.5px var(--t-link); }
.bk[draggable="true"] { cursor: grab; }
.bk.dragging { opacity: .45; }
.bk.gone { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dash); }
.bk.gone .bk-car { color: var(--soft); }
.bk-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-width: 0; }
.bk-t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bk-car { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-t small { font-size: 11.5px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-row .tag { align-self: start; }
.bk-acts { position: relative; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; padding-left: 56px; }
.bk-acts form { margin: 0; }
.tag { display: inline-flex; align-items: center; border-radius: 7px; padding: 3px 8px; font: 800 11px "Manrope", sans-serif; color: #fff; white-space: nowrap; }
.tag.red { background: var(--bad); }
.tag.green { background: var(--ok); }
.tag.orange { background: var(--t-action); }
.tag.gray { background: #8a94a3; }
.gone-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; font-weight: 600; color: var(--soft); }
.gone-list > span { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.gone-list a { text-decoration: line-through; }
.gone-list a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .gh { grid-template-columns: 40px repeat(var(--lanes, 2), minmax(0, 1fr)); gap: 6px; }
  .gh.quiet, .gh.closed { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .bk-row { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
  .bk-row .blk { width: 36px; height: 36px; border-radius: 10px; }
  .bk-row .blk b { font-size: 11.5px; }
  .bk-row .tag { grid-column: 2; justify-self: start; }
  .bk-acts { padding-left: 0; }
  .shift.hint { display: none; }
}

/* Formulários do lava-jato */
.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; }
/* As abas do cartão de formulários (escolha 4 B): com mais de um formulário,
   aparece um por vez.
   Sem JavaScript as abas somem e os formulários ficam um embaixo do outro. */
.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 var(--field-line); border-radius: 10px; padding: 8px; font-size: 13px; background: var(--field); }
.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); }

/* 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; }
.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-link); }

.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-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: var(--card); border: 1px solid var(--field-line); 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: var(--faint); }
.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 lavador e do dono. */
@media (max-width: 860px) {
  .p-two, .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; }
  .week { gap: 4px; }
  .wk b { font-size: 15px; }
  .wk span em { 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; }
}

/* Painel estreito (o celular do lavador): 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 > .scroll-more { margin: 0 -2px; }
  .p-rail > .scroll-more.left { left: -10px; }
  .p-rail > .scroll-more.right { right: -10px; }
  .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); }
}
@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; } }

/* ------------------------------------------------ escolha 7 A (21/10/2026)
   O Pixel Wash refeito na linha da família. O Kayo achou o painel o mais feio
   dos produtos, sem sincronia com o Stock, o Jury e o Barber depois do remake
   deles. Como neles: o miolo no fundo da casa e cada coisa num cartão branco
   por cima, sem contorno e sem sombra, com espaço entre um e outro; os números
   do dia em cartões grandes no alto (o urgente cheio, letra branca); o
   quadradinho da hora à esquerda do cartão, como a data no Jury; as listas em
   linhas brancas soltas, como as Vendas do Stock. As peças em src/ui/board.ts. */
.p-body { background: var(--t-sand); display: flex; flex-direction: column; }
.p-body > [data-region="body"] { flex: 1 0 auto; display: flex; flex-direction: column; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; padding: 16px 22px 0; }
.kpi { background: var(--card); border-radius: 16px; padding: 11px 15px 12px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kpi span { font-size: 12px; font-weight: 700; color: var(--soft); }
.kpi b { font-size: 22px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi small { font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.red { background: var(--bad); color: #fff; }
.kpi.amber { background: var(--bill); color: #fff; }
.kpi.green { background: var(--ok); color: #fff; }
.kpi.red span, .kpi.red small, .kpi.amber span, .kpi.amber small, .kpi.green span, .kpi.green small { color: #fff; }
.kpis + .board, .kpis + .p-pad, .kpis + .pt { padding-top: 12px; }
.board { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; padding: 16px 22px 26px; }
.board.solo { grid-template-columns: minmax(0, 1fr); }
.board-main, .board-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.board-side .p-title { flex-direction: column; align-items: flex-start; gap: 2px; }
.p-h4 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 800 11.5px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-top: 10px; }
.p-h4:first-child { margin-top: 0; }
.p-h4 > :not(:first-child) { letter-spacing: 0; text-transform: none; font-size: 12px; }
.p-h4 a { color: var(--t-link); font-weight: 800; }

/* O cartão branco por cima do fundo da casa. */
.p-box { background: var(--card); border: 0; }
.p-empty { background: transparent; border-color: var(--dash); }
.p-search label { border-color: var(--field); max-width: 520px; }
.p-search label:focus-within { border-color: var(--t-link); }

/* O quadradinho da hora, como a data no Jury: cheio quando é estado. */
.blk { width: 46px; height: 46px; border-radius: 12px; background: var(--t-tint); color: var(--t-head); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex: none; text-align: center; }
.blk b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.blk small { font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-top: 3px; }
.blk.red { background: var(--bad); color: #fff; }
.blk.green { background: var(--ok); color: #fff; }
.blk.amber { background: var(--bill); color: #fff; }
.blk.act { background: var(--t-action); color: #fff; }
.blk.off { background: var(--sunken); color: var(--soft); }
.blk.red small, .blk.green small, .blk.amber small, .blk.act small { color: #fff; }
.blk.sm { width: 36px; height: 36px; border-radius: 10px; }
.blk.sm b { font-size: 11.5px; }
.blk.ini b { font-size: 15px; }

/* As listas: uma linha branca por coisa, com respiro, a linha inteira é o link. */
.lns { display: flex; flex-direction: column; gap: 8px; }
.ln { position: relative; background: var(--card); border-radius: 16px; padding: 9px 16px 9px 9px; display: grid; grid-template-columns: 46px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr) minmax(110px, auto); gap: 14px; align-items: center; min-height: 64px; color: var(--ink); }
.ln.c4 { grid-template-columns: 46px minmax(0, 1.4fr) minmax(0, 1fr) minmax(110px, auto); }
.ln > span, .ln > div { min-width: 0; }
.ln b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln b .pill { margin: 0; flex: none; }
.ln b svg.i { width: 16px; height: 16px; color: var(--t-link); }
.ln small { display: block; font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln .end { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ln .end b { justify-content: flex-end; }
.ln .tile-link { border-radius: inherit; }
.ln .tile-acts { justify-content: flex-end; }
.ln:has(> .tile-link):hover { box-shadow: inset 0 0 0 1.5px var(--t-link); }
.ln.off { opacity: .6; }
/* O assinante (escolha 8 A, 21/10/2026): a linha do Financeiro do Pixel Jury,
   o vermelho só no quadradinho, no selo e no valor. */
.ln.sub { grid-template-columns: 46px minmax(0, 1.4fr) minmax(0, 1fr) minmax(100px, auto) auto; }
.ln b.bad { color: var(--bad-deep); }
.ln b.ok { color: var(--ok); }
.ln b.wait { color: var(--bill); }
.ln .meter { margin-top: 5px; }
.ln .acts { display: flex; align-items: center; justify-content: flex-end; gap: 6px; position: relative; z-index: 1; }
.ln .acts form { margin: 0; }
.ln:has(details.pop[open]) { z-index: 5; }
/* O menu que abre de um botão (o Receber): do produto, nunca a lista do navegador. */
details.pop { position: relative; }
details.pop > summary { list-style: none; cursor: pointer; }
details.pop > summary::-webkit-details-marker { display: none; }
details.pop > summary svg.i { width: 14px; height: 14px; stroke-width: 2.4; }
.pop-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: 180px; background: var(--card); border: 1px solid var(--field-line); border-radius: 13px; box-shadow: 0 14px 34px rgb(20 26 36 / .18); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
/* Escolher o cliente (Planos, opção A do Kayo, 22/10/2026; a mesma do clube do
   Pixel Barber): a busca, a lista ali mesmo e o cartão do escolhido com
   "Trocar". Cliente se cadastra em Clientes; aqui só se escolhe. */
.cp-search { display: flex; align-items: center; gap: 8px; margin: 0; }
.cp-search label { flex: 1; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--field-line); border-radius: 12px; padding: 0 12px; background: var(--field); color: var(--soft); min-width: 0; }
.cp-search label:focus-within { border-color: var(--t-link); }
.cp-search input { border: 0; outline: 0; padding: 11px 0; font-size: 14.5px; flex: 1; min-width: 0; background: transparent; color: var(--ink); }
.cp-search input::-webkit-search-cancel-button { display: none; }
.js .cp-search [data-cp-submit] { display: none; }
.cp-list { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.cp-list:empty { display: none; }
.cp-list:has(> .cp-empty) { border: 0; background: transparent; }
.cp-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 11px 8px 8px; border-top: 1px solid var(--line); color: var(--ink); }
.cp-row:first-child { border-top: 0; }
.cp-row:hover, .cp-row:focus-visible { background: var(--sunken); outline: none; }
.cp-row b, .cp-chosen b { display: block; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-row small, .cp-chosen small { display: block; font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-row .pill { margin: 0; }
.cp-chosen { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1.5px solid var(--t-link); border-radius: 12px; padding: 8px 12px 8px 8px; background: var(--card); }
.cp-swap { font-size: 12.5px; font-weight: 800; color: var(--t-action); }
.cp-empty { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--soft); line-height: 1.5; }
.cp-empty a { color: var(--t-action); font-weight: 800; }
/* O veículo do plano: os do cliente em cartões; o que já tem plano fica apagado. */
.vpicks { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.vpick { position: relative; cursor: pointer; }
.vpick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.vpick span { display: flex; flex-direction: column; gap: 1px; border: 1.5px solid var(--field-line); border-radius: 12px; padding: 8px 10px; background: var(--card); min-width: 0; }
.vpick b { font: 800 14px "Manrope", sans-serif; letter-spacing: .08em; }
.vpick small { font-size: 11.5px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vpick input:checked + span { border-color: var(--t-link); box-shadow: inset 0 0 0 1px var(--t-link); }
.vpick input:focus-visible + span { outline: 3px solid var(--t-action); outline-offset: 2px; }
.vpick.off, .vpick.off input { cursor: not-allowed; }
.vpick.off span { opacity: .55; }
/* O botão à esquerda (a fileira de ações de um cartão): o menu abre para a direita. */
.form-actions .pop-menu { left: 0; right: auto; }
.pop-menu small { font: 800 10.5px "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding: 4px 8px 3px; }
.pop-menu form { margin: 0; }
.pop-menu button { width: 100%; border: 0; background: none; border-radius: 9px; padding: 8px; display: flex; align-items: center; gap: 8px; font: 700 13px "Manrope", sans-serif; color: var(--ink); text-align: left; }
.pop-menu button:hover, .pop-menu button:focus-visible { background: var(--sunken); outline: none; }
.pop-menu button svg.i { width: 16px; height: 16px; color: var(--t-link); }

/* Os cartões em grade (catálogos e registros): brancos no fundo da casa. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tile { position: relative; background: var(--card); border-radius: 16px; padding: 13px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 126px; color: var(--ink); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.tile .n { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tile small, .tile .sm { font-size: 12px; color: var(--soft); font-weight: 600; }
.tile .st { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.tile .st.ok { color: var(--ok); }
.tile .st.wait { color: var(--bill); }
.tile-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--t-tint); display: grid; place-items: center; color: var(--t-link); flex: none; overflow: hidden; }
.tile-ic svg.i { width: 20px; height: 20px; }
.tile-ic img { width: 100%; height: 100%; object-fit: cover; }
.tile-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tile-foot form, .tile-acts form { margin: 0; }
.tile-acts { display: flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.tile .money { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.tile-link { position: absolute; inset: 0; border-radius: inherit; }
.tile-link:focus-visible { outline: 3px solid var(--t-action); outline-offset: 2px; }
.tile:has(> .tile-link):hover { box-shadow: inset 0 0 0 1.5px var(--t-link); }
.tile .tile-foot > *, .tile .tile-top > * { position: relative; z-index: 1; }
.tile.off { opacity: .6; }
/* Vencido no cartão (escolha 8 A): o vermelho só no quadradinho, no selo e no
   valor; o cartão continua branco. */
.tile-ic.bad { background: var(--bad); color: #fff; }
.tile .st.bad, .tile .money.bad, .tile .sm.bad { color: var(--bad-deep); font-weight: 800; }
.tile:has(details.pop[open]) { z-index: 5; }
/* O cartão de adicionar ("+ Adicionar veículo", "+ Novo plano"): cinza claro,
   no jeito dos outros cartões, sem o tracejado (pedido do Kayo, 22/10/2026). */
.tile.add { background: var(--t-panel); align-items: center; justify-content: center; flex-direction: row; gap: 6px; color: var(--ink); font-weight: 800; font-size: 13px; }
.tile.add svg.i { width: 18px; height: 18px; color: var(--t-link); stroke-width: 2.4; }
.tile.add:hover, .tile.add:focus-visible { box-shadow: inset 0 0 0 1.5px var(--t-link); color: var(--t-link); outline: none; }
.meter { display: flex; gap: 3px; flex-wrap: wrap; }
.meter i { width: 18px; height: 5px; border-radius: 3px; background: var(--track); }
.meter i.on { background: var(--t-primary); }
.tiles.small { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tiles.small .tile { min-height: 96px; }
.tile.mini { min-height: 0; gap: 2px; }
.tile small.one, .tile .one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tile .money.big { font-size: 18px; }
.tile .money small { font-weight: 600; }
.tile .plates { display: flex; gap: 6px 10px; flex-wrap: wrap; }
/* O estoque (escolha 12 B): o guardado em número grande e a barra até o mínimo, com a marca dele. */
.tile .stk-qty { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile .stk-qty small { font-size: 13px; color: var(--soft); }
.tile .stk-qty.bad, .tile .stk-qty.bad small { color: var(--bad-deep); }
.lvl { position: relative; display: block; height: 7px; border-radius: 99px; background: var(--sunken); }
.lvl i { display: block; height: 100%; border-radius: 99px; background: var(--t-primary); }
.lvl i.low { background: var(--bad); }
.lvl em { position: absolute; top: -3px; width: 2px; height: 13px; border-radius: 1px; background: var(--soft); }
.lvl i.mid { background: var(--bill); }
/* O lucro por serviço (escolha 14 B) usa o mesmo cartão; os números do mês ficam dentro do miolo. */
.p-pad > .kpis { padding: 0; }
.tile.pf .stk-qty { margin-top: 2px; }
.tile-av { width: 40px; height: 40px; border-radius: 50%; background: var(--t-tint); color: var(--t-head); display: grid; place-items: center; font: 800 13px "Manrope", sans-serif; flex: none; overflow: hidden; }
.tile-av img { width: 100%; height: 100%; object-fit: cover; }
.tile-av[style] { color: #fff; }

/* A lista curta da coluna da direita: cartão branco. */
.q { background: var(--card); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; position: relative; }
.q b { font-size: 13.5px; display: block; }
.q small { font-size: 11.5px; color: var(--soft); font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-end { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.q-end form { margin: 0; }
.q.red { background: var(--bad); color: #fff; }
.q.red small { color: #fff; }
.q:has(> .tile-link):hover { box-shadow: inset 0 0 0 1.5px var(--t-link); }
.side-empty { background: var(--card); border-radius: 14px; padding: 12px; font-size: 12.5px; color: var(--soft); font-weight: 600; text-align: center; }
.board-side .rv { border: 0; }
/* Botão solto no fundo da casa: branco, como os cartões. */
.board-side > .p-btn.ghost, .board-main > .p-btn.ghost, .p-pad > .p-btn.ghost { background: var(--card); }

/* A linha dentro de um cartão branco (a fatura do convênio): no cinza. */
.p-box .ln { background: var(--sunken); }
@media (max-width: 1100px) {
  .board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 14px 0; gap: 8px; }
  .kpi b { font-size: 18px; }
  .board { padding: 14px 14px 20px; }
  .kpis + .board, .kpis + .p-pad, .kpis + .pt { padding-top: 10px; }
  .ln, .ln.c4 { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; }
  .ln > .mid { display: none; }
  .ln.sub { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .ln.sub > .end { display: none; }
}

/* ------------------------------------- o cadastro: botão redondo e gaveta
   Escolhas 10 A e 11 B do Kayo (22/10/2026), o padrão de todo produto: os
   botões de cadastro no alto, redondos, só com o ícone (o nome na dica, como
   no Pixel Barber); o cadastro numa coluna branca à direita, embaixo do
   cabeçalho, e a lista encolhe ao lado sem escurecer. */
.head-acts { display: flex; gap: 8px; align-items: center; }
.btn-round { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; text-decoration: none; background: var(--t-action); color: #fff; }
.btn-round svg.i { width: 17px; height: 17px; stroke-width: 2.4; }
.btn-round:hover { background: color-mix(in srgb, var(--t-action) 86%, #000); }
.btn-round.ghost { background: var(--sunken); color: var(--ink); }
.btn-round.ghost:hover { background: var(--hover); }
.btn-round:focus-visible { outline: 3px solid var(--t-action); outline-offset: 2px; }
.p-split { flex: 1; min-height: 0; display: flex; }
.p-split > .p-body { flex: 1; min-width: 0; }
.p-drawer { width: 440px; flex: none; background: var(--card); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.p-drawer-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.p-drawer-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--t-tint); color: var(--t-link); display: grid; place-items: center; flex: none; }
.p-drawer-ic svg.i { width: 22px; height: 22px; }
.p-drawer-head h2 { font-size: 18px; font-weight: 800; }
.p-drawer-head p { font-size: 12.5px; color: var(--soft); margin-top: 2px; }
.p-drawer-x { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; background: var(--sunken); display: grid; place-items: center; color: var(--ink); flex: none; }
.p-drawer-x svg.i { width: 18px; height: 18px; }
.p-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.p-drawer-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); display: flex; }
.p-drawer-foot > .p-btn.big { flex: 1; justify-content: center; }
.p-drawer .p-soft { margin: 0; }
/* As setas de rolagem são itens de altura zero: o espaço entre os campos não conta para elas. */
.p-drawer-body > .scroll-more.up { margin-bottom: -14px; top: -16px; }
.p-drawer-body > .scroll-more.down { margin-top: -14px; bottom: -16px; }
/* A seta grudada para na beira do espaço interno: a lista do select desconta o dela. */
.sel-list > .scroll-more.up, .sug-list > .scroll-more.up { top: -5px; }
.sel-list > .scroll-more.down, .sug-list > .scroll-more.down { bottom: -5px; }
/* "O que você usou?" (escolha 13 A): um produto por linha, com o menos e o mais.
   A linha zerada fica apagada. */
.use { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--t-link); border-radius: 14px; background: var(--card); }
.use.off { border-color: var(--line); }
.use.off .use-t b, .use.off .use-t small { color: var(--faint); }
.use-t { min-width: 0; }
.use-t b { display: block; font-size: 14px; font-weight: 800; }
.use-t small { display: block; font-size: 11.5px; color: var(--soft); font-weight: 600; }
.step { display: inline-flex; align-items: center; border-radius: 12px; background: var(--sunken); }
.step-b { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 12px; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.step-b svg.i { width: 18px; height: 18px; stroke-width: 2.6; }
.step input { width: 52px; border: 0; background: transparent; text-align: right; font: 800 14px "Manrope", sans-serif; color: var(--ink); padding: 0; outline: none; }
.step-u { font-size: 12.5px; font-weight: 800; color: var(--soft); padding: 0 2px 0 4px; min-width: 20px; }
.use-more summary { list-style: none; cursor: pointer; border: 1.5px dashed var(--dash); border-radius: 14px; padding: 11px 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--t-link); }
.use-more summary::-webkit-details-marker { display: none; }
.use-more summary svg.i { width: 16px; height: 16px; }
.use-more[open] summary { margin-bottom: 10px; }
.use-list { display: flex; flex-direction: column; gap: 10px; }
/* O tempo do lavador no Estoque: uma faixa no alto, fora dos produtos (17 B). */
.fixbar { background: var(--card); border-radius: 16px; padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; align-items: center; margin-bottom: 4px; }
.fix-t b, .fix-v b { display: block; font-size: 14px; font-weight: 800; }
.fix-t small, .fix-v small { display: block; font-size: 12px; color: var(--soft); font-weight: 600; }
.fix-v { text-align: right; }
.fix-v b { font-size: 20px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .fixbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .fix-v { grid-column: 2; grid-row: 2; text-align: left; }
}
/* O tempo do lavador, em destaque no alto da gaveta (16 B). */
.work { border-radius: 16px; background: var(--t-tint); padding: 14px 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.work-q { font-size: 15px; font-weight: 800; }
.work-row { display: flex; align-items: center; gap: 16px; }
.work-b { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.work-b svg.i { width: 20px; height: 20px; stroke-width: 2.6; }
.work-v { display: flex; align-items: baseline; justify-content: center; gap: 4px; min-width: 120px; }
.work-v input { width: 76px; border: 0; background: transparent; text-align: right; font: 800 36px/1 "Manrope", sans-serif; color: var(--ink); padding: 0; outline: none; }
.work-v small { font-size: 15px; font-weight: 800; color: var(--soft); }
.work-v:has(input:focus-visible) { outline: 3px solid var(--t-action); outline-offset: 4px; border-radius: 8px; }
.work-how { font-size: 11.5px; color: var(--soft); font-weight: 600; text-align: center; }
.use-cap { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-top: 4px; }
/* O que o serviço costuma usar, na gaveta do serviço. */
.usual { display: flex; flex-direction: column; gap: 6px; }
.usual-row { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; }
.usual-in { display: flex; align-items: center; gap: 6px; }
.usual-in input { width: 100%; min-width: 0; border: 1.5px solid var(--field-line); border-radius: 12px; padding: 9px 11px; font-size: 14px; background: var(--field); outline: 0; text-align: right; }
.usual-in input:focus { border-color: var(--t-link); }
.usual-in small { font-size: 12px; font-weight: 800; color: var(--soft); min-width: 20px; }
/* A conta do lucro na OS: a linha do total. */
.kv.tot { border-top: 1.5px solid var(--line); padding-top: 8px; margin-top: 2px; font-size: 13.5px; color: var(--ink); }
.kv.tot b { font-size: 15px; }
.kv b.ok { color: var(--ok); }
.kv b.bad { color: var(--bad-deep); }
/* Com a gaveta aberta, a coluna da direita da tela desce para baixo do miolo. */
.p-split .board { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1240px) {
  .p-split .ln > .mid { display: none; }
  .p-split .ln, .p-split .ln.c4 { grid-template-columns: 46px minmax(0, 1fr) minmax(110px, auto); }
  .p-split .ln.sub { grid-template-columns: 46px minmax(0, 1fr) minmax(100px, auto) auto; }
}
/* No celular, a gaveta ocupa a tela inteira. */
@media (max-width: 860px) {
  .p-drawer { position: fixed; inset: 0; width: 100%; z-index: 60; border-left: 0; }
}

/* ================================================= o lava-jato (Nordeste Auto Estética) */

/* A placa só com as letras e os números, em negrito (21/10/2026): o desenho da
   Mercosul (a faixa azul e o contorno) o Kayo não quis, "só os números". */
.plate { display: inline-block; font: 800 12px "Manrope", sans-serif; letter-spacing: .08em; color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plate b { font: inherit; }
.plate.big { font-size: 17px; letter-spacing: .1em; color: var(--ink); }
.plates { display: inline-flex; gap: 4px 10px; flex-wrap: wrap; }
.bigplate { border: 2px solid var(--field-line); border-radius: 16px; background: var(--field); display: flex; width: 100%; max-width: 340px; }
.bigplate input { border: 0; background: transparent; font: 900 34px/1 "Figtree", sans-serif; letter-spacing: .12em; text-align: center; padding: 14px 0 15px .12em; color: var(--ink); text-transform: uppercase; width: 100%; font-variant-numeric: tabular-nums; border-radius: 14px; }
.bigplate input:focus-visible { outline: none; }
.bigplate:focus-within { border-color: var(--t-link); }
.bigplate input::placeholder { color: var(--faint); }

/* ------------------------------------------------------------ o pátio */

/* Escolha 1 A: quatro colunas, e o cartão anda da esquerda para a direita. Na
   7 A, as colunas no tom da casa e o veículo em cartão branco com o
   quadradinho da hora que importa: chegou, sai ou pronto; vermelho se passou
   da hora de sair. */
.pt { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.kc { background: var(--t-panel); border-radius: 18px; padding: 10px 9px 9px; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 220px; }
.kc.drop-over { outline: 2px dashed var(--t-link); outline-offset: -2px; }
.kh { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 2px; font: 800 11px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.kh b { background: var(--card); color: var(--ink); border-radius: 7px; padding: 2px 8px; letter-spacing: 0; font-size: 11.5px; }
.kc-empty { font-size: 12.5px; font-weight: 600; color: var(--soft); text-align: center; padding: 18px 6px; border: 1.5px dashed var(--dash); border-radius: 13px; }
.car { position: relative; background: var(--card); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.car[draggable="true"] { cursor: grab; }
.car.dragging { opacity: .45; }
.car:has(.car-main:hover), .car:has(.car-main:focus-visible) { box-shadow: inset 0 0 0 1.5px var(--t-link); }
.car-main { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; color: var(--ink); }
.car-main:focus-visible { outline: none; }
.car-t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.car .md { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-t small { font-size: 11.5px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car .sv { font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-marks:empty { display: none; }
.car-marks .mk { margin: 0 6px 0 0; }
.mk.warn { color: var(--bill); }
.car-ft { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; min-height: 30px; flex-wrap: wrap; }
.car-ft .soft { color: var(--soft); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.car-ft .soft svg.i { width: 14px; height: 14px; }
.car-ft .due { color: var(--bad-deep); font-weight: 800; }
.car-ft .crew { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; }
.car-ft form { margin: 0; }
.car-ft > :last-child:is(form, a, .ics) { margin-left: auto; }
.car-ft .ics { color: var(--soft); font-size: 11.5px; }
.car-ft .b-sm svg.i { width: 13px; height: 13px; stroke-width: 2.4; }
.prog { height: 5px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--t-primary); border-radius: 3px; }
.paid { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 800; }
.paid svg.i { width: 14px; height: 14px; stroke-width: 2.8; }
/* Os marcados de hoje, embaixo do pátio: cartõezinhos com a hora. */
.agd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agd-l { font: 800 11px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-right: 4px; }
.agd .soft { color: var(--soft); font-size: 13px; font-weight: 600; }
.agd .it { display: inline-flex; gap: 9px; align-items: center; background: var(--card); border-radius: 12px; padding: 5px 12px 5px 5px; min-width: 0; color: var(--ink); }
.agd .it b { display: block; font-size: 12.5px; font-weight: 800; }
.agd .it small { display: block; font-size: 11px; font-weight: 600; color: var(--soft); }
.agd .it:hover, .agd .it:focus-visible { box-shadow: inset 0 0 0 1.5px var(--t-link); outline: none; }

/* ------------------------------------------------- a entrada do carro */

.p-pad.narrow { max-width: 880px; width: 100%; margin: 0 auto; }
.e-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.e-steps li { font: 800 11px "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); border-top: 3px solid var(--line); padding-top: 7px; }
.e-steps li.on { color: var(--ink); border-color: var(--t-action); }
.e-steps li.done { color: var(--ink); border-color: var(--t-link); }
.entry-plate { align-items: center; gap: 16px; padding: 28px 20px; }
.entry-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.entry-head > .p-btn { margin-left: auto; }
.entry-head b { display: block; font-size: 15px; }
.entry-head small { display: block; font-size: 12.5px; }
.known { background: var(--t-sand); border-radius: 14px; padding: 11px 13px; display: flex; flex-direction: column; gap: 4px; }
.known b { font-size: 14.5px; }
.known span { font-size: 12.5px; color: var(--soft); }
.known .ok-line { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--t-link); }
.known .ok-line.bad { color: var(--bad); }
.known .ok-line svg.i { width: 15px; height: 15px; stroke-width: 2.4; }
.picks.sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.picks.sizes .pick-card { gap: 3px; padding: 10px 6px; }
.picks.sizes .pick-card svg.i { width: 28px; height: 28px; color: var(--t-link); stroke-width: 1.6; }
.picks.sizes .pick-card small { font-size: 11px; color: var(--soft); line-height: 1.25; }
.p-sub { font: 800 11px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-top: 4px; }
.svc-checks { display: flex; flex-direction: column; gap: 6px; }
.svc-row { grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; border: 1.5px solid var(--line); border-radius: 13px; padding: 9px 12px; }
.svc-row > span { font-size: 12.5px; }
.svc-row em { font-style: normal; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.svc-row:has(input:checked) { border-color: var(--t-link); background: var(--t-sand); }
.svc-row.off { opacity: .5; cursor: not-allowed; }
.svc-row.off em { font-weight: 600; color: var(--soft); }
.checks.inline { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.checks.inline .check-row { align-items: center; }

/* ---------------------------------------------------------- a vistoria */

/* Escolha 2 A: o carro visto de cima, a frente à direita. Toca na parte, a
   folha sobe com o tipo, a foto e a observação. */
.carbox { background: var(--t-sand); border-radius: 16px; padding: 10px 12px 6px; }
.carmap { width: 100%; height: auto; display: block; max-width: 640px; margin: 0 auto; }
.carmap .gapbg { fill: #b4bec8; }
.carmap .z { fill: #e9edf1; }
.carmap .glass { fill: #c3d5e6; }
.carmap .tire { fill: #2b3138; }
.carmap .mirror { fill: #e9edf1; stroke: #b4bec8; stroke-width: 1.5; }
.carmap .hit { fill: #ffe1e1; }
.carmap .tire.hit { fill: #c92a2a; }
.carmap.live [data-part] { cursor: pointer; }
.carmap.live [data-part]:hover, .carmap.live [data-part]:focus-visible, .carmap [data-part].sel { fill: #ffd9c4; outline: none; }
.carmap.live .tire[data-part]:hover, .carmap.live .tire[data-part]:focus-visible, .carmap .tire.sel { fill: var(--t-action); }
.carmap .mk { pointer-events: none; }
.carmap .mk circle { fill: var(--bad); }
.carmap .mk text { fill: #fff; font: 800 11px "Figtree", sans-serif; text-anchor: middle; }
.carmap .lb { fill: var(--soft); font: 800 8.5px "Figtree", sans-serif; letter-spacing: .12em; }
.marks { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mrow:first-child { border-top: 0; }
.mrow > i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--bad); color: #fff; display: grid; place-items: center; font: 800 11.5px "Figtree", sans-serif; flex: none; }
.mrow > div { min-width: 0; flex: 1; }
.mrow b { display: block; font-size: 13.5px; }
.mrow small { display: block; font-size: 12px; color: var(--soft); }
.mrow form { margin: 0; }
.mrow-shots { display: flex; gap: 6px; flex-wrap: wrap; }
.sides { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.side-slot { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.side-slot small { font-size: 11.5px; font-weight: 700; color: var(--soft); }
.side-slot .shot { width: 100%; height: 76px; }
.shot { position: relative; width: 66px; height: 52px; border-radius: 11px; background: #3d4651; overflow: hidden; display: grid; place-items: center; flex: none; color: #fff; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.add { background: var(--card); border: 1.5px dashed var(--dash); color: var(--t-link); margin: 0; }
.shot.add label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; height: 100%; cursor: pointer; font-size: 11px; font-weight: 800; }
.shot.add label svg.i { width: 19px; height: 19px; }
.shot.add input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.shot.add .p-btn { position: absolute; left: 2px; right: 2px; bottom: 2px; padding: 2px; font-size: 10px; }
.shot.add.sending { opacity: .55; pointer-events: none; }
.shot.has-img form { position: absolute; top: 3px; right: 3px; margin: 0; }
.shot-x { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--bad); color: #fff; display: grid; place-items: center; padding: 0; }
.shot-x svg.i { width: 13px; height: 13px; stroke-width: 2.6; }
.mark-sheet { border-top: 1px solid var(--line); padding-top: 12px; }
.mark-sheet [data-mark-title] { font: 800 18px "Manrope", sans-serif; letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0; }
/* Com JavaScript e com o desenho, a folha sobe só quando se toca numa parte. */
.mark-sheet.floating { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--card); border-radius: 24px 24px 0 0; border-top: 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); max-height: 88vh; overflow: auto; }
.mark-sheet.floating:not(.open) { display: none; }
.mark-sheet.floating::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--dash); margin: 0 auto 10px; }
.sheet-bg { position: fixed; inset: 0; z-index: 59; background: rgb(10 16 22 / .55); }
.chips-pick { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-pick { position: relative; cursor: pointer; }
.chip-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-pick span { display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700; background: var(--card); white-space: nowrap; }
.chip-pick span svg.i { width: 14px; height: 14px; stroke-width: 2.8; display: none; }
.chip-pick input:checked + span { background: var(--t-primary); border-color: var(--t-primary); color: #fff; }
.chip-pick input:checked + span svg.i { display: block; }
.chip-pick input:focus-visible + span { outline: 3px solid var(--t-action); outline-offset: 2px; }
.photo-pick { position: relative; align-self: flex-start; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------------------------------------------------------------- a OS */

.p-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.p-inline-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.p-inline-note form { margin: 0 0 0 auto; }
.p-more { border-top: 1px solid var(--line); padding-top: 10px; }
.p-more summary { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--t-link); cursor: pointer; list-style: none; }
.p-more summary::-webkit-details-marker { display: none; }
.p-more summary svg.i { width: 16px; height: 16px; }
.p-more[open] summary { margin-bottom: 10px; }
.crew { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; font-weight: 700; }
.crew .ps { display: inline-flex; align-items: center; gap: 6px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs a { width: 64px; height: 50px; border-radius: 10px; overflow: hidden; background: #3d4651; display: block; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.print-state { font-size: 13px; font-weight: 700; border-radius: 11px; padding: 9px 12px; color: #fff; }
.print-state.waiting { background: var(--bill); }
.print-state.printed { background: var(--ok); }
.print-state.failed { background: var(--bad); }
.kv.diff b { color: var(--bad); }
.pzs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pz { display: inline-flex; align-items: baseline; gap: 4px; background: var(--sunken); border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pz small { font-size: 10.5px; font-weight: 700; color: var(--soft); }
.pz.off { color: var(--soft); font-weight: 600; }

/* ------------------------------------------------------- a nota fiscal */

.nfse-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.nfse-row:first-of-type { border-top: 0; padding-top: 0; }
.nfse-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nfse-head b small { font-weight: 600; color: var(--soft); }
.nfse-answer { font-size: 12.5px; white-space: pre-line; border-radius: 10px; padding: 8px 10px; background: var(--sunken); }
.nfse-answer.bad { background: var(--bad); color: #fff; font-weight: 700; }
.nfse-cancel summary { list-style: none; display: inline-flex; }
.nfse-cancel summary::-webkit-details-marker { display: none; }
.nfse-cancel[open] summary { margin-bottom: 10px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0; }
.mono.small { font-size: 11.5px; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pt { padding: 12px 12px 16px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .kc { min-height: 0; }
  .sides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .picks.sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 761px) {
  .mark-sheet.floating { left: 50%; right: auto; width: 560px; transform: translateX(-50%); bottom: 24px; border-radius: 22px; }
}

/* ------------------------------------------------------------ orçamentos
   Escolha 18 A do Kayo (23/10/2026): a linha como em Clientes. O selo do
   estado fica numa coluna só dele, alinhado de uma linha para a outra, e
   nunca colado no nome (pedido do Kayo). Os botões também têm a coluna
   deles, de largura fixa, e nunca passam por cima do texto; o total tem
   largura fixa. Em tela estreita os botões descem para embaixo. */
.ln.qt { grid-template-columns: 46px minmax(0, 1.2fr) 118px minmax(0, 1.2fr) 124px 214px; }
.ln .st-col { display: flex; align-items: center; }
.ln .st-col .pill { margin-left: 0; }
.p-split .ln.qt > .mid { display: none; }
.p-split .ln.qt { grid-template-columns: 46px minmax(0, 1fr) 118px 124px 214px; }
@media (max-width: 1240px) {
  .p-split .ln.qt { grid-template-columns: 46px minmax(0, 1fr) 118px 124px; }
  .p-split .ln.qt > .acts { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 860px) {
  .ln.qt { grid-template-columns: 46px minmax(0, 1fr) 104px 112px; }
  .ln.qt > .acts { grid-column: 2 / -1; justify-content: flex-start; flex-wrap: wrap; }
}
/* A gaveta: cada serviço com a caixinha e o preço, e o total ao vivo. */
.q-svcs { display: flex; flex-direction: column; gap: 6px; }
.q-svc { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) 112px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--sunken); cursor: pointer; }
.q-svc.on { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--t-link); }
.q-svc.none { opacity: .55; }
.q-svc input[type="checkbox"] { position: absolute; left: 10px; width: 24px; height: 24px; opacity: 0; margin: 0; cursor: pointer; }
.q-svc i { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--dash); display: grid; place-items: center; color: #fff; background: var(--field); }
.q-svc i svg { width: 15px; height: 15px; stroke-width: 3; opacity: 0; }
.q-svc input:checked + i { background: var(--t-primary); border-color: var(--t-primary); }
.q-svc input:checked + i svg { opacity: 1; }
.q-svc input:focus-visible + i { outline: 3px solid var(--t-action); outline-offset: 2px; }
.q-svc-n { min-width: 0; }
.q-svc-n b { display: block; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-svc-n small { display: block; font-size: 11.5px; color: var(--soft); font-weight: 600; }
.q-svc-p { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; background: var(--field); padding: 8px 10px; text-align: right; font: 800 13.5px "Manrope", sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.q-svc-p:focus { outline: none; border-color: var(--t-link); }
.q-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--t-tint); }
.q-total span { font-size: 13px; font-weight: 800; color: var(--soft); }
.q-total b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
/* O número do orçamento na ficha do cliente: link na cor da casa, sem sublinhado. */
.kv-link { color: var(--t-link); font-weight: 800; text-decoration: none; }
.kv-link:hover { text-decoration: none; color: var(--t-head); }

/* ------------------------------------------------- a tela do lavador (2 A)
   Uma página de celular (escolha 2 A do Kayo, 23/10/2026, a mesma do barbeiro
   do Barber): o alto do link do cliente, o miolo do pátio e as funções num
   menu embaixo. No computador, uma coluna no meio, como o link. */
.s-page { background: var(--t-panel); min-height: 100vh; }
.s { max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; background: var(--t-sand); }
.s-cover { position: relative; overflow: hidden; color: #fff; background-color: var(--t-primary); background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / .05) 0 12px, transparent 12px 24px); }
.s-cover-img { position: absolute; inset: 0; z-index: 0; }
.s-cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A mesma camada uniforme do link do cliente, na cor escura da casa. */
.s-cover.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: color-mix(in srgb, var(--t-deep) 58%, transparent); }
.s-head { position: relative; z-index: 1; min-height: 176px; box-sizing: border-box; padding: calc(24px + env(safe-area-inset-top, 0px)) 20px 18px; display: flex; align-items: flex-end; gap: 14px; }
.s-head .logo { width: 56px; height: 56px; box-shadow: 0 0 0 3px #fff; }
.s-name { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s-name span { font-size: 13px; font-weight: 700; opacity: .9; }
.s-name h1 { font-size: 26px; line-height: 1.1; font-weight: 800; overflow-wrap: anywhere; }
.s-name small { font-size: 13px; font-weight: 600; opacity: .9; }
.s-main { flex: 1; overflow: visible; }
.s-main > .notice { margin: 14px 16px 0; }
/* O menu embaixo: barra branca, a tela atual numa pílula na cor de ação com
   letra branca, e Sair por último. */
.s-menu { position: sticky; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
.s-menu form { display: contents; }
.s-menu a, .s-menu button { justify-self: center; width: 100%; max-width: 92px; height: 54px; border: 0; border-radius: 14px; background: none; color: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 700 12px "Manrope", sans-serif; text-decoration: none; cursor: pointer; }
.s-menu svg.i { width: 22px; height: 22px; }
.s-menu .on { background: var(--t-action); color: #fff; }
/* O miolo segue sempre o jeito do celular, também na coluna do computador. */
.s-main .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 14px 0; gap: 8px; }
.s-main .kpi b { font-size: 18px; }
.s-main .pt { padding: 12px 12px 16px; }
.s-main .cols { grid-template-columns: minmax(0, 1fr); }
.s-main .kc { min-height: 0; }
.s-main .board { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 20px; }
.s-main .p-pad { padding: 14px 14px 20px; }
.s-main .ln, .s-main .ln.c4, .s-main .ln.sub { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; }
.s-main .ln > .mid { display: none; }
.s-main .field-row, .s-main .p-two { grid-template-columns: minmax(0, 1fr); }
/* "Minha senha" (4 A): a pílula no canto de cima da capa, cheia na cor de
   ação da casa com letra branca (o Kayo recusou o vidro translúcido), e a
   gaveta branca que sobe de baixo. */
.s-key { position: absolute; z-index: 2; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; height: 40px; padding: 0 14px 0 12px; border-radius: 20px; background: var(--t-action); border: 0; color: #fff; display: flex; align-items: center; gap: 8px; font: 700 13px "Manrope", sans-serif; text-decoration: none; }
.s-key svg.i { width: 16px; height: 16px; }
.s-pass { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; background: var(--card); color: var(--ink); border-radius: 24px 24px 0 0; padding: 22px 20px calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; max-height: 92vh; overflow: auto; }
.s-pass-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-pass-top h2 { font-size: 20px; font-weight: 800; color: var(--t-head); }
.s-pass-x { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--t-panel); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.s-pass-x svg.i { width: 16px; height: 16px; }
.s-pass > .notice { margin: 0; }
.s-pass .pass-wrap input { width: 100%; padding-right: 50px; }
.s-pass-note { font-size: 12px; color: var(--soft); text-align: center; }
/* Com a gaveta aberta a página de trás não rola, e as setas dela não sobem por cima da gaveta. */
body.sheet-open { overflow: hidden; }
body.sheet-open .scroll-page { display: none; }

/* A gaveta do "O que você usou?" cobre a coluna toda, como no celular. */
.s .p-drawer { position: fixed; inset: 0; width: 100%; max-width: 520px; margin: 0 auto; z-index: 60; border-left: 0; }

/* ------------------------------------------- o link da equipe (3 B, DEC-044)
   A capa ocupa a tela inteira, com a mesma camada uniforme na cor escura da
   casa (sem capa, a cor da casa com as listras); no meio, a logo, o nome e o
   título; embaixo, a gaveta branca que sobe da borda com o e-mail e a senha.
   No computador, uma coluna no meio, como o link do cliente. */
.eq-page { min-height: 100vh; background: var(--t-deep); }
.eq { position: relative; max-width: 520px; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; color: #fff; background-color: var(--t-primary); background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / .05) 0 12px, transparent 12px 24px); }
.eq-img { position: absolute; inset: 0; z-index: 0; }
.eq-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eq.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: color-mix(in srgb, var(--t-deep) 60%, transparent); }
.eq > :not(.eq-img) { position: relative; z-index: 1; }
.eq-top { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: calc(40px + env(safe-area-inset-top, 0px)) 24px 24px; text-align: center; }
.eq-top .logo { width: 84px; height: 84px; box-shadow: 0 0 0 4px #fff; }
.eq-top .logo b { font-size: 24px; }
.eq-shop { font-size: 15px; font-weight: 700; opacity: .9; }
.eq-top h1 { font-size: 30px; line-height: 1.1; font-weight: 800; }
.eq-sheet { background: var(--card); color: var(--ink); border-radius: 24px 24px 0 0; padding: 24px 20px calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.eq-sheet > .notice { margin: 0; }
.eq-form { display: flex; flex-direction: column; gap: 14px; }
.eq-field { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.eq-field input { height: 50px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font: 600 16px "Manrope", sans-serif; letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--field); }
.eq-field input:focus { outline: none; border-color: var(--t-link); }
.eq-go { height: 52px; border: 0; border-radius: 12px; background: var(--t-action); color: #fff; font: 800 16px "Manrope", sans-serif; cursor: pointer; }
.eq-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--soft); text-align: center; }
.eq-note svg.i { width: 16px; height: 16px; color: var(--t-link); flex: none; }
