/* Sou Auxiliar / Permissionário — estilo comum. Sem fonte externa (funciona sem internet). */
:root {
  --bg: #f3f1ea;
  --card: #ffffff;
  --card-2: #faf9f5;
  --ink: #17171a;
  --ink-2: #3d3c39;
  --muted: #6e6c66;
  --line: #e2dfd5;
  --line-2: #cfcbbf;
  --taxi: #ffc61a;
  --taxi-2: #f2b200;
  --taxi-ink: #1d1600;
  --taxi-soft: #fff4cc;
  --asfalto: #1c1c20;
  --red: #c62828;
  --red-bg: #fdecea;
  --green: #217a2b;
  --green-bg: #e6f4e7;
  --din: #217a2b;
  --car: #1f5fbf;
  --vou: #7b3fb5;
  --focus: #1f5fbf;
  --digito: #1c1c20;
  --digito-borda: #1c1c20;
  --shadow: 0 1px 2px rgba(20, 18, 10, .06), 0 4px 14px rgba(20, 18, 10, .06);
  --radius: 14px;
  --radius-s: 10px;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113; --card: #1b1b1f; --card-2: #222227; --ink: #f2f1ec; --ink-2: #d4d2cb; --muted: #9c9a93;
    --line: #2d2d33; --line-2: #3b3b42; --taxi-soft: #3a3010; --red: #ff6b6b; --red-bg: #3a1a1a;
    --green: #5fd06b; --green-bg: #15301a; --din: #5fd06b; --car: #6aa5ff; --vou: #c49bff; --focus: #6aa5ff;
    --digito: #050506; --digito-borda: #3b3b42;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111113; --card: #1b1b1f; --card-2: #222227; --ink: #f2f1ec; --ink-2: #d4d2cb; --muted: #9c9a93;
  --line: #2d2d33; --line-2: #3b3b42; --taxi-soft: #3a3010; --red: #ff6b6b; --red-bg: #3a1a1a;
  --green: #5fd06b; --green-bg: #15301a; --din: #5fd06b; --car: #6aa5ff; --vou: #c49bff; --focus: #6aa5ff;
  --digito: #050506; --digito-borda: #3b3b42;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
}
button, input, select, textarea { font: inherit; color: inherit; }
.num, .valor, td.n, .linha-total b { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 20; background: var(--asfalto); color: #fff;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
}
.topo::after { /* faixa quadriculada de táxi */
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background: conic-gradient(var(--taxi) 25%, var(--asfalto) 0 50%, var(--taxi) 0 75%, var(--asfalto) 0) 0 0 / 16px 16px;
  background-size: 8px 8px;
}
.topo-linha { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.marca { display: flex; align-items: center; gap: 10px; min-width: 0; }
.marca img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.marca h1 { font-size: 19px; margin: 0; letter-spacing: .2px; white-space: nowrap; }
.marca small { display: block; font-size: 12px; color: #c9c7bf; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo .acao-topo { margin-left: auto; }

main { max-width: 760px; margin: 0 auto; padding: 20px 16px 8px; }

/* ---------- navegação de baixo ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  display: flex; justify-content: center;
}
.nav-dentro { display: flex; width: 100%; max-width: 760px; }
.nav button {
  flex: 1; height: var(--nav-h); border: 0; background: none; color: var(--muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 600;
  position: relative;
}
.nav button svg { width: 24px; height: 24px; }
.nav button[aria-current="page"] { color: var(--ink); }
.nav button[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--taxi-2);
}

/* ---------- blocos ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.card > h2, .secao-titulo { font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-2); }
.secao-titulo .dir, .card > h2 .dir { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); font-size: 14px; }
.dica { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.vazio { text-align: center; color: var(--muted); padding: 24px 8px; }
.vazio b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* ---------- campos ---------- */
.campo { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.campo > span { display: block; margin-bottom: 4px; }
.entrada, .campo input, .campo select, .campo textarea {
  width: 100%; height: 46px; border: 1.5px solid var(--line-2); border-radius: var(--radius-s);
  background: var(--card); padding: 0 12px; font-size: 16px; color: var(--ink); font-weight: 500;
}
.campo textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; font-size: 14px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.campo input:disabled, .campo input[readonly] { background: var(--card-2); color: var(--ink-2); border-style: dashed; }
.campo.erro input, .erro .forma { border-color: var(--red) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 20%, transparent); }
.prefixo { position: relative; }
.prefixo::before { content: attr(data-p); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: 15px; pointer-events: none; }
.prefixo input { padding-left: 38px; }
.senha-grande { font-size: 30px !important; letter-spacing: 14px; text-align: center; height: 64px !important; font-weight: 700 !important; padding-left: 26px !important; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: var(--radius-s); border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink);
  font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform .08s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primario { background: var(--taxi); border-color: var(--taxi-2); color: var(--taxi-ink); }
.btn.primario:hover { background: var(--taxi-2); }
.btn.escuro { background: var(--asfalto); border-color: var(--asfalto); color: #fff; }
:root[data-theme="dark"] .btn.escuro { background: #f2f1ec; color: #111; border-color: #f2f1ec; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.escuro { background: #f2f1ec; color: #111; border-color: #f2f1ec; } }
.btn.zap { background: #1fa855; border-color: #1a9149; color: #fff; }
.btn.perigo { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--line-2)); }
.btn.fantasma { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.grande { min-height: 58px; font-size: 18px; width: 100%; border-radius: var(--radius); }
.btn.largo { width: 100%; }
.btn.peq { min-height: 38px; padding: 0 12px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icone-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.icone-btn:hover { background: var(--card-2); color: var(--ink); }
.icone-btn svg { width: 20px; height: 20px; }
.topo .icone-btn { color: #e8e6df; }
.topo .icone-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.botoes { display: grid; gap: 10px; }
.botoes.dois { grid-template-columns: 1fr 1fr; }

/* ---------- seletor de data / mês ---------- */
.navegador { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.navegador .meio { flex: 1; text-align: center; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; box-shadow: var(--shadow); }
.navegador .meio b { display: block; font-size: 18px; }
.navegador .meio small { display: block; color: var(--muted); font-size: 13px; }
.navegador .meio b::first-letter, .navegador .meio small::first-letter { text-transform: uppercase; }
.navegador .meio input[type="date"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.navegador .seta { width: 46px; height: 58px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.navegador .seta svg { width: 22px; height: 22px; }
.navegador .seta:disabled { opacity: .35; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { background: var(--green-bg); color: var(--green); border-color: transparent; }
.chip.aberto { background: var(--taxi-soft); color: var(--ink); border-color: transparent; }
.chip.ruim { background: var(--red-bg); color: var(--red); border-color: transparent; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- corridas ---------- */
.corridas { display: grid; gap: 10px; }
.corrida {
  display: grid; gap: 8px 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card-2);
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "local local" "valor comissao" "forma forma" "kmi kmf";
  position: relative;
}
.corrida .n {
  position: absolute; top: -9px; left: 10px; background: var(--asfalto); color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 99px; padding: 1px 8px; letter-spacing: .3px;
}
:root[data-theme="dark"] .corrida .n { background: var(--taxi); color: var(--taxi-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .corrida .n { background: var(--taxi); color: var(--taxi-ink); } }
.corrida .c-local { grid-area: local; display: flex; gap: 6px; align-items: end; }
.corrida .c-local .campo { flex: 1; }
.corrida .c-valor { grid-area: valor; }
.corrida .c-com { grid-area: comissao; }
.corrida .c-forma { grid-area: forma; }
.corrida .c-kmi { grid-area: kmi; }
.corrida .c-kmf { grid-area: kmf; }
.saida { height: 46px; display: flex; align-items: center; padding: 0 12px; border-radius: var(--radius-s); background: var(--taxi-soft); font-weight: 700; color: var(--ink); }
.cabecalho-corridas { display: none; }
.corrida .campo.km input { height: 40px; font-size: 15px; }
.corrida .campo.km span::after { content: " (opcional)"; font-weight: 400; }

.forma { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--line-2); border-radius: var(--radius-s); overflow: hidden; background: var(--card); }
.forma button { height: 44px; border: 0; background: transparent; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.forma button + button { border-left: 1.5px solid var(--line-2); }
.forma button i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; }
.forma button[aria-pressed="true"] { color: #fff; }
.forma button[aria-pressed="true"] i { background: #fff; border-color: #fff; }
.forma button[data-f="D"][aria-pressed="true"] { background: var(--din); }
.forma button[data-f="C"][aria-pressed="true"] { background: var(--car); }
.forma button[data-f="V"][aria-pressed="true"] { background: var(--vou); }
:root[data-theme="dark"] .forma button[aria-pressed="true"] { color: #111; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .forma button[aria-pressed="true"] { color: #111; } :root:not([data-theme="light"]) .forma button[aria-pressed="true"] i { background: #111; border-color: #111; } }
.forma button:disabled { cursor: default; }
.fechado .forma button:not([aria-pressed="true"]) { opacity: .4; }

@media (min-width: 940px) {
  main, .topo-linha, .nav-dentro, .abas-senha { max-width: 1060px; }
  .cabecalho-corridas, .corrida { grid-template-columns: minmax(170px, 2.2fr) minmax(120px, 1.2fr) minmax(270px, 2.6fr) minmax(104px, 1fr) minmax(84px, .8fr) minmax(84px, .8fr); grid-template-areas: "local valor forma comissao kmi kmf"; align-items: center; }
  .corrida .saida { white-space: nowrap; font-size: 15px; }
  .cabecalho-corridas { display: grid; gap: 10px; padding: 0 12px 0 12px; margin-bottom: 14px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
  .corrida .campo > span { display: none; }
  .corrida .campo.km input { height: 46px; }
}

/* despesas */
.despesa { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 10px; align-items: end; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.despesa:last-of-type { border-bottom: 0; }

.linha-acoes { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.parcial { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 2px 2px 12px; }
.parcial b { color: var(--ink); }

/* ---------- fechamento ---------- */
.totais { width: 100%; border-collapse: collapse; }
.totais td { padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 16px; }
.totais td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totais tr.forte td { font-size: 18px; font-weight: 800; }
.totais tr.sub td { color: var(--muted); font-size: 14px; padding: 8px 2px; }
.totais tr.sub td:last-child { color: var(--ink-2); font-weight: 600; }
.totais tr:last-child td { border-bottom: 0; }
.totais td .pill { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }

.saldo {
  border: 3px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0 4px; background: var(--card);
  display: grid; gap: 2px;
}
.saldo .rotulo { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.saldo .valor { font-size: 34px; font-weight: 900; line-height: 1.1; letter-spacing: -.5px; }
.saldo .conta { font-size: 13px; color: var(--muted); }
.saldo.devendo { border-color: var(--red); background: var(--red-bg); }
.saldo.devendo .rotulo, .saldo.devendo .valor { color: var(--red); }
.saldo.sobrando { border-color: var(--green); background: var(--green-bg); }
.saldo.sobrando .rotulo, .saldo.sobrando .valor { color: var(--green); }
.saldo .hoje { margin-top: 6px; padding-top: 8px; border-top: 1px dashed color-mix(in srgb, currentColor 25%, transparent); font-size: 14px; color: var(--ink-2); }

/* ---------- calendário ---------- */
.calendario { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.calendario .sem { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; padding-bottom: 4px; }
.calendario button {
  aspect-ratio: 1 / 1; min-height: 38px; border-radius: 10px; border: 1px solid transparent; background: var(--card-2); color: var(--ink);
  font-weight: 700; font-size: 15px; cursor: pointer; position: relative; padding: 0;
}
.calendario button:disabled { background: transparent; color: var(--line-2); cursor: default; }
.calendario button.hoje { border-color: var(--ink); }
.calendario button.fechado { background: var(--green-bg); color: var(--green); }
.calendario button.aberto { background: var(--taxi-soft); }
.calendario button.fechado::after, .calendario button.aberto::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; }
.calendario button.aberto::after { background: var(--taxi-2); }
.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

.lista-dias { display: grid; gap: 0; }
.lista-dias button {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; padding: 12px 4px; border: 0;
  border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; color: var(--ink);
}
.lista-dias button:last-child { border-bottom: 0; }
.lista-dias .dia-n { font-size: 22px; font-weight: 900; text-align: center; line-height: 1; }
.lista-dias .dia-n small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.lista-dias .dia-info small { display: block; color: var(--muted); font-size: 13px; }
.lista-dias .dia-valor { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.lista-dias .dia-valor small { display: block; font-size: 12px; font-weight: 700; }
.lista-dias .dia-valor small.devendo { color: var(--red); }
.lista-dias .dia-valor small.sobrando { color: var(--green); }

/* ---------- tabela detalhada ---------- */
.tabela-rolar { overflow-x: auto; margin: 0 -4px; }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 6px 6px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tabela td { padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabela td.n, .tabela th.n { text-align: right; font-variant-numeric: tabular-nums; }
.tabela tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--line); }

/* ---------- janela (folha que sobe) ---------- */
.fundo-janela { position: fixed; inset: 0; z-index: 60; background: rgba(10, 10, 12, .55); display: flex; align-items: flex-end; justify-content: center; animation: aparecer .15s ease; }
.janela {
  background: var(--bg); width: 100%; max-width: 560px; max-height: 94vh; overflow: auto; border-radius: 20px 20px 0 0;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom)); animation: subir .2s ease; overscroll-behavior: contain;
}
.janela-topo { position: sticky; top: 0; background: var(--bg); padding: 14px 0 10px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.janela-topo h2 { margin: 0; font-size: 19px; flex: 1; }
.janela-topo h2 small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.janela .pegador { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 8px auto 0; }
@media (min-width: 640px) { .fundo-janela { align-items: center; } .janela { border-radius: 20px; } .janela .pegador { display: none; } }
@keyframes subir { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fundo-janela, .janela { animation: none; } .btn { transition: none; } }

/* aviso rápido */
.aviso {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px); transform: translateX(-50%);
  background: var(--asfalto); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); z-index: 80; max-width: calc(100vw - 32px); width: max-content; text-align: center;
  animation: avisoSobe .2s ease;
}
@keyframes avisoSobe { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.aviso.ruim { background: var(--red); }
.aviso.bom { background: #1a7a2a; }

/* entrada */
.entrada-tela { max-width: 440px; margin: 0 auto; padding: 28px 16px 40px; }
.entrada-logo { text-align: center; margin-bottom: 20px; }
.entrada-logo img { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); }
.entrada-logo h1 { font-size: 28px; margin: 12px 0 2px; }
.entrada-logo p { color: var(--muted); margin: 0; }
.convite-card { background: var(--taxi-soft); border: 1.5px solid var(--taxi-2); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.convite-card b { font-size: 16px; }
.pilha { display: grid; gap: 14px; }
.msg-erro { color: var(--red); font-weight: 600; font-size: 14px; min-height: 1em; margin: 0; }

/* barra de abas por senha (permissionário) */
.abas-senha { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 2px; max-width: 760px; margin: 0 auto; scrollbar-width: none; }
.abas-senha::-webkit-scrollbar { display: none; }
.abas-senha button {
  flex: none; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); border-radius: 99px; padding: 7px 14px;
  font-weight: 700; font-size: 14px; cursor: pointer; display: flex; gap: 6px; align-items: center;
}
.abas-senha button small { color: var(--muted); font-weight: 600; letter-spacing: 1px; }
.abas-senha button[aria-current="true"] { background: var(--taxi); border-color: var(--taxi-2); color: var(--taxi-ink); }
.abas-senha button[aria-current="true"] small { color: var(--taxi-ink); opacity: .75; }
.abas-senha .nova { border-style: dashed; color: var(--muted); }

.senha-exposta { display: flex; align-items: center; gap: 14px; }
.senha-exposta .digitos { display: flex; gap: 6px; }
.senha-exposta .digitos span { width: 36px; height: 48px; border-radius: 10px; background: var(--digito); color: var(--taxi); font-size: 27px; font-weight: 900; display: grid; place-items: center; font-variant-numeric: tabular-nums; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35); border: 1px solid var(--digito-borda); }
@media (min-width: 420px) { .senha-exposta .digitos span { width: 42px; height: 54px; font-size: 30px; } }
.senha-exposta .info { min-width: 0; }
.senha-exposta .info b { font-size: 18px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.senha-exposta .info small { color: var(--muted); font-size: 13px; }

.segmentado { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--line-2); border-radius: var(--radius-s); overflow: hidden; }
.segmentado button { height: 44px; border: 0; background: var(--card); font-weight: 800; cursor: pointer; color: var(--muted); }
.segmentado button + button { border-left: 1.5px solid var(--line-2); }
.segmentado button[aria-pressed="true"] { background: var(--taxi); color: var(--taxi-ink); }

.grafico { width: 100%; height: 220px; display: block; }
.motorista { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.motorista:last-child { border-bottom: 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--taxi); color: var(--taxi-ink); display: grid; place-items: center; font-weight: 900; font-size: 17px; flex: none; }
.motorista .info { flex: 1; min-width: 0; }
.motorista .info small { display: block; color: var(--muted); font-size: 13px; }
.vagas { display: flex; gap: 6px; }
.vagas i { width: 22px; height: 8px; border-radius: 4px; background: var(--line); }
.vagas i.usada { background: var(--taxi-2); }

details.det { border-top: 1px solid var(--line); }
details.det:first-of-type { border-top: 0; }
details.det summary { list-style: none; cursor: pointer; padding: 12px 2px; display: flex; align-items: center; gap: 10px; }
details.det summary::-webkit-details-marker { display: none; }
details.det summary .dir { margin-left: auto; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
details.det summary .dir small { display: block; font-size: 12px; }
details.det[open] summary { color: var(--ink); }
details.det .corpo { padding: 0 0 14px; }

.rodape-sobre { text-align: center; color: var(--muted); font-size: 12px; padding: 8px 0 0; }
.so-tela-larga { display: none; }
@media (min-width: 720px) { .so-tela-larga { display: initial; } }
@media print { .nav, .topo .acao-topo, .btn { display: none !important; } body { padding: 0; } }

/* barra fixa do dia: total ao vivo + Fechar dia sempre à mão */
.barra-fechar {
  position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); z-index: 10;
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  background: var(--card); border: 1.5px solid var(--taxi-2); border-radius: var(--radius);
  padding: 10px 10px 10px 16px; margin: 4px 0 14px; box-shadow: 0 8px 28px rgba(20, 18, 10, .16);
}
.barra-fechar.feito { border-color: var(--green); }
.barra-fechar .parcial { display: block; padding: 0; font-size: 13px; line-height: 1.25; }
.barra-fechar .parcial small { display: block; color: var(--muted); }
.barra-fechar .parcial small b { color: var(--ink-2); }
.barra-fechar .parcial .grande { display: block; font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing: -.3px; }
.barra-fechar .btn { min-height: 54px; padding: 0 18px; font-size: 17px; border-radius: 12px; }
/* ícones de app com borda fina (o ícone escuro some no fundo escuro sem ela) */
.marca img, .entrada-logo img, .app-card img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
