/* =====================================================================
   Identidade v3 — fundo preto, vidro com gradiente, pílulas, números finos
   (inspirada no modelo "Credit Dashboard"; fonte Red Hat Display)
   ===================================================================== */
:root {
  --bg: #000; --text: #f4f6f8; --muted: #7d8590; --soft: #a9b0ba;
  --glass: rgba(255,255,255,.035); --glass-2: rgba(255,255,255,.065); --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --accent: #27e68a; --accent-ink: #03170d; --accent-soft: rgba(39,230,138,.14);
  --ok: #27e68a; --warn: #ffc83d; --bad: #ff4d5e; --info: #4da3ff; --violet: #a66bff; --teal: #19c3d6;
  --grad-blue: linear-gradient(155deg, #0c4a8a 0%, #0a2a57 38%, #071a38 62%, #3a1638 100%);
  --grad-warm: linear-gradient(160deg, #0b2a52 0%, #2a1740 55%, #5a1d33 100%);
  --rainbow: linear-gradient(90deg, #ff3b4a 0%, #ff9a3d 22%, #ffd93d 42%, #27e68a 64%, #2f8cff 100%);
  --r: 28px; --r-md: 20px; --gap: 18px; --rail: 92px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: 'Red Hat Display', system-ui, sans-serif; font-weight: 300; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background: radial-gradient(1000px 520px at 88% -8%, rgba(18,86,170,.28), transparent 60%), radial-gradient(800px 500px at -5% 105%, rgba(110,25,60,.22), transparent 60%), #000; background-attachment: fixed; }
h1, h2, h3 { font-weight: 400; margin: 0; letter-spacing: -.015em; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 300; line-height: 1.05; }
h1 .dim, .dim { color: var(--soft); }
h2 { font-size: 20px; } h3 { font-size: 12px; color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.num, td.r, .kpi b { font-variant-numeric: tabular-nums; }
.ico { flex: none; }
.muted { color: var(--muted); } .sub { color: var(--muted); margin-top: 4px; font-size: 14px; }
.strong { font-weight: 500; color: #fff; }

/* ---------- casca do painel ---------- */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 26px 0 22px; }
.logo { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; text-decoration: none; }
.logo b { width: 34px; height: 34px; border-radius: 12px; background: conic-gradient(from 210deg, var(--accent), var(--info), var(--violet), var(--accent)); display: block; position: relative; }
.logo b::after { content: ''; position: absolute; inset: 7px; border-radius: 8px; background: #000; }
.rail-box { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.rb { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid transparent; color: var(--c, var(--soft)); cursor: pointer; text-decoration: none; transition: .2s; }
.rb:hover { background: rgba(255,255,255,.09); }
.rb.on { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.rail .push { margin-top: auto; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(140deg, #1d6df2, #a66bff); display: grid; place-items: center; font-weight: 500; color: #fff; flex: none; font-size: 17px; }
.main { padding: 22px clamp(16px, 2.6vw, 40px) 90px 8px; min-width: 0; max-width: 1560px; }

/* barra superior: cápsula de pílulas */
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; flex-wrap: wrap; }
.pills { display: flex; gap: 6px; padding: 7px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills a { color: var(--soft); text-decoration: none; padding: 10px 20px; border-radius: 999px; font-size: 14px; white-space: nowrap; display: flex; align-items: center; gap: 8px; border: 1px solid transparent; transition: .2s; }
.pills a:hover { color: #fff; background: rgba(255,255,255,.05); }
.pills a.on { color: #fff; border-color: rgba(39,230,138,.55); box-shadow: 0 0 22px rgba(39,230,138,.16), inset 0 0 14px rgba(39,230,138,.08); background: rgba(39,230,138,.05); }
.pills .cnt { background: var(--bad); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 500; padding: 0 7px; min-width: 18px; text-align: center; }
.sep { width: 1px; background: var(--line); margin: 6px 4px; }
.topbar .tools { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.top { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.top .tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#page-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#page-tools .inp { width: 260px; max-width: 100%; }

/* ---------- controles ---------- */
.btn { border: 1px solid var(--line-2); background: var(--glass-2); border-radius: 999px; padding: 10px 20px; cursor: pointer; font-weight: 400; white-space: nowrap; transition: .2s; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.btn:hover:not(:disabled) { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: #fff; color: #000; border-color: #fff; font-weight: 500; }
.btn.primary:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.btn.danger { border-color: rgba(255,77,94,.4); color: var(--bad); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 14px; font-size: 13px; }
.btn.lg { padding: 15px 30px; font-size: 16px; }
.icon-btn { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 8px; }
.inp { width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; transition: .2s; }
.inp::placeholder { color: #566; }
.inp:focus { outline: none; border-color: rgba(39,230,138,.6); box-shadow: 0 0 0 4px rgba(39,230,138,.1); }
.btn:focus-visible, .pills a:focus-visible, .tab:focus-visible, .rb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.inp option { background: #111; }
textarea.inp { border-radius: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .lbl { color: var(--soft); font-size: 13px; padding-left: 4px; }
.field .hint { color: var(--muted); font-size: 12.5px; padding-left: 4px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; user-select: none; background: rgba(255,255,255,.03); }
.check input { accent-color: var(--accent); }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; max-width: 100%; }
.tab { background: none; border: 1px solid transparent; color: var(--soft); padding: 8px 18px; cursor: pointer; border-radius: 999px; white-space: nowrap; }
.tab.on { color: #fff; border-color: rgba(39,230,138,.5); background: rgba(39,230,138,.06); }
.tab .cnt { margin-left: 8px; color: var(--muted); font-size: 12px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.seg button { background: none; border: 1px solid transparent; padding: 6px 16px; color: var(--soft); cursor: pointer; font-size: 13px; white-space: nowrap; border-radius: 999px; }
.seg button.on { color: #fff; border-color: rgba(39,230,138,.5); background: rgba(39,230,138,.06); }
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 12px; font-size: 12.5px; background: rgba(255,255,255,.04); }
.chip.good { color: var(--accent); border-color: rgba(39,230,138,.4); } .chip.bad { color: var(--bad); border-color: rgba(255,77,94,.4); }

/* ---------- cartões ---------- */
.card, .kpi, .kpi2 { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.card + .card, .section + .section { margin-top: var(--gap); }
.stack > .card, .metrics2 > .card, .cols > .card, .feat > .card, .plans > .card, .steps > .card, .contact > .card { margin-top: 0 !important; }
.card.grad { background: var(--grad-blue); border-color: rgba(120,170,255,.18); }
.card.warm { background: var(--grad-warm); border-color: rgba(200,120,200,.16); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { font-weight: 300; font-size: 24px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--gap); }
.kpi { padding: 20px 24px; } .kpi span { color: var(--muted); font-size: 13px; } .kpi b { display: block; font-size: 32px; font-weight: 300; margin-top: 4px; } .kpi small { color: var(--muted); }
.kpi.hot { border-color: rgba(39,230,138,.35); } .kpi.hot b { color: var(--accent); }
.kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.cols > .card { margin-top: 0; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
td.r, th.r { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: rgba(255,255,255,.035); }
.badge { display: inline-block; padding: 2px 12px; border-radius: 99px; font-size: 12.5px; border: 1px solid; white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: rgba(39,230,138,.4); } .badge.warn { color: var(--warn); border-color: rgba(255,200,61,.4); }
.badge.bad { color: var(--bad); border-color: rgba(255,77,94,.4); } .badge.info { color: var(--info); border-color: rgba(77,163,255,.4); } .badge.mute { color: var(--muted); border-color: var(--line-2); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px 12px; color: var(--muted); text-align: center; }
.empty strong { color: var(--text); font-weight: 400; }
.skeleton { display: grid; gap: 14px; } .skeleton i { height: 90px; border-radius: var(--r); background: linear-gradient(90deg, var(--glass), var(--glass-2), var(--glass)); background-size: 200% 100%; animation: sh 1.4s infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.lead { margin: 0; color: var(--text); }
.notice { border: 1px solid rgba(255,200,61,.35); background: rgba(255,200,61,.06); color: #f3dc9b; border-radius: 20px; padding: 12px 18px; margin-bottom: 16px; }
.notice.info { border-color: rgba(77,163,255,.35); background: rgba(77,163,255,.07); color: #bcd9fb; }
.rows { display: grid; gap: 14px; } .row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.row .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); } .row .bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.docs { display: flex; flex-wrap: wrap; gap: 6px; } .btn.doc { padding: 6px 14px; font-size: 13px; }

/* ---------- dashboard (3 colunas) ---------- */
.dash3 { display: grid; grid-template-columns: minmax(290px, 350px) minmax(0, 1fr) minmax(300px, 380px); gap: var(--gap); align-items: start; }
.stack { display: grid; gap: var(--gap); min-width: 0; }
.hello { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hello .avatar { width: 54px; height: 54px; font-size: 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 8px; }
.chips button { background: var(--glass); border: 1px solid var(--line); padding: 9px 18px; border-radius: 999px; color: var(--soft); cursor: pointer; font-size: 13.5px; }
.chips button.on { color: #fff; border-color: rgba(39,230,138,.55); background: rgba(39,230,138,.05); }
.score { padding: 26px 26px 0; overflow: hidden; position: relative; }
.score .big { font-size: 92px; font-weight: 300; letter-spacing: -.04em; line-height: 1; display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.score .big small { font-size: 13px; color: var(--accent); letter-spacing: 0; padding-bottom: 54px; }
.score .when { position: absolute; right: 26px; top: 26px; text-align: right; font-size: 12.5px; color: var(--soft); }
.score .lvl { font-size: 17px; color: var(--soft); margin: 2px 0 26px; }
.rainbow { height: 22px; margin: 0 -26px; background: var(--rainbow); position: relative; filter: saturate(1.1); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 70%); mask-image: linear-gradient(180deg, transparent 0, #000 70%); }
.rainbow i { position: absolute; top: -34px; bottom: 0; width: 2px; background: rgba(255,255,255,.8); }
.metric { display: grid; gap: 22px; align-content: space-between; min-height: 190px; padding: 22px 24px; }
.metric .mi { display: flex; align-items: center; gap: 14px; font-size: 19px; line-height: 1.15; min-width: 0; }
.metric .mi .ib { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.07); display: grid; place-items: center; color: var(--soft); flex: none; }
.metric .mv { display: flex; justify-content: space-between; align-items: flex-end; }
.metric .mv b { font-size: 46px; font-weight: 300; letter-spacing: -.03em; line-height: 1; } .metric .mv b small { font-size: 22px; color: var(--soft); }
.dots { display: flex; gap: 6px; align-items: center; font-size: 10px; color: var(--muted); } .dots i { width: 7px; height: 7px; border-radius: 50%; background: #3c444c; } .dots i.g { background: var(--accent); box-shadow: 0 0 8px var(--accent); } .dots i.r { background: var(--bad); }
.metrics2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.acc { padding: 0; overflow: hidden; }
.acc-h { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px; font-size: 18px; cursor: default; }
.acc-h .count { background: var(--bad); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 500; }
.acc-b { padding: 0 26px 22px; display: grid; gap: 4px; }
.li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14.5px; } .li:last-child { border: 0; }
.big-money { font-size: 64px; font-weight: 300; letter-spacing: -.03em; line-height: 1.05; }
.pbar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); position: relative; margin: 20px 0 8px; }
.pbar i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: linear-gradient(90deg, #ff4d5e, #ffc83d); }
.pbar::after { content: ''; position: absolute; top: -10px; bottom: -10px; width: 2px; background: #fff; left: var(--p, 50%); opacity: .8; }
.axis2 { display: flex; justify-content: space-between; font-size: 12px; color: var(--soft); }
.motiv { font-size: 15.5px; color: #fff; line-height: 1.45; }
.motiv b { font-weight: 500; color: var(--accent); }
.dim-label { font-size: 12.5px; color: var(--soft); text-align: right; }
.rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.rcard { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 26px; padding: 18px 20px; display: grid; gap: 14px; }
.rcard .t { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rcard .v { font-size: 34px; font-weight: 300; letter-spacing: -.02em; }
.rcard .a { font-size: 15px; } .rcard .m { font-size: 12px; color: var(--muted); }

/* ---------- linha do tempo (meses) ---------- */
.tl-tabs { display: flex; gap: 22px; align-items: baseline; margin-bottom: 14px; flex-wrap: wrap; }
.tl-tabs button { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 0 0 6px; border-bottom: 1px solid transparent; }
.tl-tabs button.on { color: #fff; font-size: 30px; font-weight: 300; border-bottom-color: var(--line-2); padding-bottom: 8px; }
.tl-year { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 14px; font-size: 20px; } .tl-year small { color: var(--muted); font-size: 12px; text-align: right; line-height: 1.3; }
.tl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.mo { border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); padding: 10px 0 8px; display: grid; justify-items: center; gap: 8px; font-size: 12.5px; color: var(--soft); min-height: 84px; position: relative; cursor: default; transition: .2s; }
.mo:hover { border-color: var(--line-2); background: rgba(255,255,255,.07); transform: translateY(-2px); }
.mo.ok { border-color: rgba(39,230,138,.35); } .mo.no { border-color: rgba(255,77,94,.3); } .mo.off { opacity: .45; background: transparent; border-style: dashed; }
.mo .st { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: transparent; color: #000; }
.mo.ok .st { background: #27e68a; box-shadow: 0 0 16px rgba(39,230,138,.45); } .mo.no .st { background: #ff4d5e; box-shadow: 0 0 16px rgba(255,77,94,.4); }
.mo .st svg { stroke-width: 3; }
.mo-tip { position: fixed; z-index: 70; background: #0b0f14; border: 1px solid var(--line-2); border-radius: 16px; padding: 10px 14px; font-size: 13px; pointer-events: none; box-shadow: 0 14px 40px rgba(0,0,0,.6); }
.dock { position: sticky; bottom: 18px; display: flex; justify-content: center; margin-top: 22px; z-index: 5; }
.dock .in { display: flex; gap: 6px; padding: 7px; border-radius: 999px; background: rgba(20,24,30,.85); backdrop-filter: blur(20px); border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0,0,0,.55); flex-wrap: wrap; justify-content: center; }
.dock .btn { border-color: transparent; background: transparent; padding: 10px 18px; }
.dock .btn:first-child { background: #fff; color: #000; font-weight: 500; }

/* ---------- gráficos interativos ---------- */
.chart-card { padding: 26px 26px 20px; }
.area-wrap { position: relative; height: 280px; margin-left: 38px; cursor: crosshair; touch-action: pan-y; }
.area { width: 100%; height: 100%; display: block; }
.yl { position: absolute; left: -38px; font-size: 11.5px; color: var(--muted); transform: translateY(-50%); width: 32px; text-align: right; }
.vline { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.25); pointer-events: none; }
.dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #000; border: 2px solid var(--c, #fff); pointer-events: none; box-shadow: 0 0 12px var(--c); }
.tip { position: absolute; top: 6px; transform: translateX(16px); background: rgba(8,12,18,.94); border: 1px solid var(--line-2); border-radius: 18px; padding: 10px 14px; font-size: 13px; min-width: 170px; pointer-events: none; box-shadow: 0 14px 40px rgba(0,0,0,.6); z-index: 3; }
.tip.flip { transform: translateX(calc(-100% - 16px)); }
.tip b { font-weight: 500; } .tip div { display: flex; align-items: center; gap: 8px; color: var(--soft); } .tip div b { margin-left: auto; color: #fff; padding-left: 16px; }
.tip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--c); }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin: 10px 0 0 38px; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.legend button { display: inline-flex; align-items: center; gap: 8px; background: var(--glass); border: 1px solid var(--line); color: var(--soft); padding: 6px 14px; border-radius: 99px; cursor: pointer; font-size: 13px; }
.legend button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.legend button.off { opacity: .4; text-decoration: line-through; }
.donut-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: center; }
.donut { width: 200px; height: 200px; } .donut path { cursor: pointer; transition: opacity .2s, transform .2s; transform-origin: 50% 50%; } .donut path.dim { opacity: .25; } .donut path.hot { transform: scale(1.04); }
.donut text { fill: #fff; font-weight: 300; }
.dl { display: grid; gap: 6px; } .dl button { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; background: none; border: 0; color: var(--soft); text-align: left; padding: 7px 10px; border-radius: 14px; cursor: pointer; } .dl button:hover, .dl button.hot { background: rgba(255,255,255,.06); color: #fff; } .dl i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.hbars { display: grid; gap: 14px; } .hbars .hb { display: grid; grid-template-columns: 130px 1fr 90px; gap: 12px; align-items: center; cursor: pointer; font-size: 14px; } .hbars .tr { height: 14px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; } .hbars .tr i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 55%, #fff)); transition: width .5s; } .hbars .hb:hover .tr { background: rgba(255,255,255,.14); }

/* ---------- modal e toast ---------- */
dialog.modal { background: #0a0d12; background-image: var(--grad-warm); color: var(--text); border: 1px solid var(--line-2); border-radius: 30px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto; }
dialog.modal.wide { width: min(820px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(10,13,18,.92); backdrop-filter: blur(10px); z-index: 2; }
.modal-head h2 { font-weight: 300; font-size: 26px; }
.modal-body { padding: 24px 26px 26px; display: grid; gap: 16px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.step-h { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-top: 6px; }
.catgrid { display: flex; gap: 8px; flex-wrap: wrap; }
.stars { color: var(--warn); letter-spacing: 2px; }
.cmt { padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: grid; gap: 4px; font-size: 14px; }
#toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 90; max-width: calc(100vw - 32px); }
.toast { background: rgba(12,16,22,.96); border: 1px solid var(--line-2); border-left: 3px solid var(--ok); border-radius: 18px; padding: 12px 18px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.toast.bad { border-left-color: var(--bad); }


/* ---------- responsivo ---------- */
@media (max-width: 1620px) { .dash3 { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); } .dash3 > .stack.side { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding-bottom: 80px; }
  .rail { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: 10px; top: auto; height: auto; flex-direction: row; padding: 8px 12px; gap: 8px; border-radius: 999px; background: rgba(14,18,24,.92); backdrop-filter: blur(20px); border: 1px solid var(--line-2); justify-content: space-between; }
  .rail .logo { display: none; } .rail-box { flex-direction: row; padding: 0; border: 0; background: none; gap: 6px; } .rail .push { margin: 0; flex-direction: row; } .rb, .avatar { width: 42px; height: 42px; }
  .main { padding: 16px 14px 24px; }
  .dash3, .cols, .grid2, .grid3, .metrics2 { grid-template-columns: minmax(0, 1fr); } .dash3 > .stack.side { grid-template-columns: minmax(0, 1fr); }
  .kpis.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv { grid-template-columns: 1fr; gap: 0; } .kv dt { margin-top: 10px; }
  .hide-sm { display: none; } td, th { padding-left: 6px; padding-right: 6px; }
  .tl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .score .big { font-size: 74px; } .big-money { font-size: 48px; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; } .hbars .hb { grid-template-columns: 90px 1fr 70px; }
  .area-wrap { height: 210px; } .topbar { margin-bottom: 22px; } #page-tools .inp { width: 100%; flex: 1 1 100%; } .top .tools, #page-tools { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .skeleton i, .mo, .btn { animation: none; transition: none; } }

/* barras de rolagem invisíveis (a rolagem continua funcionando) */
html, body, .modal, .modal-body, .tbl-wrap, * { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* corrida: passageiro e motorista com foto */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.pcard { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.pav { position: relative; width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(140deg, #1d6df2, #a66bff); font-size: 24px; font-weight: 500; color: #fff; }
.pav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* dashboard ampliado */
.mini4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--gap); }
.mini { display: flex; gap: 14px; align-items: center; padding: 18px 20px; }
.mini .ib { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); flex: none; }
.mini b { display: block; font-size: 28px; font-weight: 300; line-height: 1.1; }
.hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; align-items: end; height: 130px; margin-top: 8px; }
.hc { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.hc i { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #4da3ff, #2a5fd0); display: block; }
.hc span { position: absolute; bottom: -18px; font-size: 10px; color: var(--muted); }
.hours { margin-bottom: 18px; }

/* =====================================================================
   v4 — tudo na tela (sem rolar), cabeçalho único, painel da direita,
   contornos em degradê (rosa → roxo → azul)
   ===================================================================== */
:root { --o-main: linear-gradient(90deg, rgba(255,77,58,.8) 0%, rgba(255,180,0,.8) 30%, rgba(39,230,138,.8) 62%, rgba(59,130,246,.8) 100%); --o-old: linear-gradient(90deg, rgba(255,77,58,.8) 0%, rgba(255,180,0,.8) 30%, rgba(39,230,138,.8) 62%, rgba(59,130,246,.8) 100%); --outline: var(--o-main); --fill: #090c11; }

/* contornos em degradê: cartões, linhas, campos, botões */
.card, .kpi, .kpi2, .rcard, .pcard, .pills, .seg, .tabs, .inp, .chips button, .btn:not(.primary):not(.danger):not(.ghost), .btn.ghost, .cmt, .check, .mo-tip, .tip {
  border: 1px solid transparent;
  background: linear-gradient(var(--fill), var(--fill)) padding-box, var(--outline) border-box;
}
.card.grad { background: var(--grad-blue) padding-box, var(--outline) border-box; }
.card.warm { background: var(--grad-warm) padding-box, var(--outline) border-box; }
.rcard, .pcard, .cmt, .check { background: linear-gradient(#0d1118, #0d1118) padding-box, var(--outline) border-box; border-color: transparent; opacity: 1; }
.rcard, .pcard { border-radius: 22px; }
.btn.ghost { color: var(--text); }
.pills a.on { border-color: transparent; background: linear-gradient(#10151c, #10151c) padding-box, var(--outline) border-box; box-shadow: 0 0 20px rgba(39,230,138,.2); }
.chips button.on, .tab.on, .seg button.on { border-color: transparent; background: linear-gradient(#10151c, #10151c) padding-box, var(--outline) border-box; }
.inp:focus { border-color: transparent; box-shadow: 0 0 0 3px rgba(39,230,138,.16); }
.btn.primary { background: linear-gradient(#fff, #fff) padding-box, var(--outline) border-box; border: 1px solid transparent; }
.btn.primary:hover:not(:disabled) { background: linear-gradient(var(--accent), var(--accent)) padding-box, var(--outline) border-box; border-color: transparent; }
.card.mini, .card.metric { border-radius: 22px; }

/* cabeçalho único: logo, título pequeno, menu, região/sair/avatar */
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.topbar h1 { font-size: clamp(20px, 1.6vw, 26px); font-weight: 300; white-space: nowrap; line-height: 1.1; }
.topbar .logo { width: 38px; height: 38px; flex: none; }
.topbar .tools { margin-left: auto; display: flex; gap: 10px; align-items: center; flex: none; }
.topbar .tools .inp { width: 170px; padding: 9px 36px 9px 14px; }
.topbar .rb, .topbar .avatar { width: 40px; height: 40px; font-size: 15px; }
.topbar .rb.out { border: 1px solid rgba(255,77,94,.45); }
.topbar .btn { padding: 8px 16px; font-size: 13.5px; }
.pills { padding: 5px; }
.pills a { padding: 8px 16px; font-size: 13.5px; }
.top { margin-bottom: 14px; justify-content: flex-end; } .top:has(#page-tools:empty) { display: none; }
.main { padding: 16px clamp(14px, 2vw, 32px) 28px; max-width: none; }
.dbox { min-width: 0; }
.scroll { min-height: 0; }
.ins3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.pane { border-radius: var(--r); background: linear-gradient(var(--fill), var(--fill)) padding-box, var(--outline) border-box; border: 1px solid transparent; min-width: 0; display: flex; flex-direction: column; overflow: hidden; container: pane / inline-size; }
.pane-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pane-head h2 { font-weight: 300; font-size: 26px; margin-right: auto; }
.pane-head #page-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pane-head #page-tools:empty { display: none; }
.pane-head #page-tools .inp { width: 200px; }
.pane-body { padding: 16px 20px 22px; min-height: 0; flex: 1; overflow: auto; }
.pane .card { padding: 18px; }
@container pane (max-width: 760px) {
  .hide-sm { display: none; } .grid2, .grid3, .cols { grid-template-columns: minmax(0, 1fr); } .kpis.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  td, th { padding-left: 8px; padding-right: 8px; } .tabs { max-width: 100%; }
}

@media (min-width: 1200px) and (min-height: 600px) {
  html:has(body.is-panel), body.is-panel { height: 100%; overflow: hidden; }
  body.is-panel #app, .shell { height: 100vh; min-height: 0; display: block; }
  .main { height: 100%; display: flex; flex-direction: column; padding: 14px clamp(14px, 1.5vw, 26px) 16px; }
  .topbar { flex: none; flex-wrap: nowrap; margin-bottom: 14px; }
  .pills { flex: 1 1 auto; min-width: 0; }
  .pills a { padding: 8px 14px; }
  .top { flex: none; }
  #page-body { flex: 1; min-height: 0; overflow: auto; }
  .dbox, .dash3 { height: 100%; }
  .dash3 { grid-template-columns: clamp(250px, 16vw, 320px) minmax(0, 1fr) clamp(340px, 25vw, 500px); grid-template-rows: minmax(0, 1fr); gap: 14px; align-items: stretch; }
  .dash3.withpane { grid-template-columns: clamp(250px, 15vw, 300px) minmax(0, 1fr) clamp(500px, 42vw, 820px); }
  .dash3 > .stack.side { grid-column: auto; grid-template-columns: none; }
  .dash3 > .stack, .dash3 > .pane { min-height: 0; }
  .dash3 > .stack { display: flex; flex-direction: column; gap: 14px; }
  .stack > * { flex: none; min-width: 0; }
  .stack > .grow, .ins3 { flex: 1 1 0; min-height: 0; }
  .ins3 { gap: 14px; }
  .card { padding: 16px 18px; border-radius: 24px; }
  .card.grow { display: flex; flex-direction: column; overflow: hidden; }
  .card.grow > .scroll { flex: 1; min-height: 0; overflow: auto; }
  .card-head { margin-bottom: 10px; } .card-head h2 { font-size: 19px; }
  /* esquerda */
  .hello .strong { font-size: 20px; } .chips { margin: 12px 0 0; } .chips button { padding: 7px 14px; font-size: 13px; }
  .score { padding: 16px 20px 0; } .score .big { font-size: clamp(54px, 8vh, 78px); } .score .big small { padding-bottom: 30px; } .score .lvl { margin: 0 0 14px; font-size: 15px; }
  .score .when { right: 20px; top: 16px; } .rainbow { margin: 0 -20px; height: 18px; }
  .acc-h { padding: 14px 20px; font-size: 16px; } .acc-b { padding: 0 20px 12px; } .li { padding: 8px 0; font-size: 14px; }
  .chart-card { padding: 14px 18px 12px; }
  .chart-card > div:last-child { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .area-wrap { flex: 1; height: auto; min-height: 70px; } .legend { margin-top: 8px; } .axis { margin-top: 6px; }
  /* meio */
  .mini4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .mini { padding: 12px 14px; gap: 10px; } .mini b { font-size: 22px; } .mini .ib { width: 34px; height: 34px; } .mini .muted { font-size: 12px; line-height: 1.2; }
  .metrics2 { gap: 12px; } .metric { min-height: 0; gap: 10px; padding: 14px 18px; } .metric .mi { font-size: 16px; } .metric .mi .ib { width: 40px; height: 40px; } .metric .mv b { font-size: 36px; }
  .rcards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; } .rcard { padding: 12px 14px; gap: 6px; } .rcard .v { font-size: 24px; } .rcard .a { font-size: 14px; }
  .hours { flex: 1; height: auto; min-height: 50px; margin: 4px 0 20px; } .hrs { padding-bottom: 12px; }
  .row { gap: 4px 10px; } .rows { gap: 10px; }
  /* direita */
  .big-money { font-size: clamp(40px, 6vh, 56px); } .pbar { margin: 14px 0 6px; } .motiv { margin-top: 12px !important; font-size: 14px; }
  .tl-tabs { gap: 16px; margin-bottom: 8px; } .tl-tabs button { font-size: 15px; } .tl-tabs button.on { font-size: 22px; }
  .tl-year { margin: 10px 0 8px; font-size: 17px; } .tl-grid { gap: 7px; } .mo { min-height: 64px; padding: 7px 0 6px; gap: 5px; }
  .pane .card { padding: 16px; }
  .pane-body .top { display: none; }
}
@media (min-width: 1200px) and (max-width: 1500px) { .topbar .tools .inp { width: 140px; } .pills a { padding: 8px 11px; font-size: 13px; } .topbar h1 { font-size: 19px; } }
@media (max-width: 1199px), (max-height: 599px) {
  .topbar h1 { flex: 1; } .pills { order: 5; flex: 1 1 100%; }
  .ins3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .topbar .tools .inp { width: 130px; } .topbar .btn.ghost { display: none; } .topbar h1 { font-size: 18px; }
  .shell { padding-bottom: 0; }
}
.mini4 > .card, .ins3 > .card, .rcards > * { margin-top: 0 !important; }
.card.acc { padding: 0; }
.acc-h { gap: 10px; } .acc-h > :first-child { min-width: 0; } .acc-h .count { flex: none; }
.ins3 > .card { min-width: 0; overflow: hidden; } .ins3 .card-head h2 { font-size: 17px; overflow-wrap: break-word; }
.mini { min-width: 0; overflow: hidden; } .mini > div { min-width: 0; } .mini .muted { overflow-wrap: break-word; }
@media (min-width: 1200px) and (min-height: 600px) { .dash3 > .stack { container: mid / inline-size; } @container mid (max-width: 560px) { .mini4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } } }
.rcard .t { flex-wrap: wrap; } .rcard { min-width: 0; }
@media (min-width: 1200px) and (min-height: 600px) {
  .dash3 > .stack { overflow: auto; }
  .rcard { flex: none; }
}
@media (min-width: 1200px) and (min-height: 600px) and (max-height: 840px) {
  .score .big { font-size: 48px; } .score .big small { padding-bottom: 14px; } .score .lvl { margin-bottom: 8px; font-size: 14px; }
  .acc-h { padding: 10px 18px; } .li { padding: 5px 0; font-size: 13px; } .hello .strong { font-size: 17px; } .chips { margin-top: 8px; }
  .chart-card { min-height: 190px; } .mini { padding: 10px 12px; } .metric { padding: 10px 16px; } .metric .mv b { font-size: 30px; }
  .dash3 > .stack > .grow { min-height: 150px; }
}

/* visão geral (super admin): todos os grupos cabem na tela */
.vis { display: grid; gap: var(--gap); } .vis > .card, .vcols > .card { margin-top: 0 !important; }
@media (min-width: 1200px) and (min-height: 600px) {
  .vis { height: 100%; gap: 14px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas: "head head head" "kpis kpis kpis" "chart chart time" "rev drv lic"; }
  .vcols { display: contents; }
  .v-head { grid-area: head; margin: 0; } .v-kpis { grid-area: kpis; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .v-chart { grid-area: chart; } .v-time { grid-area: time; } .v-rev { grid-area: rev; } .v-drv { grid-area: drv; } .v-lic { grid-area: lic; }
  .kpi { padding: 12px 18px; border-radius: 22px; } .kpi b { font-size: 26px; } .kpi span, .kpi small { font-size: 12.5px; }
  .vis .donut-wrap { grid-template-columns: auto minmax(0, 1fr); gap: 16px; } .vis .donut { width: clamp(110px, 17vh, 170px); height: auto; }
  .vis .hbars .hb { grid-template-columns: 110px 1fr 110px; }
  .vis .card .sub { margin-top: 0; font-size: 13px; }
}

/* contornos em degradê só nos destaques: botões de período, menu em cápsula e seletores; o resto fica com linha neutra e fina */
:root { --o-neutral: linear-gradient(rgba(255,255,255,.11), rgba(255,255,255,.11)); --outline: var(--o-neutral); }
.chips button, .chips button.on, .pills, .pills a.on, .seg, .seg button.on { --outline: var(--o-old); }
.tab.on, .btn.primary, .btn.primary:hover:not(:disabled) { --outline: var(--o-neutral); }

/* ---------- Suporte ---------- */
.supwrap { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 520px; }
.sup-cfg { padding: 14px 18px; flex: none; }
.sup-cfg-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.sup-cfg-row .field { flex: 1 1 260px; margin: 0; }
.sup { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(210px, 290px) minmax(0, 1fr); gap: 12px; }
.sup-list, .sup-chat { min-height: 0; display: flex; flex-direction: column; padding: 14px; overflow: hidden; margin: 0 !important; }
.sup-list .seg { align-self: flex-start; margin-bottom: 10px; }
.sup-items { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.sup-item { text-align: left; color: inherit; font: inherit; cursor: pointer; display: grid; gap: 2px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.sup-item:hover, .sup-item.on { border-color: var(--accent); background: rgba(39,230,138,.06); }
.sup-item .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sup-item .when { font-size: 12px; }
.sup-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sup-head .who { flex: 1; min-width: 0; }
.sup-back { display: none; }
.sup-ride { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 10px 2px; font-size: 14px; }
.sup-log { flex: 1; min-height: 80px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px 10px; }
.bub { max-width: 82%; padding: 9px 13px; border-radius: 16px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.bub .meta { font-size: 11.5px; opacity: .65; margin-top: 3px; }
.bub .meta .bad { color: #ff7a85; opacity: 1; }
.bub.in { align-self: flex-start; background: rgba(255,255,255,.07); border-bottom-left-radius: 5px; }
.bub.out { align-self: flex-end; background: rgba(39,230,138,.16); border: 1px solid rgba(39,230,138,.35); border-bottom-right-radius: 5px; }
.sup-compose { display: flex; gap: 10px; align-items: flex-end; padding-top: 10px; border-top: 1px solid var(--line); }
.sup-compose textarea { flex: 1; resize: none; min-height: 46px; }
.seg .cnt, .sup-item .cnt { margin-left: 6px; background: var(--bad); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; min-width: 18px; text-align: center; }
@container pane (max-width: 760px) {
  .sup { grid-template-columns: minmax(0, 1fr); } .sup[data-view=list] .sup-chat, .sup[data-view=chat] .sup-list { display: none; } .sup-back { display: inline-flex; transform: scaleX(-1); }
}
@media (max-width: 860px) {
  .sup { grid-template-columns: minmax(0, 1fr); } .sup[data-view=list] .sup-chat, .sup[data-view=chat] .sup-list { display: none; } .sup-back { display: inline-flex; transform: scaleX(-1); }
  .supwrap { min-height: 70vh; }
}

/* =====================================================================
   CELULAR — visual de app de banco: barra de abas embaixo, "Mais" em folha,
   saldo (faturamento) em destaque, atalhos redondos e extrato de corridas
   ===================================================================== */
.tabbar, .sheet, .sheet-bg, .qa { display: none; }
.eye { display: none; }
@media (max-width: 1199px), (max-height: 599px) {
  html, body.is-panel { overflow-x: hidden; }
  .shell { display: block; }
  body.is-panel { background: #04060a; }
  .main { padding: 14px 16px calc(104px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; }
  .tabbar { max-width: 728px; margin: 0 auto; }
  /* nada passa da borda do cartão: texto quebra, números reduzem, o que sobrar é cortado com reticências */
  .card, .mini, .metric, .rcard, .acc, .score, .pane { min-width: 0; max-width: 100%; }
  .mini, .metric, .rcard, .acc-b, .li, .row, .hello { overflow-wrap: break-word; }
  .mini > div, .metric > div, .rcard > div, .li > *, .row > * { min-width: 0; }
  .mini, .metric, .rcard { overflow: hidden; }
  .score .big { font-size: clamp(54px, 18vw, 84px); }
  .rainbow { margin: 0 -18px; }

  /* barra de topo: foto/inicial, título e sair */
  .topbar { flex-wrap: nowrap; gap: 12px; margin-bottom: 16px; align-items: center; }
  .topbar .logo, .topbar .pills, .topbar .tools .inp, .topbar .tools .btn { display: none; }
  .topbar .tools { display: contents; }
  .topbar .avatar { order: 0; width: 46px; height: 46px; font-size: 17px; flex: none; }
  .topbar h1 { order: 1; flex: 1; min-width: 0; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .rb { order: 2; width: 44px; height: 44px; flex: none; } .topbar .rb.sub { display: none; }
  .top { margin-bottom: 10px; justify-content: stretch; } .top .tools { flex-wrap: wrap; width: 100%; } .top .btn.primary { flex: 1; }

  /* barra de abas */
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 50; left: 16px; right: 16px; bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 6px; border-radius: 28px; background: #0c1017; border: 1px solid var(--line-2); box-shadow: 0 8px 24px rgba(0,0,0,.6); }
  /* degradê atrás da barra: o conteúdo some suavemente em vez de aparecer por baixo */
  .tabbar::before { content: ""; position: absolute; z-index: -1; left: -16px; right: -16px; top: -34px; bottom: calc(-10px - env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(4,6,10,0), #04060a 46%); pointer-events: none; }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 22px; color: var(--muted); font: inherit; font-size: 11px; text-decoration: none; background: none; border: 0; cursor: pointer; min-width: 0; }
  .tabbar .on { color: var(--accent); background: rgba(39, 230, 138, .12); }
  .tabbar .ti { position: relative; display: grid; place-items: center; height: 24px; }
  .tabbar .cnt { position: absolute; top: -6px; right: -12px; background: var(--bad); color: #fff; border-radius: 99px; font-size: 10px; padding: 0 5px; min-width: 16px; text-align: center; line-height: 16px; }

  /* folha "Mais" */
  .sheet-bg { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .sheet-bg.open { opacity: 1; pointer-events: auto; }
  .sheet { display: block; position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto; background: #0b0f15; border-radius: 30px 30px 0 0; border-top: 1px solid var(--line);
    padding: 12px 18px calc(24px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .25s ease; visibility: hidden; }
  .sheet.open { transform: none; visibility: visible; }
  .sheet .grab { width: 46px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.18); margin: 0 auto 16px; }
  .sheet-id { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; } .sheet-id strong { font-weight: 500; overflow-wrap: anywhere; } .sheet-id .avatar { width: 46px; height: 46px; flex: none; }
  .sheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; margin-bottom: 18px; }
  .sheet-grid a { display: grid; justify-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 13px; text-align: center; }
  .sheet-grid .ic, .qa .ic { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: rgba(39, 230, 138, .1); border: 1px solid rgba(39, 230, 138, .28); }
  .sheet-actions { display: grid; gap: 10px; margin-top: 14px; } .sheet-actions .btn { width: 100%; justify-content: center; padding: 14px; }

  /* início: ordem de um app de banco (saldo, período, atalhos, destaques, extrato…) */
  .dash3, .dash3 > .stack { display: contents; }
  .dbox { display: flex; flex-direction: column; gap: 14px; }
  .dbox > .dash3 > .stack > *, .dbox > .dash3 > .pane { min-width: 0; }
  .dbox { --o: 0; }
  .m-hero { order: 1; } .m-top { order: 2; } .qa { order: 3; } .mini4 { order: 4; } .m-rides { order: 5; } .acc { order: 6; } .metrics2 { order: 7; } .score { order: 8; }
  .chart-card { order: 9; } .ins3 { order: 10; } .m-tl { order: 11; }
  .m-top .hello { display: none; } .m-top .chips { margin: 0 -16px; padding: 2px 16px; display: flex; gap: 8px; overflow-x: auto; }

  /* saldo */
  .m-hero { border-radius: 28px; padding: 20px 20px 18px; background: linear-gradient(145deg, #0f3d31 0%, #0b2b4d 58%, #1a1450 100%) padding-box, var(--o-old) border-box; }
  .m-hero .card-head { margin-bottom: 8px; }
  .m-hero .big-money { font-size: 44px; line-height: 1.05; margin: 6px 0 2px; transition: filter .15s; }
  .eye { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; margin-left: 8px; }
  .m-hero .card-head { align-items: center; }
  .mask .big-money, .mask .rcard .v, .mask .metric .mv b { filter: blur(11px); }
  .m-hero .motiv { margin-top: 16px !important; font-size: 14px; }

  /* atalhos redondos */
  .qa { display: flex; gap: 16px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 6px; scroll-padding-left: 16px; scroll-snap-type: x proximity; }
  .qa a { display: grid; justify-items: center; gap: 8px; flex: none; width: 68px; color: var(--text); text-decoration: none; font-size: 12px; scroll-snap-align: start; }
  .qa .cnt { position: absolute; top: -3px; right: -3px; background: var(--bad); color: #fff; border-radius: 99px; font-size: 10px; padding: 0 5px; min-width: 16px; text-align: center; line-height: 16px; }

  /* destaques em faixa horizontal */
  .mini4 { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 2px 16px 4px; scroll-padding-left: 16px; }
  .mini4 > .card { flex: 0 0 min(76%, 300px); scroll-snap-align: start; }
  .metrics2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .metrics2 .metric { padding: 14px; gap: 14px; min-height: 0; } .metrics2 .mv b { font-size: 32px; } .metrics2 .mi { font-size: 14px; flex-direction: column; align-items: flex-start; gap: 8px; } .metrics2 .mi .ib { width: 40px; height: 40px; }
  .metrics2 .mv { flex-wrap: wrap; gap: 6px; }

  /* extrato de corridas */
  .m-rides { padding: 18px 18px 8px; border-radius: 28px; }
  .m-rides .rcards { display: flex; flex-direction: column; gap: 0; }
  .rcards .rcard { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ic a v" "ic f s"; gap: 2px 12px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .rcards .rcard:last-child { border-bottom: 0; }
  .rcards .rcard > .ric { grid-area: ic; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(77, 163, 255, .12); color: #4da3ff; align-self: center; }
  .rcards .rcard > div:nth-child(3) { grid-area: a; min-width: 0; } .rcards .rcard .a { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rcards .rcard > div:nth-child(3) .m { display: none; }
  .rcards .rcard > .v { grid-area: v; font-size: 16px; font-weight: 500; text-align: right; transition: filter .15s; }
  .rcards .rcard > .m { grid-area: f; font-size: 12.5px; } .rcards .rcard > .t { grid-area: s; justify-self: end; } .rcards .rcard > .t .chip { display: none; }
  .ric { display: none; }
  .rcards .rcard > .ric { display: grid; }

  /* tabelas viram lista de cartões (cada valor com o nome da coluna) */
  .tbl-wrap { overflow: visible; }
  table, tbody { display: block; width: 100%; } thead { display: none; }
  tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  tbody td, tbody th { display: block !important; padding: 0 !important; border: 0 !important; text-align: left !important; min-width: 0; overflow-wrap: anywhere; }
  tbody td:first-child { grid-column: 1 / -1; font-size: 16px; }
  tbody td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
  tbody td[data-label="Trajeto"] { grid-column: 1 / -1; }
  tbody td:last-child:not([data-label]) { grid-column: 1 / -1; display: flex !important; gap: 8px; flex-wrap: wrap; }
  tbody td .inp { width: 100%; }
  tr.click:hover td { background: none; } tr.click:active { background: rgba(255,255,255,.04); }
  .seg, .tabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; } .seg button, .tabs button { flex: none; white-space: nowrap; }
  .tabs { padding: 4px; margin-bottom: 14px; } .tabs button { padding: 8px 12px; font-size: 13px; }
  td[data-label="Telefone"] { white-space: nowrap !important; grid-column: 1 / -1; }
  .m-tl { max-height: 460px; overflow: auto; }
  .pane-body, .card { border-radius: 26px; }
  .card { padding: 18px; }
  .acc { padding: 0; } .acc-h { padding: 16px 18px; font-size: 16px; } .acc-b { padding: 0 18px 12px; }
  .tabs { -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
  .seg { -webkit-mask-image: none; mask-image: none; }
}

/* =====================================================================
   ASSINATURA (Mercado Pago): aba do gestor, aviso de atraso e tela de bloqueio
   ===================================================================== */
.sub-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 24px; align-items: center; }
.sub-head > .btn { justify-self: start; max-width: 100%; min-width: 0; white-space: normal; text-align: center; }
.sub-head h2 { font-size: 30px; margin: 2px 0; } .sub-head .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; display: block; }
.sub-fig { display: grid; gap: 4px; } .sub-fig b { font-size: 24px; font-weight: 400; white-space: nowrap; }
.bill-warn { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; border-color: rgba(255,200,61,.5); color: var(--text); }
.bill-warn strong { color: var(--warn); font-weight: 400; }
.sub-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 14px; }
.sub-plan { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 22px; border: 1px solid var(--line-2); background: #0d1118; }
.sub-plan.cur { border-color: rgba(39,230,138,.55); box-shadow: 0 0 22px rgba(39,230,138,.12); }
.sub-plan .price { font-size: 26px; } .sub-plan .price small { color: var(--muted); font-size: 13px; } .sub-plan .btn { margin-top: 8px; justify-self: start; }
.sub-danger { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; } .sub-danger h3 { margin: 0 0 4px; } .sub-danger p { margin: 0; }
.bill-banner { position: fixed; z-index: 40; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 99px;
  background: #2a2208; border: 1px solid rgba(255,200,61,.55); color: #ffe39a; text-decoration: none; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); white-space: nowrap; }
.bill-banner b { font-weight: 500; color: var(--warn); }
.blocked { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.blocked-card { width: min(560px, 100%); display: grid; gap: 16px; padding: 34px 30px; text-align: center; justify-items: center; }
.blocked-card h1 { margin: 0; font-size: 28px; line-height: 1.15; } .blocked-card .lead { color: var(--soft); max-width: 44ch; }
.blocked-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: var(--warn); background: rgba(255,200,61,.1); border: 1px solid rgba(255,200,61,.35); }
.blocked-sum { width: 100%; display: grid; gap: 8px; padding: 16px 18px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); text-align: left; }
.blocked-sum > div { display: flex; justify-content: space-between; gap: 12px; } .blocked-sum span { color: var(--muted); }
.blocked-sum .tot { border-top: 1px solid var(--line); padding-top: 8px; font-size: 18px; } .blocked-sum .tot span { color: var(--text); } .blocked-sum small { color: var(--muted); }
.blocked-card .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 1199px), (max-height: 599px) { .bill-banner { bottom: calc(96px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); white-space: normal; border-radius: 22px; } .blocked-card { padding: 26px 20px; } .blocked-card .actions .btn { flex: 1 1 100%; justify-content: center; } }

/* ---------- selos e contadores: texto sempre no centro do contorno, tamanho padrão ---------- */
.chip, .badge { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 28px; padding: 0 12px; line-height: 1; text-align: center; }
.chip > *, .badge > * { line-height: 1; }
/* contador redondo (Alterações recentes, riscos…): mesma largura para 0, 1, 2… e número no centro */
.li > .chip { width: 36px; height: 30px; padding: 0; font-variant-numeric: tabular-nums; font-size: 13.5px; flex: none; }
.acc-h .count { display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-variant-numeric: tabular-nums; }
/* bolinhas de aviso (menu, abas, atalhos) */
.pills .cnt, .seg .cnt, .sup-item .cnt, .tabbar .cnt, .qa .cnt, .tab .cnt.bad { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 18px; min-width: 18px; padding: 0 5px; line-height: 1; font-variant-numeric: tabular-nums; }
.tabbar .cnt, .qa .cnt { height: 17px; min-width: 17px; }
@media (max-width: 1199px), (max-height: 599px) {
  .rcards .rcard > .t .badge, .rcards .rcard > .t .chip { height: 28px; }
  tbody td .badge, tbody td .chip { height: 28px; }
}
/* centraliza pelo desenho da letra (altura das maiúsculas), qualquer que seja a fonte do aparelho */
@supports (text-box: trim-both cap alphabetic) {
  .chip, .badge, .li > .chip, .acc-h .count, .pills .cnt, .seg .cnt, .sup-item .cnt, .tabbar .cnt, .qa .cnt, .tab .cnt.bad {
    display: inline-block; text-box: trim-both cap alphabetic; height: auto; text-align: center; vertical-align: middle;
  }
  .chip, .badge { padding: 9px 12px; }
  .li > .chip { width: 34px; padding: 9px 0; }
  .acc-h .count { width: 28px; height: auto; padding: 9px 0; border-radius: 99px; }
  .pills .cnt, .seg .cnt, .sup-item .cnt, .tab .cnt.bad { padding: 4px 6px; min-width: 18px; }
  .tabbar .cnt, .qa .cnt { padding: 4px 5px; min-width: 17px; height: auto; }
  .chip svg, .badge svg { vertical-align: middle; }
}

/* =====================================================================
   ÁREA DO MOTORISTA — sempre no visual de app (celular em pé), em qualquer tela
   ===================================================================== */
body.is-driver { background: #04060a; }
.drv { max-width: 560px; margin: 0 auto; padding: 14px 16px calc(104px + env(safe-area-inset-bottom)); min-height: 100vh; }
.drv-stack { display: grid; gap: 14px; min-width: 0; }
.drv-stack > * { margin: 0 !important; min-width: 0; }
.drv .card { padding: 18px; border-radius: 26px; overflow: hidden; }
.drv h2 { font-size: 18px; font-weight: 400; margin: 0 0 12px; }
.drv .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; display: block; }
.drv-top { display: flex; align-items: center; gap: 12px; padding: 2px 0 4px; }
.drv-top .avatar { width: 46px; height: 46px; flex: none; object-fit: cover; }
.drv-top .who { flex: 1; min-width: 0; display: grid; }
.drv-top h1 { font-size: 20px; font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drv-top .rb { flex: none; width: 44px; height: 44px; }
.drv-alert { display: grid; gap: 2px; padding: 14px 16px; border-radius: 20px; border: 1px solid rgba(255,200,61,.45); background: rgba(255,200,61,.07); font-size: 14px; overflow-wrap: anywhere; }
.drv-alert strong { font-weight: 500; color: var(--warn); }
.drv-alert.bad { border-color: rgba(255,77,94,.5); background: rgba(255,77,94,.08); } .drv-alert.bad strong { color: var(--bad); }
.drv-hero { background: linear-gradient(145deg, #0f3d31 0%, #0b2b4d 58%, #1a1450 100%) padding-box, var(--o-old) border-box; border: 1px solid transparent; display: grid; gap: 4px; }
.drv-hero-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.drv .eye { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; flex: none; }
.drv-money { transition: filter .15s; font-variant-numeric: tabular-nums; }
.drv .mask .drv-money, .drv .mask.drv-money, .drv-stack.mask .drv-money { filter: blur(11px); }
.drv-hero .big-money { font-size: 44px; line-height: 1.08; font-weight: 300; letter-spacing: -.02em; overflow-wrap: anywhere; }
.drv-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.drv-trio > div { display: grid; gap: 2px; min-width: 0; align-content: start; }
.drv-trio .lbl { font-size: 10.5px; letter-spacing: .04em; }
.drv-trio b { font-size: 16px; font-weight: 400; overflow-wrap: anywhere; } .drv-trio small { color: var(--muted); font-size: 12px; }
.drv-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.drv-stat { display: grid; gap: 6px; align-content: start; }
.drv-big { font-size: 30px; font-weight: 300; line-height: 1.1; overflow-wrap: anywhere; } .drv-big small { font-size: 15px; color: var(--muted); }
.drv-list { display: grid; gap: 0; }
.drv-list > * { padding: 12px 0; border-bottom: 1px solid var(--line); } .drv-list > *:last-child { border-bottom: 0; padding-bottom: 0; } .drv-list > *:first-child { padding-top: 0; }
.drv-note p { margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.drv-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drv-line > div:first-child { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.drv-line .r { display: grid; gap: 4px; justify-items: end; flex: none; }
.drv-line h2 { margin: 0; }
.plate { font-weight: 500; letter-spacing: .08em; border: 1px solid var(--line-2); border-radius: 10px; padding: 4px 10px; font-size: 14px; background: rgba(255,255,255,.04); }
.drv-rows { display: grid; }
.drv-ride { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ic what val" "ic ext ext"; gap: 2px 12px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: center; }
.drv-ride:last-child { border-bottom: 0; }
.drv-ride .ric { grid-area: ic; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(77,163,255,.12); color: #4da3ff; align-self: center; }
.drv-ride .ric.off { background: rgba(255,255,255,.06); color: var(--muted); }
.drv-ride .what { grid-area: what; display: grid; gap: 2px; min-width: 0; }
.drv-ride .what strong { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drv-ride .what .muted { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drv-ride .val { grid-area: val; display: grid; gap: 4px; justify-items: end; }
.drv-ride .val b { font-size: 16px; font-weight: 500; }
.drv-ride .ext { grid-area: ext; font-size: 12.5px; overflow-wrap: anywhere; }
.drv-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 14px 0 0; } .drv-dl dt { color: var(--muted); } .drv-dl dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.drv-hint { margin: 14px 0 0; font-size: 13px; }
.drv-actions { display: grid; gap: 10px; }
.drv .btn.block { display: flex; justify-content: center; width: 100%; padding: 14px; }
.drv-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; z-index: 50; left: 16px; right: 16px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 528px; margin: 0 auto;
  padding: 6px; border-radius: 28px; background: #0c1017; border: 1px solid var(--line-2); box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.drv-tabs::before { content: ""; position: absolute; z-index: -1; left: -16px; right: -16px; top: -34px; bottom: calc(-10px - env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(4,6,10,0), #04060a 46%); pointer-events: none; }
.drv-tabs a { display: grid; justify-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 22px; color: var(--muted); font-size: 11px; text-decoration: none; min-width: 0; }
.drv-tabs a.on { color: var(--accent); background: rgba(39,230,138,.12); }
.drv-tabs .ti { display: grid; place-items: center; height: 24px; }
.drv .empty { padding: 14px 4px; }
@media (min-width: 700px) { .drv { padding-top: 28px; } }
.drv .hbars .hb { grid-template-columns: minmax(64px, 110px) minmax(0, 1fr) auto; gap: 10px; }
.drv .hbars .hb b { white-space: nowrap; }
.drv-grid2 > .card, .drv .card + .card { margin-top: 0 !important; }

/* escolher arquivo/foto: botão no padrão do painel (em vez do retângulo branco do navegador) */
input[type=file].inp { color-scheme: dark; padding: 7px 8px; cursor: pointer; color: var(--soft); font-size: 13.5px; line-height: 1.2; min-width: 0; }
input[type=file].inp::file-selector-button, input[type=file].inp::-webkit-file-upload-button {
  font: inherit; font-size: 13px; color: var(--accent); background: rgba(39,230,138,.12); border: 1px solid rgba(39,230,138,.4);
  border-radius: 99px; padding: 8px 16px; margin: 0 12px 0 0; cursor: pointer; transition: background .2s, border-color .2s; }
input[type=file].inp:hover::file-selector-button, input[type=file].inp:hover::-webkit-file-upload-button { background: rgba(39,230,138,.2); border-color: rgba(39,230,138,.65); }
input[type=file].inp:focus-visible { outline: none; border-color: rgba(39,230,138,.6); box-shadow: 0 0 0 4px rgba(39,230,138,.1); }

/* ---------- cadastro pelo site (mesma identidade do painel) ---------- */
.cad { align-items: start; }
.cad-card { width: min(640px, 100%); text-align: left; justify-items: stretch; gap: 18px; }
.cad-card h1, .cad-card .lead { text-align: center; max-width: none; }
.cad-form { display: grid; gap: 14px; }
.cad-sec { font-weight: 300; font-size: 20px; margin: 10px 0 0; }
.cad-checks { display: flex; flex-wrap: wrap; gap: 10px; }
.cad [hidden] { display: none !important; }
.btn.block { width: 100%; justify-content: center; }
.cad-docs { display: grid; gap: 12px; }
.cad-doc { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--glass); }
.cad-doc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cad-doc p { margin: 0; font-size: 13.5px; }
.cad-prog { display: grid; gap: 8px; } .cad-prog .bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); } .cad-prog .bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .3s; }
.ok-ic { color: var(--accent); background: rgba(39,230,138,.1); border-color: rgba(39,230,138,.35); justify-self: center; }
@media (max-width: 520px) { .cad .grid2 { grid-template-columns: 1fr; } .cad-card { padding: 24px 18px; } }
.cad-card > * { margin: 0; } .cad-card .cad-docs { margin-bottom: 6px; }

/* ---- Painel do motorista: pilha de cartões (cada cartão para no topo e o próximo desliza por cima) ---- */
.drv-pile { --pt: calc(12px + env(safe-area-inset-top)); --step: 54px; display: grid; gap: 14px; min-width: 0; padding-bottom: 6px; }
.drv .pc { position: sticky; top: calc(var(--pt) + var(--i, 0) * var(--step)); z-index: 1; transform-origin: 50% 0; transform: scale(var(--s, 1)); will-change: transform;
  box-shadow: 0 -14px 28px -8px rgba(0,0,0,.65); backdrop-filter: none; -webkit-backdrop-filter: none; isolation: isolate; }
.drv .pc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: var(--dim, 0); pointer-events: none; z-index: 5; }
.drv .pc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; margin: -4px 0 8px; }
.drv .pc-h h2 { margin: 0; }
.drv .pc-n { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; display: inline-grid; place-items: center; font-size: 13px; background: rgba(255,255,255,.1); color: var(--soft); }
.drv .pc.t-hero { background: linear-gradient(145deg, #0f3d31 0%, #0b2b4d 58%, #1a1450 100%) padding-box, var(--o-old) border-box; border: 1px solid transparent; }
.drv .pc.t-blue { background: linear-gradient(160deg, #0d2a4d 0%, #09101c 62%) padding-box, var(--o-old) border-box; border: 1px solid transparent; }
.drv .pc.t-violet { background: linear-gradient(160deg, #26164a 0%, #0b0b1a 64%) padding-box, var(--o-old) border-box; border: 1px solid transparent; }
.drv .pc.t-teal { background: linear-gradient(160deg, #0b3a3f 0%, #08121a 64%) padding-box, var(--o-old) border-box; border: 1px solid transparent; }
.drv .pc.t-warm { background: linear-gradient(160deg, #4a1a2e 0%, #140a14 64%) padding-box, var(--o-old) border-box; border: 1px solid transparent; }
.drv .pc.t-green { background: linear-gradient(160deg, #0d3b2b 0%, #08130f 64%) padding-box, var(--o-old) border-box; border: 1px solid transparent; }
.drv .pc.drv-stat { display: grid; gap: 6px; align-content: start; }
.drv .pc .drv-hero-h { margin-bottom: 2px; }
.drv .pc.t-hero .big-money { font-size: 44px; line-height: 1.08; font-weight: 300; letter-spacing: -.02em; overflow-wrap: anywhere; }
.drv .pc.t-hero .muted { color: rgba(244,246,248,.62); }
.drv-grid2 .drv-stat { padding: 14px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.drv-actions { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .drv .pc { transform: none; will-change: auto; } .drv .pc::after { display: none; } }
/* o corpo do painel do motorista não pode virar "caixa de rolagem", senão os cartões não grudam no topo */
html:has(body.is-driver), body.is-driver { height: auto !important; overflow-x: clip !important; overflow-y: visible !important; }
body.is-driver #app { height: auto !important; min-height: 100vh; }
.drv-grid2 .drv-big { font-size: 25px; }


/* sem o destaque azulado do navegador ao tocar/pressionar (celular): o próprio botão já mostra o estado "pressionado" */
:where(button, a, label, summary, select, input, textarea, [role="button"], [tabindex]) { -webkit-tap-highlight-color: transparent; }
:where(button, a, [role="button"], label[for], summary) { -webkit-touch-callout: none; touch-action: manipulation; }
body.is-ped button, body.is-ped a, body.is-ped [role="button"] { -webkit-user-select: none; user-select: none; }
body.is-ped button::selection, body.is-ped button *::selection { background: transparent; }

/* ---------- Painel do motorista v2: gráfico de colunas com valores, cartão de corrida, perfil editável ---------- */
.drv .seg { display: flex; width: 100%; }
.drv .seg button { flex: 1; padding: 8px 6px; }
.drv .seg button.on { color: var(--accent); background: rgba(39,230,138,.12); border-color: rgba(39,230,138,.4); }
.drv-tools { display: grid; gap: 8px; margin-bottom: 12px; }
.drv-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.drv-sum > div { display: grid; gap: 2px; min-width: 0; align-content: start; }
.drv-sum .lbl { font-size: 10.5px; letter-spacing: .04em; }
.drv-sum b { font-size: 15px; font-weight: 400; overflow-wrap: anywhere; } .drv-sum small { color: var(--muted); font-size: 12px; }
.colchart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; align-items: start; }
.cols-y { height: 150px; font-size: 10px; color: var(--muted); text-align: right; line-height: 1; padding-top: 10px; font-variant-numeric: tabular-nums; }
.cols-y span:nth-child(2) { align-self: center; transform: translateY(-4px); } .cols-y span:nth-child(3) { align-self: end; transform: translateY(0); }
.cols-y { grid-template-rows: none; display: flex; flex-direction: column; justify-content: space-between; padding: 10px 0 0; box-sizing: border-box; }
.cols-scroll { overflow-x: auto; scrollbar-width: none; min-width: 0; -webkit-overflow-scrolling: touch; }
.cols-scroll::-webkit-scrollbar { display: none; }
.ccols { display: flex; min-width: 100%; }
.col { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; display: grid; grid-template-rows: 150px auto auto; justify-items: center; gap: 4px; flex: 1 0 var(--mc, 28px); min-width: var(--mc, 28px); border-radius: 10px; }
.col:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.col-plot { position: relative; width: 100%; height: 150px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; box-sizing: border-box;
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% calc((100% - 16px) / 2); background-position: 0 16px; background-repeat: repeat-y; border-bottom: 1px solid var(--line-2); }
.col-plot i { display: block; width: 62%; max-width: 26px; height: calc((100% - 16px) * var(--k)); min-height: 2px; border-radius: 7px 7px 2px 2px; background: rgba(39,230,138,.34); transition: background .15s; }
.col.hi .col-plot i { background: rgba(39,230,138,.62); }
.col.sel .col-plot i { background: var(--accent); }
.col-v { font-size: 10.5px; line-height: 16px; height: 16px; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; } .col-v.zero { color: var(--muted); opacity: .5; }
.col.sel .col-v { color: var(--text); font-weight: 500; }
.col-l { font-size: 11px; color: var(--muted); line-height: 1; } .col-s { font-size: 10.5px; font-style: normal; color: var(--soft); line-height: 1; min-height: 10px; }
.col.sel .col-l, .col.sel .col-s { color: var(--accent); }
.drv-pick { margin: 12px 0 0; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.drv-pick b { font-weight: 500; } .drv-pick .muted { font-size: 12.5px; }
.drv-tip { margin: 10px 0 0; font-size: 13px; color: var(--soft); }

/* cartão de corrida padronizado (mesma ordem da chamada que chega no WhatsApp) */
.ride-card { display: grid; gap: 12px; padding: 16px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.035); min-width: 0; }
.ride-card.live { border-color: rgba(39,230,138,.5); background: rgba(39,230,138,.06); }
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rc-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rc-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rc-price b { font-size: 28px; font-weight: 300; letter-spacing: -.01em; line-height: 1.1; }
.rc-price span { color: var(--soft); font-size: 14px; }
.rc-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; color: var(--soft); font-size: 13.5px; }
.rc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.rc-route { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 0 10px; position: relative; }
.rc-route::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line-2) 0 4px, transparent 4px 8px); }
.rc-route .pin { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--accent); background: #000; margin-top: 3px; position: relative; z-index: 1; }
.rc-route .pin.end { border-radius: 4px; border-color: #ff6b81; }
.rc-route .addr { font-size: 14.5px; overflow-wrap: anywhere; line-height: 1.35; } .rc-route .addr + .pin, .rc-route .addr:not(:last-child) { margin-bottom: 14px; }
.rc-route .addr small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 1px; }
.rc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.rc-foot .stars { color: #ffc83d; letter-spacing: 1px; }
.rc-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rc-acts .btn { justify-content: center; text-align: center; }
.drv-filter { margin-bottom: 12px; }
.drv-rows.cards { gap: 12px; }

/* perfil editável */
.prof-head { display: flex; align-items: center; gap: 16px; }
.prof-photo { position: relative; flex: none; width: 88px; height: 88px; }
.prof-photo .avatar, .prof-photo img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; font-size: 34px; display: grid; place-items: center; }
.prof-photo .cam { position: absolute; right: -2px; bottom: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border: 3px solid #0a1712; cursor: pointer; padding: 0; }
.prof-photo .cam:disabled { opacity: .6; }
.prof-head .info { min-width: 0; display: grid; gap: 3px; }
.prof-head h2 { margin: 0; overflow-wrap: anywhere; }
.prof-sub { margin: 12px 0 0; font-size: 13px; }
.drv-edit { margin-left: auto; }
.v-card { display: grid; gap: 10px; }
.v-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v-chips .badge { font-weight: 400; }
.doc-line { align-items: center; }
.doc-line .r { gap: 6px; }
.doc-line .btn { padding: 7px 14px; font-size: 13px; }
.doc-up { display: none; }
.drv-form { display: grid; gap: 14px; }
.drv-form .g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.drv-form .checks { display: flex; flex-wrap: wrap; gap: 8px; }
.drv-form .note { margin: 0; font-size: 13px; color: var(--soft); }
.drv-form .err { margin: 0; color: var(--bad); font-size: 13.5px; }
.drv-alert .go { color: var(--accent); text-decoration: none; margin-top: 4px; font-size: 13.5px; }
.drv-alert button.go { font: inherit; font-size: 13.5px; cursor: pointer; background: none; border: 0; justify-self: start; min-height: 36px; }
.drv-alert.info { border-color: var(--accent-line, rgba(33,241,168,.4)); background: var(--accent-soft, rgba(33,241,168,.07)); } .drv-alert.info strong { color: var(--accent); }
.drv-alert.warn .go { color: var(--warn); }
@media (max-width: 420px) { .drv-form .g2 { grid-template-columns: 1fr 1fr; } .rc-price b { font-size: 25px; } }
.avatar { overflow: hidden; } .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

.drv-grid2 .drv-big { font-size: 22px; }
@media (max-width: 480px) { .rc-acts { grid-template-columns: 1fr; } }
.drv .seg button { padding: 8px 2px; font-size: 13px; min-width: 0; }

/* ---------- aba Mapa do motorista ---------- */
.drv-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.drv-tabs a { font-size: 10.5px; }
.mp-ctl { display: grid; gap: 12px; }
.mp-ctl .seg, .drv .mp-ctl .seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
.drv .card .seg[aria-label="Ordenar áreas"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin-bottom: 8px; }
.mp-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mp-sum > div { display: grid; gap: 2px; align-content: start; padding: 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); min-width: 0; }
.mp-sum .lbl { font-size: 11.5px; color: var(--muted); }
.mp-sum b { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mp-sum small { font-size: 11px; color: var(--muted); line-height: 1.25; }
.mp-card { padding: 0; overflow: hidden; }
.mp-map { position: relative; }
.mp-canvas { height: min(62vh, 440px); min-height: 300px; background: var(--glass); transition: opacity .2s; }
.mp-canvas.busy { opacity: .6; }
.mp-canvas.off { min-height: 120px; height: 120px; }
.mp-note { position: absolute; left: 12px; right: 12px; top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 13px; background: var(--card, #10151c); border: 1px solid var(--line-2); pointer-events: none; z-index: 2; }
.mp-legend { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 12px; color: var(--muted); }
.mp-legend i { flex: 1; height: 8px; border-radius: 99px; background: linear-gradient(90deg, rgb(58,166,160), rgb(232,184,74), rgb(229,103,95)); }
.mp-pin { display: grid; justify-items: center; line-height: 1.05; padding: 3px 7px 4px; min-width: 40px; border-radius: 12px; border: 2px solid #fff; background: var(--c, #3aa6a0); color: #11161c; box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: pointer; font-family: inherit; }
.mp-pin b { font-size: 12px; font-weight: 600; } .mp-pin small { font-size: 10px; opacity: .8; }
.mp-pin.unmet { box-shadow: 0 0 0 3px rgba(229,103,95,.45), 0 2px 8px rgba(0,0,0,.35); }
.mp-pin.sel { transform: scale(1.18); z-index: 5; outline: 3px solid var(--accent); }
.mp-pin:focus-visible { outline: 3px solid var(--accent); }
.mp-sel { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line-2); }
.mp-sel .hd { display: grid; gap: 2px; } .mp-sel .hd strong { font-weight: 500; font-size: 16px; }
.mp-hint { margin: 0; font-size: 13px; text-align: center; }
.mp-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 10px 6px; border-radius: 12px; }
.mp-row:hover, .mp-row.sel { background: var(--glass); }
.mp-row .rk { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #11161c; font-size: 13px; font-weight: 600; }
.mp-row .nm { display: grid; gap: 2px; min-width: 0; } .mp-row .nm strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-row .nm small, .mp-row .vl small { font-size: 12px; }
.mp-row .vl { display: grid; gap: 2px; justify-items: end; } .mp-row .vl b { font-weight: 500; font-variant-numeric: tabular-nums; }
.mp-list.drv-list > * { padding: 0; border-bottom: 0; }
.btn.block { display: flex; width: 100%; justify-content: center; gap: 8px; align-items: center; }
.maplibregl-ctrl-attrib { font-size: 10px; }
@media (max-width: 380px) { .mp-sum b { font-size: 16px; } .drv-tabs a { font-size: 10px; } }
.drv .mp-ctl .seg, .drv .card .seg[aria-label="Ordenar áreas"] { -webkit-mask-image: none; mask-image: none; overflow: visible; }
.drv .mp-ctl .seg button, .drv .card .seg[aria-label="Ordenar áreas"] button { padding: 8px 4px; font-size: 12.5px; }
.mp-sum > div { padding: 10px 8px; }
.mp-sum b { font-size: 16px; white-space: nowrap; overflow-wrap: normal; }
.drv .card.mp-card { padding: 0; }

/* planos do @ do motorista */
.plan-opts { display: grid; gap: 10px; }
.plan-opt { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line, rgba(255,255,255,.14)); background: transparent; color: inherit; font: inherit; cursor: pointer; min-height: 44px; }
.plan-opt:hover:not(:disabled) { border-color: var(--accent); } .plan-opt:disabled { opacity: .6; cursor: default; }
.plan-opt.best { border-color: var(--accent); background: var(--accent-soft, rgba(33,241,168,.07)); }
.plan-opt .po-name { font-size: 14px; opacity: .8; } .plan-opt .po-price { font-size: 26px; font-weight: 300; font-variant-numeric: tabular-nums; } .plan-opt .po-price small { font-size: 13px; opacity: .7; font-weight: 400; }
.plan-opt .po-save { font-size: 13px; color: var(--accent); } .plan-opt .po-save.muted { color: inherit; opacity: .65; }

/* foto do passageiro na corrida ativa */
.rc-selfie { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(33,241,168,.08); border: 1px solid rgba(33,241,168,.3); }
.rc-selfie-img { width: 64px; height: 84px; flex: none; object-fit: cover; border-radius: 10px; background: #000; }
.rc-selfie div { display: grid; gap: 2px; font-size: 13px; line-height: 1.4; }
.rc-selfie b { font-weight: 600; }
.rc-selfie span { opacity: .8; }

/* ---------- agenda do motorista ---------- */
.ag-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ag-title { font-weight: 600; } .ag-title::first-letter, .ag-dayname::first-letter { text-transform: uppercase; }
.ag-nav { width: 40px; min-width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1; flex: none; }
.ag-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin: 10px 0 14px; }
.ag-wd { text-align: center; font-size: 12px; color: var(--muted); padding: 3px 0; }
.ag-d { position: relative; aspect-ratio: 1; min-height: 38px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.ag-d:hover { background: rgba(127,127,127,.12); }
.ag-d.today { border-color: var(--line, rgba(127,127,127,.35)); }
.ag-d.has { font-weight: 700; }
.ag-d.on { background: var(--accent); color: #04231a; border-color: var(--accent); }
.ag-dot { position: absolute; right: 4px; bottom: 3px; min-width: 6px; height: 6px; border-radius: 6px; background: var(--accent); font: 700 9px/6px inherit; color: transparent; font-style: normal; }
.ag-d.on .ag-dot { background: #04231a; }
.ag-ride { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--line, rgba(127,127,127,.25)); background: rgba(127,127,127,.06); color: inherit; font: inherit; cursor: pointer; }
.ag-ride:hover { border-color: var(--accent); }
.ag-time { font-variant-numeric: tabular-nums; font-size: 17px; flex: none; }
.ag-ride-t { display: grid; gap: 2px; min-width: 0; flex: 1; } .ag-ride-t small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-det { display: grid; gap: 14px; }
.ag-when { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ag-pax { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(33,241,168,.08); }
.ag-pax > div { display: grid; gap: 2px; min-width: 0; }
.ag-pic { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: rgba(127,127,127,.2); }
.ag-pic.ph { display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.ag-blocks { display: grid; gap: 10px; margin: 10px 0; }
.ag-blk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line, rgba(127,127,127,.25)); }
.ag-blk select, .ag-blk input { min-height: 40px; }
@media (max-width: 380px) { .drv-tabs a { font-size: 10px; } }
.drv-form > *, .drv-form .field, .ag-blocks, .ag-blk { min-width: 0; max-width: 100%; }
.drv-form .field input, .drv-form .field select, .ag-blk select, .ag-blk input { min-width: 0; width: 100%; box-sizing: border-box; }
.ag-blk { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ag-blk .bk-range { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 8px; align-items: center; }
.ag-blk .bk-range[hidden] { display: none; }
.ag-blk .btn { grid-column: 1 / -1; }
.drv-form .actions { flex-wrap: wrap; }
.drv-form .btn { max-width: 100%; white-space: normal; }

/* agenda do motorista: campos arredondados como o resto do painel, com seta nas listas e sem texto cortado */
html body.is-driver .drv-form select.inp, html body.is-driver .ag-blk select.inp {
  -webkit-appearance: none; appearance: none; padding: 12px 38px 12px 16px; min-height: 48px; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
html body.is-driver .drv-form input[type=time].inp, html body.is-driver .ag-blk input[type=time].inp { min-height: 48px; padding: 12px 14px; }
html body.is-driver .drv-form input[type=time].inp::-webkit-calendar-picker-indicator, html body.is-driver .ag-blk input[type=time].inp::-webkit-calendar-picker-indicator { display: none; }
.ag-blk { grid-template-columns: 1fr; gap: 10px; padding: 12px; border-radius: 18px; }
.ag-blk .bk-range { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); }
.ag-blk .btn { justify-content: center; text-align: center; }
@media (min-width: 520px) { .ag-blk { grid-template-columns: 1fr 1fr; } }
