/* ==========================================================
   EXPRESSO TEIXEIRA · painel
   Azul-marinho + laranja da marca, vidro fosco, fundo azul-noite com grão leve
   Montserrat (títulos) + DM Sans (textos)
   ========================================================== */

:root {
	--y: #F07000;
	--y2: #d65f00;
	--y-grad: linear-gradient(135deg, #ff9a3c 0%, #F07000 45%, #d65f00 100%);
	--glass: rgba(255, 255, 255, .72);
	--glass-line: rgba(13, 13, 14, .08);
	--side-glass: linear-gradient(180deg, rgba(20, 32, 82, .82) 0%, rgba(8, 14, 40, .92) 100%);
	--side: 262px;
	--side-mini: 88px;
	--radius: 18px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--spring: cubic-bezier(.34, 1.56, .64, 1);
	--accent: #F07000;
	--accent-soft: #ffe8d6;
}
[data-theme="dark"] {
	--ink: #f4f3ef;
	--ink-2: #e7e6e1;
	--ink-3: #c9c8c3;
	--bg: #050a1c;
	--card: rgba(16, 26, 62, .55);
	--line: rgba(255, 255, 255, .08);
	--line-2: rgba(255, 255, 255, .15);
	--muted: #a2a1a8;
	--muted-2: #6d6c73;
	--accent: #F07000;
	--accent-soft: rgba(240, 112, 0, .12);
	--glass: rgba(16, 26, 62, .55);
	--glass-line: rgba(255, 255, 255, .08);
	--shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 60px -34px rgba(0, 0, 0, .9);
}

body.etx { background: var(--bg); font-family: var(--font); letter-spacing: -.005em; }
h1, h2, h3, h4, .top-title, .stat strong { font-family: var(--head); letter-spacing: -.02em; }
::selection { background: var(--y); color: #0a0a0a; }

/* ---------- Fundo: preto com grão leve ---------- */
.tx-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--bg); }
.tx-bg::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: .07; mix-blend-mode: normal; }
.tx-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .025), transparent 60%); }
:root:not([data-theme="dark"]) .tx-bg::before, [data-theme="light"] .tx-bg::before { filter: invert(1); opacity: .05; }
.app { position: relative; z-index: 1; }

/* ---------- Menu lateral: painel de vidro flutuante ---------- */
.app { grid-template-columns: calc(var(--side) + 18px) minmax(0, 1fr); transition: grid-template-columns .45s var(--ease); }
.side { position: sticky; top: 14px; height: calc(100vh - 28px); margin: 14px 0 14px 14px; padding: 14px 12px 14px; gap: 12px; border-radius: 26px; background: var(--side-glass) !important; border: 1px solid rgba(255, 255, 255, .09) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 80px -30px rgba(0, 0, 0, .85); -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%); color: #d6d5d1; scrollbar-width: none; transition: padding .4s var(--ease); }
.side::-webkit-scrollbar { display: none; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 0 8px; }
.side-dots { display: inline-flex; gap: 7px; }
.side-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25); }
.side-dots i:nth-child(2) { background: #febc2e; }
.side-dots i:nth-child(3) { background: #28c840; }
.side-collapse { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: rgba(255, 255, 255, .04); color: #bdbcb8; cursor: pointer; transition: background .2s, color .2s, transform .4s var(--ease); }
.side-collapse:hover { background: var(--y); color: #0a0a0a; border-color: var(--y); }
.side-brand { padding: 6px 8px 2px; }
.side-brand img { height: 42px; }
.side-search { border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: rgba(255, 255, 255, .045); color: #8f8e94; padding: 10px 12px; }
.side-search:hover { border-color: rgba(240, 112, 0, .45); color: #fff; }
.side-search kbd { border-color: rgba(255, 255, 255, .14); }
.side-label { margin: 14px 12px 6px; font-size: 10.5px; letter-spacing: .16em; color: #6f6e75; font-family: var(--head); font-weight: 700; }
.side-nav a { gap: 12px; padding: 10px 12px; border-radius: 13px; font-size: 14px; color: #b5b4b0; transition: background .25s var(--ease), color .25s, transform .25s var(--ease), box-shadow .3s; }
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; transform: translateX(3px); }
.side-nav a.is-active { background: var(--y-grad); color: #fff; font-weight: 700; box-shadow: 0 10px 30px -10px rgba(240, 112, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .5); transform: none; }
.side-nav a.is-active::before { display: none; }
.side-nav a.is-active .ic { color: #fff; }
.side-count { background: var(--y); color: #fff; min-width: 20px; padding: 1px 6px; font-size: 11px; box-shadow: 0 0 0 3px rgba(240, 112, 0, .15); }
.side-nav a.is-active .side-count { background: #fff; color: var(--y); box-shadow: none; }
.side-tools { border-top: 1px solid rgba(255, 255, 255, .07); }
.side-tools .money-btn, .side-tools .theme-btn { border-radius: 11px; }
.side-user { margin: 0 2px; padding: 10px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 16px; background: rgba(255, 255, 255, .035); }
.side-user .avatar { background: var(--y-grad); color: #fff; font-weight: 800; }
.side .eleve-credit { opacity: .55; }

/* Menu recolhido: só ícones, com dica ao passar o mouse */
@media (min-width: 1025px) {
	.side-mini .app { grid-template-columns: calc(var(--side-mini) + 18px) minmax(0, 1fr); }
	.side-mini .side { padding-left: 10px; padding-right: 10px; }
	.side-mini .side-dots, .side-mini .side-brand, .side-mini .side-search span, .side-mini .side-search kbd, .side-mini .side-label, .side-mini .side-nav a span, .side-mini .side-count, .side-mini .side-tools, .side-mini .side-user-name, .side-mini .side-out, .side-mini .side .eleve-credit { display: none; }
	.side-mini .side-head { justify-content: center; padding: 0; }
	.side-mini .side-collapse { transform: rotate(180deg); }
	.side-mini .side-search { justify-content: center; padding: 10px; }
	.side-mini .side-nav a { justify-content: center; padding: 12px; }
	.side-mini .side-nav a:hover { transform: none; }
	.side-mini .side-nav a[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); padding: 7px 11px; border-radius: 10px; background: rgba(10, 17, 48, .96); border: 1px solid rgba(255, 255, 255, .1); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; z-index: 50; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7); }
	.side-mini .side-user { justify-content: center; padding: 8px; }
	.side-mini .side { overflow: visible; }
}

/* ---------- Topo: pílula de vidro (estilo "Apple navbar") ---------- */
.top { top: 14px; margin: 14px 22px 0 18px; min-height: 66px; padding: 10px 14px 10px 22px; border: 1px solid var(--glass-line) !important; border-radius: 22px; background: var(--glass) !important; -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); box-shadow: var(--shadow); }
.top-title { font-size: 21px; font-weight: 800; }
.content { padding: 24px 22px 60px 18px; gap: 18px; }

/* ---------- Superfícies de vidro ---------- */
.card, .stat, .empty--big, .modal, .wish, .kanban-col, .table { background: var(--glass); border-color: var(--glass-line); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: var(--shadow); border-radius: var(--radius); }
.modal { background: rgba(250, 249, 246, .96); }
[data-theme="dark"] .modal { background: rgba(10, 17, 48, .97); }
.modal::backdrop { background: rgba(5, 5, 7, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.stat { transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.stat:hover { transform: translateY(-4px); border-color: rgba(240, 112, 0, .45); box-shadow: var(--shadow), 0 22px 50px -30px rgba(240, 112, 0, .55); }
.seg { background: rgba(13, 13, 14, .06); border-radius: 13px; }
[data-theme="dark"] .seg { background: rgba(255, 255, 255, .06); }
.seg a.is-active, .seg label.is-active { background: var(--y) !important; color: #fff !important; box-shadow: 0 6px 18px -8px rgba(240, 112, 0, .8); }

/* ---------- Botões ---------- */
.btn { border-radius: 12px; font-weight: 700; transition: background .2s, border-color .2s, color .2s, transform .25s var(--ease), box-shadow .3s; }
.btn--primary, [data-theme="dark"] .btn--primary { background: var(--y-grad); color: #fff; border-color: transparent; box-shadow: 0 10px 26px -12px rgba(240, 112, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--primary:hover, [data-theme="dark"] .btn--primary:hover { background: var(--y-grad); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(240, 112, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--y); color: var(--ink); }
.btn--dark { background: #0A1030; color: #fff; border-color: #0A1030; }
.check input { accent-color: #d65f00; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--y2) !important; box-shadow: 0 0 0 3px rgba(240, 112, 0, .2) !important; }
[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.field input, .field select, .field textarea { border-radius: 12px; }
.badge--y { background: rgba(240, 112, 0, .16); border-color: rgba(240, 112, 0, .4); color: #c25a00; }
[data-theme="dark"] .badge--y { color: var(--y); }
.badge--late { background: var(--late-soft); border-color: rgba(220, 38, 38, .35); color: var(--late); }
[data-theme="dark"] .badge--ok { color: #6be07a; border-color: rgba(26, 185, 30, .35); }
[data-theme="dark"] .badge--wait { color: #f5c451; border-color: rgba(217, 142, 4, .35); }
.flash { border-radius: 14px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* ---------- Entradas animadas ---------- */
@media (prefers-reduced-motion: no-preference) {
	.content > * { animation: rrIn .7s var(--ease) both; }
	.content > *:nth-child(2) { animation-delay: .06s; }
	.content > *:nth-child(3) { animation-delay: .12s; }
	.content > *:nth-child(4) { animation-delay: .18s; }
	.content > *:nth-child(5) { animation-delay: .24s; }
	.content > *:nth-child(n+6) { animation-delay: .3s; }
	.tx-stagger > * { animation: rrIn .7s var(--ease) both; }
	.tx-stagger > *:nth-child(2) { animation-delay: .07s; } .tx-stagger > *:nth-child(3) { animation-delay: .14s; } .tx-stagger > *:nth-child(4) { animation-delay: .21s; } .tx-stagger > *:nth-child(5) { animation-delay: .28s; } .tx-stagger > *:nth-child(n+6) { animation-delay: .35s; }
	.modal[open] { animation: rrPop .45s var(--spring) both; }
}
@keyframes rrIn { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rrPop { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }

/* ==========================================================
   Componentes da Expresso
   ========================================================== */

/* Boas-vindas do início */
.tx-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 30px 30px 28px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .08); background: radial-gradient(90% 140% at 100% 0%, rgba(240, 112, 0, .22) 0%, transparent 55%), linear-gradient(135deg, #13205a 0%, #070c26 100%); color: #fff; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
.tx-hero::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; background: var(--y-grad); clip-path: polygon(0 0, 100% 50%, 0 100%); opacity: .12; transform: rotate(-12deg); }
.tx-hero .eyebrow { color: var(--y); font-family: var(--head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; }
.tx-hero h2 { margin-top: 8px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.035em; }
.tx-hero h2 em { font-style: normal; background: var(--y-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tx-hero p { margin-top: 10px; color: rgba(255, 255, 255, .7); max-width: 520px; }
.tx-hero-actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.tx-hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .2); }

/* Números */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow); text-decoration: none; transition: transform .35s var(--ease), border-color .3s; }
.kpi:hover { transform: translateY(-4px); border-color: rgba(240, 112, 0, .5); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(240, 112, 0, .14); color: #c25a00; }
[data-theme="dark"] .kpi-ic { color: var(--y); }
.kpi strong { font-family: var(--head); font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.kpi small { font-size: 12px; color: var(--muted); }
.kpi--y { background: var(--y-grad); border-color: transparent; color: #fff; }
.kpi--y .kpi-label, .kpi--y small { color: rgba(255, 255, 255, .85); }
.kpi--y .kpi-ic { background: rgba(255, 255, 255, .2); color: #fff; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.spark i { flex: 1; min-height: 3px; border-radius: 4px 4px 1px 1px; background: rgba(240, 112, 0, .35); transform-origin: bottom; animation: rrBar .9s var(--ease) both; }
.spark i:last-child { background: var(--y); }
@keyframes rrBar { from { transform: scaleY(0); } }

/* Grades do início */
.dash-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-cols > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* Próximo evento (contagem regressiva) */
.next-ev { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 20px; border-radius: 22px; border: 1px solid rgba(240, 112, 0, .35); background: linear-gradient(135deg, rgba(240, 112, 0, .14), rgba(240, 112, 0, .02)); text-decoration: none; }
.next-ev .when { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 86px; height: 86px; border-radius: 20px; background: var(--y-grad); color: #fff; font-family: var(--head); box-shadow: 0 16px 34px -14px rgba(240, 112, 0, .8); }
.next-ev .when b { font-size: 34px; font-weight: 900; line-height: .9; }
.next-ev .when span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.next-ev h4 { font-size: 19px; font-weight: 800; }
.next-ev p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.countdown { display: inline-flex; gap: 6px; margin-top: 10px; }
.countdown span { padding: 5px 9px; border-radius: 9px; background: rgba(13, 13, 14, .06); font-family: var(--head); font-weight: 800; font-size: 13px; }
[data-theme="dark"] .countdown span { background: rgba(255, 255, 255, .07); }
.countdown small { font-weight: 600; color: var(--muted); margin-left: 2px; font-size: 11px; }

/* Listas de eventos com o "bloco de data" */
.ev-list { display: flex; flex-direction: column; }
.ev-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 6px; border-top: 1px solid var(--line); text-decoration: none; border-radius: 12px; transition: background .2s, transform .25s var(--ease); }
.ev-row:first-child { border-top: 0; }
.ev-row:hover { background: rgba(240, 112, 0, .07); transform: translateX(3px); }
.datebox { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 15px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); font-family: var(--head); line-height: 1; }
.datebox b { font-size: 21px; font-weight: 900; }
.datebox span { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.datebox--y { background: var(--y-grad); border-color: transparent; color: #fff; }
.datebox--y span { color: rgba(255, 255, 255, .85); }
.ev-row strong { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-row small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Alertas */
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); text-decoration: none; font-size: 13.5px; transition: border-color .2s, transform .25s var(--ease); }
.alert:hover { transform: translateX(3px); border-color: var(--line-2); }
.alert .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px rgba(217, 142, 4, .15); flex-shrink: 0; }
.alert--late .dot { background: var(--late); box-shadow: 0 0 0 4px rgba(220, 38, 38, .15); animation: rrPing 1.8s infinite; }
@keyframes rrPing { 50% { box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); } }
.alert span { flex: 1; min-width: 0; }
.alert small { color: var(--muted); }

/* Botão Atualizar */
.dash-refresh.is-loading .ic { animation: rrSpin .8s linear infinite; }
@keyframes rrSpin { to { transform: rotate(360deg); } }
.dash-toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 999; padding: 11px 18px; border-radius: 14px; background: rgba(10, 17, 48, .96); color: #fff; font-size: 14px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6); animation: rrPop .4s var(--spring) both; transition: opacity .4s; }
.dash-toast.is-out { opacity: 0; }

/* Tabela "planilha" */
.rt-wrap { overflow-x: auto; border-radius: 16px; }
.rt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.rt th { position: sticky; top: 0; padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); white-space: nowrap; font-family: var(--head); }
.rt td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rt tr:last-child td { border-bottom: 0; }
.rt tbody tr { transition: background .15s; }
.rt tbody tr:hover { background: rgba(240, 112, 0, .06); }
.rt .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt a { text-decoration: none; font-weight: 600; }
.rt a:hover { color: #c25a00; }
[data-theme="dark"] .rt a:hover { color: var(--y); }
.rt tfoot td { font-weight: 800; border-top: 1px solid var(--line-2); border-bottom: 0; }

/* Cartões de item (serviços, patrimônio, veículos, modelos) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow); text-decoration: none; transition: transform .4s var(--ease), border-color .3s; }
.tile:hover { transform: translateY(-5px); border-color: rgba(240, 112, 0, .45); }
.tile-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #14205a, #070c26); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.07); }
.tile-img .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(240, 112, 0, .6); }
.tile-img .badge { position: absolute; left: 12px; top: 12px; }
.tile-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.tile-body h4 { font-size: 16px; font-weight: 800; }
.tile-body p { font-size: 13px; color: var(--muted); }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.tile-price { font-family: var(--head); font-weight: 800; font-size: 18px; }
.tile--off { opacity: .55; }

/* Status em pílula */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 30px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--line-2); white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--reservado, .pill--enviada, .pill--vista, .pill--marcada, .pill--aberta, .pill--andamento { color: #c25a00; border-color: rgba(240, 112, 0, .45); background: rgba(240, 112, 0, .1); }
[data-theme="dark"] .pill--reservado, [data-theme="dark"] .pill--enviada, [data-theme="dark"] .pill--vista, [data-theme="dark"] .pill--marcada, [data-theme="dark"] .pill--aberta, [data-theme="dark"] .pill--andamento { color: var(--y); }
.pill--confirmado, .pill--aceita, .pill--disponivel, .pill--pago, .pill--feita, .pill--concluida { color: #16a34a; border-color: rgba(22, 163, 74, .4); background: rgba(22, 163, 74, .08); }
.pill--realizado { color: var(--muted); }
.pill--cancelado, .pill--recusada, .pill--baixado, .pill--atrasado, .pill--cancelada { color: var(--late); border-color: rgba(220, 38, 38, .4); background: rgba(220, 38, 38, .07); }
.pill--solicitada, .pill--em_uso, .pill--manutencao { color: #2563eb; border-color: rgba(37, 99, 235, .4); background: rgba(37, 99, 235, .08); }
[data-theme="dark"] .pill--solicitada, [data-theme="dark"] .pill--em_uso, [data-theme="dark"] .pill--manutencao { color: #7aa7ff; }
.pill--rascunho { color: var(--muted); }

/* Calendário */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cal-head h3 { font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.cal-nav { display: inline-flex; gap: 6px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.cal-dow { padding: 4px 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--head); }
.cal-day { position: relative; min-height: 112px; padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, background .2s, transform .25s var(--ease); cursor: pointer; }
.cal-day:hover { border-color: rgba(240, 112, 0, .45); background: rgba(240, 112, 0, .04); }
.cal-day.is-out { opacity: .35; }
.cal-day.is-today { border-color: var(--y); box-shadow: inset 0 0 0 1px var(--y); }
.cal-day.is-today .cal-n { background: var(--y); color: #fff; }
.cal-n { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 9px; font-family: var(--head); font-weight: 800; font-size: 13px; }
.cal-it { display: block; padding: 4px 7px; border-radius: 8px; font-size: 11.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.cal-it--evento { background: var(--y-grad); color: #fff; box-shadow: 0 6px 16px -10px rgba(240, 112, 0, .9); }
.cal-it--reuniao { background: rgba(37, 99, 235, .14); color: #2155c7; border: 1px solid rgba(37, 99, 235, .3); }
[data-theme="dark"] .cal-it--reuniao { color: #9dbcff; }
.cal-it--feita { opacity: .55; text-decoration: line-through; }
.cal-more { font-size: 11px; color: var(--muted); padding-left: 4px; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.day-list { display: flex; flex-direction: column; gap: 8px; }
.day-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--line); }
.day-item time { font-family: var(--head); font-weight: 800; min-width: 48px; }
.day-item--evento { border-color: rgba(240, 112, 0, .45); background: rgba(240, 112, 0, .06); }

/* Proposta: editor de itens */
.items-ed { display: flex; flex-direction: column; gap: 8px; }
.item-ed { display: grid; grid-template-columns: 26px minmax(0, 2fr) minmax(0, 2.4fr) 110px 70px 96px 32px; gap: 8px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.item-ed input { width: 100%; min-height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; }
.item-ed .drag { color: var(--muted-2); text-align: center; cursor: grab; }
.item-ed .opt { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.item-ed-head { display: grid; grid-template-columns: 26px minmax(0, 2fr) minmax(0, 2.4fr) 110px 70px 96px 32px; gap: 8px; padding: 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--head); }
.prop-total { display: flex; align-items: baseline; justify-content: flex-end; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.prop-total strong { font-family: var(--head); font-size: 30px; font-weight: 900; color: var(--ink); letter-spacing: -.03em; }
.link-box { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 14px; border-radius: 14px; border: 1px dashed rgba(240, 112, 0, .6); background: rgba(240, 112, 0, .06); }
.link-box input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 13px; color: var(--ink); }
.prog { position: relative; height: 10px; border-radius: 10px; background: rgba(13, 13, 14, .08); overflow: hidden; }
[data-theme="dark"] .prog { background: rgba(255, 255, 255, .08); }
.prog i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; background: var(--y-grad); transition: width 1s var(--ease); }
.money3 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.money3 div { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.money3 small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.money3 b { font-family: var(--head); font-size: 20px; font-weight: 800; }
.money3 .is-y { background: var(--y-grad); color: #fff; border-color: transparent; }
.money3 .is-y small { color: rgba(255, 255, 255, .85); }
.qa { display: flex; flex-direction: column; gap: 12px; }
.qa div { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.qa small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pf-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.checks label { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-size: 13.5px; transition: border-color .2s, background .2s; }
.checks label:has(input:checked) { border-color: rgba(240, 112, 0, .6); background: rgba(240, 112, 0, .08); }
.checks input { accent-color: #d65f00; }
.checks small { color: var(--muted); margin-left: auto; }

/* ---------- Celular: abas embaixo com a bolha + botão "+" ---------- */
.tabbar, .quick { display: none; }
@media (max-width: 1024px) {
	.app { grid-template-columns: minmax(0, 1fr); }
	.side { position: fixed; top: 10px; bottom: 10px; left: 10px; height: auto; margin: 0; width: min(300px, 86vw); transform: translateX(calc(-100% - 20px)); }
	.side-collapse { display: none; }
	.top { position: sticky; top: 10px; margin: 10px 12px 0; padding: 8px 10px 8px 14px; min-height: 58px; border-radius: 20px; }
	.top-menu { display: none !important; }
	.top-title { font-size: 18px; }
	.content { padding: 18px 12px 130px; }
	.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dash-cols { grid-template-columns: minmax(0, 1fr); }
	.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; justify-content: space-around; height: 68px; padding: 0 6px; border-radius: 26px; background: rgba(8, 14, 40, .92); border: 1px solid rgba(255, 255, 255, .09); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); }
	.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 62px; height: 56px; border: 0; background: none; color: #9e9da3; font: 600 10.5px var(--font); text-decoration: none; cursor: pointer; transition: color .3s, transform .4s var(--spring); }
	.tab.is-active { color: #fff; transform: translateY(-14px); }
	.tab.is-active span { opacity: 0; }
	.tab--plus { width: 54px; height: 54px; border-radius: 18px; background: var(--y-grad); color: #fff; box-shadow: 0 12px 26px -8px rgba(240, 112, 0, .85); transform: translateY(-16px); transition: transform .4s var(--spring), border-radius .4s; }
	.tab--plus.is-open { transform: translateY(-16px) rotate(45deg); border-radius: 50%; }
	.tabbar-blob { position: absolute; top: -18px; left: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--y-grad); box-shadow: 0 0 0 6px var(--bg), 0 14px 26px -8px rgba(240, 112, 0, .9); transition: transform .55s var(--spring), opacity .3s; opacity: 0; }
	.tabbar.has-blob .tabbar-blob { opacity: 1; }
	.quick { position: fixed; inset: 0; z-index: 65; display: flex; align-items: flex-end; justify-content: center; padding: 0 12px 100px; background: rgba(5, 5, 7, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
	.quick[hidden] { display: none; }
	.quick-box { width: 100%; max-width: 460px; padding: 16px; border-radius: 24px; background: rgba(10, 17, 48, .97); border: 1px solid rgba(255, 255, 255, .09); animation: rrPop .45s var(--spring) both; }
	.quick-title { color: #8f8e94; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin: 0 4px 12px; font-family: var(--head); }
	.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.quick-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 16px; background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 600; }
	.quick-grid a .ic { color: var(--y); }
	.wa-float, .fb-launch { bottom: 100px !important; }
	.item-ed-head { display: none; }
	.item-ed { grid-template-columns: minmax(0, 1fr) 96px; }
	.item-ed .drag { display: none; }
	.item-ed > :nth-child(3) { grid-column: 1 / -1; }
	.money3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cal { gap: 3px; }
	.cal-day { min-height: 64px; padding: 4px; border-radius: 10px; }
	.cal-it { font-size: 0; padding: 0; height: 6px; border-radius: 4px; }
	.cal-more { display: none; }
}
@media (max-width: 560px) {
	.kpi strong { font-size: 22px; }
	.tx-hero { padding: 22px; border-radius: 22px; }
	.grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* Contrato e assinatura (painel) */
.contract-doc h3 { margin: 20px 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; }
.contract-doc p, .contract-doc li { font-size: 14.5px; line-height: 1.7; margin-bottom: 8px; }
.sig-pad { position: relative; border: 1.5px dashed var(--line-2); border-radius: 16px; background: #fff; overflow: hidden; }
.sig-pad canvas { display: block; width: 100%; height: 160px; touch-action: none; cursor: crosshair; }
.sig-pad-t { position: absolute; left: 14px; top: 10px; font-size: 12px; color: #888; pointer-events: none; }
.sig-pad.is-signed .sig-pad-t { display: none; }
.sig-clear { position: absolute; right: 10px; top: 8px; border: 0; background: rgba(0,0,0,.06); border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.field > label:first-child { font-size: 13px; font-weight: 600; color: var(--ink-3); }
:root:not([data-theme="dark"]) .side { background: linear-gradient(180deg, rgba(14,24,72,.97) 0%, rgba(6,11,36,.98) 100%) !important; }
.money3 b { font-size: clamp(15px, 1.35vw, 19px); white-space: nowrap; }
.money3 div { min-width: 0; }
.ev-row > span { min-width: 0; }
.ev-row > .money, .ev-row > .pill { justify-self: end; white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1400px) { .money3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .etx-panel .fb-bar { bottom: calc(96px + env(safe-area-inset-bottom)); left: 14px; } }

.card-sub { margin: 18px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.card-sub h4 { margin: 0 0 2px; font-size: 15px; }

a.side-user-name { text-decoration: none; }
a.side-user-name:hover small { color: var(--y); }
.demo-card { margin-top: 18px; }
.demo-login { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin: 12px 0 4px; }
.demo-login div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(240, 112, 0, .06); min-width: 0; }
.demo-login small { color: var(--muted); font-size: 12px; }
.demo-login b { font-family: var(--head); font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .demo-login { grid-template-columns: 1fr 1fr; } .demo-login div:first-child { grid-column: 1 / -1; } }

/* ==========================================================
   Expresso Teixeira · telas de transporte
   ========================================================== */
.text-warn { color: var(--warn); }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .02em; }
.form-sec { margin: 14px 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--head); }
.form-sec small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.card--flush { padding: 0 !important; overflow: hidden; }
.card-head--pad { padding: 16px 18px 10px; margin: 0; }
.flash--ok { background: var(--ok-soft); }
a.flash { display: block; text-decoration: none; }
.kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi--warn { border-color: rgba(217, 142, 4, .55) !important; }
.kpi--warn .kpi-ic { background: rgba(217, 142, 4, .16); color: var(--warn); }
dl.kv { display: flex; flex-direction: column; gap: 0; margin: 0; }
dl.kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
dl.kv > div:last-child { border-bottom: 0; }
dl.kv dt { color: var(--muted); flex-shrink: 0; }
dl.kv dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
dl.kv--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.chips button.chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: transparent; color: var(--ink); font: 600 13px var(--font); cursor: pointer; transition: border-color .2s, background .2s; }
.chips button.chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.chips button.chip small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.btn--xl { min-height: 64px; width: 100%; font-size: 18px; border-radius: 18px; gap: 12px; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading .ic { animation: rrSpin .8s linear infinite; }
.btn--danger { color: var(--late) !important; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.input-btn { display: flex; gap: 6px; align-items: stretch; }
.input-btn input { flex: 1; min-width: 0; }
.field--inline { flex-direction: row !important; align-items: center; gap: 10px; }
.field--inline input { max-width: 130px; }
.legend .lg-3, .bar--3 { background: #9aa3b8; }
.lg-3 { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; }
.bars--stack { grid-template-columns: repeat(12, 1fr); gap: 6px; }
.bar-stack { flex: 1; width: 70%; display: flex; flex-direction: column-reverse; justify-content: flex-start; }
.bar-stack .bar { width: 100%; border-radius: 3px; min-height: 0; }
.bar-stack .bar--in { background: var(--accent); border-radius: 3px 3px 0 0; }
.bar-stack .bar--out { background: #2b59ff; }
.bar-val { font-size: 11px; font-weight: 700; color: var(--muted); }
.bars .bar--in { background: var(--accent); }
.lg-in { background: var(--accent) !important; }
.lg-out { background: #2b59ff !important; }
.bar--out { background: #2b59ff; }

/* Pílulas dos status de transporte */
.pill--agendada, .pill--rascunho, .pill--aberto, .pill--parado { color: var(--muted); }
.pill--coletada, .pill--transito, .pill--chegou, .pill--em_rota, .pill--em_viagem { color: #2b59ff; border-color: rgba(43, 89, 255, .4); background: rgba(43, 89, 255, .08); }
[data-theme="dark"] .pill--coletada, [data-theme="dark"] .pill--transito, [data-theme="dark"] .pill--chegou, [data-theme="dark"] .pill--em_rota, [data-theme="dark"] .pill--em_viagem { color: #8fa9ff; }
.pill--rota_entrega { color: var(--accent); border-color: rgba(240, 112, 0, .45); background: rgba(240, 112, 0, .1); }
.pill--entregue, .pill--concluido { color: #16a34a; border-color: rgba(22, 163, 74, .4); background: rgba(22, 163, 74, .08); }
.pill--ocorrencia { color: var(--late); border-color: rgba(220, 38, 38, .4); background: rgba(220, 38, 38, .08); }

/* Calculadora de cotação */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.calc-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.calc-main .card-head h3 { display: flex; align-items: center; gap: 10px; }
.calc-side { position: sticky; top: 100px; }
.calc-result { display: flex; flex-direction: column; gap: 10px; }
.calc-result .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-family: var(--head); }
.cost-list { list-style: none; margin: 0; padding: 0; }
.cost-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.cost-list li span small { color: var(--muted); margin-left: 4px; }
.cost-list li b { font-variant-numeric: tabular-nums; }
.cost-list .is-total { border-bottom: 0; padding-top: 10px; font-size: 15px; }
.cost-list .is-total b { font-family: var(--head); font-size: 18px; }
.cost-list--sm li { font-size: 13px; }
.cost-list .is-profit b { color: #16a34a; font-family: var(--head); font-size: 17px; }
.cost-bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; background: var(--line); gap: 2px; }
.cost-bar i { display: block; min-width: 3px; }
.sug { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); border: 1px dashed rgba(240, 112, 0, .5); }
.sug small { color: var(--muted); font-size: 12px; }
.sug b { flex: 1; font-family: var(--head); font-size: 22px; font-weight: 800; }
.price-field input { font-family: var(--head) !important; font-size: 22px !important; font-weight: 800; min-height: 54px; }
.margin-meter { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.mm-bar { flex: 1; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.mm-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: #16a34a; transition: width .5s var(--ease), background .3s; }
.mm-bar i.is-mid { background: var(--warn); } .mm-bar i.is-low, .mm-bar i.is-over { background: var(--late); }
.calc-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.route-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.route-swap { margin-bottom: 6px; font-size: 18px; }
.route-go { min-height: 44px; }
.route-box { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 14px; }
.calc-map { height: 260px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #e8ecf3; }
.route-nums { display: flex; flex-direction: column; gap: 10px; }
.rn small { display: block; font-size: 12px; color: var(--muted); }
.rn b { font-family: var(--head); font-size: 22px; }
.boxes-ed { display: flex; flex-direction: column; gap: 6px; }
.box-head, .box-line { display: grid; grid-template-columns: 70px repeat(3, minmax(0, 1fr)) 80px 32px; gap: 8px; align-items: center; }
.box-head span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.box-line input { min-height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); width: 100%; }
.box-line b { font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; }
.boxes-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.cub-sum { font-size: 13px; color: var(--muted); }
.cub-sum b { color: var(--ink); }
.fit { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.fit-row { display: grid; grid-template-columns: 60px 1fr 50px; gap: 10px; align-items: center; font-size: 13px; }
.fit-row b { text-align: right; }
.calc.is-locked .calc-main { opacity: .8; }

/* Frota */
.plate { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 6px; background: #fff; color: #0A1030; border: 2px solid #0A1030; font: 800 13px ui-monospace, Menlo, monospace; letter-spacing: .08em; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.plate::before { content: 'BRASIL'; display: block; margin: -4px -10px 3px; padding: 1px 0; background: #1d4ed8; color: #fff; font-size: 7px; text-align: center; letter-spacing: .2em; border-radius: 3px 3px 0 0; }
.plate--big { font-size: 18px; left: 16px; bottom: 16px; }
.tile-status { position: absolute; right: 12px; top: 12px; background: rgba(10, 16, 48, .75) !important; color: #fff !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.veh-specs { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.veh-specs b { color: var(--ink); font-family: var(--head); }
.veh-specs i { font-style: normal; color: var(--warn); }
.veh-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
.veh-main { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #14205a, #070c26); }
.veh-main img { width: 100%; height: 100%; object-fit: cover; }
.veh-main .ph { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; color: rgba(240, 112, 0, .7); }
.veh-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.veh-thumb { position: relative; flex: 0 0 90px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; }
.veh-thumb.is-on { border-color: var(--accent); }
.veh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.veh-thumb .inline-form { position: absolute; top: 2px; right: 2px; }
.veh-thumb .inline-form + .inline-form { right: 26px; }
.thumb-btn { width: 22px; height: 22px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; cursor: pointer; }
.thumb-btn--del:hover { background: var(--late); }
.veh-info { padding: 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.veh-info h2 { margin: 10px 0 2px; font-size: 26px; font-weight: 800; }
.veh-info .kv { margin-top: 14px; }
.parts { display: flex; flex-direction: column; gap: 6px; }
.parts-head, .part-row { display: grid; grid-template-columns: minmax(0, 2.4fr) 70px 110px 100px 32px; gap: 8px; align-items: center; }
.parts-head span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.part-row input { min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); width: 100%; }
.part-row b { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.parts-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px; }
.parts-sum { font-size: 14px; }
.parts-sum b { font-family: var(--head); font-size: 18px; }
.parts-view summary { cursor: pointer; font-size: 12px; color: var(--accent); margin-top: 4px; }
.parts-view ul { list-style: none; margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(127, 127, 127, .07); }
.parts-view li { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 2px 0; }
.thumbs--xs { display: flex; gap: 4px; margin-top: 6px; }
.thumbs--xs img { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; }
.fleet-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fm { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.fm:hover { border-color: var(--accent); }
.fm-img { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 46px; height: 36px; border-radius: 9px; overflow: hidden; background: rgba(127, 127, 127, .12); color: var(--muted); }
.fm-img img { width: 100%; height: 100%; object-fit: cover; }
.fm b { display: block; font-size: 13px; font-family: var(--head); }
.fm small { font-size: 11.5px; color: var(--muted); }
.fm--em_rota small { color: #2b59ff; font-weight: 700; }
.fm--manutencao small { color: var(--late); font-weight: 700; }

/* Mapas */
.ops-map { height: 340px; }
.ops-map--dash { height: 300px; }
.trk-map--panel { height: 320px; }
.etx-truck-pin { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: #F07000; color: #fff; border: 2px solid #fff; box-shadow: 0 0 0 5px rgba(240, 112, 0, .25), 0 8px 18px rgba(0, 0, 0, .35); }
.etx-truck-pin.is-idle { background: #0A1030; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.leaflet-popup-content a { color: #F07000; font-weight: 700; }

/* Entregas */
.dl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.dl-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); text-decoration: none; transition: transform .3s var(--ease), border-color .3s; }
.dl-card:hover { transform: translateY(-3px); border-color: rgba(240, 112, 0, .5); }
.dl-card--ocorrencia { border-color: rgba(220, 38, 38, .5); }
.dl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dl-code { font-weight: 800; font-size: 13px; }
.dl-route { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dl-route b { white-space: nowrap; font-family: var(--head); }
.dl-line { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--line-2); }
.dl-line span { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--y-grad); }
.dl-line em { position: absolute; top: 50%; transform: translate(-50%, -50%); display: inline-flex; padding: 4px; border-radius: 8px; background: var(--accent); color: #fff; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.dl-meta span { display: inline-flex; align-items: center; gap: 4px; }
.dl-hero { padding: 24px 26px; border-radius: 26px; background: radial-gradient(80% 140% at 100% 0%, rgba(240, 112, 0, .22) 0%, transparent 55%), linear-gradient(135deg, #13205a 0%, #070c26 100%); color: #fff; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
.dl-hero--entregue { background: radial-gradient(80% 140% at 100% 0%, rgba(22, 163, 74, .3) 0%, transparent 55%), linear-gradient(135deg, #13205a 0%, #070c26 100%); }
.dl-hero--ocorrencia { background: radial-gradient(80% 140% at 100% 0%, rgba(220, 38, 38, .35) 0%, transparent 55%), linear-gradient(135deg, #13205a 0%, #070c26 100%); }
.dl-hero-top { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.dl-hero .eyebrow { color: var(--accent); font-family: var(--head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; }
.dl-hero h2 { margin: 6px 0 4px; font-size: clamp(24px, 3vw, 34px); font-weight: 900; }
.dl-hero h2 em { font-style: normal; color: var(--accent); }
.dl-hero p { color: rgba(255, 255, 255, .75); margin: 0; }
.dl-hero-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.dl-hero-meta span { padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.dl-hero-meta b { color: #fff; font-family: var(--head); }
.dl-hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.trk-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 22px; }
.trk-line { position: absolute; left: 10%; right: 10%; top: 16px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.trk-line i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 4px; background: var(--y-grad); transition: width 1.4s var(--ease); }
.trk-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.trk-step span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #1b2350; border: 2px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .5); }
.trk-step small { font-size: 11.5px; color: rgba(255, 255, 255, .55); line-height: 1.2; }
.trk-step.is-done span { background: var(--accent); border-color: var(--accent); color: #fff; }
.trk-step.is-cur span { background: #fff; border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px rgba(240, 112, 0, .3); }
.trk-step.is-done small, .trk-step.is-cur small { color: #fff; font-weight: 700; }
.etx-client .dl-hero .trk-step small { color: rgba(255, 255, 255, .6); }
.driver-card { border: 1px solid rgba(240, 112, 0, .45) !important; }
.driver-form { display: flex; flex-direction: column; gap: 12px; }
.gps-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.gps-row input { min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); }
.gps-row small { grid-column: 1 / -1; }
.more-steps summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.step-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 14px; padding: 0 0 18px 0; }
.tl li::before { content: ''; position: absolute; left: 92px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl li::after { content: ''; position: absolute; left: 97px; top: 18px; bottom: -2px; width: 2px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl li > div { padding-left: 26px; min-width: 0; }
.tl li.is-private::before { background: var(--muted); }
.tl li.tl--entregue::before { background: #16a34a; }
.tl li.tl--ocorrencia::before { background: var(--late); }
.tl time { font-size: 12.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.tl b { font-size: 14px; }
.tl p { margin: 2px 0; font-size: 13.5px; color: var(--muted); }
.tl small { display: block; font-size: 11.5px; }
.tl-photo { margin-top: 6px; width: 120px; border-radius: 10px; }
.proof-box { margin-top: 14px; padding: 12px; border-radius: 14px; background: rgba(22, 163, 74, .07); border: 1px solid rgba(22, 163, 74, .3); }
.proof-box img { margin-top: 8px; border-radius: 10px; max-height: 220px; object-fit: cover; }
.doc-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.doc-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.doc-list a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.money3--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.checks--list { grid-template-columns: minmax(0, 1fr); max-height: 280px; overflow: auto; }
.checks--list label { justify-content: flex-start; }

/* Início */
.tx-hero .hero-truck { position: absolute; right: 30px; top: 22px; width: 190px; color: rgba(255, 255, 255, .1); }
.tx-hero h2 { text-transform: none !important; font-size: clamp(26px, 3vw, 40px) !important; line-height: 1.05 !important; }
.tx-hero { position: relative; }

/* Prospecção */
.prospect-hero { display: flex; flex-direction: column; gap: 16px; }
.prospect-hero h2 { margin: 6px 0 4px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 900; }
.prospect-hero h2 em { font-style: normal; color: var(--accent); }
.prospect-hero .eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-family: var(--head); }
.prospect-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 110px auto; gap: 10px; align-items: end; }
.prospect-form .btn { min-height: 46px; }
.rt--prospect tr.is-dup { opacity: .55; }
.wa-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(31, 174, 84, .12); color: #128c45 !important; font-weight: 700; font-size: 12.5px; text-decoration: none; }
[data-theme="dark"] .wa-chip { color: #4be08c !important; }
.loading-dots::after { content: '…'; animation: rrSpin 1s steps(4) infinite; display: inline-block; }

/* E-mails */
.mail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mail-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mail-list li:last-child { border-bottom: 0; }
.mail-list strong { display: block; font-size: 13.5px; }
.mail-list small { color: var(--muted); font-size: 12px; }
.mail-ic { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.mail-ic--erro { background: var(--late-soft); color: var(--late); }
.mail-view summary { cursor: pointer; font-weight: 600; }
.mail-view div { margin-top: 6px; font-size: 13px; color: var(--muted); max-width: 520px; }

/* Saúde financeira */
.fin-health { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }
.fin-score { display: flex; gap: 22px; align-items: center; }
.gauge { --deg: 0deg; flex-shrink: 0; position: relative; width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--g) var(--deg), var(--line) 0); display: flex; align-items: center; justify-content: center; }
.gauge--ok { --g: #16a34a; } .gauge--warn { --g: #d98e04; } .gauge--late { --g: #dc2626; }
.gauge::before { content: ''; position: absolute; inset: 13px; border-radius: 50%; background: var(--bg); }
.gauge > div { position: relative; text-align: center; }
.gauge strong { display: block; font-family: var(--head); font-size: 40px; font-weight: 900; line-height: 1; }
.gauge small { color: var(--muted); font-size: 12px; }
.fin-score-txt { flex: 1; min-width: 0; }
.fin-score-txt .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--head); }
.fin-score-txt h3 { font-size: 26px; font-weight: 900; margin: 2px 0 10px; }
.fin-pts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fin-pts li { display: grid; grid-template-columns: 100px 1fr; gap: 4px 10px; align-items: center; font-size: 13px; }
.fin-pts small { grid-column: 2; color: var(--muted); font-size: 11.5px; }
.fc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fc-col { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); }
.fc-col small { color: var(--muted); font-size: 12px; }
.fc-col b { font-family: var(--head); font-size: 20px; font-weight: 800; }
.fc-col span { font-size: 12.5px; font-weight: 600; }
.alert--ok .dot { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.alert--info .dot { background: #2b59ff; box-shadow: 0 0 0 4px rgba(43, 89, 255, .15); }

@media (max-width: 1200px) {
	.calc-grid { grid-template-columns: minmax(0, 1fr); }
	.calc-side { position: static; }
	.kpis--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.veh-hero, .fin-health, .route-box { grid-template-columns: minmax(0, 1fr); }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.prospect-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.route-row { grid-template-columns: minmax(0, 1fr); }
	.route-swap { display: none; }
	.kpis--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.grid-4, .kpis--5 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	dl.kv--grid { grid-template-columns: minmax(0, 1fr); }
	.parts-head { display: none; }
	.part-row { grid-template-columns: minmax(0, 1fr) 60px 90px 32px; }
	.part-row b { display: none; }
	.box-head { display: none; }
	.box-line { grid-template-columns: 54px repeat(3, minmax(0, 1fr)) 30px; }
	.box-line b { display: none; }
	.fin-score { flex-direction: column; text-align: center; }
	.fc-cols { grid-template-columns: minmax(0, 1fr); }
	.tl li { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; }
	.tl li::before { left: 68px; } .tl li::after { left: 73px; }
	.dl-list { grid-template-columns: minmax(0, 1fr); }
	.fleet-mini { grid-template-columns: minmax(0, 1fr); }
	.tx-hero .hero-truck { display: none; }
	.trk-step small { font-size: 10px; }
	.prospect-form { grid-template-columns: minmax(0, 1fr); }
}
.map-dark .leaflet-tile-pane { filter: invert(1) hue-rotate(205deg) brightness(.92) contrast(.88) saturate(.7); }
.leaflet-bar a { color: #0A1030 !important; background: #fff !important; } .leaflet-container .leaflet-control-attribution { font-size: 10px; }
.kpis--5 .kpi strong { font-size: clamp(18px, 1.55vw, 24px); white-space: nowrap; } .kpis .kpi strong.money { white-space: nowrap; }
