/* HR Motors — painel da loja. Mesma laca do site em modo ferramenta: urushi de fundo, bandejas com aro,
   dinheiro sempre em laca shu dentro do aro, recibo da venda em washi. */

:root {
  --urushi: #0d0b0b;
  --urushi-2: #151111;
  --urushi-3: #1f1818;
  --shu: #b5262c;
  --shu-vivo: #d8443b;
  --washi: #fbfaf8;
  --sumi: #141213;
  --branco: #ffffff;

  --tx: #ffffff;
  --tx-2: rgb(255 241 238 / 0.7);
  --tx-3: rgb(255 241 238 / 0.52);
  --linha: rgb(255 241 238 / 0.12);
  --linha-forte: rgb(255 241 238 / 0.22);
  --campo: rgb(255 241 238 / 0.045);
  --sumi-2: rgb(20 18 19 / 0.68);
  --linha-sumi: rgb(20 18 19 / 0.14);

  --f-display: "Anybody", "Arial Black", system-ui, sans-serif;
  --f-nome: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-corpo: "BIZ UDPGothic", "Hiragino Sans", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lado: 248px;
  --barra: 86px;
  --abas: 0px;
  --sombra-peca: 0 28px 60px -30px rgb(0 0 0 / 0.75);
  --fio-topo: inset 0 1px 0 rgb(255 255 255 / 0.06);
  --bandeja: linear-gradient(180deg, #171212, #100d0d 320px);
  --laca-shu: linear-gradient(180deg, #c22d32, var(--shu) 55%, #a52227);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: var(--urushi);
  color: var(--tx);
  font-family: var(--f-corpo);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--branco); outline-offset: 2px; border-radius: 6px; }
.recibo :focus-visible { outline-color: var(--shu); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--branco); color: var(--sumi); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic { width: 20px; height: 20px; flex: none; }
.num {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 108;
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 640;
  letter-spacing: -0.005em;
}
.nome { font-family: var(--f-nome); font-weight: 700; letter-spacing: 0.005em; }
.jp { font-family: var(--f-nome); font-weight: 500; }
.fraco { color: var(--tx-3); }
.forte { color: var(--tx); font-weight: 760; }
.un { font-size: 15px; color: var(--tx-2); }
.marca-txt {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx-3);
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.18s, box-shadow 0.2s var(--ease), color 0.18s, opacity 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn--p { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }
.btn--p .ic { width: 18px; height: 18px; }
.btn--shu {
  background: linear-gradient(180deg, var(--shu-vivo), var(--shu) 55%, #9d1f25);
  color: var(--branco);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 12px 24px -14px rgb(0 0 0 / 0.85);
}
.btn--shu:hover { background: linear-gradient(180deg, #e04e44, #c22d31 55%, #a52227); transform: translateY(-1px); }
.btn--branco { background: var(--branco); color: var(--sumi); }
.btn--branco:hover { background: #f3efee; }
.btn--aro { background: transparent; color: var(--tx); box-shadow: inset 0 0 0 1px rgb(255 241 238 / 0.3); }
.btn--aro:hover { box-shadow: inset 0 0 0 1px rgb(255 241 238 / 0.7); background: rgb(255 241 238 / 0.04); }
.btn--sumi { background: var(--sumi); color: var(--branco); }
.btn--sumi:hover { background: #2a2526; }
.btn--aro-sumi { background: transparent; color: var(--sumi); box-shadow: inset 0 0 0 1px rgb(20 18 19 / 0.3); }
.btn--aro-sumi:hover { box-shadow: inset 0 0 0 1px rgb(20 18 19 / 0.65); }
.btn--cheio { width: 100%; min-height: 52px; font-size: 16px; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-texto {
  background: none; border: 0; padding: 8px 2px; cursor: pointer; color: var(--tx); font-size: 14px; font-weight: 700;
  text-decoration: underline; text-decoration-color: rgb(255 241 238 / 0.4); text-underline-offset: 3px;
}
.btn-texto:hover { text-decoration-color: currentColor; }
.btn-texto--sumi { color: var(--sumi); text-decoration-color: rgb(20 18 19 / 0.35); }
.btn-icone {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: transparent; color: var(--tx-3); cursor: pointer; transition: background-color 0.18s, color 0.18s;
}
.btn-icone:hover { background: var(--urushi-3); color: var(--tx); }
.btn-icone .ic { width: 18px; height: 18px; }

/* ---------- Casca ---------- */

.app { display: grid; grid-template-columns: var(--lado) minmax(0, 1fr); min-height: 100vh; }

.lado {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 26px; padding: 22px 14px 18px;
  background:
    linear-gradient(122deg, transparent 0 22%, rgb(255 238 232 / 0.03) 30%, rgb(255 238 232 / 0.06) 33%, rgb(255 238 232 / 0.02) 37%, transparent 44%) 0 0 / 100% 520px no-repeat,
    linear-gradient(180deg, var(--urushi-2), var(--urushi) 70%);
  box-shadow: inset -1px 0 0 var(--linha);
}
.marca { display: flex; align-items: center; gap: 12px; padding: 0 8px; text-decoration: none; }
.marca img { width: 44px; height: 44px; }
.marca__txt { display: grid; line-height: 1.15; }
.marca__nome { font-family: var(--f-display); font-variation-settings: "wdth" 140; font-weight: 800; font-size: 15px; letter-spacing: 0.04em; }
.marca__lugar { font-size: 12.5px; color: var(--tx-3); }

.nav { display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px 0 14px; border-radius: 999px;
  color: var(--tx-2); text-decoration: none; font-weight: 700; font-size: 15px;
  transition: background-color 0.18s, color 0.18s;
}
.nav a:hover { background: var(--urushi-3); color: var(--tx); }
.nav a[aria-current="page"] { background: rgb(255 241 238 / 0.08); color: var(--tx); box-shadow: var(--fio-topo), inset 0 0 0 1px var(--linha); }
.nav a[aria-current="page"] .ic { color: var(--shu-vivo); }
.contador { margin-left: auto; font-size: 13px; color: var(--tx-3); min-width: 22px; text-align: right; }
.contador:empty { display: none; }
.contador--alerta {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; text-align: center; line-height: 22px;
  background: var(--shu); color: var(--branco); font-size: 12.5px;
}

.lado__pe { margin-top: auto; display: grid; gap: 14px; }
.lado__site {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--tx-2); text-decoration: none; font-size: 14.5px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--linha);
}
.lado__site:hover { color: var(--tx); box-shadow: inset 0 0 0 1px var(--linha-forte); }
.lado__site .ic { width: 18px; height: 18px; }
.usuario { display: flex; align-items: center; gap: 12px; padding: 12px 8px 0; border-top: 1px solid var(--linha); }
.usuario__txt { display: grid; line-height: 1.25; font-size: 14.5px; }
.usuario__txt span { font-size: 12.5px; color: var(--tx-3); }

.avatar {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--urushi-3); box-shadow: inset 0 0 0 1px var(--linha-forte), var(--fio-topo);
  font-family: var(--f-display); font-variation-settings: "wdth" 120; font-weight: 760; font-size: 14px; letter-spacing: 0.02em;
}
.avatar--p { width: 34px; height: 34px; font-size: 12.5px; }

.area { min-width: 0; padding: 0 clamp(18px, 3vw, 40px) 72px; }

.demo {
  display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 10px 8px 10px 16px;
  border-radius: 16px; background: rgb(255 241 238 / 0.035); box-shadow: inset 0 0 0 1px var(--linha);
  font-size: 13.5px; color: var(--tx-2);
}
.demo__marca {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx);
}
.demo__marca::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--shu-vivo); }
.demo__txt { flex: 1; line-height: 1.45; }
.demo__acoes { flex: none; }
.demo__acoes [role="alert"] { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--tx); }
.demo__fechar {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: var(--tx-3); cursor: pointer;
}
.demo__fechar:hover { background: var(--urushi-3); color: var(--tx); }
.demo-fechada .demo { display: none; }
.demo__curto { display: none; }

.barra {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px; min-height: var(--barra); padding: 14px 0;
  background: rgb(13 11 11 / 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--linha);
}
.barra__selo { display: none; flex: none; }
.barra__titulos { flex: 1; min-width: 0; display: grid; align-items: center; }
.barra__titulos > * { grid-area: 1 / 1; }
.barra__titulos > .barra__sub { grid-area: 2 / 1; }
.barra__voltar {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 8px; border-radius: 999px;
  color: var(--tx-2); text-decoration: none; font-weight: 700; font-size: 15px; transition: opacity 0.2s, transform 0.25s var(--ease), background-color 0.18s;
}
.barra__voltar:hover { color: var(--tx); background: var(--urushi-3); }
.barra__voltar .ic { width: 18px; height: 18px; }
.barra__voltar[hidden] { display: none; }
body:not(.pasta-a-vista) .barra__voltar { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.barra__titulo {
  font-family: var(--f-display); font-variation-settings: "wdth" 116; font-weight: 780; font-size: 30px; line-height: 1.1; letter-spacing: -0.015em;
}
.barra__titulo:focus { outline: none; }
.barra__titulo--nome {
  font-family: var(--f-nome); font-variation-settings: normal; font-weight: 700; font-size: 28px; letter-spacing: 0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pilula-conta {
  display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 11px 18px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(128deg, transparent 0 46%, rgb(255 225 215 / 0.12) 52%, transparent 60%), var(--laca-shu);
  box-shadow: inset 0 1px 0 rgb(255 220 210 / 0.4), 0 12px 24px -16px rgb(0 0 0 / 0.9);
}
.pilula-conta small { font-size: 12.5px; font-weight: 700; color: rgb(255 238 233 / 0.9); }
.pilula-conta .num { font-size: 18px; font-weight: 760; }
.pilula-conta--falta { background: var(--urushi-3); box-shadow: inset 0 0 0 1px var(--linha-forte); }
.pilula-conta--falta small { color: var(--tx-2); }
.barra__titulo--nome, .pilula-conta { transition: opacity 0.2s, transform 0.25s var(--ease); }
.pasta-a-vista .barra__titulo--nome, .pasta-a-vista .pilula-conta { opacity: 0; transform: translateY(6px); pointer-events: none; }
.rot-curto { display: none; }
.barra__sub { margin-top: 3px; font-size: 14.5px; color: var(--tx-3); }
.barra__acoes { display: flex; gap: 10px; flex: none; }

.vista { padding-top: 22px; }
.vista:focus { outline: none; }
.vista > * + * { margin-top: 20px; }
.entrando { animation: entrar 0.24s var(--ease) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .entrando { animation: none; } }

.carregando { display: grid; gap: 14px; }
.carregando span { height: 96px; border-radius: 22px; background: linear-gradient(100deg, var(--urushi-2) 30%, var(--urushi-3) 50%, var(--urushi-2) 70%) 0 0 / 300% 100%; animation: brilho 1.4s linear infinite; }
.carregando span:first-child { height: 132px; }
@keyframes brilho { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .carregando span { animation: none; } }

/* ---------- Bandejas ---------- */

.bandeja {
  border-radius: 22px; padding: 22px 24px 24px;
  background: var(--bandeja);
  box-shadow: var(--fio-topo), inset 0 0 0 1px var(--linha), var(--sombra-peca);
}
.bandeja__topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bandeja__titulo {
  margin: 0 0 16px;
  font-family: var(--f-display); font-variation-settings: "wdth" 122; font-weight: 720; font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase;
}
.bandeja__titulo .fraco { text-transform: none; letter-spacing: 0; font-family: var(--f-corpo); font-weight: 400; }
.bandeja__nota { margin: -6px 0 16px; font-size: 14px; color: var(--tx-3); max-width: 64ch; }

/* resumo: bandeja de laca com divisórias e o dinheiro em shu dentro do aro */
.resumo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 0.4fr); gap: 0; padding: 7px; border-radius: 22px;
  background: var(--bandeja); box-shadow: var(--fio-topo), inset 0 0 0 1px var(--linha), var(--sombra-peca);
}
.resumo__lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.resumo__item { padding: 14px 18px 14px; box-shadow: inset -1px 0 0 var(--linha); }
.resumo__item:last-child { box-shadow: none; }
.resumo__item dt { font-size: 13.5px; color: var(--tx-3); }
.resumo__item dd { margin: 0; }
.resumo__val { margin-top: 4px; line-height: 1.15; }
.resumo__val .num { font-size: 28px; font-weight: 740; letter-spacing: -0.01em; }
.resumo__sub { margin-top: 3px; font-size: 13px; color: var(--tx-3); }
.resumo__lucro {
  display: grid; align-content: center; gap: 2px; padding: 16px 20px; border-radius: 15px;
  background:
    linear-gradient(128deg, transparent 0 46%, rgb(255 225 215 / 0.12) 52%, transparent 60%),
    var(--laca-shu);
  box-shadow: inset 0 1px 0 rgb(255 220 210 / 0.4);
}
.resumo__lucro .resumo__rot { font-size: 13.5px; font-weight: 700; color: rgb(255 238 233 / 0.92); }
.resumo__num { font-size: 34px; font-weight: 760; line-height: 1.1; letter-spacing: -0.01em; }
.resumo__lucro .resumo__sub { color: rgb(255 238 233 / 0.85); }
.resumo__lucro--neg { background: var(--urushi-3); box-shadow: inset 0 0 0 1.5px var(--shu-vivo); }

/* avisos */
.avisos { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.avisos a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px 8px 14px; border-radius: 999px;
  background: rgb(255 241 238 / 0.04); box-shadow: inset 0 0 0 1px var(--linha);
  color: var(--tx-2); text-decoration: none; font-size: 14.5px; transition: background-color 0.18s, box-shadow 0.18s;
}
.avisos a:hover { background: rgb(255 241 238 / 0.07); box-shadow: inset 0 0 0 1px var(--linha-forte); }
.avisos strong { color: var(--tx); }
.avisos .ic { width: 18px; height: 18px; color: var(--tx-3); }
.avisos .avisos__alerta { background: rgb(181 38 44 / 0.2); box-shadow: inset 0 0 0 1px rgb(216 68 59 / 0.55); }
.avisos .avisos__alerta .ic { color: var(--shu-vivo); }
.avisos .avisos__seta { width: 16px; height: 16px; opacity: 0.6; }

/* ferramentas: segmentos, busca, ordem */
.ferramentas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ferramentas--fim { justify-content: flex-start; }
.segmentos {
  display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  background: rgb(255 241 238 / 0.04); box-shadow: inset 0 0 0 1px var(--linha);
}
.segmentos::-webkit-scrollbar { display: none; }
.segmentos button {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--tx-2); font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background-color 0.18s, color 0.18s;
}
.segmentos button:hover { color: var(--tx); background: rgb(255 241 238 / 0.06); }
.segmentos button[aria-pressed="true"] { background: var(--branco); color: var(--sumi); }
.segmentos .num { font-size: 13px; opacity: 0.7; }
.segmentos--meses { display: flex; width: max-content; }

.busca { position: relative; flex: 1 1 220px; max-width: 360px; }
.busca .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--tx-3); pointer-events: none; }
.busca input {
  width: 100%; height: 46px; padding: 0 16px 0 42px; border: 0; border-radius: 999px; background: var(--campo);
  box-shadow: inset 0 0 0 1px var(--linha); font-size: 16px;
}
.busca input::placeholder { color: var(--tx-3); }
.ordem select, .campo select, .gasto-novo select, .regra-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--campo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23fff' stroke-opacity='.7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
  padding-right: 40px !important;
}
.ordem select { height: 46px; padding: 0 16px; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--linha); font-size: 15px; font-weight: 700; }
.ordem select option, .campo select option, .gasto-novo select option { background: var(--urushi-2); color: var(--tx); }
.filtro-ativo { font-size: 14.5px; color: var(--tx-2); }

/* ---------- Tabelas ---------- */

.tabela { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.tabela th {
  padding: 10px 12px; text-align: left; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em; color: var(--tx-3); box-shadow: inset 0 -1px 0 var(--linha);
}
.tabela td { padding: 12px; vertical-align: middle; box-shadow: inset 0 -1px 0 var(--linha); }
.tabela .n { text-align: right; white-space: nowrap; }
.tabela tbody tr[data-href] { cursor: pointer; transition: background-color 0.15s; }
.tabela tbody tr[data-href]:hover { background: rgb(255 241 238 / 0.035); }
.tabela .neg { color: var(--tx); }
.t-carro__in { display: flex; align-items: center; gap: 14px; min-width: 190px; }
.t-carro__in > .mini, .t-carro__in > .avatar { flex: none; }
.t-carro__txt { display: grid; min-width: 0; line-height: 1.25; }
.t-carro .nome { font-size: 18px; text-decoration: none; }
.t-carro a.nome:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.t-carro__versao { font-size: 13px; color: var(--tx-3); }
.t-carro__txt .fraco { font-size: 13.5px; text-decoration: none; }
.t-carro__txt a.fraco:hover { color: var(--tx); text-decoration: underline; }

/* pátio: cada carro é uma pasta-camada que assenta sobre a anterior, como as caixas de um jūbako */
.tabela--patio, .tabela--patio thead, .tabela--patio tbody { display: block; }
.tabela--patio tr {
  display: grid; align-items: center; column-gap: 8px;
  grid-template-columns: minmax(220px, 1.8fr) minmax(120px, 1fr) minmax(108px, 0.9fr) minmax(108px, 0.9fr) minmax(124px, 0.95fr) minmax(96px, 0.75fr) minmax(104px, 0.8fr);
}
.tabela--patio th, .tabela--patio td { display: block; box-shadow: none; }
.tabela--patio thead tr { padding: 0 16px 4px; }
.tabela--patio tbody tr {
  position: relative; margin-top: -10px; padding: 12px 16px 22px; border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #1b1616, #120f0f 72%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), inset 0 0 0 1px rgb(255 241 238 / 0.07), 0 -14px 26px -18px rgb(0 0 0 / 0.95);
  transition: background-color 0.15s;
}
.tabela--patio tbody tr:first-child { margin-top: 0; }
.tabela--patio tbody tr:last-child { border-radius: 18px; padding-bottom: 14px; }
.tabela--patio tbody tr[data-href]:hover { background: linear-gradient(180deg, #221b1b, #151111 72%); }
.t-carro__meta { display: none; font-size: 13.5px; color: var(--tx-3); }
.pe-shu {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 11px; border-radius: 11px; white-space: nowrap;
  background: linear-gradient(128deg, transparent 0 46%, rgb(255 225 215 / 0.12) 52%, transparent 60%), var(--laca-shu);
  box-shadow: inset 0 1px 0 rgb(255 220 210 / 0.4); font-size: 15px; font-weight: 700;
}
.pe-shu small { display: none; font-family: var(--f-corpo); font-size: 11.5px; font-weight: 700; color: rgb(255 238 233 / 0.9); }
.tabela--vendas td[data-rot="Cliente"], .tabela--vendas td[data-rot="Pagamento"], .tabela--vendas td[data-rot="Vendedor"] { white-space: nowrap; }

.mini {
  position: relative; width: 56px; height: 70px; border-radius: 10px; overflow: hidden; background: var(--urushi-3);
  box-shadow: inset 0 0 0 1px var(--linha);
}
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini--vazia { place-items: center; }
.mini--vazia img { width: 28px; height: 28px; opacity: 0.28; filter: grayscale(1); }

.estado {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; line-height: 1.4;
}
.estado--a-venda { background: rgb(181 38 44 / 0.22); color: var(--tx); }
.estado--a-venda::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--shu-vivo); }
.estado--preparando { color: var(--tx-2); box-shadow: inset 0 0 0 1px rgb(255 241 238 / 0.32); }
.estado--reservado { background: var(--washi); color: var(--sumi); }
.estado--vendido { background: var(--urushi-3); color: var(--tx-2); }
.dias { display: inline-flex; align-items: center; gap: 6px; }
.dias .ic { width: 16px; height: 16px; color: var(--shu-vivo); }
.dias--parado { font-weight: 700; }
.forma { color: var(--tx-2); font-size: 14.5px; }
.marca-pend, .marca-paga {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; vertical-align: 1px;
  font-family: var(--f-corpo); font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em;
}
.marca-pend { background: var(--shu); color: var(--branco); }
.marca-paga { box-shadow: inset 0 0 0 1px var(--linha-sumi); color: var(--sumi-2); }

.vazio { display: grid; justify-items: center; gap: 8px; padding: 52px 20px; text-align: center; color: var(--tx-2); }
.vazio img { opacity: 0.32; margin-bottom: 6px; }
.vazio__t { font-family: var(--f-display); font-variation-settings: "wdth" 116; font-weight: 740; font-size: 20px; color: var(--tx); }
.vazio .btn { margin-top: 10px; }

/* ---------- Pasta do carro ---------- */

.voltar {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 6px; border-radius: 999px;
  color: var(--tx-2); text-decoration: none; font-weight: 700; font-size: 14.5px;
}
.voltar:hover { color: var(--tx); background: var(--urushi-3); }
.voltar .ic { width: 18px; height: 18px; }
.vista > .voltar + .pasta { margin-top: 10px; }

.pasta {
  display: grid; grid-template-columns: 136px minmax(0, 1fr) minmax(250px, 300px); gap: 22px; align-items: center;
  padding: 8px; border-radius: 26px;
  background: var(--bandeja); box-shadow: var(--fio-topo), inset 0 0 0 1px var(--linha), var(--sombra-peca);
}
.pasta__foto img, .pasta__semfoto { width: 136px; aspect-ratio: 4 / 5; border-radius: 19px; object-fit: cover; }
.pasta__semfoto {
  display: grid; place-content: center; justify-items: center; gap: 6px; background: var(--urushi-3);
  font-size: 12.5px; color: var(--tx-3); box-shadow: inset 0 0 0 1px var(--linha);
}
.pasta__semfoto img { width: 44px; height: 44px; opacity: 0.3; filter: grayscale(1); aspect-ratio: auto; border-radius: 0; }
.pasta__info { padding: 8px 0; min-width: 0; }
.pasta__nome { margin: 2px 0 6px; font-size: 34px; line-height: 1.1; overflow-wrap: anywhere; }
.pasta__versao { font-size: 20px; font-weight: 500; color: var(--tx-2); }
.pasta__meta { font-size: 15px; color: var(--tx-2); }
.pasta__estado { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; font-size: 14px; }
.pasta__estado .fraco { display: inline-flex; align-items: center; gap: 6px; }
.pasta__estado .ic { width: 16px; height: 16px; color: var(--shu-vivo); }
.pasta__dinheiro {
  align-self: stretch; display: grid; align-content: center; gap: 3px; padding: 18px 22px; border-radius: 19px;
  background:
    linear-gradient(128deg, transparent 0 46%, rgb(255 225 215 / 0.12) 52%, transparent 60%),
    var(--laca-shu);
  box-shadow: inset 0 1px 0 rgb(255 220 210 / 0.4);
}
.pasta__rot { font-size: 13.5px; font-weight: 700; color: rgb(255 238 233 / 0.92); }
.pasta__num { font-size: 36px; font-weight: 760; line-height: 1.1; letter-spacing: -0.01em; }
.pasta__sub { font-size: 13px; color: rgb(255 238 233 / 0.85); }
.pasta__falta, .conta__falta { font-family: var(--f-display); font-variation-settings: "wdth" 112; font-weight: 740; font-size: 20px; line-height: 1.2; }
.pasta__dinheiro--neg { background: var(--urushi-3); box-shadow: inset 0 0 0 1.5px var(--shu-vivo); }

/* salas da pasta: abas que se sobrepõem como as caixas de um jūbako vistas de lado; a sala aberta fica na frente */
.salas-pasta {
  position: sticky; top: var(--barra); z-index: 15;
  display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  padding: 10px 0 0 10px; background: rgb(13 11 11 / 0.95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 -1px 0 var(--linha-forte);
}
.salas-pasta::-webkit-scrollbar { display: none; }
.salas-pasta a, .salas-pasta__off {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; margin-left: -10px; padding: 0 22px 0 24px;
  border-radius: 16px 16px 0 0; color: var(--tx-3); text-decoration: none; font-weight: 700; font-size: 15px;
  background: linear-gradient(180deg, #171313, #0f0c0c);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), inset 1px 0 0 rgb(255 241 238 / 0.08), -12px 0 18px -14px rgb(0 0 0 / 0.95);
  transition: color 0.18s, background-color 0.18s;
}
.salas-pasta a:first-child, .salas-pasta__off:first-child { margin-left: 0; }
.salas-pasta a:hover { color: var(--tx); }
.salas-pasta a[aria-current="page"] {
  z-index: 2; color: var(--tx);
  background: linear-gradient(180deg, #2a2121, #1c1717);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), inset 0 0 0 1px rgb(255 241 238 / 0.14), -12px 0 18px -14px rgb(0 0 0 / 0.95), 12px 0 18px -14px rgb(0 0 0 / 0.95);
}
.salas-pasta a[aria-current="page"]::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--shu-vivo); }
.vista > .salas-pasta + .sala-wrap { margin-top: 22px; }
.salas-pasta .ic { width: 16px; height: 16px; color: var(--shu-vivo); }
.salas-pasta__off { opacity: 0.4; cursor: not-allowed; }

.sala { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.sala__col { display: grid; gap: 20px; min-width: 0; }
.sala__lado { position: sticky; top: calc(var(--barra) + 70px); display: grid; gap: 20px; }
.sala--parcelas { grid-template-columns: minmax(0, 1fr); }
.sala--recibo { grid-template-columns: minmax(0, 680px) minmax(240px, 360px); }
.pos-venda {
  position: sticky; top: calc(var(--barra) + 70px); padding: 22px 24px; border-radius: 22px;
  background: var(--bandeja); box-shadow: var(--fio-topo), inset 0 0 0 1px var(--linha), var(--sombra-peca);
}
.pos-venda ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pos-venda li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--tx-2); line-height: 1.45; }
.pos-venda li .ic { margin-top: 1px; color: var(--shu-vivo); }
.pos-venda strong { color: var(--tx); }
.pos-venda a { color: var(--tx); font-weight: 700; }
.aviso-sala {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--linha); color: var(--tx-2); grid-column: 1 / -1;
}
.aviso-sala .ic { color: var(--shu-vivo); }

/* ---------- Campos ---------- */

.grade-campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.grade-campos--extra { margin-top: 18px; }
.campo { position: relative; min-width: 0; }
.campo--largo { grid-column: 1 / -1; }
.campo > label:not(.check), .campo__rot { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; line-height: 20px; color: var(--tx-2); }
.campo__req { font-size: 12px; font-weight: 400; color: var(--tx-3); }
.campo input:not([type="checkbox"]):not([type="radio"]), .campo select, .gasto-novo input, .gasto-novo select, .item-novo input, .regra-form input, .regra-form select {
  width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--campo);
  box-shadow: inset 0 0 0 1px var(--linha); font-size: 16px; transition: box-shadow 0.15s, background-color 0.15s;
}
.campo input:hover, .campo select:hover, .gasto-novo input:hover, .item-novo input:hover { box-shadow: inset 0 0 0 1px var(--linha-forte); }
.campo input::placeholder, .gasto-novo input::placeholder, .item-novo input::placeholder, .regra-form input::placeholder { color: rgb(255 241 238 / 0.36); }
.campo input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--shu-vivo); background: rgb(181 38 44 / 0.1); }
.campo__iene { position: relative; display: block; }
.campo__iene > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-weight: 640; color: var(--tx-3); pointer-events: none; }
.campo__iene > input:not([type="checkbox"]):not([type="radio"]) { padding-left: 32px; font-family: var(--f-display); font-variation-settings: "wdth" 108; font-variant-numeric: tabular-nums; font-weight: 600; }
.campo__iene--p { display: inline-block; }
.campo__iene--p > span { left: 10px; font-size: 14px; }
.campo__iene--p > input:not([type="checkbox"]) { width: 136px; height: 38px; padding: 0 12px 0 34px; text-align: right; border: 0; border-radius: 10px; background: var(--campo); box-shadow: inset 0 0 0 1px var(--linha); color: var(--tx); }
.campo__sufixo { position: absolute; right: 14px; top: 26px; height: 46px; display: grid; place-items: center; font-size: 14px; color: var(--tx-3); pointer-events: none; }
.campo:has(.campo__sufixo) input { padding-right: 44px; }
.campo__era { display: block; margin-top: 6px; font-family: var(--f-nome); font-size: 14px; color: var(--tx-3); }
.campo__era:empty { display: none; }
.campo__dica { display: block; margin-top: 6px; font-size: 13px; color: var(--tx-3); }
.campo__erro { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 13.5px; font-weight: 700; color: var(--tx); }
.campo__erro::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--shu-vivo); }
.campo__erro:empty { display: none; }

.check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 15px; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px;
  box-shadow: inset 0 0 0 1.5px rgb(255 241 238 / 0.4); cursor: pointer; transition: background-color 0.15s, box-shadow 0.15s;
}
.check input:checked {
  background: var(--shu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5.5 12.5 4 4L18.5 7.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: none;
}
.campo--checks { display: grid; gap: 0; }

.chips { margin: 20px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 10px; font-size: 13.5px; font-weight: 700; color: var(--tx-2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--linha-forte); color: var(--tx-2); font-size: 14.5px; font-weight: 700;
  transition: background-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.chip input:checked + span { background: rgb(181 38 44 / 0.22); box-shadow: inset 0 0 0 1px rgb(216 68 59 / 0.65); color: var(--tx); }
.chip input:checked + span::after { content: ""; width: 14px; height: 14px; margin-left: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5.5 12.5 4 4L18.5 7.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.chip input:focus-visible + span { outline: 2px solid var(--branco); outline-offset: 2px; }

.itens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.item {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 4px 0 15px; border-radius: 999px;
  background: var(--urushi-3); box-shadow: inset 0 0 0 1px var(--linha); font-size: 14.5px;
}
.item button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--tx-3); cursor: pointer; }
.item button:hover { background: rgb(255 241 238 / 0.08); color: var(--tx); }
.item button .ic { width: 16px; height: 16px; }
.itens__vazio { font-size: 14px; }
.item-novo { display: flex; gap: 10px; margin-top: 14px; }
.item-novo input { flex: 1; }

/* fotos */
.fotos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.foto { position: relative; aspect-ratio: 4 / 5; border-radius: 15px; overflow: hidden; background: var(--urushi-3); box-shadow: inset 0 0 0 1px var(--linha); }
.foto > img { width: 100%; height: 100%; object-fit: cover; }
.foto--capa { box-shadow: 0 0 0 2px var(--shu-vivo); }
.foto__selo {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  background: var(--shu); color: var(--branco); font-size: 12px; font-weight: 700;
}
.foto__selo--hod { left: auto; right: 8px; background: rgb(13 11 11 / 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.foto__selo .ic { width: 14px; height: 14px; }
.foto__acoes {
  position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; justify-content: space-between; padding: 3px; border-radius: 999px;
  background: rgb(13 11 11 / 0.74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.foto__acoes button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--branco); cursor: pointer; }
.foto__acoes button:hover { background: rgb(255 255 255 / 0.14); }
.foto__acoes button[aria-pressed="true"] { background: var(--shu); }
.foto__acoes button:disabled { opacity: 0.28; cursor: default; background: transparent; }
.foto__acoes .ic { width: 16px; height: 16px; }
.foto--carregando span { position: absolute; inset: 0; background: linear-gradient(100deg, var(--urushi-3) 30%, #2b2222 50%, var(--urushi-3) 70%) 0 0 / 300% 100%; animation: brilho 1.2s linear infinite; }
.foto--soltar { background: transparent; box-shadow: none; }
.soltar {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 8px; height: 100%; padding: 12px; border-radius: 15px;
  border: 1.5px dashed rgb(255 241 238 / 0.3); color: var(--tx-2); text-align: center; font-size: 14px; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.soltar strong { display: block; color: var(--tx); }
.soltar .fraco { font-size: 12.5px; }
.soltar:hover, .soltar--sobre { background: rgb(181 38 44 / 0.14); border-color: var(--shu-vivo); }
.soltar input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.soltar:focus-within { outline: 2px solid var(--branco); outline-offset: 2px; }
.soltar .ic { width: 26px; height: 26px; color: var(--shu-vivo); }
.fotos:not(:has(.foto:not(.foto--soltar))) .foto--soltar { grid-column: span 2; aspect-ratio: auto; min-height: 160px; }

/* situação e destaque */
.situacoes { display: grid; gap: 8px; }
.situacao {
  position: relative; display: grid; gap: 1px; padding: 12px 14px 12px 48px; border-radius: 15px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--linha); transition: background-color 0.15s, box-shadow 0.15s;
}
.situacao:hover { background: rgb(255 241 238 / 0.03); }
.situacao input {
  appearance: none; -webkit-appearance: none; position: absolute; left: 15px; top: 50%; width: 20px; height: 20px; margin: -10px 0 0;
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(255 241 238 / 0.4); cursor: pointer;
}
.situacao input:checked { background: var(--shu); box-shadow: inset 0 0 0 5px var(--shu), inset 0 0 0 10px var(--branco); }
.situacao:has(input:checked) { background: rgb(255 241 238 / 0.06); box-shadow: inset 0 0 0 1.5px rgb(255 241 238 / 0.55); }
.situacao:has(input:focus-visible) { outline: 2px solid var(--branco); outline-offset: 2px; }
.situacao__t { font-weight: 700; font-size: 15px; }
.situacao__d { font-size: 13px; color: var(--tx-3); }

.interruptor { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; cursor: pointer; font-size: 14.5px; }
.interruptor > span:last-child { display: grid; line-height: 1.35; }
.interruptor .fraco { font-size: 13px; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor__trilho {
  position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--urushi-3);
  box-shadow: inset 0 0 0 1.5px rgb(255 241 238 / 0.32); transition: background-color 0.2s;
}
.interruptor__trilho::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--branco);
  transition: transform 0.22s var(--ease);
}
.interruptor input:checked + .interruptor__trilho { background: var(--shu); box-shadow: inset 0 1px 0 rgb(255 220 210 / 0.4); }
.interruptor input:checked + .interruptor__trilho::after { transform: translateX(18px); }
.interruptor input:focus-visible + .interruptor__trilho { outline: 2px solid var(--branco); outline-offset: 2px; }
.interruptor:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }

/* prévia do cartão do site */
.previa__rot { margin-bottom: 10px; font-size: 13.5px; font-weight: 700; color: var(--tx-2); }
.cartao {
  display: flex; flex-direction: column; padding: 8px; border-radius: 22px;
  background: linear-gradient(180deg, #1a1515, #121010); box-shadow: var(--fio-topo), inset 0 0 0 1px var(--linha), var(--sombra-peca);
}
.cartao__foto { position: relative; aspect-ratio: 4 / 5; border-radius: 15px; overflow: hidden; background: var(--urushi-3); }
.cartao__foto img { width: 100%; height: 100%; object-fit: cover; }
.cartao__semfoto { display: grid; place-items: center; height: 100%; font-size: 14px; color: var(--tx-3); }
.cartao__cat {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgb(13 11 11 / 0.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cartao__txt { display: grid; gap: 2px; padding: 14px 8px 12px; }
.cartao__nome { font-size: 21px; line-height: 1.25; }
.cartao__meta { font-size: 14px; color: var(--tx-3); }
.cartao__preco {
  display: grid; gap: 2px; padding: 12px 14px 13px; border-radius: 15px;
  background: linear-gradient(128deg, transparent 0 46%, rgb(255 225 215 / 0.12) 52%, transparent 60%), var(--laca-shu);
  box-shadow: inset 0 1px 0 rgb(255 220 210 / 0.4);
}
.cartao__preco .num { font-size: 26px; font-weight: 760; line-height: 1.1; }
.cartao__parcela { font-size: 13.5px; color: rgb(255 255 255 / 0.88); }
.previa__fora { margin-top: 10px; font-size: 13.5px; color: var(--tx-3); text-align: center; }

.bandeja--sair { background: transparent; box-shadow: inset 0 0 0 1px var(--linha); }
.sair { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.sair > span:first-child { display: grid; font-size: 14.5px; }
.sair .fraco { font-size: 13.5px; }
.sair__botoes { display: flex; gap: 8px; }

/* conta lateral (custos e venda) */
.conta {
  display: grid; gap: 14px; padding: 20px; border-radius: 22px;
  background: var(--bandeja); box-shadow: var(--fio-topo), inset 0 0 0 1px var(--linha), var(--sombra-peca);
}
.conta__linhas { margin: 0; display: grid; }
.conta__linhas > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; box-shadow: inset 0 -1px 0 var(--linha); font-size: 15px; }
.conta__linhas dt { color: var(--tx-2); }
.conta__linhas dd { margin: 0; }
.conta__soma dt, .conta__soma dd { color: var(--tx); font-weight: 700; }
.conta__lucro, .livro__res {
  display: grid; gap: 2px; padding: 16px 18px; border-radius: 15px;
  background: linear-gradient(128deg, transparent 0 46%, rgb(255 225 215 / 0.12) 52%, transparent 60%), var(--laca-shu);
  box-shadow: inset 0 1px 0 rgb(255 220 210 / 0.4);
}
.conta__lucro > span:first-child, .livro__res > span:first-child { font-size: 13.5px; font-weight: 700; color: rgb(255 238 233 / 0.92); }
.conta__lucro .num, .livro__res .num { font-size: 30px; font-weight: 760; line-height: 1.1; }
.conta__pct { font-size: 13px; color: rgb(255 238 233 / 0.85); }
.conta__lucro--neg, .livro__res--neg, .conta__lucro--falta { background: var(--urushi-3); box-shadow: inset 0 0 0 1.5px var(--shu-vivo); }
.conta__linhas dd, .livro__linhas dd, .recibo__conta dd { white-space: nowrap; }
.conta__regra, .conta__nota { font-size: 13px; color: var(--tx-3); }
.conta__nota { text-align: center; }

/* venda: opções em cartão de escolha */
.opcoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.opcao {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border-radius: 16px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--linha); transition: background-color 0.15s, box-shadow 0.15s;
}
.opcao:hover { background: rgb(255 241 238 / 0.03); }
.opcao input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcao__txt { display: grid; line-height: 1.3; }
.opcao__txt .fraco { font-size: 13px; }
.opcao:has(input:checked) { background: rgb(255 241 238 / 0.07); box-shadow: inset 0 0 0 1.5px rgb(255 241 238 / 0.62); }
.opcao:has(input:checked)::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--shu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.opcao:has(input:focus-visible) { outline: 2px solid var(--branco); outline-offset: 2px; }
.calc {
  display: flex; align-items: flex-start; gap: 10px; grid-column: 1 / -1; margin-top: 4px; padding: 12px 14px; border-radius: 12px;
  background: rgb(255 241 238 / 0.04); font-size: 14.5px; color: var(--tx-2);
}
.calc strong { color: var(--tx); }
.calc .ic { color: var(--shu-vivo); margin-top: 1px; }
p.calc { margin-top: 16px; }

/* recibo da venda em washi, com o carimbo 売約済 */
.recibo {
  position: relative; width: min(100%, 680px); padding: 34px 36px 24px; border-radius: 6px; color: var(--sumi);
  background-color: var(--washi);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27420%27 height=%27420%27%3E%3Cfilter id=%27n%27 x=%270%27 y=%270%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.045%27 numOctaves=%274%27 seed=%275%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 0.42 0 0 0 0 0.38 0 0 0 0 0.34 0 0 0 0.10 0%27/%3E%3C/filter%3E%3Crect width=%27420%27 height=%27420%27 filter=%27url%28%23n%29%27/%3E%3Cg fill=%27none%27 stroke=%27%236b6157%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M190 235Q145 245 101 257%27 stroke-opacity=%270.09%27 stroke-width=%271.1%27/%3E%3Cpath d=%27M78 215Q109 298 27 332%27 stroke-opacity=%270.09%27 stroke-width=%270.7%27/%3E%3Cpath d=%27M38 340Q4 344 13 377%27 stroke-opacity=%270.09%27 stroke-width=%270.9%27/%3E%3Cpath d=%27M262 349Q279 373 305 358%27 stroke-opacity=%270.07%27 stroke-width=%271.1%27/%3E%3Cpath d=%27M327 137Q337 172 309 196%27 stroke-opacity=%270.14%27 stroke-width=%270.7%27/%3E%3Cpath d=%27M2 36Q-22 71 -38 111M422 36Q398 71 382 111%27 stroke-opacity=%270.11%27 stroke-width=%270.5%27/%3E%3Cpath d=%27M132 96Q135 125 162 134%27 stroke-opacity=%270.07%27 stroke-width=%270.9%27/%3E%3Cpath d=%27M356 162Q300 250 224 180%27 stroke-opacity=%270.07%27 stroke-width=%270.6%27/%3E%3Cpath d=%27M197 -8Q198 17 213 37M197 412Q198 437 213 457%27 stroke-opacity=%270.11%27 stroke-width=%270.7%27/%3E%3Cpath d=%27M37 140Q-18 203 -86 154M457 140Q402 203 334 154%27 stroke-opacity=%270.07%27 stroke-width=%270.6%27/%3E%3Cpath d=%27M5 195Q50 251 9 310%27 stroke-opacity=%270.09%27 stroke-width=%271.1%27/%3E%3Cpath d=%27M-6 323Q14 360 14 403M414 323Q434 360 434 403%27 stroke-opacity=%270.07%27 stroke-width=%270.6%27/%3E%3Cpath d=%27M113 -12Q64 -19 53 30M113 408Q64 401 53 450%27 stroke-opacity=%270.09%27 stroke-width=%270.6%27/%3E%3Cpath d=%27M166 359Q128 369 144 405%27 stroke-opacity=%270.14%27 stroke-width=%270.6%27/%3E%3Cpath d=%27M108 325Q159 337 146 387%27 stroke-opacity=%270.09%27 stroke-width=%270.5%27/%3E%3Cpath d=%27M245 102Q236 142 219 179%27 stroke-opacity=%270.14%27 stroke-width=%271.1%27/%3E%3Cpath d=%27M350 57Q392 99 388 159%27 stroke-opacity=%270.09%27 stroke-width=%270.6%27/%3E%3Cpath d=%27M305 67Q264 104 265 159%27 stroke-opacity=%270.14%27 stroke-width=%270.9%27/%3E%3Cpath d=%27M253 177Q267 207 295 191%27 stroke-opacity=%270.14%27 stroke-width=%270.6%27/%3E%3Cpath d=%27M108 346Q124 389 86 415%27 stroke-opacity=%270.09%27 stroke-width=%270.5%27/%3E%3Cpath d=%27M96 235Q61 284 -0 283M516 235Q481 284 420 283%27 stroke-opacity=%270.07%27 stroke-width=%270.6%27/%3E%3Cpath d=%27M29 173Q53 180 61 205%27 stroke-opacity=%270.09%27 stroke-width=%271.1%27/%3E%3Cpath d=%27M39 58Q24 99 51 134%27 stroke-opacity=%270.09%27 stroke-width=%271.1%27/%3E%3Cpath d=%27M248 -32Q269 6 254 47M248 388Q269 426 254 467%27 stroke-opacity=%270.07%27 stroke-width=%270.5%27/%3E%3Cpath d=%27M251 31Q294 8 324 47%27 stroke-opacity=%270.07%27 stroke-width=%270.5%27/%3E%3Cpath d=%27M190 154Q255 205 332 174%27 stroke-opacity=%270.11%27 stroke-width=%270.6%27/%3E%3Cpath d=%27M148 288Q87 321 18 329%27 stroke-opacity=%270.14%27 stroke-width=%270.5%27/%3E%3Cpath d=%27M241 262Q247 316 278 360%27 stroke-opacity=%270.07%27 stroke-width=%270.5%27/%3E%3Cpath d=%27M269 -3Q219 34 157 41M269 417Q219 454 157 461%27 stroke-opacity=%270.14%27 stroke-width=%271.1%27/%3E%3Cpath d=%27M185 352Q262 301 303 384%27 stroke-opacity=%270.07%27 stroke-width=%271.1%27/%3E%3Cpath d=%27M202 97Q164 128 147 174%27 stroke-opacity=%270.11%27 stroke-width=%270.9%27/%3E%3Cpath d=%27M-44 155Q4 180 53 201M376 155Q424 180 473 201%27 stroke-opacity=%270.14%27 stroke-width=%270.7%27/%3E%3Cpath d=%27M209 101Q209 137 229 166%27 stroke-opacity=%270.09%27 stroke-width=%270.6%27/%3E%3Cpath d=%27M161 245Q177 268 191 291%27 stroke-opacity=%270.07%27 stroke-width=%270.5%27/%3E%3Cpath d=%27M-21 116Q30 118 56 162M399 116Q450 118 476 162%27 stroke-opacity=%270.14%27 stroke-width=%270.6%27/%3E%3Cpath d=%27M161 218Q88 244 100 320%27 stroke-opacity=%270.14%27 stroke-width=%271.1%27/%3E%3Cpath d=%27M135 -72Q151 -16 203 10M135 348Q151 404 203 430%27 stroke-opacity=%270.11%27 stroke-width=%270.7%27/%3E%3Cpath d=%27M130 332Q157 331 185 336%27 stroke-opacity=%270.11%27 stroke-width=%270.5%27/%3E%3Cpath d=%27M100 59Q155 60 208 75%27 stroke-opacity=%270.11%27 stroke-width=%271.1%27/%3E%3Cpath d=%27M-17 287Q41 286 57 342M403 287Q461 286 477 342%27 stroke-opacity=%270.14%27 stroke-width=%270.5%27/%3E%3Cpath d=%27M225 15Q268 61 320 97%27 stroke-opacity=%270.09%27 stroke-width=%271.1%27/%3E%3Cpath d=%27M165 333Q134 315 118 347%27 stroke-opacity=%270.09%27 stroke-width=%270.9%27/%3E%3Cpath d=%27M189 83Q169 87 151 97%27 stroke-opacity=%270.11%27 stroke-width=%271.1%27/%3E%3Cpath d=%27M195 274Q215 346 290 345%27 stroke-opacity=%270.09%27 stroke-width=%270.5%27/%3E%3Cpath d=%27M102 164Q126 215 173 184%27 stroke-opacity=%270.11%27 stroke-width=%270.7%27/%3E%3Cpath d=%27M382 359Q397 380 405 403%27 stroke-opacity=%270.14%27 stroke-width=%271.1%27/%3E%3C/g%3E%3C/svg%3E");
  background-size: 420px 420px;
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / 0.85);
}
.recibo::before {
  /* serrilha do picote no topo */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 9px;
  background: radial-gradient(circle at 8px 0, var(--urushi) 5.5px, transparent 6px) 0 0 / 16px 9px repeat-x;
}
.recibo__topo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 6px 120px 14px 0; box-shadow: inset 0 -1px 0 var(--linha-sumi); font-size: 14px; color: var(--sumi-2); }
.recibo__loja { font-family: var(--f-display); font-variation-settings: "wdth" 140; font-weight: 800; font-size: 15px; letter-spacing: 0.04em; color: var(--sumi); }
.recibo__carro { margin: 22px 120px 4px 0; font-size: 30px; line-height: 1.15; }
.recibo__meta { color: var(--sumi-2); font-size: 15px; }
.recibo__linhas, .recibo__conta { margin: 18px 0 0; }
.recibo__linhas > div, .recibo__conta > div {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 9px 0; border-bottom: 1px dashed rgb(20 18 19 / 0.2); font-size: 15px;
}
.recibo__linhas dt, .recibo__conta dt { color: var(--sumi-2); }
.recibo__linhas dd, .recibo__conta dd { margin: 0; }
.recibo__conta > div { grid-template-columns: minmax(0, 1fr) auto; }
.recibo__conta dd { font-size: 16px; }
.recibo__conta .recibo__lucro {
  margin-top: 10px; padding: 14px 16px; border: 0; border-radius: 12px; color: var(--branco);
  background: linear-gradient(128deg, transparent 0 46%, rgb(255 225 215 / 0.12) 52%, transparent 60%), var(--laca-shu);
}
.recibo__lucro dt { color: var(--branco); font-weight: 700; align-self: center; }
.recibo__lucro dd { font-size: 26px; }
.recibo__parc { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14.5px; color: var(--sumi-2); }
.recibo__parc .ic { color: var(--shu); }
.recibo__parc a { color: var(--shu); font-weight: 700; }
.recibo__pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--linha-sumi); }
.desfazer-conf { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.recibo__demo { margin-top: 12px; font-size: 13px; color: var(--tx-3); }
.hanko {
  position: absolute; top: 30px; right: 30px; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  color: var(--shu); box-shadow: inset 0 0 0 3px var(--shu), inset 0 0 0 6px var(--washi), inset 0 0 0 7.5px var(--shu);
  transform: rotate(-12deg); opacity: 0.9; mix-blend-mode: multiply;
}
.recibo--novo .hanko { animation: carimbar 0.6s var(--ease) 0.15s both; }
@keyframes carimbar {
  from { opacity: 0; transform: rotate(-12deg) scale(1.7); }
  60% { opacity: 0.95; transform: rotate(-12deg) scale(0.94); }
  to { opacity: 0.9; transform: rotate(-12deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .recibo--novo .hanko { animation: none; } }
.hanko span { writing-mode: vertical-rl; font-family: var(--f-nome); font-weight: 800; font-size: 21px; letter-spacing: 0.06em; line-height: 1; }

/* parcelas */
.sit { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--tx-2); white-space: nowrap; }
.sit .ic { width: 16px; height: 16px; }
.sit--paga { color: var(--tx-3); }
.sit--atrasada { padding: 3px 10px; border-radius: 999px; background: var(--shu); color: var(--branco); font-weight: 700; font-size: 13px; }
.parc--paga td { color: var(--tx-3); }

/* caixa */
.caixa { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.livro {
  border-radius: 22px; padding: 22px 24px 24px;
  background: var(--bandeja); box-shadow: var(--fio-topo), inset 0 0 0 1px var(--linha), var(--sombra-peca);
}
.livro__linhas { margin: 0 0 14px; display: grid; }
.livro__linhas > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; box-shadow: inset 0 -1px 0 var(--linha); font-size: 15px; }
.livro__linhas dt { color: var(--tx-2); }
.livro__linhas dt .fraco { margin-left: 6px; font-size: 13px; }
.livro__linhas dd { margin: 0; }
.livro__soma dt, .livro__soma dd { color: var(--tx); font-weight: 700; }
.livro__soma { box-shadow: inset 0 -1px 0 var(--linha-forte) !important; }
.livro__res { grid-template-columns: 1fr auto; align-items: center; }
.livro__nota { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--tx-2); }
.livro__nota .ic { color: var(--shu-vivo); margin-top: 1px; }
.livro__nota a { color: var(--tx); font-weight: 700; }

.meses-barras { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.meses-barras__mes {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 132px; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px;
  background: transparent; color: var(--tx); text-align: left; cursor: pointer; transition: background-color 0.15s;
}
.meses-barras__mes:hover { background: rgb(255 241 238 / 0.04); }
.meses-barras__mes[aria-pressed="true"] { background: rgb(255 241 238 / 0.07); box-shadow: inset 0 0 0 1px var(--linha); }
.meses-barras__rot { font-weight: 700; font-size: 14.5px; text-transform: capitalize; }
.meses-barras__trilhos { display: grid; gap: 5px; }
.meses-barras__trilhos span { display: block; height: 9px; border-radius: 999px; width: var(--w); min-width: 3px; }
.b-fat { background: rgb(255 241 238 / 0.24); }
.b-luc { background: var(--laca-shu); }
.b-luc--neg { background: transparent; box-shadow: inset 0 0 0 1.5px var(--shu-vivo); width: 12px !important; }
.meses-barras__vals { display: grid; text-align: right; font-size: 13.5px; line-height: 1.3; }
.legenda { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 14px; font-size: 13px; color: var(--tx-3); }
.legenda span { display: inline-flex; align-items: center; gap: 8px; }
.legenda span::before { content: ""; width: 18px; height: 9px; border-radius: 999px; }
.legenda__fat::before { background: rgb(255 241 238 / 0.24); }
.legenda__luc::before { background: var(--shu); }

.gasto-novo { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; margin-top: 16px; align-items: center; }
.gasto-novo--desp { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.gasto-novo input[type="date"] { min-width: 0; }
[data-vend-novo] { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.8fr) auto auto; }
.tabela--gastos { margin-top: 2px; }

/* barras horizontais (vendas e equipe) */
.duas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.barras-h { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.barras-h li { display: grid; grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.4fr) auto; align-items: center; gap: 12px; font-size: 14.5px; }
.barras-h__trilho { height: 10px; border-radius: 999px; background: rgb(255 241 238 / 0.06); overflow: hidden; }
.barras-h__barra { display: block; height: 100%; width: var(--w); border-radius: 999px; background: var(--laca-shu); }
.barras-h__val { text-align: right; white-space: nowrap; }
.barras-h__val .fraco { font-family: var(--f-corpo); font-weight: 400; }

/* equipe */
.tabela--equipe tr.editando td { background: rgb(255 241 238 / 0.03); }
.regra-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.regra-form select { width: auto; height: 40px; }
.regra-form input { width: 110px; height: 40px; }
.nota-regra { display: flex; align-items: flex-start; gap: 10px; max-width: 78ch; font-size: 14px; color: var(--tx-3); }
.nota-regra .ic { color: var(--tx-3); margin-top: 1px; }

/* ---------- Barra de salvar e aviso ---------- */

.salvar {
  position: fixed; z-index: 45; left: calc(var(--lado) + (100% - var(--lado)) / 2); bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgb(31 24 24 / 0.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--linha-forte), var(--fio-topo), 0 24px 50px -16px rgb(0 0 0 / 0.95);
}
.salvar[hidden] { display: none; }
.salvar__msg { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; white-space: nowrap; margin-right: 6px; }
.salvar__msg::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--shu-vivo); }
.salvar--pulso { animation: pulso 0.42s var(--ease); }
@keyframes pulso { 20% { transform: translateX(calc(-50% - 6px)); } 40% { transform: translateX(calc(-50% + 6px)); } 60% { transform: translateX(calc(-50% - 3px)); } }
@media (prefers-reduced-motion: reduce) { .salvar--pulso { animation: none; } }
.com-salvar .area { padding-bottom: 120px; }

.toast {
  position: fixed; z-index: 50; left: calc(var(--lado) + (100% - var(--lado)) / 2); bottom: 24px;
  display: flex; align-items: center; gap: 14px; max-width: min(92vw, 560px); padding: 12px 20px; border-radius: 999px;
  background: var(--branco); color: var(--sumi); font-weight: 700; font-size: 15px;
  box-shadow: 0 20px 40px -14px rgb(0 0 0 / 0.9);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity 0.2s, transform 0.25s var(--ease);
}
.toast--on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { flex: none; color: var(--shu); text-underline-offset: 3px; }
.com-salvar .toast { bottom: 92px; }

.abas { display: none; }

/* ---------- Telas menores ---------- */

@media (max-width: 1240px) {
  .resumo { grid-template-columns: minmax(0, 1fr); }
  .resumo__lucro { margin-top: 7px; }
  .sala { grid-template-columns: minmax(0, 1fr) 300px; }
  .col-custo { display: none; }
  .tabela--patio tr { grid-template-columns: minmax(220px, 1.8fr) minmax(120px, 1fr) minmax(108px, 0.9fr) minmax(124px, 0.95fr) minmax(96px, 0.75fr) minmax(104px, 0.8fr); }
  .tabela--patio .col-custo { display: none; }
}
@media (max-width: 1100px) {
  .tabela--patio th:nth-child(2), .tabela--patio td[data-rot="Ano · km"] { display: none; }
  .tabela--patio tr { grid-template-columns: minmax(200px, 2fr) minmax(100px, 0.9fr) minmax(116px, 0.95fr) minmax(84px, 0.7fr) minmax(100px, 0.8fr); }
  .t-carro__meta { display: block; }
}

@media (max-width: 1080px) {
  .sala { grid-template-columns: minmax(0, 1fr); }
  .sala__lado { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .sala--venda .sala__lado { grid-template-columns: minmax(0, 1fr); }
  .sala--recibo { grid-template-columns: minmax(0, 1fr); }
  .pos-venda { position: static; }
  /* no anúncio, situação e prévia sobem para logo depois das fotos; excluir fica por último */
  .sala--anuncio .sala__col, .sala--anuncio .sala__lado { display: contents; }
  .sala--anuncio > * > * { order: 5; }
  .sala--anuncio [aria-labelledby="t-fotos"] { order: 1; }
  .sala--anuncio [aria-labelledby="t-pub"] { order: 2; }
  .sala--anuncio .previa { order: 3; }
  .sala--anuncio .bandeja--sair { order: 9; }
  .caixa { grid-template-columns: minmax(0, 1fr); }
  .pasta { grid-template-columns: 112px minmax(0, 1fr); }
  .pasta__foto img, .pasta__semfoto { width: 112px; }
  .pasta__dinheiro { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --lado: 0px; --barra: 64px; --abas: calc(64px + env(safe-area-inset-bottom)); }
  .app { grid-template-columns: minmax(0, 1fr); }
  .lado { display: none; }
  .area { padding: 0 16px calc(var(--abas) + 36px); }
  .com-salvar .area { padding-bottom: calc(var(--abas) + 110px); }
  .barra { gap: 12px; padding: 10px 0; margin: 0 -16px; padding-inline: 16px; }
  .barra__selo { display: block; }
  .barra__selo img { width: 36px; height: 36px; }
  .barra__titulo { font-size: 22px; }
  .barra__sub { display: none; }
  .demo { margin-top: 12px; align-items: flex-start; flex-wrap: wrap; padding: 12px 8px 12px 14px; gap: 6px 10px; }
  .demo__txt { flex-basis: calc(100% - 48px); order: 3; font-size: 13px; }
  .demo__longo { display: none; }
  .demo__curto { display: inline; }
  .demo__marca { order: 1; flex: 1; padding-top: 8px; }
  .demo__fechar { order: 2; }
  .demo__acoes { order: 4; }

  .abas {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    height: var(--abas); padding-bottom: env(safe-area-inset-bottom);
    background: rgb(13 11 11 / 0.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--linha);
  }
  .abas a { position: relative; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--tx-3); text-decoration: none; font-size: 11.5px; font-weight: 700; }
  .abas a .ic { width: 22px; height: 22px; }
  .abas a[aria-current="page"] { color: var(--tx); }
  .abas a[aria-current="page"] .ic { color: var(--shu-vivo); }
  .abas .contador { position: absolute; top: 6px; left: calc(50% + 6px); margin: 0; }

  .salvar { left: 12px; right: 12px; bottom: calc(var(--abas) + 10px); transform: none; justify-content: flex-end; }
  .salvar__msg { margin-right: auto; white-space: normal; font-size: 14px; }
  .salvar [data-acao="descartar"] { width: 40px; padding: 0; }
  .salvar [data-acao="descartar"] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .barra__titulo--nome { font-size: 19px; }
  .pilula-conta { min-height: 38px; padding: 8px 12px; gap: 6px; }
  .pilula-conta .num { font-size: 15px; }
  .pilula-conta small { font-size: 11.5px; }
  .barra__acoes .btn--aro[aria-label] { width: 40px; min-height: 40px; padding: 0; }
  .barra__acoes .btn--aro[aria-label] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  @keyframes pulso { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-3px); } }
  .toast { left: 12px; right: 12px; bottom: calc(var(--abas) + 12px); max-width: none; justify-content: space-between; border-radius: 18px; transform: translateY(16px); }
  .toast--on { transform: none; }
  .com-salvar .toast { bottom: calc(var(--abas) + 80px); }

  .salas-pasta { margin-inline: -16px; padding-left: 16px; max-width: none; }
  .salas-pasta a, .salas-pasta__off { padding: 0 18px 0 20px; min-height: 44px; }
  .barra__titulo { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .duas { grid-template-columns: minmax(0, 1fr); }

  /* tabelas viram linhas empilhadas */
  .tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabela, .tabela tbody { display: block; }
  .tabela tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 14px 0; box-shadow: inset 0 -1px 0 var(--linha); }
  .tabela td { display: block; padding: 0; box-shadow: none; min-width: 0; }
  .tabela td.n { text-align: left; white-space: normal; }
  .tabela td[data-rot]::before { content: attr(data-rot); display: block; margin-bottom: 1px; font-family: var(--f-corpo); font-size: 12px; font-weight: 700; color: var(--tx-3); }
  .tabela td.t-carro { grid-column: 1 / -1; }
  .tabela td:not([data-rot]):not(.t-carro) { grid-column: 1 / -1; }
  .tabela td:not([data-rot]):not(.t-carro):empty { display: none; }
  /* gastos e despesas: duas linhas, descrição em cima, data e tipo embaixo, valor e remover à direita */
  .tabela--gastos tr { grid-template-columns: minmax(0, 1fr) auto 36px; gap: 2px 12px; align-items: center; padding: 12px 0; }
  .tabela--gastos td:not([data-rot]):not(.t-carro) { grid-column: auto; }
  .tabela--gastos td:nth-child(2) { grid-row: 1; grid-column: 1; }
  .tabela--gastos td:nth-child(1) { grid-row: 2; grid-column: 1; font-size: 13px; color: var(--tx-3); }
  .tabela--gastos td.n.num { grid-row: 1; grid-column: 2; text-align: right; }
  .tabela--gastos td.fraco { grid-row: 2; grid-column: 2; text-align: right; font-size: 13px; }
  .tabela--gastos td:last-child { grid-row: 1 / span 2; grid-column: 3; text-align: right; }
  .t-carro .mini { width: 52px; height: 65px; }
  .tabela--patio tbody tr { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 14px 22px; border-radius: 16px 16px 0 0; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), inset 0 0 0 1px rgb(255 241 238 / 0.07), 0 -14px 26px -18px rgb(0 0 0 / 0.95); }
  .tabela--patio tbody tr:last-child { border-radius: 16px; padding-bottom: 12px; }
  .tabela--patio td[data-rot]::before { display: none; }
  .tabela--patio td.t-carro { grid-column: 1; grid-row: 1 / 3; }
  .tabela--patio td[data-rot="Preço"] { grid-column: 2; grid-row: 1; text-align: right; font-size: 16px; align-self: end; }
  .tabela--patio td[data-rot="Situação"] { grid-column: 2; grid-row: 2; text-align: right; align-self: start; }
  .tabela--patio td[data-rot="Margem"] { grid-column: 1; grid-row: 3; margin-top: 4px; }
  .tabela--patio td[data-rot="No pátio"] { grid-column: 2; grid-row: 3; margin-top: 4px; font-size: 14px; text-align: right; align-self: center; }
  .pe-shu { padding: 5px 10px; font-size: 14px; }
  .pe-shu small { display: inline; }
  .sala--anuncio .previa { width: min(100%, 300px); justify-self: center; }
  .tabela--equipe td[data-rot="Comissão"], .tabela--vendas td[data-rot="Pagamento"] { grid-column: 1 / -1; }
  .tabela--vendas td[data-rot="Pagamento"]::before { display: inline !important; margin-right: 6px; }

  .pasta { gap: 14px; }
  .pasta__nome { font-size: 26px; }
  .pasta__versao { font-size: 17px; }
  .pasta__num { font-size: 30px; }
  .bandeja, .livro { padding: 18px 16px 20px; }
  .gasto-novo, .gasto-novo--desp, [data-vend-novo] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gasto-novo > label:first-child { grid-column: 1 / -1; }
  .gasto-novo > .btn { grid-column: 1 / -1; }
  .gasto-novo > .btn-texto { grid-column: 1 / -1; justify-self: center; }
  .recibo { padding: 30px 20px 22px; }
  .recibo__topo { padding-right: 84px; }
  .recibo__carro { margin-right: 0; font-size: 26px; }
  .hanko { width: 74px; height: 74px; top: 22px; right: 16px; }
  .hanko span { font-size: 17px; }
  .recibo__linhas > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (max-width: 600px) {
  .barra__acoes .btn { width: 44px; padding: 0; }
  .barra__acoes .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .demo { flex-wrap: nowrap; align-items: center; padding: 6px 4px 6px 12px; gap: 8px; }
  .demo__marca { flex: none; order: 0; padding-top: 0; }
  .demo__txt { order: 1; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--tx-3); }
  .demo__acoes { order: 2; }
  .demo__fechar { order: 3; }
  .demo__acoes .btn-texto { font-size: 13px; }
  .resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resumo__lista { display: contents; }
  .resumo__item { padding: 11px 12px; }
  .resumo__item:nth-child(1) { box-shadow: inset -1px 0 0 var(--linha); }
  .resumo__item:nth-child(2) { box-shadow: none; }
  .resumo__item:nth-child(3) { box-shadow: inset -1px 0 0 var(--linha), inset 0 1px 0 var(--linha); }
  .resumo__item dt { font-size: 12.5px; line-height: 1.3; }
  .resumo__val .num { font-size: 21px; }
  .resumo__sub { font-size: 12px; line-height: 1.35; }
  .resumo__lucro { margin-top: 0; padding: 11px 12px; }
  .resumo__lucro .resumo__rot { font-size: 12.5px; line-height: 1.3; }
  .resumo__num { font-size: 22px; }
  .resumo__lucro .resumo__sub { display: none; }
  .resumo .resumo__sub { display: none; }
  .rot-longo { display: none; }
  .rot-curto { display: inline; }
  .barra__titulo { font-size: 20px; }
  .ordem { flex-basis: 150px; }
  /* avisos numa faixa só, de deslizar; busca e ordem na mesma linha: o primeiro carro aparece na primeira tela */
  .avisos { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .avisos::-webkit-scrollbar { display: none; }
  .avisos li { flex: none; max-width: 86%; scroll-snap-align: start; }
  .avisos a { border-radius: 16px; height: 100%; }
  .ferramentas { flex-wrap: wrap; }
  .busca { max-width: none; flex: 1 1 0; min-width: 0; }
  .ordem { flex: 0 0 132px; }
  .ordem select { width: 100%; font-size: 14px; padding-left: 14px; }
  .demo__txt { display: none; }
  .demo__marca { flex: 1; }
  .sala__lado { grid-template-columns: minmax(0, 1fr); }
  .grade-campos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .campo:has(input[type="date"]), .campo:has(input[type="month"]) { grid-column: 1 / -1; }
  .fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .opcoes { grid-template-columns: minmax(0, 1fr); }
  .meses-barras__mes { grid-template-columns: 36px minmax(0, 1fr) 104px; gap: 10px; padding: 8px 4px; }
  .barras-h li { grid-template-columns: minmax(0, 1fr) auto; }
  .barras-h__trilho { grid-column: 1 / -1; grid-row: 2; }
  .item-novo .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .item-novo .btn { width: 46px; padding: 0; }
  .sair__botoes { width: 100%; }
  .sair__botoes .btn { flex: 1; }
}
