/* Conferência de Caixa · Sertão Beer — aparência da tela
   Inspiração: hevodata.com/learn — fundo branco, preto e cinzas, botões e filtros em pílula,
   grade fina e círculos cinza no topo da tela de entrada, uma palavra manuscrita como destaque
   e cartões escuros para os números. Movimento: o contorno dos botões "enche" de preto da esquerda
   para a direita; o botão preto ganha um brilho que atravessa. Tudo respeita "reduzir movimento". */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --sunk: #f6f6f7;
  --chip: #f3f3f4;
  --ink: #0e0e10;
  --ink-2: #2b2b30;
  --muted: #6e6e75;
  --headline: #8b8b91;
  --line: #e7e7ea;
  --line-strong: #d4d4d9;
  --grid: #f0f0f2;
  --card: #151518;
  --card-ink: #f5f5f6;
  --card-muted: #a1a1a9;
  --inv-bg: #0e0e10;
  --inv-ink: #ffffff;
  --ok: #11804b;
  --ok-bg: #e7f6ee;
  --bad: #c0362c;
  --bad-bg: #fdecea;
  --info: #2a5db0;
  --info-bg: #ebf1fb;
  --warn: #8a5a00;
  --warn-bg: #fff4d9;
  --shadow: 0 1px 2px rgba(14, 14, 16, 0.04), 0 12px 32px -18px rgba(14, 14, 16, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --f: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Sacramento", "Brush Script MT", cursive;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0e;
    --surface: #141417;
    --sunk: #19191d;
    --chip: #1d1d21;
    --ink: #f3f3f5;
    --ink-2: #d9d9de;
    --muted: #a0a0a8;
    --headline: #77777e;
    --line: #26262b;
    --line-strong: #35353b;
    --grid: #17171a;
    --card: #1b1b1f;
    --card-ink: #f5f5f6;
    --card-muted: #a1a1a9;
    --inv-bg: #f3f3f5;
    --inv-ink: #0c0c0e;
    --ok: #5ccf94;
    --ok-bg: #12291d;
    --bad: #f28b80;
    --bad-bg: #351816;
    --info: #8db6f2;
    --info-bg: #142338;
    --warn: #eabb57;
    --warn-bg: #33270c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -18px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c0e;
  --surface: #141417;
  --sunk: #19191d;
  --chip: #1d1d21;
  --ink: #f3f3f5;
  --ink-2: #d9d9de;
  --muted: #a0a0a8;
  --headline: #77777e;
  --line: #26262b;
  --line-strong: #35353b;
  --grid: #17171a;
  --card: #1b1b1f;
  --card-ink: #f5f5f6;
  --card-muted: #a1a1a9;
  --inv-bg: #f3f3f5;
  --inv-ink: #0c0c0e;
  --ok: #5ccf94;
  --ok-bg: #12291d;
  --bad: #f28b80;
  --bad-bg: #351816;
  --info: #8db6f2;
  --info-bg: #142338;
  --warn: #eabb57;
  --warn-bg: #33270c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -18px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- base ---------- */
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: clip;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 22px;
  line-height: 1.25;
}
.num,
.mono {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
b.mono {
  font-weight: 700;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
::selection {
  background: var(--ink);
  color: var(--bg);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* campos */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
select,
textarea {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  min-height: 40px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.3s var(--ease);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
select:hover,
textarea:hover {
  border-color: var(--muted);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent);
}
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
textarea {
  resize: vertical;
}
input[type="search"] {
  border-radius: 999px !important;
  padding-left: 16px !important;
}

/* ---------- botões em pílula ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    color 0.45s var(--ease),
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    background-color 0.3s ease;
}
/* contorno: o preto entra da esquerda e ocupa o botão */
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--inv-bg);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease);
}
.btn:hover {
  color: var(--inv-ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(14, 14, 16, 0.55);
}
.btn:hover::before {
  transform: scaleX(1);
}
.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.12s;
}
/* preto: um brilho atravessa o botão */
.btn.primary {
  background: var(--inv-bg);
  color: var(--inv-ink);
  border-color: var(--inv-bg);
}
.btn.primary::before {
  inset: -2px auto -2px 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  border-radius: 0;
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.75s var(--ease);
  z-index: 0;
}
.btn.primary:hover {
  color: var(--inv-ink);
  background: color-mix(in srgb, var(--inv-bg) 86%, var(--muted));
}
.btn.primary:hover::before {
  transform: translateX(330%) skewX(-18deg);
}
.btn.small {
  padding: 6px 13px;
  font-size: 13px;
  border-width: 1px;
  border-color: var(--line-strong);
}
.btn.small:hover {
  border-color: var(--inv-bg);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  color: var(--ink);
}
.btn:disabled::before {
  display: none;
}

/* filtros e nomes em pílula */
.chip {
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 14.5px;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.35s var(--ease);
}
.chip:hover {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--chip) 70%, var(--line-strong));
  transform: translateY(-2px);
}
.chip[aria-pressed="true"] {
  background: var(--inv-bg);
  border-color: var(--inv-bg);
  color: var(--inv-ink);
  font-weight: 600;
}

/* ---------- faixa preta e topo ---------- */
.anuncio {
  position: relative;
  overflow: hidden;
  background: #0e0e10;
  color: #ffffff;
  font-size: 13.5px;
  text-align: center;
  padding: 9px 44px;
}
.anuncio b {
  font-weight: 700;
}
@media (max-width: 640px) {
  .anuncio .mais,
  .anuncio::before,
  .anuncio::after {
    display: none;
  }
  .anuncio {
    padding: 9px 16px;
  }
}
.anuncio::before,
.anuncio::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  background:
    radial-gradient(circle at 20% 70%, #6fd3a0 0 3px, transparent 3.5px),
    radial-gradient(circle at 55% 25%, #d9a441 0 3px, transparent 3.5px),
    radial-gradient(circle at 85% 60%, #8f7cf0 0 2.5px, transparent 3px);
  opacity: 0.85;
}
.anuncio::before {
  left: 0;
}
.anuncio::after {
  right: 0;
  transform: scaleX(-1);
}
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px));
}
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: max(16px, calc(50vw - 644px)) !important;
  padding-right: max(16px, calc(50vw - 644px)) !important;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  margin: 0 -16px 26px;
  padding: 16px 16px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line);
}
.marca {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.marca h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  text-transform: lowercase;
}
.marca .loja {
  font-family: var(--script);
  font-size: 30px;
  line-height: 1;
  color: var(--muted);
  -webkit-text-stroke: 0.4px currentColor;
  transition: color 0.4s ease;
}
.marca:hover .loja {
  color: var(--ink);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.grupo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.grupo + .grupo {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
#quem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
}
#quem::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffffff 0 18%, transparent 19%),
    conic-gradient(from 200deg, #6fd3a0, #d9a441, #8f7cf0, #6fd3a0);
}
@media (max-width: 560px) {
  .top .btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .marca h1 {
    font-size: 26px;
  }
}
@media (max-width: 900px) {
  .top {
    position: static;
  }
  .grupo + .grupo {
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------- avisos ---------- */
.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  animation: chega 0.45s var(--ease) both;
}
.banner.info {
  background: var(--info-bg);
  color: var(--info);
}
.banner.ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.banner .btn {
  margin-left: auto;
}

/* ---------- estrutura ---------- */
.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.layout:has(.turnos:empty) {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

/* lista de turnos */
.turnos {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 2px 4px 2px 2px;
}
.turnos:empty {
  display: none;
}
.turnos .lbl {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 0 4px 10px;
}
.tbtn {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 8px;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 16px;
  padding: 11px 14px;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.45s var(--ease);
}
.tbtn:hover {
  background: var(--chip);
  border-color: var(--line);
  transform: translateX(4px);
}
.tbtn[aria-current="true"] {
  background: var(--inv-bg);
  color: var(--inv-ink);
  border-color: var(--inv-bg);
  transform: none;
}
.tbtn.agora {
  animation: realce 0.55s var(--ease) both;
}
.tbtn .d {
  font-weight: 650;
  font-size: 15.5px;
  letter-spacing: -0.01em;
}
.tbtn .s {
  grid-column: 1/-1;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tbtn[aria-current="true"] .s {
  color: color-mix(in srgb, var(--inv-ink) 65%, transparent);
}
.tbtn .pill {
  font-size: 11.5px;
  padding: 2px 9px;
}
.tbtn[aria-current="true"] .pill {
  background: color-mix(in srgb, var(--inv-ink) 14%, transparent);
  color: var(--inv-ink);
}
@media (max-width: 900px) {
  .turnos {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    gap: 8px;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
  }
  .turnos .lbl {
    display: none;
  }
  .tbtn {
    min-width: 200px;
    background: var(--chip);
    border-color: var(--line);
    scroll-snap-align: start;
  }
  .tbtn .d {
    white-space: nowrap;
  }
  .tbtn:hover {
    transform: none;
  }
}

/* etiquetas de situação */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  line-height: 1.4;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.p-pend {
  background: var(--chip);
  color: var(--muted);
}
.p-dif {
  background: var(--bad-bg);
  color: var(--bad);
}
.p-ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.p-fech {
  background: var(--info-bg);
  color: var(--info);
}
.p-parcial {
  background: var(--warn-bg);
  color: var(--warn);
}

/* ---------- turno selecionado ---------- */
.main {
  display: flex;
  flex-direction: column;
  gap: 44px;
  min-width: 0;
}
.main.entra > * {
  animation: sobe 0.6s var(--ease) both;
}
.main.entra > :nth-child(2) {
  animation-delay: 0.05s;
}
.main.entra > :nth-child(3) {
  animation-delay: 0.1s;
}
.main.entra > :nth-child(4) {
  animation-delay: 0.15s;
}
.main.entra > :nth-child(n + 5) {
  animation-delay: 0.2s;
}
.head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 20px;
  align-items: flex-end;
  margin-bottom: -20px;
}
.head h2 {
  font-size: 40px;
  letter-spacing: -0.035em;
}
.head .sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 8px;
}

/* números do turno em cartões escuros */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
.stat {
  position: relative;
  overflow: hidden;
  background: var(--card);
  color: var(--card-ink);
  border-radius: var(--r-lg);
  padding: 20px 20px 18px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.5s var(--ease);
}
.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(160deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(160deg, #000 0%, transparent 70%);
  pointer-events: none;
}
.stat:hover {
  transform: translateY(-3px);
}
.stat .k {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--card-muted);
}
.stat .v {
  white-space: nowrap;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat .x {
  font-size: 12.5px;
  color: var(--card-muted);
  margin-top: 4px;
}

/* seções */
.sec {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sec .lead {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 72ch;
  margin: -6px 0 0;
}

/* tabelas */
.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--sunk);
  white-space: nowrap;
}
th.grp {
  text-align: center;
  border-left: 1px solid var(--line);
  color: var(--ink);
}
td.gl,
th.gl {
  border-left: 1px solid var(--line);
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr {
  transition: background-color 0.25s ease;
}
tbody tr:hover {
  background: var(--sunk);
}
tr:last-child td {
  border-bottom: 0;
}
td.r,
th.r {
  text-align: right;
}
tfoot td {
  font-weight: 700;
  background: var(--sunk);
  border-top: 1px solid var(--line);
}
.who {
  font-weight: 600;
}
.who small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

/* valores digitados */
.money,
input.money {
  width: 104px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  background: var(--sunk);
}
.diff {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.d-ok {
  color: var(--ok);
}
.d-bad {
  color: var(--bad);
}
.d-sob {
  color: var(--info);
}
.d-na {
  color: var(--muted);
}

/* blocos de campos (balcão, iFood, gaveta) */
.gaveta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.field .money {
  width: 100%;
}
.result {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 26px;
  border-top: 1px dashed var(--line-strong);
  padding-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.result b {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.result b.d-ok {
  color: var(--ok);
}
.result b.d-bad {
  color: var(--bad);
}
.result b.d-sob {
  color: var(--info);
}
.result .foot {
  flex-basis: 100%;
}
.subt {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 650;
  grid-column: 1/-1;
  margin: 0;
}
.subt:not(:first-child) {
  margin-top: 6px;
}

/* alertas */
.alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alert {
  background: var(--warn-bg);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
}
.alert.info {
  background: var(--info-bg);
}

/* barra de filtros */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.toolbar select {
  border-radius: 999px;
  padding-left: 14px;
  background: var(--chip);
  border-color: var(--line);
}
.toolbar input[type="search"] {
  flex: 1 1 260px;
  max-width: 360px;
}

/* ajustes */
.cfg {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 28px;
  animation: chega 0.45s var(--ease) both;
}
.cfg .field input {
  width: 110px;
  font-variant-numeric: tabular-nums;
}
.cfg .sec input:not(.money),
.cfg .sec select {
  width: 100%;
  max-width: 280px;
}
.cfg .sec td input:not(.money),
.cfg .sec td select {
  max-width: none;
  min-width: 150px;
}
.cfg .sec + .sec {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

/* tabela dos motoboys */
.tab-moto td,
.tab-moto th {
  padding-left: 7px;
  padding-right: 7px;
}
.tab-moto .money {
  width: 76px;
}
.tab-moto th {
  font-size: 12px;
}
.tab-moto .who {
  min-width: 120px;
  max-width: 170px;
  overflow-wrap: anywhere;
}

/* tela vazia */
.empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}
.empty ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.empty p {
  margin: 0;
}
.foot {
  font-size: 13px;
  color: var(--muted);
}
.drop {
  outline: 2px dashed var(--ink);
  outline-offset: 6px;
  border-radius: var(--r);
}

/* ---------- tela de entrada ---------- */
.entrada {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-bottom: 24px;
}
.palco {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin: -26px calc(50% - 50vw) 0;
  padding: 56px 16px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 76px 76px;
  background-position: center -1px;
}
.palco::before,
.palco::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.palco::before {
  width: 640px;
  height: 640px;
  left: -330px;
  top: -340px;
  background: radial-gradient(circle at 70% 70%, color-mix(in srgb, var(--line-strong) 75%, transparent), var(--bg) 70%);
}
.palco::after {
  width: 560px;
  height: 560px;
  right: -300px;
  bottom: -330px;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--line-strong) 75%, transparent), var(--bg) 70%);
}
.palco > * {
  position: relative;
  z-index: 1;
}
.manuscrito {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(110px, 17vw, 210px);
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--ink);
  -webkit-text-stroke: clamp(2px, 0.35vw, 4px) currentColor;
  margin: 0 0 8px;
  animation: escreve 1.4s var(--ease) both;
}
.palco h2 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--headline);
  max-width: 18ch;
}
.palco h2 em {
  color: var(--ink);
  font-weight: 600;
}
.login {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  animation: sobe 0.7s 0.25s var(--ease) both;
}
.login h3 {
  font-size: 22px;
}
.login .nomes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.login .linha {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: center;
  width: 100%;
}
.login .pin {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}
.login .pin input {
  width: 100%;
  border-radius: 999px !important;
  min-height: 50px;
  padding: 10px 20px 10px 48px !important;
  font-size: 16px;
  letter-spacing: 0.2em;
}
.login .pin::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -9px;
  background: currentColor;
  color: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2.5'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2.5'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E")
    center / contain no-repeat;
  z-index: 1;
}
.login .btn.primary {
  min-height: 50px;
  padding: 12px 30px;
  font-size: 15.5px;
}
.login .aviso {
  color: var(--bad);
  font-weight: 500;
  margin: 0;
}
.login .lead {
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

/* pedidos cancelados ou expirados */
tr.fora td {
  color: var(--muted);
}
tr.fora td.num {
  text-decoration: line-through;
}

/* janelas */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 16, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
  animation: aparece 0.3s ease both;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 40px 80px -30px rgba(14, 14, 16, 0.55);
  padding: 28px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: abre 0.5s var(--ease) both;
}
.modal-box h3 {
  font-size: 24px;
}
.modal-box .actions {
  justify-content: flex-end;
  margin-top: 4px;
}
.mgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .mgrid {
    grid-template-columns: 1fr;
  }
}

/* ---------- movimentos ---------- */
@keyframes sobe {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes chega {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes aparece {
  from {
    opacity: 0;
  }
}
@keyframes abre {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes realce {
  from {
    transform: scale(0.96);
  }
  to {
    transform: none;
  }
}
@keyframes escreve {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 -10% 0 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn:hover,
  .tbtn:hover,
  .chip:hover,
  .stat:hover {
    transform: none;
  }
}
