/* Tour Car Entregas - visual compartilhado (mesma paleta do TourGest: azul-marinho + dourado). */

@font-face { font-family: 'Manrope'; src: url('manrope-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('sora-latin.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --navy: oklch(23% 0.075 258);
  --navy-2: oklch(30% 0.085 258);
  --navy-dark: oklch(17% 0.065 258);
  --gold: oklch(80% 0.155 85);
  --gold-2: oklch(72% 0.15 80);
  --gold-text: oklch(50% 0.12 78);
  --gold-soft: oklch(96% 0.045 88);
  --green: oklch(60% 0.15 150);
  --green-text: oklch(44% 0.12 150);
  --green-soft: oklch(95.5% 0.045 150);
  --blue: oklch(58% 0.16 255);
  --blue-text: oklch(45% 0.15 258);
  --blue-soft: oklch(95.5% 0.03 255);
  --orange: oklch(70% 0.17 55);
  --orange-text: oklch(52% 0.16 48);
  --orange-soft: oklch(96% 0.045 60);
  --red: oklch(58% 0.19 25);
  --red-text: oklch(50% 0.18 25);
  --red-soft: oklch(96% 0.035 25);
  --ink: oklch(22% 0.025 258);
  --ink-2: oklch(42% 0.02 258);
  --ink-3: oklch(58% 0.015 258);
  --line: oklch(91% 0.008 258);
  --bg: oklch(97% 0.006 258);
  --card: #fff;
  --raio: 18px;
  --sombra: 0 1px 2px oklch(20% 0.05 258 / 0.06), 0 6px 20px -8px oklch(20% 0.05 258 / 0.16);
  --sombra-alta: 0 24px 60px -18px oklch(18% 0.06 258 / 0.45);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
h1, h2, h3, .sora { font-family: 'Sora', 'Manrope', sans-serif; margin: 0; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.oculto-acessivel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 800; font-size: 15px;
  background: var(--navy); color: #fff; transition: transform .12s, filter .15s, background .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ouro { background: var(--gold); color: var(--navy-dark); }
.btn-ouro:hover { filter: brightness(1.04); }
.btn-verde { background: var(--green); }
.btn-claro { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-claro:hover { background: var(--bg); }
.btn-vermelho-claro { background: var(--red-soft); color: var(--red-text); }
.btn-fantasma { background: transparent; color: var(--ink-2); padding: 10px 12px; }
.btn-fantasma:hover { background: oklch(94% 0.01 258); }
.btn-bloco { width: 100%; }
.btn-pequeno { padding: 8px 12px; font-size: 13px; border-radius: 11px; }
.btn svg, .icone { width: 18px; height: 18px; flex-shrink: 0; }

.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > span { font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.campo small { color: var(--ink-3); font-size: 12px; }
.entrada {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff;
  font-size: 16px; font-weight: 600; outline: none; transition: border-color .15s, box-shadow .15s;
}
.entrada:focus { border-color: var(--navy-2); box-shadow: 0 0 0 4px oklch(60% 0.1 258 / 0.14); }
textarea.entrada { resize: vertical; min-height: 70px; }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grade-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grade-2, .grade-3 { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; font-weight: 800; font-size: 14px;
  color: var(--ink-2); transition: all .15s;
}
.chip.ativo { border-color: var(--navy); background: var(--navy); color: #fff; }
.segmento { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: oklch(94% 0.01 258); border-radius: 14px; padding: 4px; gap: 4px; }
.segmento button { border: 0; background: transparent; border-radius: 11px; padding: 11px 8px; font-weight: 800; color: var(--ink-2); font-size: 14px; }
.segmento button.ativo { background: #fff; color: var(--ink); box-shadow: 0 1px 3px oklch(20% 0.05 258 / .14); }
.segmento.verde-vermelho button.ativo[data-v="sim"] { background: var(--green); color: #fff; }
.segmento.verde-vermelho button.ativo[data-v="nao"] { background: var(--red); color: #fff; }

/* ---------- etiquetas ---------- */
.etiqueta { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.etiqueta::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.et-aguardando { background: var(--orange-soft); color: var(--orange-text); }
.et-em_rota { background: var(--blue-soft); color: var(--blue-text); }
.et-entregue { background: var(--green-soft); color: var(--green-text); }
.et-cancelada { background: oklch(94% 0.005 258); color: var(--ink-3); }
.et-alerta { background: var(--red-soft); color: var(--red-text); }

/* Pagamento: "Já pago" (verde) x "Cobrar" (dourado). */
.pagamento { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 12px 14px; }
.pagamento .pg-icone { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.pagamento .pg-icone svg { width: 20px; height: 20px; }
.pagamento b { display: block; font-size: 16px; font-family: 'Sora', sans-serif; }
.pagamento small { display: block; font-size: 12.5px; font-weight: 700; opacity: .85; }
.pg-pago { background: var(--green-soft); color: var(--green-text); }
.pg-pago .pg-icone { background: var(--green); color: #fff; }
.pg-cobrar { background: var(--gold-soft); color: oklch(38% 0.09 75); box-shadow: inset 0 0 0 1.5px oklch(85% 0.11 85); }
.pg-cobrar .pg-icone { background: var(--gold); color: var(--navy-dark); }

/* ---------- avisos (toast) ---------- */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); top: max(14px, env(safe-area-inset-top)); z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 28px)); pointer-events: none; }
.toast {
  background: var(--navy-dark); color: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 700; box-shadow: var(--sombra-alta);
  animation: toast-entra .3s cubic-bezier(.2, .9, .3, 1.2); display: flex; gap: 10px; align-items: center; pointer-events: auto;
}
.toast.erro { background: var(--red); }
.toast.sucesso { background: var(--green-text); }
.toast.novo { background: var(--gold); color: var(--navy-dark); }
.toast.saindo { animation: toast-sai .25s ease forwards; }
@keyframes toast-entra { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes toast-sai { to { opacity: 0; transform: translateY(-10px); } }

/* ---------- deslize para confirmar ---------- */
.deslize {
  --progresso: 0;
  position: relative; height: 62px; border-radius: 999px; background: var(--navy); overflow: hidden; user-select: none; touch-action: none;
  box-shadow: inset 0 2px 6px oklch(10% 0.05 258 / .35);
}
.deslize.verde { background: var(--green-text); }
.deslize .ds-preenchido { position: absolute; inset: 0; width: calc(62px + (100% - 62px) * var(--progresso)); background: var(--gold); border-radius: 999px; }
.deslize.verde .ds-preenchido { background: var(--green); }
.deslize .ds-texto {
  position: absolute; inset: 0; display: grid; place-items: center; padding-left: 56px; padding-right: 14px; color: #fff; font-weight: 800; font-size: 15.5px;
  opacity: calc(1 - var(--progresso) * 1.6); pointer-events: none; text-align: center;
}
.deslize .ds-texto span {
  background: linear-gradient(90deg, #fff 0%, #fff 40%, var(--gold) 50%, #fff 60%, #fff 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brilho 2.6s linear infinite;
}
.deslize.verde .ds-texto span { background-image: linear-gradient(90deg, #fff 0%, #fff 40%, oklch(90% 0.12 150) 50%, #fff 60%, #fff 100%); }
@keyframes brilho { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.deslize .ds-botao {
  position: absolute; top: 5px; left: 5px; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--navy);
  display: grid; place-items: center; box-shadow: 0 4px 12px oklch(10% 0.05 258 / .35); border: 0; cursor: grab;
  transform: translateX(calc((var(--largura, 300px) - 62px) * var(--progresso)));
}
.deslize.arrastando .ds-botao { cursor: grabbing; }
.deslize:not(.arrastando) .ds-botao, .deslize:not(.arrastando) .ds-preenchido { transition: transform .35s cubic-bezier(.2, .9, .3, 1.15), width .35s cubic-bezier(.2, .9, .3, 1.15); }
.deslize .ds-botao svg { width: 26px; height: 26px; }
.deslize.feito .ds-botao { color: var(--green-text); }
.deslize.desativado { filter: grayscale(.9); opacity: .5; pointer-events: none; }
.deslize.carregando .ds-botao svg { animation: girar 0.8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- folha de baixo (bottom sheet) / janela ---------- */
.fundo-escuro { position: fixed; inset: 0; background: oklch(15% 0.05 258 / .55); backdrop-filter: blur(3px); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: aparece .2s ease; }
@keyframes aparece { from { opacity: 0; } }
.folha {
  background: #fff; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  animation: sobe .32s cubic-bezier(.2, .9, .3, 1.05); box-shadow: var(--sombra-alta);
}
.folha::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
@keyframes sobe { from { transform: translateY(40%); opacity: .4; } }
@media (min-width: 760px) {
  .fundo-escuro { align-items: center; padding: 20px; }
  .folha { border-radius: 24px; padding-top: 22px; }
  .folha::before { display: none; }
}
.folha-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.folha-topo h2 { font-size: 20px; }
.folha-topo p { margin: 4px 0 0; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.fechar { border: 0; background: oklch(95% 0.008 258); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: var(--ink-2); }
.fechar svg { width: 18px; height: 18px; }
.pilha { display: flex; flex-direction: column; gap: 14px; }

/* Confirmação grande de sucesso */
.sucesso-tela { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: oklch(60% 0.15 150 / .96); color: #fff; animation: aparece .2s; text-align: center; padding: 24px; }
.sucesso-tela .circulo { width: 120px; height: 120px; border-radius: 50%; background: #fff; color: var(--green-text); display: grid; place-items: center; margin: 0 auto 18px; animation: pulo .5s cubic-bezier(.2, 1.4, .4, 1); }
.sucesso-tela svg { width: 64px; height: 64px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: risco .45s .2s ease forwards; }
.sucesso-tela h2 { font-size: 26px; }
.sucesso-tela p { font-weight: 700; opacity: .9; margin: 6px 0 0; }
@keyframes pulo { from { transform: scale(.3); opacity: 0; } }
@keyframes risco { to { stroke-dashoffset: 0; } }

.vazio { text-align: center; padding: 38px 20px; color: var(--ink-3); }
.vazio .vz-icone { width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 24px; display: grid; place-items: center; background: #fff; box-shadow: var(--sombra); color: var(--ink-3); }
.vazio .vz-icone svg { width: 34px; height: 34px; }
.vazio b { display: block; color: var(--ink-2); font-size: 16px; margin-bottom: 4px; font-family: 'Sora', sans-serif; }

.carregando-tela { display: grid; place-items: center; min-height: 60dvh; }
.rodinha { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid var(--line); border-top-color: var(--navy); animation: girar .8s linear infinite; }

/* ================= LOGIN ================= */
.login-fundo {
  min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background:
    radial-gradient(1100px 500px at 110% -10%, oklch(80% 0.155 85 / .28), transparent 60%),
    radial-gradient(800px 600px at -20% 110%, oklch(45% 0.12 258 / .55), transparent 60%),
    linear-gradient(160deg, var(--navy-2), var(--navy-dark));
}
.login-caixa { width: 100%; max-width: 410px; }
.login-marca { display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; margin-bottom: 22px; }
.login-marca img { width: 92px; height: 92px; border-radius: 50%; box-shadow: 0 14px 40px -10px oklch(10% 0.05 258 / .7); margin-bottom: 14px; }
.login-marca h1 { font-size: 26px; }
.login-marca p { margin: 6px 0 0; opacity: .75; font-weight: 600; }
.login-cartao { background: #fff; border-radius: 26px; padding: 24px 22px; box-shadow: var(--sombra-alta); }
.login-cartao h2 { font-size: 19px; margin-bottom: 4px; }
.login-cartao > p { color: var(--ink-2); margin: 0 0 18px; font-size: 14px; font-weight: 600; }
.senha-caixa { position: relative; }
.senha-caixa .entrada { padding-right: 52px; }
.senha-caixa button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; padding: 8px; color: var(--ink-3); }
.senha-caixa button svg { width: 20px; height: 20px; }
.msg-erro { background: var(--red-soft); color: var(--red-text); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 13.5px; }
.login-rodape { text-align: center; color: oklch(100% 0 0 / .55); font-size: 12.5px; margin-top: 18px; font-weight: 600; }

/* ================= MOTOBOY ================= */
.mb-topo {
  background: linear-gradient(165deg, var(--navy-2), var(--navy-dark)); color: #fff;
  padding: calc(14px + env(safe-area-inset-top)) 16px 64px; position: relative; overflow: hidden;
}
.mb-topo::after { content: ''; position: absolute; width: 340px; height: 340px; right: -120px; top: -170px; border-radius: 50%; background: radial-gradient(circle, oklch(80% 0.155 85 / .35), transparent 70%); pointer-events: none; }
.mb-linha { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.mb-linha img { width: 42px; height: 42px; border-radius: 50%; }
.mb-ola { flex: 1; min-width: 0; }
.mb-ola small { display: block; opacity: .7; font-weight: 700; font-size: 12.5px; }
.mb-ola b { display: block; font-family: 'Sora', sans-serif; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-menu-btn { border: 0; width: 42px; height: 42px; border-radius: 14px; background: oklch(100% 0 0 / .12); color: #fff; display: grid; place-items: center; }
.mb-menu-btn svg { width: 22px; height: 22px; }
.ao-vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: oklch(88% 0.12 150); }
.ao-vivo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: oklch(75% 0.17 150); box-shadow: 0 0 0 0 oklch(75% 0.17 150 / .7); animation: pulso 1.8s infinite; }
.ao-vivo.off { color: oklch(85% 0.08 40); }
.ao-vivo.off::before { background: var(--orange); animation: none; }
@keyframes pulso { 70% { box-shadow: 0 0 0 9px oklch(75% 0.17 150 / 0); } 100% { box-shadow: 0 0 0 0 oklch(75% 0.17 150 / 0); } }

.mb-numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 640px; margin: -46px auto 0; padding: 0 16px; position: relative; z-index: 2; }
.mb-num { background: #fff; border-radius: 18px; padding: 12px 12px 11px; box-shadow: var(--sombra); }
.mb-num small { display: block; font-size: 11.5px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.mb-num b { display: block; font-family: 'Sora', sans-serif; font-size: 22px; margin-top: 2px; white-space: nowrap; }
.mb-num.dinheiro b { font-size: 17px; padding-top: 4px; }

.mb-conteudo { max-width: 640px; margin: 0 auto; padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); }
.mb-abas { position: sticky; top: 0; z-index: 5; padding: 10px 0; margin: 0 0 6px; background: var(--bg); }
.mb-abas .segmento button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.contador { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: oklch(88% 0.012 258); color: var(--ink-2); font-size: 12px; display: inline-grid; place-items: center; }
.ativo .contador { background: var(--navy); color: #fff; }
.contador.chamando { background: var(--gold); color: var(--navy-dark); animation: chama 1.2s infinite; }
@keyframes chama { 50% { transform: scale(1.18); } }

.aviso-som { display: flex; align-items: center; gap: 12px; background: var(--gold-soft); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; font-weight: 700; font-size: 13.5px; color: oklch(38% 0.09 75); border: 0; width: 100%; text-align: left; }
.aviso-som svg { width: 22px; height: 22px; flex-shrink: 0; }

.lista { display: flex; flex-direction: column; gap: 14px; }
.entrega { background: var(--card); border-radius: 22px; box-shadow: var(--sombra); overflow: hidden; animation: entra .35s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes entra { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.entrega.nova { box-shadow: 0 0 0 3px var(--gold), var(--sombra); }
.ent-corpo { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.ent-cabeca { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 800; color: var(--ink-3); }
.ent-cabeca .pedido { color: var(--ink-2); background: oklch(95% 0.008 258); padding: 3px 9px; border-radius: 8px; }
.ent-cabeca .tempo { margin-left: auto; }
.ent-cliente { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700; line-height: 1.2; }
.ent-endereco { display: flex; gap: 10px; align-items: flex-start; }
.ent-endereco > svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.ent-endereco b { display: block; font-size: 16px; }
.ent-endereco span { display: block; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.ent-endereco em { display: block; color: var(--ink-3); font-size: 13px; margin-top: 3px; }
.ent-obs { background: oklch(96.5% 0.012 258); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: flex; gap: 8px; }
.ent-obs svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.ent-itens summary { cursor: pointer; font-weight: 800; font-size: 13.5px; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 6px; }
.ent-itens summary::-webkit-details-marker { display: none; }
.ent-itens summary svg { width: 16px; height: 16px; transition: transform .2s; }
.ent-itens[open] summary svg { transform: rotate(90deg); }
.ent-itens pre { font-family: inherit; white-space: pre-wrap; margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); font-weight: 600; line-height: 1.5; }
.ent-rodape { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.ent-atalhos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.atalho { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 14px; background: oklch(96% 0.01 258); color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 800; border: 0; }
.atalho svg { width: 22px; height: 22px; }
.atalho.mapa svg { color: var(--blue); }
.atalho.waze svg { color: oklch(65% 0.13 220); }
.atalho.ligar svg { color: var(--navy-2); }
.atalho.zap svg { color: var(--green); }
.atalho:active { transform: scale(.96); }
.atalho[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.ent-separada { background: var(--gold-soft); color: oklch(40% 0.09 75); font-size: 12.5px; font-weight: 800; padding: 8px 16px; display: flex; align-items: center; gap: 6px; }
.ent-separada svg { width: 16px; height: 16px; }
.link-problema { border: 0; background: transparent; color: var(--ink-3); font-weight: 800; font-size: 13.5px; padding: 6px; align-self: center; text-decoration: underline; text-underline-offset: 3px; }

.feita { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--sombra); }
.feita .ft-check { width: 36px; height: 36px; border-radius: 12px; background: var(--green-soft); color: var(--green-text); display: grid; place-items: center; flex-shrink: 0; }
.feita .ft-check.alerta { background: var(--red-soft); color: var(--red-text); }
.feita .ft-check svg { width: 20px; height: 20px; }
.feita div { flex: 1; min-width: 0; }
.feita b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feita small { display: block; color: var(--ink-3); font-weight: 700; font-size: 12.5px; }
.feita .ft-valor { text-align: right; font-weight: 800; font-size: 14px; white-space: nowrap; }
.feita .ft-valor small { font-weight: 700; }

.receber-grande { text-align: center; padding: 16px; border-radius: 18px; background: var(--gold-soft); }
.receber-grande small { display: block; font-weight: 800; color: oklch(42% 0.09 75); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.receber-grande b { display: block; font-family: 'Sora', sans-serif; font-size: 34px; color: var(--navy-dark); margin: 2px 0; }
.receber-grande span { display: block; font-weight: 700; color: oklch(42% 0.09 75); font-size: 14px; }
.ja-pago { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 18px; background: var(--green-soft); color: var(--green-text); font-weight: 700; }
.ja-pago svg { width: 30px; height: 30px; flex-shrink: 0; }
.ja-pago b { display: block; font-size: 17px; font-family: 'Sora', sans-serif; }

.menu-lista { display: flex; flex-direction: column; gap: 6px; }
.menu-lista button, .menu-lista a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 0; background: oklch(97% 0.006 258); font-weight: 800; text-align: left; text-decoration: none; color: var(--ink); }
.menu-lista svg { width: 20px; height: 20px; color: var(--ink-2); }
.menu-lista .sair { color: var(--red-text); }
.menu-lista .sair svg { color: var(--red-text); }
.interruptor { margin-left: auto; width: 46px; height: 28px; border-radius: 999px; background: oklch(85% 0.01 258); position: relative; transition: background .2s; flex-shrink: 0; }
.interruptor::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.ligado .interruptor { background: var(--green); }
.ligado .interruptor::after { transform: translateX(18px); }

/* ================= ADMIN ================= */
.ad-topo { background: linear-gradient(120deg, var(--navy-dark), var(--navy-2)); color: #fff; position: sticky; top: 0; z-index: 20; }
.ad-topo-dentro { max-width: 1480px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.ad-marca { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; }
.ad-marca img { width: 38px; height: 38px; border-radius: 50%; }
.ad-marca b { font-family: 'Sora', sans-serif; font-size: 17px; display: block; line-height: 1.1; }
.ad-marca small { font-size: 12px; opacity: .7; font-weight: 700; }
.ad-abas { display: flex; gap: 4px; margin-left: 18px; background: oklch(100% 0 0 / .08); border-radius: 12px; padding: 4px; }
.ad-abas button { border: 0; background: transparent; color: oklch(100% 0 0 / .75); font-weight: 800; padding: 8px 14px; border-radius: 9px; font-size: 14px; }
.ad-abas button.ativo { background: #fff; color: var(--navy-dark); }
.ad-topo .espaco { flex: 1; }
.ad-topo .btn-claro { box-shadow: none; }
.ad-dia { background: oklch(100% 0 0 / .1); border: 0; color: #fff; border-radius: 11px; padding: 8px 10px; font-weight: 800; color-scheme: dark; }
.ad-usuario { border: 0; background: oklch(100% 0 0 / .1); color: #fff; border-radius: 12px; padding: 6px 10px 6px 6px; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--gold); color: var(--navy-dark); flex-shrink: 0; font-family: 'Sora', sans-serif; }
.avatar.grande { width: 44px; height: 44px; font-size: 15px; }
.avatar.online { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--green); }

.ad-pagina { max-width: 1480px; margin: 0 auto; padding: 20px; }
.ad-numeros { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 18px; }
.ad-num { background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--sombra); position: relative; overflow: hidden; }
.ad-num small { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.ad-num small i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ad-num b { display: block; font-family: 'Sora', sans-serif; font-size: 30px; margin-top: 6px; line-height: 1.1; white-space: nowrap; }
.ad-num b.menor { font-size: 22px; padding-top: 6px; }
.ad-num span { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 700; margin-top: 2px; }
.ad-num.pisca { animation: pisca-num .9s ease; }
@keyframes pisca-num { 30% { box-shadow: 0 0 0 3px var(--gold), var(--sombra); } }

.ad-motoboys { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: thin; }
.ad-moto { background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--sombra); display: flex; align-items: center; gap: 12px; min-width: 250px; }
.ad-moto b { display: block; font-size: 15px; }
.ad-moto small { display: block; color: var(--ink-3); font-weight: 700; font-size: 12px; }
.ad-moto .stats { display: flex; gap: 12px; margin-left: auto; text-align: center; }
.ad-moto .stats div b { font-family: 'Sora', sans-serif; font-size: 18px; }
.ad-moto .stats div small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }

.ad-grade { display: grid; grid-template-columns: 1fr 1fr 1fr 330px; gap: 16px; align-items: start; }
.coluna { background: oklch(94.5% 0.01 258); border-radius: 22px; padding: 12px; min-height: 240px; }
.coluna-topo { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; }
.coluna-topo h3 { font-size: 15px; }
.coluna-topo .contador { background: #fff; }
.coluna-topo i { width: 10px; height: 10px; border-radius: 50%; }
.coluna .cartoes { display: flex; flex-direction: column; gap: 10px; }
.cartao {
  background: #fff; border-radius: 16px; padding: 13px 14px; box-shadow: 0 1px 2px oklch(20% 0.05 258 / .06); cursor: pointer; border: 0; text-align: left; width: 100%;
  display: flex; flex-direction: column; gap: 7px; transition: transform .15s, box-shadow .15s; animation: entra .35s cubic-bezier(.2, .9, .3, 1.1); border-left: 4px solid transparent;
}
.cartao:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.cartao.st-aguardando { border-left-color: var(--orange); }
.cartao.st-em_rota { border-left-color: var(--blue); }
.cartao.st-entregue { border-left-color: var(--green); }
.cartao.st-cancelada { border-left-color: var(--line); opacity: .7; }
.cartao.chegou { animation: chegou 1.4s ease; }
@keyframes chegou { 0% { box-shadow: 0 0 0 0 var(--gold); transform: scale(.96); } 30% { box-shadow: 0 0 0 4px var(--gold); transform: scale(1.01); } 100% { box-shadow: 0 0 0 0 transparent; } }
.cartao .c-linha { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--ink-3); }
.cartao .c-linha .direita { margin-left: auto; }
.cartao .c-cliente { font-weight: 800; font-size: 15px; color: var(--ink); }
.cartao .c-end { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.cartao .c-pg { font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; border-radius: 8px; padding: 3px 8px; align-self: flex-start; }
.cartao .c-pg.pago { background: var(--green-soft); color: var(--green-text); }
.cartao .c-pg.cobrar { background: var(--gold-soft); color: oklch(42% 0.09 75); }
.cartao .c-pg.alerta { background: var(--red-soft); color: var(--red-text); }
.cartao .c-moto { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; }
.cartao .c-moto .avatar { width: 22px; height: 22px; font-size: 10px; }
.cartao .barra-tempo { height: 5px; border-radius: 9px; background: oklch(94% 0.01 258); overflow: hidden; }
.cartao .barra-tempo i { display: block; height: 100%; background: var(--blue); border-radius: 9px; }
.cartao .barra-tempo i.atrasado { background: var(--orange); }
.coluna .vazio { padding: 28px 10px; font-size: 13.5px; }

.feed { background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--sombra); position: sticky; top: 84px; max-height: calc(100dvh - 104px); overflow-y: auto; }
.feed h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.feed ol { list-style: none; margin: 0; padding: 0; position: relative; }
.feed ol::before { content: ''; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.feed li { position: relative; padding: 0 0 14px 38px; font-size: 13.5px; animation: entra .35s; }
.feed li .bolinha { position: absolute; left: 4px; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 2px currentColor inset; }
.feed li .bolinha svg { width: 11px; height: 11px; }
.feed li b { font-weight: 800; }
.feed li small { display: block; color: var(--ink-3); font-weight: 700; font-size: 12px; margin-top: 1px; }
.ev-criada { color: var(--orange-text); }
.ev-pegou { color: var(--blue-text); }
.ev-entregue { color: var(--green-text); }
.ev-devolvida, .ev-cancelada { color: var(--red-text); }
.ev-editada, .ev-voltou { color: var(--ink-3); }
.feed li > div { color: var(--ink); }

.det-bloco { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.det-bloco h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.det-linha { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.det-linha span { color: var(--ink-3); font-weight: 700; }
.det-linha b { text-align: right; }
.linha-tempo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.linha-tempo li { display: flex; gap: 10px; font-size: 13.5px; }
.linha-tempo li i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; margin-top: 5px; flex-shrink: 0; }
.linha-tempo small { display: block; color: var(--ink-3); font-weight: 700; }
.acoes-linha { display: flex; gap: 10px; flex-wrap: wrap; }
.acoes-linha .btn { flex: 1; }

.equipe { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.painel-branco { background: #fff; border-radius: 22px; padding: 20px; box-shadow: var(--sombra); }
.painel-branco h2 { font-size: 18px; margin-bottom: 4px; }
.painel-branco > p { color: var(--ink-2); font-weight: 600; margin: 0 0 16px; font-size: 14px; }
.pessoa { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pessoa:first-of-type { border-top: 0; }
.pessoa div { flex: 1; min-width: 0; }
.pessoa b { display: block; }
.pessoa small { color: var(--ink-3); font-weight: 700; font-size: 12.5px; }
.pessoa.inativa { opacity: .5; }
.chave-nova { background: var(--navy-dark); color: var(--gold); font-family: ui-monospace, Consolas, monospace; border-radius: 12px; padding: 12px 14px; word-break: break-all; font-size: 13.5px; font-weight: 700; }
.passos { margin: 0; padding-left: 20px; color: var(--ink-2); font-weight: 600; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 1280px) {
  .ad-grade { grid-template-columns: 1fr 1fr 1fr; }
  .feed { grid-column: 1 / -1; position: static; max-height: none; }
  .ad-numeros { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .ad-grade { grid-template-columns: 1fr; }
  .equipe { grid-template-columns: 1fr; }
  .ad-abas { margin-left: 0; }
  .ad-marca div { display: none; }
  .ad-topo-dentro { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .ad-pagina { padding: 16px; }
  .ad-numeros { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ad-num b { font-size: 24px; }
  .so-largo { display: none !important; }
}

/* ajustes */
.segmento button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.linha-tempo li > div { color: var(--ink); }
.pessoa small b { display: inline; }
