/* Grand Brasil — identidade: azul #050036, laranja #FF6E01 (ver docs/identidade-visual.md) */
:root {
  --brand-blue: #050036;
  --brand-orange: #FF6E01;
  --blue-700: #1b1650;
  --blue-50: #eeeef6;
  --orange-50: #fff3ea;
  --orange-600: #e86300;

  --bg: #f5f6fa;
  --surface: #ffffff;
  --ink: #050036;
  --text: #2b2f45;
  --muted: #6b7088;
  --line: #e6e8f0;
  --ok: #157a46;
  --ok-50: #e7f5ee;
  --warn: #9a5b00;
  --warn-50: #fff5e0;
  --err: #c0322b;
  --err-50: #fdecea;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(5, 0, 54, .05), 0 6px 20px rgba(5, 0, 54, .05);
  --sidebar: 252px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-blue); font-weight: 600; text-decoration: none; }
a:hover { color: var(--brand-orange); }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
code { background: var(--blue-50); padding: .05em .35em; border-radius: 5px; font-size: .9em; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.error-text { color: var(--err); }

/* ============ estrutura do painel */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem 1rem;
}
.sidebar-logo { display: block; padding: .25rem .5rem .5rem; }
.sidebar-logo img { width: 132px; }
.nav { display: grid; gap: .2rem; }
.nav-link {
  display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; position: relative;
}
.nav-link svg { color: var(--muted); }
.nav-link:hover { background: var(--bg); color: var(--ink); }
.nav-link.is-active { background: var(--orange-50); color: var(--ink); font-weight: 700; }
.nav-link.is-active svg { color: var(--brand-orange); }
.nav-link.is-active::before { content: ""; position: absolute; left: -1rem; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand-orange); }
.share-card { background: var(--brand-blue); color: #fff; border-radius: var(--radius); padding: 1rem; display: grid; gap: .35rem; }
.share-card small { color: #c8c6e0; font-size: .8rem; line-height: 1.4; }
.sidebar-user { margin-top: auto; display: flex; align-items: center; gap: .65rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar { overflow: hidden; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-blue); color: #fff; font-weight: 700; font-size: .85rem; flex: none; }
.who { display: grid; min-width: 0; flex: 1; }
.who strong { color: var(--ink); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--muted); font-size: .78rem; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--brand-orange); color: var(--brand-orange); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .75rem;
  padding: .9rem clamp(1rem, 3vw, 2rem); background: rgba(245, 246, 250, .92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.page-title { font-size: 1.35rem; flex: 1; min-width: 0; }
.menu-toggle, .topbar-logo { display: none; }
.content { padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem; width: 100%; max-width: 1600px; }
.backdrop { position: fixed; inset: 0; border: 0; background: rgba(5, 0, 54, .45); z-index: 19; }

/* ============ componentes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; }
.card-highlight { border-color: var(--brand-orange); box-shadow: 0 0 0 3px var(--orange-50); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.card-head a { font-size: .88rem; }
.collapsible > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible[open] > summary { margin-bottom: .75rem; }
.collapsible[open] > summary .btn { visibility: hidden; }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.empty p { margin-bottom: .9rem; }

.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin: 0 0 1.25rem; font-weight: 500; }
.alert-ok { background: var(--ok-50); color: var(--ok); }
.alert-error { background: var(--err-50); color: var(--err); }
.alert-warn { background: var(--warn-50); color: var(--warn); }
.edit-adhesion { margin: 0 0 1rem; }
.edit-adhesion summary { cursor: pointer; font-weight: 600; color: var(--blue, #050036); margin-bottom: .5rem; }
.edit-adhesion .inline-form { align-items: flex-end; flex-wrap: wrap; }
.edit-adhesion input { max-width: 160px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 42px; padding: .55rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand-orange); color: var(--brand-blue); }
.btn-primary:hover { background: var(--orange-600); color: var(--brand-blue); }
.btn-dark { background: var(--brand-blue); color: #fff; }
.btn-dark:hover { background: var(--blue-700); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand-blue); color: var(--ink); }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger-text { color: var(--err); }
.btn-danger-text:hover { border-color: var(--err); color: var(--err); }
.btn-sm { min-height: 34px; padding: .35rem .75rem; font-size: .85rem; }
.btn-lg { min-height: 50px; padding: .8rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-group { display: inline-flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.share-card .btn-primary { margin-top: .35rem; }

.tag { display: inline-block; margin-left: .35rem; font-size: .7rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--blue-50); color: var(--muted); vertical-align: middle; }
.tag-link { background: var(--orange-50); color: var(--orange-600); }
.tag-exec { background: #EEF0FF; color: #050036; }
.tag-ok { background: var(--ok-50); color: var(--ok); }
.tag-warn { background: var(--warn-50); color: var(--warn); }

.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: var(--blue-50); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-received { background: var(--blue-50); color: var(--brand-blue); }
.badge-negotiation { background: var(--orange-50); color: var(--orange-600); }
.badge-inspection { background: #f1ecff; color: #5b36c9; }
.badge-registration { background: #e3f5f4; color: #0d6e66; }
.badge-completed, .badge-user-active { background: var(--ok-50); color: var(--ok); }
.badge-archived, .badge-user-disabled { background: #eef0f4; color: var(--muted); }
.badge-failed, .badge-uncertain, .badge-user-failed { background: var(--err-50); color: var(--err); }
.badge-queued, .badge-sending, .badge-user-validating, .badge-user-invited { background: var(--warn-50); color: var(--warn); }

/* segmentado (período) */
.segmented { display: inline-flex; gap: .25rem; padding: .25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 1.25rem; max-width: 100%; overflow-x: auto; }
.segmented a { padding: .4rem .95rem; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.segmented a:hover { color: var(--ink); }
.segmented a.is-active { background: var(--brand-blue); color: #fff; }

/* ============ formulários */
.form { display: grid; gap: 1rem; }
label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); }
label > input, label > select { display: block; margin-top: .35rem; }
label small { font-weight: 400; color: var(--muted); }
input, select {
  width: 100%; min-width: 0; min-height: 44px; padding: .6rem .8rem; font: inherit; font-size: 16px; /* 16px evita zoom no iOS */
  color: var(--text); background: var(--surface); border: 1px solid #d6d9e4; border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(5, 0, 54, .12); }
input[readonly] { background: var(--bg); }
select:disabled, input:disabled { background: var(--bg); color: var(--muted); }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 500; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand-orange); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.span-2 { grid-column: 1 / -1; }
.form-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; align-items: end; }
.filters .check { min-height: 44px; }
.step { display: flex; align-items: center; gap: .6rem; font-size: 1rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; padding-top: 0; }
.step span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-blue); color: #fff; font-size: .85rem; }
.feedback { min-height: 1.4em; margin: 0; color: var(--muted); font-weight: 500; }
.feedback.error { color: var(--err); }
.plate-status { margin: 0; padding: .55rem .75rem; border-radius: 8px; background: #f3f4f8; color: var(--muted); font-size: .9rem; }
.plate-status.is-ok { background: var(--ok-50); color: var(--ok); }
.plate-status.is-warn { background: var(--warn-50); color: var(--warn); }.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { flex: 1; }
/* Elementos do visual novo dos sites (site.css): escondidos no visual clássico */
.lp-card-title, .plate-band { display: none; }
.form-section { margin: 1.25rem 0 .6rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .95rem; }
.form-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.warn-text { color: var(--warn); }
.sites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; margin-top: 1rem; }
.site-card { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.site-card.is-main { border-color: var(--brand-orange); box-shadow: 0 0 0 1px var(--brand-orange), var(--shadow); }
.site-card.is-off { opacity: .7; }
.site-card.is-empty { border-style: dashed; box-shadow: none; }
.site-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.site-card-head > div { min-width: 0; }
.site-card h3 { margin: .15rem 0 .1rem; font-size: 1.1rem; color: var(--ink); overflow-wrap: anywhere; }
.site-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-orange); }
.site-url { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.site-facts { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .45rem .75rem; margin: 0; font-size: .88rem; }
.site-facts dt { color: var(--muted); }
.site-facts dd { margin: 0; overflow-wrap: anywhere; }
.site-card-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); }
.site-card-actions form { margin: 0; }
@media (max-width: 420px) { .sites-grid { grid-template-columns: 1fr; } }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--line, #d6dbe6); border-radius: 8px; overflow: hidden; background: #fff; }
.input-prefix > span { display: flex; align-items: center; padding: 0 .6rem; background: #f3f5f9; color: var(--muted); font-size: .85rem; white-space: nowrap; border-right: 1px solid var(--line, #d6dbe6); }
.input-prefix input { flex: 1; min-width: 0; border: 0; border-radius: 0; }
.quote-form { max-width: 860px; }
.quote-form .btn-lg { justify-self: start; }

/* ============ tabelas */
.table-wrap { overflow-x: auto; margin: 0 -1.4rem; padding: 0 1.4rem; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .55rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .85rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfd; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .right { text-align: right; }
.table select { min-height: 36px; padding: .35rem .6rem; font-size: .88rem; width: auto; max-width: 240px; }
.row-link { color: var(--ink); }

/* ============ painel */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; display: grid; gap: .2rem; }
.kpi-label { color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.kpi strong { font-size: 2rem; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-sub { color: var(--muted); font-size: .84rem; }
.kpi-accent { background: var(--brand-blue); border-color: var(--brand-blue); }
.text-err { color: var(--err) !important; }
.pix-qr { display: block; width: 220px; max-width: 100%; height: auto; margin: 0 auto 1rem; border: 10px solid #fff; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); image-rendering: pixelated; }
.copy-code { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; padding: .6rem .7rem; border: 1px solid #d6d9e4; border-radius: var(--radius-sm); background: var(--bg); resize: vertical; word-break: break-all; margin-top: .35rem; }
.pay-card label { margin-bottom: .75rem; }
.money-lg { font-size: 1.4rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.collapsible-inline > summary { cursor: pointer; font-weight: 600; color: var(--ink); margin: .25rem 0 .75rem; }
.pay-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.override-form input { width: 90px; min-height: 34px; padding: .3rem .5rem; }
.edit-amount { text-align: left; margin-top: .25rem; }
.edit-amount > summary { cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--brand-orange); text-align: right; list-style: none; }
.edit-amount > summary::-webkit-details-marker { display: none; }
.edit-amount[open] > summary { margin-bottom: .5rem; }
.edit-amount .form { gap: .5rem; min-width: 220px; }
.edit-amount input { min-height: 36px; padding: .4rem .6rem; font-size: .9rem; }
.input-rate { width: 80px !important; min-height: 34px; padding: .3rem .5rem; }
.switch {display: inline-flex; align-items: center; gap: .45rem; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--muted); }
.switch span { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #cfd3de; transition: background .15s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch.is-on span { background: var(--brand-orange); }
.switch.is-on span::after { transform: translateX(16px); }
.switch em { font-style: normal; font-weight: 600; font-size: .85rem; }
.switch.is-on em { color: var(--ink); }
.pend-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .2rem; font-size: .86rem; }
.pend-list li::before { content: "• "; color: var(--brand-orange); font-weight: 800; }
.pend-list li.ok::before { content: "✓ "; color: var(--ok); }
.bill-actions {display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.bill-actions .feedback { flex-basis: 100%; }
a.kpi-link { color: inherit; font-weight: inherit; transition: transform .15s; }
a.kpi-link:hover { transform: translateY(-2px); }
.kpi-accent .kpi-label, .kpi-accent .kpi-sub { color: #c8c6e0; }
.kpi-accent strong { color: var(--brand-orange); }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; }
.grid-main > .card { margin-bottom: 1.25rem; }
.funnel { display: grid; gap: .7rem; }
.funnel-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px; gap: .9rem; align-items: center; color: var(--text); font-weight: 500; }
.funnel-row:hover { color: var(--ink); }
.funnel-bar { height: 10px; background: var(--blue-50); border-radius: 999px; overflow: hidden; }
.funnel-bar span { display: block; height: 100%; width: 0; background: var(--brand-blue); border-radius: 999px; transition: width .5s ease; }
.funnel-row:last-child .funnel-bar span { background: var(--brand-orange); }
.funnel-value { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ranking { list-style: none; margin: 0; padding: 0; display: grid; }
.ranking li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ranking li:last-child { border-bottom: 0; }
.ranking-name { color: var(--ink); }
.ranking-stats { color: var(--muted); font-size: .88rem; }
.ranking-stats strong { color: var(--brand-orange); }

/* ============ cotação */
.quote-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.quote-title h2 { font-size: 1.25rem; margin-bottom: .25rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem 1.5rem; margin: 1.25rem 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.facts dd { margin: .15rem 0 0; font-weight: 600; color: var(--ink); word-break: break-word; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; }
.archive > summary { list-style: none; }
.archive > summary::-webkit-details-marker { display: none; }
.archive[open] { flex-basis: 100%; }
.archive form { margin-top: .75rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: .5rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .65rem; background: var(--surface); }
.plan header { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.plan-selected { border: 2px solid var(--brand-orange); box-shadow: 0 0 0 4px var(--orange-50); }
.plan-price { font-size: 1.8rem; font-weight: 800; color: var(--ink); margin: 0; line-height: 1.1; }
.plan-price small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.plan-meta { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; display: grid; gap: .2rem; }
.plan details { font-size: .88rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.plan summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.plan details ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--text); }
.plan .btn { margin-top: auto; }
.cta { text-align: center; margin: 1.5rem 0 0; }

.facts-plain { border: 0; padding: 0; margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); display: grid; gap: .8rem; }
.timeline li { position: relative; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.timeline li::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: .35em; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-orange); }
.timeline span { color: var(--muted); }
.timeline strong { color: var(--ink); }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1rem; }
.kpi .kpi-text { font-size: 1.35rem; padding: .2rem 0; }
.btn-group-start { justify-content: flex-start; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { padding: .7rem 1rem; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--brand-orange); }
.segmented .count { display: inline-block; min-width: 1.4em; padding: 0 .35em; margin-left: .25rem; border-radius: 999px; background: var(--blue-50); color: var(--ink); font-size: .75rem; text-align: center; }
.segmented a.is-active .count { background: rgba(255, 255, 255, .2); color: #fff; }
.search-inline input { min-width: 240px; }
.segmented-wrap { display: flex; flex-wrap: wrap; border-radius: 16px; overflow: visible; }
.plate { display: inline-block; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .06em;
  color: var(--ink); background: #fff; border: 1.5px solid var(--brand-blue); border-top-width: 5px; border-radius: 6px; padding: .05rem .5rem; font-size: .92rem; }
@media (max-width: 720px) { .search-inline, .search-inline input { width: 100%; min-width: 0; } }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.toolbar .segmented { margin-bottom: 0; }

.plan-group-title { font-size: .95rem; margin: 0 0 .75rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.plan-group-title .plan-pdf { margin-left: auto; display: inline-flex; gap: .4rem; flex-wrap: wrap; }
.adhesion-edit { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .75rem; margin: 0 0 1rem; }
.adhesion-edit label { flex: 0 1 220px; margin: 0; }
.adhesion-edit small { flex-basis: 100%; }
/* ---- Página de captura (link público) */
.lp { display: grid; gap: 1.75rem; }
.lp [hidden] { display: none !important; }
.public-header .public-wrap { display: flex; justify-content: center; }
.lp-mascot { display: block; width: auto; max-width: 100%; height: 240px; object-fit: contain; margin: .25rem auto 0; }
.lp-hero h1 { text-transform: uppercase; letter-spacing: .01em; }
.lp-hero { background: linear-gradient(140deg, var(--brand-blue) 0%, #120a5c 100%); color: #fff; border-radius: 18px; padding: clamp(1.25rem, 4vw, 2.5rem);
  display: grid; gap: 1.5rem; grid-template-columns: 1.1fr 1fr; align-items: center; position: relative; overflow: hidden; }
.lp-hero::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: var(--brand-orange); opacity: .18; }
.lp-hero-text { position: relative; z-index: 1; }
.lp-kicker { margin: 0 0 .5rem; color: var(--brand-orange); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.lp-hero h1 { color: #fff; font-size: clamp(1.6rem, 4.4vw, 2.4rem); line-height: 1.12; margin: 0; }
.lp-sub { color: #d9d7ee; margin: .9rem 0 0; font-size: 1.02rem; line-height: 1.5; }
.lp-card { background: #fff; color: var(--text); border-radius: 14px; padding: 1.25rem; box-shadow: 0 18px 40px rgba(5, 0, 54, .35); position: relative; z-index: 1; }
.lp-step { display: grid; gap: .6rem; }
.lp-step-n { margin: 0; font-size: .75rem; font-weight: 700; color: var(--brand-orange); text-transform: uppercase; letter-spacing: .05em; }
.lp-label { font-weight: 600; color: var(--ink); font-size: .9rem; margin-top: .2rem; }
.lp-plate { font-size: 1.6rem; font-weight: 800; letter-spacing: .14em; text-align: center; text-transform: uppercase; min-height: 58px;
  border: 2px solid var(--brand-blue); border-radius: 10px; }
.lp-msg { margin: 0; font-size: .88rem; color: var(--muted); min-height: 1.2em; }
.lp-msg.error { color: var(--err); }
.lp-manual { display: grid; gap: .5rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.lp-vehicle { margin: 0; padding: .6rem .75rem; background: var(--orange-50); border-radius: 8px; font-weight: 600; color: var(--ink); font-size: .92rem; }
.lp-back { background: none; border: 0; color: var(--muted); font-size: .85rem; text-decoration: underline; cursor: pointer; padding: .25rem; }
.lp-legal { margin: .75rem 0 0; font-size: .74rem; color: var(--muted); text-align: center; }
.lp-legal a { color: var(--brand-blue); text-decoration: underline; }
.cta-center { display: flex; justify-content: center; }
.cta-center .btn { width: 100%; max-width: 420px; justify-content: center; text-align: center; }
.lp-benefits h2, .lp-how h2, .lp-faq h2 { font-size: 1.25rem; margin: 0 0 1rem; color: var(--ink); }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: .75rem; }
.lp-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; display: grid; gap: .25rem; border-top: 3px solid var(--brand-orange); }
.lp-grid strong { color: var(--ink); }
.lp-grid span { color: var(--muted); font-size: .88rem; }
.lp-how ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; color: var(--text); }
.lp-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem; margin-bottom: .5rem; }
.lp-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.lp-faq p { margin: .5rem 0 0; color: var(--text); }
@media (max-width: 760px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .lp-grid { grid-template-columns: 1fr; } }
.lead-hide { display: inline-block; margin-left: .35rem; }
.kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .kpis.kpis-3 { grid-template-columns: 1fr; } }
.kpis.kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.earnings .kpi { box-shadow: none; border: 1px solid var(--line); }
@media (max-width: 560px) { .kpis.kpis-2 { grid-template-columns: 1fr; } }
.region-city { display: grid; gap: .3rem; min-width: 180px; }
.region-city details { display: grid; gap: .35rem; }
.region-city select { font-size: .85rem; }
.term-text { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; line-height: 1.45; }
.accept-title { font-size: 1.6rem; margin: 0 0 .3rem; color: var(--ink); }
.accept > .muted { margin: 0 0 1.25rem; }
.accept .plans { margin-bottom: 1.25rem; }
.accept-confirm { border: 2px solid var(--brand-orange); display: grid; gap: .75rem; }
.accept-confirm h2 { margin: 0; font-size: 1.15rem; }
.accept-confirm p { margin: 0; }
.accept-share { display: grid; gap: .6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.accept-share-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.accept-share-row input { flex: 1 1 260px; min-width: 0; font-size: .85rem; }
.plans + .plan-group-title, .plan-others .plan-group-title { margin-top: 1.25rem; }
.plan-others { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.plan-others > summary { cursor: pointer; font-weight: 700; color: var(--brand-orange); }

/* ============ fluxo da venda (página da cotação) */
.sale { max-width: 980px; }
.sale > .feedback { margin-bottom: .5rem; }
.sale-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.sale-step { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; background: var(--surface); }
.sale-step h3 { font-size: 1rem; margin-bottom: .15rem; }
.sale-step-head { display: flex; gap: .85rem; align-items: flex-start; }
.sale-step-head p { margin: 0; }
.sale-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--muted); font-weight: 800; font-size: .9rem; flex: none; }
.sale-step.is-current { border-color: var(--brand-orange); box-shadow: 0 0 0 3px var(--orange-50); }
.sale-step.is-current .sale-num { background: var(--brand-orange); color: var(--brand-blue); }
.sale-step.is-done .sale-num { background: var(--ok); color: #fff; font-size: 0; }
.sale-step.is-done .sale-num::after { content: "✓"; font-size: .95rem; }
.sale-step.is-locked { background: #fafbfd; }
.sale-step.is-locked h3, .sale-step.is-locked .sale-num { opacity: .55; }
.sale-step > .alert { margin: .75rem 0 0; }
.sale-step > .actions { margin-top: .9rem; }
.sale-details { margin-top: .9rem; }
.sale-details > summary { cursor: pointer; font-weight: 700; color: var(--brand-orange); list-style: none; }
.sale-details > summary::-webkit-details-marker { display: none; }
.sale-details > summary::before { content: "▸ "; }
.sale-details[open] > summary::before { content: "▾ "; }
.sale-details[open] > summary { margin-bottom: .9rem; }
.sale-details .btn { justify-self: start; }
.sale-sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: .25rem 0 -.25rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.span-2-md { grid-column: span 2; }
.sale-howto { margin: .9rem 0 0; padding-left: 1.25rem; display: grid; gap: .35rem; font-size: .92rem; }
.sale-howto em { font-style: normal; font-weight: 600; color: var(--ink); }
.sale-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .9rem; }
.sale-filebox .check { margin-top: .25rem; }
.sale-filebox { border: 1.5px dashed #cfd3de; border-radius: var(--radius-sm); padding: .85rem; display: grid; gap: .5rem; align-content: start; }
.sale-filebox.has-files { border-style: solid; border-color: var(--ok); background: var(--ok-50); }
.sale-filebox h4 { margin: 0; font-size: .92rem; color: var(--ink); }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .88rem; }
.file-list li { display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: baseline; }
.file-list a { word-break: break-all; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: underline; }
.upload-btn { position: relative; display: inline-block; font-weight: 600; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; min-height: 0; }
.upload-btn input:disabled + .btn { opacity: .5; }
.upload-progress { display: grid; gap: .25rem; }
.upload-progress span { display: block; height: 8px; width: 0; border-radius: 999px; background: var(--brand-orange); transition: width .2s; }
.upload-progress em { font-style: normal; font-size: .78rem; color: var(--muted); word-break: break-all; }
.sale-summary { font-family: inherit; font-size: .9rem; margin: .9rem 0 .75rem; word-break: normal; white-space: pre-wrap; }
@media (max-width: 860px) { .sale-files, .grid-3 { grid-template-columns: minmax(0, 1fr); } .span-2-md { grid-column: auto; } }

/* ============ análise de vendas */
.nav-count { margin-left: auto; min-width: 22px; padding: 0 .4rem; border-radius: 999px; background: var(--brand-orange); color: var(--brand-blue); font-size: .75rem; font-weight: 800; text-align: center; line-height: 1.5; }
.review-facts { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: .9rem; }
.review-facts .span-all { grid-column: 1 / -1; }
.review-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; margin-top: .9rem; }
.review-media figure { margin: 0; display: grid; gap: .35rem; }
.review-media video, .review-media img { width: 100%; max-height: 360px; object-fit: contain; background: #0b0a1f; border-radius: var(--radius-sm); }
.review-media img { background: var(--bg); }
.review-media figcaption { font-size: .82rem; color: var(--muted); word-break: break-all; }
.review-thumb { display: block; max-width: 100%; max-height: 260px; margin-top: .75rem; border-radius: var(--radius-sm); border: 1px solid var(--line); }
label > textarea { display: block; margin-top: .35rem; width: 100%; font-family: inherit; }

/* ============ páginas públicas e de acesso */
body.public { background: var(--bg); }
.public-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.public-header .public-wrap { padding-top: .6rem; padding-bottom: .6rem; }
.public-header img { width: 88px; display: block; }
.public-wrap { width: 100%; max-width: 920px; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.public-main { padding-top: 1.5rem; padding-bottom: 3rem; }
.public-footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 2rem 1rem; }
.hero { background: var(--brand-blue); color: #fff; border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.25rem); margin-bottom: 1.25rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--brand-orange); opacity: .9; }
.hero h1 { color: #fff; font-size: clamp(1.35rem, 3.5vw, 1.9rem); max-width: 560px; position: relative; z-index: 1; }
.hero p { color: #d6d4ea; margin: .6rem 0 0; max-width: 560px; position: relative; z-index: 1; }
.hero strong { color: #fff; }
.auth-card { max-width: 420px; margin: 2.5rem auto; padding: 2rem; }
.auth-card h1 { font-size: 1.4rem; margin-bottom: .35rem; }
.legal-page { max-width: 760px; margin: 0 auto; line-height: 1.6; }
.legal-page h1 { font-size: 1.45rem; margin-bottom: .25rem; }
.legal-page h2 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; color: var(--brand-blue); }
.legal-page p, .legal-page li { overflow-wrap: anywhere; }
.legal-page ul { padding-left: 1.2rem; }

/* ============ responsivo */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main, .grid-dash { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(84vw, 300px); z-index: 20; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(5, 0, 54, .2); }
  .sidebar.is-open { transform: none; }
  .menu-toggle, .topbar-logo { display: inline-grid; }
  .topbar-logo img { width: 54px; }
  .page-title { font-size: 1.05rem; text-align: center; }
  .topbar-cta { padding: .45rem .8rem; min-height: 38px; font-size: .85rem; }
}
@media (max-width: 720px) {
  .card { padding: 1rem; border-radius: 12px; }
  .table-wrap { margin: 0; padding: 0; overflow: visible; }
  /* tabelas viram cartões */
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; margin-bottom: .75rem; }
  .table-stack tbody tr:hover td { background: none; }
  .table-stack td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem 0; border: 0; text-align: right; }
  .table-stack td::before { content: attr(data-label); font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; text-align: left; flex: none; }
  .table-stack td.cell-main { display: block; text-align: left; font-size: 1rem; padding-bottom: .6rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line); }
  .table-stack td.cell-main::before { display: none; }
  .table-stack td[data-label="Ações"] { display: block; }
  .table-stack td[data-label="Ações"]::before { display: none; }
  .table-stack .btn-group { justify-content: stretch; width: 100%; }
  .table-stack .btn-group .btn { flex: 1; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .quote-form .btn-lg { justify-self: stretch; }
  .archive form { grid-template-columns: minmax(0, 1fr); }
  .funnel-row { grid-template-columns: 110px minmax(0, 1fr) 32px; gap: .6rem; font-size: .88rem; }
  .copy-row { flex-direction: column; }
  .hero::after { width: 120px; height: 120px; right: -70px; top: -70px; }
  .kpi strong { font-size: 1.6rem; }
  .topbar-cta { width: 40px; min-height: 40px; padding: 0; justify-content: center; }
  .topbar-cta span { display: none; }
  .rank-table .rank-bar { display: none; }
  .grid-dash { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 420px) {
  .kpis { gap: .6rem; }
  .kpi { padding: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Webhook do Power */
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85rem; }
input.mono { width: 100%; margin-top: .35rem; }
.wh-facts { margin: 1rem 0; }

/* ============ menu em grupos e visão geral (v21) */
.nav-group { display: block; margin: .9rem .8rem .25rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.topbar-cta { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-cta svg { width: 18px; height: 18px; stroke-width: 2.4; }
.sync-note { display: inline-flex; align-items: center; gap: .45rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.grid-dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 1.25rem; align-items: start; }
.grid-dash > .card { margin-bottom: 1.25rem; }
.funnel-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.5rem !important; padding-top: 1rem !important; border-top: 1px solid var(--line) !important; }
.rank-table th, .rank-table td { padding: .55rem .5rem; vertical-align: middle; }
.rank-table th:first-child, .rank-table td:first-child { width: 2rem; padding-left: 0; }
.rank-name a, .rank-name span { color: var(--ink); font-weight: 600; }
.rank-name a:hover { color: var(--brand-orange); }
.rank-sales { white-space: nowrap; }
.rank-sales strong { display: inline-block; min-width: 1.8rem; color: var(--brand-orange); font-variant-numeric: tabular-nums; }
.rank-sales .small { margin-left: .35rem; }
.rank-bar { display: inline-block; width: 70px; height: 6px; margin-right: .5rem; vertical-align: middle; background: var(--orange-50); border-radius: 999px; overflow: hidden; }
.rank-bar span { display: block; height: 100%; width: 0; background: var(--brand-orange); border-radius: 999px; transition: width .5s ease; }
.rank-more { margin: .75rem 0 0; }@media (max-width: 1100px) { .grid-dash { grid-template-columns: minmax(0, 1fr); gap: 0; } }
@media (max-width: 720px) { .topbar-cta { width: 40px; min-height: 40px; padding: 0; justify-content: center; } .topbar-cta span { display: none; } .rank-bar { display: none; } .funnel-facts { grid-template-columns: minmax(0, 1fr); } }

/* ============ menu do usuário no topo (v22) */
.user-menu { position: relative; margin-left: auto; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem .3rem .3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; user-select: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { border-color: var(--brand-orange); }
.user-menu summary:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 2px; }
.user-menu .avatar { width: 34px; height: 34px; font-size: .8rem; }
.user-menu .who { max-width: 200px; line-height: 1.2; }
.user-menu .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .15s ease; }
.user-menu[open] .chev { transform: rotate(180deg); }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(5, 0, 54, .14); padding: .4rem; z-index: 30; }
.user-menu-head { display: grid; padding: .6rem .7rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.user-menu-head strong { color: var(--ink); font-size: .92rem; word-break: break-word; }
.user-menu-head small { color: var(--muted); font-size: .78rem; }
.user-menu-item { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .7rem; border: 0; border-radius: var(--radius-sm); background: none; color: var(--err); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.user-menu-item:hover { background: var(--bg); }
.user-menu-item svg { width: 18px; height: 18px; }
a.user-menu-item { color: var(--ink); text-decoration: none; }
.user-menu-item svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* ---------- Nova cotação (painel): celular primeiro */
.qf { display: grid; gap: 1rem; max-width: 760px; margin: 0 auto; padding-bottom: 1rem; }
.qf-top { display: grid; gap: .35rem; }
.qf-back { font-size: .88rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.qf-back:hover { color: var(--ink); }
.qf-intro { margin: 0; color: var(--muted); font-size: .95rem; }
.qf-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; box-shadow: var(--shadow); display: grid; gap: .9rem; }
.qf-head { display: flex; gap: .8rem; align-items: center; }
.qf-head h2 { margin: 0; font-size: 1.08rem; color: var(--ink); }
.qf-head p { margin: .1rem 0 0; font-size: .85rem; color: var(--muted); }
.qf-num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--orange-50); color: var(--orange-600); font-weight: 800; }
.qf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
.qf-wide { grid-column: 1 / -1; }
.qf-field { display: grid; gap: .35rem; font-weight: 600; font-size: .88rem; color: var(--ink); min-width: 0; }
.qf-field input, .qf-field select, .qf .combo-input { min-height: 48px; font-size: 1rem; border-radius: 12px; }
.qf-hint { margin: 0; }
.qf .plate-status { margin: 0; }
/* placa no formato Mercosul */
.qf .plate-mercosul { display: block; border: 3px solid #1b1b1b; border-radius: 12px; overflow: hidden; background: #fff; max-width: 360px; }
.qf .plate-band { display: flex; justify-content: center; align-items: center; background: #0a3d9c; height: 20px; }
.qf .plate-band span { color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .45em; padding-left: .45em; }
.qf .plate-mercosul input { display: block; width: 100%; border: 0; border-radius: 0; box-shadow: none; min-height: 60px; text-align: center; font-size: 1.9rem; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase; color: #111; font-family: "Arial Black", "Segoe UI Black", Arial, sans-serif; }
.qf .plate-mercosul input::placeholder { color: #c9cad4; }
.qf .plate-mercosul:focus-within { border-color: var(--brand-orange); box-shadow: 0 0 0 4px rgba(255, 110, 1, .18); }
.qf-chip { justify-self: start; margin: 0; padding: .4rem .75rem; border-radius: 999px; background: var(--blue-50); color: var(--ink); font-size: .85rem; font-weight: 700; }
.qf-check { display: flex; gap: .55rem; align-items: center; font-size: .9rem; color: var(--text); }
.qf-check input { width: 20px; height: 20px; }
/* interruptor da cotação de teste */
.qf-switch { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; background: var(--bg); cursor: pointer; }
.qf-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qf-switch-ui { flex: none; position: relative; width: 46px; height: 26px; border-radius: 999px; background: #cfd2de; transition: background .2s; margin-top: .1rem; }
.qf-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.qf-switch input:checked + .qf-switch-ui { background: var(--brand-orange); }
.qf-switch input:checked + .qf-switch-ui::after { transform: translateX(20px); }
.qf-switch input:focus-visible + .qf-switch-ui { box-shadow: 0 0 0 3px rgba(255, 110, 1, .3); }
.qf-switch strong { display: block; color: var(--ink); }
.qf-switch small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: .1rem; }
.qf-submit { display: grid; gap: .5rem; }
.qf-submit .feedback { margin: 0; }
.qf-submit .btn { width: 100%; min-height: 54px; font-size: 1.05rem; border-radius: 14px; }
/* lista com busca */
.combo { position: relative; }
.combo-input { width: 100%; box-sizing: border-box; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.combo-native { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.combo-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); max-height: min(320px, 50vh); overflow-y: auto; margin: 0; padding: .3rem; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px rgba(5, 0, 54, .16); -webkit-overflow-scrolling: touch; }
.combo-list li { padding: .7rem .75rem; border-radius: 8px; cursor: pointer; font-weight: 500; font-size: .95rem; color: var(--text); }
.combo-list li:hover, .combo-list li.is-sel { background: var(--orange-50); color: var(--ink); }
.combo-list .combo-empty { color: var(--muted); cursor: default; }
@media (max-width: 720px) {
  .qf { gap: .8rem; padding-bottom: 5.5rem; }
  .qf-card { padding: 1rem; border-radius: 16px; }
  .qf-fields { grid-template-columns: 1fr; }
  .qf .plate-mercosul { max-width: none; }
  /* botão sempre à mão no celular */
  .qf-submit { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--surface);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(5, 0, 54, .08); }
  .qf-submit .feedback:empty { display: none; }
  /* com a barra de abas do app: o botão fica logo acima dela, e a barra continua visível */
  body.has-tabbar .qf-submit { bottom: calc(64px + env(safe-area-inset-bottom)); padding: .5rem 1rem; box-shadow: 0 -6px 16px rgba(5, 0, 54, .06); }
  body.has-tabbar .qf { padding-bottom: 5rem; }
}

/* ---------- Página da cotação: topo e planos */
.quote-who { min-width: 0; flex: 1 1 320px; }
.quote-kicker { margin: 0 0 .2rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-orange); display: flex; gap: .4rem; align-items: center; }
.quote-title h2 { font-size: 1.45rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
.quote-chips { list-style: none; margin: .55rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.quote-chips li { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--text); max-width: 100%; }
.quote-chips svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--brand-orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quote-facts { background: var(--bg); border: 0; border-radius: var(--radius-sm); padding: .9rem 1rem; margin: 1rem 0; }
.quote-facts a { color: var(--ink); font-weight: 700; }
.quote-head .actions { padding-top: .25rem; }
.plans-empty { display: grid; gap: .3rem; padding: 1.4rem 1.2rem; border: 1px dashed #d5d8e3; border-radius: var(--radius); background: var(--bg); text-align: center; }
.plans-empty strong { color: var(--ink); }
.plans-empty span { color: var(--muted); font-size: .9rem; }
.plans-empty a { color: var(--ink); font-weight: 700; }
.plan { transition: border-color .15s, box-shadow .15s, transform .15s; }
.plan:hover { border-color: #ffc59b; box-shadow: 0 10px 26px rgba(5, 0, 54, .07); }
.plan h3 { font-size: 1rem; margin: 0; color: var(--ink); }
.plan-price { font-size: 2rem; letter-spacing: -.02em; }
.plan-meta li { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.plan-meta li:last-child { border-bottom: 0; }
@media (max-width: 720px) {
  .quote-title h2 { font-size: 1.2rem; }
  .quote-facts { grid-template-columns: 1fr 1fr; gap: .7rem 1rem; }
  .quote-head .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .quote-head .actions .archive[open] { grid-column: 1 / -1; }
  .quote-head .actions .archive > summary { display: block; text-align: center; }
  .archive form { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}

/* ---------- Modal de confirmação do portal (no lugar das caixinhas do navegador) */
body.umodal-open { overflow: hidden; }
.umodal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 1.25rem; background: rgba(5, 0, 54, .5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: qwait-in .15s ease-out; }
.umodal-box { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 1.5rem 1.5rem 1.25rem; box-shadow: 0 30px 80px rgba(5, 0, 54, .3); }
.umodal-box h2 { margin: 0 0 .5rem; font-size: 1.15rem; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.umodal-box p { margin: 0; color: var(--text); font-size: .95rem; line-height: 1.55; }
.umodal-copy { width: 100%; margin-top: .9rem; font-size: .9rem; }
.umodal-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.3rem; }
.umodal-actions .btn { min-height: 44px; padding-left: 1.2rem; padding-right: 1.2rem; }
@media (max-width: 720px) {
  .umodal { align-items: end; padding: 0; }
  .umodal-box { max-width: none; border-radius: 20px 20px 0 0; padding: 1.4rem 1.25rem calc(1.2rem + env(safe-area-inset-bottom)); animation: qwait-up .2s ease-out; }
  .umodal-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .umodal-actions .btn[hidden] + .btn { grid-column: 1 / -1; }
}

/* ---------- "Gerando a cotação" (cobre a página até os planos chegarem) */
body.qwait-open { overflow: hidden; }
.qwait { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.25rem; background: rgba(5, 0, 54, .55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: qwait-in .2s ease-out; }
@keyframes qwait-in { from { opacity: 0; } to { opacity: 1; } }
.qwait-box { width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 1.75rem 1.5rem 1.4rem; box-shadow: 0 30px 80px rgba(5, 0, 54, .35); text-align: center; }
.qwait-box h2 { margin: .9rem 0 1rem; font-size: 1.25rem; color: var(--ink); }
.qwait-spin { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; border: 5px solid var(--orange-50); border-top-color: var(--brand-orange); animation: qwait-rot .9s linear infinite; }
@keyframes qwait-rot { to { transform: rotate(360deg); } }
.qwait-bar { height: 8px; border-radius: 999px; background: #eef0f6; overflow: hidden; }
.qwait-bar span { display: block; height: 100%; width: 4%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-orange), #ff9a4a); transition: width .4s ease; }
.qwait-steps { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .55rem; text-align: left; }
.qwait-steps li { position: relative; padding-left: 1.9rem; color: var(--muted); font-weight: 600; font-size: .95rem; }
.qwait-steps li::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid #d5d8e3; box-sizing: border-box; }
.qwait-steps li.is-on { color: var(--ink); }
.qwait-steps li.is-on::before { border-color: var(--brand-orange); border-top-color: transparent; animation: qwait-rot .8s linear infinite; }
.qwait-steps li.is-done { color: var(--ok); }
.qwait-steps li.is-done::before { border-color: var(--ok); background: var(--ok); }
.qwait-steps li.is-done::after { content: ""; position: absolute; left: 6px; top: 50%; width: 4px; height: 8px; margin-top: -6px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.qwait-tip { margin: 1.1rem 0 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 720px) {
  .qwait { align-items: end; padding: 0; }
  .qwait-box { max-width: none; border-radius: 22px 22px 0 0; padding: 1.6rem 1.25rem calc(1.4rem + env(safe-area-inset-bottom)); animation: qwait-up .25s ease-out; }
  @keyframes qwait-up { from { transform: translateY(40px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .qwait-spin, .qwait-steps li.is-on::before { animation-duration: 3s; } }

/* Ações da página (ex.: "+ Nova cotação" em Cotações) */
.page-actions { display: flex; justify-content: flex-end; gap: .5rem; margin: 0 0 1rem; }
/* Configurações: abas no topo das páginas da área */
.settings-tabs { display: flex; gap: .25rem; margin: 0 0 1rem; padding: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.settings-tabs a { flex: none; padding: .55rem 1rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted); white-space: nowrap; }
.settings-tabs a:hover { color: var(--ink); background: var(--bg); }
.settings-tabs a.is-active { background: var(--brand-blue); color: #fff; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.settings-card { display: flex; flex-direction: column; gap: .55rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.settings-card:hover { border-color: var(--brand-orange); transform: translateY(-2px); }
.settings-card svg { width: 26px; height: 26px; fill: none; stroke: var(--brand-orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.settings-card strong { color: var(--ink); font-size: 1.05rem; }
.settings-card span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.settings-card em { margin-top: auto; font-style: normal; font-size: .82rem; color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  .user-menu .who, .user-menu .chev { display: none; }
  .user-menu summary { padding: .2rem; }
}

/* links do ranking (v23) */
.rank-link { color: var(--ink); font-weight: 600; border-bottom: 1px dashed var(--line); }
.rank-link:hover, .rank-pend:hover { color: var(--brand-orange); border-color: var(--brand-orange); }
.rank-pend { border-bottom: 1px dashed currentColor; }
.funnel-facts dd a { color: inherit; border-bottom: 1px dashed var(--line); }

/* ============ tela de login (v24) */
body.auth { background: var(--surface); }
.auth-shell { display: grid; grid-template-columns: minmax(380px, 46%) minmax(0, 1fr); min-height: 100vh; }
.auth-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: clamp(2rem, 4vw, 3.5rem); color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #1d1766 0%, rgba(29, 23, 102, 0) 55%), linear-gradient(160deg, #0a0548 0%, var(--brand-blue) 60%);
}
.auth-brand::before, .auth-brand::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.auth-brand::before { width: 520px; height: 520px; right: -220px; bottom: -200px; border: 70px solid rgba(255, 110, 1, .14); }
.auth-brand::after { width: 220px; height: 220px; right: 60px; top: -90px; background: rgba(255, 110, 1, .12); }
.auth-brand > * { position: relative; z-index: 1; }
.auth-logo { display: inline-grid; place-items: center; padding: .8rem 1.1rem; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.auth-logo img { width: 112px; display: block; }
.auth-brand-body { max-width: 30rem; }
.auth-kicker { display: inline-block; margin: 0 0 1rem; padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 110, 1, .16); color: #ffb27a; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.auth-brand h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1.18; letter-spacing: -.02em; margin-bottom: 1.75rem; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.auth-points li { display: flex; align-items: center; gap: .75rem; color: #d9d7ee; font-size: .98rem; }
.auth-points svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--brand-orange); color: #fff; stroke-width: 2.6; flex: none; }
.auth-brand-foot { margin: 0; color: #8f8bb8; font-size: .82rem; }

.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 1.5rem 1.5rem; background: var(--surface); }
.auth-panel { width: 100%; max-width: 400px; margin: auto 0; }
.auth-logo-mobile { display: none; width: 104px; margin: 0 auto 1.5rem; }
.auth-head { margin-bottom: 1.75rem; }
.auth-head h1 { font-size: 1.85rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.auth-head p { margin: 0; }
.auth-form { display: grid; gap: 1.1rem; }
.auth-field { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--ink); }
.auth-input { position: relative; display: block; }
.auth-input > svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.auth-input input { width: 100%; min-height: 50px; margin: 0; padding: .7rem 3rem .7rem 2.75rem; font-size: 1rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.auth-input input:focus { background: #fff; }
.auth-input:focus-within > svg { color: var(--brand-orange); }
.auth-eye { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.auth-eye:hover, .auth-eye[aria-pressed="true"] { color: var(--brand-blue); background: var(--blue-50); }
.auth-eye:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 1px; }
.auth-submit { width: 100%; min-height: 52px; margin-top: .4rem; font-size: 1rem; border-radius: 12px; box-shadow: 0 8px 20px rgba(255, 110, 1, .28); }
.auth-submit:disabled { opacity: .7; cursor: progress; }
.auth-note { display: flex; gap: .55rem; align-items: flex-start; margin: 1.5rem 0 0; padding: .85rem 1rem; border-radius: 12px; background: var(--bg); color: var(--muted); font-size: .85rem; line-height: 1.45; }
.auth-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--brand-blue); }
.auth-foot { margin-top: 2rem; color: var(--muted); font-size: .8rem; text-align: center; }
.auth .alert { margin-bottom: 1.1rem; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { display: none; }
  body.auth { background: var(--bg); }
  .auth-main { background: var(--bg); padding: 2rem 16px 1.25rem; }
  .auth-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1.75rem 1.4rem; }
  .auth-logo-mobile { display: block; }
  .auth-head { text-align: center; }
  .auth-head h1 { font-size: 1.5rem; }
}

/* consultora no painel do login (v26) */
.auth-hero { position: absolute; z-index: 1; right: clamp(0px, calc((100vw - 1300px) * .2), 1.25rem); bottom: 0; width: min(30vw, 440px, 52vh); height: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
@media (min-width: 1281px) {
  .auth-shell { grid-template-columns: minmax(600px, 56%) minmax(0, 1fr); }
  .auth-brand-body { max-width: 17rem; }
  .auth-brand h2 { font-size: clamp(1.55rem, 2vw, 2rem); }
  .auth-points li { font-size: .92rem; align-items: flex-start; }
}
@media (max-width: 1280px) { .auth-hero { display: none; } }

/* período do painel: seletor único (v32) */
.period-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.25rem; }
.period-row .sync-note { margin-left: auto; }
.period-picker { position: relative; }
.period-picker summary { list-style: none; display: flex; align-items: center; gap: .7rem; min-height: 50px; padding: .45rem .8rem .45rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; user-select: none; box-shadow: var(--shadow); }
.period-picker summary::-webkit-details-marker { display: none; }
.period-picker summary:hover, .period-picker[open] summary { border-color: var(--brand-orange); }
.period-picker summary:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 2px; }
.period-picker summary > svg:first-child { color: var(--brand-orange); }
.period-current { display: grid; line-height: 1.2; }
.period-current strong { color: var(--ink); font-size: .95rem; }
.period-current small { color: var(--muted); font-size: .78rem; }
.period-picker .chev { width: 16px; height: 16px; color: var(--muted); margin-left: .25rem; transition: transform .15s ease; }
.period-picker[open] .chev { transform: rotate(180deg); }
.dropdown-panel { position: absolute; left: 0; top: calc(100% + .5rem); z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(5, 0, 54, .16); }
.period-panel { width: 340px; padding: 1rem; }
.period-title { margin: 0 0 .5rem; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.period-presets { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin-bottom: 1rem; }
.period-presets a { padding: .5rem .7rem; border-radius: 9px; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .88rem; text-align: center; }
.period-presets a:hover { border-color: var(--brand-orange); color: var(--ink); }
.period-presets a.is-active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.period-form { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.period-form label { display: grid; gap: .3rem; margin: 0; font-size: .8rem; font-weight: 600; color: var(--muted); }
.period-form input[type="date"] { margin: 0; min-height: 40px; padding: .35rem .5rem; font-size: .9rem; border-radius: 9px; width: 100%; }
.period-form .btn { grid-column: 1 / -1; }
.period-note { margin: 0; }
@media (max-width: 720px) {
  .period-picker, .period-picker summary { width: 100%; }
  .period-picker .chev { margin-left: auto; }
  .period-panel { width: 100%; }
  .dropdown-panel { right: 0; }
  .period-row .sync-note { margin-left: 0; }
}

/* grupos de vendedores / minha equipe (v34) */
.pick { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem .5rem; margin: 1rem 0; min-width: 0; }
.pick legend { font-weight: 600; color: var(--ink); padding: 0 .35rem; }
.pick-search { width: 100%; margin-bottom: .6rem; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .15rem .75rem; max-height: 320px; overflow-y: auto; padding: .15rem; }
.pick-item { display: flex; align-items: center; gap: .5rem; padding: .35rem .45rem; border-radius: 8px; cursor: pointer; font-weight: 400; color: var(--text); }
.pick-item:hover { background: var(--blue-50); }
.pick-item input { width: auto; margin: 0; flex: none; accent-color: var(--brand-orange); }
.pick-item[hidden] { display: none; }
.pick-item:has(input:checked) { background: var(--blue-50); font-weight: 600; color: var(--ink); }
.team-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; }
.team-name { margin: 0; font-size: 1.15rem; color: var(--ink); }
.team-switch label { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 600; }
.team-switch select { min-width: 220px; }
.team-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 1.25rem; }
.team-grid > .card { margin-bottom: 0; }
@media (min-width: 1200px) { .team-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }

/* comissões: adesões da semana (v36) */
.text-warn { color: var(--warn) !important; }
.comm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-bottom: 1.25rem; }
.comm-friday label { display: flex; align-items: center; gap: .6rem; margin: 0; font-weight: 600; color: var(--ink); white-space: nowrap; }
.comm-friday select { min-width: 210px; }
.comm-week { margin: 0; }
.comm-steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .75rem; padding: 0; margin: 0 0 1.25rem; }
.comm-steps li { counter-increment: st; display: flex; gap: .65rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .85rem; font-size: .88rem; color: var(--muted); }
.comm-steps li::before { content: counter(st); display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-blue); color: #fff; font-weight: 700; font-size: .8rem; }
.comm-steps strong { color: var(--ink); }
.comm-summary a { font-weight: 600; }
.comm-seller { scroll-margin-top: 80px; }
.comm-seller-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-bottom: .75rem; }
.comm-seller-head h2 { margin: 0 0 .15rem; }
.comm-seller-total { display: flex; align-items: center; gap: .75rem; }
.comm-items td { vertical-align: top; }
.comm-items .tag { margin: .3rem 0 0; }
.comm-items .plate { font-size: .78rem; }
.row-attention td { background: var(--warn-50); }
.receipt-link { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; background: var(--blue-50); color: var(--brand-blue); font-weight: 600; font-size: .82rem; white-space: nowrap; margin: 0 .25rem .25rem 0; }
.receipt-link:hover { background: var(--orange-50); color: var(--orange-600); }
.receipt-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.comm-amount strong { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.comm-adjusted { color: var(--orange-600); font-weight: 600; }
.comm-amount .edit-amount { margin-left: auto; max-width: 260px; }
.comm-pay { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(170px, .9fr) minmax(220px, 1.4fr) auto auto; align-items: end; gap: .75rem; margin-top: 1rem; padding: 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.comm-pay label { margin: 0; }
.comm-pay .check { align-self: center; }
.comm-pay-title { align-self: center; color: var(--ink); }
@media (max-width: 1100px) { .comm-pay { grid-template-columns: 1fr 1fr; } .comm-pay-title, .comm-pay .check { grid-column: 1 / -1; } }
@media (max-width: 560px) { .comm-pay { grid-template-columns: 1fr; } .comm-amount .edit-amount { max-width: none; } }
.row-muted td { color: var(--muted); }
.kpi-potential { border-style: dashed; }
.potential-cell strong { color: var(--orange-600); }
.comm-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; }
.comm-nav > a { font-weight: 600; }
.comm-nav-step { display: flex; align-items: center; gap: .5rem; }
.pick-item.is-taken { opacity: .55; cursor: not-allowed; }
.role-help { margin: 0 0 .75rem; padding-left: 1.1rem; }
.role-help li { margin-bottom: .25rem; }
/* v40: nome clicável na recorrência + detalhe */
.link-strong { color: var(--brand-blue); text-decoration: none; }
.link-strong:hover strong { text-decoration: underline; color: var(--orange-600); }
.card > .kpis { margin: .75rem 0 0; }
/* v41: clientes por regional */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.region-card { display: flex; flex-direction: column; gap: .9rem; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; margin: 0; }
.region-card:hover { border-color: var(--orange-600); box-shadow: 0 6px 18px rgba(5, 0, 54, .08); }
.region-card-head { display: flex; flex-direction: column; gap: .15rem; }
.region-card-head strong { font-size: 1.05rem; color: var(--brand-blue); }
.region-card-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.region-card-stats span { display: flex; flex-direction: column; }
.region-card-stats strong { font-size: 1.2rem; }
.region-card-stats small { font-size: .72rem; color: var(--muted); line-height: 1.2; }
.region-card-bills { display: flex; flex-direction: column; gap: .35rem; padding-top: .75rem; border-top: 1px solid var(--line, #e6e8ef); }
.region-card .bar { height: 6px; border-radius: 999px; background: var(--orange-50); overflow: hidden; }
.region-card .bar span { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
@media (max-width: 420px) { .region-card-stats { grid-template-columns: repeat(2, 1fr); } }
.text-ok { color: var(--ok) !important; }
/* v43: boletos — cards pelo filtro + cálculos */
.bills-scope { margin: 0 0 .75rem; }
.kpi-on { outline: 2px solid var(--brand-orange); outline-offset: 2px; }
.bills-calc { padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.calc-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.calc-item { display: flex; flex-direction: column; gap: .1rem; padding-left: .9rem; border-left: 3px solid var(--line); }
.calc-item > small:first-child { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.calc-item strong { font-size: 1.15rem; }
.calc-item small.muted { font-size: .78rem; line-height: 1.3; }
@media (max-width: 900px) { .calc-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .calc-row { grid-template-columns: 1fr; } }
/* v46: indicadores — gráficos modernos */
.ind-filters { grid-template-columns: minmax(200px, 260px) minmax(170px, 210px) 1fr; }
.ind-note { margin: 0; align-self: center; }
.chart-card { padding: 1.4rem 1.5rem 1.1rem; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.chart-head h2 { margin: 0; font-size: 1.12rem; }
.chart-head p { margin: .25rem 0 0; color: var(--muted); font-size: .86rem; }
.chart-hero { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.chart-hero strong { font-size: 1.9rem; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.chart-hero span { font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.chip { display: inline-block; padding: .12rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.chip-good { background: var(--ok-50); color: var(--ok); }
.chip-bad { background: var(--err-50); color: var(--err); }
.chip-flat { background: var(--blue-50); color: var(--muted); }
.chart-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin: 1rem 0 .4rem; padding: 0; }
.chart-legend li { display: flex; align-items: flex-start; gap: .55rem; }
.chart-legend li span { display: flex; flex-direction: column; line-height: 1.25; }
.chart-legend strong { font-size: .84rem; color: var(--ink); }
.chart-legend small { font-size: .76rem; color: var(--muted); }
.chart-legend i { flex: none; margin-top: .2rem; display: inline-block; }
.chart-legend .lg-box { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.chart-legend .lg-line { width: 18px; height: 3px; border-radius: 2px; background: var(--c); margin-top: .45rem; }
.chart-legend .lg-area { width: 18px; height: 12px; border-radius: 4px; background: color-mix(in srgb, var(--c) 14%, transparent); border-top: 3px solid var(--c); }
.chart-box { position: relative; margin-top: .25rem; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; font-family: inherit; fill: none; stroke: none; stroke-width: 0; }
.chart-svg text { stroke: none; }
.cg-line { stroke: #eef0f5; stroke-width: 1; }
.cc-bar, .cl-area, .cl-dot { stroke: none; }
.cg-base { stroke: #d9dce6; }
.cg-tick { fill: #8a8fa6; font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-hit { fill: transparent; cursor: pointer; }
.cc-col .chart-hit { transition: fill .15s; }
.cc-col.is-on .chart-hit { fill: rgba(5, 0, 54, .04); }
.cc-bar { transition: opacity .15s; }
.chart-box.has-on .cc-col:not(.is-on) .cc-bar { opacity: .35; }
.cc-total { fill: var(--muted); font-size: 11px; font-weight: 600; opacity: 0; transition: opacity .15s; }
.cc-total.is-last, .cc-col.is-on .cc-total { opacity: 1; fill: var(--ink); }
.chart-box.has-on .cc-total.is-last { opacity: 0; }
.chart-box.has-on .cc-col.is-on .cc-total { opacity: 1; }
.cc-col.is-on .cg-x, .cl-col.is-on .cg-x { fill: var(--ink); font-weight: 700; }
.cl-area { opacity: .1; }
.cl-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cl-dot { stroke: #fff; stroke-width: 2; }
.cl-dot.is-last { r: 5; }
.cl-cross { stroke: #c9cbe0; stroke-width: 1; opacity: 0; }
.cl-col.is-on .cl-cross { opacity: 1; }
.cl-end { fill: var(--ink); font-size: 12px; font-weight: 700; }
.chart-tip { position: absolute; top: -.5rem; transform: translate(-50%, -100%); width: max-content; max-width: min(300px, 100%); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .75rem; box-shadow: 0 12px 32px rgba(5, 0, 54, .14); pointer-events: none; z-index: 3; display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; }
.chart-tip > strong { font-size: .82rem; margin-bottom: .1rem; }
.chart-tip .tip-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: .5rem; }
.chart-tip .tip-row i { width: 10px; height: 10px; border-radius: 3px; }
.chart-tip .tip-row i.tip-none { background: transparent; }
.chart-tip .tip-row em { font-style: normal; color: var(--muted); }
.chart-tip .tip-row b { font-variant-numeric: tabular-nums; }
.chart-tip > small { color: var(--muted); border-top: 1px solid var(--line); padding-top: .3rem; margin-top: .1rem; }
.chart-table { margin-top: .9rem; }
.chart-table summary { cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--brand-blue); }
.chart-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.chart-pair .card { margin-bottom: 0; }
@media (max-width: 1100px) { .chart-pair { grid-template-columns: 1fr; } .ind-filters { grid-template-columns: 1fr 1fr; } .ind-note { grid-column: 1 / -1; } }
@media (max-width: 560px) { .chart-hero { align-items: flex-start; text-align: left; } .chart-hero span { justify-content: flex-start; } .ind-filters { grid-template-columns: 1fr; } }
/* v48: eventos */
.ev-reason { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .86rem; white-space: nowrap; }
.ev-reason i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ev-desc { margin-top: .3rem; }
.ev-desc summary { cursor: pointer; font-size: .78rem; color: var(--brand-blue); font-weight: 600; }
.ev-desc p { margin: .35rem 0 0; font-size: .82rem; color: var(--muted); max-width: 46ch; white-space: pre-line; }
/* v49: amostras de cor em SVG (CSP bloqueia style="") */
.swatch { width: 18px; height: 14px; flex: none; stroke: none; fill: none; margin-top: .15rem; }
.ev-reason .swatch { margin-top: 0; }
.bar-svg { width: 100%; height: 6px; display: block; stroke: none; fill: none; }
/* v50: ficha do evento */
.ev-open { font-weight: 700; color: var(--brand-orange); }
.ev-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.ev-hero h2 { margin: .25rem 0 .35rem; font-size: 1.35rem; }
.ev-hero p { margin: 0; }
.ev-hero-status { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.ev-dl { display: grid; grid-template-columns: minmax(140px, 42%) 1fr; gap: .45rem 1rem; margin: .25rem 0 0; font-size: .9rem; }
.ev-dl dt { color: var(--muted); }
.ev-dl dd { margin: 0; color: var(--ink); }
.ev-sub { font-size: .95rem; margin: 1.1rem 0 .4rem; }
.ev-sub-head { margin-top: 1.25rem; }
.ev-text { margin: 0; white-space: pre-line; font-size: .9rem; color: var(--ink); background: var(--blue-50); border-radius: 10px; padding: .75rem .9rem; }
.ev-timeline li { display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; }
.ev-timeline li:not(.is-status)::before { background: #c9cbe0; }
.ev-tl-when { font-size: .76rem; color: var(--muted); }
.ev-note { background: var(--orange-50); border-color: transparent; }
.ev-note p { margin: 0; }
@media (max-width: 560px) { .ev-hero-status { align-items: flex-start; } .ev-dl { grid-template-columns: 1fr; gap: .1rem; } .ev-dl dd { margin-bottom: .5rem; } }
/* v51: fornecedores */
.sup-cnae { max-width: 34ch; line-height: 1.3; margin-top: .2rem; }
/* v52: PIX da adesão */
.sale-pix .sale-num { background: var(--ok); color: #fff; }
.pix-box { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; margin-top: .5rem; }
.pix-qr { width: 180px; height: 180px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; image-rendering: pixelated; }
.pix-info { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: .5rem; }
.pix-info .copy-code { font-size: .78rem; word-break: break-all; }
.pix-amount { margin: 0; font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pix-paid { margin: .25rem 0 0; padding: .75rem 1rem; border-radius: 12px; background: var(--ok-50); color: var(--ink); }
.pix-paid-note { color: var(--ok); margin: .25rem 0; }
.pix-wait { color: var(--muted); font-weight: 600; }
.pix-wait::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: .5rem; border: 2px solid var(--line); border-top-color: var(--brand-orange); border-radius: 50%; animation: pix-spin .8s linear infinite; vertical-align: -1px; }
@keyframes pix-spin { to { transform: rotate(360deg); } }

/* Funil dos sites (/admin/funil) */
.kpi progress { width: 100%; height: 8px; accent-color: var(--brand-orange); }
.kpi progress::-webkit-progress-bar { background: #eef0f4; border-radius: 999px; }
.kpi progress::-webkit-progress-value { background: var(--brand-orange); border-radius: 999px; }
.kpi progress::-moz-progress-bar { background: var(--brand-orange); border-radius: 999px; }
tr.is-new { animation: funnel-new 2.5s ease-out; }
@keyframes funnel-new { from { background: var(--orange-50); } to { background: transparent; } }

/* Funil: lista de pessoas com rolagem própria (a página não fica infinita) */
.funnel-scroll { max-height: 520px; overflow-y: auto; }
.funnel-scroll thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }

/* Sites de cotação: ações da linha e tabela de feriados */
.row-actions { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.row-actions form { margin: 0; }
.holidays-table input[type=date] { min-width: 10.5rem; }
.holidays-table input:not([type=checkbox]) { width: 100%; }
.holidays-table tr.is-blank input { border-style: dashed; }
.holidays-table select { min-width: 5.5rem; }
@media (max-width: 720px) {
  /* Feriados no celular: dia, mês e ano lado a lado; nome embaixo */
  .holidays-table tbody tr { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.3fr); gap: .5rem; padding: .7rem; }
  .holidays-table td { display: block; padding: 0; text-align: left; }
  .holidays-table td::before { display: block; margin-bottom: .2rem; }
  .holidays-table td[data-label="Feriado"] { grid-column: 1 / -1; }
  .holidays-table td:last-child { grid-column: 1 / -1; }
  .holidays-table td:last-child:empty { display: none; }
  .holidays-table select { width: 100%; min-width: 0; }
}

/* Modal de configurações (dialog nativo) */
.cfg-modal { width: min(880px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 24px 60px rgb(10 20 40 / .28); background: var(--surface); color: var(--text); }
.cfg-modal::backdrop { background: rgb(10 20 40 / .45); }
.cfg-modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 1.25rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.cfg-modal-head h2 { margin: 0; }
.cfg-modal-body { padding: 1rem 1.25rem 1.25rem; }
.cfg-modal-body .actions { position: sticky; bottom: 0; background: var(--surface); padding-top: .75rem; }
.table td a.block { overflow-wrap: anywhere; }
@media (max-width: 720px) { .cfg-modal { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); } }
/* Comissões > Executivos */
.exec-payout-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 1rem; }
.exec-payout-head .copy-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .2rem 0 0; }
.exec-payout-head code { font-size: .95rem; word-break: break-all; }
.exec-payout-total { font-size: 1.6rem; font-weight: 800; margin: .1rem 0 0; color: var(--ink); }
.exec-payout-form { margin-top: 1rem; align-items: end; }
.exec-payout-proc { margin-top: 1rem; }
.exec-payout-proc summary { cursor: pointer; font-weight: 600; color: var(--muted); }

/* Listas de cotações: placa em destaque (como em Vendas) */
.plate-link { text-decoration: none; }
.plate.plate-none { color: var(--muted); border-color: var(--line); font-family: inherit; font-weight: 600; letter-spacing: 0; font-size: .8rem; }

/* Celular: cards compactos nas listas de vendas, cotações e funil.
   Linha 1: placa (ou quem) + etapa/situação; linha 2: cliente; depois detalhes pequenos, um por linha. */
@media (max-width: 720px) {
  .table-cards tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; padding: .75rem .85rem; margin-bottom: .6rem; border-left: 4px solid var(--brand-orange); }
  .table-cards td { display: block; width: 100%; order: 5; padding: 0; text-align: left; font-size: .85rem; color: var(--muted); line-height: 1.35; }
  .table-cards td::before { content: attr(data-label) ": "; display: inline; font-size: .85rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
  .table-cards td .block { display: inline; }
  .table-cards td .block::before { content: " · "; }
  .table-cards td:empty { display: none; }
  /* topo: placa/quem à esquerda, etapa à direita */
  .table-cards td[data-label="Placa"], .table-cards td[data-label="Quem"] { order: 1; width: auto; flex: 1 1 auto; border: 0; margin: 0; padding: 0; font-size: .95rem; color: var(--ink); }
  .table-cards td[data-label="Placa"] .block, .table-cards td[data-label="Quem"] .block { display: block; margin-top: .25rem; font-size: .8rem; }
  .table-cards td[data-label="Placa"] .block::before, .table-cards td[data-label="Quem"] .block::before { content: none; }
  .table-cards td[data-label="Etapa"], .table-cards td[data-label="Situação hoje"], .table-cards td[data-label="Chegou até"] { order: 2; width: auto; flex: 0 0 auto; align-self: flex-start; }
  .table-cards td[data-label="Etapa"] .block, .table-cards td[data-label="Situação hoje"] .block, .table-cards td[data-label="Chegou até"] .block { display: none; }
  .table-cards td[data-label="Cliente"] { order: 3; margin: .35rem 0 .2rem; font-size: 1rem; color: var(--ink); }
  .table-cards td[data-label="Cliente"] .block { display: block; font-size: .78rem; }
  .table-cards td[data-label="Cliente"] .block::before { content: none; }
  .table-cards td[data-label="Placa"]::before, .table-cards td[data-label="Quem"]::before, .table-cards td[data-label="Etapa"]::before,
  .table-cards td[data-label="Situação hoje"]::before, .table-cards td[data-label="Chegou até"]::before, .table-cards td[data-label="Cliente"]::before { content: none; }
  .table-cards td[data-label="Mensal"] { color: var(--ink); font-weight: 600; }
  .table-cards td:not([data-label]) { order: 6; }
}
@media (max-width: 720px) {
  .table-cards td[data-label="Placa"], .table-cards td[data-label="Quem"] { flex: 1 1 0; min-width: 0; }
  .table-cards td.num, .table-cards td.right { text-align: left; }
  .table-cards td[data-label="Cliente"] { font-weight: 700; }
}
/* candidatos (trabalhe conosco) no celular */
@media (max-width: 720px) {
  .table-cards td[data-label="Candidato"] { order: 1; flex: 1 1 0; min-width: 0; font-size: .95rem; color: var(--ink); }
  .table-cards td[data-label="Candidato"] .block { display: block; margin-top: .2rem; font-size: .8rem; }
  .table-cards td[data-label="Candidato"] .block::before, .table-cards td[data-label="Candidato"]::before,
  .table-cards td[data-label="Situação"]::before, .table-cards td[data-label="Ações"]::before { content: none; }
  .table-cards td[data-label="Situação"] { order: 2; width: auto; flex: 0 0 auto; align-self: flex-start; }
  .table-cards td[data-label="Ações"] { order: 6; margin-top: .5rem; }
  .table-cards td[data-label="Ações"] .row-actions { justify-content: flex-start; flex-wrap: wrap; }
}
/* nome do portal no login (power, vistoria, vendedor, executivo) */
.auth-portal { display: inline-block; margin: 0 0 .7rem !important; padding: .3rem .75rem; border-radius: 999px; background: var(--orange-50); color: var(--orange-600); font-weight: 700; font-size: .8rem; letter-spacing: .02em; }
/* acessos do gerente (Equipe interna) */
.access-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin: 0; display: grid; gap: .8rem; }
.access-box legend { font-weight: 700; color: var(--ink); padding: 0 .35rem; }
.access-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem 1.5rem; }
.access-group { display: grid; gap: .45rem; align-content: start; }
.access-group > strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.access-regs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .5rem 1.5rem; }
/* liberação de vistoria */
.insp-title { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.insp-title h2 { margin: 0; font-size: 1.1rem; }
.insp-title p { margin: .1rem 0 0; }
.insp-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem 1.2rem; margin: 0 0 1rem; }
.insp-data dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.insp-data dd { margin: .1rem 0 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.insp-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.insp-form { border-top: 1px solid var(--line); padding-top: 1rem; }
.insp-links { display: grid; gap: .8rem; margin: .8rem 0; }
.insp-link { display: grid; gap: .35rem; }
.insp-link strong { font-size: .9rem; color: var(--ink); }
.insp-send { display: grid; gap: .5rem; margin-top: .25rem; }
.insp-send a { overflow-wrap: anywhere; }
.insp-send .actions { margin: 0; }

/* Planos (admin) */
.plan-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.plan-region { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--surface); }
.plan-region h3 { margin: 0 0 .6rem; font-size: .95rem; }
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-list li { border-bottom: 1px solid var(--line); }
.plan-list li:last-child { border-bottom: 0; }
.plan-list a { display: flex; align-items: center; gap: .55rem; padding: .5rem .2rem; color: var(--text); text-decoration: none; font-size: .9rem; }
.plan-list a:hover { color: var(--ink); background: var(--blue-50); }
.plan-off a { opacity: .55; }
.plan-ico { width: 20px; height: 20px; flex: none; color: var(--muted); }
.plan-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; border: 0; padding: 0; margin: 0 0 1rem; }
.plan-type input { position: absolute; opacity: 0; pointer-events: none; }
.plan-type span { display: grid; justify-items: center; gap: .4rem; padding: .9rem .6rem; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-weight: 600; font-size: .88rem; cursor: pointer; }
.plan-type .plan-ico { width: 30px; height: 30px; }
.plan-type input:checked + span { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.plan-type input:checked + span .plan-ico { color: #fff; }
.plan-type input:focus-visible + span { box-shadow: 0 0 0 3px var(--orange-50); }
.plan-fields { display: grid; gap: .8rem; margin-bottom: .8rem; }
.plan-fields label { display: grid; gap: .3rem; font-weight: 600; font-size: .88rem; }
.plan-flags { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-bottom: 1rem; }
.plan-form h3 { margin: 1.2rem 0 .3rem; font-size: 1rem; }
.plan-services td input[name^="detail"] { min-width: 140px; }
.plan-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
/* Tabelas de preço (/admin/tabelas) */
.pt-filter { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.pt-filter a.on { font-weight: 700; color: var(--ink); text-decoration: underline; }
.pt-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.pt-fields label { display: grid; gap: .3rem; font-weight: 600; font-size: .88rem; }
.pt-fields .pt-wide { grid-column: 1 / -1; }
.pt-form h3 { margin: 1.2rem 0 .5rem; font-size: 1rem; }
.pt-grid th, .pt-grid td { padding: .3rem; vertical-align: middle; }
.pt-grid input:not([type="checkbox"]), .pt-grid select { width: 100%; min-width: 84px; padding: .35rem .45rem; font-size: .85rem; }
.pt-grid th input { min-width: 110px; font-weight: 600; }
.pt-pair { display: flex; gap: .3rem; align-items: center; }
.pt-pair select { min-width: 72px; width: auto; }

/* Vistoria do portal: página do cliente (câmera ao vivo) e passo 3 da venda */
.insp-cap h1 { margin: 0 0 .25rem; font-size: 1.35rem; }
.insp-code { display: inline-block; margin: .5rem 0 .75rem; padding: .5rem .9rem; border-radius: var(--radius-sm); background: var(--orange-50); color: var(--ink); }
.insp-code strong { font-size: 1.4rem; letter-spacing: .2em; margin-left: .35rem; color: var(--orange-600); }
.insp-tips { margin: 0 0 1rem; padding-left: 1.2rem; font-size: .92rem; display: grid; gap: .3rem; }
.insp-slots { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.insp-slot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; align-items: center; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.insp-slot > div { display: grid; gap: .15rem; min-width: 0; }
.insp-slot-state { font-size: .8rem; color: var(--muted); justify-self: end; }
.insp-slot .btn { grid-column: 1 / -1; justify-self: start; }
.insp-slot.is-done { border-color: var(--ok); background: var(--ok-50); }
.insp-slot.is-done .insp-slot-state { color: var(--ok); font-weight: 600; }
.insp-slot.is-busy { opacity: .7; }
.insp-cam { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; display: flex; flex-direction: column; }
.insp-cam[hidden] { display: none; }
.insp-cam video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.insp-cam-stage { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; background: #000; }
.insp-cam canvas { display: block; max-width: 100%; max-height: 100%; background: #000; }
.insp-cam-top { position: absolute; top: 0; left: 0; right: 0; padding: .75rem 1rem; display: grid; gap: .2rem; background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,0)); font-size: .9rem; }
.insp-cam-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); background: #000; }
.insp-cam-bar .btn { justify-self: start; color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
.insp-shutter { width: 72px; height: 72px; border-radius: 50%; border: 5px solid #fff; background: var(--brand-orange); cursor: pointer; }
.insp-shutter.is-rec { background: var(--err); border-radius: 18px; }
.insp-shutter:disabled { opacity: .4; }
.insp-cam-timer { justify-self: end; font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.insp-cam-progress { position: absolute; left: 1rem; right: 1rem; bottom: 7rem; display: grid; gap: .3rem; }
.insp-cam-progress[hidden] { display: none; }
.insp-cam-progress span { display: block; height: 8px; width: 0; border-radius: 999px; background: var(--brand-orange); transition: width .2s; }
.insp-cam-progress em { font-style: normal; font-size: .85rem; }
body.insp-open { overflow: hidden; }
.pinsp-modes { display: flex; flex-wrap: wrap; gap: .5rem; }
.pinsp-grid { list-style: none; margin: .75rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.pinsp-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem; display: grid; gap: .35rem; align-content: start; font-size: .85rem; }
.pinsp-item.is-done { border-color: var(--ok); }
.pinsp-item img, .pinsp-item video { width: 100%; height: 150px; object-fit: contain; border-radius: 8px; background: #000; }
.pinsp-item .upload-btn { justify-self: start; }
.insp-term { display: grid; gap: .7rem; margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.insp-term h2 { margin: 0; font-size: 1.1rem; }
.insp-term p { margin: 0; }
.insp-term > .btn { justify-self: start; }
.insp-term.is-signed { border-color: var(--ok); background: var(--ok-50); }
.sign-pad { position: relative; border: 2px dashed var(--line); border-radius: var(--radius-sm); background: #fff; }
.sign-pad canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; touch-action: none; cursor: crosshair; border-radius: var(--radius-sm); }
.sign-pad-hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; font-size: .95rem; }
.sign-pad-hint[hidden] { display: none; }
/* Tela do PIX da adesão no fim da vistoria (link do cliente) */
.pay { display: grid; gap: .85rem; margin: .5rem 0 1rem; padding: 1.25rem; border-radius: var(--radius); background: linear-gradient(160deg, var(--orange-50), #fff 60%); border: 1px solid #ffd9bd; text-align: center; }
.pay h2 { margin: 0; font-size: 1.35rem; line-height: 1.25; color: var(--ink); }
.pay p { margin: 0; }
.pay-done { font-size: .85rem; font-weight: 600; color: var(--ok); }
.pay-amount { display: grid; gap: .1rem; justify-items: center; padding: .75rem; border-radius: var(--radius-sm); background: var(--brand-blue); color: #fff; }
.pay-amount span { font-size: .8rem; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.pay-amount strong { font-size: 2rem; }
.pay-qr { justify-self: center; width: 220px; height: 220px; padding: 8px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.pay .copy-code { font-size: .75rem; }
.pay-steps { margin: 0; padding-left: 1.3rem; text-align: left; display: grid; gap: .35rem; font-size: .92rem; }
.pay-wait { font-weight: 600; color: var(--warn); }
.pay-safe { font-size: .78rem; color: var(--muted); }
.pay-ok { background: linear-gradient(160deg, var(--ok-50), #fff 60%); border-color: #bfe5cf; }
.pay-icon { font-size: 3rem; line-height: 1; }
/* Proposta online (/proposta/…): planos lado a lado no visual do panfleto */
@media (max-width: 520px) {
  .pp-table { font-size: .8rem; }
  .pp-table .pp-label { font-size: .66rem; width: 34%; }
  .pp-price { font-size: .98rem; }
  .pp-choose .btn { padding-left: .3rem; padding-right: .3rem; font-size: .72rem; }
}

/* ---------- Proposta online (/proposta/…): mesmo visual da proposta em PDF (modelo de 27/11/2026) ---------- */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-latin-800-normal.woff2") format("woff2"); }
.pr { --pr-navy: #0b0838; --pr-orange: #ff6a00; --pr-orange2: #ff8a2b; --pr-ink: #14122b; --pr-muted: #6b6a80; --pr-line: #e7e6ef; --pr-soft: #f6f5fa;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--pr-ink); display: grid; gap: 0; max-width: 880px; margin: 0 auto; }
.pr-hero { position: relative; overflow: hidden; background: var(--pr-navy); color: #fff; border-radius: 16px; padding: 1.4rem 1.25rem 3.6rem; }
.pr-hero::before { content: ""; position: absolute; right: -110px; top: -150px; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle at 30% 70%, var(--pr-orange2), var(--pr-orange) 60%); opacity: .95; }
.pr-hero > * { position: relative; z-index: 1; }
.pr-emitida { margin: 0; font-size: .78rem; color: rgba(255,255,255,.75); text-align: right; }
.pr-emitida b { display: block; color: #fff; font-size: .9rem; }
.pr .pr-hero h1 { margin: .8rem 0 0; font-size: 1.75rem; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.pr-hero h1 span { color: var(--pr-orange2); }
.pr-sub { margin: .6rem 0 0; font-size: .95rem; color: rgba(255,255,255,.85); max-width: 32rem; }
.pr-veiculo { position: relative; z-index: 2; margin: -2.6rem .75rem 0; background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(11,8,56,.16);
  padding: .9rem 1rem; display: flex; align-items: center; gap: .9rem; border-left: 6px solid var(--pr-orange); }
.pr-veiculo-ico { width: 46px; height: 46px; border-radius: 10px; background: var(--pr-soft); display: grid; place-items: center; flex: none; }
.pr-lbl { font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--pr-orange); text-transform: uppercase; }
.pr-veiculo-nome { font-weight: 700; font-size: .98rem; margin-top: .1rem; }
.pr-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.pr-chip { font-size: .72rem; background: var(--pr-soft); border: 1px solid var(--pr-line); border-radius: 999px; padding: .15rem .6rem; font-weight: 600; color: var(--pr-navy); }
.pr-sec-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: 1.6rem 0 .9rem; }
.pr-sec-title h2 { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--pr-navy); }
.pr-sec-title span { font-size: .82rem; color: var(--pr-muted); }
.pr-planos { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.pr-plano { border: 1px solid var(--pr-line); border-radius: 14px; padding: 1.1rem 1rem 1rem; background: #fff; position: relative; display: flex; flex-direction: column; }
.pr-plano.rec { border: 2px solid var(--pr-orange); background: linear-gradient(180deg, #fff7f0, #fff 40%); box-shadow: 0 10px 30px rgba(255,106,0,.18); padding-top: 1.5rem; }
.pr-badge { position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%); background: var(--pr-orange); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .1em; padding: .25rem .8rem; border-radius: 999px; white-space: nowrap; }
.pr-tag, .pr-pill { display: inline-block; align-self: flex-start; font-size: .74rem; font-weight: 800; letter-spacing: .1em; color: #fff; border-radius: 6px; padding: .15rem .65rem; background: var(--pr-navy); }
.pr-t-gold { background: #c9a227; } .pr-t-black { background: #111; } .pr-t-bronze { background: #7a3a12; }
.pr-preco { margin-top: .7rem; font-weight: 800; color: var(--pr-navy); line-height: 1; }
.pr-preco small { font-size: .85rem; vertical-align: top; margin-right: .2rem; }
.pr-preco big { font-size: 2rem; }
.pr-plano.rec .pr-preco big { font-size: 2.3rem; }
.pr-mes { font-size: .78rem; color: var(--pr-muted); margin-top: .2rem; }
.pr-dia { display: inline-block; align-self: flex-start; margin-top: .45rem; font-size: .74rem; font-weight: 700; color: var(--pr-orange); background: #fff3ea; border-radius: 6px; padding: .1rem .5rem; }
.pr-plano ul { list-style: none; margin: .9rem 0 1rem; padding: .7rem 0 0; border-top: 1px dashed var(--pr-line); flex: 1; }
.pr-plano li { font-size: .88rem; display: flex; gap: .45rem; align-items: flex-start; padding: .2rem 0; line-height: 1.3; }
.pr-ic { flex: none; margin-top: .2rem; }
.pr-ok .pr-ic, .pr-head .pr-ic { color: #16a34a; }
.pr-plus .pr-ic { color: var(--pr-orange); }
.pr-plus, .pr-head { font-weight: 700; }
.pr-off { color: #a3a2b3; } .pr-off .pr-ic { color: #c9c8d6; }
.pr .feedback:empty { display: none; }
.pr .feedback { margin-top: .8rem; }
.pr-custos { margin-top: 1rem; border: 1px solid var(--pr-line); border-radius: 12px; overflow: hidden; }
.pr-custos table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.pr-custos th, .pr-custos td { padding: .55rem .8rem; border-top: 1px solid var(--pr-line); text-align: center; font-weight: 600; }
.pr-custos tr:first-child th, .pr-custos tr:first-child td { border-top: 0; }
.pr-custos th { text-align: left; font-weight: 700; color: var(--pr-navy); background: var(--pr-soft); width: 30%; }
.pr-custos td.rec { background: #fff7f0; }
.pr-cname { display: none; }
.pr-confianca { margin-top: 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.pr-conf { background: var(--pr-navy); color: #fff; border-radius: 10px; padding: .75rem .7rem; display: flex; gap: .55rem; align-items: center; }
.pr-conf svg { flex: none; }
.pr-conf p { margin: 0; font-size: .78rem; line-height: 1.25; font-weight: 600; }
.pr-conf p small { display: block; font-weight: 400; color: rgba(255,255,255,.7); font-size: .7rem; margin-top: .1rem; }
.pr-topo2 { margin-top: 1.8rem; background: var(--pr-navy); color: #fff; border-radius: 14px; padding: 1.1rem 1.2rem; position: relative; overflow: hidden; }
.pr-topo2::after { content: ""; position: absolute; right: -60px; top: -90px; width: 170px; height: 170px; border-radius: 50%; background: var(--pr-orange); }
.pr .pr-topo2 h2 { position: relative; z-index: 1; margin: 0; font-size: 1.2rem; font-weight: 800; color: #fff; }
.pr-topo2 p { position: relative; z-index: 1; margin: .2rem 0 0; font-size: .82rem; color: rgba(255,255,255,.78); max-width: 75%; }
.pr-scroll { overflow-x: auto; margin-top: 1rem; }
.pr-comp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.pr-comp th, .pr-comp td { padding: .55rem .45rem; text-align: center; }
.pr-comp thead th { font-size: .78rem; vertical-align: bottom; }
.pr-comp thead th:first-child { text-align: left; color: var(--pr-muted); font-weight: 600; }
.pr-comp thead th > span { display: block; margin: 0 auto; }
.pr-comp .pr-pill { display: inline-block; }
.pr-comp-preco { font-size: .95rem; color: var(--pr-navy); font-weight: 800; margin-top: .25rem !important; }
.pr-comp-rec { font-size: .62rem; color: var(--pr-orange); letter-spacing: .08em; font-weight: 800; }
.pr-comp tbody th { text-align: left; font-weight: 700; color: var(--pr-navy); border-top: 1px solid var(--pr-line); }
.pr-comp tbody td { border-top: 1px solid var(--pr-line); font-weight: 700; color: var(--pr-navy); white-space: nowrap; }
.pr-comp tbody tr:nth-child(odd) th, .pr-comp tbody tr:nth-child(odd) td { background: var(--pr-soft); }
.pr-comp td.x { color: #c9c8d6; }
.pr-comp .colrec { background: #fff7f0 !important; border-left: 2px solid var(--pr-orange); border-right: 2px solid var(--pr-orange); }
.pr-comp thead th.colrec { border-top: 2px solid var(--pr-orange); border-radius: 10px 10px 0 0; }
.pr-comp tbody tr:last-child .colrec { border-bottom: 2px solid var(--pr-orange); border-radius: 0 0 10px 10px; }
.pr-todos { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.pr-todos .pr-todo { font-size: .8rem; }
.pr-todo { display: flex; align-items: center; gap: .45rem; font-size: .86rem; font-weight: 600; color: var(--pr-navy); background: var(--pr-soft); border-radius: 8px; padding: .45rem .65rem; }
.pr-todo .pr-ic { margin-top: 0; }
.pr-faixa { margin-top: 1.3rem; display: grid; gap: .8rem; }
.pr-indeniz { background: #fff3ea; border: 1px solid #ffd2b0; border-radius: 12px; padding: .9rem 1rem; display: flex; gap: .7rem; align-items: center; }
.pr-indeniz svg { flex: none; }
.pr-indeniz b { font-size: 1rem; color: var(--pr-orange); display: block; line-height: 1.2; }
.pr-indeniz span { font-size: .78rem; color: var(--pr-muted); }
.pr-passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.pr-passo { border: 1px solid var(--pr-line); border-radius: 12px; padding: .7rem; }
.pr-passo i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pr-navy); color: #fff; font-size: .75rem; font-weight: 800; }
.pr-passo b { display: block; font-size: .84rem; margin-top: .35rem; color: var(--pr-navy); }
.pr-passo span { display: block; font-size: .74rem; color: var(--pr-muted); line-height: 1.3; margin-top: .1rem; }
.pr-cta { margin-top: 1.2rem; display: grid; gap: .8rem; }
.pr-pdf { display: block; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--pr-orange2), var(--pr-orange)); border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: 0 10px 26px rgba(255,106,0,.3); }
.pr-pdf b { display: block; font-size: 1.15rem; font-weight: 800; }
.pr-pdf span { display: block; font-size: .82rem; opacity: .92; margin-top: .2rem; }
.pr-consultor { display: block; text-decoration: none; background: var(--pr-navy); color: #fff; border-radius: 14px; padding: 1rem 1.1rem; }
.pr-consultor-l { display: block; font-size: .7rem; letter-spacing: .08em; color: var(--pr-orange2); font-weight: 800; }
.pr-consultor-n { display: block; font-size: 1.15rem; font-weight: 800; margin-top: .15rem; }
.pr-consultor-w { margin-top: .7rem; display: flex; align-items: center; gap: .5rem; background: #25d366; color: #fff; border-radius: 10px; padding: .5rem .75rem; font-weight: 800; font-size: 1rem; }
.pr-consultor-w svg { flex: none; }
.pr-consultor-w small { display: block; font-weight: 600; font-size: .72rem; opacity: .95; }
.pr-legal { margin: 1rem 0 0; font-size: .74rem; color: var(--pr-muted); line-height: 1.45; }
@media (min-width: 640px) {
  .pr-hero { padding: 2rem 2rem 4.4rem; }
  .pr .pr-hero h1 { font-size: 2.4rem; }
  .pr-veiculo { margin: -3rem 1.5rem 0; }
  .pr-hero::before { right: -120px; top: -160px; width: 340px; height: 340px; }
  .pr-todos .pr-todo { font-size: .86rem; }
  .pr-planos.pr-n2 { grid-template-columns: repeat(2, 1fr); }
  .pr-planos.pr-n3 { grid-template-columns: 1fr 1fr 1.12fr; gap: .8rem; }
  .pr-planos.pr-n4 { grid-template-columns: repeat(2, 1fr); }
  .pr-confianca { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pr-todos { grid-template-columns: repeat(3, 1fr); }
  .pr-faixa { grid-template-columns: 1fr 1.6fr; }
  .pr-cta { grid-template-columns: 1.45fr 1fr; }
}
@media (max-width: 639px) {
  .pr-custos tr { display: grid; grid-template-columns: 1fr; }
  .pr-custos th { width: auto; }
  .pr-custos td { display: flex; justify-content: space-between; gap: .5rem; text-align: right; border-top: 1px solid var(--pr-line); }
  .pr-cname { display: inline; font-weight: 800; color: var(--pr-navy); font-size: .74rem; letter-spacing: .06em; }
  .pr-passos { grid-template-columns: 1fr; }
}

/* proposta alterada pelo vendedor (aprovação) */
.pedit-status { margin: .2rem 0 .9rem; padding: .6rem .85rem; border-radius: var(--radius-sm); font-size: .9rem; }
.pedit-pending { background: var(--warn-50); color: var(--warn); }
.pedit-rejected { background: var(--err-50); color: var(--err); }
.pedit-approved { background: var(--ok-50); color: var(--ok); }
.pedit-help { margin: .4rem 0 0; padding-left: 1.1rem; }
.pedit-help li { margin-bottom: .25rem; }
.pedit-title { margin: .2rem 0 .5rem; font-size: 1rem; color: var(--ink); }
.pedit-table td { padding: .35rem .4rem; }
.pedit-table th { padding: .45rem .4rem; }
.pedit-table input { min-width: 92px; min-height: 38px; padding: .35rem .55rem; font-size: .9rem; }
.pedit-table td:first-child input { min-width: 170px; }
.pedit-table .pedit-label { font-weight: 600; color: var(--ink); min-width: 150px; }
.pedit-table input.pedit-changed { border-color: var(--brand-orange); background: var(--orange-50); font-weight: 700; }
.pedit-actions, .pedit-decide { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.pedit-cancel { margin: -.4rem 0 1.5rem; }
.pedit-note { background: var(--bg); border-radius: var(--radius-sm); padding: .55rem .8rem; font-size: .9rem; }
.pedit-diff td { padding: .55rem .7rem; }
.pedit-decide { margin-top: 1rem; }
.pedit-reject { display: flex; flex: 1 1 320px; gap: .5rem; }
.pedit-reject input { flex: 1; min-width: 0; }
.pedit-wrap { overflow-x: auto; min-width: 0; max-width: 100%; }
form.pedit-form { min-width: 0; }

/* QR Code do link do vendedor */
.seller-qr { display: flex; gap: 1.1rem; align-items: center; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.seller-qr img { flex: 0 0 auto; width: 168px; height: 168px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.seller-qr h3 { margin: 0 0 .3rem; font-size: 1rem; color: var(--ink); }
.seller-qr p { margin: 0 0 .7rem; }
@media (max-width: 560px) { .seller-qr { flex-direction: column; align-items: flex-start; } }

/* indicadores "Free" do vendedor */
.ref-card .card-head { flex-wrap: wrap; gap: .6rem; }
.ref-card h2 { margin: 0; font-size: 1.05rem; }
.ref-card p { margin: .15rem 0 0; }
.ref-off { opacity: .7; }
.ref-quotes { list-style: none; margin: .4rem 0 0; padding: 0; }
.ref-quotes li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.ref-quotes li a { min-width: 0; color: var(--ink); }
.ref-quotes li a span { display: block; overflow-wrap: anywhere; }
.ref-qr { display: flex; gap: 1rem; align-items: center; margin: .6rem 0 .2rem; padding: .8rem; background: var(--bg); border-radius: var(--radius-sm); }
.ref-qr img { flex: 0 0 auto; width: 120px; height: 120px; background: #fff; border-radius: 8px; }
.ref-qr p { margin: 0 0 .55rem; }
@media (max-width: 480px) { .ref-qr { flex-direction: column; align-items: flex-start; } }
.grid-3 .span-all-sale { grid-column: 1 / -1; margin: 0; }
.pre-line { white-space: pre-line; }
@media (max-width: 520px) { .actions > .btn { white-space: normal; max-width: 100%; } }
.insp-km { display: grid; gap: .2rem; margin-top: .35rem; }
.insp-km input { max-width: 12rem; }

/* Ler CNH pelo QR Code (venda) */
.cnh-read { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 .75rem; }
.cnh-read label.btn { cursor: pointer; margin: 0; }
.cnh-read .is-warn { color: var(--warn); }
.sale input.is-autofilled, .sale select.is-autofilled { border-color: #16a34a; }
.cnh-read input[type=file] { display: none; }
/* Câmera da CNH em tela cheia */
html.cnh-cam-open, html.cnh-cam-open body { overflow: hidden; }
.cnh-cam { position: fixed; inset: 0; z-index: 9999; background: #000; }
.cnh-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cnh-cam-guide { position: absolute; left: 50%; top: 50%; width: min(80vw, 80vh); aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid rgba(255,255,255,.9); border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
.cnh-cam-hint { position: absolute; left: 16px; right: 16px; top: max(16px, env(safe-area-inset-top)); margin: 0; color: #fff; text-align: center; font-weight: 600; text-shadow: 0 1px 3px #000; }
.cnh-cam-cancel { position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: #fff; color: #111; min-width: 10rem; }
/* Adesão com desconto (proposta e cotação) */
.adh-full { color: var(--muted, #8a8d99); font-weight: 600; }
.adh-off { display: block; color: #0f8a4b; font-size: .78em; font-weight: 800; }
.umodal-field { display: grid; gap: .35rem; margin: .75rem 0 .25rem; font-weight: 600; }
.umodal-field input { font-size: 1.15rem; padding: .6rem .75rem; border: 1px solid var(--line, #d0d4dd); border-radius: 10px; }
.umodal-hint { margin: .25rem 0 0; color: #0f8a4b; font-weight: 700; font-size: .9rem; }
.adh-val { text-align: right; white-space: nowrap; }
.adh-val .adh-full { font-size: .85em; margin-right: .25rem; }
.adh-val .adh-off { white-space: nowrap; }

/* ---------- CRM do funil dos sites (/admin/funil): barra de filtro, quadro com as 10 etapas lado a lado e painel do card */
.crm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.crm-bar select, .crm-bar .crm-find { min-height: 38px; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: .9rem; color: var(--ink); }
.crm-bar select { width: auto; max-width: 240px; }
.crm-bar .crm-find { flex: 1 1 220px; max-width: 340px; width: auto; }
.crm-seg { display: inline-flex; background: var(--blue-50); border-radius: var(--radius-sm); padding: 3px; }
.crm-seg a { padding: .4rem .9rem; border-radius: 8px; color: var(--muted); font-size: .9rem; }
.crm-seg a.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(5, 0, 54, .12); }
.crm-check { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.crm-status { color: var(--ok); margin-left: auto; }
.crm-status.error-text { color: var(--err); }
.crm-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; height: calc(100vh - 190px); min-height: 420px; }
.crm-col { background: #eef0f5; border-radius: var(--radius-sm); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.crm-col-team { background: var(--orange-50); }
.crm-col-fechado { background: var(--ok-50); }
.crm-col-perdido { background: #f1f2f6; }
.crm-col-head { display: flex; align-items: center; justify-content: space-between; gap: .3rem; padding: .55rem .55rem .45rem; border-top: 3px solid #c9cddb; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.crm-col-team .crm-col-head { border-top-color: var(--brand-orange); }
.crm-col-fechado .crm-col-head { border-top-color: var(--ok); }
.crm-col-perdido .crm-col-head { border-top-color: var(--muted); }
.crm-col-head strong { color: var(--ink); font-size: .78rem; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; }
.crm-count { flex: none; font-size: .72rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.crm-list { flex: 1; min-height: 0; overflow-y: auto; padding: .1rem .25rem .5rem; display: flex; flex-direction: column; gap: .35rem; scrollbar-width: thin; }
.crm-list.is-over { outline: 2px dashed var(--brand-orange); outline-offset: -3px; background: rgba(255, 110, 1, .07); }
.crm-card { flex: none; background: var(--surface); border: 1px solid transparent; border-radius: 8px; box-shadow: 0 1px 2px rgba(5, 0, 54, .08); padding: .4rem .45rem; display: grid; gap: .05rem; cursor: pointer; min-width: 0; }
.crm-card:hover, .crm-card:focus-visible { border-color: var(--brand-blue); outline: none; }
.crm-card.is-open { border-color: var(--brand-orange); box-shadow: 0 0 0 2px var(--orange-50); }
.crm-card.is-dragging { opacity: .4; }
.crm-card[hidden] { display: none; }
.crm-card.is-anon .crm-name { color: var(--muted); font-weight: 600; }
.crm-sub, .crm-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-name { overflow-wrap: anywhere; line-height: 1.25; }
.crm-name { color: var(--ink); font-size: .85rem; }
.crm-sub { font-size: .72rem; color: var(--text); }
.crm-meta { font-size: .68rem; color: var(--muted); }
.crm-has-note { color: var(--warn); font-weight: 700; }
.crm-more-n { margin: .2rem 0 0; font-size: .7rem; color: var(--muted); text-align: center; }
.crm-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100vw); background: var(--surface); border-left: 1px solid var(--line); box-shadow: -12px 0 32px rgba(5, 0, 54, .12); z-index: 60; overflow-y: auto; padding: 1.25rem 1.25rem 2rem; }
.crm-drawer[hidden] { display: none; }
.crm-drawer > div { display: grid; gap: .8rem; }
.crm-drawer h3 { padding-right: 2rem; }
.crm-drawer label { display: grid; gap: .25rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.crm-drawer select, .crm-drawer textarea { width: 100%; font: inherit; font-size: .9rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); }
.crm-drawer textarea { resize: vertical; }
.crm-drawer-close { position: absolute; top: .75rem; right: .75rem; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--ink); }
.crm-dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; margin: 0; font-size: .85rem; }
.crm-dl dt { color: var(--muted); }
.crm-dl dd { margin: 0; color: var(--ink); }
.crm-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.crm-actions:empty { display: none; }
@media (max-width: 900px) {
  .crm-board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68vw; overflow-x: auto; height: 70vh; }
  .crm-status { margin-left: 0; width: 100%; }
}
/* Funil dos sites: o quadro usa a largura toda da tela (sem o limite de 1600px das outras páginas). */
.content:has([data-funnel-root]) { max-width: none; }
/* Aba Números do funil: um card por etapa do site, na mesma ordem das colunas do quadro */
.crm-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.25rem; }
.crm-kpi { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid #c9cddb; border-radius: var(--radius-sm); padding: .85rem .9rem; display: grid; gap: .3rem; align-content: start; min-width: 0; }
.crm-kpi-last { border-top-color: var(--brand-orange); }
.crm-kpi strong { font-size: 1.8rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.crm-kpi progress { width: 100%; height: 6px; accent-color: var(--brand-blue); }
.crm-kpi progress::-webkit-progress-bar { background: #eef0f4; border-radius: 999px; }
.crm-kpi progress::-webkit-progress-value { background: var(--brand-blue); border-radius: 999px; }
.crm-kpi progress::-moz-progress-bar { background: var(--brand-blue); border-radius: 999px; }
.crm-kpi-last progress::-webkit-progress-value { background: var(--brand-orange); }
.crm-kpi-last progress::-moz-progress-bar { background: var(--brand-orange); }
.crm-kpi-sub { font-size: .82rem; color: var(--text); }
.crm-kpi-step { font-size: .74rem; color: var(--muted); }
@media (max-width: 1100px) { .crm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .crm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- CRM de vendas (/crm): Leads | Cotações | Vistorias | Liberadas | Vendas, no estilo do pipeline do Power */
.content:has([data-scrm-root]) { max-width: none; }
.scrm-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; font-size: .78rem; color: var(--muted); margin-left: auto; }
.scrm-tick { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: .35rem; }
.scrm-tick-site { background: var(--brand-orange); }
.scrm-tick-link { background: #2f6fde; }
.scrm-tick-portal { background: #7a4fd6; }
.scrm-tick-power { background: #b8bdcc; }
.scrm-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; height: calc(100vh - 175px); min-height: 440px; }
.scrm-board .crm-col-head { border-top-color: #c9cddb; }
.scrm-col-completed .crm-col-head { border-top-color: var(--ok); }
.scrm-board .crm-col-head > div { display: grid; gap: .1rem; }
.scrm-board .crm-col-head strong { min-height: 0; font-size: .9rem; }
.scrm-found { font-size: .75rem; color: var(--muted); }
.scrm-card { gap: .15rem; padding: .55rem .65rem .6rem .8rem; position: relative; overflow: hidden; }
.scrm-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #b8bdcc; }
.scrm-o-site::before { background: var(--brand-orange); }
.scrm-o-link::before { background: #2f6fde; }
.scrm-o-portal::before { background: #7a4fd6; }
.scrm-badges { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .15rem; }
.scrm-b { display: inline-block; font-size: .66rem; font-weight: 700; padding: .1rem .45rem; border-radius: 6px; background: #8d93a5; color: #fff; white-space: nowrap; }
.scrm-b-site, .scrm-b-o-site { background: var(--brand-orange); }
.scrm-b-o-link { background: #2f6fde; }
.scrm-b-o-portal { background: #7a4fd6; }
.scrm-b-ok, .scrm-b-sga, .scrm-b-insp-aprovada { background: #1f9d55; }
.scrm-b-insp-aberta, .scrm-b-insp-em-aprovacao { background: #2f6fde; }
.scrm-b-insp-rejeitada { background: var(--err); }
.scrm-b-wait { background: var(--warn); }
.scrm-row { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem; min-width: 0; }
.scrm-name { font-size: .86rem; color: var(--ink); line-height: 1.25; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scrm-date { font-size: .7rem; color: var(--muted); white-space: nowrap; flex: none; }
.scrm-vehicle { font-size: .76rem; color: var(--text); line-height: 1.3; }
.scrm-plate { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .03em; color: var(--ink); background: #eef0f5; border: 1px solid #d9dce6; border-radius: 4px; padding: 0 .3rem; }
.scrm-foot { align-items: center; margin-top: .2rem; }
.scrm-money { font-size: .86rem; font-weight: 700; color: #1f9d55; min-width: 0; }
.scrm-money small { font-size: .68rem; font-weight: 600; color: var(--muted); }
.scrm-money .scrm-adh { display: block; font-weight: 500; }
.scrm-stage { font-size: .72rem; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scrm-person { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; flex: none; max-width: 55%; margin-left: auto; }
.scrm-person-name { font-size: .68rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
.scrm-modal { position: fixed; inset: 0; background: rgba(5, 0, 54, .45); z-index: 70; display: grid; place-items: center; padding: 1rem; }
.scrm-modal[hidden] { display: none; }
.scrm-modal-box { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(5, 0, 54, .25); width: min(520px, 100%); max-height: 90vh; overflow-y: auto; padding: 1.4rem 1.5rem 1.5rem; }
.scrm-modal-box > div { display: grid; gap: .75rem; }
.scrm-modal-head { display: flex; align-items: center; gap: .5rem; padding-right: 2.5rem; }
.scrm-modal-title { margin: -.4rem 0 0; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) {
  .scrm-board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78vw; overflow-x: auto; height: 72vh; }
  .scrm-legend { margin-left: 0; }
}

/* CRM de vendas: quadradinho com a foto (ou iniciais) de quem atende, no canto inferior direito */
.scrm-avatar { flex: none; width: 26px; height: 26px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: var(--brand-blue); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .02em; box-shadow: 0 0 0 2px var(--surface); }
.scrm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Meus dados: foto de perfil */
.photo-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.photo-preview { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--brand-blue); color: #fff; font-weight: 700; font-size: 1.4rem; flex: none; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-form { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0; }
.photo-pick { position: relative; overflow: hidden; cursor: pointer; }
.photo-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* CRM de vendas: cotação completa no modal, ícone do WhatsApp e abas de etapa no celular */
.scrm-avatar-lg { width: 56px; height: 56px; border-radius: 10px; font-size: 1.05rem; box-shadow: none; }
.scrm-modal-head { flex-wrap: wrap; }
.scrm-modal-box.is-wide { width: min(880px, 100%); }
.scrm-full { display: grid; gap: 1rem; }
.scrm-full-title { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.scrm-full-title h3 { margin: 0 0 .25rem; }
.scrm-full-title .scrm-modal-title { margin: 0; }
.scrm-full-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.scrm-full-money > div { background: #f4f5f9; border-radius: var(--radius-sm); padding: .55rem .7rem; display: grid; gap: .1rem; min-width: 0; }
.scrm-full-money span { font-size: .72rem; color: var(--muted); }
.scrm-full-money strong { color: var(--ink); font-size: 1rem; overflow-wrap: anywhere; }
.scrm-full-money > div:first-child strong { color: #1f9d55; }
.scrm-full-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.scrm-full-grid section { min-width: 0; }
.scrm-full-grid h4 { margin: 0 0 .4rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .3rem; }
.scrm-full-grid .crm-dl dd { overflow-wrap: anywhere; }
.scrm-full-wide { grid-column: 1 / -1; }
.scrm-full-person { display: flex; gap: 1rem; align-items: flex-start; }
.scrm-full-person .crm-dl { flex: 1; min-width: 0; }
.wa-icon { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 2px 6px rgba(37, 211, 102, .35); }
.wa-icon:hover { background: #1ebe5b; color: #fff; }
.wa-icon svg { width: 26px; height: 26px; fill: currentColor; }
.scrm-tabs { display: none; }
@media (min-width: 1500px) { .scrm-person-name { display: inline; } }
@media (max-width: 900px) {
  .scrm.has-tabs .scrm-tabs { display: flex; gap: .4rem; overflow-x: auto; margin: 0 0 .6rem; padding-bottom: .2rem; scrollbar-width: none; }
  .scrm-tabs button { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .45rem .8rem; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
  .scrm-tabs button span { display: inline-block; min-width: 1.4em; margin-left: .2rem; padding: 0 .35rem; border-radius: 999px; background: #eef0f5; color: var(--muted); font-size: .72rem; }
  .scrm-tabs button.is-active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
  .scrm-tabs button.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }
  .scrm.has-tabs .scrm-board { display: block; height: auto; min-height: 0; overflow: visible; }
  .scrm.has-tabs .crm-col { display: none; background: none; }
  .scrm.has-tabs .crm-col.is-active { display: block; }
  .scrm.has-tabs .crm-col-head { display: none; }
  .scrm.has-tabs .crm-list { overflow: visible; padding: 0; gap: .5rem; }
  .scrm.has-tabs .scrm-card { padding: .75rem .85rem .75rem 1rem; gap: .25rem; }
  .scrm.has-tabs .scrm-name { font-size: 1rem; }
  .scrm.has-tabs .scrm-vehicle { font-size: .85rem; }
  .scrm.has-tabs .scrm-money { font-size: .95rem; }
  .scrm.has-tabs .scrm-person-name { display: inline; font-size: .74rem; }
  .scrm.has-tabs .scrm-avatar { width: 30px; height: 30px; }
  .scrm-modal { padding: 0; place-items: end stretch; }
  .scrm-modal-box, .scrm-modal-box.is-wide { width: 100%; max-height: 92vh; border-radius: var(--radius) var(--radius) 0 0; padding: 1.1rem 1rem 1.5rem; }
  .scrm-full-grid { grid-template-columns: 1fr; }
  .scrm-full-money { gap: .35rem; }
  .scrm-full-money > div { padding: .45rem .5rem; }
  .scrm-full-money strong { font-size: .9rem; }
}

/* CRM de vendas: abas da cotação no modal */
.scrm-modal-box.is-wide { width: min(960px, 100%); }
.scrm-dtabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin: 0 -.25rem; padding: 0 .25rem; }
.scrm-dtabs button { flex: none; border: 0; background: none; font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); padding: .55rem .7rem; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
.scrm-dtabs button:hover { color: var(--ink); }
.scrm-dtabs button.is-active { color: var(--ink); border-bottom-color: var(--brand-orange); }
.scrm-dpane { display: grid; gap: .9rem; min-height: 220px; align-content: start; }
.scrm-dpane[hidden] { display: none; }
.scrm-h4 { margin: .2rem 0 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.scrm-actf { display: flex; flex-wrap: wrap; gap: .35rem; }
.scrm-actf button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: .25rem .7rem; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.scrm-actf button.is-active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.scrm-acts { list-style: none; margin: 0; padding: 0; display: grid; }
.scrm-act { display: grid; grid-template-columns: 14px 1fr; gap: .6rem; padding: .45rem 0; position: relative; }
.scrm-act[hidden] { display: none; }
.scrm-act::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.scrm-act:first-child::before { top: .9rem; }
.scrm-act:last-child::before { bottom: calc(100% - .9rem); }
.scrm-act-dot { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; margin-top: .2rem; background: #8d93a5; box-shadow: 0 0 0 3px var(--surface); }
.scrm-act-cotacao .scrm-act-dot { background: #7a4fd6; }
.scrm-act-vistoria .scrm-act-dot { background: #2f6fde; }
.scrm-act-sga .scrm-act-dot { background: #1f9d55; }
.scrm-act-contato .scrm-act-dot { background: var(--brand-orange); }
.scrm-act > div { display: grid; gap: .05rem; min-width: 0; }
.scrm-act strong { font-size: .88rem; color: var(--ink); font-weight: 600; }
.scrm-plans { display: grid; gap: .4rem; }
.scrm-plan { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem .7rem; }
.scrm-plan.is-selected { border-color: #1f9d55; background: #f1faf4; }
.scrm-plan summary { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; cursor: pointer; }
.scrm-plan ul { margin: .5rem 0 0; padding-left: 1.1rem; columns: 2; }
.scrm-plan-price { font-weight: 700; color: var(--ink); white-space: nowrap; }
.scrm-insp-head { background: #f4f5f9; border-radius: var(--radius-sm); padding: .6rem .8rem; }
.scrm-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.scrm-media figure { margin: 0; display: grid; gap: .3rem; align-content: start; }
.scrm-media img, .scrm-media video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: #0b0b1a; display: block; }
.scrm-media figure.is-empty .scrm-media-none, .scrm-media-file { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); border: 1px dashed #c9cddb; color: var(--muted); font-size: .78rem; text-align: center; padding: .5rem; background: #fafbfd; }
.scrm-media figcaption { font-size: .76rem; line-height: 1.3; }
.scrm-docs { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; font-size: .86rem; }
.scrm-sga-step { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .45rem .7rem; }
.scrm-sga-step summary { cursor: pointer; font-size: .86rem; }
.scrm-sga-step .crm-dl { margin-top: .5rem; font-size: .8rem; }
@media (max-width: 900px) {
  .scrm-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scrm-plan ul { columns: 1; }
  .scrm-dtabs { position: sticky; top: -1.1rem; background: var(--surface); z-index: 2; }
}
.scrm-dtabs { position: sticky; top: -1.4rem; background: var(--surface); z-index: 2; }
@media (max-width: 900px) { .scrm-dtabs { top: -1.1rem; } }
.scrm-modal-box.is-wide { height: min(90vh, 920px); }
@media (max-width: 900px) { .scrm-modal-box.is-wide { height: 92vh; } .scrm-media figure.is-empty .scrm-media-none { aspect-ratio: auto; min-height: 64px; } }

/* ============ tema escuro do painel (html[data-theme="dark"], escolhido no botão da barra do topo; cookie gb_theme) */
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

html[data-theme="dark"] {
  color-scheme: dark;
  --blue-700: #262a36;
  --blue-50: #23262f;
  --orange-50: #3a2414;
  --orange-600: #ff8a33;
  --bg: #0f1014;
  --surface: #181a20;
  --ink: #f1f2f5;
  --text: #d6d8de;
  --muted: #9c9fab;
  --line: #2c2f38;
  --ok: #4cc98a;
  --ok-50: #123224;
  --warn: #f2b552;
  --warn-50: #362a12;
  --err: #ff7f74;
  --err-50: #3d1a18;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  --link: #ff9a4d;
}
html[data-theme="dark"] body { background: var(--bg); }
/* :where() deixa a especificidade igual à das regras originais: .nav-link, .btn etc. continuam valendo */
:where(html[data-theme="dark"]) a,
:where(html[data-theme="dark"]) .link-strong,
:where(html[data-theme="dark"]) .lp-legal a,
:where(html[data-theme="dark"]) .legal-page h2,
:where(html[data-theme="dark"]) .region-card-head strong,
:where(html[data-theme="dark"]) .chart-table summary,
:where(html[data-theme="dark"]) .ev-desc summary,
:where(html[data-theme="dark"]) .edit-adhesion summary,
:where(html[data-theme="dark"]) .badge-received,
:where(html[data-theme="dark"]) .receipt-link { color: var(--link); }
:where(html[data-theme="dark"]) a:hover { color: var(--brand-orange); }
html[data-theme="dark"] .btn-danger { background: #c9372e; }
html[data-theme="dark"] .btn-dark { background: #2c303c; }
html[data-theme="dark"] .btn-dark:hover { background: #383d4b; }
html[data-theme="dark"] .segmented a.is-active, html[data-theme="dark"] .settings-tabs a.is-active,
html[data-theme="dark"] .period-presets a.is-active, html[data-theme="dark"] .plan-type input:checked + span,
html[data-theme="dark"] .scrm-tabs button.is-active, html[data-theme="dark"] .scrm-actf button.is-active { background: var(--brand-orange); border-color: var(--brand-orange); color: var(--brand-blue); }
html[data-theme="dark"] .plan-type input:checked + span .plan-ico { color: var(--brand-blue); }
html[data-theme="dark"] .segmented a.is-active .count, html[data-theme="dark"] .scrm-tabs button.is-active span { background: rgba(5, 0, 54, .18); color: var(--brand-blue); }
html[data-theme="dark"] .share-card, html[data-theme="dark"] .kpi-accent, html[data-theme="dark"] .hero { border: 1px solid var(--line); }
html[data-theme="dark"] .topbar { background: rgba(15, 16, 20, .92); }
html[data-theme="dark"] .sidebar-logo img, html[data-theme="dark"] .topbar-logo img { border-radius: 10px; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { border-color: #3a3d48; }
html[data-theme="dark"] textarea { background: var(--surface); color: var(--text); }
html[data-theme="dark"] input:focus, html[data-theme="dark"] select:focus, html[data-theme="dark"] textarea:focus { border-color: var(--link); box-shadow: 0 0 0 3px rgba(255, 110, 1, .22); }
html[data-theme="dark"] .input-prefix { background: var(--surface); border-color: #3a3d48; }
html[data-theme="dark"] .input-prefix > span, html[data-theme="dark"] .plate-status,
html[data-theme="dark"] .scrm-full-money > div, html[data-theme="dark"] .scrm-insp-head { background: #22252d; }
html[data-theme="dark"] .table tbody tr:hover td, html[data-theme="dark"] .sale-step.is-locked { background: #1d2027; }
html[data-theme="dark"] .tag-exec { background: #3a2414; color: #ffb27a; }
html[data-theme="dark"] .badge-inspection { background: #2b2350; color: #c3b0ff; }
html[data-theme="dark"] .badge-registration { background: #12302e; color: #6fd6cc; }
html[data-theme="dark"] .badge-archived, html[data-theme="dark"] .badge-user-disabled { background: #23262f; }
html[data-theme="dark"] .switch span, html[data-theme="dark"] .qf-switch-ui { background: #3c3f4a; }
html[data-theme="dark"] .sale-filebox, html[data-theme="dark"] .plans-empty,
html[data-theme="dark"] .scrm-media figure.is-empty .scrm-media-none, html[data-theme="dark"] .scrm-media-file { border-color: #3c3f4a; }
html[data-theme="dark"] .lp-card, html[data-theme="dark"] .umodal-box, html[data-theme="dark"] .qwait-box,
html[data-theme="dark"] .chart-tip { background: var(--surface); color: var(--text); }
html[data-theme="dark"] .qwait-bar, html[data-theme="dark"] .scrm-tabs button span { background: #1d2027; }
html[data-theme="dark"] .crm-col, html[data-theme="dark"] .crm-col-perdido { background: #0b0c0f; border: 1px solid var(--line); }
html[data-theme="dark"] .crm-col-head, html[data-theme="dark"] .crm-kpi, html[data-theme="dark"] .scrm-board .crm-col-head { border-top-color: #3c3f4a; }
html[data-theme="dark"] .crm-card { background: #1f222b; border-color: #30333f; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .crm-card:hover, html[data-theme="dark"] .crm-card:focus-visible { border-color: var(--link); }
html[data-theme="dark"] .crm-list { gap: .5rem; }
html[data-theme="dark"] .kpi progress::-webkit-progress-bar, html[data-theme="dark"] .crm-kpi progress::-webkit-progress-bar { background: #2c2f38; }
html[data-theme="dark"] .crm-kpi progress { accent-color: var(--link); }
/* placas continuam com cara de placa: fundo branco e letras escuras */
html[data-theme="dark"] .plate, html[data-theme="dark"] .scrm-plate { background: #fff; color: #050036; }
html[data-theme="dark"] .scrm-plate { border-color: #fff; }
html[data-theme="dark"] .plate.plate-none { background: transparent; color: var(--muted); }
html[data-theme="dark"] .qf .plate-mercosul input { background: #fff; color: #111; }
html[data-theme="dark"] .scrm-money, html[data-theme="dark"] .scrm-full-money > div:first-child strong,
html[data-theme="dark"] .adh-off, html[data-theme="dark"] .umodal-hint { color: var(--ok); }
html[data-theme="dark"] .scrm-plan.is-selected { background: #13291d; }
html[data-theme="dark"] .cg-line { stroke: #262931; }
html[data-theme="dark"] .cg-base, html[data-theme="dark"] .cl-cross { stroke: #3c3f4a; }
html[data-theme="dark"] .cg-tick { fill: #9a9fba; }
html[data-theme="dark"] .cc-col.is-on .chart-hit { fill: rgba(255, 255, 255, .05); }
html[data-theme="dark"] .cl-dot { stroke: var(--surface); }
html[data-theme="dark"] .ev-timeline li:not(.is-status)::before { background: #3c3f4a; }
html[data-theme="dark"] .pay { background: linear-gradient(160deg, var(--orange-50), var(--surface) 60%); border-color: #5a3418; }
html[data-theme="dark"] .pay-ok { background: linear-gradient(160deg, var(--ok-50), var(--surface) 60%); border-color: #1f5a3a; }
html[data-theme="dark"] .plan:hover { border-color: #8a4a1a; }
html[data-theme="dark"] code { color: var(--ink); }
html[data-theme="dark"] .step span, html[data-theme="dark"] .comm-steps li::before { background: var(--brand-orange); color: var(--brand-blue); }

/* ============ app instalável (PWA): cartão "Instalar o app" e barra de abas no celular */
.install-card { margin-top: .75rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: grid; gap: .35rem; background: var(--surface); }
.install-card[hidden], .install-ios[hidden] { display: none; }
.install-card small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.install-card .btn { margin-top: .35rem; }
.install-ios { margin: .35rem 0 0; color: var(--text); line-height: 1.45; }
.install-card-auth { margin-top: 1.25rem; text-align: center; }
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(5, 0, 54, .06); padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom)); }
  .tab { display: grid; justify-items: center; gap: .1rem; padding: .3rem 0 .2rem; min-height: 52px; color: var(--muted); font: inherit; font-size: .7rem; font-weight: 600; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tab svg { width: 23px; height: 23px; }
  .tab.is-active, .tab:hover { color: var(--brand-orange); }
  .tab-main svg { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--brand-orange); color: #fff; margin-top: -.45rem; box-shadow: 0 4px 12px rgba(255, 110, 1, .35); }
  .tab-main { color: var(--ink); }
  body.has-tabbar .content { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  body.has-tabbar .menu-toggle { display: none; }
}

/* ---------- Cotação simplificada (vendedor): detalhes recolhidos, ações raras em "Mais", participação num seletor */
.quote-facts-more { margin: .75rem 0 0; }
.quote-facts-more > summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--muted); }
.quote-facts-more[open] > summary { margin-bottom: .25rem; }
.more-menu { position: relative; margin-top: .75rem; }
.more-menu > summary { list-style: none; display: inline-flex; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu-list { display: grid; gap: .5rem; margin-top: .6rem; max-width: 420px; }
.more-menu-list > .btn, .more-menu-list .archive > summary { width: 100%; text-align: center; }
.more-menu-sm { margin-top: 0; flex: none; }
.more-menu-sm > summary { min-width: 48px; justify-content: center; font-size: 1.2rem; }
.more-menu-sm[open] { flex-basis: 100%; order: 2; }
.adh-more { margin: -.25rem 0 1rem; }
.adh-more > summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--brand-orange); }
.adh-more[open] > summary { margin-bottom: .6rem; }
.plan-switch { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin: 0 0 .9rem; padding-bottom: .1rem; }
.plan-switch::-webkit-scrollbar { display: none; }
.plan-switch-btn { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: .45rem .9rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.plan-switch-btn.is-on { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }
.plan-send { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; margin: 0 0 1rem; }
.plan-send[hidden], .plan-group[hidden] { display: none; }
.plan-send-wa { flex: 1 1 240px; }
.plan-line { margin: 0; }
.plan-cov-title { margin: .5rem 0 0; font-weight: 700; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.plan .plan-copy { align-self: center; color: var(--muted); text-decoration: none; }
.plan .plan-copy:hover { color: var(--ink); text-decoration: underline; }
/* Venda: os passos que ainda não chegaram viram uma linha só */
.sale-step.is-locked { padding: .55rem 1.1rem; }
.sale-step.is-locked .sale-step-head { align-items: center; }
.sale-step.is-locked .sale-step-head p, .sale-step.is-locked > :not(.sale-step-head) { display: none; }
.sale-step.is-locked h3 { margin: 0; font-size: .92rem; }
.sale-step.is-locked .sale-num { width: 24px; height: 24px; font-size: .78rem; }
@media (max-width: 720px) {
  .plan-send-wa { flex-basis: 0; min-width: 0; }
  .plans { gap: .75rem; }
  .plan { padding: 1rem; gap: .5rem; }
  .plan-price { font-size: 1.7rem; }
}

/* Funil do site do vendedor: link /meu-id para os testes não contarem */
.funnel-myid { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.funnel-myid h3 { margin: 0 0 .25rem; }
.funnel-myid p { margin: 0; max-width: 60ch; }
.funnel-myid-link { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.funnel-myid-link code { word-break: break-all; }

/* Página temporária: excluir cotações de teste */
.qclean-note { margin-top: 0; }
.qclean-bar, .qclean-foot { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin: .75rem 0; }
.qclean-foot { justify-content: space-between; }

/* /meu-id: painel do aparelho de teste */
.myid { text-align: center; }
.myid-code { font-size: 2.6rem; letter-spacing: .12em; margin: .1rem 0 .6rem; }
.myid-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1rem 0 .75rem; }
.myid-flash { background: var(--blue-50); border-radius: var(--radius-sm); padding: .55rem .8rem; margin: 0 0 1rem; }

/* Painel principal (Visão geral / Meu painel): responsivo */
.dash .grid-dash { align-items: stretch; }
.dash .grid-dash > .card { display: flex; flex-direction: column; }
.dash .funnel { margin-bottom: 1.5rem; }
.dash .funnel-facts { margin-top: auto !important; }
@media (min-width: 1500px) {
  .dash .kpi strong { font-size: 2.3rem; }
}
@media (max-width: 1100px) and (min-width: 721px) {
  .dash .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .dash .period-row { gap: .4rem .75rem; margin-bottom: .9rem; }
  .dash .period-note { display: none; }
  .dash .period-picker { flex: 1 1 100%; }
  .dash .kpi { padding: .8rem .85rem; }
  .dash .kpi-label { font-size: .68rem; letter-spacing: .04em; }
  .dash .kpi-sub { font-size: .76rem; line-height: 1.3; }
  .dash .funnel-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "bar bar"; gap: .25rem .6rem; }
  .dash .funnel-label { grid-area: label; }
  .dash .funnel-value { grid-area: value; text-align: right; }
  .dash .funnel-bar { grid-area: bar; }
  .dash .funnel-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .dash .funnel-facts dt { font-size: .64rem; }
  .dash .seller-qr { flex-direction: column; align-items: flex-start; }
  .dash .seller-qr img { width: 132px; height: 132px; }
}
@media (max-width: 380px) {
  .dash .kpis { grid-template-columns: minmax(0, 1fr); }
}

/* CRM de vendas: período (atalhos + calendário de data específica) */
.scrm-dates { position: relative; display: inline-flex; align-items: center; }
.scrm-dates.is-hidden { display: none; }
.scrm-range-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 38px; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.scrm-range-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.scrm-range-btn:hover { border-color: var(--brand-orange); }
.scrm-cal { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; padding: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(10, 12, 40, .18); width: max-content; max-width: calc(100vw - 32px); }
.scrm-cal[hidden] { display: none; }
.scrm-cal-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.scrm-cal-top strong { font-size: .9rem; }
.scrm-cal-nav { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.scrm-cal-nav:disabled { opacity: .35; cursor: default; }
.scrm-cal-months { display: flex; gap: 1.2rem; }
.scrm-cal-title { margin: 0 0 .35rem; text-align: center; font-weight: 600; text-transform: capitalize; font-size: .9rem; }
.scrm-cal-grid { display: grid; grid-template-columns: repeat(7, 38px); row-gap: 2px; }
.scrm-cal-wd { text-align: center; font-size: .72rem; color: var(--muted); padding: .2rem 0; }
.scrm-cal-day { height: 36px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .86rem; cursor: pointer; border-radius: 8px; }
.scrm-cal-day:hover:not(:disabled) { outline: 2px solid var(--brand-orange); outline-offset: -2px; }
.scrm-cal-day:disabled { color: var(--muted); opacity: .4; cursor: default; }
.scrm-cal-day.is-today { font-weight: 700; text-decoration: underline; }
.scrm-cal-day.is-in { background: rgba(255, 110, 1, .16); border-radius: 0; }
.scrm-cal-day.is-start, .scrm-cal-day.is-end { background: var(--brand-orange); color: #fff; font-weight: 700; }
.scrm-cal-day.is-start { border-radius: 8px 0 0 8px; }
.scrm-cal-day.is-end { border-radius: 0 8px 8px 0; }
.scrm-cal-day.is-start.is-end { border-radius: 8px; }
.scrm-cal-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; }
.scrm-period-note { margin: -.5rem 0 .9rem; }
@media (max-width: 720px) { .scrm-period-note { display: none; } }
@media (max-width: 420px) { .scrm-cal-month { flex: 1; min-width: 0; } .scrm-cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } .scrm-cal { left: 0; right: auto; width: calc(100vw - 32px); } }
.scrm-search-note { margin: -.4rem 0 .9rem; padding: .55rem .8rem; border-radius: var(--radius-sm); background: rgba(255, 110, 1, .1); font-size: .88rem; }
.scrm-search-note a { margin-left: .4rem; font-weight: 600; }
.scrm-found-sub { display: block; margin-top: .1rem; font-size: .72rem; color: var(--muted); }
.crm-bar select.is-on { border-color: var(--brand-orange); box-shadow: 0 0 0 1px var(--brand-orange) inset; }
.scrm-b-sga-only { background: #5b6472; }

/* Motos elétricas */
.ebike-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.ebike-plan { position: relative; display: block; cursor: pointer; }
.ebike-plan input { position: absolute; opacity: 0; pointer-events: none; }
.ebike-plan-box { display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); }
.ebike-plan input:checked + .ebike-plan-box { border-color: var(--brand-orange); box-shadow: 0 0 0 2px rgba(255, 110, 1, .18); }
.ebike-plan input:focus-visible + .ebike-plan-box { outline: 2px solid var(--brand-orange); outline-offset: 2px; }
.ebike-price { font-size: 1.35rem; font-weight: 800; color: var(--ok); }
.ebike-price small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.ebike .span-2 { grid-column: 1 / -1; }
.ebike-missing { margin: .2rem 0 .8rem 1.1rem; padding: 0; color: var(--err); }
.ebike-admin { margin-top: .75rem; }
.ebike-files-title { margin: .9rem 0 .35rem; }
.ebike-files { list-style: none; margin: 0 0 .5rem; padding: 0; }
.ebike-files li { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ebike-files li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ebike-files form { margin: 0; }
.ebike-upload { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ebike-upload input[type=file] { flex: 1 1 200px; min-width: 0; font-size: .85rem; }
.ebike-wa { margin: 0 0 .75rem; padding: .8rem; border-radius: 10px; background: var(--blue-50); white-space: pre-wrap; word-break: break-word; font: inherit; font-size: .88rem; }
.ebike-wa-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ebike-sga { display: grid; gap: 0; margin: 0 0 .5rem; }
.ebike-sga div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: .5rem; padding: .3rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.ebike-sga dt { color: var(--muted); }
.ebike-sga dd { margin: 0; min-width: 0; }
.ebike-copy { all: unset; cursor: pointer; font-weight: 600; word-break: break-word; border-bottom: 1px dashed var(--line); }
.ebike-copy:hover, .ebike-copy:focus-visible { color: var(--brand-orange); border-color: var(--brand-orange); }
.ebike-steps { margin: 0 0 .75rem 1.1rem; padding: 0; display: grid; gap: .35rem; }
@media (max-width: 560px) { .ebike-plans { grid-template-columns: 1fr; } .ebike-sga div { grid-template-columns: 1fr; gap: .1rem; } }
