:root {
    --ce-primary: #123f74;
    --ce-primary-dark: #0b2b50;
    --ce-accent: #f2a900;
    --ce-surface: #f4f7fb;
    --ce-sidebar-width: 264px;
    --ce-sidebar-collapsed-width: 72px;
}

/* Modal de funcionario: cabecalho e acoes fixos, formulario com rolagem propria. */
.admin-employee-modal .modal-content{max-height:calc(100dvh - 2rem)}
.admin-employee-modal form[data-admin-employee-form]{display:flex;flex-direction:column;max-height:calc(100dvh - 2rem);min-height:0}
.admin-employee-form__header,.admin-employee-form__footer{flex:0 0 auto}
.admin-employee-form__body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
@media(max-width:767px){.admin-employee-modal .modal-content,.admin-employee-modal form[data-admin-employee-form]{max-height:calc(100dvh - 1rem)}}

/* Fila de contratos dos fretes criados após a ativação do recurso. */
.contracts-pending-section {
    margin-top: clamp(4rem, 9vh, 7rem);
}
.contracts-pending-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    white-space: nowrap;
}
.contracts-pending-more {
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    padding: 0;
    font-size: 1.15rem;
    line-height: 1;
}
@media (max-width: 767.98px) {
    .contracts-pending-section { margin-top: 3rem; }
}

/* Dashboard executivo */
.dashboard-main {
    padding: .9rem 1rem 1.1rem;
    background: #f1f6fc;
}
.topbar-title small {
    display: block;
    margin-top: .08rem;
    color: #70829b;
    font-size: .68rem;
    font-weight: 500;
    line-height: 1;
}
.topbar-dashboard-search {
    width: min(31rem, 34vw);
    height: 2.65rem;
    margin-left: auto;
    align-items: center;
    gap: .65rem;
    padding: 0 .9rem;
    border: 1px solid #cbd9ea;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 .15rem .55rem rgba(15, 55, 95, .05);
}
.topbar-dashboard-search svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: #6380a4; stroke-width: 1.8; }
.topbar-dashboard-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: #193a63; background: transparent; font-size: .83rem; }
.topbar-dashboard-search input::placeholder { color: #8293aa; }
.dashboard-topbar-clock { padding-left: 1.1rem; border-left: 1px solid #dce5f0; color: #68809d; text-align: right; line-height: 1.15; }
.dashboard-topbar-clock span { display: block; white-space: nowrap; font-size: .66rem; }
.dashboard-topbar-clock strong { display: block; color: #082f61; font-size: 1.28rem; }

.dashboard-shell { --dash-navy:#07366b; --dash-blue:#0c66c7; --dash-border:#d7e2ef; color:#092f5e; display:grid; gap:.72rem; }
.dashboard-shell a { text-decoration:none; }
.dashboard-shell svg { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.dashboard-hero {
    position: relative;
    isolation: isolate;
    min-height: 7.35rem;
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr;
    align-items: center;
    overflow: hidden;
    padding: 1rem 1.25rem;
    border-radius: .55rem;
    color: #fff;
    background:linear-gradient(100deg,#062f5d 0%,#0a427c 50%,#0a4f8d 76%,#073665 100%);
    box-shadow: 0 .45rem 1.2rem rgba(2,35,73,.15);
}
.dashboard-hero::before { content:""; position:absolute; inset:0 0 0 38%; z-index:0; opacity:.82; background:url('../img/dashboard-fleet-banner.png') right 43%/auto 300% no-repeat; -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.18) 12%,#000 38%); mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.18) 12%,#000 38%); }
.dashboard-hero::after { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(0,25,57,.12)); }
.dashboard-hero>* { position:relative; z-index:2; }
.dashboard-hero-company { display:flex; align-items:center; gap:1.05rem; min-width:0; }
.dashboard-client-logo { width:7.5rem; height:5rem; flex:none; display:grid; place-items:center; overflow:hidden; padding:0; border:2px solid rgba(255,255,255,.82); border-radius:.55rem; background:#161069; box-shadow:0 .35rem 1rem rgba(0,0,0,.25); }
.dashboard-client-logo img { width:100%; height:100%; object-fit:contain; transform:scale(1.32); transform-origin:center; }
.dashboard-client-logo-fallback { color:#102f6a; background:#ffcc27; font-size:1.5rem; font-weight:900; }
.dashboard-hero-company span:not(.dashboard-client-logo) { display:block; color:#d8e8fa; font-size:.68rem; font-weight:800; letter-spacing:.045em; text-transform:uppercase; }
.dashboard-hero-company h1 { margin:.12rem 0 .15rem; overflow:hidden; color:#fff; font-size:1.55rem; line-height:1.05; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-hero-company p { margin:0; color:#d7e7f8; font-size:.78rem; }
.dashboard-hero-divider { width:1px; height:2.75rem; justify-self:start; background:rgba(255,255,255,.55); }
.dashboard-hero-actions { display:flex; align-items:center; justify-content:flex-end; gap:1rem; }
.dashboard-hero-actions>span { text-align:right; color:#dceafb; font-size:.68rem; line-height:1.3; }
.dashboard-hero-actions>span strong { color:#fff; font-weight:700; }
.dashboard-hero-actions a { display:flex; align-items:center; gap:.45rem; min-height:2.6rem; padding:0 .85rem; border:1px solid rgba(255,255,255,.75); border-radius:.45rem; color:#fff; font-weight:700; }
.dashboard-hero-actions a:first-of-type svg { width:1.2rem; height:1.2rem; }
.dashboard-hero-actions a:hover { background:rgba(255,255,255,.12); }

.dashboard-kpi-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:.55rem; }
.dashboard-kpi { min-width:0; min-height:6.45rem; display:flex; align-items:flex-start; gap:.7rem; padding:.85rem .78rem; border:1px solid var(--dash-border); border-radius:.55rem; color:#0a386d; background:#fff; box-shadow:0 .28rem .8rem rgba(19,58,95,.07); transition:transform .16s,border-color .16s,box-shadow .16s; }
.dashboard-kpi:hover { transform:translateY(-2px); border-color:#9cbce0; box-shadow:0 .5rem 1rem rgba(19,58,95,.12); }
.dashboard-kpi-icon { width:2.65rem; height:2.65rem; flex:none; display:grid; place-items:center; border-radius:50%; }
.dashboard-kpi-icon svg { width:1.35rem; height:1.35rem; }
.dashboard-kpi-copy { min-width:0; display:block; }
.dashboard-kpi-copy small { display:block; min-height:1.55rem; color:#1b518d; font-size:.68rem; font-weight:750; line-height:1.15; overflow-wrap:anywhere; white-space:normal; }
.dashboard-kpi-copy strong { display:block; margin:.2rem 0 .1rem; color:#082e60; font-size:1.62rem; line-height:1; white-space:nowrap; }
.dashboard-kpi-copy .dashboard-kpi-money { font-size:1.15rem; line-height:1.3; }
.dashboard-kpi-copy em { display:block; color:#75869d; font-size:.62rem; font-style:normal; line-height:1.2; overflow-wrap:anywhere; white-space:normal; }
.dashboard-kpi-yellow .dashboard-kpi-icon { color:#9b6900; background:#fff0c3; }
.dashboard-kpi-cyan .dashboard-kpi-icon { color:#007b9f; background:#d8f4fb; }
.dashboard-kpi-blue .dashboard-kpi-icon { color:#086bd2; background:#dceeff; }
.dashboard-kpi-red .dashboard-kpi-icon { color:#d9213b; background:#ffe1e6; }
.dashboard-kpi-green .dashboard-kpi-icon { color:#00865d; background:#d7f4e8; }

.dashboard-alert-strip { overflow:hidden; border:1px solid var(--dash-border); border-radius:.52rem; background:#fff; box-shadow:0 .25rem .72rem rgba(19,58,95,.05); }
.dashboard-alert-strip>header { height:2rem; display:flex; align-items:center; justify-content:space-between; padding:0 .65rem; border-bottom:1px solid #e3eaf3; }
.dashboard-alert-strip>header h2,.dashboard-queue h2,.dashboard-analysis-card h2,.dashboard-financial h2 { margin:0; color:#0b396e; font-size:.88rem; font-weight:800; }
.dashboard-alert-strip>header a,.dashboard-queue header a { color:#0868c9; font-size:.66rem; font-weight:700; }
.dashboard-alert-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); padding:.42rem; gap:.4rem; }
.dashboard-alert-card { min-width:0; min-height:4.05rem; display:flex; align-items:center; gap:.65rem; padding:.55rem .68rem; border:1px solid #e0e8f2 !important; border-radius:.42rem; color:#113a68; background:#fbfdff; box-shadow:none !important; }
.dashboard-alert-card:hover { border-color:#acc4df !important; background:#f4f9ff; transform:none; }
.dashboard-alert-icon { width:2.15rem; height:2.15rem; flex:none; display:grid; place-items:center; border-radius:50%; }
.dashboard-alert-icon svg { width:1.08rem; height:1.08rem; }
.dashboard-alert-card > span:last-child { min-width:0; }
.dashboard-alert-card small { display:block; font-size:.6rem; font-weight:700; line-height:1.2; overflow-wrap:anywhere; white-space:normal; }
.dashboard-alert-card strong { display:block; margin-top:.08rem; color:#0a3264; font-size:1.18rem; line-height:1; }
.dashboard-alert-danger .dashboard-alert-icon { color:#be1931; background:#ffe0e5; }
.dashboard-alert-warning .dashboard-alert-icon { color:#9a6700; background:#ffe9ac; }
.dashboard-alert-cyan .dashboard-alert-icon { color:#007e9c; background:#d5f2f8; }
.dashboard-alert-danger strong { color:#c51c33; }

.dashboard-queues { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.65rem; }
.dashboard-queue { min-width:0; overflow:hidden; display:flex; flex-direction:column; height:16.1rem; border:1px solid var(--dash-border); border-radius:.52rem; background:#fff; box-shadow:0 .28rem .8rem rgba(19,58,95,.06); }
.dashboard-queue>header { height:2.55rem; flex:none; display:flex; align-items:center; justify-content:space-between; padding:0 .75rem; border-bottom:1px solid #dfe8f2; }
.dashboard-queue h2 b { color:#de263f; }
.dashboard-queue-body { min-height:0; flex:1; overflow:hidden; }
.dashboard-queue-row { min-height:2.17rem; display:grid; grid-template-columns:max-content minmax(0,1.1fr) minmax(0,.82fr) minmax(0,.95fr); align-items:center; column-gap:.58rem; row-gap:.42rem; padding:.35rem .72rem; border-bottom:1px solid #edf1f6; color:#254a74; font-size:.63rem; }
.dashboard-queue-row:hover { background:#f3f8fe; }
.dashboard-queue-row time { color:#527092; font-variant-numeric:tabular-nums; white-space:nowrap; }
.dashboard-queue-row strong { overflow:hidden; color:#1c426e; font-size:.64rem; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-queue-row span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-load-row { grid-template-columns:minmax(0,1.1fr) minmax(0,1.5fr) auto; }
.dashboard-load-row b { justify-self:end; padding:.18rem .45rem; border-radius:.3rem; color:#fff; background:#083d77; white-space:nowrap; }
.dashboard-empty { margin:0; padding:3.3rem 1rem; color:#8090a5; text-align:center; font-size:.7rem; }
.dashboard-queue>footer { height:2.25rem; flex:none; display:grid; place-items:center; padding:.35rem .7rem; }
.dashboard-queue>footer a { width:100%; padding:.28rem; border:1px solid #8bb4e1; border-radius:.28rem; color:#075bae; text-align:center; font-size:.64rem; font-weight:700; }

.dashboard-analysis-grid { display:grid; grid-template-columns:1.08fr .92fr .92fr; gap:.65rem; }
.dashboard-analysis-card { min-width:0; height:20.3rem; overflow:hidden; border:1px solid var(--dash-border); border-radius:.52rem; background:#fff; box-shadow:0 .28rem .8rem rgba(19,58,95,.06); }
.dashboard-analysis-card>header { height:2.45rem; display:flex; align-items:center; justify-content:space-between; padding:0 .72rem; border-bottom:1px solid #e0e8f2; }
.dashboard-analysis-card h2 small,.dashboard-financial h2 small { color:#71849c; font-size:.64rem; font-weight:500; }
.dashboard-analysis-card>header>span { padding:.28rem .65rem; border-radius:.28rem; color:#fff; background:#0c4e96; font-size:.61rem; font-weight:700; }
.dashboard-route-potential table,.dashboard-advanced table { width:100%; border-collapse:collapse; font-size:.61rem; }
.dashboard-route-potential th,.dashboard-route-potential td,.dashboard-advanced th,.dashboard-advanced td { padding:.32rem .5rem; border-bottom:1px solid #e8eef5; text-align:left; white-space:nowrap; }
.dashboard-route-potential th,.dashboard-advanced th { color:#56708f; background:#f8fbfe; font-size:.55rem; text-transform:uppercase; }
.dashboard-route-potential td:first-child a { color:#123f74; font-weight:800; }
.dashboard-route-potential td:last-child { display:flex; align-items:center; gap:.45rem; }
.dashboard-route-potential td i { width:6.2rem; height:.5rem; overflow:hidden; border-radius:1rem; background:#e3eaf2; }
.dashboard-route-potential td i span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#0870d2,#49aef6); }
.dashboard-data-note { margin:.3rem .55rem; color:#8390a2; font-size:.52rem; line-height:1.25; }
.dashboard-chart { height:calc(100% - 2.45rem); padding:.55rem .7rem; }
.dashboard-chart>span { height:100%; display:grid; place-items:center; color:#8391a4; font-size:.7rem; }
.dashboard-chart svg { display:block; width:100%; height:100%; max-height:none; }
.dashboard-chart-donut { padding:.75rem .9rem; }
.dashboard-donut-layout { height:100%; display:grid; grid-template-columns:minmax(10rem,.95fr) minmax(12rem,1.2fr); align-items:center; gap:1rem; }
.dashboard-donut-figure { position:relative; width:min(100%,14.2rem); aspect-ratio:1; justify-self:center; }
.dashboard-donut-figure svg { overflow:visible; transform:rotate(0); filter:drop-shadow(0 .18rem .3rem rgba(20,67,111,.08)); }
.dashboard-donut-figure circle { stroke-linecap:butt; }
.dashboard-donut-center { position:absolute; inset:0; display:grid; place-content:center; text-align:center; pointer-events:none; }
.dashboard-donut-center strong { color:#0a3567; font-size:1.58rem; line-height:1; letter-spacing:-.035em; }
.dashboard-donut-center small { margin-top:.28rem; color:#68809a; font-size:.68rem; font-weight:700; }
.dashboard-donut-legend { min-width:0; display:grid; align-content:center; gap:.46rem; }
.dashboard-donut-legend-row { min-width:0; display:grid; grid-template-columns:.55rem minmax(0,1fr) auto; align-items:center; gap:.45rem; color:#365677; font-size:.66rem; line-height:1.15; }
.dashboard-donut-dot { width:.55rem; height:.55rem; border-radius:50%; }
.dashboard-donut-legend-row span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-donut-legend-row strong { color:#123f74; font-size:.66rem; font-weight:750; white-space:nowrap; }
.dashboard-bar-list { height:100%; display:grid; align-content:space-evenly; gap:.18rem; padding:.08rem .1rem; }
.dashboard-bar-row { min-width:0; display:grid; grid-template-columns:minmax(6.9rem,.88fr) minmax(8rem,1.8fr) minmax(5.8rem,auto); align-items:center; gap:.62rem; }
.dashboard-bar-label { overflow:hidden; color:#244a74; font-size:.65rem; font-weight:700; line-height:1.1; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-bar-track { height:.72rem; overflow:hidden; border:1px solid #174b81; border-radius:999px; background:#e9eff6; }
.dashboard-bar-fill { display:block; height:100%; border-radius:999px; background:#138be4; box-shadow:inset 0 -1px 0 rgba(0,0,0,.12); }
.dashboard-bar-value { color:#123f74; font-size:.63rem; font-weight:750; text-align:right; white-space:nowrap; }

.dashboard-financial { overflow:hidden; border:1px solid var(--dash-border); border-radius:.52rem; background:#fff; box-shadow:0 .28rem .8rem rgba(19,58,95,.06); }
.dashboard-financial>header { min-height:2.8rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.4rem .72rem; border-bottom:1px solid #e2eaf3; }
.dashboard-financial-period { display:flex; align-items:center; gap:.35rem; }
.dashboard-financial-period label { margin:0; }
.dashboard-financial-period input { width:8.8rem; height:2rem; padding:.2rem .45rem; border:1px solid #c9d8e8; border-radius:.32rem; color:#234d78; background:#fff; font-size:.68rem; }
.dashboard-financial-period button { height:2rem; padding:0 .7rem; border:0; border-radius:.32rem; color:#fff; background:#0b4d91; font-size:.65rem; font-weight:700; }
.dashboard-financial-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.55rem; padding:.55rem; }
.dashboard-finance-card { min-width:0; min-height:4.4rem; display:grid; grid-template-columns:2.35rem 1fr; grid-template-rows:auto auto; align-content:center; column-gap:.6rem; padding:.55rem .7rem; border:1px solid #e1e8f0; border-radius:.42rem; color:#163f6c; }
.dashboard-finance-card>span { grid-row:1/3; width:2.35rem; height:2.35rem; display:grid; place-items:center; align-self:center; border-radius:50%; }
.dashboard-finance-card svg { width:1.15rem; height:1.15rem; }
.dashboard-finance-card small { align-self:end; color:#36608b; font-size:.61rem; font-weight:700; }
.dashboard-finance-card strong { overflow:hidden; color:#0b3567; font-size:1rem; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-finance-green>span { color:#008255; background:#d8f4e7; }.dashboard-finance-cyan>span{color:#087db2;background:#d9f1ff}.dashboard-finance-yellow>span{color:#9c6c00;background:#ffe9ac}.dashboard-finance-red>span{color:#c62037;background:#ffe0e5}.dashboard-finance-purple>span{color:#7130a7;background:#eadcf9}.dashboard-finance-teal>span{color:#007f7c;background:#d6f4f1}

.dashboard-advanced { border:1px solid var(--dash-border); border-radius:.52rem; background:#fff; }
.dashboard-advanced summary { display:flex; align-items:center; gap:.5rem; padding:.7rem .85rem; color:#164674; cursor:pointer; font-weight:750; }
.dashboard-advanced summary svg { width:1rem; height:1rem; }
.dashboard-advanced-body { display:grid; grid-template-columns:1.2fr 1fr; gap:1rem; padding:.85rem; border-top:1px solid #e2eaf3; }
.dashboard-advanced h2 { margin:0 0 .25rem; font-size:.88rem; }.dashboard-advanced p{color:#6f8299;font-size:.65rem}.dashboard-operational-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.dashboard-operational-filters label{display:block;margin-bottom:.2rem;color:#486688;font-size:.6rem;font-weight:700}.dashboard-operational-filters input,.dashboard-operational-filters select{width:100%;height:2.2rem;padding:.35rem .5rem;border:1px solid #ccd9e7;border-radius:.3rem;background:#fff;color:#173d68;font-size:.68rem}.dashboard-operational-filters button,.dashboard-operational-filters>a{height:2.2rem;display:grid;place-items:center;border:0;border-radius:.3rem;background:#0b4d91;color:#fff;font-size:.67rem;font-weight:700}.dashboard-operational-filters>a{border:1px solid #a8bbd0;color:#244e79;background:#fff}

html[data-theme="dark"] .dashboard-main { background:#0b1725; }
html[data-theme="dark"] .dashboard-shell { --dash-border:#29425c; color:#d9e8f7; }
html[data-theme="dark"] .dashboard-kpi,html[data-theme="dark"] .dashboard-alert-strip,html[data-theme="dark"] .dashboard-alert-card,html[data-theme="dark"] .dashboard-queue,html[data-theme="dark"] .dashboard-analysis-card,html[data-theme="dark"] .dashboard-financial,html[data-theme="dark"] .dashboard-advanced { color:#dbeafb; background:#122438; }
html[data-theme="dark"] .dashboard-kpi-copy small,html[data-theme="dark"] .dashboard-kpi-copy strong,html[data-theme="dark"] .dashboard-alert-strip h2,html[data-theme="dark"] .dashboard-alert-card strong,html[data-theme="dark"] .dashboard-queue h2,html[data-theme="dark"] .dashboard-analysis-card h2,html[data-theme="dark"] .dashboard-financial h2,html[data-theme="dark"] .dashboard-finance-card strong { color:#e6f2ff; }
html[data-theme="dark"] .dashboard-alert-card:hover,html[data-theme="dark"] .dashboard-queue-row:hover { background:#18314b; }
html[data-theme="dark"] .dashboard-queue-row,html[data-theme="dark"] .dashboard-finance-card { color:#bcd0e7; border-color:#29425c; }
html[data-theme="dark"] .dashboard-queue-row strong,html[data-theme="dark"] .dashboard-route-potential td:first-child a { color:#ddecfb; }
html[data-theme="dark"] .dashboard-route-potential th,html[data-theme="dark"] .dashboard-advanced th { background:#172c42; color:#aec2d9; }
html[data-theme="dark"] .dashboard-financial-period input,html[data-theme="dark"] .dashboard-operational-filters input,html[data-theme="dark"] .dashboard-operational-filters select { border-color:#39526c; color:#e4effb; background:#102236; }
html[data-theme="dark"] .topbar-dashboard-search { border-color:#344b64; background:#15283c; }html[data-theme="dark"] .topbar-dashboard-search input{color:#e6f1fb}.dashboard-operational-indicator::after{display:none!important}
html[data-theme="dark"] .dashboard-donut-center strong,html[data-theme="dark"] .dashboard-donut-legend-row strong,html[data-theme="dark"] .dashboard-bar-value { color:#e6f2ff; }
html[data-theme="dark"] .dashboard-donut-center small,html[data-theme="dark"] .dashboard-donut-legend-row,html[data-theme="dark"] .dashboard-bar-label { color:#bcd0e7; }
html[data-theme="dark"] .dashboard-bar-track { border-color:#47749f; background:#253b51; }

@media (max-width:1399.98px){.dashboard-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-alert-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-analysis-grid{grid-template-columns:1fr 1fr}.dashboard-route-potential{grid-row:span 1}.dashboard-analysis-card{height:20rem}.dashboard-analysis-card:last-child{grid-column:1/-1;height:18rem}.dashboard-financial-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1199.98px){.dashboard-hero{grid-template-columns:1.4fr .85fr}.dashboard-hero-actions{display:none}.dashboard-queues{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-queue{height:15rem}}
@media (max-width:767.98px){.dashboard-main{padding:.65rem}.dashboard-hero{grid-template-columns:1fr;padding:.8rem}.dashboard-hero-divider{display:none}.dashboard-client-logo{width:6rem;height:4rem}.dashboard-hero-company h1{font-size:1.2rem}.dashboard-kpi-grid,.dashboard-alert-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-queues,.dashboard-analysis-grid,.dashboard-advanced-body{grid-template-columns:1fr}.dashboard-analysis-card:last-child{grid-column:auto}.dashboard-financial>header{align-items:flex-start;flex-direction:column}.dashboard-financial-period{width:100%;flex-wrap:wrap}.dashboard-financial-period input{width:8.2rem}.dashboard-financial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-operational-filters{grid-template-columns:1fr 1fr}.dashboard-donut-layout{grid-template-columns:minmax(9rem,.8fr) minmax(11rem,1.2fr)}.dashboard-bar-row{grid-template-columns:minmax(5.8rem,.8fr) minmax(7rem,1.6fr) auto}}
@media (max-width:479.98px){.dashboard-kpi-grid,.dashboard-alert-grid,.dashboard-financial-grid{grid-template-columns:1fr}.dashboard-kpi{min-height:5.6rem}.dashboard-queue-row{grid-template-columns:max-content minmax(0,1fr) minmax(0,1fr)}.dashboard-queue-row span:last-child{display:none}.dashboard-operational-filters{grid-template-columns:1fr}}

/* Vagas: painel de montagem por rota */
.load-dashboard { --load-ink:#0e2d52; --load-muted:#5b7491; --load-line:#d8e4f0; --load-blue:#0875e1; color:var(--load-ink); }
.load-overview-header { display:grid; grid-template-columns:minmax(20rem,1fr) auto; align-items:center; gap:1.25rem; margin-bottom:.75rem; padding:.8rem 1rem; background:#fff; border:1px solid var(--load-line); border-radius:.65rem; box-shadow:0 .2rem .8rem rgba(24,55,91,.05); }
.load-overview-copy h1 { margin:0; color:#102f54; font-size:1.55rem; font-weight:850; letter-spacing:-.035em; }
.load-overview-copy strong { display:block; margin-top:.02rem; color:#486582; font-size:.76rem; font-weight:650; }
.load-overview-copy p { margin:.18rem 0 0; color:var(--load-muted); font-size:.68rem; }
.load-overview-stats { display:grid; grid-template-columns:repeat(3,minmax(8.8rem,1fr)); gap:.45rem; }
.load-overview-stats > a,.load-overview-stat { display:grid; grid-template-columns:1.65rem auto; grid-template-rows:auto auto; min-width:0; align-items:center; column-gap:.5rem; padding:.55rem .7rem; color:inherit; background:#f9fbfe; border:1px solid #dce7f2; border-radius:.48rem; text-decoration:none; }
.load-overview-stats > a:hover { color:inherit; background:#f2f7fd; border-color:#adcbe7; }
.load-overview-stats > a > span,.load-overview-stat > span { display:grid; grid-row:1/3; place-items:center; width:1.65rem; height:1.65rem; color:#1678df; background:#edf5ff; border-radius:50%; }
.load-overview-stats svg { width:1rem; height:1rem; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.load-overview-stats strong { align-self:end; color:#101f34; font-size:1rem; line-height:1; font-variant-numeric:tabular-nums; }
.load-overview-stats small { align-self:start; margin-top:.12rem; color:#5e7590; font-size:.57rem; white-space:nowrap; }
.load-page-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.85rem; }
.load-page-header h1 { margin:0; font-size:1.7rem; font-weight:800; letter-spacing:-.035em; }
.load-page-header p { margin:.15rem 0 0; color:var(--load-muted); font-size:.84rem; }
.load-page-actions { display:flex; gap:.65rem; }
.load-dashboard .report-tabs { margin-bottom:1rem !important; }
.load-alerts { overflow:hidden; background:#fff; border:1px solid var(--load-line); border-radius:.7rem; box-shadow:0 .18rem .7rem rgba(24,55,91,.05); }
.load-alerts > summary { padding:.72rem .9rem; color:#8a5b00; background:#fff8e6; cursor:pointer; font-size:.8rem; font-weight:750; }
.load-alert-list { padding:.7rem .8rem 0; }
.load-metric-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.75rem; margin-bottom:.85rem; }
.load-metric-card { display:flex; align-items:center; min-width:0; min-height:5rem; gap:.75rem; padding:.85rem .9rem; color:inherit; background:#fff; border:1px solid var(--load-line); border-radius:.65rem; box-shadow:0 .28rem 1rem rgba(24,55,91,.07); text-decoration:none; transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.load-metric-card:hover { color:inherit; border-color:#a9c8e7; box-shadow:0 .45rem 1.2rem rgba(24,55,91,.11); transform:translateY(-1px); }
.load-metric-icon { display:grid; place-items:center; width:2.7rem; height:2.7rem; flex:0 0 2.7rem; border-radius:50%; color:#0875e1; background:#e9f4ff; }
.load-metric-icon svg { width:1.45rem; height:1.45rem; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.load-metric-card.tone-green .load-metric-icon { color:#0c9f63; background:#e3f7ed; }
.load-metric-card.tone-purple .load-metric-icon { color:#7657dc; background:#eee9ff; }
.load-metric-card.tone-teal .load-metric-icon { color:#129772; background:#e4f7f0; }
.load-metric-card.tone-amber .load-metric-icon { color:#e49a00; background:#fff2d5; }
.load-metric-card > span:nth-child(2) { display:flex; min-width:0; flex:1; flex-direction:column; }
.load-metric-card strong { overflow:hidden; font-size:1.28rem; line-height:1.1; text-overflow:ellipsis; white-space:nowrap; }
.load-metric-card small { margin-top:.22rem; color:#294c70; font-size:.72rem; line-height:1.1; }
.load-metric-card small em { display:block; font-style:normal; }
.load-metric-card > i { color:#aac5df; font-size:1.45rem; font-style:normal; }
.load-filter-card { margin-bottom:.75rem; overflow:visible; background:#fff; border:1px solid var(--load-line); border-radius:.58rem; box-shadow:0 .18rem .7rem rgba(24,55,91,.05); }
.load-filter-heading { display:flex; min-height:2.65rem; align-items:center; gap:.5rem; padding:.55rem .8rem; color:#23486e; border-bottom:1px solid var(--load-line); font-size:.72rem; font-weight:800; }
.load-filter-heading small { color:#7a8fa3; font-size:.61rem; font-weight:500; }
.load-filter-card form { display:grid; grid-template-columns:1.05fr repeat(4,minmax(7rem,.8fr)) 1fr repeat(2,minmax(7rem,.72fr)) auto; align-items:end; gap:.55rem; }
.load-filter-card > form { padding:.65rem .75rem; }
.load-filter-card label,.load-create-panel label { display:block; min-width:0; color:#24476d; font-size:.68rem; font-weight:700; }
.load-filter-card .form-control,.load-filter-card .form-select { min-height:2.25rem; font-size:.76rem; }
.load-route-filter-field { position:relative; min-width:0; color:#24476d; font-size:.68rem; font-weight:700; }
.load-route-filter { position:relative; margin-top:0; font-weight:500; }
.load-route-filter > summary { display:flex; min-height:2.25rem; align-items:center; padding:.42rem 2rem .42rem .7rem; overflow:hidden; color:#314a63; background:#fff; border:1px solid #c7d8e8; border-radius:.42rem; list-style:none; cursor:pointer; font-size:.76rem; text-overflow:ellipsis; white-space:nowrap; }
.load-route-filter > summary::-webkit-details-marker { display:none; }
.load-route-filter > summary::after { position:absolute; right:.72rem; width:.48rem; height:.48rem; border-right:2px solid #71869a; border-bottom:2px solid #71869a; content:""; transform:translateY(-.14rem) rotate(45deg); transition:transform .15s ease; }
.load-route-filter[open] > summary { border-color:#4f96d8; box-shadow:0 0 0 .15rem rgba(21,111,199,.12); }
.load-route-filter[open] > summary::after { transform:translateY(.14rem) rotate(225deg); }
.load-route-filter-panel { position:absolute; z-index:1050; top:calc(100% + .3rem); left:0; width:max(18rem,100%); padding:.45rem; background:#fff; border:1px solid #cbd9e6; border-radius:.48rem; box-shadow:0 .8rem 2rem rgba(20,48,78,.2); }
.load-route-filter-panel .form-control { margin-bottom:.35rem; }
.load-route-filter-options { max-height:15rem; overflow-y:auto; }
.load-route-filter-options label { display:flex; align-items:center; gap:.5rem; padding:.42rem .38rem; border-radius:.3rem; cursor:pointer; font-size:.72rem; font-weight:600; }
.load-route-filter-options label:hover { background:#eef6fd; }
.load-route-filter-options label[hidden] { display:none; }
.load-route-filter-options .form-check-input { flex:0 0 auto; margin:0; }
.load-route-filter-panel .btn-link { padding:.32rem .38rem .08rem; font-size:.66rem; text-decoration:none; }
.load-filter-actions { display:flex; gap:.45rem; }
.load-filter-context { margin:.55rem 0 0; padding-top:.5rem; color:var(--load-muted); border-top:1px solid var(--load-line); font-size:.68rem; }
.load-workspace { display:grid; grid-template-columns:minmax(0,1fr) 23.5rem; align-items:start; gap:.85rem; }
.load-routes,.load-create-panel { min-width:0; }
.load-routes { position:relative; overflow:clip; background:#fff; border:1px solid var(--load-line); border-radius:.65rem; box-shadow:0 .24rem .9rem rgba(24,55,91,.06); }
.load-section-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem .9rem; border-bottom:1px solid var(--load-line); }
.load-section-heading h2,.load-create-heading h2 { margin:0; font-size:1rem; font-weight:800; }
.load-section-heading p,.load-create-heading p { margin:.12rem 0 0; color:var(--load-muted); font-size:.7rem; }
.load-section-heading > span { color:var(--load-muted); font-size:.72rem; white-space:nowrap; }
.load-section-heading-actions { display:flex; align-items:center; gap:.65rem; color:var(--load-muted); font-size:.72rem; white-space:nowrap; }
.load-route-add-button,.load-route-profile-edit-button { display:grid; place-items:center; padding:0; color:#0a68c7; background:#fff; border:1px solid #bed3e7; border-radius:.38rem; box-shadow:0 .12rem .35rem rgba(24,55,91,.08); }
.load-route-add-button { width:2rem; height:2rem; }
.load-route-add-button:hover,.load-route-profile-edit-button:hover { color:#fff; background:#0875e1; border-color:#0875e1; }
.load-route-add-button svg,.load-route-profile-edit-button svg { width:1rem; height:1rem; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.load-global-selection { position:sticky; z-index:20; bottom:.45rem; display:flex; min-height:3.35rem; align-items:center; gap:.65rem; margin:.45rem .55rem; padding:.45rem .65rem; color:#0b5fab; background:linear-gradient(90deg,rgba(235,246,255,.99),rgba(245,250,255,.99)); border:1px solid #2790f4; border-radius:.45rem; box-shadow:0 .15rem .55rem rgba(13,96,178,.12); backdrop-filter:blur(8px); }
.load-global-selection[hidden] { display:none; }
.load-global-selection.is-floating { position:fixed; z-index:1020; left:var(--selection-left); width:var(--selection-width); bottom:12px; margin:0; box-sizing:border-box; }
.load-global-selection.is-compact { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.load-global-selection.is-compact .load-global-selection-check { display:none; }
.load-global-selection.is-compact .load-global-selection-count { min-width:0; }
.load-global-selection.is-compact .btn { min-width:0; white-space:normal; }
.load-overview-stats a[aria-current="page"] { border-color:#3979b7; background:#eaf3fc; box-shadow:inset 0 0 0 1px #3979b7; }
.stage-standard-table .stage-service-start-date,
.stage-standard-table .stage-service-start-date strong { white-space:nowrap; overflow-wrap:normal; word-break:normal; font-variant-numeric:tabular-nums; }
.load-global-selection-check { display:grid; width:1.8rem; height:1.8rem; flex:0 0 1.8rem; place-items:center; color:#fff; background:#0875e1; border-radius:50%; font-size:.82rem; font-weight:850; }
.load-global-selection-count,.load-global-selection-cost { display:flex; min-width:0; flex-direction:column; }
.load-global-selection-count { min-width:10.5rem; flex:1; }
.load-global-selection-cost { margin-left:auto; text-align:right; }
.load-global-selection strong { font-size:.72rem; font-variant-numeric:tabular-nums; }.load-global-selection small { color:#637d96; font-size:.58rem; }
.load-global-selection-cost strong { color:#0875e1; font-size:.82rem; }
.load-global-selection .btn { min-height:2rem; flex:0 0 auto; padding-inline:.7rem; font-size:.62rem; font-weight:750; white-space:nowrap; }
.load-route-card { border-bottom:1px solid var(--load-line); }
.load-route-card:last-of-type { border-bottom:0; }
.load-route-card > summary { position:relative; display:grid; grid-template-columns:.8rem 2.15rem minmax(10rem,1fr) max-content max-content minmax(10rem,max-content) max-content; align-items:center; min-height:3.45rem; gap:.6rem; padding:.5rem 5.75rem .5rem .8rem; list-style:none; cursor:pointer; }
.load-route-card > summary::-webkit-details-marker { display:none; }
.load-route-card > summary:hover { background:#f8fbfe; }
.load-route-card[open] > summary { background:#fbfdff; border-bottom:1px solid var(--load-line); }
.load-route-truck-icon { display:grid; place-items:center; width:2.15rem; height:2.15rem; color:#fff; background:linear-gradient(145deg,#2488ee,#0868c7); border-radius:.45rem; box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),0 .15rem .35rem rgba(9,80,148,.2); }
.load-route-truck-icon svg { width:1.42rem; height:1.42rem; fill:none; stroke:currentColor; stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round; }
.load-route-identity { display:flex; min-width:0; flex-direction:column; justify-content:center; }
.load-route-identity strong { overflow:hidden; color:#10365f; font-size:.82rem; font-weight:820; text-overflow:ellipsis; white-space:nowrap; }
.load-route-identity small { overflow:hidden; margin-top:.08rem; color:#6f869c; font-size:.59rem; text-overflow:ellipsis; white-space:nowrap; }
.load-route-pill { padding:.28rem .48rem; color:#315a83; background:#eef5fc; border:1px solid #d6e4f2; border-radius:999px; font-size:.63rem; font-weight:650; }
.load-route-pill strong { color:inherit; font-size:inherit; font-weight:800; }
.load-route-pill.is-green { color:#18734c; background:#e4f7ec; border-color:#c7ecd9; }
.load-route-pill.is-wait { color:#78602a; background:#fff6df; border-color:#f4e5ba; }
.load-route-pill.is-primary { color:#fff; background:#159657; border-color:#159657; }
.load-route-chevron { width:.48rem; height:.48rem; margin-left:.1rem; border-right:2px solid #174b77; border-bottom:2px solid #174b77; transform:rotate(-45deg); transition:transform .18s ease; }
.load-route-card[open] .load-route-chevron { transform:rotate(45deg); }
.load-route-profile-edit-button { position:absolute; z-index:2; top:50%; right:.72rem; width:1.9rem; height:1.9rem; transform:translateY(-50%); }
.load-route-profile-modal .modal-header { align-items:flex-start; }
.load-route-profile-modal .modal-header h2 { color:#143b64; font-size:1.05rem; font-weight:800; }
.load-route-profile-modal .modal-header p { margin:.15rem 0 0; color:#647d96; font-size:.72rem; }
.load-route-profile-fields { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(9rem,.72fr); align-items:end; gap:.65rem; }
.load-route-profile-fields label { color:#24476d; font-size:.7rem; font-weight:750; }
.load-route-profile-fields sup { color:#d02b3e; }
.load-route-profile-times { padding-bottom:.58rem; color:#6d8298; font-size:.8rem; font-weight:850; }
.load-route-profile-routes { margin-top:1rem; padding-top:.85rem; border-top:1px solid #e0e9f2; }
.load-route-profile-routes > div:first-child { display:flex; flex-direction:column; margin-bottom:.55rem; }
.load-route-profile-routes > div:first-child strong { color:#173d66; font-size:.78rem; }
.load-route-profile-routes > div:first-child small { color:#71869b; font-size:.65rem; }
.load-route-profile-route-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-height:18rem; margin-top:.5rem; overflow:auto; border:1px solid #d4e0ec; border-radius:.45rem; }
.load-route-profile-route-list > label { display:flex; min-width:0; align-items:flex-start; gap:.55rem; padding:.58rem .65rem; border-bottom:1px solid #e8eef5; cursor:pointer; }
.load-route-profile-route-list > label:nth-child(odd) { border-right:1px solid #e8eef5; }
.load-route-profile-route-list > label:hover { background:#f4f9fe; }
.load-route-profile-route-list > label[hidden] { display:none; }
.load-route-profile-route-list input { flex:0 0 auto; margin-top:.15rem; }
.load-route-profile-route-list span { display:flex; min-width:0; flex-direction:column; }
.load-route-profile-route-list strong { overflow:hidden; color:#173d66; font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.load-route-profile-route-list small { overflow:hidden; margin-top:.12rem; color:#71869b; font-size:.6rem; text-overflow:ellipsis; white-space:nowrap; }
.load-route-content { display:grid; grid-template-columns:minmax(0,1fr) 14.7rem; align-items:stretch; }
.load-route-table-wrap { min-width:0; }
.load-ready-table { width:100%; table-layout:fixed; font-size:.66rem; }
.load-ready-col-check { width:4%; }.load-ready-col-date { width:12%; }.load-ready-col-vehicle { width:18%; }.load-ready-col-client { width:14%; }.load-ready-col-origin { width:14%; }.load-ready-col-destination { width:14%; }.load-ready-col-auction { width:8%; }.load-ready-col-status { width:11%; }.load-ready-col-actions { width:5%; }
.load-ready-table > :not(caption) > * > * { padding:.58rem .55rem; border-color:#e3ebf3; vertical-align:middle; }
.load-ready-table thead th { color:#365a7e; background:#f6f9fc; font-size:.61rem; text-transform:none; vertical-align:middle; white-space:nowrap; }
.load-ready-table th small,.load-ready-table td small,.load-current-table td small { display:block; margin-top:.12rem; color:#72879c; font-size:.59rem; font-weight:450; }
.load-ready-table td { overflow:hidden; line-height:1.2; text-overflow:ellipsis; }
.load-ready-table th:has(input[type="checkbox"]),.load-ready-table td:has(input[type="checkbox"]) { overflow:visible; text-overflow:clip; }
.load-ready-table td > strong,.load-ready-table td > a,.load-ready-table td > small { overflow:hidden; text-overflow:ellipsis; }
.load-ready-table td > strong,.load-ready-table td > a { display:block; white-space:nowrap; }
.load-ready-table td > small { white-space:nowrap; }
.load-ready-table td strong,.load-vehicle-name { color:#12375d; font-weight:750; text-decoration:none; }
.load-ready-actions { overflow:visible !important; text-align:center; }
.load-ready-actions form { margin:0; }
.load-ready-more-button { display:inline-grid; width:1.9rem; height:1.9rem; padding:0; place-items:center; color:#0870d7; background:transparent; border:1px solid transparent; border-radius:50%; font-size:1.35rem; font-weight:750; line-height:1; }
.load-ready-more-button:hover,.load-ready-more-button[aria-expanded="true"] { background:#eaf4ff; border-color:#c9e0f6; }
.load-ready-row-actions .dropdown-menu { min-width:13.5rem; padding:.38rem; border-color:#d8e3ee; box-shadow:0 .75rem 1.8rem rgba(18,48,78,.16); }
.load-ready-row-actions .dropdown-item { padding:.5rem .62rem; border-radius:.35rem; font-size:.7rem; }
.load-ready-row-actions .load-ready-action-reason { max-width:15rem; padding:.42rem .62rem; color:#72879c; font-size:.62rem; line-height:1.35; white-space:normal; }
.load-vehicle-name:hover { color:#0875e1; text-decoration:underline; }
.load-waiting-date { color:#de3447 !important; font-weight:750; }
.load-ready-status { display:inline-flex; align-items:center; justify-content:center; min-height:1.35rem; padding:.2rem .45rem; border:1px solid transparent; border-radius:999px; font-size:.57rem; font-weight:800; line-height:1; white-space:nowrap; }
.load-ready-status.is-waiting { color:#725300; background:#ffd837; border-color:#edc51d; }
.load-ready-status.is-collecting { color:#075985; background:#dff4ff; border-color:#8ed5f6; }
.load-status { display:inline-flex; align-items:center; min-height:1.55rem; padding:.22rem .42rem; border-radius:.28rem; font-size:.59rem; font-weight:750; line-height:1.12; }
.load-status.ready,.load-status.done { color:#087747; background:#d9f5e7; }
.load-status.planned { color:#8b6500; background:#fff0bd; }
.load-status.assembling { color:#8a5000; background:#ffe9c4; }
.load-status.transit { color:#075dbb; background:#dcecff; }
.load-status.neutral { color:#52687c; background:#e8eef4; }
.load-batch-bar { display:flex; align-items:center; gap:.55rem; min-height:3.25rem; padding:.55rem .7rem; background:#f3efff; border-top:1px dashed #9365e9; border-bottom:1px dashed #9365e9; }
.load-batch-bar[hidden] { display:none; }
.load-batch-count { color:#49307f; font-size:.7rem; }
.load-batch-help { margin-left:auto; color:#69558c; font-size:.62rem; }
.load-route-pagination { display:flex; align-items:center; justify-content:flex-end; gap:.55rem; padding:.5rem .7rem; color:var(--load-muted); font-size:.68rem; }
.load-route-summary { padding:.72rem; background:#f2f8fd; border-left:1px solid var(--load-line); }
.load-route-summary h3 { margin:0 0 .65rem; font-size:.78rem; font-weight:800; }
.load-route-summary > p { margin:0 0 .65rem; }
.load-route-summary > p strong,.load-route-summary > p small { display:block; }
.load-route-summary > p strong { font-size:.72rem; }.load-route-summary > p small { color:var(--load-muted); font-size:.61rem; }
.load-capacity-line { display:flex; justify-content:space-between; color:#365a7e; font-size:.62rem; }
.load-capacity-track { height:.5rem; margin:.28rem 0 .62rem; overflow:hidden; background:#cbd9e7; border-radius:999px; }
.load-capacity-track span { display:block; height:100%; background:linear-gradient(90deg,#16ad6c,#08a258); border-radius:inherit; }
.load-capacity-stats { display:grid; grid-template-columns:repeat(3,1fr); margin-bottom:.75rem; overflow:hidden; background:#fff; border:1px solid var(--load-line); border-radius:.4rem; }
.load-capacity-stats span { padding:.42rem .2rem; color:#64798f; border-right:1px solid var(--load-line); font-size:.55rem; text-align:center; }
.load-capacity-stats span:last-child { border:0; }.load-capacity-stats strong { display:block; color:#173d65; font-size:.78rem; }
.load-route-summary h4 { margin:.7rem 0 .4rem; font-size:.65rem; font-weight:800; }
.load-provider-suggestion,.load-open-vaga { display:flex; width:100%; align-items:center; justify-content:space-between; gap:.35rem; margin-bottom:.35rem; padding:.42rem .45rem; color:inherit; background:#fff; border:1px solid #d5e2ee; border-radius:.38rem; text-align:left; text-decoration:none; }
.load-provider-suggestion:hover,.load-open-vaga:hover { color:#075fb9; border-color:#8bbbe7; }
.load-provider-suggestion span,.load-provider-suggestion strong,.load-provider-suggestion small { display:block; min-width:0; }.load-provider-suggestion strong { overflow:hidden; font-size:.61rem; text-overflow:ellipsis; white-space:nowrap; }.load-provider-suggestion small { color:#687f96; font-size:.53rem; }
.load-provider-suggestion em { padding:.15rem .26rem; color:#087747; background:#dff5e8; border-radius:.2rem; font-size:.5rem; font-style:normal; white-space:nowrap; }
.load-open-vaga { font-size:.6rem; font-weight:700; }.load-open-vaga span { color:#168455; }
.load-create-panel { position:sticky; top:4.5rem; padding:.8rem; background:#fff; border:1px solid var(--load-line); border-radius:.65rem; box-shadow:0 .24rem .9rem rgba(24,55,91,.07); }
.load-create-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:.7rem; margin-bottom:.75rem; }
.load-create-panel form { display:grid; gap:.62rem; }
.load-create-panel label > span { color:#73879a; font-weight:450; }.load-create-panel sup { color:#d9364a; }
.load-create-panel .form-control,.load-create-panel .form-select,.load-create-panel .input-group-text { min-height:2.3rem; font-size:.73rem; }
.load-create-panel label > small { display:block; margin-top:.2rem; color:#71869a; font-size:.58rem; font-weight:450; line-height:1.25; }
.load-form-row { display:grid; grid-template-columns:1fr 1fr; align-items:end; gap:.55rem; }
.load-selected-summary { padding:.48rem .58rem; color:#075c9d; background:#e9f4ff; border-radius:.35rem; font-size:.66rem; }
.load-cost-editor-card { display:grid; gap:.55rem; padding:.7rem; background:#f7faff; border:1px solid #d9e6f2; border-radius:.55rem; }
.load-cost-editor-card > div:first-child,.load-cost-editor-summary { display:flex; align-items:center; justify-content:space-between; gap:.65rem; }
.load-cost-editor-card > div:first-child { align-items:flex-start; flex-direction:column; gap:.12rem; }
.load-cost-editor-card > div:first-child strong { color:#173d65; font-size:.72rem; }
.load-cost-editor-card > div:first-child small { color:#70859a; font-size:.59rem; line-height:1.3; }
.load-cost-editor-summary { padding:.42rem .5rem; background:#fff; border:1px solid #e1eaf3; border-radius:.4rem; color:#60778e; font-size:.64rem; }
.load-cost-editor-summary strong { color:#087747; font-size:.78rem; font-variant-numeric:tabular-nums; }
.load-cost-editor-card .btn { min-height:2.3rem; font-size:.7rem; font-weight:750; }
.load-cost-modal .modal-content { overflow:hidden; border:0; border-radius:.9rem; box-shadow:0 1.4rem 4rem rgba(12,38,67,.24); }
.load-cost-modal .modal-header { align-items:flex-start; padding:1.05rem 1.2rem; background:linear-gradient(135deg,#f8fbff,#eef6ff); border-bottom:1px solid #dce8f3; }
.load-cost-modal .modal-title { margin:0; color:#12385f; font-size:1.05rem; font-weight:800; }
.load-cost-modal .modal-header p { margin:.2rem 0 0; color:#657d94; font-size:.7rem; }
.load-cost-modal .modal-body { max-height:min(60vh,34rem); padding:1rem 1.2rem; overflow-y:auto; background:#f7f9fc; }
.load-cost-modal-empty { padding:2rem; color:#70859a; background:#fff; border:1px dashed #c8d8e7; border-radius:.55rem; text-align:center; font-size:.75rem; }
.load-cost-list { display:grid; gap:.55rem; }
.load-cost-row { display:grid; grid-template-columns:2rem minmax(0,1fr) 8.5rem 12rem; align-items:center; gap:.8rem; padding:.72rem .8rem; background:#fff; border:1px solid #dce6ef; border-radius:.55rem; box-shadow:0 .15rem .45rem rgba(24,55,91,.04); }
.load-cost-row-order { display:grid; place-items:center; width:1.8rem; height:1.8rem; color:#075fad; background:#e6f2ff; border-radius:50%; font-size:.7rem; font-weight:800; }
.load-cost-row-vehicle,.load-cost-row-source,.load-cost-row-field { display:flex; min-width:0; flex-direction:column; gap:.12rem; }
.load-cost-row-vehicle strong { overflow:hidden; color:#12385f; font-size:.75rem; text-overflow:ellipsis; white-space:nowrap; }
.load-cost-row-vehicle small,.load-cost-row-source span,.load-cost-row-field > span:first-child { color:#71869a; font-size:.6rem; font-weight:550; }
.load-cost-row-source strong { color:#47627c; font-size:.72rem; font-variant-numeric:tabular-nums; }
.load-cost-row-field .input-group-text,.load-cost-row-field .form-control { min-height:2.25rem; font-size:.72rem; }
.load-cost-row-field .form-control { color:#087747; font-weight:750; }
.load-cost-modal-footer { display:grid; grid-template-columns:1fr auto auto; gap:.55rem; padding:.85rem 1.2rem; background:#fff; }
.load-cost-modal-footer > div { display:flex; flex-direction:column; }
.load-cost-modal-footer span { color:#71869a; font-size:.6rem; }
.load-cost-modal-footer strong { color:#087747; font-size:.92rem; font-variant-numeric:tabular-nums; }
.load-transport-defaults { padding:.5rem .58rem; color:#496782; background:#f6f9fc; border:1px solid #e0e9f2; border-radius:.35rem; font-size:.61rem; line-height:1.3; }
.load-create-submit { min-height:2.65rem; font-size:.76rem; font-weight:750; }.load-create-note { color:#72869a; font-size:.58rem; text-align:center; }

/* Montagem guiada de Vagas */
.load-route-card > summary { display:flex; padding:.5rem 3rem .5rem .8rem; }
.load-route-card > summary .load-route-identity { margin-right:auto; }
.load-route-auto-fill { min-height:2rem; padding-inline:.62rem; font-size:.62rem; font-weight:750; white-space:nowrap; }
.load-route-content { display:block; }
.load-route-table-wrap > .table-responsive { padding-inline:.55rem; scrollbar-width:none; }
.load-route-table-wrap > .table-responsive::-webkit-scrollbar { display:none; width:0; height:0; }
.load-ready-col-check { width:4%; }
.load-ready-col-date { width:11%; }
.load-ready-col-vehicle { width:19%; }
.load-ready-col-client { width:17%; }
.load-ready-col-leg { width:22%; }
.load-ready-col-auction { width:9%; }
.load-ready-col-status { width:13%; }
.load-ready-col-actions { width:5%; }
.load-ready-table--guided thead th { text-align:center; }
.load-ready-table--guided tbody td { text-align:center; }
.load-ready-table--guided tbody tr { cursor:pointer; transition:background .14s ease,box-shadow .14s ease; }
.load-ready-table--guided tbody tr:hover > td { background:#f8fbff; }
.load-ready-table--guided tbody tr.is-selected > td { background:#eef6ff; }
.load-ready-table--guided tbody tr.is-selected > td:first-child { box-shadow:inset 3px 0 #0875e1; }
.load-ready-table--guided td:nth-child(3),.load-ready-table--guided td:nth-child(4),.load-ready-table--guided td:nth-child(5) { text-align:left; }
.load-ready-table--guided td:nth-child(3) small strong { display:inline; color:#58728d; }
.load-ready-leg strong { line-height:1.3; white-space:normal !important; }
.load-batch-bar { position:sticky; z-index:3; bottom:0; min-height:3.7rem; padding:.6rem .8rem; color:#0b5fab; background:#edf6ff; border-color:#b9d8f3; }
.load-batch-check { display:grid; width:1.8rem; height:1.8rem; flex:0 0 1.8rem; place-items:center; color:#fff; background:#0875e1; border-radius:50%; font-weight:850; }
.load-batch-count { display:flex; min-width:9rem; flex-direction:column; color:#0b5fab; }
.load-batch-count strong { font-size:.72rem; }
.load-batch-count small,.load-batch-cost small { color:#637d96; font-size:.58rem; }
.load-batch-cost { display:flex; margin-left:auto; flex-direction:column; }
.load-batch-cost strong { color:#0875e1; font-size:.8rem; }
.load-route-support { display:flex; align-items:center; gap:.45rem; padding:.48rem .7rem; background:#f8fbfe; border-top:1px solid var(--load-line); }
.load-route-support-label { color:#617b94; font-size:.59rem; font-weight:750; white-space:nowrap; }
.load-route-support .load-provider-suggestion,.load-route-support .load-open-vaga { width:auto; min-width:9rem; margin:0; }
.load-route-support .load-open-vaga { margin-left:auto; color:#087747; background:#edfbf4; border-color:#bce7d0; }
.load-guided-panel { padding:.9rem; }
.load-wizard-steps { position:relative; display:grid; grid-template-columns:repeat(4,1fr); margin:.15rem 0 .85rem; }
.load-wizard-steps::before { position:absolute; top:.78rem; right:11%; left:11%; height:2px; content:""; background:#d0dce8; }
.load-wizard-steps button { position:relative; z-index:1; display:flex; min-width:0; padding:0; align-items:center; flex-direction:column; gap:.22rem; color:#7b8fa4; background:transparent; border:0; font-size:.58rem; }
.load-wizard-steps button span { display:grid; width:1.58rem; height:1.58rem; place-items:center; color:#6f859a; background:#eef3f8; border:1px solid #cbd8e5; border-radius:50%; font-size:.65rem; font-weight:800; }
.load-wizard-steps button small { font-size:.56rem; font-weight:700; white-space:nowrap; }
.load-wizard-steps button.is-complete,.load-wizard-steps button.is-active { color:#0868c7; }
.load-wizard-steps button.is-complete span,.load-wizard-steps button.is-active span { color:#fff; background:#0875e1; border-color:#0875e1; }
.load-wizard-steps button.is-complete span { font-size:0; }
.load-wizard-steps button.is-complete span::after { content:"✓"; font-size:.72rem; }
.load-wizard-selection { padding:.65rem; background:#f7faff; border:1px solid #dce8f3; border-radius:.55rem; }
.load-wizard-selection > div:first-child { display:flex; align-items:center; justify-content:space-between; color:#5e7690; font-size:.62rem; }
.load-wizard-selection > div:first-child strong { color:#173d65; font-size:.7rem; }
.load-wizard-selection .load-capacity-track { margin:.42rem 0 .25rem; }
.load-wizard-selection .load-capacity-track i { display:block; width:0; height:100%; background:#12a365; border-radius:inherit; transition:width .18s ease; }
.load-wizard-selection > small { display:block; color:#668098; font-size:.58rem; text-align:right; }
.load-wizard-selection > p { display:flex; margin:.5rem 0 0; padding-top:.5rem; flex-direction:column; border-top:1px solid #e0e9f2; }
.load-wizard-selection > p strong { color:#143b64; font-size:.7rem; }
.load-wizard-selection > p small { margin-top:.1rem; color:#71869b; font-size:.58rem; }
.load-wizard-panel { display:grid; gap:.62rem; }
.load-wizard-panel[hidden] { display:none; }
.load-wizard-panel-heading { padding-bottom:.55rem; border-bottom:1px solid #e2eaf2; }
.load-wizard-panel-heading > span { color:#0875e1; font-size:.56rem; font-weight:800; text-transform:uppercase; }
.load-wizard-panel-heading h3 { margin:.12rem 0; color:#133a62; font-size:.9rem; font-weight:820; }
.load-wizard-panel-heading p { margin:0; color:#71869b; font-size:.63rem; line-height:1.35; }
.load-flow-suggestion { padding:.3rem .4rem; color:#087747 !important; background:#eaf9f1; border:1px solid #c7ead7; border-radius:.35rem; font-weight:650 !important; }
.load-flow-suggestion.is-warning { color:#86621c !important; background:#fff7df; border-color:#f0dfad; }
.load-wizard-open-load { display:flex; align-items:center; justify-content:space-between; gap:.55rem; padding:.62rem; color:#087747; background:#eaf9f1; border:1px solid #bce5cf; border-radius:.5rem; text-decoration:none; }
.load-wizard-open-load[hidden] { display:none; }
.load-wizard-open-load span,.load-wizard-open-load strong,.load-wizard-open-load small { display:block; }
.load-wizard-open-load strong { font-size:.65rem; }.load-wizard-open-load small { margin-top:.12rem; color:#54826b; font-size:.56rem; }
.load-wizard-open-load em { padding:.3rem .42rem; color:#fff; background:#159657; border-radius:.32rem; font-size:.56rem; font-style:normal; font-weight:750; white-space:nowrap; }
.load-wizard-open-load:hover { color:#075f3a; border-color:#70c397; }
.load-wizard-actions { display:grid; grid-template-columns:auto minmax(0,1fr); gap:.5rem; margin-top:.15rem; }
.load-wizard-actions .btn { min-height:2.55rem; font-size:.68rem; font-weight:750; }
.load-wizard-review { display:grid; gap:0; margin:0; overflow:hidden; border:1px solid #dae6f1; border-radius:.55rem; }
.load-wizard-review > div { display:grid; grid-template-columns:6.2rem minmax(0,1fr); gap:.5rem; padding:.55rem .62rem; border-bottom:1px solid #e6edf4; }
.load-wizard-review > div:last-child { border-bottom:0; }
.load-wizard-review dt { color:#6c8297; font-size:.59rem; font-weight:650; }
.load-wizard-review dd { margin:0; overflow:hidden; color:#173d65; font-size:.64rem; font-weight:750; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
html[data-theme="dark"] .load-route-support,html[data-theme="dark"] .load-wizard-selection,html[data-theme="dark"] .load-cost-editor-card { background:#13283a; border-color:#2d4357; }
html[data-theme="dark"] .load-ready-table--guided tbody tr.is-selected > td { background:#102f4d; }
html[data-theme="dark"] .load-batch-bar,html[data-theme="dark"] .load-global-selection { color:#a8d2ff; background:rgba(16,47,77,.98); border-color:#275a87; }
html[data-theme="dark"] .load-global-selection small { color:#9bb0c4; }
html[data-theme="dark"] .load-batch-count,html[data-theme="dark"] .load-batch-cost strong,html[data-theme="dark"] .load-wizard-panel-heading > span { color:#58a6ff; }
html[data-theme="dark"] .load-wizard-selection strong,html[data-theme="dark"] .load-wizard-panel-heading h3,html[data-theme="dark"] .load-wizard-review dd { color:#e6edf3; }
html[data-theme="dark"] .load-wizard-panel-heading,html[data-theme="dark"] .load-wizard-selection > p,html[data-theme="dark"] .load-wizard-review > div { border-color:#30363d; }
html[data-theme="dark"] .load-wizard-review { border-color:#30363d; }
.load-current-card { margin-top:.85rem; overflow:hidden; border:1px solid var(--load-line) !important; border-radius:.65rem; }
.load-current-card > summary { display:flex; align-items:center; justify-content:space-between; padding:.72rem .9rem; list-style:none; cursor:pointer; border-bottom:1px solid var(--load-line); }
.load-current-card > summary::-webkit-details-marker { display:none; }.load-current-card > summary strong,.load-current-card > summary small { display:block; }.load-current-card > summary strong { font-size:.92rem; }.load-current-card > summary small { margin-top:.1rem; color:var(--load-muted); font-size:.65rem; font-weight:450; }
.load-list-filters { display:grid; grid-template-columns:repeat(4,minmax(8rem,1fr)) auto; gap:.45rem; padding:.55rem .7rem; background:#f7fafd; border-bottom:1px solid var(--load-line); }.load-list-filters .form-control,.load-list-filters .form-select { min-height:2.1rem; font-size:.7rem; }
.load-current-table { font-size:.67rem; }.load-current-table > :not(caption) > * > * { padding:.58rem .65rem; border-color:#e2eaf2; }.load-current-table thead th { color:#3c5d7b; background:#f4f8fc; font-size:.6rem; }.load-current-table td > strong { color:#15395e; }.load-current-table td:last-child { white-space:nowrap; }
.load-current-table .load-completed-more-cell { width:3.2rem; padding-inline:.25rem; overflow:visible; text-align:center; }
.load-mini-progress { display:block; width:5rem; height:.34rem; margin-top:.25rem; overflow:hidden; background:#d4e0eb; border-radius:999px; }.load-mini-progress i { display:block; height:100%; background:#0e87ea; border-radius:inherit; }
.load-source-badge { padding:.12rem .25rem; color:#475f76; background:#eef2f6; border-radius:.2rem; font-size:.5rem; }.load-empty { padding:2rem; color:#6f8295; text-align:center; }
html[data-theme="dark"] .load-dashboard { --load-ink:#e4edf6; --load-muted:#9bb0c4; --load-line:#2d4357; }
html[data-theme="dark"] .load-overview-header,html[data-theme="dark"] .load-metric-card,html[data-theme="dark"] .load-filter-card,html[data-theme="dark"] .load-routes,html[data-theme="dark"] .load-create-panel,html[data-theme="dark"] .load-current-card,html[data-theme="dark"] .load-alerts { background:#101f2d; }
html[data-theme="dark"] .load-overview-copy h1,html[data-theme="dark"] .load-overview-stats strong,html[data-theme="dark"] .load-route-identity strong { color:#e4edf6; }
html[data-theme="dark"] .load-overview-copy strong { color:#b5c8d9; }
html[data-theme="dark"] .load-overview-stats > a,html[data-theme="dark"] .load-overview-stat { background:#14283a; border-color:#304a61; }
html[data-theme="dark"] .load-overview-stats > a:hover { background:#193149; border-color:#47749d; }
html[data-theme="dark"] .load-overview-stats > a > span,html[data-theme="dark"] .load-overview-stat > span { background:#173653; }
html[data-theme="dark"] .load-filter-heading { color:#dce8f3; }
html[data-theme="dark"] .load-route-card > summary:hover,html[data-theme="dark"] .load-route-card[open] > summary,html[data-theme="dark"] .load-ready-table thead th,html[data-theme="dark"] .load-list-filters,html[data-theme="dark"] .load-current-table thead th { background:#13283a; }
html[data-theme="dark"] .load-route-summary { background:#112638; } html[data-theme="dark"] .load-capacity-stats,html[data-theme="dark"] .load-provider-suggestion,html[data-theme="dark"] .load-open-vaga { background:#172b3d; }
html[data-theme="dark"] .load-cost-editor-card,html[data-theme="dark"] .load-cost-modal .modal-body { background:#122638; border-color:#2d4357; }
html[data-theme="dark"] .load-cost-editor-summary,html[data-theme="dark"] .load-cost-row,html[data-theme="dark"] .load-cost-modal-footer { background:#101f2d; border-color:#2d4357; }
html[data-theme="dark"] .load-cost-modal .modal-header { background:linear-gradient(135deg,#13283a,#102231); border-color:#2d4357; }
html[data-theme="dark"] .load-route-filter > summary,html[data-theme="dark"] .load-route-filter-panel { color:#dce8f3; background:#14283a; border-color:#365068; }
html[data-theme="dark"] .load-route-filter-field,html[data-theme="dark"] .load-route-filter-options label { color:#dce8f3; }
html[data-theme="dark"] .load-route-filter-options label:hover { background:#1b344a; }
html[data-theme="dark"] .load-cost-modal .modal-title,html[data-theme="dark"] .load-cost-row-vehicle strong,html[data-theme="dark"] .load-cost-editor-card > div:first-child strong { color:#e4edf6; }
@media(max-width:1399.98px){.load-overview-header{grid-template-columns:minmax(16rem,1fr) auto}.load-overview-stats{grid-template-columns:repeat(3,minmax(7.5rem,1fr))}.load-filter-card form{grid-template-columns:repeat(3,minmax(0,1fr)) auto}.load-workspace{grid-template-columns:minmax(0,1fr) 21rem}.load-route-pill.is-primary{display:none}.load-route-auto-fill{display:none}.load-route-support{overflow-x:auto}.load-provider-suggestion{margin:0}}
@media(max-width:1099.98px){.load-overview-header{grid-template-columns:1fr}.load-overview-stats{width:100%}.load-workspace{grid-template-columns:1fr}.load-create-panel{position:static}.load-filter-card form{grid-template-columns:repeat(2,minmax(0,1fr))}.load-filter-actions{align-self:end}.load-route-pill.is-wait{display:none}}
@media(max-width:767.98px){.load-page-header{align-items:stretch;flex-direction:column}.load-page-actions>*{flex:1}.load-overview-header{padding:.75rem}.load-overview-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:.3rem}.load-overview-stats>a,.load-overview-stat{grid-template-columns:1fr;grid-template-rows:auto auto auto;justify-items:center;padding:.45rem .3rem;text-align:center}.load-overview-stats>a>span,.load-overview-stat>span{grid-row:auto}.load-overview-stats small{white-space:normal}.load-filter-card form,.load-list-filters{grid-template-columns:1fr}.load-filter-actions>*{flex:1}.load-route-filter-panel{width:100%}.load-global-selection{flex-wrap:wrap}.load-global-selection-count{flex:1}.load-global-selection-cost{margin-left:0}.load-global-selection .btn-primary{flex:1}.load-route-card>summary{grid-template-columns:.7rem 2.15rem minmax(7rem,1fr) max-content}.load-route-card>summary .load-route-pill.is-green,.load-route-card>summary .load-route-pill.is-wait,.load-route-card>summary .load-route-pill.is-primary{display:none}.load-route-content{display:block}.load-ready-table{min-width:48rem}.load-batch-bar{align-items:stretch;flex-direction:column}.load-batch-help{margin-left:0}.load-route-summary{display:block}.load-provider-suggestion{margin-bottom:.35rem}.load-current-table{min-width:52rem}.load-cost-modal .modal-dialog{margin:.5rem}.load-cost-row{grid-template-columns:2rem minmax(0,1fr)}.load-cost-row-source,.load-cost-row-field{grid-column:2}.load-cost-modal-footer{grid-template-columns:1fr 1fr}.load-cost-modal-footer>div{grid-column:1/-1}.load-cost-modal-footer .btn{width:100%}}
@media(max-width:449.98px){.load-overview-copy p{display:none}.load-overview-stats strong{font-size:.9rem}.load-overview-stats small{font-size:.5rem}.load-form-row{grid-template-columns:1fr}}
@media(max-width:767.98px){.load-section-heading{align-items:flex-start}.load-section-heading-actions{align-items:flex-end;flex-direction:column-reverse;gap:.3rem}.load-section-heading-actions>span{font-size:.61rem}.load-route-profile-fields{grid-template-columns:1fr 1fr}.load-route-profile-times{display:none}.load-route-profile-fields label:last-child{grid-column:1/-1}.load-route-profile-route-list{grid-template-columns:1fr}.load-route-profile-route-list>label:nth-child(odd){border-right:0}}

body { min-height: 100vh; background: var(--ce-surface); color: #203047; }
.money-input { text-align: right; font-variant-numeric: tabular-nums; }
.bg-primary { background-color: var(--ce-primary) !important; }
.btn-primary {
    --bs-btn-bg: var(--ce-primary);
    --bs-btn-border-color: var(--ce-primary);
    --bs-btn-hover-bg: var(--ce-primary-dark);
    --bs-btn-hover-border-color: var(--ce-primary-dark);
}
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: linear-gradient(145deg, #0d2f58, #123f74 58%, #1c5b96); }
.mfa-auth-card { max-width: 560px; }
.mfa-qr-wrap { display: flex; justify-content: center; }
.mfa-qr { min-width: 220px; min-height: 220px; padding: 10px; background: #fff; border: 1px solid #d7e1ee; border-radius: 12px; }
.mfa-qr img, .mfa-qr canvas { display: block; margin: 0 auto; }
.mfa-recovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.mfa-recovery-grid code { display: block; padding: .65rem; color: #0d315a; background: #eef4fb; border: 1px solid #d7e1ee; border-radius: .5rem; text-align: center; overflow-wrap: anywhere; }
.auth-card { width: min(100%, 440px); border: 0; border-top: 5px solid var(--ce-accent); box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, .25); }
.app-shell { min-height: 100vh; }
.app-sidebar, .app-offcanvas { width: var(--ce-sidebar-width) !important; background: linear-gradient(180deg, var(--ce-primary-dark), var(--ce-primary)); color: #fff; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1030; flex-direction: column; box-shadow: .5rem 0 2rem rgba(8, 35, 67, .12); }
.sidebar-brand { min-height: 74px; display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; color: #fff; text-decoration: none; }
.sidebar-brand:hover { color: #fff; }
.sidebar-brand strong, .sidebar-brand small { display: block; line-height: 1.05; }
.sidebar-brand small { margin-top: .2rem; color: rgba(255,255,255,.64); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: var(--ce-accent); color: #132f4d; font-weight: 800; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .25rem .75rem 1rem; }
.sidebar-group + .sidebar-group { margin-top: 1rem; }
.sidebar-heading { padding: .55rem .75rem; color: rgba(255,255,255,.46); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.sidebar-link { display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: .55rem; color: rgba(255,255,255,.82); text-decoration: none; font-size: .9rem; transition: background .15s ease, color .15s ease; }
.sidebar-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.sidebar-link.active { background: rgba(242,169,0,.18); color: #fff; box-shadow: inset 3px 0 var(--ce-accent); }
.sidebar-icon { width: 1.25rem; color: var(--ce-accent); text-align: center; }
.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.1); }
.app-content { min-height: 100vh; margin-left: var(--ce-sidebar-width); }
.app-topbar { position: sticky; top: 0; z-index: 1020; min-height: 66px; display: flex; align-items: center; padding: .75rem 1.5rem; background: rgba(255,255,255,.96); border-bottom: 1px solid #e4eaf2; backdrop-filter: blur(10px); }
.topbar-back-link { display:inline-flex; flex:0 0 auto; width:2.25rem; height:2.25rem; align-items:center; justify-content:center; color:#174d83; background:#f7fbff; border:1px solid #cfdeec; border-radius:50%; text-decoration:none; transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .15s ease; }
.topbar-back-link svg { width:1.15rem; height:1.15rem; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.topbar-back-link:hover,.topbar-back-link:focus-visible { color:#fff; background:#174d83; border-color:#174d83; transform:translateX(-1px); }
.topbar-title { font-weight: 700; color: #173b64; }
.topbar-role { font-size: .72rem; }
.app-main { padding: 1.5rem; }
.metric-card, .content-card { border: 0; box-shadow: 0 .3rem 1.25rem rgba(24, 55, 91, .08); }
.page-title { color: #173b64; font-weight: 700; }
.dashboard-brand-card .dashboard-brand-logo {
    width: 56px !important;
    height: 56px !important;
}
.dashboard-brand-card h1 { font-size: 1.65rem; }
.table thead th { color: #607086; font-size: .73rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.table-actions { white-space: nowrap; }
.empty-state { padding: 3rem 1rem; color: #718096; text-align: center; }
.status-dot { width: .65rem; height: .65rem; display: inline-block; border-radius: 50%; }
.form-label { font-weight: 600; color: #42546a; }
.required::after { content: ' *'; color: #c0392b; }
.search-bar { max-width: 420px; }
.detail-label { color: #6b7b90; font-size: .75rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.detail-value { color: #173b64; font-size: 1.08rem; font-weight: 700; }
.shipment-details dt { color: #6b7b90; font-weight: 600; }
.shipment-details dd { margin-bottom: .8rem; }
.shipment-notes { min-height: 3rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.shipment-page-actions { position: relative; }
.shipment-more-actions { position: relative; }
.shipment-more-actions > summary { list-style: none; cursor: pointer; }
.shipment-more-actions > summary::-webkit-details-marker { display: none; }
.shipment-more-actions > summary::after { content: '▾'; margin-left: .45rem; font-size: .72em; }
.shipment-more-actions[open] > summary::after { content: '▴'; }
.shipment-more-actions-menu {
    position: absolute;
    z-index: 1040;
    top: calc(100% + .45rem);
    right: 0;
    width: max-content;
    min-width: 14rem;
    padding: .4rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .65rem;
    box-shadow: 0 .75rem 2rem rgba(18, 63, 116, .16);
}
.shipment-more-actions-menu form { margin: 0; }
.shipment-more-actions-item {
    display: block;
    width: 100%;
    padding: .6rem .75rem;
    color: var(--bs-body-color);
    background: transparent;
    border: 0;
    border-radius: .45rem;
    text-align: left;
    text-decoration: none;
}
.shipment-more-actions-item:hover { color: var(--ce-primary); background: var(--bs-tertiary-bg); }
.shipment-detail-heading .page-title { font-size: 1.65rem; letter-spacing: -.025em; }
.shipment-detail-heading .btn { min-height: 2.45rem; display: inline-flex; align-items: center; justify-content: center; font-weight: 650; }
.shipment-summary--hero { overflow: hidden; border: 1px solid #dde7f0; border-radius: .8rem; box-shadow: 0 .28rem .95rem rgba(24, 55, 91, .07); }
.shipment-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shipment-summary-item { display: flex; min-width: 0; align-items: center; gap: .68rem; padding: .82rem .9rem; }
.shipment-summary-item + .shipment-summary-item { border-left: 1px solid var(--bs-border-color); }
.shipment-summary-item > div { min-width: 0; flex: 1 1 0; }
.shipment-summary-item:nth-child(4n + 1) { border-left: 0; }
.shipment-summary-item:nth-child(n + 5) { border-top: 1px solid var(--bs-border-color); }
.shipment-summary-icon,
.shipment-overview-icon,
.shipment-document-icon {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 2.2rem;
    place-items: center;
    color: #0a63af;
    background: #edf5fc;
    border-radius: .65rem;
}
.shipment-summary-icon svg,
.shipment-overview-icon svg,
.shipment-document-icon svg { width: 1.22rem; height: 1.22rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.shipment-summary-vehicle-thumb { display: grid; width: 5.6rem; height: 3.5rem; flex: 0 0 5.6rem; place-items: center; overflow: hidden; color: #0a63af; background: #edf5fc; border: 1px solid #dce6f1; border-radius: .65rem; }
.shipment-summary-vehicle-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.shipment-summary-vehicle-thumb img.is-facing-left { transform: scaleX(-1); }
.shipment-summary-vehicle-thumb > span { display: grid; width: 100%; height: 100%; place-items: center; }
.shipment-summary-vehicle-thumb svg { width: 1.65rem; height: 1.65rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.shipment-summary-vehicle-thumb.is-image-ready { background: transparent; border-color: transparent; }
.shipment-summary-vehicle-thumb + div .detail-value { overflow: visible; white-space: normal; line-height: 1.35; }
.shipment-summary--hero .shipment-summary-item { align-items: center; min-height: 5.2rem; }
.shipment-summary--hero .shipment-summary-item:focus-within { background: #f4f8fe; }
html[data-theme="dark"] .shipment-summary--hero .shipment-summary-item:focus-within { background: #142b43; }
.shipment-summary-item .detail-label { margin-bottom: .12rem; font-size: .64rem; letter-spacing: .045em; }
.shipment-summary-item .detail-value { overflow: hidden; font-size: .82rem; line-height: 1.22; text-overflow: ellipsis; }
.shipment-summary-inline-date { width: 100%; min-width: 0; color: #173b60; border-color: #bcd3e8; font-size: .78rem; }
.shipment-summary-item .detail-label { display: block; }
.shipment-summary-item .system-date-field,
.shipment-summary-item .system-date-field__date { min-width: 0; width: 100%; }
.shipment-summary-money { flex-wrap: nowrap; }
.shipment-summary-money .form-control { min-width: 0; }
.shipment-summary-meta .badge { white-space: normal; }
.shipment-summary-meta { overflow: hidden; margin-top: .12rem; color: var(--bs-secondary-color); font-size: .68rem; line-height: 1.2; text-overflow: ellipsis; }
.shipment-summary-link { margin-top: .1rem; font-size: .68rem; line-height: 1.2; white-space: nowrap; }
.shipment-summary-item.is-pending { background: rgba(242, 169, 0, .075); }
.shipment-summary-item.is-pending .detail-value { color: #855b00; }
.shipment-commercial-editor { overflow: hidden; border-color: #d8e5f1; border-radius: .8rem; box-shadow: 0 .24rem .85rem rgba(24,55,91,.055); }
.shipment-commercial-editor > .card-header { padding: .7rem .9rem; background: linear-gradient(90deg,#f8fbff,#fff) !important; border-bottom-color: #dce7f1; }
.shipment-commercial-editor > .card-body { padding: .75rem .9rem; }
.shipment-date-form { display: block; }
.shipment-date-timeline { display: grid; grid-template-columns: repeat(auto-fit,minmax(13.5rem,1fr)); gap: .75rem; align-items: stretch; }
.shipment-date-control { min-width: 0; padding: .62rem .7rem; border: 1px solid #dbe5ef; border-radius: .65rem; }
.shipment-date-control.is-readonly { background: #f6f8fb; }
.shipment-date-control.is-awaiting { background: #fbfcfd; border-style: dashed; }
.shipment-date-control.is-failed { background: #fff7f7; border-color: #f2b8c0; }
.shipment-date-control.is-editable { background: #f8fbff; border-color: #c9dff3; box-shadow: inset 3px 0 #1474ca; }
.shipment-date-label { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 0 0 .38rem; color: #244362; font-size: .75rem; font-weight: 750; }
.shipment-date-label small { flex: none; padding: .15rem .38rem; color: #637990; background: #e9eef4; border-radius: 999px; font-size: .56rem; font-weight: 750; letter-spacing: .015em; }
.shipment-date-state.is-completed { color: #087a45; background: #dcf5e8; }
.shipment-date-state.is-progress { color: #0868c8; background: #e4f1ff; }
.shipment-date-state.is-pending { color: #8a6100; background: #fff0c7; }
.shipment-date-state.is-failed { color: #b42338; background: #ffe4e8; }
.shipment-date-control.is-editable .shipment-date-label small { color: #0868c8; background: #e4f1ff; }
.shipment-date-readonly { display: flex; min-height: 2.45rem; align-items: center; gap: .55rem; color: #173b60; background: #fff; border: 1px solid #d8e1ea; border-radius: .5rem; padding: .38rem .65rem; }
.shipment-date-readonly strong { font-size: .83rem; font-variant-numeric: tabular-nums; }
.shipment-date-control-icon { display: inline-grid; width: 1.55rem; height: 1.55rem; place-items: center; color: #47708f; background: #edf3f8; border-radius: .4rem; }
.shipment-date-control-icon svg { width: .92rem; height: .92rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shipment-date-control .form-control { min-height: 2.45rem; color: #173b60; background-color: #fff; border-color: #bcd3e8; border-radius: .5rem; font-size: .83rem; }
.shipment-date-control .form-control:focus { border-color: #3986c8; box-shadow: 0 0 0 .18rem rgba(20,116,202,.12); }
.shipment-date-control > p { margin: .32rem 0 0; color: #718398; font-size: .62rem; line-height: 1.25; }
.shipment-date-actions { display: flex; align-items: center; justify-content: flex-end; margin-top: .75rem; }
.shipment-commercial-save { display: inline-flex; min-width: 10.4rem; min-height: 2.65rem; align-items: center; justify-content: center; gap: .45rem; padding-inline: .85rem; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.shipment-commercial-save svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.shipment-operation-actions { scroll-margin-top: 4.5rem; border-top: .24rem solid var(--ce-primary); }
.shipment-operation-panel,
.shipment-movement-entry,
.shipment-audit-details { border: 1px solid var(--bs-border-color); border-radius: .65rem; background: var(--bs-body-bg); }
.shipment-operation-panel > summary,
.shipment-movement-entry > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 2.75rem .85rem 1rem;
    list-style: none;
    cursor: pointer;
}
.shipment-operation-panel > summary::-webkit-details-marker,
.shipment-movement-entry > summary::-webkit-details-marker { display: none; }
.shipment-operation-panel > summary::after,
.shipment-movement-entry > summary::after { content: '+'; color: var(--ce-primary); font-size: 1.35rem; font-weight: 700; line-height: 1; }
.shipment-operation-panel[open] > summary::after,
.shipment-movement-entry[open] > summary::after { content: '−'; }
.shipment-operation-panel > summary small,
.shipment-movement-entry > summary small { display: block; margin-top: .15rem; color: var(--bs-secondary-color); font-weight: 400; }
.shipment-operation-panel-body,
.shipment-movement-entry-body { padding: 1rem; border-top: 1px solid var(--bs-border-color); }
.shipment-audit-details { padding: .75rem .9rem; background: var(--bs-tertiary-bg); }
.shipment-audit-details > summary { cursor: pointer; color: var(--ce-primary); font-weight: 600; }
.shipment-flow-card { border-color: #d9e5ef; }
.shipment-workspace { scroll-margin-top: 4.5rem; }
.shipment-section-tabs {
    display: flex;
    gap: 1rem;
    padding: 0 .85rem;
    overflow-x: auto;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem .75rem 0 0;
    box-shadow: 0 .2rem .8rem rgba(24, 55, 91, .05);
    scrollbar-width: thin;
}
.shipment-section-tab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .45rem;
    min-height: 2.7rem;
    margin-bottom: -1px;
    padding: .62rem .15rem .52rem;
    color: var(--bs-secondary-color);
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-weight: 650;
}
.shipment-section-tab:hover { color: var(--ce-primary); background: transparent; border-bottom-color: #aacbe7; }
.shipment-section-tab.active { color: var(--ce-primary); background: transparent; border-bottom-color: var(--ce-primary); }
.shipment-section-tab.active .badge { color: var(--ce-primary) !important; background: #edf5fc !important; }
.shipment-tab-content { min-height: 10rem; padding: .85rem; background: rgba(255,255,255,.7); border: 1px solid var(--bs-border-color); border-top: 0; border-radius: 0 0 .75rem .75rem; box-shadow: 0 .3rem 1.1rem rgba(24,55,91,.06); }
.shipment-overview-card { border: 1px solid #e1e9f1; box-shadow: none; }
.shipment-overview-card > .card-header,
.shipment-notes-card > .card-header,
.shipment-tab-panel > .card-header { display: flex; min-height: 3.2rem; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem .8rem; border-bottom-color: #e8eef4; }
.shipment-overview-title { display: flex; min-width: 0; align-items: center; gap: .6rem; }
.shipment-overview-title h2 { margin: 0; color: #173b64; font-size: .86rem; font-weight: 750; }
.shipment-overview-title p { margin: .08rem 0 0; color: var(--bs-secondary-color); font-size: .72rem; }
.shipment-overview-icon { width: 1.95rem; height: 1.95rem; flex-basis: 1.95rem; border-radius: .55rem; }
.shipment-overview-icon svg { width: 1.08rem; height: 1.08rem; }
.shipment-overview-card > .card-body { padding: .8rem; }
.shipment-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem 1rem; }
.shipment-overview-grid > div { min-width: 0; }
.shipment-overview-grid__wide { grid-column: 1 / -1; }
.shipment-client-address-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem; }
.shipment-client-address-grid > div { min-width: 0; }
@media (min-width: 768px) {
    .shipment-overview-grid.shipment-client-overview-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}
.shipment-overview-grid dt,
.shipment-financial-grid dt { margin-bottom: .12rem; color: #7a8ba0; font-size: .64rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.shipment-overview-grid dd,
.shipment-financial-grid dd { margin: 0; color: #173b64; font-size: .79rem; font-weight: 700; line-height: 1.3; }
.shipment-overview-edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem .75rem; }
.shipment-overview-edit-grid > label { display: block; min-width: 0; margin: 0; }
.shipment-overview-edit-grid > label > span { display: block; margin-bottom: .2rem; color: #6f8297; font-size: .64rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.shipment-overview-edit-grid__wide { grid-column: 1 / -1; }
.shipment-overview-edit-form .form-control,
.shipment-overview-edit-form .form-select,
.shipment-overview-edit-form .input-group-text { min-height: 2.12rem; font-size: .76rem; }
.shipment-overview-edit-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--bs-border-color); }
.shipment-overview-edit-actions .btn-primary { min-width: 8.5rem; }
.shipment-overview-edit-toggle { display: inline-grid; width: 2rem; height: 2rem; flex: 0 0 2rem; place-items: center; padding: 0; border-radius: .5rem; }
.shipment-overview-edit-toggle svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.shipment-overview-edit-toggle.is-editing { color: #fff; background: var(--bs-primary); border-color: var(--bs-primary); }
.shipment-financial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem 1rem; }
.shipment-financial-grid > div { min-width: 0; }
.shipment-financial-grid dd.is-pending { color: #a86900; }
.shipment-financial-grid dd.is-expense { color: #bf263d; }
.shipment-financial-grid__total,
.shipment-financial-grid__result { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .62rem; border-top: 1px solid var(--bs-border-color); }
.shipment-financial-grid__result { padding: .62rem .7rem; color: #087548; background: #ebf8f1; border: 0; border-radius: .55rem; }
.shipment-financial-grid__result dt,
.shipment-financial-grid__result dd { margin: 0; color: inherit; }
.shipment-financial-grid__result dd { display: flex; align-items: flex-end; flex-direction: column; text-align: right; }
.shipment-financial-grid__result dd strong { color: inherit; font-size: .82rem; }
.shipment-financial-grid__result dd small { margin-top: .08rem; color: inherit; font-size: .62rem; font-weight: 650; opacity: .85; }
.shipment-financial-grid__result.is-negative { color: #b4233b; background: #fff0f2; }
.shipment-document-card,
.shipment-notes-card { border: 1px solid #e1e9f1; box-shadow: none; }
.shipment-document-icon { width: 2.55rem; height: 2.55rem; flex-basis: 2.55rem; }
.shipment-tab-panel { overflow: hidden; border: 1px solid #e1e9f1; border-radius: .68rem; box-shadow: none; }
.shipment-tab-panel > .card-header { background: linear-gradient(180deg,#fff,#fbfdff) !important; }
.shipment-tab-panel > .card-header > .badge { padding: .32rem .58rem; color: #41617d !important; background: #f2f6fa !important; border-color: #dce6ef !important; font-size: .66rem; }
.shipment-tab-panel .table > :not(caption) > * > * { padding: .72rem .8rem; }
.shipment-tab-panel .table thead th { color: #58718a; background: #f5f8fb; border-bottom-color: #dfe8f0; }
.shipment-photo-panel > .card-body { padding: .85rem; }
.shipment-photo-upload { background: linear-gradient(145deg,#f8fbfe,#f2f7fb) !important; border-color: #cddce9 !important; border-style: dashed !important; }
.shipment-photo-filters { padding: .68rem .75rem; background: #f8fafc; border: 1px solid #e2eaf1; border-radius: .58rem; }
.shipment-photo-filters .form-label { margin-bottom: .2rem; color: #5d7389; }
.shipment-filter-main { padding: .85rem 1rem; }
.shipment-list-context { color: var(--bs-secondary-color); font-size: .82rem; }
.shipment-list-context > summary { width: fit-content; color: var(--ce-primary); cursor: pointer; font-weight: 600; }
.shipment-list-context > p { max-width: 90ch; margin: .45rem 0 0; }
.shipment-filter-card .form-label { margin-bottom: .3rem; font-size: .78rem; }
.shipment-filter-actions { white-space: nowrap; }
.shipment-advanced-filters { border-top: 1px solid var(--bs-border-color); }
.shipment-advanced-filters > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.9rem;
    padding: .65rem 1rem;
    color: var(--ce-primary);
    background: var(--bs-tertiary-bg);
    list-style: none;
    cursor: pointer;
}
.shipment-advanced-filters > summary::-webkit-details-marker { display: none; }
.shipment-advanced-filters > summary > span:first-child { display: flex; align-items: baseline; gap: .65rem; }
.shipment-advanced-filters > summary small { color: var(--bs-secondary-color); font-weight: 400; }
.shipment-advanced-filters > summary::after { content: '＋'; order: 3; font-weight: 700; }
.shipment-advanced-filters[open] > summary::after { content: '−'; }
.shipment-advanced-filters > summary .badge { order: 2; margin-left: auto; }
.shipment-advanced-filters-body { padding: 1rem; background: rgba(var(--bs-tertiary-bg-rgb), .45); }
.shipment-queue-table table { min-width: 1180px; }
.shipment-queue-action { min-width: 220px; vertical-align: top; }
.shipment-row-leaving { opacity: 0; transform: translateX(.75rem); transition: opacity .55s ease, transform .55s ease; }

@media (min-width: 1200px) {
    .border-xl-start { border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color); padding-left: 1.5rem; }
}

@media (max-width: 991.98px) {
    .app-content { margin-left: 0; }
    .app-main { padding: 1rem; }
    .app-topbar { padding: .65rem 1rem; }
    .shipment-date-timeline { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1399.98px) {
    .shipment-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .shipment-summary-item:nth-child(5) { border-left: 0; }
    .shipment-summary-item:nth-child(n+5) { border-top: 1px solid var(--bs-border-color); }
}
@media (max-width: 575.98px) {
    .app-main { padding: .85rem; }
    .page-actions { width: 100%; }
    .page-actions .btn { flex: 1; }
    .shipment-more-actions { display: flex; flex: 1; }
    .shipment-more-actions > summary { width: 100%; }
    .shipment-more-actions-menu { left: 0; right: auto; min-width: 100%; }
    .shipment-summary-grid { grid-template-columns: minmax(0, 1fr); }
    .shipment-summary-item { padding: .72rem .8rem; border-left: 0 !important; border-top: 1px solid var(--bs-border-color) !important; }
    .shipment-summary-item:first-child { border-top: 0 !important; }
    .shipment-commercial-editor > .card-body { padding: .65rem; }
    .shipment-date-timeline { grid-template-columns: minmax(0,1fr); }
    .shipment-commercial-save { width: 100%; }
    .shipment-section-tab { min-height: 2.35rem; padding: .48rem .7rem; }
    .shipment-section-tabs { gap: .2rem; padding: 0 .35rem; }
    .shipment-tab-content { padding: .65rem; }
    .shipment-overview-grid,
    .shipment-overview-edit-grid,
    .shipment-financial-grid { grid-template-columns: minmax(0, 1fr); }
    .shipment-overview-grid__wide,
    .shipment-overview-edit-grid__wide,
    .shipment-financial-grid__total,
    .shipment-financial-grid__result { grid-column: auto; }
    .shipment-filter-main { padding: .75rem; }
    .shipment-filter-actions .btn { flex: 1; }
    .shipment-advanced-filters > summary { padding: .65rem .75rem; }
    .shipment-advanced-filters > summary > span:first-child { display: block; }
    .shipment-advanced-filters > summary small { display: block; margin-top: .1rem; }
    .shipment-advanced-filters-body { padding: .85rem .75rem; }
    .table-responsive { font-size: .88rem; }
    .detail-value { font-size: 1rem; }
    .shipment-details dt, .shipment-details dd { margin-bottom: .35rem; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .shipment-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shipment-summary-item:nth-child(odd) { border-left: 0; }
    .shipment-summary-item:nth-child(n+3) { border-top: 1px solid var(--bs-border-color); }
}

@media (min-width: 768px) and (max-width: 1399.98px) {
    .shipment-summary-item:nth-child(5) { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .shipment-row-leaving { transition: none; }
}

/* Vaga detail and integrated manifest */
.load-detail-page {
    --load-blue: #0c3d73;
    --load-blue-2: #0b5ca8;
    --load-ink: #102f55;
    --load-muted: #67809b;
    --load-line: #d8e3ee;
    --load-soft: #f4f8fc;
    display: grid;
    gap: .75rem;
    color: var(--load-ink);
}
.load-detail-page > .report-tabs { margin-bottom: 0 !important; }
.load-detail-breadcrumb { display: flex; align-items: center; gap: .55rem; padding: 0 .15rem; font-size: .78rem; color: var(--load-muted); }
.load-detail-breadcrumb a { color: #27679f; text-decoration: none; }
.load-detail-hero,
.load-detail-progress,
.load-finance-grid,
.load-detail-main,
.load-romaneio-card,
.load-timeline-card,
.load-quick-card {
    background: #fff;
    border: 1px solid var(--load-line);
    border-radius: .85rem;
    box-shadow: 0 .32rem 1.15rem rgba(14, 50, 86, .075);
}
.load-detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: 6.5rem minmax(15rem, 1.2fr) minmax(33rem, 2.7fr);
    gap: 1.1rem;
    align-items: center;
    min-height: 9rem;
    padding: 1.05rem 1.2rem;
    overflow: hidden;
}
.load-detail-hero::after {
    position: absolute;
    inset: 0 0 auto auto;
    width: 30rem;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(19, 101, 169, .035));
    content: '';
    pointer-events: none;
}
.load-detail-truck {
    display: grid;
    width: 6.5rem;
    height: 6.5rem;
    place-items: center;
    color: #dcecff;
    background: linear-gradient(145deg, #6285a7, #193f67);
    border-radius: .72rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}
.load-detail-truck svg { width: 3.9rem; height: 3.9rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.load-detail-identity { min-width: 0; }
.load-detail-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.load-detail-title-line h1 { margin: 0; color: #0c3565; font-size: 1.8rem; font-weight: 850; letter-spacing: -.035em; }
.load-detail-identity > strong { display: block; margin-top: .32rem; font-size: 1.05rem; text-transform: uppercase; }
.load-detail-route { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .45rem; color: #335d87; font-weight: 700; }
.load-detail-route-text { display: inline-flex; align-items: center; gap: .55rem; }
.load-detail-route-text i { color: #1771bc; font-size: 1.15rem; font-style: normal; }
.load-route-edit-button { padding: .15rem .45rem; color: #155f9e; background: #f4f9fe; border: 1px solid #bdd5ea; border-radius: .38rem; font-size: .64rem; font-weight: 750; }
.load-route-edit-button:hover { color: #fff; background: #155f9e; border-color: #155f9e; }
.load-route-edit-modal .modal-content { overflow: hidden; border: 0; border-radius: .85rem; box-shadow: 0 1.4rem 4rem rgba(12,38,67,.28); }
.load-route-edit-modal .modal-header { align-items: flex-start; background: linear-gradient(135deg,#f8fbff,#eef6ff); }
.load-route-edit-modal .modal-title { color: #12385f; font-size: 1.05rem; font-weight: 800; }
.load-route-edit-modal .modal-header p { margin: .18rem 0 0; color: #6a8198; font-size: .7rem; }
.load-route-edit-fields { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: end; gap: .7rem; }
.load-route-edit-fields label,.load-route-edit-reason { color: #284c70; font-size: .7rem; font-weight: 750; }
.load-route-edit-fields label > span,.load-route-edit-reason > span { display: block; margin-bottom: .3rem; }
.load-route-edit-fields .load-route-edit-field-heading { display: flex; min-height: 1.65rem; align-items: center; justify-content: space-between; gap: .5rem; }
.load-route-edit-fields .load-route-edit-field-heading > span { margin: 0; }
.load-route-city-actions { display: flex; justify-content: flex-end; }
.load-route-city-actions .btn { padding: .08rem 0; border: 0; font-size: .65rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.load-route-city-actions .btn:hover { background: transparent; color: #0a58ca; text-decoration: underline; }
.load-route-edit-days { display: block; max-width: 15rem; margin-top: .9rem; color: #284c70; font-size: .7rem; font-weight: 750; }
.load-route-edit-days > span:first-child { display: block; margin-bottom: .3rem; }
.load-route-edit-days sup { color: #d42b42; }
.load-route-edit-days small { display: block; margin-top: .3rem; color: #71879c; font-weight: 400; }
.load-route-edit-days .input-group-text { color: #526d86; font-size: .7rem; }
.load-route-edit-fields sup,.load-route-edit-reason sup { color: #d42b42; }
.load-route-edit-arrow { padding-bottom: .6rem; color: #1771bc; font-size: 1.2rem; font-weight: 800; }
.load-route-edit-reason { display: block; margin-top: .9rem; }
.load-route-edit-reason small { display: block; margin-top: .3rem; color: #71879c; font-weight: 400; }
.load-route-edit-warning { margin-top: .9rem; padding: .65rem .75rem; color: #775600; background: #fff7df; border: 1px solid #f0d995; border-radius: .45rem; font-size: .68rem; }
html[data-theme="dark"] .load-route-edit-modal .modal-header { background: linear-gradient(135deg,#13283a,#102231); border-color: #2d4357; }
html[data-theme="dark"] .load-route-edit-modal .modal-title { color: #e4edf6; }
html[data-theme="dark"] .load-route-edit-fields label,html[data-theme="dark"] .load-route-edit-reason { color: #dce8f3; }
html[data-theme="dark"] .load-route-edit-days { color: #dce8f3; }
html[data-theme="dark"] .load-route-edit-warning { color: #f3d98a; background: #302a18; border-color: #66572c; }
@media(max-width:575.98px){.load-route-edit-fields{grid-template-columns:1fr}.load-route-edit-arrow{display:none}}
.load-status-pill { display: inline-flex; align-items: center; min-height: 1.75rem; padding: .25rem .7rem; color: #0a663b; background: #dff5e9; border: 1px solid #bce7cf; border-radius: 999px; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.load-status-planejada { color: #765600; background: #fff1c9; border-color: #f1dc9f; }
.load-status-em_carregamento { color: #0b5b96; background: #dceeff; border-color: #badcf6; }
.load-status-cancelada { color: #a51e31; background: #ffe3e8; border-color: #f7c2cb; }
.load-detail-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); min-width: 0; margin: 0; }
.load-detail-facts > div { position: relative; min-width: 0; min-height: 4.7rem; padding: .3rem .65rem .3rem 2.75rem; border-left: 1px solid #dce6f0; }
.load-detail-facts > .load-registration-fact { position: relative; display: block; min-width: 0; min-height: 4.7rem; margin: 0; padding: .3rem .65rem .3rem 2.75rem; border-left: 1px solid #dce6f0; }
.load-fact-icon { position: absolute; top: .45rem; left: .65rem; display: grid; width: 1.65rem; height: 1.65rem; place-items: center; color: #0c5a9c; background: #eaf4ff; border-radius: 50%; font-size: .78rem; font-style: normal; }
.load-fact-icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.load-detail-facts small,
.load-detail-facts strong,
.load-detail-facts em { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.load-detail-facts small { color: var(--load-muted); font-size: .65rem; }
.load-detail-facts strong { margin-top: .2rem; color: #103b6d; font-size: .88rem; }
.load-detail-facts em { margin-top: .18rem; color: #7990a7; font-size: .62rem; font-style: normal; }
.load-registration-input { display: block; width: 100%; min-width: 0; height: 1.7rem; margin-top: .08rem; padding: .14rem .35rem; color: #103b6d; background: #fff; border: 1px solid #b8cce0; border-radius: .3rem; font-size: .78rem; font-weight: 800; }
.load-registration-input:focus { outline: 2px solid rgba(23,113,188,.2); border-color: #1771bc; }
.load-registration-contact .load-registration-input { padding-right: 2rem; }
.load-registration-save { position: absolute; top: 1.48rem; right: .7rem; display: grid; width: 1.45rem; height: 1.45rem; padding: 0; place-items: center; color: #fff; background: #147a4b; border: 0; border-radius: .3rem; font-size: .75rem; font-weight: 900; }
.load-registration-save:hover,.load-registration-save:focus-visible { background: #0d623b; }
.load-registration-quick-form.is-saving .load-registration-save { opacity: .55; pointer-events: none; }
.load-registration-quick-form.has-error [data-load-registration-status] { color: #bd2639; }
.load-registration-quick-form.is-saved [data-load-registration-status] { color: #147a4b; }
.load-capacity-fact.is-editable { padding-right: 2.25rem; }
.load-capacity-edit-button { position: absolute; top: .25rem; right: .4rem; display: grid; width: 1.65rem; height: 1.65rem; padding: 0; place-items: center; color: #0b67b2; background: #f4f9fe; border: 1px solid #bdd5ea; border-radius: .42rem; }
.load-capacity-edit-button:hover { color: #fff; background: #0b67b2; border-color: #0b67b2; }
.load-capacity-edit-button svg { width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.load-capacity-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; margin-bottom: .9rem; }
.load-capacity-summary span { padding: .55rem; text-align: center; background: #f5f9fd; border: 1px solid #dbe7f2; border-radius: .5rem; }
.load-capacity-summary small,.load-capacity-summary strong { display: block; }
.load-capacity-summary small { color: #70869b; font-size: .6rem; }
.load-capacity-summary strong { margin-top: .15rem; color: #123d6b; font-size: .95rem; }
.load-capacity-edit-field { display: block; color: #284c70; font-size: .7rem; font-weight: 750; }
.load-capacity-edit-field > span:first-child { display: block; margin-bottom: .3rem; }
.load-capacity-edit-field sup { color: #d42b42; }
.load-capacity-edit-field small { display: block; margin-top: .3rem; color: #71879c; font-weight: 400; line-height: 1.35; }
html[data-theme="dark"] .load-capacity-summary span { background: #102437; border-color: #2d4357; }
html[data-theme="dark"] .load-capacity-summary strong,html[data-theme="dark"] .load-capacity-edit-field { color: #dce8f3; }
.load-detail-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: .45rem;
    padding-top: .7rem;
    border-top: 1px solid #e1e9f1;
}
.load-detail-hero-actions form { display: inline; }

.load-detail-progress { display: grid; grid-template-columns: repeat(4, 1fr); padding: .75rem 1.2rem; }
.load-progress-step { position: relative; display: flex; gap: .65rem; align-items: flex-start; min-width: 0; padding-right: .65rem; }
.load-progress-step::after { position: absolute; top: .88rem; right: .2rem; left: 2.2rem; height: 2px; background: #ccd9e6; content: ''; }
.load-progress-step:last-child::after { display: none; }
.load-progress-step > span { position: relative; z-index: 1; display: grid; width: 1.8rem; height: 1.8rem; flex: 0 0 1.8rem; place-items: center; color: #7088a0; background: #e2eaf2; border: 3px solid #eff4f8; border-radius: 50%; font-size: .63rem; font-weight: 850; }
.load-progress-step.is-complete > span { color: #fff; background: #168754; border-color: #dff4e9; }
.load-progress-step.is-complete::after { background: #35a975; }
.load-progress-step.is-active > span { color: #fff; background: #1479d1; border-color: #cde7ff; box-shadow: 0 0 0 2px #79b9f2; }
.load-progress-step div { position: relative; z-index: 1; min-width: 0; padding-right: .35rem; background: #fff; }
.load-progress-step strong,
.load-progress-step small,
.load-progress-step em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.load-progress-step strong { margin-top: .05rem; font-size: .76rem; }
.load-progress-step small { color: #3971a6; font-size: .66rem; }
.load-progress-step em { color: #8496a8; font-size: .59rem; font-style: normal; }

.load-finance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .72rem; padding: .85rem; }
.load-finance-grid > h2 { grid-column: 1 / -1; margin: 0; font-size: .92rem; }
.load-finance-card { display: flex; gap: .75rem; align-items: center; min-width: 0; min-height: 5.4rem; padding: .75rem .85rem; background: linear-gradient(135deg, #fff, #f9fbfd); border: 1px solid #d9e4ee; border-radius: .62rem; }
.load-finance-card > span { display: grid; width: 2.65rem; height: 2.65rem; flex: 0 0 2.65rem; place-items: center; color: #9e6300; background: #ffefc5; border-radius: 50%; font-weight: 850; }
.load-finance-card div { min-width: 0; }
.load-finance-card small,
.load-finance-card strong,
.load-finance-card em { display: block; }
.load-finance-card small { color: #56728f; font-size: .67rem; }
.load-finance-card strong { margin: .12rem 0; color: #143f70; font-size: 1.22rem; }
.load-finance-card em { color: #788da3; font-size: .62rem; font-style: normal; }
.load-finance-card.is-result { background: linear-gradient(135deg, #f7fff9, #effbf4); border-color: #bee6cd; }
.load-finance-card.is-result > span,
.load-finance-card.is-margin > span { color: #078144; background: #d9f5e4; }
.load-finance-card.is-result strong,
.load-finance-card.is-margin strong { color: #078144; }
.load-finance-card.is-loss { background: #fff7f8; border-color: #f0c6cd; }
.load-finance-card.is-loss > span { color: #bd253b; background: #ffe1e6; }
.load-finance-card.is-loss strong { color: #bd253b; }

.load-detail-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(24rem, 1fr); gap: .75rem; align-items: start; }
.load-detail-main { min-width: 0; overflow: hidden; }
.load-detail-tabs { display: flex; min-height: 3.2rem; overflow-x: auto; padding: 0 .65rem; background: #f7fafe; border-bottom: 1px solid var(--load-line); }
.load-detail-tabs button { position: relative; min-width: 8.5rem; flex: 1 0 auto; padding: .85rem .7rem; color: #52708e; background: transparent; border: 0; font-size: .73rem; font-weight: 750; }
.load-detail-tabs button::after { position: absolute; right: .2rem; bottom: 0; left: .2rem; height: 3px; background: transparent; border-radius: 3px 3px 0 0; content: ''; }
.load-detail-tabs button.active { color: #0b4d88; }
.load-detail-tabs button.active::after { background: #1475c9; }
.load-detail-tabs button span { display: inline-grid; min-width: 1.4rem; height: 1.4rem; margin-left: .25rem; place-items: center; color: #315b82; background: #e3edf7; border-radius: 999px; font-size: .62rem; }
.load-detail-panel { scroll-margin-top: 5rem; }
.load-detail-panel[hidden] { display: none !important; }
.load-panel-header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 4.4rem; padding: .8rem 1rem; border-bottom: 1px solid var(--load-line); }
.load-panel-header h2 { margin: 0; font-size: .95rem; }
.load-panel-header p { margin: .16rem 0 0; color: var(--load-muted); font-size: .65rem; }
.load-panel-tools { display: flex; align-items: center; gap: .5rem; }
.load-table-search { display: flex; width: min(21rem, 31vw); align-items: center; gap: .35rem; min-height: 2.25rem; padding: 0 .65rem; border: 1px solid #cddae7; border-radius: .45rem; }
.load-table-search span { color: #7991a8; }
.load-table-search input { width: 100%; color: #244b73; background: transparent; border: 0; outline: 0; font-size: .7rem; }
.load-vehicle-table { overflow-x: hidden; }
.load-vehicle-table table { width: 100%; min-width: 0; table-layout: fixed; font-size: .66rem; }
.load-vehicle-table th { padding: .6rem .7rem; color: #52708d; background: #f4f8fc; border-color: #dce6ef; font-size: .58rem; text-transform: uppercase; }
.load-vehicle-table td { min-width: 0; padding: .62rem .7rem; border-color: #e2eaf2; overflow-wrap: anywhere; white-space: normal; }
.load-current-vehicle-table th:nth-child(1) { width: 4%; }
.load-current-vehicle-table th:nth-child(2) { width: 16%; }
.load-current-vehicle-table th:nth-child(3) { width: 9%; }
.load-current-vehicle-table th:nth-child(4) { width: 14%; }
.load-current-vehicle-table th:nth-child(5) { width: 17%; }
.load-current-vehicle-table th:nth-child(6) { width: 13%; }
.load-current-vehicle-table th:nth-child(7) { width: 27%; }
.load-vehicle-table td:nth-child(2) small { display: block; margin-top: .15rem; color: #7b91a7; }
.load-vehicle-table tfoot td { color: #163f6d; background: #f8fbfe; font-weight: 750; }
.load-row-status { display: inline-flex; max-width: 100%; align-items: center; gap: .3rem; color: #436888; line-height: 1.25; white-space: normal; }
.load-row-status::before { width: .55rem; height: .55rem; background: #55a8ee; border-radius: 50%; content: ''; }
.load-row-status.is-collecting { color:#9a5b08; font-weight:700; }
.load-row-status.is-collecting::before { background:#f3a712; box-shadow:0 0 0 .18rem rgba(243,167,18,.16); }
.load-row-status.is-ready { color:#15734b; }
.load-row-status.is-ready::before { background:#21a66b; }
.load-transfer-menu { flex:0 0 auto; }
.load-transfer-menu .dropdown-menu { width:min(22rem,calc(100vw - 2rem)); padding:.7rem; border-color:#d5e1ec; box-shadow:0 .65rem 1.8rem rgba(18,49,80,.18); }
.load-transfer-form { display:grid; min-width:0; gap:.5rem; }
.load-transfer-form .form-label { margin:0; color:#244b73; font-size:.68rem; font-weight:750; }
.load-transfer-form .form-select { min-width:0; max-width:none; }
.load-transfer-unavailable { cursor:not-allowed; opacity:.65; }
.load-pre-manifest-notice { border-left:.3rem solid #2684ff; }
.load-vehicle-state-summary { display:flex; flex-wrap:wrap; gap:.25rem; margin-top:.28rem; }
.load-vehicle-state-summary em { display:inline-flex; padding:.12rem .38rem; border-radius:999px; font-size:.58rem; font-style:normal; font-weight:750; }
.load-vehicle-state-summary .is-collecting { color:#845207; background:#fff0ca; }
.load-vehicle-state-summary .is-ready { color:#126644; background:#dff6eb; }
.load-row-actions { display: flex; align-items: center; gap: .35rem; }
.load-row-actions form { margin: 0; }
.load-row-more-actions { flex: 0 0 auto; }
.load-row-more-button { display: grid; width: 2rem; height: 2rem; padding: 0 0 .15rem; place-items: center; color: #245b8d; background: #fff; border: 1px solid #c6d8e8; border-radius: .45rem; font-size: 1.25rem; font-weight: 850; line-height: 1; }
.load-row-more-button:hover,.load-row-more-button[aria-expanded="true"] { color: #fff; background: #155f9e; border-color: #155f9e; }
.load-row-more-actions .dropdown-menu { min-width: 12rem; padding: .35rem; border-color: #d5e1ec; box-shadow: 0 .65rem 1.8rem rgba(18,49,80,.18); }
.load-row-more-actions .dropdown-item { padding: .5rem .65rem; border-radius: .35rem; font-size: .72rem; font-weight: 700; }
.load-row-more-actions .load-undo-boarding:hover { color: #fff !important; background: #dc3545; }
.load-stage-actions { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .55rem; }
.load-stage-actions .load-next-stage { flex: 1 1 auto; }
.load-stage-actions .load-row-actions { min-width: 0; flex: 0 0 auto; flex-wrap: nowrap; white-space: nowrap; }
.load-complete-stage { white-space: normal; }
.load-trip-total { display: block; margin-top: .15rem; color: #70879e; font-weight: 600; }
.load-unloaded-vehicles { margin: 1rem; overflow: hidden; border: 1px solid #d8e3ed; border-radius: .8rem; background: #fff; }
.load-unloaded-vehicles > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; background: #f7fafe; border-bottom: 1px solid #dfe8f1; }
.load-unloaded-vehicles > header h3 { margin: 0; color: #173f6b; font-size: .9rem; }
.load-unloaded-vehicles > header p { margin: .18rem 0 0; color: #71879c; font-size: .68rem; }
.load-unloaded-vehicles > header > span { display: grid; min-width: 1.7rem; height: 1.7rem; place-items: center; color: #335d82; background: #e3edf7; border-radius: 999px; font-size: .68rem; font-weight: 800; }
.load-unloaded-empty { padding: 1.5rem 1rem; color: #71879c; text-align: center; font-size: .76rem; }
.load-unloaded-location { display: inline-flex; padding: .24rem .48rem; color: #08603d; background: #e2f6ec; border: 1px solid #bde7d2; border-radius: 999px; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.load-unloaded-vehicles .load-vehicle-table { overflow-x: visible; }
.load-unloaded-vehicles .load-vehicle-table table { width: 100%; min-width: 0; table-layout: fixed; }
.load-unloaded-vehicles .load-vehicle-table th,
.load-unloaded-vehicles .load-vehicle-table td { padding-right: .45rem; padding-left: .45rem; overflow-wrap: anywhere; }
.load-unloaded-vehicles .load-vehicle-table th:nth-child(1) { width: 3%; }
.load-unloaded-vehicles .load-vehicle-table th:nth-child(2) { width: 14%; }
.load-unloaded-vehicles .load-vehicle-table th:nth-child(3) { width: 8%; }
.load-unloaded-vehicles .load-vehicle-table th:nth-child(4) { width: 13%; }
.load-unloaded-vehicles .load-vehicle-table th:nth-child(5) { width: 10%; }
.load-unloaded-vehicles .load-vehicle-table th:nth-child(6) { width: 13%; }
.load-unloaded-vehicles .load-vehicle-table th:nth-child(7) { width: 11%; }
.load-unloaded-vehicles .load-vehicle-table th:nth-child(8) { width: 14%; }
.load-unloaded-vehicles .load-vehicle-table th:nth-child(9) { width: 14%; }
.load-unloaded-vehicles .load-vehicle-table th:nth-child(6),
.load-unloaded-vehicles .load-vehicle-table td:nth-child(6) { text-align: center; }
.load-unloaded-vehicles .load-unloaded-location { max-width: 100%; justify-content: center; text-align: center; white-space: nowrap; }
.load-unloaded-vehicles .load-next-stage-label { max-width: 100%; white-space: normal; line-height: 1.2; }
.load-unloaded-stage { display: flex; min-width: 10rem; flex-direction: column; align-items: flex-start; gap: .22rem; }
.load-unloaded-vehicles .load-unloaded-stage { min-width: 0; }
.load-unloaded-stage small { color: #6c8399; font-size: .6rem; line-height: 1.25; }
.load-unloaded-stage-action { min-height: 2.15rem; padding-right: .65rem; padding-left: .65rem; white-space: nowrap; }
.load-unloaded-actions { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: .4rem; }
.load-unloaded-actions form { display: flex; margin: 0; }
.load-undo-stage-completion { width: 100%; min-height: 2.15rem; padding-right: .65rem; padding-left: .65rem; white-space: nowrap; }
.load-next-stage { display: flex; min-width: 9.5rem; flex-direction: column; align-items: flex-start; gap: .22rem; }
.load-next-stage-label { display: inline-flex; max-width: 100%; align-items: center; gap: .3rem; padding: .24rem .48rem; color: #174f82; background: #e6f2fc; border: 1px solid #c9e1f5; border-radius: 999px; font-size: .62rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; white-space: normal; }
.load-next-stage-label::before { content: '→'; font-size: .68rem; }
.load-next-stage-entrega { color: #6b4b00; background: #fff4ce; border-color: #f0dc9d; }
.load-next-stage-coleta { color: #08603d; background: #e2f6ec; border-color: #bde7d2; }
.load-next-stage small { color: #6c8399; font-size: .6rem; line-height: 1.25; }
.load-next-stage-empty { color: #58738d; font-size: .65rem; font-weight: 750; }
.load-cost-cell { min-width: 10rem; }
.load-cost-editor { width: min(100%, 8.9rem); }
.load-cost-control { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; min-height: 2.35rem; overflow: hidden; background: #fff; border: 1px solid #cbd9e7; border-radius: .55rem; box-shadow: 0 1px 2px rgba(18, 55, 88, .04); transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.load-cost-control:focus-within { background: #fbfdff; border-color: #2985d3; box-shadow: 0 0 0 .18rem rgba(20, 119, 201, .12); }
.load-cost-currency { align-self: stretch; display: grid; place-items: center; padding: 0 .52rem; color: #57738e; background: #f2f6fa; border-right: 1px solid #d7e2ec; font-size: .65rem; font-weight: 750; }
.load-cost-field { width: 100%; min-width: 0; padding: .45rem .2rem .45rem .55rem; color: #123f6c; background: transparent; border: 0; outline: 0; text-align: right; font: inherit; font-size: .76rem; font-weight: 800; }
.load-cost-edit-icon { padding: 0 .48rem 0 .3rem; color: #8ba1b5; font-size: .72rem; transition: color .16s ease; }
.load-cost-control:focus-within .load-cost-edit-icon { color: #1477c9; }
.load-cost-feedback { display: block; margin-top: .18rem; color: #8498aa; font-size: .55rem; line-height: 1.2; }
.load-cost-feedback:empty { display: none; }
.load-cost-feedback[data-state="pending"] { color: #a56b00; font-weight: 700; }
.load-cost-feedback[data-state="saving"] { color: #1477c9; font-weight: 700; }
.load-cost-feedback[data-state="saved"] { color: #138653; font-weight: 700; }
.load-cost-feedback[data-state="error"] { color: #c72f42; font-weight: 700; }
.load-cost-editor.is-saving .load-cost-control { background: #f4f8fb; opacity: .75; }
.load-layout-header { background: linear-gradient(90deg, #fff, #f7fbff); }
.load-layout-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; color: #647c93; font-size: .62rem; }
.load-layout-legend span { display: inline-flex; align-items: center; gap: .28rem; }
.load-layout-legend i { width: .65rem; height: .65rem; background: #fff; border: 1px dashed #9eb7cd; border-radius: .18rem; }
.load-layout-legend i.is-filled { background: #ddecfb; border-style: solid; border-color: #72aee1; }
.load-layout-legend strong { padding: .24rem .5rem; color: #145f9e; background: #eaf5ff; border-radius: 999px; }
.load-simulator { min-width: 0; overflow-x: hidden; padding: .9rem; background: #f7fafe; }
.load-carrier-scene { display: grid; grid-template-columns: 8.5rem minmax(55rem, 1fr); align-items: end; min-width: 65rem; overflow: hidden; padding: 1.2rem 1rem 1.6rem; background: linear-gradient(180deg, #fafdff 0%, #f4f8fb 72%, #dce7ef 72%, #eef3f7 76%, #fafcfd 76%); border: 1px solid #d7e3ee; border-radius: .8rem; box-shadow: inset 0 -1px #c6d5e1; }
.load-carrier-cab { position: relative; height: 14rem; z-index: 2; }
.load-cab-body { position: absolute; right: .2rem; bottom: 1.65rem; width: 7.5rem; height: 9rem; background: linear-gradient(135deg, #f7fafc, #dbe5ed 72%); border: .18rem solid #7890a4; border-radius: 2.8rem .7rem .6rem .6rem; box-shadow: inset -.65rem 0 rgba(101, 126, 148, .12), 0 .3rem .55rem rgba(29, 60, 87, .13); }
.load-cab-body::after { position: absolute; right: -1.15rem; bottom: 0; width: 2rem; height: 3.2rem; background: #d6e1e9; border: .16rem solid #7890a4; border-left: 0; content: ''; }
.load-cab-window { position: absolute; z-index: 2; top: 4.35rem; left: 1.8rem; width: 3.9rem; height: 3.1rem; background: linear-gradient(135deg, #bdd7e9, #6f93aa); border: .14rem solid #5f788c; border-radius: 1.8rem .35rem .25rem .35rem; transform: skewX(-7deg); }
.load-carrier-cab > i { position: absolute; z-index: 3; bottom: .65rem; width: 2.6rem; height: 2.6rem; background: #243847; border: .36rem solid #617383; border-radius: 50%; box-shadow: inset 0 0 0 .35rem #d5dee5; }
.load-carrier-cab > i:nth-of-type(1) { left: 1.1rem; }
.load-carrier-cab > i:nth-of-type(2) { right: -.55rem; }
.load-carrier-body { position: relative; padding-bottom: 2.8rem; }
.load-carrier-deck { position: relative; z-index: 2; padding: 1.45rem .35rem .45rem; border-bottom: .28rem solid #70889a; }
.load-carrier-deck.is-upper { margin-left: 1rem; }
.load-deck-label { position: absolute; top: .1rem; left: .45rem; color: #244e73; font-size: .66rem; text-transform: uppercase; letter-spacing: .035em; }
.load-deck-label small { color: #8296a8; font-size: .54rem; font-weight: 600; text-transform: none; }
.load-slot-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .38rem; }
.load-carrier-deck.is-upper .load-slot-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.load-simulator-slot { position: relative; display: grid; min-height: 7.6rem; place-items: center; padding: 1.35rem .3rem .38rem; background: rgba(255, 255, 255, .7); border: 1px dashed #a9bfd2; border-radius: .55rem; outline: 0; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease; }
.load-simulator-slot:not(.is-locked) { cursor: pointer; }
.load-simulator-slot.is-occupied { background: rgba(239, 247, 254, .9); border-style: solid; border-color: #8bbbe3; }
.load-simulator-slot:hover:not(.is-locked),.load-simulator-slot:focus-visible,.load-simulator-slot.is-drop-target { background: #e9f5ff; border-color: #1781d2; box-shadow: 0 0 0 .18rem rgba(23, 129, 210, .12); transform: translateY(-1px); }
.load-simulator-slot.is-locked { color: #9aaaba; background: repeating-linear-gradient(135deg, #eef2f5, #eef2f5 .45rem, #f7f9fb .45rem, #f7f9fb .9rem); border-color: #ccd7df; cursor: not-allowed; }
.load-slot-number { position: absolute; top: .35rem; left: .4rem; z-index: 4; display: grid; width: 1.3rem; height: 1.3rem; place-items: center; color: #fff; background: #123f6c; border-radius: 50%; font-size: .58rem; font-weight: 850; }
.load-slot-empty { color: #91a4b5; font-size: .56rem; font-weight: 650; }
.load-simulator-slot.is-occupied > .load-slot-empty { display: none; }
.load-simulator-vehicle { --vehicle:#3b82c4; position: relative; width: 100%; min-width: 0; padding: .2rem .18rem .28rem; color: #193f61; background: transparent; border: 0; cursor: grab; user-select: none; }
.load-simulator-vehicle:active { cursor: grabbing; }
.load-simulator-vehicle.is-dragging { opacity: .4; }
.load-simulator-vehicle.is-selected { background: #fff6d8; border-radius: .4rem; box-shadow: 0 0 0 .16rem rgba(229, 159, 0, .22); }
.load-simulator-vehicle.tone-1 { --vehicle:#d94f45; }.load-simulator-vehicle.tone-2 { --vehicle:#267fc0; }.load-simulator-vehicle.tone-3 { --vehicle:#454f5a; }.load-simulator-vehicle.tone-4 { --vehicle:#b8c1c8; }.load-simulator-vehicle.tone-5 { --vehicle:#ba3f34; }.load-simulator-vehicle.tone-6 { --vehicle:#69828f; }
.load-drag-handle { position: absolute; top: -.96rem; right: .1rem; color: #7292ad; font-size: .78rem; }
.load-vehicle-silhouette { position: relative; width: min(100%, 7.2rem); height: 3.25rem; margin: 0 auto .1rem; filter: drop-shadow(0 .18rem .12rem rgba(24, 49, 70, .18)); }
.load-vehicle-body { position: absolute; right: 4%; bottom: .55rem; left: 4%; height: 1.28rem; background: var(--vehicle); border: .1rem solid color-mix(in srgb, var(--vehicle), #172c3d 35%); border-radius: .58rem .85rem .35rem .35rem; }
.load-vehicle-roof { position: absolute; z-index: -1; top: .65rem; left: 24%; width: 53%; height: 1.35rem; background: var(--vehicle); border: .1rem solid color-mix(in srgb, var(--vehicle), #172c3d 35%); border-bottom: 0; border-radius: 1.2rem 1.25rem 0 0; transform: skewX(-8deg); }
.load-vehicle-roof::after { position: absolute; inset: .22rem .35rem .08rem; background: #c8e0ef; border-radius: .75rem .8rem .08rem .08rem; content: ''; opacity: .85; }
.load-vehicle-silhouette i { position: absolute; bottom: .18rem; z-index: 2; width: .92rem; height: .92rem; background: #263746; border: .16rem solid #71818e; border-radius: 50%; box-shadow: inset 0 0 0 .12rem #dce3e8; }
.load-vehicle-silhouette .wheel-one { left: 17%; }.load-vehicle-silhouette .wheel-two { right: 17%; }
.load-vehicle-silhouette.is-suv .load-vehicle-roof { top: .35rem; left: 19%; width: 60%; height: 1.65rem; }
.load-vehicle-silhouette.is-pickup .load-vehicle-roof { left: 14%; width: 38%; }.load-vehicle-silhouette.is-pickup .load-vehicle-body { right: 3%; }.load-vehicle-silhouette.is-pickup .wheel-one { left: 14%; }.load-vehicle-silhouette.is-pickup .wheel-two { right: 13%; }
.load-vehicle-silhouette.is-sedan .load-vehicle-roof { top: .7rem; left: 25%; width: 48%; height: 1.25rem; border-radius: 1.7rem 1.7rem 0 0; }
.load-vehicle-silhouette.is-van .load-vehicle-roof { top: .05rem; left: 9%; width: 72%; height: 2rem; border-radius: .55rem 1rem 0 0; transform: none; }
.load-vehicle-silhouette.is-moto { width: 4.2rem; }.load-vehicle-silhouette.is-moto .load-vehicle-body { right: 23%; left: 23%; height: .55rem; border-radius: 50%; }.load-vehicle-silhouette.is-moto .load-vehicle-roof { top: 1.15rem; left: 40%; width: 35%; height: .35rem; border: 0; border-radius: 50%; transform: rotate(18deg); }.load-vehicle-silhouette.is-moto .load-vehicle-roof::after { display: none; }.load-vehicle-silhouette.is-moto .wheel-one { left: 12%; }.load-vehicle-silhouette.is-moto .wheel-two { right: 12%; }
.load-simulator-vehicle-name { min-width: 0; text-align: center; }
.load-simulator-vehicle-name strong,.load-simulator-vehicle-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.load-simulator-vehicle-name strong { font-size: .57rem; }.load-simulator-vehicle-name small { margin-top: .08rem; color: #698399; font-size: .51rem; }
.load-carrier-chassis { position: absolute; right: .3rem; bottom: 1.65rem; left: -1.2rem; height: .48rem; background: #526d81; border-radius: .2rem; }
.load-carrier-chassis span { position: absolute; right: 0; bottom: -.7rem; left: 0; height: .3rem; background: repeating-linear-gradient(90deg, #e6eef4 0 1.1rem, #d8483f 1.1rem 2rem); }
.load-carrier-chassis i { position: absolute; top: .05rem; width: 2.5rem; height: 2.5rem; background: #263847; border: .35rem solid #617383; border-radius: 50%; box-shadow: inset 0 0 0 .34rem #d5dee5; }
.load-carrier-chassis i:nth-of-type(1) { right: 8rem; }.load-carrier-chassis i:nth-of-type(2) { right: 4.8rem; }.load-carrier-chassis i:nth-of-type(3) { right: 1.6rem; }
.load-layout-feedback { min-height: 1.2rem; padding: .55rem .1rem 0; color: #6b8298; font-size: .62rem; text-align: right; }
.load-layout-actions { display: flex; justify-content: flex-end; gap: .55rem; padding-top: .55rem; }
.load-layout-actions .btn { min-width: 10.5rem; font-size: .7rem; font-weight: 750; }

/* Simulador fotográfico da cegonha */
.load-detail-page.is-layout-view .load-detail-layout { grid-template-columns: minmax(0, 1fr); }
.load-detail-page.is-layout-view .load-detail-aside { display: none; }
.load-detail-page.is-layout-view .load-detail-main { overflow: visible; }
.load-simulator-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; gap: .8rem; align-items: stretch; }
.load-carrier-stage { position: relative; min-width: 0; overflow: hidden; padding: .5rem .65rem .6rem; background: #fff; border: 1px solid #d8e4ee; border-radius: .75rem; box-shadow: 0 .18rem .5rem rgba(25, 64, 98, .05); }
.load-carrier-scene { position: relative; display: block; width: 100%; min-width: 0; aspect-ratio: 2172 / 724; overflow: visible; padding: 0; background: #fff; border: 0; border-radius: 0; box-shadow: none; }
.load-carrier-photo { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.load-carrier-foreground { position: absolute; z-index: 8; inset: 0; overflow: hidden; pointer-events: none; user-select: none; }
.load-carrier-foreground img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.load-carrier-foreground .is-upper-deck { clip-path: polygon(2% 20%, 87% 13%, 87% 31%, 2% 38%); }
.load-carrier-foreground .is-left-ramp { clip-path: polygon(16% 62%, 40% 40%, 40% 47%, 16% 70%); }
.load-carrier-foreground .is-right-ramp { clip-path: polygon(37% 66%, 68% 38%, 68% 47%, 37% 75%); }
.load-carrier-foreground .is-rear-post { clip-path: inset(14% 93.5% 24% 2%); }
.load-carrier-foreground .is-left-post { clip-path: inset(14% 80% 24% 15%); }
.load-carrier-foreground .is-middle-post { clip-path: inset(13% 56% 23% 35%); }
.load-carrier-foreground .is-front-post { clip-path: inset(12% 30% 22% 62%); }
.load-carrier-cab-tint { display: none; }
.load-carrier-deck { position: absolute; z-index: 3; inset: 0; margin: 0 !important; padding: 0; border: 0; pointer-events: none; }
.load-carrier-deck.is-upper,.load-carrier-deck.is-lower { inset: 0; height: auto; }
.load-carrier-deck .load-deck-label { top: 3.5%; left: 3.3%; padding: .18rem .42rem; color: #123f6c; background: rgba(255, 255, 255, .94); border-radius: .32rem; font-size: .6rem; letter-spacing: .025em; box-shadow: 0 1px 4px rgba(21, 57, 88, .08); }
.load-carrier-deck.is-lower .load-deck-label { display: none; }
.load-carrier-deck .load-deck-label small { color: #71899f; font-size: .5rem; }
.load-carrier-deck .load-slot-row { position: absolute; inset: 0; display: block; height: auto; }
.load-carrier-scene .load-simulator-slot { --vehicle-angle: 0deg; --vehicle-scale: 1; --vehicle-shift-x: 0%; --vehicle-shift-y: 0%; position: absolute; z-index: 4; display: grid; min-height: 0; place-items: center; padding: .15rem; background: transparent; border: 1px dashed transparent; border-radius: .45rem; outline: 0; pointer-events: auto; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
/* As bases de cada caixa acompanham exatamente os trilhos da fotografia. */
.load-carrier-scene [data-position="1"] { --vehicle-angle: -1deg; top: 6.8%; left: 3%; width: 14.5%; height: 23.5%; }
.load-carrier-scene [data-position="2"] { --vehicle-angle: -1deg; top: 6.1%; left: 19.6%; width: 14.5%; height: 23.5%; }
.load-carrier-scene [data-position="3"] { --vehicle-angle: -1.5deg; top: 4.3%; left: 36.2%; width: 14.5%; height: 23.5%; }
.load-carrier-scene [data-position="4"] { --vehicle-angle: -1.5deg; top: 2.9%; left: 52.8%; width: 14.5%; height: 23.5%; }
.load-carrier-scene [data-position="5"] { --vehicle-angle: -1deg; top: 1.5%; left: 69.4%; width: 15.3%; height: 23.5%; }
.load-carrier-scene [data-position="6"] { z-index: 6; top: 36.5%; left: 3.3%; width: 14.2%; height: 22.5%; }
.load-carrier-scene [data-position="7"] { --vehicle-angle: -15deg; --vehicle-scale: .62; --vehicle-shift-y: -9%; z-index: 7; top: 33%; left: 16.4%; width: 25%; height: 29%; }
.load-carrier-scene [data-position="8"] { --vehicle-scale: .68; z-index: 5; top: 62%; left: 20.8%; width: 22%; height: 10%; }
.load-carrier-scene [data-position="9"] { --vehicle-angle: -11deg; --vehicle-scale: .62; --vehicle-shift-y: -15%; z-index: 7; top: 33%; left: 44.6%; width: 25%; height: 29%; }
.load-carrier-scene [data-position="10"] { --vehicle-scale: .68; z-index: 5; top: 62%; left: 46.3%; width: 22%; height: 10%; }
.load-carrier-scene [data-position="11"] { z-index: 6; top: 35.5%; left: 68.2%; width: 13.8%; height: 22.5%; }
.load-carrier-scene .load-simulator-slot:not(.is-occupied):not(.is-locked) { background: rgba(241, 248, 254, .18); border-color: rgba(71, 135, 188, .22); }
.load-carrier-scene .load-simulator-slot.is-occupied { z-index: 6; background: transparent; border-color: transparent; }
.load-carrier-scene [data-position="7"].is-occupied,
.load-carrier-scene [data-position="9"].is-occupied { z-index: 7; }
.load-carrier-scene [data-position="8"].is-occupied,
.load-carrier-scene [data-position="10"].is-occupied { z-index: 5; }
.load-carrier-scene .load-simulator-slot.is-drag-source { z-index: 3; }
.load-carrier-scene .load-simulator-slot:hover:not(.is-locked),
.load-carrier-scene .load-simulator-slot:focus-visible,
.load-carrier-scene .load-simulator-slot.is-drop-target { z-index: 11; background: rgba(223, 242, 255, .58); border-color: #1781d2; box-shadow: 0 0 0 .16rem rgba(23, 129, 210,.12); transform: translateY(-2px); }
.load-carrier-scene .load-simulator-slot.is-locked { background: rgba(238, 242, 245, .5); border-color: rgba(170, 185, 198, .55); }
.load-carrier-scene .load-slot-number { display: none; }
.load-position-markers { position: absolute; z-index: 10; inset: 0; pointer-events: none; }
.load-position-markers span { position: absolute; display: grid; width: 1.25rem; height: 1.25rem; place-items: center; color: #fff; background: #0c4b82; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 .1rem .28rem rgba(14, 52, 83, .2); font-size: .55rem; font-weight: 850; }
.load-position-markers [data-load-position-marker="1"] { top: 6.8%; left: 3%; }
.load-position-markers [data-load-position-marker="2"] { top: 6.1%; left: 19.6%; }
.load-position-markers [data-load-position-marker="3"] { top: 4.3%; left: 36.2%; }
.load-position-markers [data-load-position-marker="4"] { top: 2.9%; left: 52.8%; }
.load-position-markers [data-load-position-marker="5"] { top: 1.5%; left: 69.4%; }
.load-position-markers [data-load-position-marker="6"] { top: 36.5%; left: 3.3%; }
.load-position-markers [data-load-position-marker="7"] { top: 39%; left: 21%; }
.load-position-markers [data-load-position-marker="8"] { top: 61%; left: 22%; }
.load-position-markers [data-load-position-marker="9"] { top: 39%; left: 49.2%; }
.load-position-markers [data-load-position-marker="10"] { top: 61%; left: 47.5%; }
.load-position-markers [data-load-position-marker="11"] { top: 35.5%; left: 68.2%; }
.load-carrier-scene .load-slot-empty { align-self: center; padding: .22rem .35rem; color: #6e8da8; background: rgba(255, 255, 255, .82); border-radius: 999px; font-size: .5rem; }
.load-carrier-scene .load-simulator-vehicle { position: relative; z-index: 2; display: grid; width: 100%; height: 100%; align-content: end; padding: 0; color: #123f6c; background: transparent; border: 0; cursor: grab; touch-action: none; user-select: none; filter: drop-shadow(0 .18rem .14rem rgba(20, 44, 65, .2)); }
.load-carrier-scene .load-vehicle-photo { --vehicle-kind-scale: 1; --vehicle-direction-scale: 1; position: absolute; right: 0; bottom: 0; left: 0; transform: translate(var(--vehicle-shift-x), var(--vehicle-shift-y)) rotate(var(--vehicle-angle)) scale(var(--vehicle-scale)) scale(var(--vehicle-kind-scale)) scaleX(var(--vehicle-direction-scale)); }
.load-carrier-scene .load-vehicle-photo.is-facing-left { --vehicle-direction-scale: -1; }
.load-carrier-scene .load-vehicle-photo.is-van { --vehicle-kind-scale: .82; }
/* As vagas 8 e 10 ficam sob as rampas e têm menos altura livre. Veículos
   altos/largos precisam de uma redução adicional para não atravessar a
   estrutura da cegonha; hatches e sedãs mantêm a escala original. */
.load-carrier-scene [data-position="8"] .load-vehicle-photo.is-van,
.load-carrier-scene [data-position="10"] .load-vehicle-photo.is-van { --vehicle-kind-scale: .72; }
.load-carrier-scene [data-position="8"] .load-vehicle-photo.is-pickup,
.load-carrier-scene [data-position="10"] .load-vehicle-photo.is-pickup,
.load-carrier-scene [data-position="8"] .load-vehicle-photo.is-suv,
.load-carrier-scene [data-position="10"] .load-vehicle-photo.is-suv { --vehicle-kind-scale: .86; }
.load-carrier-scene .load-simulator-vehicle.is-selected { background: rgba(255, 244, 197, .42); border-radius: .45rem; box-shadow: 0 0 0 .16rem rgba(229, 159, 0, .3); }
.load-carrier-scene .load-drag-handle { top: .05rem; right: .08rem; z-index: 8; color: #2d6e9f; opacity: 0; text-shadow: 0 1px #fff; transition: opacity .15s ease; }
.load-carrier-scene .load-simulator-slot:hover .load-drag-handle,.load-carrier-scene .load-simulator-vehicle:focus-within .load-drag-handle { opacity: 1; }
.load-vehicle-photo { position: relative; display: block; width: 100%; max-width: none; aspect-ratio: 1.55; margin: 0 0 -.08rem; overflow: hidden; background-image: url('../img/load-simulator/vehicle-sprites-realistic.png'); background-repeat: no-repeat; background-size: 300% 200%; transform-origin: center bottom; pointer-events: none; }
.load-vehicle-photo.is-hatch { background-position: 0 0; }
.load-vehicle-photo.is-sedan { background-position: 50% 0; }
.load-vehicle-photo.is-suv { background-position: 100% 0; }
.load-vehicle-photo.is-pickup { background-position: 0 100%; }
.load-vehicle-photo.is-van { background-position: 50% 100%; }
.load-vehicle-photo.is-moto { width: 82%; margin-right: auto; margin-left: auto; background-position: 100% 100%; }
.load-vehicle-photo.has-library-image { aspect-ratio: var(--vehicle-image-aspect, 2.35); background-position: center bottom; background-size: contain; opacity: 0; transform-origin: center bottom; transition: opacity .12s ease; }
.load-vehicle-photo.has-library-image.is-image-ready { opacity: 1; }
.load-carrier-scene .load-simulator-vehicle-name { position: absolute; right: 4%; bottom: -1rem; left: 4%; z-index: 9; padding: .12rem .18rem; background: rgba(255, 255, 255, .96); border: 1px solid rgba(205, 220, 233, .9); border-radius: .28rem; box-shadow: 0 .08rem .2rem rgba(20, 52, 81, .08); line-height: 1.1; opacity: 0; pointer-events: none; transform: translateY(-.15rem); transition: opacity .15s ease, transform .15s ease; }
.load-carrier-scene .load-simulator-slot:hover .load-simulator-vehicle-name,.load-carrier-scene .load-simulator-vehicle.is-selected .load-simulator-vehicle-name { opacity: 1; transform: translateY(0); }
.load-carrier-scene .load-simulator-vehicle-name strong { color: #143f68; font-size: .48rem; }
.load-carrier-scene .load-simulator-vehicle-name small { margin-top: .04rem; color: #738a9f; font-size: .43rem; }
.load-carrier-caption { display: block; margin-top: -.2rem; margin-left: 3%; width: 77%; color: #123f6c; font-size: .58rem; font-weight: 800; text-align: center; }
.load-layout-actions--stage { position: absolute; right: 1.35rem; bottom: 1.05rem; z-index: 12; padding: 0; }
.load-layout-summary { display: flex; min-height: 100%; flex-direction: column; padding: .85rem; background: #fff; border: 1px solid #d8e4ee; border-radius: .75rem; box-shadow: 0 .18rem .5rem rgba(25, 64, 98, .05); }
.load-layout-summary h3 { margin: 0 0 .8rem; color: #0c477f; font-size: .88rem; }
.load-layout-ring { position: relative; display: grid; width: 7.5rem; height: 7.5rem; margin: .1rem auto .9rem; place-content: center; text-align: center; border-radius: 50%; background: conic-gradient(#1280df 0 var(--load-progress), #e4eef7 var(--load-progress) 360deg); }
.load-layout-ring::before { position: absolute; inset: .58rem; background: #fff; border-radius: 50%; content: ''; }
.load-layout-ring strong,.load-layout-ring span { position: relative; z-index: 1; display: block; }
.load-layout-ring strong { color: #0a4f8e; font-size: 1.1rem; }
.load-layout-ring span { margin-top: .08rem; color: #6f879d; font-size: .52rem; }
.load-layout-summary dl { display: grid; gap: .1rem; margin: 0; }
.load-layout-summary dl > div { display: flex; justify-content: space-between; gap: .5rem; padding: .48rem .15rem; border-bottom: 1px solid #edf2f6; }
.load-layout-summary dt { color: #617b93; font-size: .62rem; font-weight: 600; }
.load-layout-summary dd { margin: 0; color: #123f6c; font-size: .68rem; font-weight: 800; }
.load-layout-valid { display: flex; gap: .5rem; align-items: flex-start; margin-top: auto; padding: .65rem; color: #0b6f3e; background: #e8f8ee; border-radius: .55rem; }
.load-layout-valid > span { display: grid; width: 1.35rem; height: 1.35rem; flex: 0 0 1.35rem; place-items: center; color: #fff; background: #19a65e; border-radius: 50%; font-size: .68rem; font-weight: 900; }
.load-layout-valid strong,.load-layout-valid small { display: block; }
.load-layout-valid strong { font-size: .68rem; }.load-layout-valid small { margin-top: .12rem; color: #4c7d63; font-size: .54rem; line-height: 1.3; }
.load-layout-roster { margin-top: .8rem; overflow: hidden; background: #fff; border: 1px solid #d8e4ee; border-radius: .75rem; }
.load-layout-roster > header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem .8rem; border-bottom: 1px solid #dfe8f0; }
.load-layout-roster h3 { margin: 0; color: #123f6c; font-size: .8rem; }.load-layout-roster p { margin: .08rem 0 0; color: #71879b; font-size: .56rem; }
.load-layout-roster > header > strong { padding: .25rem .5rem; color: #145f9e; background: #eaf5ff; border-radius: 999px; font-size: .58rem; }
.load-layout-roster table { min-width: 48rem; font-size: .62rem; }
.load-layout-roster th { padding: .45rem .65rem; color: #57738d; background: #f4f8fc; border-color: #e0e8f0; font-size: .54rem; text-transform: uppercase; }
.load-layout-roster td { padding: .46rem .65rem; border-color: #e6edf3; }
.load-roster-position { display: inline-flex; padding: .2rem .42rem; color: #155888; background: #e8f4fd; border-radius: 999px; font-weight: 750; white-space: nowrap; }
.load-layout-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .65rem; }
.load-layout-footer .load-layout-feedback { padding: 0; text-align: left; }
.load-layout-footer .load-layout-actions { flex: 0 0 auto; padding: 0; }

@media (max-width: 1199.98px) {
    .load-simulator-workspace { grid-template-columns: 1fr; }
    .load-layout-summary { display: grid; grid-template-columns: auto minmax(9rem, 1fr) minmax(15rem, 1.35fr); align-items: center; gap: .8rem; }
    .load-layout-summary h3 { grid-column: 1 / -1; margin-bottom: 0; }
    .load-layout-ring { margin: 0; }
    .load-layout-valid { margin-top: 0; }
}
@media (max-width: 767.98px) {
    .load-simulator { padding: .6rem; }
    .load-carrier-stage { overflow: hidden; }
    .load-carrier-scene { width: 100%; min-width: 0; }
    .load-layout-summary { grid-template-columns: 7rem minmax(0, 1fr); }
    .load-layout-summary h3,.load-layout-valid { grid-column: 1 / -1; }
    .load-layout-ring { width: 6.5rem; height: 6.5rem; }
    .load-layout-footer { align-items: stretch; flex-direction: column; }
    .load-layout-footer .load-layout-actions,.load-layout-footer .load-layout-actions .btn { width: 100%; }
}
.load-add-shipment { padding: .9rem 1rem; background: #f2f7fc; border-bottom: 1px solid var(--load-line); }
.load-add-shipment[hidden] { display: none !important; }
.load-add-grid { display: grid; grid-template-columns: minmax(20rem, 2fr) minmax(15rem, 1fr); gap: .75rem; }
.load-add-grid label > span,
.load-stop-row label > span { display: block; margin-bottom: .3rem; color: #315778; font-size: .66rem; font-weight: 750; }
.load-admin-override { margin-top: .65rem; padding: .7rem .8rem; background: #fff; border: 1px solid #d6e2ed; border-radius: .45rem; }
.load-admin-override summary { cursor: pointer; font-weight: 750; }
.load-admin-override label,
.load-admin-override small { display: block; margin-top: .55rem; color: #58738d; }
.load-add-footer { display: flex; gap: .75rem; align-items: center; margin-top: .75rem; }
.load-add-footer .btn { min-width: 20rem; }
.load-add-footer small { color: #657e96; }
.load-add-vehicles-modal .modal-dialog { width: min(94vw, 88rem); max-width: 88rem; }
.load-add-vehicles-modal .modal-content { max-height: calc(100vh - 2rem); overflow: hidden; border: 0; border-radius: .9rem; box-shadow: 0 1.4rem 4rem rgba(12,38,67,.3); }
.load-add-vehicles-modal .modal-header { align-items: flex-start; padding: 1rem 1.2rem; background: linear-gradient(135deg,#f8fbff,#eef6ff); border-bottom: 1px solid #dce8f3; }
.load-add-vehicles-modal .modal-title { margin: 0; color: #12385f; font-size: 1.05rem; font-weight: 800; }
.load-add-vehicles-modal .modal-header p { margin: .2rem 0 0; color: #657d94; font-size: .7rem; }
.load-add-vehicles-modal .modal-body { min-height: 20rem; padding: .8rem 1rem 1rem; overflow-y: auto; background: #f5f8fb; }
.load-add-modal-filters { position: sticky; z-index: 4; top: -.8rem; display: grid; grid-template-columns: minmax(14rem, .85fr) minmax(18rem, 1.5fr) minmax(12rem, .65fr); align-items: end; gap: .65rem; margin: -.8rem -1rem 0; padding: .75rem 1rem; background: #fff; border-bottom: 1px solid var(--load-line); }
.load-add-modal-filters > label { color: #24476d; font-size: .68rem; font-weight: 700; }
.load-add-modal-filters > label > span,.load-add-capacity > span { display: block; margin-bottom: .25rem; }
.load-add-modal-filters .form-control { min-height: 2.25rem; font-size: .74rem; }
.load-add-capacity { padding: .42rem .65rem; color: #54708b; background: #eff6fc; border: 1px solid #d4e4f1; border-radius: .45rem; font-size: .61rem; }
.load-add-capacity strong { display: block; color: #087747; font-size: .76rem; }
.load-add-modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .15rem .6rem; }
.load-add-modal-heading h3 { margin: 0; color: #12385f; font-size: .93rem; font-weight: 800; }
.load-add-modal-heading p { margin: .12rem 0 0; color: #6c8297; font-size: .66rem; }
.load-add-modal-heading > span { color: #657d94; font-size: .68rem; white-space: nowrap; }
.load-add-route-list { overflow: hidden; background: #fff; border: 1px solid var(--load-line); border-radius: .62rem; }
.load-add-route-list .load-route-content { display: block; }
.load-add-route-list .load-ready-table { min-width: 68rem; }
.load-add-route-list [data-load-add-route][hidden],.load-add-route-list [data-load-add-row][hidden] { display: none !important; }
.load-add-route-reason { display: block; margin-top: .75rem; color: #24476d; font-size: .68rem; font-weight: 700; }
.load-add-route-reason > span { display: block; margin-bottom: .28rem; }.load-add-route-reason sup { color: #d9364a; }
.load-add-modal-footer { display: grid; grid-template-columns: 1fr auto auto; gap: .55rem; padding: .8rem 1.1rem; background: #fff; }
.load-add-modal-footer > div { display: flex; flex-direction: column; justify-content: center; }
.load-add-modal-footer strong { color: #173e68; font-size: .74rem; }.load-add-modal-footer small { color: #70869b; font-size: .62rem; }
html[data-theme="dark"] .load-add-vehicles-modal .modal-header { background: linear-gradient(135deg,#13283a,#102231); border-color: #2d4357; }
html[data-theme="dark"] .load-add-vehicles-modal .modal-title,html[data-theme="dark"] .load-add-modal-heading h3 { color: #e4edf6; }
html[data-theme="dark"] .load-add-vehicles-modal .modal-body { background: #0f1e2c; }
html[data-theme="dark"] .load-add-modal-filters,html[data-theme="dark"] .load-add-route-list,html[data-theme="dark"] .load-add-modal-footer { background: #101f2d; border-color: #2d4357; }
html[data-theme="dark"] .load-add-modal-filters > label,html[data-theme="dark"] .load-add-route-reason,html[data-theme="dark"] .load-add-modal-footer strong { color: #dce8f3; }
html[data-theme="dark"] .load-add-capacity { background: #14283a; border-color: #365068; }
@media (max-width: 767.98px) {
    .load-add-vehicles-modal .modal-dialog { width: auto; margin: .5rem; }
    .load-add-modal-filters { position: static; grid-template-columns: 1fr; margin: -.8rem -1rem 0; }
    .load-add-modal-heading { align-items: flex-start; flex-direction: column; }
    .load-add-modal-footer { grid-template-columns: 1fr 1fr; }
    .load-add-modal-footer > div { grid-column: 1 / -1; }
    .load-add-modal-footer .btn { width: 100%; }
}
.load-stops-list { display: grid; gap: .55rem; padding: .9rem; }
.load-stop-row { display: grid; grid-template-columns: 2rem minmax(13rem, 1.25fr) minmax(13rem, 1fr) 5rem minmax(11rem, 1fr) 2.8rem; gap: .55rem; align-items: end; padding: .7rem; background: #f8fbfe; border: 1px solid #dce6ef; border-radius: .55rem; }
.load-stop-number { display: grid; width: 1.8rem; height: 1.8rem; margin-bottom: .3rem; place-items: center; color: #fff; background: #1477c9; border-radius: 50%; font-size: .68rem; font-weight: 800; }
.load-stop-row label { min-width: 0; }
.load-stop-row .form-control,
.load-stop-row .form-select { min-height: 2.35rem; font-size: .69rem; }
.load-panel-footer { display: flex; justify-content: flex-end; padding: .8rem 1rem; background: #f8fbfe; border-top: 1px solid var(--load-line); }
.load-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; padding: 1.2rem; }
.load-info-grid dt { color: #7690a8; font-size: .62rem; font-weight: 650; }
.load-info-grid dd { margin: .25rem 0 0; color: #173e68; font-size: .75rem; font-weight: 750; }

.load-detail-aside { display: grid; gap: .75rem; }
.load-romaneio-card { scroll-margin-top: 5rem; overflow: hidden; }
.load-romaneio-integrated { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.load-romaneio-integrated .load-romaneio-preview { min-height: 24rem; white-space: pre; }
.load-romaneio-card > header,
.load-timeline-card > header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem .95rem; border-bottom: 1px solid var(--load-line); }
.load-romaneio-heading { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.load-romaneio-heading > span { display: grid; width: 2.45rem; height: 2.45rem; flex: 0 0 2.45rem; place-items: center; color: #0b5ca3; background: #e7f2fd; border-radius: 50%; font-size: 1.1rem; }
.load-romaneio-heading small { display: block; color: var(--load-muted); font-size: .61rem; }
.load-romaneio-heading h2 { margin: .08rem 0 0; color: #0b3d70; font-size: .95rem; }
.load-manifest-status { padding: .25rem .52rem; color: #096b3e; background: #ddf5e8; border-radius: 999px; font-size: .58rem; font-weight: 850; text-transform: uppercase; }
.load-romaneio-warning { margin: .75rem .8rem 0; padding: .62rem .7rem; color: #775400; background: #fff5d7; border-left: 3px solid #e6ad15; border-radius: .35rem; font-size: .65rem; }
.load-romaneio-meta { display: flex; flex-wrap: wrap; gap: .35rem; padding: .7rem .8rem .25rem; }
.load-romaneio-meta span { padding: .2rem .42rem; color: #416584; background: #f0f5fa; border-radius: .3rem; font-size: .59rem; }
.load-romaneio-preview-title { display: flex; justify-content: space-between; align-items: center; padding: .55rem .8rem .4rem; }
.load-romaneio-preview-title strong { font-size: .75rem; }
.load-romaneio-preview-title span { color: #6b8299; font-size: .62rem; }
.load-romaneio-preview { display: block; width: calc(100% - 1.6rem); min-height: 18rem; margin: 0 .8rem; padding: .75rem; color: #173e65; background: #fbfcfe; border: 1px solid #cbd9e6; border-radius: .52rem; font: .69rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.load-romaneio-preview-wrap { position: relative; margin: 0 .8rem; }
.load-romaneio-preview-wrap .load-romaneio-preview { width: 100%; margin: 0; padding-right: 3.25rem; }
.load-romaneio-copy { position: absolute; top: .6rem; right: .6rem; display: grid; width: 2.25rem; height: 2.25rem; place-items: center; padding: 0; color: #174b7c; background: #fff; border: 1px solid #bfd1e2; border-radius: .55rem; box-shadow: 0 .16rem .45rem rgba(17,59,96,.1); cursor: pointer; transition: color .15s,border-color .15s,background .15s,transform .15s; }
.load-romaneio-copy svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.load-romaneio-copy:hover { color: #fff; background: var(--ce-primary); border-color: var(--ce-primary); transform: translateY(-1px); }
.load-romaneio-copy:focus-visible { outline: 3px solid rgba(20,117,201,.2); outline-offset: 2px; }
.load-romaneio-copy.is-copied { color: #087548; background: #e5f7ed; border-color: #8bcfae; }
.load-romaneio-copy:disabled { color: #8ba0b4; background: #edf2f6; cursor: not-allowed; box-shadow: none; transform: none; }
.load-romaneio-preview:focus { border-color: #6ca7da; outline: 0; box-shadow: 0 0 0 .18rem rgba(20, 117, 201, .1); }
.load-romaneio-help { display: block; padding: .35rem .8rem 0; color: #758ba1; font-size: .58rem; }
.load-romaneio-actions { display: flex; flex-wrap: wrap; gap: .4rem; padding: .75rem .8rem; }
.load-romaneio-actions form { display: inline-flex; }
.load-copy-feedback { margin: 0 .8rem .65rem; padding: .45rem .6rem; color: #08693d; background: #e3f7ec; border-radius: .35rem; font-size: .65rem; }
.load-confirm-manifest { padding: .75rem .8rem; background: #f5faf7; border-top: 1px solid #dbe8e0; }
.load-confirm-manifest small { display: block; margin-top: .35rem; color: #71899e; text-align: center; font-size: .6rem; }
.load-undo-manifest { background: #fff7f7; border-top-color: #f2d7da; }
.load-romaneio-advanced { display: block; padding: .65rem .8rem; color: #1d659f; background: #f7fafe; border-top: 1px solid var(--load-line); font-size: .64rem; font-weight: 700; text-align: center; text-decoration: none; }
.load-romaneio-summary-actions { display: grid; grid-template-columns: 1fr auto; gap: .45rem; padding: .55rem .8rem .8rem; }
.load-romaneio-summary-actions .btn { display: inline-flex; align-items: center; justify-content: center; }
.load-romaneio-integrated .load-confirm-manifest { display: flex; align-items: center; gap: .75rem; }
.load-romaneio-integrated .load-confirm-manifest small { margin: 0; text-align: left; }
.load-timeline-card { overflow: hidden; }
.load-timeline-card h2,
.load-quick-card h2 { margin: 0; font-size: .85rem; }
.load-timeline-card header button { padding: 0; color: #236da8; background: transparent; border: 0; font-size: .62rem; }
.load-timeline-card ol { position: relative; max-height: 31rem; margin: 0; padding: .7rem .75rem .7rem 2.8rem; overflow: auto; list-style: none; }
.load-timeline-card ol::before { position: absolute; top: 1rem; bottom: 1rem; left: 1.52rem; width: 2px; background: #c7ddeb; content: ''; }
.load-timeline-card li { position: relative; min-height: 4.3rem; padding: .2rem 0 .7rem; }
.load-timeline-card li > span { position: absolute; top: .25rem; left: -1.88rem; width: .82rem; height: .82rem; background: #168655; border: 3px solid #def2e7; border-radius: 50%; }
.load-timeline-card time,
.load-timeline-card strong,
.load-timeline-card small { display: block; }
.load-timeline-card time { color: #607c95; font-size: .58rem; }
.load-timeline-card strong { margin-top: .12rem; font-size: .68rem; }
.load-timeline-card p { margin: .1rem 0; color: #54708a; font-size: .62rem; line-height: 1.3; }
.load-timeline-card small { color: #8a9bad; font-size: .56rem; }
.load-quick-card { padding: .85rem; }
.load-quick-card > div { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: .65rem; }
.load-quick-card form,
.load-quick-card .btn { width: 100%; }

html[data-theme="dark"] .load-detail-page { --load-ink: #dbeafa; --load-muted: #94aac0; --load-line: #2b465f; --load-soft: #14283a; }
html[data-theme="dark"] .load-detail-hero,
html[data-theme="dark"] .load-detail-progress,
html[data-theme="dark"] .load-finance-grid,
html[data-theme="dark"] .load-detail-main,
html[data-theme="dark"] .load-romaneio-card,
html[data-theme="dark"] .load-timeline-card,
html[data-theme="dark"] .load-quick-card { background: #102437; }
html[data-theme="dark"] .load-progress-step div { background: #102437; }
html[data-theme="dark"] .load-detail-title-line h1,
html[data-theme="dark"] .load-detail-facts strong,
html[data-theme="dark"] .load-romaneio-heading h2 { color: #dbeeff; }
html[data-theme="dark"] .load-registration-input { color: #e6edf3; background: #0d1117; border-color: #3d4b59; }
html[data-theme="dark"] .load-registration-input:focus { border-color: #58a6ff; outline-color: rgba(88,166,255,.22); }
html[data-theme="dark"] .load-finance-card,
html[data-theme="dark"] .load-stop-row,
html[data-theme="dark"] .load-romaneio-preview { background: #152b3e; }
html[data-theme="dark"] .load-cost-control { background: #142b3e; border-color: #38546c; box-shadow: none; }
html[data-theme="dark"] .load-cost-control:focus-within { background: #172f44; border-color: #55a8ee; box-shadow: 0 0 0 .18rem rgba(85, 168, 238, .14); }
html[data-theme="dark"] .load-cost-currency { color: #a9bfd2; background: #1b3449; border-color: #38546c; }
html[data-theme="dark"] .load-cost-field { color: #e0f0ff; }
html[data-theme="dark"] .load-layout-header,html[data-theme="dark"] .load-simulator { background: #102437; }
html[data-theme="dark"] .load-carrier-scene { background: linear-gradient(180deg,#12283a 0%,#102437 72%,#263c4c 72%,#1a2e3e 76%,#102437 76%); border-color: #36536b; }
html[data-theme="dark"] .load-deck-label { color: #c8dced; }
html[data-theme="dark"] .load-simulator-slot { background: rgba(21,43,62,.78); border-color: #4a657c; }
html[data-theme="dark"] .load-simulator-slot.is-occupied { background: rgba(25,55,79,.92); border-color: #4d8fca; }
html[data-theme="dark"] .load-simulator-slot:hover:not(.is-locked),html[data-theme="dark"] .load-simulator-slot:focus-visible,html[data-theme="dark"] .load-simulator-slot.is-drop-target { background: #193d59; border-color: #65b6f4; }
html[data-theme="dark"] .load-simulator-vehicle { color: #d8e9f7; }
html[data-theme="dark"] .load-romaneio-copy { color: #c9e4fb; background: #1b3348; border-color: #46647e; }
html[data-theme="dark"] .load-carrier-stage { background: #f8fbfd; border-color: #36536b; }
html[data-theme="dark"] .load-carrier-stage .load-carrier-scene { background: linear-gradient(180deg, #fff 0 79%, #eef3f7 79% 80%, #fff 80%); border: 0; }
html[data-theme="dark"] .load-carrier-scene .load-simulator-slot { background: transparent; border-color: transparent; }
html[data-theme="dark"] .load-carrier-scene .load-simulator-slot:not(.is-occupied):not(.is-locked) { background: rgba(232, 244, 253, .36); border-color: rgba(61, 127, 181, .42); }
html[data-theme="dark"] .load-carrier-scene .load-simulator-slot.is-occupied { background: transparent; border-color: transparent; }
html[data-theme="dark"] .load-carrier-scene .load-simulator-slot:hover:not(.is-locked),
html[data-theme="dark"] .load-carrier-scene .load-simulator-slot:focus-visible,
html[data-theme="dark"] .load-carrier-scene .load-simulator-slot.is-drop-target { background: rgba(218, 239, 255, .62); border-color: #1781d2; }
html[data-theme="dark"] .load-layout-summary,
html[data-theme="dark"] .load-layout-roster { background: #142b3e; border-color: #36536b; }
html[data-theme="dark"] .load-layout-summary h3,
html[data-theme="dark"] .load-layout-roster h3 { color: #dbeeff; }
html[data-theme="dark"] .load-layout-ring::before { background: #142b3e; }
html[data-theme="dark"] .load-layout-ring strong { color: #82c5ff; }
html[data-theme="dark"] .load-layout-summary dd { color: #dbeeff; }
html[data-theme="dark"] .load-layout-roster th { color: #a9bfd2; background: #1b3449; border-color: #36536b; }
html[data-theme="dark"] .load-layout-roster td { border-color: #2f4b63; }

@media (max-width: 1399.98px) {
    .load-detail-hero { grid-template-columns: 5.4rem minmax(13rem, 1fr) minmax(28rem, 2.5fr); }
    .load-detail-truck { width: 5.4rem; height: 5.4rem; }
    .load-detail-facts > div,.load-detail-facts > .load-registration-fact { padding-left: 2.35rem; }
    .load-fact-icon { left: .45rem; }
    .load-detail-layout { grid-template-columns: minmax(0, 2.65fr) minmax(21rem, 1fr); }
}
@media (max-width: 1199.98px) {
    .load-detail-hero { grid-template-columns: 5.4rem 1fr; }
    .load-detail-facts { grid-column: 1 / -1; }
    .load-detail-layout { grid-template-columns: 1fr; }
    .load-detail-aside { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
    .load-quick-card { grid-column: 1 / -1; }
    .load-stop-row { grid-template-columns: 2rem 1fr 1fr 5rem; }
    .load-stop-row label:nth-of-type(4) { grid-column: 2 / 4; }
}
@media (max-width: 767.98px) {
    .load-detail-hero { grid-template-columns: 4.5rem 1fr; gap: .7rem; padding: .8rem; }
    .load-detail-truck { width: 4.5rem; height: 4.5rem; }
    .load-detail-truck svg { width: 3rem; height: 3rem; }
    .load-detail-title-line h1 { font-size: 1.45rem; }
    .load-detail-facts { grid-template-columns: repeat(2, 1fr); }
    .load-detail-facts > :last-child { grid-column: 1 / -1; }
    .load-detail-hero-actions { flex-wrap: wrap; justify-content: flex-start; overflow: visible; }
    .load-detail-progress { grid-template-columns: 1fr 1fr; gap: .8rem 0; }
    .load-progress-step:nth-child(2)::after { display: none; }
    .load-finance-grid { grid-template-columns: 1fr 1fr; }
    .load-detail-tabs { overflow-x: auto; }
    .load-detail-tabs button { min-width: 9rem; }
    .load-panel-header { align-items: stretch; flex-direction: column; }
    .load-panel-tools { flex-wrap: wrap; }
    .load-table-search { width: 100%; }
    .load-add-grid { grid-template-columns: 1fr; }
    .load-add-footer { align-items: stretch; flex-direction: column; }
    .load-add-footer .btn { width: 100%; min-width: 0; }
    .load-detail-aside { grid-template-columns: 1fr; }
    .load-quick-card { grid-column: auto; }
    .load-info-grid { grid-template-columns: 1fr 1fr; }
    .load-stop-row { grid-template-columns: 2rem 1fr; }
    .load-stop-row label,
    .load-stop-row label:nth-of-type(4) { grid-column: 2; }
}
@media (max-width: 479.98px) {
    .load-detail-facts,
    .load-finance-grid,
    .load-detail-progress,
    .load-info-grid { grid-template-columns: 1fr; }
    .load-detail-facts > :last-child { grid-column: auto; }
    .load-progress-step::after { display: none; }
    .load-romaneio-actions > *,
    .load-romaneio-actions form,
    .load-romaneio-actions .btn { width: 100%; }
}

main.app-main.dashboard-main { padding: .9rem 1rem 1.1rem; background: #f1f6fc; }
.dashboard-shell .dashboard-chart { min-height: 0; padding: .55rem .7rem; }
html[data-theme="dark"] main.app-main.dashboard-main { background: #0b1725; }
@media (max-width: 767.98px) { main.app-main.dashboard-main { padding: .65rem; } }

/* Shared checkbox interaction */
table input[type="checkbox"] {
    width: 1.4rem;
    height: 1.4rem;
    margin: 0;
    vertical-align: middle;
    cursor: pointer;
}
.form-check:not(.form-switch) > .form-check-input[type="checkbox"] {
    width: 1.35rem;
    height: 1.35rem;
    cursor: pointer;
}
table thead th:has(input[type="checkbox"]),
table tbody td:has(input[type="checkbox"]) {
    min-width: 3.2rem;
    text-align: center;
}
table tbody tr.is-checkbox-selectable { cursor: pointer; }
table tbody tr.is-checkbox-selected > td { background-color: rgba(13,110,253,.065); }
html[data-theme="dark"] table tbody tr.is-checkbox-selected > td { background-color: rgba(81,160,238,.12); }

/* Collection operations queue */
.collection-queue-page {
    --collection-line: #dbe5ef;
    --collection-ink: #102c4f;
    container-type: inline-size;
    color: var(--collection-ink);
}
.collection-queue-page .report-tabs { margin-bottom: .85rem !important; }
.collection-queue-page .report-tab {
    min-height: 5.7rem;
    padding: .92rem 1rem;
    border: 1px solid #d8e4ef;
    border-radius: .78rem;
    background: linear-gradient(145deg,#fff 0%,#f7fafe 100%);
    box-shadow: 0 .28rem .9rem rgba(25,56,88,.07);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.collection-queue-page .report-tab > span { color: #173e68; font-size: 1.02rem; font-weight: 800; }
.collection-queue-page .report-tab small { display: block; margin-top: .18rem; color: #6b8198; font-size: .72rem; line-height: 1.28; }
.collection-queue-page .report-tab:hover { border-color: #9ebfdd; box-shadow: 0 .5rem 1.25rem rgba(25,56,88,.11); transform: translateY(-1px); }
.collection-queue-page .report-tab.active { color: #fff; border-color: #173e73; background: linear-gradient(145deg,#19365f,#234f8e); box-shadow: 0 .5rem 1.25rem rgba(18,55,102,.22); }
.collection-queue-page .report-tab.active > span { color: #fff; }
.collection-queue-page .report-tab.active small { color: #d7e7f8; }
.collection-breadcrumb {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .45rem;
    color: #627893;
    font-size: .78rem;
}
.collection-breadcrumb a { color: #315d88; text-decoration: none; }
.collection-breadcrumb strong { color: #173b62; }
.collection-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.collection-page-heading h1 {
    margin: 0 0 .2rem;
    color: #102d50;
    font-size: 1.78rem;
    font-weight: 800;
    letter-spacing: -.035em;
}
.collection-page-heading p { max-width: 92rem; margin: 0; color: #486989; font-size: .83rem; }
.collection-metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .8rem;
    margin-bottom: 1rem;
}
.collection-metric-card {
    display: flex;
    min-width: 0;
    min-height: 5.8rem;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1rem;
    color: inherit;
    background: #fff;
    border: 1px solid var(--collection-line);
    border-radius: .76rem;
    box-shadow: 0 .24rem .9rem rgba(25, 56, 88, .065);
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
a.collection-metric-card:hover {
    color: inherit;
    border-color: #a9c3de;
    box-shadow: 0 .45rem 1.15rem rgba(25,56,88,.11);
    transform: translateY(-1px);
}
.collection-metric-card > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.collection-metric-card strong { color: #10294a; font-size: 1.42rem; line-height: 1.05; white-space: nowrap; }
.collection-metric-card small { margin-top: .28rem; color: #22486e; font-size: .74rem; line-height: 1.15; }
.collection-metric-card small em { display: block; font-style: normal; }
.collection-metric-card > i { color: #a8c5df; font-size: 1.65rem; font-style: normal; font-weight: 300; }
.collection-metric-icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    place-items: center;
    border-radius: 50%;
}
.collection-metric-icon svg,
.collection-vehicle-symbol svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.collection-metric-card.tone-blue .collection-metric-icon { color: #0873df; background: #e9f3ff; }
.collection-metric-card.tone-green .collection-metric-icon { color: #0d9b5f; background: #e3f7ed; }
.collection-metric-card.tone-purple .collection-metric-icon { color: #7657dd; background: #eee9ff; }
.collection-metric-card.tone-amber .collection-metric-icon { color: #e59b00; background: #fff2d4; }
.collection-metric-card.tone-red .collection-metric-icon { color: #d92c42; background: #ffe9ed; }
.collection-metric-card.tone-red.is-active { border-color: #ef9cab; box-shadow: 0 0 0 .16rem rgba(217,44,66,.09); }
.collection-filter-card,
.collection-list-card {
    background: #fff;
    border: 1px solid var(--collection-line);
    border-radius: .68rem;
    box-shadow: 0 .24rem .9rem rgba(25,56,88,.06);
}
.collection-filter-card { margin-bottom: 1rem; padding: .8rem .9rem; }
.collection-filter-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 1.45fr) minmax(14rem, 1.4fr) repeat(4, minmax(8rem, .7fr)) 7.8rem 6.7rem;
    gap: .65rem;
    align-items: end;
}
.collection-filter-grid label,
.collection-filter-period { min-width: 0; margin: 0; }
.collection-filter-grid label > span,
.collection-filter-period legend {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 .3rem;
    color: #36516f;
    font-size: .7rem;
    font-weight: 750;
}
.collection-filter-period {
    padding: .4rem .5rem .5rem;
    background: #f5faff;
    border: 1px solid #b9d8f4;
    border-radius: .58rem;
}
.collection-filter-period > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: .4rem; }
.stage-filter-period > div { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
.stage-filter-period > div > span { color:#58738e; font-size:.72rem; font-weight:700; text-align:center; }
.collection-filter-grid .collection-filter-date {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cbdbea;
    border-radius: .42rem;
}
.collection-filter-grid .collection-filter-date > span {
    display: grid;
    height: 100%;
    margin: 0;
    padding: 0 .45rem;
    place-items: center;
    color: #315d88;
    background: #eaf4ff;
    border-right: 1px solid #cbdbea;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
}
.collection-filter-grid .collection-filter-date .form-control { min-width: 0; border: 0; border-radius: 0; box-shadow: none; }
.collection-filter-grid .collection-filter-date:focus-within { border-color: #5797cf; box-shadow: 0 0 0 .16rem rgba(8,115,223,.12); }
.collection-filter-card .form-control,
.collection-filter-card .form-select,
.collection-filter-card .btn { min-height: 2.45rem; font-size: .75rem; }
.collection-filter-submit { background: linear-gradient(180deg,#124b84,#0b3868); }
.collection-filter-clear { display: grid; place-items: center; }
.collection-list-card { overflow: visible; }
.collection-list-card > header { padding: .82rem 1rem; border-bottom: 1px solid var(--collection-line); }
.collection-list-card > header h2 { margin: 0; color: #102d50; font-size: 1.08rem; font-weight: 800; }
.collection-list-card > .collection-mode-header { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; justify-content: space-between; }
.collection-mode-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; max-width: 100%; }
.collection-mode-tabs .btn { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; white-space: normal; }
.collection-queue-table-wrap { width: 100%; overflow-x: auto; }
.collection-queue-table { width: 100%; min-width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .72rem; }
.collection-column-select { width: 2.2%; }
.collection-column-date { width: 6.5%; }
.collection-column-vehicle { width: 11.5%; }
.collection-column-client { width: 8%; }
.collection-column-route-acronym { width: 6%; }
.collection-column-origin { width: 11%; }
.collection-column-destination { width: 8%; }
.collection-column-provider { width: 13.5%; }
.collection-column-forecast { width: 10.5%; }
.collection-column-cost { width: 7.5%; }
.collection-column-status { width: 5.5%; }
.collection-column-actions { width: 7%; }
.collection-column-more { width: 2.8%; }
.stage-standard-column-date { width: 6%; }
.stage-standard-column-vehicle { width: 11.5%; }
.stage-standard-column-client { width: 8%; }
.stage-standard-column-route-acronym { width: 6%; }
.stage-standard-column-origin { width: 9.5%; }
.stage-standard-column-destination { width: 9.5%; }
.stage-standard-column-provider { width: 13.5%; }
.stage-standard-column-forecast { width: 10.5%; }
.stage-standard-column-cost { width: 7%; }
.stage-standard-column-status { width: 6%; }
.stage-standard-column-actions { width: 7%; }
.stage-standard-column-more { width: 2.5%; }
.operation-route-acronym { display:inline-flex; max-width:100%; align-items:center; gap:.3rem; padding:.24rem .45rem; overflow:hidden; color:#0b579d; background:#eaf4ff; border:1px solid #cce3f7; border-radius:.38rem; font-size:.62rem; font-weight:800; line-height:1.15; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; cursor:pointer; }
.operation-route-acronym:hover,.operation-route-acronym:focus-visible { color:#fff; background:#0b579d; border-color:#0b579d; }
.operation-route-acronym.is-custom { color:#6841a5; background:#f0e9ff; border-color:#cdb9f2; }
.operation-route-acronym.is-custom:hover,.operation-route-acronym.is-custom:focus-visible { color:#fff; background:#6841a5; border-color:#6841a5; }
.operation-route-acronym i { flex:0 0 auto; font-size:.68rem; font-style:normal; }
.shipment-route-acronym-editor { display:inline-block; max-width:100%; }
.shipment-route-acronym-input { width:100%; min-width:4.6rem; outline:0; text-align:center; text-transform:uppercase; }
.shipment-route-acronym-input:focus { color:#0b579d; background:#fff; border-color:#1680d3; box-shadow:0 0 0 .15rem rgba(22,128,211,.16); }
.shipment-route-acronym-input.is-custom:focus { color:#6841a5; background:#fff; border-color:#8d67c9; }
.shipment-route-acronym-menu { width:min(19rem,calc(100vw - 2rem)); padding:.75rem; border-color:#ccdae8; box-shadow:0 .8rem 2rem rgba(18,48,78,.2); }
.shipment-route-acronym-menu header { display:flex; margin-bottom:.65rem; flex-direction:column; text-align:left; }
.shipment-route-acronym-menu header strong { color:#173d66; font-size:.76rem; }
.shipment-route-acronym-menu header small,.shipment-route-acronym-menu p { margin:.15rem 0 0; color:#6a8096; font-size:.62rem; line-height:1.35; }
.shipment-route-acronym-menu form { display:grid; gap:.42rem; margin:0; }
.shipment-route-acronym-menu form+form { margin-top:.3rem; }
.shipment-route-acronym-menu label { color:#365a7e; font-size:.62rem; font-weight:750; text-align:left; }
.shipment-route-acronym-menu input { font-weight:750; }
.shipment-route-acronym-actions { display:flex; justify-content:flex-end; }
.shipment-route-acronym-reset { width:100%; padding:.25rem; color:#687f96; font-size:.61rem; text-align:left; text-decoration:none; }
.shipment-route-acronym-filter { display:block; margin-top:.55rem; padding-top:.5rem; color:#0b67b2; border-top:1px solid #e1e9f1; font-size:.62rem; font-weight:700; text-align:left; text-decoration:none; }
.collection-queue-table th {
    position: relative;
    height: 3.4rem;
    padding: .62rem .55rem;
    color: #48617c;
    background: #f5f8fc;
    border-bottom: 1px solid var(--collection-line);
    font-size: .64rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-transform: none;
    vertical-align: middle;
    overflow-wrap: normal;
    white-space: nowrap;
}
.collection-queue-table th small { display: block; margin-top: .12rem; color: #8a9aae; font-size: .57rem; font-weight: 600; line-height: 1.2; white-space: normal; }
.collection-queue-table td { padding: .57rem .55rem; overflow-wrap: anywhere; border-bottom: 1px solid #e5ecf3; text-align: center; vertical-align: middle; }
.collection-queue-table th .table-sort-link { position: relative; justify-content: center; }
.collection-queue-table td:nth-child(5) .operation-route-acronym { margin-inline: auto; }
.collection-queue-table td:nth-child(9) .system-date-field__display { text-align: center; }
.collection-queue-table td:nth-child(10) .collection-inline-money { justify-content: center; }
.collection-queue-table td:nth-child(10) .collection-inline-money input { width: min(100%,4.75rem); flex: 0 1 4.75rem; }
.collection-queue-table .operation-vehicle-identity { width: 100%; align-items: center; text-align: center; }
.collection-queue-table :is(.collection-inline-address,.search-select-input,.operation-responsible-input) { text-align: left; }
.collection-queue-table tbody tr { transition: background .14s ease, box-shadow .14s ease; }
.collection-queue-table tbody tr:hover td { background: #fbfdff; }
.collection-queue-table tbody tr.is-selected td { background: #f3f8ff; }
.collection-queue-table tbody tr.is-selected td:first-child { box-shadow: inset 3px 0 #0873df; }
.collection-queue-table tbody tr.is-grouped td { border-bottom-color: #b8d6f2; }
.collection-queue-table td > strong,
.collection-queue-table td > small { display: block; }
.collection-queue-table td > strong { color: #15385d; font-size: .71rem; }
.collection-queue-table td > small { margin-top: .15rem; color: #71849a; font-size: .62rem; }
.collection-select-column { width: 2.2rem; padding: .1rem !important; text-align: center !important; }
.collection-checkbox-hitbox {
    display: inline-grid;
    width: 1.9rem;
    height: 1.9rem;
    margin: 0;
    place-items: center;
    background: transparent;
    border-radius: .55rem;
    cursor: pointer;
    transition: background .14s ease, box-shadow .14s ease;
}
.collection-checkbox-hitbox:hover { background: #eaf4ff; }
.collection-checkbox-hitbox:focus-within { background: #eaf4ff; box-shadow: 0 0 0 .18rem rgba(8,115,223,.16); }
.collection-checkbox-hitbox .form-check-input { width: 1.05rem; height: 1.05rem; margin: 0; cursor: pointer; }
.collection-checkbox-hitbox:has(.form-check-input:disabled) { cursor: not-allowed; opacity: .55; }
.collection-approval-date-column { width: auto; white-space: nowrap; }
.collection-approval-date-column > strong { color: #173b62; font-variant-numeric: tabular-nums; }
.collection-queue-table th .table-sort-link { max-width: 100%; flex-wrap: nowrap; align-items: center; vertical-align: middle; }
.collection-queue-table th .table-sort-link .table-sort-indicator {
    position: absolute;
    top: 50%;
    left: calc(100% + .2rem);
    margin-left: 0;
    transform: translateY(-50%);
}
.collection-queue-table th > .table-sort-indicator {
    position: absolute;
    top: 50%;
    right: .3rem;
    margin-left: 0;
    transform: translateY(-50%);
}
.collection-vehicle-cell { display: flex; min-width: 0; align-items: center; gap: .55rem; }
.collection-vehicle-cell > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.collection-vehicle-cell strong,
.collection-vehicle-cell b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collection-vehicle-cell strong { color: #16395f; font-size: .72rem; }
.collection-vehicle-cell b { margin-top: .08rem; color: #102e52; font-size: .73rem; }
.collection-vehicle-cell small { max-width: 9rem; margin-top: .14rem; overflow: hidden; color: #74869a; font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
.collection-vehicle-symbol { display: grid; width: 2.3rem; height: 2.3rem; flex: 0 0 2.3rem; place-items: center; color: #274d73; background: #edf3f8; border-radius: 50%; }
.collection-vehicle-symbol svg { width: 1.75rem; height: 1.75rem; }
.operation-vehicle-identity { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.operation-vehicle-identity a { max-width: 100%; color: #0666cf; font-size: .72rem; font-weight: 800; line-height: 1.2; text-decoration: underline; text-underline-offset: .08rem; }
.operation-vehicle-identity a:hover,
.operation-vehicle-identity a:focus-visible { color: #084f9d; }
.operation-vehicle-identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operation-vehicle-identity small { display: block; max-width: 100%; margin-top: .14rem; overflow: hidden; color: #74869a; font-size: .59rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.collection-queue-table .operation-vehicle-identity a { font-size: .76rem; }
.collection-queue-table .operation-vehicle-identity small { margin-top: .22rem; color: #6f8298; font-size: .64rem; line-height: 1.25; }
.collection-queue-table .operation-vehicle-identity .operation-vehicle-plate { color: inherit; font-size: inherit; font-weight: 700; }

/* Padrão único para abrir o detalhe do frete pelo nome do veículo. */
a.shipment-detail-link {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: #0666cf;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: underline;
    text-overflow: ellipsis;
    text-underline-offset: .08rem;
    white-space: nowrap;
}
a.shipment-detail-link strong { color: inherit !important; }
a.shipment-detail-link:hover,
a.shipment-detail-link:focus-visible { color: #084f9d; text-decoration: underline; }
.operation-vehicle-plate { color: #17395d; font-size: .71rem; font-weight: 650; white-space: nowrap; }
.operation-responsible-input { display: block; width: 100%; min-width: 0; min-height: 2.15rem; padding: .32rem .45rem; color: #17395d; background: #fff; border: 1px solid #cbdbe9; border-radius: .4rem; font-size: .67rem; font-weight: 650; }
.operation-responsible-input::placeholder { color: #8496a8; font-weight: 550; }
.operation-responsible-input:hover,
.operation-responsible-input:focus { border-color: #78a6d0; outline: 0; box-shadow: 0 0 0 .16rem rgba(18,63,116,.1); }
.collection-queue-table .form-select-sm,
.collection-queue-table .search-select-input { min-height: 2.35rem; font-size: .69rem; }
.collection-queue-table .search-select { width: 100%; min-width: 0; }
.collection-queue-table td[data-label="Prestador"] .search-select-input { padding-right: 3.5rem; padding-left: 2rem; }
.collection-queue-table td[data-label="Prestador"] .search-select-search-icon { left: .7rem; }
.collection-queue-table td[data-label="Prestador"] .search-select-clear { right: 1.75rem; width: 1.3rem; height: 1.3rem; }
.collection-queue-table td[data-label="Prestador"] .search-select-chevron { right: .65rem; }
.collection-inline-datetime {
    width: 100%;
    min-width: 0;
    min-height: 2.2rem;
    padding: .25rem .35rem;
    color: #eb2638;
    background: transparent;
    border: 1px solid transparent;
    border-radius: .35rem;
    font: inherit;
    font-weight: 750;
}
.collection-inline-datetime:hover,
.collection-inline-datetime:focus { background: #fff; border-color: #a9c3dc; outline: 0; box-shadow: 0 0 0 .16rem rgba(18,63,116,.1); }
.collection-forecast-cell .system-date-field__display { padding-right: 2.2rem; white-space: nowrap; text-overflow: clip; }
.collection-forecast-cell .system-date-field__trigger { right: .12rem; width: 1.85rem; height: 1.85rem; }
.collection-forecast-cell > strong { display: none; }
.collection-forecast-cell > small { color: #e3283d; font-weight: 700; }
.collection-forecast-cell:not(.is-overdue):not(.is-today) > small { color: #71849a; }
.collection-forecast-cell > .collection-overdue-text { color: #d92137 !important; }
.collection-inline-money { display: flex; width: 100%; min-width: 0; align-items: center; color: #17395d; font-weight: 750; }
.collection-inline-money > span { flex: 0 0 auto; margin-right: .2rem; white-space: nowrap; }
.collection-inline-money input { width: 100%; min-width: 0; padding: .25rem; color: inherit; background: transparent; border: 1px solid transparent; border-radius: .35rem; font: inherit; font-weight: inherit; text-align: right; }
.collection-inline-money input:hover,
.collection-inline-money input:focus { background: #fff; border-color: #a9c3dc; outline: 0; box-shadow: 0 0 0 .16rem rgba(18,63,116,.1); }
.collection-queue-table td[data-label="Origem"] { min-width: 0; }
.collection-queue-table td[data-label="Destino"] { min-width: 0; }
.collection-inline-address { display: block; width: 100%; min-height: 3.4rem; max-height: 12rem; margin-top: .32rem; padding: .42rem .55rem; color: #49647f; background: #f8fbfe; border: 1px solid #d7e3ee; border-radius: .42rem; font-size: .7rem; line-height: 1.3; resize: vertical; }
.collection-inline-address:hover,.collection-inline-address:focus { color: #17395d; background: #fff; border-color: #89add0; outline: 0; box-shadow: 0 0 0 .16rem rgba(18,63,116,.1); }
.collection-cost-cell > small { white-space: nowrap; }
.collection-queue-table.is-yard-pickup td { padding-top: .57rem; padding-bottom: .57rem; }
.collection-queue-table.is-yard-pickup .operation-responsible-input,
.collection-queue-table.is-yard-pickup .collection-cost-cell .collection-inline-money { min-height: 2.35rem; }
@media (min-width: 768px) {
    .collection-queue-table.is-yard-pickup tbody tr[data-shipment-operation-root] { height: 5.2rem; }
}
.collection-status {
    display: inline-flex;
    max-width: 100%;
    padding: .42rem .55rem;
    border-radius: .4rem;
    font-size: .61rem;
    font-weight: 750;
    line-height: 1.15;
}
.collection-status.is-waiting { color: #8b5c00; background: #fff0c1; }
.collection-status.is-progress { color: #08754b; background: #d8f5e8; }
.collection-status.is-overdue { color: #b51e32; background: #ffe0e5; }
.collection-action-cell { min-width: 0; }
.collection-action-cell .btn { width: 100%; min-height: 2.35rem; font-size: .66rem; font-weight: 750; white-space: nowrap; }
.collection-action-stack { display: grid; gap: .35rem; width: 100%; }
.collection-action-stack .btn-success { color: #fff; }
.collection-failed-modal .alert-warning { border-left: .25rem solid var(--bs-warning); font-size: .82rem; }
.shipment-failed-expenses { display: grid; gap: .5rem; margin: .75rem 0; }
.shipment-failed-expense { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .9rem; border: 1px solid rgba(220, 53, 69, .35); border-left: .25rem solid var(--bs-danger); border-radius: .55rem; background: rgba(220, 53, 69, .06); }
.shipment-failed-expense > div { display: grid; gap: .15rem; }
.shipment-failed-expense > div:last-child { flex: 0 0 auto; text-align: right; }
.shipment-failed-expense strong { color: var(--bs-danger); }
.shipment-failed-expense span { font-weight: 800; }
.shipment-failed-expense small, .shipment-failed-expense p { margin: 0; color: var(--bs-secondary-color); font-size: .72rem; }
.collection-more-cell,
.collection-queue-table th:last-child { padding-inline: .2rem !important; text-align: center; }
.collection-more-cell { width: 2.5rem; }
.collection-more-button { width: 2rem; height: 2rem; padding: 0; color: #0870d7; background: transparent; border: 0; border-radius: 50%; font-size: 1.45rem; line-height: 1; }
.collection-more-button:hover,
.collection-more-button[aria-expanded="true"] { background: #eaf4ff; }
.collection-row-actions { min-width: 12rem; padding: .4rem; border-color: #d8e3ee; box-shadow: 0 .75rem 1.8rem rgba(18,48,78,.16); }
.collection-row-actions .dropdown-item { padding: .55rem .65rem; border-radius: .35rem; font-size: .73rem; }
.collection-batch-bar {
    position: sticky;
    z-index: 12;
    bottom: 0;
    display: grid;
    grid-template-columns: auto 1fr minmax(15rem, auto);
    align-items: center;
    gap: 1rem;
    padding: .7rem .85rem;
    background: #edf6ff;
    border-top: 1px solid #bcd7f0;
    box-shadow: 0 -.35rem 1rem rgba(22,61,98,.08);
}
.collection-batch-bar[hidden] { display: none; }
.collection-batch-bar.is-floating { position:fixed; z-index:1020; left:var(--selection-left); width:var(--selection-width); bottom:12px; margin:0; border:1px solid #9dbedf; border-radius:9px; box-shadow:0 4px 18px #163c6426; box-sizing:border-box; grid-template-columns:minmax(0,1fr) auto; }
.collection-batch-bar.is-floating > p { display:none; }
.collection-batch-bar.is-compact { grid-template-columns:minmax(0,1fr); gap:8px; }
.collection-batch-bar.is-compact .collection-batch-actions { display:flex; flex-wrap:wrap; justify-content:flex-start; }
.collection-batch-bar.is-compact .collection-batch-selection { min-width:0; flex-wrap:wrap; }
.collection-batch-selection,
.collection-batch-actions { display: flex; align-items: center; gap: .55rem; }
.collection-batch-selection strong { white-space: nowrap; }
.collection-batch-selection button,
.collection-group-trigger { color: #086dce; background: transparent; border: 0; font-size: .68rem; font-weight: 650; }
.collection-batch-actions { justify-content: center; }
.collection-batch-actions .btn { min-height: 2.45rem; padding-inline: .9rem; font-size: .68rem; font-weight: 750; }
.collection-batch-divider { height: 2rem; border-left: 1px solid #b9cde0; }
.collection-batch-bar > p { margin: 0; color: #52708f; font-size: .62rem; line-height: 1.25; }
.collection-pagination { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin: .8rem 0 0; color: #45627f; font-size: .68rem; }
.collection-pagination ul { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.collection-pagination a { display: grid; width: 2.15rem; height: 2.15rem; place-items: center; color: #264b70; background: #fff; border: 1px solid #d5e1ec; border-radius: .38rem; text-decoration: none; }
.collection-pagination li.active a { color: #fff; background: #0873df; border-color: #0873df; }
.collection-pagination li.disabled { pointer-events: none; opacity: .45; }
.collection-queue-page #recent-completed-stage-title { color: #102d50; font-size: 1rem; font-weight: 800; }
.collection-filter-card + .operational-work-section { margin-top: 2rem; }
.collection-queue-page .operational-history-section,
.load-dashboard .operational-history-section {
    margin-top: clamp(5.5rem, 11vh, 8rem) !important;
}
.collection-batch-modal .modal-content { border: 0; border-radius: .8rem; box-shadow: 0 1.2rem 3rem rgba(18,48,78,.2); }
.collection-batch-modal .modal-header { align-items: flex-start; }
.collection-batch-modal .modal-title { color: #12385f; font-size: 1.05rem; font-weight: 800; }
.collection-batch-modal .modal-header small { color: #6d8095; }
.collection-charge-mode { display: grid; gap: .55rem; margin: 1rem 0; padding: 0; border: 0; }
.collection-charge-mode legend { margin-bottom: .45rem; color: #36516f; font-size: .75rem; font-weight: 750; }
.collection-charge-mode label { display: flex; align-items: center; gap: .5rem; font-size: .75rem; }
.collection-start-summary { padding: .9rem; color: #16466f; background: #edf6ff; border-radius: .55rem; }
.collection-start-summary p { margin: .25rem 0 0; color: #58738e; }

/* Delivery and yard-pickup operational queues */
.stage-queue-filter { border-color: #dbe5ef; border-radius: .75rem; box-shadow: 0 .28rem 1rem rgba(24,55,91,.06); }
.stage-queue-filter .card-body { padding: .85rem 1rem; }
.stage-metric-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
.stage-metric-grid.is-yard { grid-template-columns:repeat(4,minmax(0,1fr)); }
.stage-queue-page .stage-filter-grid-yard { grid-template-columns:minmax(15rem,1.6fr) minmax(20rem,1.45fr) repeat(3,minmax(8rem,.72fr)) 7.8rem 6.7rem; }
.stage-queue-board {
    overflow: visible;
    color: #102c4f;
    background: #fff;
    border: 1px solid #dbe5ef;
    border-radius: .75rem;
    box-shadow: 0 .28rem 1rem rgba(24,55,91,.07);
}
.stage-queue-board__heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.82rem 1rem; border-bottom:1px solid #dbe5ef; }
.stage-queue-board__heading h2 { margin:0; color:#102d50; font-size:1.03rem; font-weight:800; }
.stage-queue-board__heading p { margin:.18rem 0 0; color:#6b8096; font-size:.67rem; }
.stage-queue-board__kind { padding:.25rem .55rem; color:#0c67bb; background:#eaf4ff; border:1px solid #cfe4f8; border-radius:999px; font-size:.62rem; font-weight:750; }
.stage-queue-columns,
.stage-queue-row { display:grid; grid-template-columns:minmax(11rem,1.15fr) minmax(14rem,1.45fr) minmax(13rem,1.3fr) minmax(10.5rem,1fr) minmax(8rem,.75fr) minmax(8rem,.72fr) minmax(7rem,.65fr); gap:.65rem; align-items:center; }
.stage-queue-columns { padding:.6rem .75rem; color:#48617c; background:#f5f8fc; border-bottom:1px solid #dbe5ef; font-size:.63rem; font-weight:800; }
.stage-queue-row { padding:.7rem .75rem; }
.stage-queue-item { border-bottom:1px solid #e5ecf3; transition:background .14s ease,box-shadow .14s ease; }
.stage-queue-item:last-child { border-bottom:0; border-radius:0 0 .75rem .75rem; }
.stage-queue-item:hover { background:#fbfdff; }
.stage-queue-cell { min-width:0; }
.stage-queue-cell::before { display:none; content:attr(data-label); margin-bottom:.25rem; color:#647b92; font-size:.61rem; font-weight:800; }
.stage-queue-vehicle { display:flex; align-items:center; gap:.55rem; }
.stage-queue-vehicle__icon { display:grid; width:2.25rem; height:2.25rem; flex:0 0 2.25rem; place-items:center; color:#274d73; background:#edf3f8; border-radius:50%; }
.stage-queue-vehicle__icon svg { width:1.55rem; height:1.55rem; fill:none; stroke:currentColor; stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round; }
.stage-queue-vehicle > div { display:flex; min-width:0; flex-direction:column; }
.stage-queue-vehicle strong,.stage-queue-route strong,.stage-queue-provider strong { overflow:hidden; color:#15385d; font-size:.72rem; text-overflow:ellipsis; white-space:nowrap; }
.stage-queue-vehicle b { color:#102e52; font-size:.71rem; }
.stage-queue-cell small { display:block; margin-top:.12rem; color:#74869a; font-size:.59rem; line-height:1.25; }
.stage-queue-route > strong,.stage-queue-route > small { display:block; }
.stage-queue-route strong span { color:#6f879f; }
.stage-queue-address { min-height:1.8rem; margin-top:.3rem; padding:.2rem .4rem; font-size:.65rem; }
.stage-queue-provider .search-select { min-width:0; }
.stage-queue-provider .form-select-sm,.stage-queue-provider .search-select-input { min-height:2.25rem; font-size:.69rem; }
.stage-queue-source { color:#0873df !important; font-weight:650; }
.stage-queue-forecast-input { width:100%; min-height:2.15rem; padding:.2rem .3rem; color:#193b60; background:transparent; border:1px solid transparent; border-radius:.35rem; font-size:.66rem; font-weight:750; }
.stage-queue-forecast-input:hover,.stage-queue-forecast-input:focus { background:#fff; border-color:#a9c3dc; outline:0; box-shadow:0 0 0 .16rem rgba(18,63,116,.1); }
.stage-queue-forecast > strong { display:block; margin-top:.12rem; color:#15385d; font-size:.65rem; }
.stage-queue-forecast > small { color:#71849a; font-weight:650; }
.stage-queue-forecast.is-overdue .stage-queue-forecast-input,
.stage-queue-forecast.is-overdue > strong,
.stage-queue-forecast.is-overdue > small { color:#db263c; }
.stage-queue-forecast.is-today .stage-queue-forecast-input,
.stage-queue-forecast.is-today > small { color:#b57500; }
.stage-queue-cost .collection-inline-money { width:100%; min-width:7.5rem; }
.stage-queue-cost .collection-inline-money input { color:#078343; }
.stage-queue-zero-cost { display:flex; min-height:2.15rem; align-items:center; justify-content:space-between; gap:.35rem; padding:.2rem .3rem; color:#17395d; font-size:.7rem; }
.stage-queue-zero-cost span { font-size:.62rem; }
.stage-queue-zero-cost strong { color:#078343; font-size:.7rem; }
.stage-queue-muted { color:#778a9d; font-size:.67rem; }
.stage-queue-status { display:inline-flex; align-items:center; gap:.32rem; padding:.28rem .5rem; color:#8b5e00; background:#fff5d7; border:1px solid #f5dda0; border-radius:999px; font-size:.58rem; font-weight:800; line-height:1.15; }
.stage-queue-status::before { width:.42rem; height:.42rem; flex:0 0 .42rem; content:""; background:#f2a900; border-radius:50%; }
.stage-queue-status.is-progress { color:#08794b; background:#e8f8ef; border-color:#bfe9d1; }
.stage-queue-status.is-progress::before { background:#10a566; }
.stage-queue-status.is-overdue { color:#bb2234; background:#fff0f2; border-color:#f5c9cf; }
.stage-queue-status.is-overdue::before { background:#db3045; }
.stage-queue-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.32rem; }
.stage-queue-actions .btn { min-height:2.15rem; font-size:.63rem; }
.stage-queue-details { color:#315d88; font-size:.62rem; font-weight:700; text-decoration:none; }
.stage-queue-details:hover { color:#0873df; text-decoration:underline; }
.stage-queue-feedback { margin:.1rem .75rem .7rem; padding:.4rem .6rem; font-size:.65rem; }
.stage-queue-empty { padding:2.5rem 1rem; }

html[data-theme="dark"] .stage-queue-filter,
html[data-theme="dark"] .stage-queue-board { color:#dae7f3; background:#101f2d; border-color:#2c4358; }
html[data-theme="dark"] .stage-queue-board__heading,
html[data-theme="dark"] .stage-queue-columns,
html[data-theme="dark"] .stage-queue-item { border-color:#293e51; }
html[data-theme="dark"] .stage-queue-board__heading h2,
html[data-theme="dark"] .stage-queue-vehicle strong,
html[data-theme="dark"] .stage-queue-vehicle b,
html[data-theme="dark"] .stage-queue-route strong,
html[data-theme="dark"] .stage-queue-provider strong { color:#e2effa; }
html[data-theme="dark"] .stage-queue-columns { color:#afc0d0; background:#142738; }
html[data-theme="dark"] .stage-queue-item:hover { background:#142a3d; }
html[data-theme="dark"] .stage-queue-vehicle__icon { color:#9ec8ec; background:#19334a; }
html[data-theme="dark"] .stage-queue-board__kind { color:#9ed0f5; background:#17344c; border-color:#315775; }
html[data-theme="dark"] .stage-queue-forecast-input { color:#dce9f5; }
html[data-theme="dark"] .stage-queue-forecast-input:hover,
html[data-theme="dark"] .stage-queue-forecast-input:focus { background:#152b3d; border-color:#53799b; }
html[data-theme="dark"] .stage-queue-forecast > strong { color:#dce9f5; }
html[data-theme="dark"] .stage-queue-zero-cost { color:#b8cada; }
html[data-theme="dark"] .stage-queue-zero-cost strong { color:#72d69d; }

@media (max-width:1399.98px) {
    .collection-queue-table { min-width: 1120px; }
    .stage-metric-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .stage-queue-page .stage-filter-grid-yard { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .stage-queue-columns { display:none; }
    .stage-queue-row { grid-template-columns:repeat(4,minmax(0,1fr)); align-items:start; }
    .stage-queue-cell::before { display:block; }
    .stage-queue-vehicle,.stage-queue-route,.stage-queue-provider { grid-column:span 2; }
    .stage-queue-actions { justify-content:flex-start; }
}

/* O menu lateral reduz a area util antes de o viewport chegar ao breakpoint.
   Esta quebra usa a largura real da fila para impedir textos comprimidos. */
@container (min-width: 48rem) and (max-width: 88rem) {
    .collection-metric-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .collection-filter-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .collection-filter-search,
    .collection-filter-period { grid-column: span 2; }
    .collection-queue-table { min-width: 97.5rem; }
}
@media (max-width:767.98px) {
    .stage-metric-grid,.stage-queue-page .stage-filter-grid-yard { grid-template-columns:1fr; }
    .stage-queue-board__heading { align-items:flex-start; }
    .stage-queue-row { grid-template-columns:1fr 1fr; gap:.8rem; padding:.9rem; }
    .stage-queue-vehicle,.stage-queue-route,.stage-queue-provider { grid-column:1/-1; }
    .stage-queue-state,.stage-queue-actions { grid-column:span 1; }
    .collection-filter-card + .operational-work-section { margin-top: 1.5rem; }
    .collection-queue-page .operational-history-section,
    .load-dashboard .operational-history-section { margin-top: 3.5rem !important; }
}
@media (max-width:479.98px) {
    .stage-queue-row { grid-template-columns:1fr; }
    .stage-queue-cell { grid-column:1 !important; }
}

html[data-theme="dark"] .collection-queue-page { --collection-line: #2c4358; --collection-ink: #dae7f3; }
html[data-theme="dark"] .collection-queue-page .report-tab { border-color: #2c4358; background: linear-gradient(145deg,#142b40,#102437); box-shadow: 0 .3rem .9rem rgba(0,0,0,.2); }
html[data-theme="dark"] .collection-queue-page .report-tab > span { color: #dceaf7; }
html[data-theme="dark"] .collection-queue-page .report-tab small { color: #9fb5c9; }
html[data-theme="dark"] .collection-queue-page .report-tab.active { color: #fff; border-color: #388bfd; background: linear-gradient(145deg,#173c62,#1f6feb); }

.central-async-notice {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1090;
    display: flex;
    align-items: center;
    gap: .85rem;
    max-width: min(30rem, calc(100vw - 2rem));
    padding: .8rem 1rem;
    border: 1px solid #9dd8bb;
    border-radius: .75rem;
    background: #ecfbf3;
    color: #075c36;
    box-shadow: 0 .75rem 2rem rgba(15, 45, 75, .18);
}
.central-async-notice.is-danger { border-color: #f2a8ae; background: #fff1f2; color: #9f1624; }
.central-async-notice button { border: 0; background: transparent; color: inherit; font-size: 1.25rem; line-height: 1; }
html[data-theme="dark"] .central-async-notice { background: #15392b; color: #d8f8e8; border-color: #287654; }
html[data-theme="dark"] .central-async-notice.is-danger { background: #452126; color: #ffdce0; border-color: #9f4650; }
html[data-theme="dark"] .collection-breadcrumb strong,
html[data-theme="dark"] .collection-page-heading h1,
html[data-theme="dark"] .collection-metric-card strong,
html[data-theme="dark"] .collection-list-card > header h2,
html[data-theme="dark"] .collection-queue-table td > strong,
html[data-theme="dark"] .collection-vehicle-cell strong,
html[data-theme="dark"] .collection-vehicle-cell b { color: #e2effa; }
html[data-theme="dark"] .operation-vehicle-identity a { color: #79b9ee; }
html[data-theme="dark"] a.shipment-detail-link { color: #79b9ee; }
html[data-theme="dark"] .operation-route-acronym { color:#a9d4f5; background:#17344c; border-color:#315775; }
html[data-theme="dark"] .operation-route-acronym:hover,
html[data-theme="dark"] .operation-route-acronym:focus-visible { color:#fff; background:#1767a8; border-color:#4b91c8; }
html[data-theme="dark"] .operation-route-acronym.is-custom { color:#d2b8ff; background:rgba(137,87,229,.2); border-color:rgba(177,137,246,.48); }
html[data-theme="dark"] .shipment-route-acronym-menu { color:#dce6f0; background:#132331; border-color:#304558; }
html[data-theme="dark"] .shipment-flow-acronym { color:#dce6f0; background:#17344c; border-color:#315775; }
html[data-theme="dark"] .shipment-flow-acronym::placeholder,
html[data-theme="dark"] .shipment-route-acronym-menu header strong { color:#dce6f0; }
html[data-theme="dark"] .shipment-route-acronym-menu header small,
html[data-theme="dark"] .shipment-route-acronym-menu p { color:#91a5b8; }
html[data-theme="dark"] .shipment-route-acronym-filter { color:#79c0ff; border-color:#304558; }
html[data-theme="dark"] .operation-vehicle-identity a:hover,
html[data-theme="dark"] .operation-vehicle-identity a:focus-visible { color: #a8d5f7; }
html[data-theme="dark"] a.shipment-detail-link:hover,
html[data-theme="dark"] a.shipment-detail-link:focus-visible { color: #a8d5f7; }
html[data-theme="dark"] .operation-vehicle-identity small { color: #91a7ba; }
html[data-theme="dark"] .operation-vehicle-plate { color: #dce9f5; }
html[data-theme="dark"] .operation-responsible-input { color: #e3edf6; background: #132636; border-color: #30475b; }
html[data-theme="dark"] .collection-page-heading p,
html[data-theme="dark"] .collection-metric-card small { color: #a8bdd0; }
html[data-theme="dark"] .collection-metric-card,
html[data-theme="dark"] .collection-filter-card,
html[data-theme="dark"] .collection-list-card { background: #101f2d; }
html[data-theme="dark"] .collection-queue-table th { color: #afc0d0; background: #142738; }
html[data-theme="dark"] .collection-queue-table td { border-color: #293e51; }
html[data-theme="dark"] .collection-queue-table tbody tr:hover td,
html[data-theme="dark"] .collection-queue-table tbody tr.is-selected td { background: #142a3d; }
html[data-theme="dark"] .collection-inline-datetime:hover,
html[data-theme="dark"] .collection-inline-datetime:focus,
html[data-theme="dark"] .collection-inline-money input:hover,
html[data-theme="dark"] .collection-inline-money input:focus { background: #152b3d; }
html[data-theme="dark"] .collection-inline-address { color: #b9cad9; background: #132636; border-color: #30475b; }
html[data-theme="dark"] .collection-inline-address:focus { color: #e6f0f8; background: #152b3d; border-color: #53799b; }
html[data-theme="dark"] .collection-batch-bar { background: #132c43; border-color: #315775; }
html[data-theme="dark"] .collection-filter-period { background: #12293d; border-color: #315b7d; }
html[data-theme="dark"] .collection-filter-grid .collection-filter-date { background: #101f2d; border-color: #38566e; }
html[data-theme="dark"] .collection-filter-grid .collection-filter-date > span { color: #bcdcff; background: #183650; border-color: #38566e; }
html[data-theme="dark"] .collection-approval-date-column > strong { color: #e2effa; }
html[data-theme="dark"] .collection-checkbox-hitbox:hover,
html[data-theme="dark"] .collection-checkbox-hitbox:focus-within { background: #1a354d; }

@media (max-width: 1399.98px) {
    .collection-metric-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .collection-filter-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .collection-filter-search { grid-column: span 2; }
    .collection-filter-period { grid-column: span 2; }
    .collection-batch-bar { grid-template-columns: 1fr; }
    .collection-batch-actions { justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 767.98px) {
    .collection-page-heading h1 { font-size: 1.45rem; }
    .collection-metric-grid { grid-template-columns: 1fr; }
    .collection-metric-card { min-height: 4.8rem; }
    .collection-filter-grid { grid-template-columns: 1fr; }
    .collection-filter-search,
    .collection-filter-period { grid-column: auto; }
    .collection-filter-period > div { grid-template-columns: 1fr; }
    .collection-filter-card .btn { width: 100%; }
    .collection-pagination { align-items: flex-end; flex-direction: column; }
    .collection-batch-actions .btn,
    .collection-group-trigger { flex: 1 1 10rem; min-height: 2.75rem; }
    .collection-batch-divider,
    .collection-batch-bar > p { display: none; }
}

/* Quote management dashboard */
.quote-dashboard { --quote-line: #dfe7f0; color: #152941; }
.topbar-quote-search { width: min(22rem,30vw); margin-left: auto; align-items: center; gap: .55rem; padding: .48rem .8rem; background: var(--bs-body-bg); border: 1px solid #d7e1eb; border-radius: 99px; }
.topbar-quote-search > span { color: #59718a; font-size: 1.15rem; line-height: 1; }
.topbar-quote-search input { width: 100%; color: var(--bs-body-color); background: transparent; border: 0; outline: 0; font-size: .8rem; }
.topbar-quote-search input::placeholder { color: #8191a3; }
.quote-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.35rem; }
.quote-page-header h1 { margin: .35rem 0 .2rem; color: #102b49; font-size: 2rem; font-weight: 800; letter-spacing: -.035em; }
.quote-page-header p { margin: 0; color: #58708b; }
.quote-breadcrumb { display: flex; align-items: center; gap: .65rem; color: #4b6380; font-size: .8rem; }
.quote-page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .7rem; }
.quote-page-actions .btn { min-height: 3.15rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding-inline: 1.15rem; font-weight: 700; }
.quote-export-button { color: #193651; border: 1px solid #d5e0eb; box-shadow: 0 .18rem .55rem rgba(23,53,83,.06); }
.quote-new-button { min-width: 12rem; background: linear-gradient(120deg, #0b59b5, #0875e1); border-color: #0868cc; }
.quote-new-split { background: #0870d7; border-color: rgba(255,255,255,.2); }
.quote-page-actions .dropdown-item { padding: .65rem .9rem; }
.quote-page-actions .dropdown-item strong,.quote-page-actions .dropdown-item small { display: block; }
.quote-page-actions .dropdown-item small { margin-top: .1rem; color: #718197; font-size: .72rem; }
.quote-metric-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: .85rem; margin-bottom: 1.25rem; }
.quote-metric-card { display: flex; min-width: 0; min-height: 8.8rem; gap: .85rem; padding: 1.15rem 1rem; color: inherit; background: #fff; border: 1px solid var(--quote-line); border-radius: .72rem; box-shadow: 0 .28rem 1rem rgba(25,56,88,.07); text-decoration: none; transition: transform .16s ease,box-shadow .16s ease,border-color .16s ease; }
a.quote-metric-card:hover { color: inherit; border-color: #a8c5e3; box-shadow: 0 .55rem 1.35rem rgba(25,56,88,.12); transform: translateY(-2px); }
.quote-metric-icon { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; flex: 0 0 2.9rem; border-radius: 50%; }
.quote-metric-icon svg,.quote-row-document svg,.quote-tip svg,.quote-empty-state svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quote-metric-icon.tone-blue { color: #0873dc; background: #e9f3ff; }
.quote-metric-icon.tone-teal { color: #149267; background: #e7f8ef; }
.quote-metric-icon.tone-green { color: #168759; background: #e7f7ee; }
.quote-metric-icon.tone-amber { color: #e39300; background: #fff3d9; }
.quote-metric-icon.tone-red { color: #dc3545; background: #ffeaed; }
.quote-metric-content { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; }
.quote-metric-content > strong { max-width: 100%; margin-top: .05rem; overflow: hidden; color: #10223b; font-size: 1.32rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.quote-metric-content > u,.quote-metric-content > .metric-name { margin-top: .28rem; color: #405873; font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.quote-metric-content > small { margin-top: auto; padding-top: .45rem; color: #172943; font-weight: 750; }
.quote-metric-content > span:not(.metric-name):not(.quote-progress) { color: #77879a; font-size: .69rem; }
.quote-metric-content .trend-up { color: #13854e; }.quote-metric-content .trend-down { color: #c33d4c; }.quote-metric-content .trend-neutral { color: #647589; }
.quote-progress,.quote-row-margin { display: block; width: 100%; height: .38rem; margin-top: .5rem; overflow: hidden; background: #e8edf3; border-radius: 99px; }
.quote-progress i,.quote-row-margin i { display: block; height: 100%; background: #1c9a61; border-radius: inherit; }
.quote-progress.amber i { background: #f1a400; }.quote-progress.red i { background: #e33f51; }.quote-progress.blue i { background: #0872d9; }
.quote-filter-card,.quote-list-card { background: #fff; border: 1px solid var(--quote-line); border-radius: .72rem; box-shadow: 0 .28rem 1rem rgba(25,56,88,.06); }
.quote-filter-card { padding: 1rem 1.1rem; margin-bottom: .85rem; }
.quote-filter-grid { display: grid; grid-template-columns: minmax(18rem,2fr) minmax(12rem,.8fr) minmax(19rem,1.15fr) minmax(8rem,.4fr); gap: .85rem; align-items: end; }
.quote-filter-grid label,.quote-period-field { margin: 0; }
.quote-filter-grid label > span,.quote-period-field legend,.quote-list-tools label > span { display: block; margin-bottom: .35rem; color: #314861; font-size: .77rem; font-weight: 700; }
.quote-period-field { padding: 0; border: 0; }
.quote-period-field legend { float: none; width: auto; }
.quote-period-field > div { display: flex; align-items: center; gap: .45rem; }
.quote-period-field input { min-width: 0; }
.quote-filter-button { min-height: 2.7rem; }
.quote-status-tabs { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.2rem; overflow-x: auto; padding: .05rem 0; scrollbar-width: thin; }
.quote-status-tabs a { display: inline-flex; min-height: 2.65rem; flex: 0 0 auto; align-items: center; gap: .5rem; padding: .58rem .95rem; color: #496078; background: #fff; border: 1px solid #dae3ed; border-radius: .55rem; text-decoration: none; white-space: nowrap; }
.quote-status-tabs a:hover,.quote-status-tabs a.active { color: #0868cd; background: #edf6ff; border-color: #7db8f1; }
.quote-status-tabs a.active { box-shadow: inset 0 0 0 1px rgba(8,104,205,.08); font-weight: 700; }
.quote-status-tabs .quote-clear-filters { margin-left: auto; color: #0872da; background: transparent; border-color: transparent; }
.status-dot { width: .7rem; height: .7rem; flex: 0 0 .7rem; }
.status-gerado { background: #f2a900; }.status-aprovado { background: #19975e; }.status-pendente { background: #0872da; }.status-recusado,.status-cancelado { background: #df3447; }
.quote-list-card { margin-bottom: 1.3rem; }
.quote-list-card > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--quote-line); }
.quote-list-card > header h2 { margin: 0; color: #102641; font-size: 1.25rem; font-weight: 800; }
.quote-list-card > header p { margin: .2rem 0 0; color: #51677f; font-size: .78rem; font-weight: 600; }
.quote-list-tools { display: flex; align-items: flex-end; gap: .65rem; }
.quote-list-tools form label { display: flex; min-width: 15rem; flex-direction: column; }
.quote-list-tools label > span { margin-bottom: .2rem; }
.quote-view-toggle .btn { min-width: 2.7rem; min-height: 2.35rem; font-size: 1.05rem; }
.quote-table { min-width: 1120px; font-size: .78rem; }
.quote-table thead th { padding: .82rem .75rem; color: #53687f; background: #f7f9fc; border-bottom-color: #dae3ed; font-size: .67rem; }
.quote-table tbody td { padding: .9rem .75rem; border-color: #e7edf3; vertical-align: middle; }
.quote-table tbody tr:hover td { background: #fbfdff; }
.quote-table td > strong,.quote-table td > small { display: block; }
.quote-table td > strong { color: #142941; font-weight: 750; }
.quote-table td > small { margin-top: .18rem; color: #66798e; font-size: .7rem; }
.quote-code-cell { display: flex; align-items: flex-start; gap: .55rem; }
.quote-code-cell > div { display: flex; flex-direction: column; }
.quote-code-cell a { color: #0871da; font-weight: 800; }
.quote-code-cell small { color: #62778d; font-size: .69rem; }
.quote-row-document { color: #193e66; }.quote-row-document svg { width: 1.15rem; height: 1.15rem; }
.quote-stage-list { display: flex; align-items: stretch; gap: .35rem; }
.quote-stage { display: flex; min-width: 5.7rem; flex-direction: column; justify-content: center; padding: .48rem .5rem; color: #1262aa; background: #edf7ff; border-radius: .5rem; line-height: 1.2; }
.quote-stage b { font-size: .68rem; font-weight: 700; }.quote-stage small { margin-top: .25rem; color: inherit; font-size: .63rem; }
.quote-stage-collection { color: #0c6aad; background: #e9f5ff; }.quote-stage-transport { color: #2458a9; background: #edf2ff; }.quote-stage-delivery { color: #147a5d; background: #eaf8f1; }
.quote-row-margin { max-width: 6rem; height: .35rem; }.quote-row-margin i { background: #13935a; }
.quote-status-badge { display: inline-flex; align-items: center; padding: .48rem .62rem; border-radius: .55rem; font-size: .67rem; font-weight: 750; line-height: 1.2; }
.quote-status-actions { display: inline-flex; align-items: center; gap: .42rem; }
.quote-whatsapp-quick { display: inline-flex; align-items: center; justify-content: center; width: 1.85rem; height: 1.85rem; color: #08783e; background: #e8f8ef; border: 1px solid #b9e8cc; border-radius: 50%; transition: transform .15s ease,background-color .15s ease; }
.quote-whatsapp-quick svg { width: 1rem; height: 1rem; fill: currentColor; }
.quote-whatsapp-quick:hover { color: #075f34; background: #d8f3e4; transform: translateY(-1px); }
.quote-whatsapp-quick--header { width: 2.4rem; height: 2.4rem; align-self: center; }
.quote-whatsapp-quick--header svg { width: 1.2rem; height: 1.2rem; }
.quote-whatsapp-edit-button { width: auto; min-height: 2.4rem; padding: .45rem .75rem; gap: .45rem; border-radius: .5rem; text-decoration: none; font-weight: 600; }
.quote-whatsapp-quick.is-loading { opacity: .58; pointer-events: none; }
.quote-whatsapp-template-modal .modal-dialog { width: min(62rem,calc(100vw - 2rem)); max-width: 62rem; }
.quote-whatsapp-template-modal .modal-content { overflow: hidden; color: #132943; background: #fff; border: 0; border-radius: .75rem; box-shadow: 0 1.25rem 4rem rgba(5,20,38,.28); }
.quote-whatsapp-template-modal .modal-header { padding: 1rem 1.35rem; border-color: #e2e9f0; }
.quote-whatsapp-template-title { display: flex; align-items: center; gap: .85rem; }
.quote-whatsapp-template-title h2 { margin: 0; color: #102b4b; font-size: 1.28rem; font-weight: 800; }
.quote-whatsapp-template-title p { margin: .12rem 0 0; color: #687b91; font-size: .8rem; }
.quote-whatsapp-template-brand { display: grid; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; place-items: center; color: #fff; background: #0aad5b; border-radius: 50%; }
.quote-whatsapp-template-brand svg { width: 1.55rem; height: 1.55rem; fill: currentColor; }
.quote-whatsapp-template-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(19rem,1fr); gap: 1.3rem; padding: 1rem 1.35rem 1.15rem; }
.quote-whatsapp-template-editor { display: grid; align-content: start; gap: 1rem; }
.quote-whatsapp-template-step { display: grid; gap: .55rem; }
.quote-whatsapp-template-step-heading { display: flex; align-items: flex-start; gap: .55rem; }
.quote-whatsapp-template-step-heading > h3,.quote-whatsapp-template-step-heading > div > h3 { margin: .12rem 0 0; color: #132e4c; font-size: .94rem; font-weight: 800; }
.quote-whatsapp-template-step-heading > small { margin: .2rem 0 0 auto; color: #687c92; font-size: .69rem; }
.quote-whatsapp-template-step-heading p { margin: .12rem 0 0; color: #718299; font-size: .72rem; line-height: 1.45; }
.quote-whatsapp-template-step-number { display: grid; flex: 0 0 1.45rem; width: 1.45rem; height: 1.45rem; place-items: center; color: #fff; background: #2f80ed; border-radius: 50%; font-size: .73rem; font-weight: 800; }
.quote-whatsapp-template-step textarea { min-height: 10.7rem; margin-left: 2rem; width: calc(100% - 2rem); padding: .8rem .9rem; color: #17304e; background: #fff; border-color: #cbd8e6; font-size: .86rem; line-height: 1.55; resize: vertical; }
.quote-whatsapp-template-step textarea:focus { border-color: #5595ec; box-shadow: 0 0 0 .18rem rgba(47,128,237,.13); }
.quote-whatsapp-template-tokens { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; margin-left: 2rem; }
.quote-whatsapp-template-tokens button { display: flex; min-width: 0; min-height: 3.35rem; align-items: center; gap: .55rem; padding: .55rem .65rem; color: #17304e; background: #fff; border: 1px solid #d6e1ed; border-radius: .42rem; text-align: left; transition: border-color .15s ease,background-color .15s ease,transform .15s ease; }
.quote-whatsapp-template-tokens button:hover,.quote-whatsapp-template-tokens button:focus-visible { background: #f5f9ff; border-color: #7eb0f2; transform: translateY(-1px); }
.quote-whatsapp-template-tokens button > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.quote-whatsapp-template-tokens strong { overflow: hidden; color: #163252; font-size: .73rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.quote-whatsapp-template-tokens small { margin-top: .08rem; color: #7b8ea5; font-size: .65rem; }
.quote-whatsapp-template-token-icon { display: grid; flex: 0 0 1.65rem; width: 1.65rem; height: 1.65rem; place-items: center; color: #2f80ed; }
.quote-whatsapp-template-token-icon svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.quote-whatsapp-template-token-icon--money svg { stroke-width: 2.1; }
.quote-whatsapp-template-tip { display: flex; gap: .65rem; margin-left: 0; padding: .75rem 1rem; color: #294560; background: #f3f6fa; border-radius: .45rem; }
.quote-whatsapp-template-tip > span { font-size: 1.1rem; }.quote-whatsapp-template-tip strong { display: block; font-size: .75rem; }.quote-whatsapp-template-tip p { margin: .12rem 0 0; color: #64778c; font-size: .68rem; line-height: 1.45; }
.quote-whatsapp-template-preview { min-width: 0; padding: .8rem; background: linear-gradient(145deg,#eefaf4,#e4f6ed); border-radius: .55rem; }
.quote-whatsapp-template-preview-heading { margin-bottom: .75rem; }.quote-whatsapp-template-preview-heading .quote-whatsapp-template-step-number { background: #13965b; }
.quote-whatsapp-chat { overflow: hidden; background: #efeae2; border-radius: .45rem; box-shadow: 0 .3rem 1rem rgba(23,70,48,.09); }
.quote-whatsapp-chat > header { display: flex; min-height: 3.4rem; align-items: center; gap: .45rem; padding: .55rem .6rem; color: #fff; background: #087e67; }
.quote-whatsapp-chat-back { font-size: 1.65rem; line-height: 1; }.quote-whatsapp-chat-avatar { display: grid; width: 2rem; height: 2rem; place-items: center; color: #ccd7dc; background: linear-gradient(#f8fbfc 45%,#9eafb7 46%); border: 2px solid rgba(255,255,255,.5); border-radius: 50%; font-size: .65rem; }
.quote-whatsapp-chat > header > span:nth-child(3) { display: flex; min-width: 0; flex: 1; flex-direction: column; }.quote-whatsapp-chat > header strong { font-size: .78rem; }.quote-whatsapp-chat > header small { font-size: .6rem; opacity: .86; }
.quote-whatsapp-chat-actions { white-space: nowrap; font-size: .82rem; }
.quote-whatsapp-chat-body { display: flex; min-height: 20rem; flex-direction: column; align-items: flex-start; padding: .65rem; background-color: #efeae2; background-image: radial-gradient(circle at 1rem 1rem,rgba(116,105,92,.07) 0 1px,transparent 1.5px); background-size: 1.45rem 1.45rem; }
.quote-whatsapp-chat-day { align-self: center; margin-bottom: .65rem; padding: .25rem .6rem; color: #607184; background: rgba(255,255,255,.88); border-radius: .35rem; box-shadow: 0 .08rem .2rem rgba(30,50,65,.08); font-size: .6rem; }
.quote-whatsapp-chat-bubble { position: relative; max-width: 88%; padding: .65rem .65rem 1.2rem; color: #182533; background: #fff; border-radius: .15rem .55rem .55rem .55rem; box-shadow: 0 .08rem .25rem rgba(36,48,60,.12); }
.quote-whatsapp-chat-bubble::before { content: ''; position: absolute; top: 0; left: -.4rem; border-top: .45rem solid #fff; border-left: .45rem solid transparent; }
.quote-whatsapp-chat-bubble p { min-height: 2rem; margin: 0; color: inherit; background: transparent; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .7rem; line-height: 1.45; }
.quote-whatsapp-chat-bubble p.is-empty { color: #75847a; font-style: italic; }
.quote-whatsapp-chat-bubble time,.quote-whatsapp-chat-pdf time { position: absolute; right: .45rem; bottom: .3rem; color: #8796a4; font-size: .52rem; }
.quote-whatsapp-chat-pdf { position: relative; display: flex; width: 94%; align-items: center; gap: .55rem; margin-top: .55rem; padding: .55rem 2.7rem .75rem .55rem; color: #24364a; background: #fff; border-radius: .5rem; box-shadow: 0 .08rem .25rem rgba(36,48,60,.12); }
.quote-whatsapp-chat-pdf > span { display: grid; width: 2rem; height: 2.45rem; place-items: end center; padding-bottom: .28rem; color: #fff; background: #ef4444; border-radius: .2rem; font-size: .55rem; font-weight: 800; }
.quote-whatsapp-chat-pdf > div { display: flex; min-width: 0; flex-direction: column; }.quote-whatsapp-chat-pdf strong { overflow: hidden; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }.quote-whatsapp-chat-pdf small { margin-top: .18rem; color: #718196; font-size: .56rem; }
.quote-whatsapp-template-modal .modal-footer { padding: .8rem 1.35rem; background: #fff; border-color: #e2e9f0; }.quote-whatsapp-template-modal .modal-footer .btn { min-height: 2.35rem; font-weight: 700; }.quote-whatsapp-template-modal .modal-footer .btn-success { background: #0a9f57; border-color: #0a9f57; }
.quote-duplicate-warning { border-left: .28rem solid #d99b08; box-shadow: 0 .18rem .6rem rgba(121,85,0,.08); }
.quote-duplicate-warning li + li { margin-top: .25rem; }
.quote-status-gerado { color: #8a5700; background: #fff0c8; }.quote-status-aprovado { color: #087246; background: #dff5e9; }.quote-status-pendente { color: #075da9; background: #e4f1ff; }.quote-status-recusado,.quote-status-cancelado { color: #b12031; background: #ffe5e8; }
.quote-actions { width: 3rem; text-align: right; }
.quote-action-trigger { width: 2.35rem; height: 2.35rem; padding: 0; color: #24435f; background: transparent; border: 0; border-radius: 50%; font-size: 1.5rem; line-height: 1; }
.quote-action-trigger:hover,.quote-action-trigger[aria-expanded=true] { color: #086dcc; background: #eaf4ff; }
.quote-actions .dropdown-menu,.quote-actions-menu-portal { min-width: 13.5rem; padding: .45rem; border-color: #dce5ee; }
.quote-actions .dropdown-item,.quote-actions-menu-portal .dropdown-item { padding: .55rem .7rem; border-radius: .38rem; font-size: .78rem; }.quote-actions form,.quote-actions-menu-portal form { margin: 0; }
.quote-actions-menu-portal {
    position: fixed !important;
    z-index: 1100;
    margin: 0 !important;
    overflow-y: auto;
    transform: none !important;
}
.quote-list-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; color: #607389; border-top: 1px solid var(--quote-line); font-size: .76rem; }
.quote-draft-actions { width: 1%; white-space: nowrap; }
.quote-draft-actions__controls { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; }
.quote-draft-actions__controls form { margin: 0; }
.quote-list-footer .page-link { min-width: 2.2rem; text-align: center; }
.quote-empty-state { display: flex; min-height: 13rem; flex-direction: column; align-items: center; justify-content: center; color: #73869b; text-align: center; }
.quote-empty-state > span { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: .7rem; color: #1a70c3; background: #ebf5ff; border-radius: 50%; }
.quote-empty-state strong { color: #304860; font-size: 1rem; }.quote-empty-state p { margin: .25rem 0 0; }
.quote-tip { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; color: #164a79; background: linear-gradient(90deg,#e8f4ff,#f4faff); border: 1px solid #a9d3fa; border-radius: .65rem; }
.quote-tip > span { color: #0873da; }.quote-tip strong { display: block; }.quote-tip p { margin: .1rem 0 0; color: #486b8e; font-size: .77rem; }

.quote-table.is-grid { min-width: 0; }
.quote-table.is-grid thead { display: none; }
.quote-table.is-grid tbody { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; padding: .9rem; }
.quote-table.is-grid tbody tr:not(.quote-empty-row) { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem 1rem; padding: 1rem; border: 1px solid #dce5ee; border-radius: .7rem; box-shadow: 0 .2rem .65rem rgba(25,56,88,.055); }
.quote-table.is-grid tbody td { display: block; min-width: 0; padding: 0; background: transparent !important; border: 0; }
.quote-table.is-grid tbody td::before { content: attr(data-label); display: block; margin-bottom: .25rem; color: #78899b; font-size: .62rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.quote-table.is-grid .quote-actions { position: absolute; top: .65rem; right: .65rem; width: auto; }
.quote-table.is-grid .quote-actions::before { display: none; }
.quote-table.is-grid .quote-stage-list { flex-wrap: wrap; }
.quote-table.is-grid .quote-empty-row,.quote-table.is-grid .quote-empty-row td { display: block; grid-column: 1/-1; }

html[data-theme="dark"] .quote-dashboard { --quote-line: #2d4357; color: #dce6f0; }
html[data-theme="dark"] .quote-page-header h1,html[data-theme="dark"] .quote-list-card > header h2,html[data-theme="dark"] .quote-table td > strong,html[data-theme="dark"] .quote-metric-content > strong { color: #e1edf8; }
html[data-theme="dark"] .quote-page-header p,html[data-theme="dark"] .quote-breadcrumb,html[data-theme="dark"] .quote-list-card > header p { color: #94a8bb; }
html[data-theme="dark"] .quote-metric-card,html[data-theme="dark"] .quote-filter-card,html[data-theme="dark"] .quote-list-card,html[data-theme="dark"] .quote-status-tabs a { background: #101f2d; }
html[data-theme="dark"] .quote-table thead th { color: #9fb1c2; background: #142738; }
html[data-theme="dark"] .quote-table tbody tr:hover td { background: #142738; }
html[data-theme="dark"] .quote-whatsapp-quick { color: #71d69c; background: #123b2a; border-color: #276344; }
html[data-theme="dark"] .quote-whatsapp-template-modal .modal-content { color: #132943; background: #fff; }
html[data-theme="dark"] .quote-whatsapp-template-modal .btn-close { filter: none; }
html[data-theme="dark"] .quote-dashboard .quote-whatsapp-template-modal .modal-header,html[data-theme="dark"] .quote-dashboard .quote-whatsapp-template-modal .modal-footer { border-color: #e2e9f0; }
html[data-theme="dark"] .quote-dashboard .quote-whatsapp-template-modal .quote-whatsapp-template-step textarea.form-control { color: #17304e; background: #fff; border-color: #cbd8e6; box-shadow: none; }
html[data-theme="dark"] .quote-dashboard .quote-whatsapp-template-modal .quote-whatsapp-template-step textarea.form-control:focus { border-color: #5595ec; box-shadow: 0 0 0 .18rem rgba(47,128,237,.13); }
html[data-theme="dark"] .quote-table.is-grid tbody tr:not(.quote-empty-row) { background: #142738; }
html[data-theme="dark"] .quote-tip { color: #b8daf8; background: linear-gradient(90deg,#102a42,#142638); border-color: #28587f; }

@media (max-width: 1399.98px) { .quote-metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.quote-filter-grid { grid-template-columns: minmax(16rem,1.5fr) minmax(11rem,.7fr) minmax(18rem,1fr) 8rem; } }
@media (max-width: 991.98px) { .quote-page-header { align-items: flex-start; }.quote-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.quote-table.is-grid tbody { grid-template-columns: 1fr; }.quote-whatsapp-template-layout { grid-template-columns: 1fr; }.quote-whatsapp-template-preview { margin-left: 2rem; }.quote-whatsapp-chat-body { min-height: 15rem; } }
@media (max-width: 767.98px) { .quote-page-header,.quote-list-card > header,.quote-list-footer { align-items: stretch; flex-direction: column; }.quote-page-actions { justify-content: flex-start; }.quote-metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.quote-filter-grid { grid-template-columns: 1fr; }.quote-list-tools { align-items: stretch; flex-wrap: wrap; }.quote-list-tools form,.quote-list-tools form label { width: 100%; }.quote-status-tabs .quote-clear-filters { margin-left: 0; }.quote-table.is-grid tbody tr:not(.quote-empty-row) { grid-template-columns: 1fr; }.quote-list-footer nav { align-self: flex-end; }.quote-whatsapp-template-tokens { grid-template-columns: repeat(2,minmax(0,1fr)); }.quote-whatsapp-template-modal .modal-header,.quote-whatsapp-template-modal .modal-footer { padding-right: 1rem; padding-left: 1rem; }.quote-whatsapp-template-layout { padding: 1rem; } }
@media (max-width: 479.98px) { .quote-page-actions,.quote-page-actions > *, .quote-page-actions .btn-group { width: 100%; }.quote-page-actions .quote-export-button,.quote-page-actions .quote-new-button { flex: 1; }.quote-metric-grid { grid-template-columns: 1fr; }.quote-metric-card { min-height: 7.8rem; }.quote-period-field > div { flex-wrap: wrap; }.quote-period-field > div input { flex: 1 1 40%; }.quote-list-tools { flex-direction: column; }.quote-whatsapp-template-title p { display: none; }.quote-whatsapp-template-title h2 { font-size: 1rem; }.quote-whatsapp-template-brand { flex-basis: 2.1rem; width: 2.1rem; height: 2.1rem; }.quote-whatsapp-template-step textarea,.quote-whatsapp-template-tokens { width: 100%; margin-left: 0; }.quote-whatsapp-template-tokens { grid-template-columns: 1fr; }.quote-whatsapp-template-preview { margin-left: 0; }.quote-whatsapp-template-modal .modal-footer { flex-wrap: nowrap; }.quote-whatsapp-template-modal .modal-footer .btn { font-size: .76rem; } }
@media print { .app-sidebar,.app-topbar,.quote-page-actions,.quote-filter-card,.quote-status-tabs,.quote-list-tools,.quote-actions,.quote-tip { display: none !important; }.app-content { margin: 0 !important; }.app-main { padding: 0 !important; }.quote-metric-grid { grid-template-columns: repeat(3,1fr); }.quote-list-card { box-shadow: none; }.quote-table { min-width: 100%; font-size: 8pt; } }

/* Compatibilidade entre navegadores e leitura confortável no desktop. */
html { overflow-x: hidden; }
body.authenticated { min-width: 0; overflow-x: hidden; }
.app-content,
.app-main { min-width: 0; }
.app-topbar { min-width: 0; gap: .75rem; }
.app-topbar .topbar-title { min-width: 0; flex: 0 1 19rem; }
.topbar-global-search-shell { min-width: 0; width: min(42rem, 42vw); flex: 1 1 24rem; }
.topbar-global-search,
.topbar-global-search input,
.topbar-actions { min-width: 0; }

/* A lista de orçamentos era renderizada com textos pequenos demais para uso
   operacional prolongado. Mantemos a tabela horizontal quando necessário,
   mas aumentamos a leitura sem alterar a densidade das demais telas. */
.quote-table { font-size: 1rem; }
.quote-table:not(.is-grid) { table-layout: fixed; }
.quote-table:not(.is-grid) th:nth-child(1),
.quote-table:not(.is-grid) td:nth-child(1) { width: 12rem; }
.quote-table:not(.is-grid) th:nth-child(2),
.quote-table:not(.is-grid) td:nth-child(2) { width: 10rem; }
.quote-table:not(.is-grid) th:nth-child(3),
.quote-table:not(.is-grid) td:nth-child(3) { width: 9rem; }
.quote-table:not(.is-grid) th:nth-child(4),
.quote-table:not(.is-grid) td:nth-child(4) { width: 12rem; }
.quote-table:not(.is-grid) th:nth-child(5),
.quote-table:not(.is-grid) td:nth-child(5) { width: 15.5rem; }
.quote-table:not(.is-grid) th:nth-child(6),
.quote-table:not(.is-grid) td:nth-child(6),
.quote-table:not(.is-grid) th:nth-child(7),
.quote-table:not(.is-grid) td:nth-child(7),
.quote-table:not(.is-grid) th:nth-child(8),
.quote-table:not(.is-grid) td:nth-child(8) { width: 9rem; }
.quote-table:not(.is-grid) th:nth-child(9),
.quote-table:not(.is-grid) td:nth-child(9) { width: 8.5rem; }
.quote-table:not(.is-grid) th:nth-child(10),
.quote-table:not(.is-grid) td:nth-child(10) { width: 3rem; }
.quote-table thead th { font-size: .8rem; }
.quote-table td > strong { font-size: 1rem; line-height: 1.3; }
.quote-table td > small { font-size: .84rem; line-height: 1.35; }
.quote-code-cell a,
.quote-code-cell small { overflow-wrap: normal; white-space: nowrap; }
.quote-code-cell { gap: .35rem; }
.quote-code-cell a { font-size: .95rem; line-height: 1.15; }
.quote-code-cell small { font-size: .78rem; line-height: 1.3; }
.quote-table td:nth-child(6) > strong,
.quote-table td:nth-child(7) > strong,
.quote-table td:nth-child(8) > strong { font-size: .92rem; }
.quote-stage b { font-size: .84rem; }
.quote-stage small { font-size: .78rem; }
.quote-status-actions { min-width: max-content; flex-wrap: nowrap; }
.quote-status-badge { min-width: max-content; font-size: .8rem; overflow-wrap: normal; white-space: nowrap; }

/* Escala tipográfica acessível: aumenta o texto sem aplicar zoom no layout. */
body.authenticated { font-size: 1.0625rem; }
body.authenticated .app-main,
body.authenticated .app-topbar { line-height: 1.4; }
body.authenticated .app-main :where(small, .small) {
    font-size: max(.75rem, .88em);
    line-height: 1.35;
}
body.authenticated .app-main :where(p, li, td, th, label, .form-text) {
    overflow-wrap: anywhere;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .app-topbar { padding-inline: 1rem; }
    .app-topbar .topbar-title { flex-basis: 12rem; }
    .topbar-global-search-shell { flex-basis: 16rem; }
}

/* Mantém os serviços contratados legíveis em telas estreitas, sem forçar
   a tabela a criar rolagem horizontal apenas por causa dos badges. */
.quote-stage-list--stacked {
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
}
.quote-stage-list--stacked .quote-stage {
    width: 100%;
    min-width: 0;
}
.quote-stage-list--stacked .quote-stage b {
    overflow-wrap: anywhere;
}

/* Commercial quotes */
.quote-commercial-card { border-top: .24rem solid var(--ce-accent); }
.quote-value-card { border-top: .24rem solid var(--ce-accent); }
.quote-rejection-fieldset { margin: 0 0 .8rem; padding: 0; border: 0; }
.quote-rejection-options { display: grid; gap: .5rem; }
.quote-rejection-option { display: flex; align-items: flex-start; gap: .65rem; margin: 0; padding: .65rem .75rem; border: 1px solid var(--bs-border-color); border-radius: .55rem; background: var(--bs-body-bg); cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.quote-rejection-option:hover { border-color: var(--bs-danger); }
.quote-rejection-option:has(.form-check-input:checked) { border-color: var(--bs-danger); background: rgba(var(--bs-danger-rgb),.08); box-shadow: 0 0 0 1px rgba(var(--bs-danger-rgb),.08); }
.quote-rejection-option .form-check-input { flex: 0 0 auto; margin: .15rem 0 0; }
.quote-rejection-option span { display: flex; min-width: 0; flex-direction: column; }
.quote-rejection-option strong { font-size: .84rem; }
.quote-rejection-option small { color: var(--bs-secondary-color); font-size: .7rem; line-height: 1.35; }
.quote-rejection-options.is-invalid .quote-rejection-option { border-color: var(--bs-danger); }
.quote-rejection-detail { margin: 0 0 .8rem; padding: .7rem; border: 1px solid var(--bs-border-color); border-radius: .55rem; background: rgba(var(--bs-secondary-rgb),.04); }
.quote-rejection-detail .form-label { margin-bottom: .35rem; }
.quote-raw-message {
    padding: 1rem;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    color: #33485f;
    background: #f5f8fb;
    border: 1px solid #dce4ed;
    border-radius: .65rem;
}
html[data-theme="dark"] .quote-raw-message {
    color: #c7d5e3;
    background: #0b1824;
    border-color: #30465a;
}
.quote-formatted-message {
    font-family: var(--bs-body-font-family);
    font-size: .95rem;
    line-height: 1.65;
}
.quote-formatted-message-shell { position: relative; }
.quote-formatted-message-shell .quote-formatted-message { padding-right: 3.75rem; }
.quote-message-copy {
    position: absolute;
    z-index: 2;
    top: 1.7rem;
    right: 1.7rem;
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    color: #274765;
    background: rgba(255,255,255,.9);
    border: 1px solid #cbd9e7;
    border-radius: .55rem;
    transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}
.quote-message-copy:hover { color: #0b4b82; background: #fff; border-color: #7ba7ce; transform: translateY(-1px); }
.quote-message-copy:focus-visible { outline: 3px solid rgba(13,110,253,.25); outline-offset: 2px; }
.quote-message-copy svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quote-message-copy.is-copied { color: #13733d; border-color: #70bd91; background: #edf9f2; }
html[data-theme="dark"] .quote-message-copy { color: #d7e6f4; background: #152839; border-color: #426078; }
html[data-theme="dark"] .quote-message-copy:hover { background: #1c354a; border-color: #78a8cf; }
.quote-flow-shell {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(145deg, #f7faff, #eef4fa);
    border: 1px solid #dce6f0;
    border-radius: 1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.quote-flow-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.quote-flow-heading .form-label { color: #173b64; font-size: 1.05rem; font-weight: 800; }
.quote-flow-heading .btn { min-height: 2.55rem; padding-inline: 1rem; border-radius: .65rem; }
.quote-flow-heading__title-row { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.quote-flow-heading__title-row .btn { min-height: 2rem; padding: .3rem .8rem; }
.quote-flow-add-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.quote-flow-summary {
    display: inline-flex;
    align-items: center;
    margin-top: .55rem;
    padding: .32rem .65rem;
    color: #174a78;
    background: #e1edf8;
    border: 1px solid #c8dcec;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 750;
}
.shipment-flow-heading-meta { display:flex; flex-wrap:wrap; align-items:flex-start; gap:.55rem; }
.shipment-flow-acronym { width:clamp(5.5rem,10vw,10rem); min-height:1.85rem; padding:.22rem .55rem; color:#154f80; background:#e9f3fc; border:1px solid #b9d4e9; border-radius:999px; outline:0; font-size:.68rem; font-weight:800; text-align:center; cursor:text; }
.shipment-flow-acronym::placeholder { color:#154f80; opacity:1; }
.shipment-flow-acronym:hover { background:#deedf9; border-color:#8fbada; }
.shipment-flow-acronym:focus { width:clamp(7rem,13vw,12rem); color:#173d66; background:#fff; border-color:#1680d3; box-shadow:0 0 0 .18rem rgba(22,128,211,.15); }
.quote-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
    gap: .9rem;
}
.quote-flow-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d9e3ee;
    border-radius: .9rem;
    box-shadow: 0 .35rem 1rem rgba(24, 55, 91, .09);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.quote-flow-card.has-open-search-select {
    position: relative;
    z-index: 1095;
    overflow: visible;
}
.quote-flow-card:hover,
.quote-flow-card:focus-within {
    border-color: #a9bfd6;
    box-shadow: 0 .55rem 1.35rem rgba(24, 55, 91, .13);
    transform: translateY(-2px);
}
.quote-flow-card.is-dragging {
    opacity: .55;
    border-color: var(--ce-primary);
    box-shadow: 0 0 0 .2rem rgba(20, 79, 135, .16);
    transform: scale(.985);
}
.quote-flow-card__header {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-height: 3.15rem;
    padding: .7rem .85rem;
    color: #173b64;
    background: #f7f9fc;
    border-bottom: 1px solid #e3eaf2;
}
.quote-flow-card--coleta .quote-flow-card__header { box-shadow: inset 4px 0 #dc8a00; }
.quote-flow-card--vaga .quote-flow-card__header { box-shadow: inset 4px 0 #1769aa; }
.quote-flow-card--entrega .quote-flow-card__header { box-shadow: inset 4px 0 #27885c; }
.quote-flow-card__step {
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    flex: 0 0 1.7rem;
    color: #fff;
    background: var(--ce-primary);
    border-radius: 50%;
    font-size: .76rem;
    font-weight: 800;
}
.quote-flow-card__drag,
.quote-flow-card__actions button {
    display: inline-grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    color: #577089;
    background: transparent;
    border: 1px solid transparent;
    border-radius: .45rem;
    line-height: 1;
}
.quote-flow-card__drag { cursor: grab; font-weight: 900; letter-spacing: -.2rem; }
.quote-flow-card__drag:active { cursor: grabbing; }
.quote-flow-card__actions { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.quote-flow-card__actions button:hover:not(:disabled),
.quote-flow-card__actions button:focus-visible,
.quote-flow-card__drag:hover,
.quote-flow-card__drag:focus-visible {
    color: var(--ce-primary);
    background: #e6eef7;
    border-color: #c3d5e6;
}
.quote-flow-card__actions button:disabled { opacity: .3; cursor: not-allowed; }
.quote-flow-card__actions .quote-flow-card__remove:hover:not(:disabled),
.quote-flow-card__actions .quote-flow-card__remove:focus-visible {
    color: #b42318;
    background: #fff0ee;
    border-color: #f3b8b2;
}
.quote-flow-card__body { display: grid; align-content: start; gap: .65rem; padding: .85rem; }
.quote-flow-card__body > .form-select,
.quote-flow-card__body > .input-group,
.quote-flow-card__body [data-stage-route-choice-wrap] .search-select,
.quote-flow-primary-route .search-select { min-height: 2.65rem; }
.quote-flow-card__provider-row { display: flex; align-items: stretch; gap: .45rem; min-width: 0; }
.quote-flow-card__provider-row > .form-select,
.quote-flow-card__provider-row > .search-select { flex: 1 1 auto; min-width: 0; }
.quote-flow-card__hint { min-height: 1.15rem; color: #708196; font-size: .75rem; line-height: 1.3; }
.quote-flow-card__route-label {
    display: block;
    margin-bottom: .25rem;
    color: #536b82;
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.quote-flow-card__route-pending {
    padding: .55rem;
    background: #fff8e1;
    border: 1px solid #d99a17;
    border-radius: .55rem;
}
.quote-flow-card__route-pending .quote-flow-card__route-label { color: #805300; }
.quote-flow-primary-route {
    margin-top: .25rem;
    padding-top: .75rem;
    border-top: 1px dashed #c9d7e5;
}
.quote-flow-route-fallback:not(.d-none) {
    max-width: 36rem;
    margin-top: .9rem;
    padding: .85rem;
    background: #fff;
    border: 1px solid #d9e3ee;
    border-radius: .8rem;
}
.quote-flow-route-fallback .quote-flow-primary-route { margin-top: 0; padding-top: 0; border-top: 0; }
.quote-flow-primary-route__help {
    margin-top: .3rem;
    color: #60748a;
    font-size: .68rem;
    line-height: 1.25;
}
.quote-flow-primary-route__help:empty,
.quote-flow-card__hint:empty { display: none; }
.quote-flow-card__route {
    overflow: hidden;
    color: #60748a;
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html[data-theme="dark"] .quote-flow-shell {
    background: linear-gradient(145deg, #102231, #0d1c29);
    border-color: #30465a;
}
html[data-theme="dark"] .quote-flow-card { background: #142636; border-color: #30465a; }
html[data-theme="dark"] .quote-flow-card__header { color: #dce6f0; background: #192d3f; border-color: #30465a; }
html[data-theme="dark"] .quote-flow-card__hint,
html[data-theme="dark"] .quote-flow-card__route,
html[data-theme="dark"] .quote-flow-card__route-label,
html[data-theme="dark"] .quote-flow-primary-route__help { color: #9aadc0; }
html[data-theme="dark"] .quote-flow-primary-route { border-color: #3b5063; }
html[data-theme="dark"] .quote-flow-card__route-pending {
    background: #3a3017;
    border-color: #b98318;
}
html[data-theme="dark"] .quote-flow-card__route-pending .quote-flow-card__route-label { color: #ffd77a; }
html[data-theme="dark"] .quote-flow-route-fallback { background: #142636; border-color: #30465a; }
html[data-theme="dark"] .quote-flow-summary {
    color: #c9e2f8;
    background: #17344d;
    border-color: #315676;
}
html[data-theme="dark"] .quote-flow-card__drag,
html[data-theme="dark"] .quote-flow-card__actions button { color: #a9bdcf; }
html[data-theme="dark"] .quote-flow-card__actions button:hover:not(:disabled),
html[data-theme="dark"] .quote-flow-card__actions button:focus-visible,
html[data-theme="dark"] .quote-flow-card__drag:hover,
html[data-theme="dark"] .quote-flow-card__drag:focus-visible {
    color: #dcecff;
    background: #243e54;
    border-color: #41617c;
}
@media (max-width: 575.98px) {
    .quote-flow-shell { padding: .75rem; }
    .quote-flow-heading { align-items: stretch; flex-direction: column; }
    .quote-flow-add-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quote-flow-heading .btn { width: 100%; padding-inline: .55rem; }
    .quote-flow-heading__title-row .btn { width: auto; }
    .quote-flow-grid { grid-template-columns: 1fr; }
    .quote-flow-card:hover,
    .quote-flow-card:focus-within { transform: none; }
}

/* Quote editor */
.quote-editor { --quote-editor-line: #dce6f0; color: #18324e; }
.quote-editor-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1rem; }
.quote-editor-header h1 { margin: .35rem 0 .2rem; color: #102d4d; font-size: 1.8rem; font-weight: 800; letter-spacing: -.035em; }
.quote-editor-header p { margin: 0; color: #58708a; font-size: .85rem; }
.quote-editor-breadcrumb { display: flex; align-items: center; gap: .55rem; color: #71849a; font-size: .76rem; }
.quote-editor-breadcrumb a { color: #32648f; text-decoration: none; }.quote-editor-breadcrumb strong { color: #173958; }
.quote-editor-header__actions { display: flex; flex: 0 0 auto; gap: .6rem; }.quote-editor-header__actions .btn { min-width: 7.5rem; min-height: 2.8rem; }
.quote-editor-steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin-bottom: 1rem; overflow: hidden; background: #fff; border: 1px solid var(--quote-editor-line); border-radius: .75rem; box-shadow: 0 .25rem .8rem rgba(20,55,88,.06); }
.quote-editor-steps button { position: relative; display: flex; min-width: 0; align-items: center; gap: .65rem; padding: .8rem 1rem; color: #466078; background: transparent; border: 0; text-align: left; }
.quote-editor-steps button:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -.34rem; width: .7rem; height: .7rem; background: #fff; border-top: 1px solid #d5e0ea; border-right: 1px solid #d5e0ea; transform: translateY(-50%) rotate(45deg); }
.quote-editor-steps button > span { display: grid; width: 2.15rem; height: 2.15rem; flex: 0 0 2.15rem; place-items: center; color: #193d61; background: #e1ebf5; border-radius: 50%; font-weight: 800; }
.quote-editor-steps button > b { display: flex; min-width: 0; flex-direction: column; font-size: .78rem; }.quote-editor-steps button small { margin-top: .08rem; overflow: hidden; color: #70849a; font-size: .66rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.quote-editor-steps button.active { color: #0768d4; }.quote-editor-steps button.active > span { color: #fff; background: #0873df; box-shadow: 0 .2rem .6rem rgba(8,115,223,.28); }.quote-editor-steps button.active small { color: #0873df; }
.quote-editor-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(18rem,21rem); align-items: start; gap: 1rem; }
.quote-editor-main,.quote-editor-form { display: grid; min-width: 0; gap: .8rem; }
.quote-editor-notice { margin: 0; padding: .48rem .85rem; color: #24536d; background: #edf9fc; border-color: #cdebf2; border-left: 3px solid #2a8ba5; border-radius: .58rem; font-size: .78rem; line-height: 1.35; }
.quote-validation-summary { margin: 0; border-radius: .65rem; }
.quote-validation-summary [data-quote-error-link] { display: inline; padding: 0; color: inherit; background: transparent; border: 0; font-weight: 650; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16rem; }
.quote-validation-summary [data-quote-error-link]:hover,.quote-validation-summary [data-quote-error-link]:focus-visible { color: #842029; text-decoration-thickness: 2px; }
.quote-editor .quote-flow-card.has-validation-error { border-color: #dc3545; box-shadow: 0 0 0 .15rem rgba(220,53,69,.12); }
.quote-inline-validation-error { margin-top: .35rem; color: #b02a37; font-size: .72rem; font-weight: 650; }
.quote-editor-section { margin: 0; scroll-margin-top: 5rem; border-color: var(--quote-editor-line); border-radius: .75rem; box-shadow: 0 .28rem .85rem rgba(20,55,88,.065); }
.quote-editor-section > .card-header { display: flex; min-height: 3.6rem; align-items: center; gap: .75rem; padding: .72rem .9rem; background: #fff; border-bottom-color: #e7edf3; }
.quote-editor-section > .card-header > div { min-width: 0; }.quote-editor-section > .card-header h2 { margin: 0; color: #153655; font-size: .98rem; font-weight: 800; }.quote-editor-section > .card-header p { margin: .12rem 0 0; overflow: hidden; color: #71849a; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.quote-editor-section__icon { display: grid; width: 2.25rem; height: 2.25rem; flex: 0 0 2.25rem; place-items: center; color: #0873df; background: #e9f4ff; border-radius: .65rem; }.quote-editor-section__icon svg,.quote-flow-endpoint svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quote-editor-section__state { display: inline-flex; align-items: center; margin-left: auto; padding: .3rem .58rem; color: #517087; background: #f2f6fa; border-radius: 99px; font-size: .65rem; font-weight: 700; white-space: nowrap; }
.quote-editor-section__state.is-complete { color: #087548; background: #e1f7ea; }.quote-editor-section__state.is-complete::before { content: '✓'; margin-right: .3rem; }
.quote-editor-section__toggle { display: grid; width: 2rem; height: 2rem; flex: 0 0 2rem; place-items: center; padding: 0; color: #315676; background: transparent; border: 0; border-radius: .45rem; font-size: 1rem; }.quote-editor-section__toggle:hover { color: #0873df; background: #edf6ff; }.quote-editor-section.is-collapsed > .card-header { border-bottom: 0; }
.quote-editor-section__toggle.is-edit-action { width: auto; padding: 0 .65rem; color: #075fae; background: #edf6ff; border: 1px solid #c8def1; font-size: .66rem; font-weight: 750; }
.quote-editor-primary-grid { display: grid; grid-template-columns: repeat(24,minmax(0,1fr)); align-items: start; gap: .65rem; }.quote-editor-primary-grid > * { min-width: 0; }.quote-primary-field--client-name { grid-column: span 6; }.quote-primary-field--client-type { grid-column: span 4; }.quote-primary-field--client-document,.quote-primary-field--client-phone { grid-column: span 4; }.quote-primary-field--client-email { grid-column: span 6; }.quote-primary-field--vehicle-name { grid-column: span 6; }.quote-primary-field--vehicle-plate { grid-column: span 3; }.quote-primary-field--vehicle-size,.quote-primary-field--vehicle-slots { grid-column: span 4; }.quote-primary-field--vehicle-condition { grid-column: span 9; }.quote-primary-field--vehicle-color { grid-column: span 6; }
#shipment-section-vehicle .quote-primary-field--vehicle-plate { grid-column: span 5; }
#shipment-section-vehicle .quote-primary-field--vehicle-condition { grid-column: span 7; }
.quote-editor-secondary-fields { overflow: hidden; background: #f8fbfe; border: 1px solid #dfe8f1; border-radius: .55rem; }.quote-editor-secondary-fields > summary { display: flex; align-items: center; gap: .55rem; padding: .58rem .72rem; color: #29618f; cursor: pointer; font-size: .7rem; font-weight: 750; list-style: none; }.quote-editor-secondary-fields > summary::before { content: '+'; display: grid; width: 1.15rem; height: 1.15rem; place-items: center; color: #0872d8; background: #e7f3ff; border-radius: 50%; }.quote-editor-secondary-fields[open] > summary::before { content: '−'; }.quote-editor-secondary-fields > summary small { margin-left: auto; color: #74899e; font-size: .62rem; font-weight: 500; }.quote-editor-secondary-fields > .row { padding: .15rem .72rem .8rem; }
.quote-editor-section > .card-body { padding: .85rem 1rem 1rem; }.quote-editor-section .form-label { margin-bottom: .28rem; color: #294866; font-size: .72rem; font-weight: 700; }.quote-editor-section .form-control,.quote-editor-section .form-select,.quote-editor-section .input-group-text { min-height: 2.45rem; font-size: .78rem; }.quote-editor-section .form-text { font-size: .66rem; }
.quote-editor-message { min-height: 9.5rem; resize: vertical; line-height: 1.5; }
.quote-message-workspace { display: grid; grid-template-columns: minmax(0,3fr) minmax(18rem,2fr); gap: .9rem; align-items: stretch; }
.quote-message-input { display: flex; min-width: 0; flex-direction: column; }
.quote-message-input > .form-label { margin-bottom: .45rem; color: #173f63; font-size: .88rem; font-weight: 800; line-height: 1.25; }
.quote-message-input .quote-editor-message { min-height: 16rem; flex: 1 1 auto; border-color: #c9d8e6; border-radius: .62rem; box-shadow: inset 0 1px 2px rgba(20,55,86,.025); }
.quote-message-input__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .7rem; }
.quote-message-input__actions > span { color: #687b8e; font-size: .84rem; line-height: 1.35; }
.quote-message-example { display: flex; min-width: 0; flex-direction: column; overflow: hidden; color: #173b5c; background: #fbfdff; border: 1px solid #bfdcf1; border-radius: .7rem; }
.quote-message-example__header { display: flex; min-height: 2.7rem; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .68rem; background: linear-gradient(180deg,#f2f9ff,#eaf5fd); border-bottom: 1px solid #d5e9f7; }
.quote-message-example h3 { margin: 0; color: #153f65; font-size: .88rem; font-weight: 800; line-height: 1.25; }
.quote-message-example__copy { display: inline-flex; min-height: 1.85rem; flex: 0 0 auto; align-items: center; gap: .3rem; padding: .27rem .52rem; color: #086cc8; background: #fff; border: 1px solid #a9d3f2; border-radius: .46rem; font-size: .67rem; font-weight: 750; white-space: nowrap; transition: color .15s ease,background .15s ease,border-color .15s ease; }
.quote-message-example__copy:hover { color: #064f91; background: #fff; border-color: #72b7e8; }
.quote-message-example__copy:focus-visible { outline: 3px solid rgba(13,110,253,.22); outline-offset: 2px; }
.quote-message-example__copy.is-copied { color: #13733d; background: #edf9f2; border-color: #70bd91; }
.quote-message-example__content { min-height: 0; flex: 1 1 auto; margin: .68rem; padding: .72rem .78rem; overflow: auto; color: #23445f; background: #fff; border: 1px solid #d3e3ef; border-radius: .55rem; font-family: var(--bs-font-monospace); font-size: .8rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
html[data-theme="dark"] .quote-message-input > .form-label { color: #d8e9f7; }
html[data-theme="dark"] .quote-message-input__actions > span { color: #9fb0c0; }
html[data-theme="dark"] .quote-message-example { color: #c9d9e7; background: #0e2233; border-color: #315574; }
html[data-theme="dark"] .quote-message-example__header { background: linear-gradient(180deg,#173247,#122b3f); border-color: #315574; }
html[data-theme="dark"] .quote-message-example h3 { color: #d8e9f7; }
html[data-theme="dark"] .quote-message-example__copy { color: #79c0ff; background: rgba(13,36,55,.82); border-color: #315d7e; }
html[data-theme="dark"] .quote-message-example__content { color: #c9d9e7; background: rgba(8,24,37,.82); border-color: #315574; }
html[data-theme="dark"] .quote-editor-notice { color: #b9d9e7; background: #102a35; border-color: #254a59; border-left-color: #4aa8bd; }
.quote-rate-suggestion { display: grid; grid-template-columns: 2rem minmax(0,1fr) auto; align-items: center; gap: .65rem; padding: .62rem .75rem; color: #2b5276; background: #f1f8ff; border: 1px solid #cfe3f6; border-radius: .58rem; }.quote-rate-suggestion > span { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; color: #0873df; background: #fff; border-radius: 50%; font-size: .85rem; }.quote-rate-suggestion > div { display: flex; min-width: 0; flex-direction: column; }.quote-rate-suggestion > div small { color: #637e97; font-size: .61rem; }.quote-rate-suggestion > div strong { overflow: hidden; color: #173f63; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }.quote-rate-suggestion details { position: relative; }.quote-rate-suggestion summary { padding: .35rem .55rem; color: #0868c5; border-radius: .4rem; cursor: pointer; font-size: .66rem; font-weight: 750; list-style: none; white-space: nowrap; }.quote-rate-suggestion summary::after { content: '⌄'; margin-left: .35rem; }.quote-rate-suggestion details[open] { grid-column: 1 / -1; width: 100%; }.quote-rate-suggestion details[open] summary { width: max-content; margin: .35rem 0 .45rem auto; }.quote-rate-suggestion__options { padding: .7rem; background: #fff; border: 1px solid #d9e5f0; border-radius: .5rem; }

.quote-editor .quote-flow-shell { padding: .25rem 0 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.quote-editor .quote-flow-heading { margin: 0 0 .75rem; padding-bottom: .7rem; border-bottom: 1px solid #e5ecf3; }
.quote-editor .quote-flow-heading .form-label { font-size: .88rem; }.quote-editor .quote-flow-heading .btn { min-height: 2.1rem; padding: .3rem .65rem; border-radius: .48rem; font-size: .7rem; }
.quote-editor .quote-flow-summary { margin-top: .35rem; padding: .22rem .5rem; font-size: .65rem; }
.quote-flow-endpoint { position: relative; display: flex; align-items: center; gap: .65rem; min-height: 3.2rem; margin-left: .4rem; }
.quote-flow-endpoint::after { content: ''; position: absolute; z-index: 0; top: 2.55rem; bottom: -1rem; left: 1.08rem; width: 2px; background: #b9d0e7; }
.quote-flow-endpoint--destination::after { display: none; }.quote-flow-endpoint > span { position: relative; z-index: 1; display: grid; width: 2.15rem; height: 2.15rem; flex: 0 0 2.15rem; place-items: center; color: #0873df; background: #e9f4ff; border-radius: 50%; box-shadow: 0 0 0 .25rem #fff; }
.quote-flow-endpoint > div { display: flex; flex-direction: column; }
.quote-flow-endpoint__control { width: min(34rem,calc(100% - 2.8rem)); min-width: 0; flex: 0 1 34rem; }
.quote-flow-endpoint__control > label { margin-bottom: .18rem; color: #6c8196; font-size: .58rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.quote-flow-endpoint__control > .form-select,.quote-flow-endpoint__control > .search-select { width: 100%; }
.quote-flow-endpoint__control > .form-select,.quote-flow-endpoint__control .search-select-input { min-height: 2.1rem; font-size: .7rem; font-weight: 700; }
.quote-flow-endpoint__control .invalid-feedback { font-size: .6rem; }
.quote-flow-endpoint small { color: #6c8196; font-size: .65rem; font-weight: 700; text-transform: uppercase; }.quote-flow-endpoint strong { color: #153959; font-size: .82rem; }
.quote-editor .quote-flow-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: .65rem; margin: .15rem 0 .15rem 3.05rem; }
.quote-editor .quote-flow-grid::before { content: ''; position: absolute; top: -.8rem; bottom: -.8rem; left: -1.58rem; width: 2px; background: #b9d0e7; }
.quote-editor .quote-flow-card { position: relative; display: grid; grid-template-columns: minmax(12.5rem,.85fr) minmax(0,2.7fr); min-height: 4.45rem; overflow: visible; background: #fff; border-color: #dce6ef; border-radius: .48rem; box-shadow: 0 .12rem .42rem rgba(20,55,88,.055); transform: none; }
.quote-editor .quote-flow-card::before { content: ''; position: absolute; top: 50%; left: -1.94rem; width: .7rem; height: .7rem; background: #fff; border: 2px solid #1670c5; border-radius: 50%; transform: translateY(-50%); }
.quote-editor .quote-flow-card:hover,.quote-editor .quote-flow-card:focus-within { border-color: #a8c5df; box-shadow: 0 .22rem .65rem rgba(20,55,88,.09); transform: none; }
.quote-editor .quote-flow-card__header { position: static; display: grid; grid-template-columns: .85rem 1.25rem 2.35rem minmax(0,1fr); min-height: 100%; align-items: center; gap: .42rem; padding: .55rem .62rem; border: 0; border-right: 1px solid #e4ebf2; border-radius: .46rem 0 0 .46rem; box-shadow: none; }
.quote-editor .quote-flow-card__header[data-stage-drag-zone] { cursor: grab; user-select: none; }
.quote-editor .quote-flow-card__header[data-stage-drag-zone]:active { cursor: grabbing; }
.quote-editor .quote-flow-card__header[data-stage-drag-zone] button,
.quote-editor .quote-flow-card__header[data-stage-drag-zone] select { cursor: pointer; }
.quote-editor .quote-flow-card--coleta .quote-flow-card__header { background: linear-gradient(90deg,#fff9e7,#fffdf7); box-shadow: inset 2px 0 #e6a000; }.quote-editor .quote-flow-card--coleta::before { border-color: #dfa000; }
.quote-editor .quote-flow-card--vaga .quote-flow-card__header { background: linear-gradient(90deg,#eef7ff,#f8fbff); box-shadow: inset 2px 0 #1874cf; }
.quote-editor .quote-flow-card--entrega .quote-flow-card__header { background: linear-gradient(90deg,#ecfaf3,#f8fdfb); box-shadow: inset 2px 0 #14905b; }.quote-editor .quote-flow-card--entrega::before { border-color: #14905b; }
.quote-editor .quote-flow-card__step { width: 1.25rem; height: auto; color: #175a96; background: transparent; border: 0; border-radius: 0; font-size: .82rem; }
.quote-editor .quote-flow-card--coleta .quote-flow-card__step { color: #b97900; }.quote-editor .quote-flow-card--entrega .quote-flow-card__step { color: #138253; }
.quote-flow-card__type-icon { display: grid; width: 2.35rem; height: 2.35rem; flex: 0 0 2.35rem; place-items: center; color: #126ac1; background: #dfefff; border-radius: .52rem; }.quote-flow-card__type-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.quote-flow-card--coleta .quote-flow-card__type-icon,.quote-flow-card--entrega .quote-flow-card__type-icon { color: #078451; background: #dff7ea; }
.quote-editor .quote-flow-card__drag { width: .85rem; height: 2rem; overflow: hidden; color: #8093a5; border: 0; border-radius: 0; font-size: .72rem; }
.quote-flow-card__identity { display: flex; min-width: 0; flex-direction: column; justify-content: center; }.quote-editor .quote-flow-card__identity strong { overflow: hidden; color: #173b5b; font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }.quote-editor .quote-flow-card__identity small { margin-top: .12rem; overflow: hidden; color: #71859a; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.quote-editor .quote-flow-card__subtype { width: 100%; min-height: 1.25rem; margin-top: .02rem; padding: 0 1.15rem 0 0; overflow: hidden; color: #637c93; background-color: transparent; border: 0; border-radius: 0; box-shadow: none; font-size: .61rem; text-overflow: ellipsis; }
.quote-editor .quote-flow-card__actions { position: absolute; z-index: 2; top: 50%; right: .38rem; gap: .02rem; margin: 0; padding: 0; background: transparent; border: 0; transform: translateY(-50%); }.quote-editor .quote-flow-card__actions button { width: 1.3rem; height: 1.55rem; color: #6f8396; border-radius: .3rem; font-size: .7rem; }
.quote-editor .quote-flow-card__body { display: grid; grid-template-columns: minmax(11rem,1.8fr) minmax(8rem,1fr) minmax(6.3rem,.55fr); align-items: start; gap: .25rem .65rem; padding: .48rem 4.55rem .42rem .68rem; }
.quote-editor .quote-flow-card__provider-row,.quote-editor .quote-flow-card__cost,.quote-editor .quote-flow-card__address,.quote-editor [data-stage-route-choice-wrap],.quote-editor .quote-flow-primary-route { min-width: 0; }
.quote-editor [data-stage-route-choice-wrap],.quote-editor .quote-flow-primary-route { grid-column: 1; grid-row: 1; margin: 0; padding: 0; border: 0; }.quote-editor .quote-flow-card__provider-row { grid-column: 2; grid-row: 1; }.quote-editor [data-stage-amount-wrap] { grid-column: 3; grid-row: 1; }
.quote-editor .quote-flow-card__provider-row,.quote-editor .quote-flow-card__cost,.quote-editor .quote-flow-card__address { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.quote-editor .quote-flow-card__provider-row > label,.quote-editor .quote-flow-card__cost > label,.quote-editor .quote-flow-card__address > label,.quote-editor .quote-flow-card__route-label { display: block; min-height: .75rem; margin: 0 0 .08rem; color: #63798e; font-size: .55rem; font-weight: 750; letter-spacing: .02em; line-height: 1.1; text-transform: none; }
.quote-editor .quote-flow-card__address { grid-column: 1 / -1; grid-row: 3; }
.quote-editor .quote-flow-card__route-proposal { grid-column: 1 / -1; grid-row: 2; padding: .28rem .45rem; color: #805400; background: #fff8df; border: 1px solid #f0d88b; border-radius: .35rem; font-size: .58rem; line-height: 1.25; }
.quote-editor .quote-flow-card__route-proposal.is-error { color: #a21d2f; background: #fff1f3; border-color: #f4bcc5; }
.quote-editor .quote-flow-card__route-proposal.is-success { color: #08783e; background: #edf9f2; border-color: #a9dfc1; }
.quote-editor .quote-flow-card__address > label span { color: #8292a3; font-weight: 500; }
.quote-editor .quote-flow-card__address .form-control { color: #294966; background: #f8fbfe; border-color: #d7e3ee; }
.quote-editor .quote-flow-card__hint { grid-column: 1 / -1; grid-row: 4; min-height: 0; overflow: hidden; color: #8292a3; font-size: .55rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.shipment-create-page .quote-editor-service-section .quote-flow-card:not(.quote-flow-card--expense) { min-height: 6.5rem; }
.shipment-create-page .quote-editor-service-section .quote-flow-card__header { padding-block: .75rem; }
.shipment-create-page .quote-editor-service-section .quote-flow-card__body { row-gap: .4rem; padding-top: .65rem; padding-bottom: .6rem; }
.shipment-create-page .quote-editor-service-section .quote-flow-card__hint { overflow: visible; text-overflow: clip; white-space: normal; }
.shipment-create-page .quote-editor-service-section .quote-flow-grid { container-type: inline-size; }
@container (max-width: 64rem) {
    .shipment-create-page .quote-editor-service-section .quote-flow-card:not(.quote-flow-card--expense) { grid-template-columns: 1fr; min-height: 0; }
    .shipment-create-page .quote-editor-service-section .quote-flow-card:not(.quote-flow-card--expense) .quote-flow-card__header { min-height: 3.75rem; padding-right: 5rem; border-right: 0; border-bottom: 1px solid #e1e9f1; border-radius: .46rem .46rem 0 0; }
    .shipment-create-page .quote-editor-service-section .quote-flow-card:not(.quote-flow-card--expense) .quote-flow-card__body { padding-right: .75rem; }
    .shipment-create-page .quote-editor-service-section .quote-flow-card:not(.quote-flow-card--expense) .quote-flow-card__actions { top: .95rem; transform: none; }
}
.quote-editor .quote-flow-route-fallback:not(.d-none) { max-width: none; margin: .65rem 0 0 3.05rem; }
.quote-editor .quote-flow-card__body [data-stage-route-choice-wrap] .search-select,.quote-editor .quote-flow-primary-route .search-select,.quote-editor .quote-flow-card__provider-row > .form-select,.quote-editor .quote-flow-card__cost .input-group { min-height: 1.95rem; }
.quote-editor .quote-flow-card__body .form-control,.quote-editor .quote-flow-card__body .form-select,.quote-editor .quote-flow-card__body .input-group-text { min-height: 1.95rem; padding-top: .22rem; padding-bottom: .22rem; font-size: .64rem; }
.quote-editor .quote-flow-card__cost .form-control { color: #087d4a; font-weight: 750; text-align: right; }
.quote-editor .quote-flow-card__cost{position:relative}.provider-rate-suggestions{position:absolute;z-index:25;top:calc(100% + .25rem);right:0;display:grid;min-width:14rem;padding:.35rem;background:#fff;border:1px solid #b9cee2;border-radius:.45rem;box-shadow:0 .45rem 1rem rgba(19,53,84,.18)}.provider-rate-suggestions[hidden]{display:none}.provider-rate-suggestions button{display:flex;align-items:center;justify-content:space-between;gap:.75rem;width:100%;padding:.42rem .5rem;color:#173b5b;background:transparent;border:0;border-radius:.32rem;font-size:.65rem;text-align:left}.provider-rate-suggestions button:hover,.provider-rate-suggestions button:focus-visible,.provider-rate-suggestions button.is-selected{color:#0b579b;background:#eaf4ff}.provider-rate-suggestions button strong{overflow:hidden;font-size:.63rem;text-overflow:ellipsis;white-space:nowrap}.provider-rate-suggestions button span{flex:0 0 auto;color:#087d4a;font-weight:800}
.quote-editor .quote-flow-card--withdrawal [data-stage-amount-wrap] { grid-column: 1; }.quote-editor .quote-flow-card--patio-withdrawal [data-stage-amount-wrap] { grid-column: 3; }.quote-editor .quote-flow-card--withdrawal .quote-flow-card__cost .input-group-text,.quote-editor .quote-flow-card--withdrawal .quote-flow-card__cost .form-control { color: #168058; background: #f0faf5; }
.quote-editor .quote-flow-card--patio-withdrawal .search-select.is-disabled .search-select-input { color: #274966; background: #f7fbff; cursor: default; opacity: 1; }
.quote-editor .quote-flow-card__route-pending { padding: .22rem; background: #fff9e8; border-color: #e8b548; border-radius: .38rem; }
.operational-leg-route-wrap { position: relative; }
.operational-leg-route-wrap > .quote-flow-card__route-label { padding-right: 6.8rem; }
.operational-leg-correct { position: absolute; z-index: 2; top: -.08rem; right: 0; padding: 0; color: #1769aa; background: transparent; border: 0; font-size: .56rem; font-weight: 750; line-height: 1; }
.operational-leg-correct:hover,.operational-leg-correct:focus-visible { color: #0a4e8c; text-decoration: underline; }
.operational-leg-preview { margin-top: .75rem; padding: .72rem .8rem; color: #61758a; background: #f5f8fb; border: 1px solid #dce6ef; border-radius: .5rem; font-size: .78rem; font-weight: 650; }
.operational-leg-preview.is-valid { color: #087d4a; background: #edf9f3; border-color: #bce6d0; }
.operational-leg-modal .modal-header small { color: #71859a; font-size: .72rem; }
html[data-theme="dark"] .operational-leg-correct { color: #76baff; }
html[data-theme="dark"] .operational-leg-preview { color: #b9c9d8; background: #132636; border-color: #30475b; }
html[data-theme="dark"] .operational-leg-preview.is-valid { color: #82ddb1; background: #153529; border-color: #286448; }
.shipment-flow-expenses { margin: 1rem 0 0 3.05rem; padding: .85rem; background: linear-gradient(145deg,#f8fbfe,#f4f8fc); border: 1px solid #dce7f0; border-radius: .65rem; }
.shipment-flow-expenses__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.shipment-flow-expenses__heading h3 { margin: 0; color: #173b5b; font-size: .82rem; font-weight: 800; }
.shipment-flow-expenses__heading p { margin: .12rem 0 0; color: #71859a; font-size: .62rem; }
.shipment-flow-expenses__heading > strong { padding: .28rem .58rem; color: #a92e43; background: #fff6f7; border: 1px solid #f0cbd1; border-radius: 99px; box-shadow: 0 .08rem .25rem rgba(130,30,45,.05); font-size: .76rem; white-space: nowrap; }
.shipment-flow-expenses__list { display: grid; gap: .55rem; }
.shipment-flow-expenses__empty { padding: .8rem; color: #71859a; background: #fff; border: 1px dashed #cbd8e4; border-radius: .5rem; font-size: .7rem; text-align: center; }
.quote-editor .quote-flow-card--expense { grid-template-columns: minmax(11rem,.55fr) minmax(0,3.45fr); min-height: 3.95rem; border-color: #d9e4ed; box-shadow: 0 .12rem .38rem rgba(20,55,88,.045); }
.quote-editor .quote-flow-card--expense::before { display: none; }
.quote-editor .quote-flow-card--expense .quote-flow-card__header { grid-template-columns: 1.25rem 2.35rem minmax(0,1fr); background: linear-gradient(90deg,#fff3f5,#fffafb); border-right-color: #f0d9dd; box-shadow: inset 3px 0 #c63b50; }
.quote-editor .quote-flow-card--expense .quote-flow-card__step { color: #ad3045; }
.quote-flow-card--expense .quote-flow-card__type-icon { color: #ad3045; background: #ffe3e7; }
.quote-editor .shipment-expense-card__body { grid-template-columns: minmax(7.5rem,.7fr) minmax(9.5rem,1fr) minmax(6.5rem,.5fr) minmax(13rem,1.45fr); align-items: end; padding: .46rem 3rem .46rem .68rem; }
.quote-editor .shipment-expense-card__category { grid-column: 1; grid-row: 1; }
.quote-editor .shipment-expense-card__body .quote-flow-card__provider-row { grid-column: 2; grid-row: 1; }
.quote-editor .shipment-expense-card__body .quote-flow-card__cost { grid-column: 3; grid-row: 1; }
.quote-editor .quote-flow-card--expense .quote-flow-card__cost .input-group-text,.quote-editor .quote-flow-card--expense .quote-flow-card__cost .form-control { color: #b4233c; background: #fff7f8; }
.quote-editor .shipment-expense-card__notes { grid-column: 4; grid-row: 1; }
.quote-editor .shipment-expense-card:not(:has([data-expense-provider-wrap]:not(.d-none))) .shipment-expense-card__body { grid-template-columns: minmax(8rem,.7fr) minmax(7rem,.5fr) minmax(15rem,2fr); }
.quote-editor .shipment-expense-card:not(:has([data-expense-provider-wrap]:not(.d-none))) .quote-flow-card__cost { grid-column: 2; }
.quote-editor .shipment-expense-card:not(:has([data-expense-provider-wrap]:not(.d-none))) .shipment-expense-card__notes { grid-column: 3; }
.quote-editor .shipment-expense-card[data-expense-category="SEGURO"] .shipment-expense-card__body { grid-template-columns: minmax(7.5rem,.55fr) minmax(15rem,1.2fr) minmax(7rem,.45fr) minmax(14rem,1.3fr); }
.quote-editor .shipment-expense-card__insurance { grid-column: 2; display: grid; grid-template-columns: minmax(8rem,1fr) minmax(6.5rem,.65fr); gap: .55rem; align-items: end; }
.quote-editor .shipment-expense-card__insurance.d-none { display: none; }
.quote-editor .shipment-expense-card__insurance label { display: block; min-height: .75rem; margin: 0 0 .08rem; color: #63798e; font-size: .55rem; font-weight: 750; line-height: 1.1; }
.quote-editor .shipment-expense-card[data-expense-category="SEGURO"] .quote-flow-card__cost { grid-column: 3; }
.quote-editor .shipment-expense-card[data-expense-category="SEGURO"] .shipment-expense-card__notes { grid-column: 4; }
.quote-editor .shipment-expense-card__notes label { display: block; min-height: .75rem; margin: 0 0 .08rem; color: #63798e; font-size: .55rem; font-weight: 750; line-height: 1.1; }
.quote-editor .shipment-expense-card__notes textarea { min-height: 1.95rem; height: 1.95rem; resize: vertical; }
.quote-invoice-fee-card { margin-top:.55rem; overflow:hidden; background:var(--bs-body-bg); border:1px solid #b9dfcb; border-radius:.65rem; box-shadow:0 .12rem .38rem rgba(20,88,55,.06); }
.quote-invoice-fee-card__header { display:flex; align-items:center; gap:.65rem; min-height:3.4rem; padding:.58rem .72rem; background:linear-gradient(90deg,#edf9f3,#f8fdfb); border-bottom:1px solid #cce9d9; }
.quote-invoice-fee-card__icon { display:grid; width:2rem; height:2rem; flex:0 0 2rem; place-items:center; color:#087e4b; background:#d8f4e5; border-radius:.5rem; font-size:.85rem; font-weight:900; }
.quote-invoice-fee-card__header>div { display:flex; min-width:0; flex:1 1 auto; flex-direction:column; }
.quote-invoice-fee-card__header strong { color:#174d37; font-size:.84rem; }
.quote-invoice-fee-card__header small { overflow:hidden; color:#5e7d6e; font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.quote-invoice-fee-card__remove { display:grid; width:1.9rem; height:1.9rem; flex:0 0 1.9rem; place-items:center; padding:0; color:#8b3341; background:transparent; border:1px solid transparent; border-radius:.42rem; font-size:1rem; line-height:1; }
.quote-invoice-fee-card__remove:hover,.quote-invoice-fee-card__remove:focus-visible { color:#b4233c; background:#fff0f2; border-color:#efbbc4; }
.quote-invoice-fee-card__body { display:grid; grid-template-columns:minmax(11rem,.75fr) minmax(11rem,.75fr) minmax(18rem,1.5fr); gap:.75rem; align-items:center; padding:.72rem; }
.quote-invoice-fee-card__field { min-width:0; }
.quote-invoice-fee-card__field>label { display:block; min-height:.95rem; margin:0 0 .08rem; color:#526f62; font-size:.7rem; font-weight:750; line-height:1.25; }
.quote-invoice-fee-card__field>small { display:block; margin-top:.22rem; color:#668173; font-size:.68rem; line-height:1.3; }
.quote-invoice-fee-card__amount .form-control { color:#08783f; background:#f1fcf6; border-color:#b8e6cd; text-align:right; }
.quote-invoice-fee-card__explanation { display:flex; min-height:3.5rem; flex-direction:column; justify-content:center; gap:.15rem; padding:.55rem .7rem; color:#285b47; background:#edf9f3; border:1px solid #c8ead8; border-radius:.5rem; }
.quote-invoice-fee-card__explanation strong { font-size:.72rem; }
.quote-invoice-fee-card__explanation span { font-size:.69rem; line-height:1.35; }
html[data-theme="dark"] .quote-invoice-fee-card { background:#102231; border-color:#286448; }
html[data-theme="dark"] .quote-invoice-fee-card__header { background:#153529; border-color:#286448; }
html[data-theme="dark"] .quote-invoice-fee-card__header strong { color:#b9e9cf; }
html[data-theme="dark"] .quote-invoice-fee-card__header small,html[data-theme="dark"] .quote-invoice-fee-card__field>label,html[data-theme="dark"] .quote-invoice-fee-card__field>small { color:#9fcbb3; }
html[data-theme="dark"] .quote-invoice-fee-card__amount .form-control { color:#78dda9; background:#153529; border-color:#286448; }
html[data-theme="dark"] .quote-invoice-fee-card__explanation { color:#b9e9cf; background:#153529; border-color:#286448; }
html[data-theme="dark"] .shipment-flow-expenses__heading h3 { color: #e2edf7; }
html[data-theme="dark"] .shipment-flow-expenses__empty { color: #9eb1c3; background: #142636; border-color: #30465a; }
html[data-theme="dark"] .shipment-flow-expenses { background: #102231; border-color: #30465a; }
html[data-theme="dark"] .shipment-flow-expenses__heading > strong { color: #ffc6cf; background: #3a2028; border-color: #70404c; }
html[data-theme="dark"] .quote-editor .quote-flow-card--expense .quote-flow-card__header { background: #3a2028; }

.quote-editor-summary { position: sticky; top: 5rem; overflow: hidden; background: #fff; border: 1px solid var(--quote-editor-line); border-radius: .75rem; box-shadow: 0 .4rem 1.2rem rgba(20,55,88,.09); }
.quote-editor-summary > header { padding: .9rem 1rem; border-bottom: 1px solid #e4ebf2; }.quote-editor-summary > header > div { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }.quote-editor-summary h2 { margin: 0; color: #123452; font-size: 1rem; font-weight: 800; }
.quote-editor-summary__status { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .55rem; color: #a26400; background: #fff4d7; border-radius: 99px; font-size: .62rem; font-weight: 700; white-space: nowrap; }.quote-editor-summary__status i { width: .48rem; height: .48rem; background: #e49b00; border-radius: 50%; }
.quote-editor-summary__body { max-height: calc(100vh - 13.5rem); overflow-y: auto; scrollbar-width: thin; }.quote-editor-summary__body > section { padding: .78rem 1rem; border-bottom: 1px solid #e7edf3; }.quote-editor-summary h3 { margin: 0 0 .3rem; color: #173a59; font-size: .76rem; font-weight: 800; }.quote-editor-summary section > strong { display: block; color: #163755; font-size: .8rem; }.quote-editor-summary section > small { display: block; margin-top: .12rem; color: #6c8195; font-size: .68rem; }
.quote-editor-summary__section-title { display: flex; align-items: center; justify-content: space-between; }.quote-editor-summary__section-title button { padding: .18rem .45rem; color: #0872d8; background: #edf6ff; border: 1px solid #c9e2fa; border-radius: .4rem; font-size: .62rem; }
.quote-summary-stages { display: grid; gap: .38rem; }.quote-summary-stage { display: grid; grid-template-columns: 1.45rem minmax(0,1fr) auto; align-items: center; gap: .45rem; }.quote-summary-stage > span { display: grid; width: 1.35rem; height: 1.35rem; place-items: center; color: #fff; background: #1471d1; border-radius: 50%; font-size: .62rem; font-weight: 800; }.quote-summary-stage > div { display: flex; min-width: 0; flex-direction: column; }.quote-summary-stage b { color: #294966; font-size: .68rem; }.quote-summary-stage small { overflow: hidden; color: #71859a; font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }.quote-summary-stage > strong { color: #183b5a; font-size: .66rem; }.quote-summary-stage--coleta > span { background: #dc9700; }.quote-summary-stage--entrega > span { background: #15905a; }
.quote-summary-values { display: grid; gap: .42rem; }.quote-summary-values > div { display: flex; align-items: center; justify-content: space-between; gap: .7rem; color: #49647f; font-size: .69rem; }.quote-summary-values > div b { color: #193c5e; }.quote-summary-values h4 { margin: .35rem 0 0; color: #244663; font-size: .66rem; font-weight: 800; }.quote-summary-values .quote-summary-freight { color: #079052; font-size: 1rem; }.quote-summary-total { margin-top: .35rem; padding-top: .55rem; border-top: 1px solid #dfe7ef; }.quote-summary-total strong { color: #102f4e; font-size: .88rem; }
.quote-summary-profit { display: grid !important; grid-template-columns: 1fr auto; margin-top: .45rem; padding: .75rem; color: #087a4a !important; background: linear-gradient(120deg,#e8faf0,#f3fff8); border-radius: .55rem; }.quote-summary-profit > span { font-weight: 800; }.quote-summary-profit > strong { color: #08824d; font-size: 1rem; }.quote-summary-profit > small { grid-column: 1 / -1; color: #168354; font-size: .65rem; }
.quote-editor-summary > footer { display: grid; gap: .55rem; padding: .8rem 1rem; }.quote-editor-summary > footer .btn-lg { min-height: 2.9rem; font-size: .82rem; }.quote-summary-secondary-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem; }.quote-summary-secondary-actions .btn { padding: .45rem .3rem; font-size: .65rem; }
.quote-summary-profit.is-negative { color: #a51f32 !important; background: #fff0f2; }.quote-summary-profit.is-negative > strong,.quote-summary-profit.is-negative > small { color: #b3263b; }

/* Quote editor readability: keep operational details comfortably legible. */
.quote-editor-header h1 { font-size: 2rem; }
.quote-editor-header__actions .btn,
.quote-editor .btn { font-size: .88rem; }
.quote-editor-steps button > b { font-size: .9rem; }
.quote-editor-steps button small { font-size: .76rem; line-height: 1.35; }
.quote-editor-notice { font-size: .88rem; }
.quote-inline-validation-error { font-size: .8rem; }
.quote-editor-section > .card-header h2 { font-size: 1.08rem; }
.quote-editor-section > .card-header p { font-size: .78rem; line-height: 1.4; }
.quote-editor-section__state { font-size: .75rem; }
.quote-editor-section__toggle.is-edit-action { font-size: .76rem; }
.quote-editor-secondary-fields > summary { font-size: .82rem; }
.quote-editor-secondary-fields > summary small { font-size: .73rem; }
.quote-editor-section .form-label { font-size: .88rem; }
.quote-editor-section .form-control,
.quote-editor-section .form-select,
.quote-editor-section .input-group-text,
.quote-editor .search-select-input { min-height: 2.75rem; font-size: .95rem; }
.quote-editor-section .form-text,
.quote-editor-section .invalid-feedback { font-size: .77rem; line-height: 1.4; }
.quote-editor .quote-flow-heading .form-label { font-size: 1rem; }
.quote-editor .quote-flow-summary { font-size: .77rem; }
.quote-flow-endpoint__control > label { font-size: .72rem; }
.quote-flow-endpoint__control > .form-select,
.quote-flow-endpoint__control .search-select-input { min-height: 2.45rem; font-size: .82rem; }
.quote-flow-endpoint__control .invalid-feedback { font-size: .74rem; }
.quote-flow-endpoint small { font-size: .76rem; }
.quote-flow-endpoint strong { font-size: .92rem; }
.quote-editor .quote-flow-card__identity strong { font-size: .84rem; }
.quote-editor .quote-flow-card__identity small,
.quote-editor .quote-flow-card__subtype { font-size: .73rem; line-height: 1.35; }
.quote-editor .quote-flow-card__provider-row > label,
.quote-editor .quote-flow-card__cost > label,
.quote-editor .quote-flow-card__address > label,
.quote-editor .quote-flow-card__route-label,
.quote-editor .shipment-expense-card__insurance label,
.quote-editor .shipment-expense-card__notes label { min-height: .95rem; font-size: .76rem; line-height: 1.25; }
.quote-editor .quote-flow-card__route-proposal,
.quote-editor .quote-flow-card__hint { font-size: .7rem; line-height: 1.35; }
.quote-editor .quote-flow-card__body [data-stage-route-choice-wrap] .search-select,
.quote-editor .quote-flow-primary-route .search-select,
.quote-editor .quote-flow-card__provider-row > .form-select,
.quote-editor .quote-flow-card__cost .input-group { min-height: 2.3rem; }
.quote-editor .quote-flow-card__body .form-control,
.quote-editor .quote-flow-card__body .form-select,
.quote-editor .quote-flow-card__body .input-group-text,
.quote-editor .quote-flow-card__body .search-select-input { min-height: 2.45rem; font-size: .86rem; }
.provider-rate-suggestions button,
.provider-rate-suggestions button strong { font-size: .76rem; }
.shipment-flow-expenses__heading h3 { font-size: .94rem; }
.shipment-flow-expenses__heading p { font-size: .75rem; line-height: 1.4; }
.shipment-flow-expenses__empty { font-size: .8rem; }
.quote-editor-summary { font-size: .9rem; }
.quote-editor-summary h2 { font-size: 1.12rem; }
.quote-editor-summary__status { font-size: .72rem; }
.quote-editor-summary h3 { font-size: .86rem; }
.quote-editor-summary section > strong { font-size: .92rem; }
.quote-editor-summary section > small { font-size: .78rem; line-height: 1.35; }
.quote-editor-summary__section-title button { font-size: .72rem; }
.quote-summary-stage b { font-size: .79rem; }
.quote-summary-stage small { font-size: .7rem; line-height: 1.35; }
.quote-summary-stage > strong { font-size: .76rem; }
.quote-summary-values > div { font-size: .79rem; }
.quote-summary-values h4 { font-size: .76rem; }
.quote-summary-profit > small { font-size: .75rem; }
.quote-editor-summary > footer .btn-lg { font-size: .92rem; }
.quote-summary-secondary-actions .btn { font-size: .76rem; }

@media (min-width: 992px) { [data-quote-route-modal] .modal-dialog,[data-quote-provider-modal] .modal-dialog { width: min(35rem,100%); max-width: 35rem; min-height: 100%; margin: 0 0 0 auto; align-items: stretch; }[data-quote-route-modal] .modal-content,[data-quote-provider-modal] .modal-content { min-height: 100vh; border-width: 0 0 0 1px; border-radius: 0; box-shadow: -1rem 0 3rem rgba(10,35,60,.18); }[data-quote-route-modal] .modal-body,[data-quote-provider-modal] .modal-body { overflow-y: auto; } }

html[data-theme="dark"] .quote-editor { --quote-editor-line: #2c4256; }.quote-editor-steps button:focus-visible,.quote-editor [data-quote-step-target]:focus-visible { outline: 2px solid #0873df; outline-offset: -2px; }
html[data-theme="dark"] .quote-editor-header h1,html[data-theme="dark"] .quote-editor-section > .card-header h2,html[data-theme="dark"] .quote-editor-summary h2,html[data-theme="dark"] .quote-editor-summary h3,html[data-theme="dark"] .quote-editor-summary section > strong,html[data-theme="dark"] .quote-flow-endpoint strong { color: #e2edf7; }
html[data-theme="dark"] .quote-editor-steps,html[data-theme="dark"] .quote-editor-section > .card-header,html[data-theme="dark"] .quote-editor-summary { background: #101f2d; }html[data-theme="dark"] .quote-editor-steps button:not(:last-child)::after { background: #101f2d; border-color: #33495d; }html[data-theme="dark"] .quote-editor-steps button { color: #c2d1df; }html[data-theme="dark"] .quote-flow-endpoint > span { box-shadow: 0 0 0 .25rem #101f2d; }html[data-theme="dark"] .quote-editor .quote-flow-card__header { border-color: #344b5f; }html[data-theme="dark"] .quote-editor .quote-flow-card--coleta .quote-flow-card__header { background: #332d19; }html[data-theme="dark"] .quote-editor .quote-flow-card--vaga .quote-flow-card__header { background: #142d44; }html[data-theme="dark"] .quote-editor .quote-flow-card--entrega .quote-flow-card__header { background: #153529; }html[data-theme="dark"] .quote-summary-profit { background: #153529; }
html[data-theme="dark"] .quote-editor .quote-flow-card__actions { background: rgba(16,31,45,.94); border-color: #40566a; }
html[data-theme="dark"] .quote-editor .quote-flow-card__address .form-control { color: #d9e7f3; background: #132636; border-color: #30475b; }
html[data-theme="dark"] .quote-editor-secondary-fields { background: #142636; border-color: #30465a; }html[data-theme="dark"] .quote-editor-secondary-fields > summary { color: #b9d9f4; }html[data-theme="dark"] .quote-editor-secondary-fields > summary::before { background: #193b57; }
html[data-theme="dark"] .quote-rate-suggestion { color: #c7ddf0; background: #132b40; border-color: #315575; }html[data-theme="dark"] .quote-rate-suggestion > span,html[data-theme="dark"] .quote-rate-suggestion__options { background: #101f2d; }html[data-theme="dark"] .quote-rate-suggestion > div strong { color: #dcebf8; }

@media (max-width: 1199.98px) { .quote-editor-layout { grid-template-columns: 1fr; }.quote-editor-summary { position: static; }.quote-editor-summary__body { max-height: none; }.quote-editor-summary { order: 2; } }
@media (max-width: 991.98px) { .quote-message-workspace { grid-template-columns: 1fr; }.quote-message-input .quote-editor-message { min-height: 12rem; }.quote-message-example__content { max-height: none; } }
@media (max-width: 767.98px) { .quote-editor-header { align-items: stretch; flex-direction: column; }.quote-editor-header__actions { justify-content: flex-end; }.quote-editor-steps { display: flex; overflow-x: auto; }.quote-editor-steps button { min-width: 9.5rem; }.quote-editor-primary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.quote-editor-primary-grid .quote-primary-field { grid-column: span 1; }.quote-editor-primary-grid .quote-primary-field--client-name,.quote-editor-primary-grid .quote-primary-field--client-email,.quote-editor-primary-grid .quote-primary-field--vehicle-name,.quote-editor-primary-grid .quote-primary-field--vehicle-condition,#shipment-section-vehicle .quote-primary-field--vehicle-plate { grid-column: 1 / -1; }.quote-editor-secondary-fields > summary small { display: none; }.quote-editor .quote-flow-card { grid-template-columns: 1fr; }.quote-editor .quote-flow-card__header { position: relative; min-height: 3.2rem; padding-right: 5.8rem; border-right: 0; border-bottom: 1px solid #e1e9f1; border-radius: .55rem .55rem 0 0; }.quote-editor .quote-flow-card__actions { top: 50%; }.quote-editor .quote-flow-card__body { grid-template-columns: 1fr 1fr; padding-right: .75rem; }.quote-editor [data-stage-amount-wrap] { grid-column: 2; }.quote-editor .quote-flow-card__provider-row { grid-column: 1 / -1; grid-row: 2; }.quote-editor [data-stage-route-choice-wrap],.quote-editor .quote-flow-card--vaga [data-stage-route-choice-wrap] { grid-column: 1 / -1; grid-row: 3; }.quote-editor .quote-flow-card__hint { grid-row: 4; }.quote-editor .quote-flow-primary-route { grid-column: 1 / -1; }.quote-editor-summary { margin-bottom: 1rem; } }
@media (max-width: 767.98px) { .shipment-flow-expenses { margin-left: 0; padding: .7rem; }.quote-editor .shipment-expense-card__body,.quote-editor .shipment-expense-card:not(:has([data-expense-provider-wrap]:not(.d-none))) .shipment-expense-card__body { grid-template-columns: 1fr 1fr; padding: .6rem .7rem; }.quote-editor .shipment-expense-card__category { grid-column: 1; grid-row: 1; }.quote-editor .shipment-expense-card__body .quote-flow-card__provider-row { grid-column: 1 / -1; grid-row: 2; }.quote-editor .shipment-expense-card__body .quote-flow-card__cost,.quote-editor .shipment-expense-card:not(:has([data-expense-provider-wrap]:not(.d-none))) .quote-flow-card__cost { grid-column: 2; grid-row: 1; }.quote-editor .shipment-expense-card__notes,.quote-editor .shipment-expense-card:not(:has([data-expense-provider-wrap]:not(.d-none))) .shipment-expense-card__notes { grid-column: 1 / -1; grid-row: 3; }.quote-editor .shipment-expense-card:not(:has([data-expense-provider-wrap]:not(.d-none))) .shipment-expense-card__notes { grid-row: 2; } }
@media (max-width: 767.98px) { .quote-invoice-fee-card__body { grid-template-columns:1fr 1fr; }.quote-invoice-fee-card__explanation { grid-column:1 / -1; } }
@media (max-width: 767.98px) { .quote-editor .quote-flow-card__body { grid-template-columns: minmax(0,1fr) minmax(7rem,.45fr); }.quote-editor [data-stage-route-choice-wrap],.quote-editor .quote-flow-card--vaga [data-stage-route-choice-wrap],.quote-editor .quote-flow-primary-route { grid-column: 1 / -1; grid-row: 1; }.quote-editor .quote-flow-card__provider-row { grid-column: 1; grid-row: 2; }.quote-editor [data-stage-amount-wrap],.quote-editor .quote-flow-card--withdrawal [data-stage-amount-wrap] { grid-column: 2; grid-row: 2; }.quote-editor .quote-flow-card__address { grid-column: 1 / -1; grid-row: 3; }.quote-editor .quote-flow-card__hint { grid-column: 1 / -1; grid-row: 4; } }
@media (max-width: 479.98px) { .quote-editor-header__actions { display: grid; grid-template-columns: 1fr 1fr; }.quote-editor-header__actions .btn { min-width: 0; }.quote-rate-suggestion { grid-template-columns: 2rem minmax(0,1fr); }.quote-rate-suggestion details { grid-column: 1 / -1; }.quote-editor .quote-flow-heading { align-items: stretch; flex-direction: column; }.quote-editor .quote-flow-add-actions { grid-template-columns: repeat(3,minmax(0,1fr)); }.quote-editor .quote-flow-card__body { grid-template-columns: 1fr; }.quote-editor .quote-flow-card__body > [data-stage-subtype],.quote-editor [data-stage-amount-wrap],.quote-editor .quote-flow-card__provider-row,.quote-editor .quote-flow-card__address,.quote-editor [data-stage-route-choice-wrap],.quote-editor .quote-flow-card--vaga [data-stage-route-choice-wrap],.quote-editor .quote-flow-card__hint { grid-column: 1; grid-row: auto; }.quote-summary-secondary-actions { grid-template-columns: 1fr; } }
@media (max-width: 479.98px) { .quote-message-example__header { align-items: stretch; flex-direction: column; }.quote-message-example__copy { align-self: flex-start; }.quote-message-example__content { font-size: .64rem; } }
@media (max-width: 479.98px) { .shipment-flow-expenses__heading { align-items: flex-start; }.quote-editor .shipment-expense-card__body,.quote-editor .shipment-expense-card:not(:has([data-expense-provider-wrap]:not(.d-none))) .shipment-expense-card__body { grid-template-columns: 1fr; }.quote-editor .shipment-expense-card__category,.quote-editor .shipment-expense-card__body .quote-flow-card__provider-row,.quote-editor .shipment-expense-card__body .quote-flow-card__cost,.quote-editor .shipment-expense-card__notes,.quote-editor .shipment-expense-card:not(:has([data-expense-provider-wrap]:not(.d-none))) .quote-flow-card__cost,.quote-editor .shipment-expense-card:not(:has([data-expense-provider-wrap]:not(.d-none))) .shipment-expense-card__notes { grid-column: 1; grid-row: auto; } }
@media (max-width: 479.98px) { .quote-invoice-fee-card__body { grid-template-columns:1fr; }.quote-invoice-fee-card__explanation { grid-column:1; }.quote-invoice-fee-card__header small { white-space:normal; } }
@media (max-width: 767.98px) { .quote-editor .shipment-expense-card[data-expense-category="SEGURO"] .shipment-expense-card__body { grid-template-columns: 1fr 1fr; }.quote-editor .shipment-expense-card[data-expense-category="SEGURO"] .shipment-expense-card__insurance { grid-column: 1 / -1; grid-row: 2; }.quote-editor .shipment-expense-card[data-expense-category="SEGURO"] .quote-flow-card__cost { grid-column: 2; grid-row: 1; }.quote-editor .shipment-expense-card[data-expense-category="SEGURO"] .shipment-expense-card__notes { grid-column: 1 / -1; grid-row: 3; } }
@media (max-width: 479.98px) { .quote-editor .shipment-expense-card[data-expense-category="SEGURO"] .shipment-expense-card__body,.quote-editor .shipment-expense-card__insurance { grid-template-columns: 1fr; }.quote-editor .shipment-expense-card[data-expense-category="SEGURO"] .shipment-expense-card__category,.quote-editor .shipment-expense-card[data-expense-category="SEGURO"] .shipment-expense-card__insurance,.quote-editor .shipment-expense-card[data-expense-category="SEGURO"] .quote-flow-card__cost,.quote-editor .shipment-expense-card[data-expense-category="SEGURO"] .shipment-expense-card__notes { grid-column: 1; grid-row: auto; } }
.quote-editor .shipment-expense-card[data-expense-category="NOTA_FISCAL"] [data-expense-tax-wrap] { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3,minmax(0,1fr)); }
@media (max-width: 767.98px) {
    .quote-editor .shipment-expense-card[data-expense-category="NOTA_FISCAL"] .shipment-expense-card__notes { grid-row: 3; }
}
@media (max-width: 479.98px) {
    .quote-editor .shipment-expense-card[data-expense-category="NOTA_FISCAL"] [data-expense-tax-wrap] { grid-column: 1; grid-row: auto; grid-template-columns: minmax(0,1fr); }
    .quote-editor .shipment-expense-card[data-expense-category="NOTA_FISCAL"] .shipment-expense-card__notes { grid-row: auto; }
}
details.content-card > summary { cursor: pointer; list-style-position: inside; }

/* Searchable catalog selects */
.search-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.search-select { position: relative; width: 100%; }
.search-select.is-open { z-index: 1080; }
.search-select-input {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: .375rem 4.6rem .375rem 2.35rem;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    outline: 0;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.search-select-search-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: .82rem;
    width: .78rem;
    height: .78rem;
    pointer-events: none;
    border: 1.7px solid #71869a;
    border-radius: 50%;
    transform: translateY(-58%);
}
.search-select-search-icon::after {
    position: absolute;
    right: -.34rem;
    bottom: -.23rem;
    width: .42rem;
    height: 1.7px;
    background: #71869a;
    border-radius: 1rem;
    content: '';
    transform: rotate(45deg);
    transform-origin: left center;
}
.search-select-input:hover { border-color: #8ba5bf; }
.search-select-input:focus,
.search-select.is-open .search-select-input {
    border-color: #e0a800;
    box-shadow: 0 0 0 .2rem rgba(242, 169, 0, .18);
}
.search-select-sm .search-select-input { min-height: 31px; padding-top: .25rem; padding-bottom: .25rem; font-size: .875rem; }
.search-select-sm .search-select-search-icon { left: .72rem; transform: translateY(-58%) scale(.88); }
.search-select-clear {
    position: absolute;
    top: 50%;
    right: 2.45rem;
    z-index: 2;
    width: 1.55rem;
    height: 1.55rem;
    padding: 0;
    color: #73869a;
    background: transparent;
    border: 0;
    border-radius: 50%;
    line-height: 1;
    transform: translateY(-50%);
}
.search-select-clear:hover { color: #b4232f; background: rgba(180, 35, 47, .1); }
.search-select-clear[hidden] { display: none; }
.search-select--location .search-select-input { padding-right: 2.7rem; }
.search-select--location .search-select-clear { right: .65rem; }
.search-select-chevron {
    position: absolute;
    top: 50%;
    right: .9rem;
    width: .62rem;
    height: .62rem;
    pointer-events: none;
    border-right: 2px solid #74879b;
    border-bottom: 2px solid #74879b;
    transform: translateY(-68%) rotate(45deg);
    transition: transform .18s ease;
}
.search-select.is-open .search-select-chevron { transform: translateY(-30%) rotate(225deg); }
.search-select-panel {
    position: absolute;
    top: calc(100% + .4rem);
    right: 0;
    left: 0;
    z-index: 1085;
    min-width: min(100%, 18rem);
    overflow: hidden;
    color: #26384c;
    background: #fff;
    border: 1px solid #cbd7e3;
    border-radius: .72rem;
    box-shadow: 0 1rem 2.5rem rgba(17, 45, 75, .2);
}
.search-select-panel[hidden] { display: none; }
.search-select-panel--portal {
    position: fixed;
    z-index: 2000;
    min-width: 0;
    max-width: calc(100vw - 1rem);
    margin: 0;
}
.search-select-panel--portal.opens-up { transform-origin: bottom center; }
.search-select-hint {
    padding: .55rem .8rem;
    color: #6f8194;
    background: #f5f8fb;
    border-bottom: 1px solid #e0e7ef;
    font-size: .75rem;
    font-weight: 600;
}
.search-select-list { max-height: min(15rem, 38vh); overflow-y: auto; padding: .35rem; overscroll-behavior: contain; }
.search-select-option {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .58rem .7rem;
    overflow: hidden;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: .48rem;
    text-align: left;
    white-space: nowrap;
}
.search-select-option-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.search-select-option-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin-left: auto;
    padding: .14rem .42rem;
    color: #fff;
    background: #0d4f91;
    border-radius: .35rem;
    font-size: .66rem;
    font-weight: 700;
    line-height: 1.15;
}
.search-select-option:hover,
.search-select-option.is-active { color: #123f74; background: #eaf2fa; }
.search-select-option.is-selected { color: #123f74; background: #fff5d6; font-weight: 700; }
.search-select-option.is-selected::before { content: '✓'; margin-right: .5rem; color: #b77d00; }
.search-select-option--map { border-top: 1px dashed #d7e2ec; }
.search-select-option--map .search-select-option-label { display: grid; gap: .08rem; }
.search-select-option--map .search-select-option-label strong { font-size: .88rem; }
.search-select-option--map .search-select-option-label small { color: #6c7f92; font-size: .72rem; }
.search-select-option-badge.is-map { color: #075f3d; background: #dff7ea; }
.search-select-option:disabled { opacity: .48; cursor: not-allowed; }
.search-select-empty { padding: 1.2rem .8rem; color: #718096; text-align: center; }
.search-select.is-disabled .search-select-input { color: var(--bs-secondary-color); background: var(--bs-secondary-bg); cursor: not-allowed; opacity: .75; }
.search-select.is-invalid .search-select-input { border-color: var(--bs-danger); box-shadow: 0 0 0 .2rem rgba(var(--bs-danger-rgb), .12); }

html[data-theme="dark"] .search-select-input { color: #e6eef6; background: #0b1926; border-color: #344b60; }
html[data-theme="dark"] .search-select-search-icon { border-color: #8da5b9; }
html[data-theme="dark"] .search-select-search-icon::after { background: #8da5b9; }
html[data-theme="dark"] .search-select-input:hover { border-color: #57748e; }
html[data-theme="dark"] .search-select-input:focus,
html[data-theme="dark"] .search-select.is-open .search-select-input { border-color: #f2b823; box-shadow: 0 0 0 .2rem rgba(242, 184, 35, .18); }
html[data-theme="dark"] .search-select-panel { color: #dce7f1; background: #102231; border-color: #3b5368; box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, .48); }
html[data-theme="dark"] .search-select-hint { color: #96aabd; background: #142a3b; border-color: #30475b; }
html[data-theme="dark"] .search-select-option:hover,
html[data-theme="dark"] .search-select-option.is-active { color: #e8f4ff; background: #1a3a52; }
html[data-theme="dark"] .search-select-option.is-selected { color: #ffe4a0; background: #3a301b; }
html[data-theme="dark"] .search-select-empty { color: #91a5b7; }

/* Theme switch */
.theme-toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 2.4rem;
    padding: 0;
    color: #264f79;
    background: #f4f8fc;
    border: 1px solid #cfdae7;
    border-radius: 50%;
    box-shadow: 0 .15rem .45rem rgba(18, 63, 116, .06);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.theme-toggle:hover {
    color: #123f74;
    background: #e7f0f9;
    border-color: #86a7c9;
    box-shadow: 0 .35rem .8rem rgba(18, 63, 116, .14);
    transform: translateY(-1px) rotate(-5deg);
}
.theme-toggle:focus-visible {
    outline: 3px solid rgba(242,169,0,.42);
    outline-offset: 2px;
}
.theme-icon {
    position: absolute;
    width: 1.16rem;
    height: 1.16rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity .2s ease, transform .28s ease;
}
.theme-icon-moon { fill: currentColor; stroke-width: 1.4; }
.theme-icon-sun { opacity: 0; transform: scale(.55) rotate(-70deg); }
html[data-theme="dark"] .theme-icon-moon { opacity: 0; transform: scale(.55) rotate(70deg); }
html[data-theme="dark"] .theme-icon-sun { opacity: 1; transform: scale(1) rotate(0); }

/* Refined dark palette */
html[data-theme="dark"] {
    color-scheme: dark;
    --ce-primary: #3179b9;
    --ce-primary-dark: #174f82;
    --ce-primary-soft: #152c40;
    --ce-surface: #08131f;
    --ce-border: #263a4d;
    --ce-muted: #91a3b7;
    --ce-shadow-sm: 0 .35rem 1.2rem rgba(0,0,0,.24);
    --ce-shadow-md: 0 .8rem 2rem rgba(0,0,0,.32);
    --bs-primary-rgb: 71, 145, 207;
    --bs-link-color: #79b9ee;
    --bs-link-hover-color: #a9d4f6;
    --bs-border-color: #2a3d4f;
    --bs-body-color: #dce6f0;
    --bs-body-color-rgb: 220, 230, 240;
    --bs-body-bg: #08131f;
    --bs-body-bg-rgb: 8, 19, 31;
    --bs-secondary-color: #93a5b8;
    --bs-secondary-color-rgb: 147, 165, 184;
    --bs-tertiary-bg: #182838;
}
html[data-theme="dark"] body {
    color: #dce6f0;
    background:
        radial-gradient(circle at 88% -8%, rgba(35, 105, 166, .20), transparent 34rem),
        radial-gradient(circle at 7% 105%, rgba(242, 169, 0, .055), transparent 28rem),
        #08131f;
}
html[data-theme="dark"] .app-sidebar,
html[data-theme="dark"] .app-offcanvas {
    background:
        radial-gradient(circle at 10% 0, rgba(53, 132, 196, .13), transparent 20rem),
        linear-gradient(180deg, #061d31, #0a3156 64%, #0b3864);
    border-color: rgba(126, 173, 211, .08);
    box-shadow: .65rem 0 2.3rem rgba(0,0,0,.2);
}
html[data-theme="dark"] .app-topbar {
    color: #dce6f0;
    background: rgba(10, 24, 38, .92);
    border-color: rgba(104, 137, 168, .18);
    box-shadow: 0 .25rem 1rem rgba(0,0,0,.2);
}
html[data-theme="dark"] .topbar-back-link { color:#b9d8f2; background:#14283a; border-color:#38536b; }
html[data-theme="dark"] .topbar-back-link:hover,
html[data-theme="dark"] .topbar-back-link:focus-visible { color:#102438; background:#f2b823; border-color:#f2b823; }
html[data-theme="dark"] .topbar-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .detail-value { color: #dbeafa; }
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .page-help-trigger {
    color: #ffd264;
    background: #14283a;
    border-color: #38536b;
    box-shadow: 0 .2rem .7rem rgba(0,0,0,.18);
}
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .page-help-trigger:hover,
html[data-theme="dark"] .page-help-trigger:focus-visible,
html[data-theme="dark"] .page-help-trigger[aria-expanded="true"] {
    color: #ffe39b;
    background: #1b354b;
    border-color: #6487a6;
}
html[data-theme="dark"] .page-help-trigger-icon {
    color: #0a1b2b;
    background: #f2b823;
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .auth-card {
    --bs-card-color: #dce6f0;
    --bs-card-bg: #111f2d;
    --bs-card-border-color: #26394a;
    color: #dce6f0;
    background: linear-gradient(155deg, rgba(19,35,49,.99), rgba(14,28,41,.99));
    border-color: #26394a;
    box-shadow: var(--ce-shadow-sm);
}
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .bg-white {
    color: #dce6f0;
    background: #132331 !important;
    border-color: #293c4d;
}
html[data-theme="dark"] .shipment-section-tabs,
html[data-theme="dark"] .shipment-tab-content { background: rgba(17, 31, 45, .92); }
html[data-theme="dark"] .shipment-summary-icon,
html[data-theme="dark"] .shipment-overview-icon,
html[data-theme="dark"] .shipment-document-icon { color: #79b9ee; background: #18354d; }
html[data-theme="dark"] .shipment-overview-title h2,
html[data-theme="dark"] .shipment-overview-grid dd,
html[data-theme="dark"] .shipment-financial-grid dd { color: #dce6f0; }
html[data-theme="dark"] .shipment-tab-panel > .card-header { background: linear-gradient(180deg,#132331,#10202e) !important; }
html[data-theme="dark"] .shipment-tab-panel > .card-header > .badge { color: #b9cee0 !important; background: #192d3e !important; border-color: #31485b !important; }
html[data-theme="dark"] .shipment-tab-panel .table thead th,
html[data-theme="dark"] .shipment-photo-filters { color: #c3d1de; background: #142535; border-color: #2d4355; }
html[data-theme="dark"] .shipment-photo-upload { background: linear-gradient(145deg,#142535,#10202e) !important; border-color: #385267 !important; }
html[data-theme="dark"] .shipment-financial-grid__result { color: #79ddb0; background: #153529; }
html[data-theme="dark"] .shipment-financial-grid__result.is-negative { color: #ff93a4; background: #3b1c25; }
html[data-theme="dark"] .shipment-summary-item.is-pending { background: rgba(242, 184, 35, .09); }
html[data-theme="dark"] .shipment-summary-item.is-pending .detail-value { color: #ffd36a; }
html[data-theme="dark"] .shipment-commercial-editor { border-color: #2d4356; }
html[data-theme="dark"] .shipment-commercial-editor > .card-header { background: linear-gradient(90deg,#14283a,#132331) !important; border-color: #2d4356; }
html[data-theme="dark"] .shipment-date-control { border-color: #31485b; }
html[data-theme="dark"] .shipment-date-control.is-readonly { background: #122433; }
html[data-theme="dark"] .shipment-date-control.is-awaiting { background: #11202d; }
html[data-theme="dark"] .shipment-date-control.is-failed { background: #2d1b23; border-color: #71404c; }
html[data-theme="dark"] .shipment-date-control.is-editable { background: #11283a; border-color: #315a7d; }
html[data-theme="dark"] .shipment-date-label { color: #d7e5f1; }
html[data-theme="dark"] .shipment-date-label small { color: #adbdcb; background: #253848; }
html[data-theme="dark"] .shipment-date-state.is-completed { color: #8de0b8; background: #173d2d; }
html[data-theme="dark"] .shipment-date-state.is-progress { color: #8ecaff; background: #193b56; }
html[data-theme="dark"] .shipment-date-state.is-pending { color: #ffd36a; background: #443719; }
html[data-theme="dark"] .shipment-date-state.is-failed { color: #ffadb9; background: #4c222c; }
html[data-theme="dark"] .shipment-date-control.is-editable .shipment-date-label small { color: #8ecaff; background: #193b56; }
html[data-theme="dark"] .shipment-date-readonly { color: #e2edf6; background: #0f1f2d; border-color: #344b5f; }
html[data-theme="dark"] .shipment-date-control-icon { color: #9bc9ec; background: #18354d; }
html[data-theme="dark"] .shipment-date-control .form-control { color: #e4edf5; background-color: #0f1f2d; border-color: #3b5971; }
html[data-theme="dark"] .shipment-date-control > p { color: #93a5b8; }
html[data-theme="dark"] img.bg-white { background: #fff !important; }
html[data-theme="dark"] .bg-light {
    color: #d7e3ee !important;
    background: #182837 !important;
}
html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .form-text,
html[data-theme="dark"] .detail-label,
html[data-theme="dark"] .shipment-details dt { color: #93a5b8 !important; }
html[data-theme="dark"] .text-body { color: #dce6f0 !important; }
html[data-theme="dark"] .text-primary { color: #79b9ee !important; }
html[data-theme="dark"] .form-label { color: #b9c9d9; }
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .input-group-text {
    color: #e4edf5;
    background-color: #0b1824;
    border-color: #34495d;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.16);
}
html[data-theme="dark"] .form-control::placeholder { color: #6f8397; opacity: 1; }
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
    color: #fff;
    background-color: #0e1d2a;
    border-color: #62a1d7;
    box-shadow: 0 0 0 .2rem rgba(71,145,207,.18);
}
html[data-theme="dark"] .form-control:disabled,
html[data-theme="dark"] .form-select:disabled {
    color: #8fa1b3;
    background: #172532;
}
html[data-theme="dark"] .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239fb4c7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
html[data-theme="dark"] .form-check-input {
    background-color: #0b1824;
    border-color: #4b6175;
}
html[data-theme="dark"] .form-check-input:checked {
    background-color: #397fbb;
    border-color: #5da0da;
}
html[data-theme="dark"] .table {
    --bs-table-color: #d3deea;
    --bs-table-bg: transparent;
    --bs-table-border-color: #283b4d;
    --bs-table-striped-color: #d3deea;
    --bs-table-striped-bg: rgba(255,255,255,.018);
    --bs-table-hover-color: #eef6fd;
    --bs-table-hover-bg: rgba(79,145,201,.09);
}
html[data-theme="dark"] .table thead th {
    color: #99afc5;
    background: #162635;
    border-bottom-color: #304355;
}
html[data-theme="dark"] .table-responsive {
    scrollbar-color: #486177 #142330;
}
html[data-theme="dark"] .table-responsive::-webkit-scrollbar-track { background: #142330; }
html[data-theme="dark"] .table-responsive::-webkit-scrollbar-thumb {
    background: #486177;
    border-color: #142330;
}
html[data-theme="dark"] .list-group {
    --bs-list-group-color: #d7e2ec;
    --bs-list-group-bg: #111f2d;
    --bs-list-group-border-color: #293c4d;
    --bs-list-group-action-hover-color: #eef6fd;
    --bs-list-group-action-hover-bg: #182d3f;
}
html[data-theme="dark"] .dropdown-menu {
    --bs-dropdown-color: #dce6f0;
    --bs-dropdown-bg: #132331;
    --bs-dropdown-border-color: #304558;
    --bs-dropdown-link-color: #dce6f0;
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-hover-bg: #1d3549;
    box-shadow: 0 .8rem 2rem rgba(0,0,0,.32);
}
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .offcanvas:not(.app-offcanvas) {
    color: #dce6f0;
    background: #101f2d;
    border-color: #304457;
}
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer { border-color: #2b3e50; }
html[data-theme="dark"] .btn-close { filter: invert(1) grayscale(1) brightness(1.65); }
html[data-theme="dark"] .btn-light {
    --bs-btn-color: #dce6f0;
    --bs-btn-bg: #1b2d3d;
    --bs-btn-border-color: #354a5e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #253d51;
    --bs-btn-hover-border-color: #52718c;
}
html[data-theme="dark"] .btn-outline-secondary {
    --bs-btn-color: #b3c3d2;
    --bs-btn-border-color: #52687c;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #3d566b;
    --bs-btn-hover-border-color: #607d96;
}
html[data-theme="dark"] .btn-outline-primary {
    --bs-btn-color: #82bff0;
    --bs-btn-border-color: #4779a3;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2c6fa9;
    --bs-btn-hover-border-color: #4d91ca;
}
html[data-theme="dark"] .badge.text-bg-light {
    color: #bfd0df !important;
    background: #203243 !important;
    border-color: #3a5267 !important;
}
html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-start,
html[data-theme="dark"] .border-end { border-color: #2c4052 !important; }
html[data-theme="dark"] .pagination {
    --bs-pagination-color: #8fc5f0;
    --bs-pagination-bg: #122231;
    --bs-pagination-border-color: #304558;
    --bs-pagination-hover-color: #fff;
    --bs-pagination-hover-bg: #1d3549;
    --bs-pagination-hover-border-color: #47708f;
    --bs-pagination-disabled-color: #61778b;
    --bs-pagination-disabled-bg: #111e2a;
    --bs-pagination-disabled-border-color: #293b4c;
}
html[data-theme="dark"] .alert {
    border-color: color-mix(in srgb, currentColor 24%, transparent);
    box-shadow: 0 .2rem .8rem rgba(0,0,0,.12);
}
html[data-theme="dark"] .alert-info { color: #b7ddf5; background: #102f43; }
html[data-theme="dark"] .alert-warning { color: #f5d783; background: #352c13; }
html[data-theme="dark"] .alert-danger { color: #f0b4b8; background: #3a1e24; }
html[data-theme="dark"] .alert-success { color: #acdcbf; background: #153326; }
html[data-theme="dark"] .empty-state { color: #8195a9; }
html[data-theme="dark"] .report-tab {
    color: #bed0e0;
    background: #111f2d;
    border-color: #2d4255;
}
html[data-theme="dark"] .report-tab small { color: #8398ad; }
html[data-theme="dark"] .report-tab:hover { color: #9ed0f5; border-color: #527b9d; }
html[data-theme="dark"] .report-tab.active {
    color: #fff;
    background: linear-gradient(125deg, #174f82, #276fa9);
}
html[data-theme="dark"] .page-help-panel {
    color: #dce6f0;
    background: #101f2d;
    border-color: #345069;
    box-shadow: 0 1.4rem 3.5rem rgba(0,0,0,.48);
}
html[data-theme="dark"] .page-help-header {
    background: linear-gradient(135deg, #0b355b, #17648f);
}
html[data-theme="dark"] .page-help-summary,
html[data-theme="dark"] .page-help-item p { color: #9fb1c3; }
html[data-theme="dark"] .page-help-item {
    background: #152736;
    border-color: #2b4256;
}
html[data-theme="dark"] .page-help-item h3 { color: #b9daf5; }
html[data-theme="dark"] .page-help-step {
    color: #ffe094;
    background: #2c3b3e;
}
html[data-theme="dark"] .page-help-note {
    color: #efd481;
    background: #332b15;
}
html[data-theme="dark"] [data-dashboard-chart] text { fill: #c8d6e4; }
html[data-theme="dark"] [data-dashboard-chart] rect[fill="#e8edf4"] { fill: #26394a; }
html[data-theme="dark"] [data-dashboard-chart] line { stroke: #34495b; }
html[data-theme="dark"] [data-dashboard-chart]:not(.dashboard-chart-donut) circle { stroke: #111f2d; }
html[data-theme="dark"] form[action*="/settings/company"] .bg-light {
    background: linear-gradient(145deg, #152635, #122230) !important;
    border-color: #304659 !important;
}
html[data-theme="dark"] form[action*="/settings/company"] .row.g-3 > div > .border {
    background: #101f2c;
    border-color: #2b4052 !important;
}

@media (max-width: 575.98px) {
    .theme-toggle { width: 2.3rem; height: 2.3rem; flex-basis: 2.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle,
    .theme-icon { transition: none !important; }
}

/* Contextual page help */
.page-help-trigger {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.35rem;
    padding: .35rem .7rem .35rem .4rem;
    color: #123f74;
    font-size: .8rem;
    font-weight: 700;
    background: #f4f8fc;
    border: 1px solid #cfdae7;
    border-radius: 999px;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.page-help-trigger:hover,
.page-help-trigger:focus-visible,
.page-help-trigger[aria-expanded="true"] {
    background: #e7f0f9;
    border-color: #86a7c9;
    box-shadow: 0 0 0 .2rem rgba(18, 63, 116, .09);
    outline: 0;
}
.page-help-trigger-icon {
    display: inline-grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 1.55rem;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    line-height: 1;
    background: #123f74;
    border-radius: 50%;
}
.page-help-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    justify-content: flex-end;
    padding: 4.5rem 1.25rem 1.25rem;
    background: rgba(5, 19, 35, .38);
    backdrop-filter: blur(2px);
}
.page-help-overlay[hidden] { display: none !important; }
.page-help-panel {
    width: min(29rem, 100%);
    max-height: calc(100vh - 5.75rem);
    overflow: hidden;
    align-self: flex-start;
    color: #1c2d3f;
    background: #fff;
    border: 1px solid rgba(18, 63, 116, .16);
    border-radius: 1rem;
    box-shadow: 0 1.25rem 3rem rgba(5, 24, 45, .25);
    animation: page-help-enter .18s ease-out;
}
.page-help-panel:focus { outline: none; }
.page-help-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.2rem 1rem;
    color: #fff;
    background: linear-gradient(135deg, #123f74 0%, #0d5d91 100%);
}
.page-help-eyebrow {
    display: block;
    margin-bottom: .25rem;
    color: rgba(255,255,255,.72);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.page-help-header h2 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.25;
}
.page-help-close {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    padding: 0;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: .55rem;
}
.page-help-close:hover,
.page-help-close:focus-visible { background: rgba(255,255,255,.22); outline: 2px solid rgba(255,255,255,.5); }
.page-help-body {
    max-height: calc(100vh - 11.5rem);
    overflow-y: auto;
    padding: 1.15rem 1.2rem 1.25rem;
}
.page-help-summary {
    margin: 0 0 1rem;
    color: #506176;
    font-size: .9rem;
    line-height: 1.55;
}
.page-help-items { display: grid; gap: .65rem; }
.page-help-item {
    display: grid;
    grid-template-columns: 1.75rem 1fr;
    gap: .7rem;
    padding: .8rem;
    background: #f7f9fc;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
}
.page-help-step {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    color: #123f74;
    font-size: .75rem;
    font-weight: 800;
    background: #e5eef8;
    border-radius: 50%;
}
.page-help-item h3 {
    margin: .05rem 0 .2rem;
    color: #173a61;
    font-size: .86rem;
}
.page-help-item p {
    margin: 0;
    color: #5a6879;
    font-size: .79rem;
    line-height: 1.45;
}
.page-help-note {
    margin-top: .85rem;
    padding: .75rem .85rem;
    color: #664f05;
    font-size: .78rem;
    line-height: 1.45;
    background: #fff8dc;
    border-left: 3px solid #e9b600;
    border-radius: .35rem .6rem .6rem .35rem;
}
body.page-help-open { overflow: hidden; }

@keyframes page-help-enter {
    from { opacity: 0; transform: translateY(-.5rem) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 575.98px) {
    .page-help-trigger { padding: .3rem; }
    .page-help-trigger-icon { width: 1.7rem; height: 1.7rem; flex-basis: 1.7rem; }
    .page-help-overlay {
        align-items: flex-end;
        padding: .75rem;
    }
    .page-help-panel {
        width: 100%;
        max-height: calc(100vh - 1.5rem);
        align-self: auto;
        border-radius: 1rem;
        animation-name: page-help-mobile-enter;
    }
    .page-help-body { max-height: calc(100vh - 8.25rem); }
}

@keyframes page-help-mobile-enter {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .page-help-panel { animation-duration: .01ms !important; }
}

/* Final visual system ----------------------------------------------------- */
:root {
    --ce-primary-soft: #e9f1fa;
    --ce-accent-soft: #fff5d9;
    --ce-success: #14804a;
    --ce-danger: #c9363e;
    --ce-warning: #d99100;
    --ce-border: #dfe6ef;
    --ce-muted: #68798f;
    --ce-card-radius: .85rem;
    --ce-shadow-sm: 0 .25rem .9rem rgba(17, 48, 84, .07);
    --ce-shadow-md: 0 .6rem 1.8rem rgba(17, 48, 84, .11);
    --bs-primary-rgb: 18, 63, 116;
    --bs-link-color: #145a98;
    --bs-link-hover-color: #0b365f;
    --bs-border-color: var(--ce-border);
}

/* System confirmations and notifications */
.system-dialog {
    --bs-modal-zindex: 1110;
    --system-dialog-color: var(--ce-primary);
    --system-dialog-soft: var(--ce-primary-soft);
}
.system-dialog[data-tone="info"] {
    --system-dialog-color: #2875ad;
    --system-dialog-soft: #e7f3fb;
}
.system-dialog[data-tone="success"] {
    --system-dialog-color: var(--ce-success);
    --system-dialog-soft: #e6f5ed;
}
.system-dialog[data-tone="warning"] {
    --system-dialog-color: var(--ce-warning);
    --system-dialog-soft: var(--ce-accent-soft);
}
.system-dialog[data-tone="danger"] {
    --system-dialog-color: var(--ce-danger);
    --system-dialog-soft: #fcebed;
}
body.system-dialog-open > .modal-backdrop {
    --bs-backdrop-zindex: 1100;
    z-index: 1100;
}
body.system-dialog-open .search-select-panel,
body.system-dialog-open .page-help-overlay { visibility: hidden; }
.system-dialog .modal-dialog { max-width: 31rem; }
.system-dialog .modal-content {
    overflow: hidden;
    border: 1px solid var(--ce-border);
    border-top: .32rem solid var(--system-dialog-color);
    border-radius: 1rem;
    box-shadow: 0 1.4rem 4rem rgba(8, 35, 64, .24);
}
.system-dialog .modal-header {
    align-items: flex-start;
    padding: 1.15rem 1.2rem .85rem;
    border-bottom: 0;
}
.system-dialog-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .8rem;
}
.system-dialog-symbol {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    flex: 0 0 2.55rem;
    place-items: center;
    color: var(--system-dialog-color);
    font-size: 1.18rem;
    font-weight: 850;
    line-height: 1;
    background: var(--system-dialog-soft);
    border: 1px solid rgba(18, 63, 116, .14);
    border-radius: .8rem;
}
.system-dialog-eyebrow {
    margin-bottom: .14rem;
    color: var(--ce-muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}
.system-dialog .modal-title {
    color: #173a61;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.25;
}
.system-dialog .modal-body { padding: .35rem 1.2rem 1.25rem 4.55rem; }
.system-dialog-message {
    margin: 0;
    color: #4e6074;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-line;
}
.system-dialog-date {
    margin-top: 1rem;
}
.system-dialog-date[hidden] { display: none !important; }
.system-dialog-date > label {
    display: block;
    margin-bottom: .38rem;
    color: #284a6c;
    font-size: .77rem;
    font-weight: 750;
}
.system-dialog-date > small {
    display: block;
    margin-top: .42rem;
    color: #697b8e;
    font-size: .72rem;
}
.system-dialog-text { margin-top: 1rem; }
.system-dialog-text[hidden] { display: none !important; }
.system-dialog-text > label {
    display: block;
    margin-bottom: .4rem;
    color: #29445d;
    font-size: .78rem;
    font-weight: 750;
}
.system-dialog-text > textarea { min-height: 6.5rem; resize: vertical; }
.system-dialog-text > small {
    display: block;
    margin-top: .35rem;
    color: #6d8295;
    font-size: .7rem;
}
.system-dialog .modal-footer {
    gap: .5rem;
    padding: .9rem 1.2rem;
    background: #f8fafc;
    border-color: var(--ce-border);
}
.system-dialog .modal-footer .btn { min-width: 7.5rem; }
.system-dialog [data-system-dialog-cancel][hidden] { display: none !important; }

html[data-theme="dark"] .system-dialog {
    --system-dialog-soft: rgba(78, 144, 201, .17);
}
html[data-theme="dark"] .system-dialog[data-tone="success"] { --system-dialog-soft: rgba(50, 180, 113, .14); }
html[data-theme="dark"] .system-dialog[data-tone="warning"] { --system-dialog-soft: rgba(242, 184, 35, .14); }
html[data-theme="dark"] .system-dialog[data-tone="danger"] { --system-dialog-soft: rgba(224, 84, 94, .14); }
html[data-theme="dark"] .system-dialog .modal-title { color: #e4edf5; }
html[data-theme="dark"] .system-dialog-message { color: #b8c7d6; }
html[data-theme="dark"] .system-dialog-date > label { color: #d5e5f2; }
html[data-theme="dark"] .system-dialog-date > small { color: #98adbf; }
html[data-theme="dark"] .system-dialog-text > label { color: #d5e5f2; }
html[data-theme="dark"] .system-dialog-text > small { color: #98adbf; }
html[data-theme="dark"] .system-dialog .modal-footer { background: #0d1b28; }

html { scroll-behavior: smooth; }
body {
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.48;
    background:
        radial-gradient(circle at 100% 0, rgba(31, 101, 165, .055), transparent 31rem),
        var(--ce-surface);
}
a { text-underline-offset: .16em; }
code {
    color: #7a3156;
    background: #f6edf3;
    border-radius: .35rem;
    padding: .12rem .32rem;
    overflow-wrap: anywhere;
}

.btn {
    border-radius: .55rem;
    font-weight: 600;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:not(:disabled):hover { transform: translateY(-1px); }
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible,
.sidebar-link:focus-visible,
.report-tab:focus-visible {
    outline: 3px solid rgba(242, 169, 0, .42);
    outline-offset: 2px;
    box-shadow: none;
}
.btn-outline-primary {
    --bs-btn-color: var(--ce-primary);
    --bs-btn-border-color: #8da8c5;
    --bs-btn-hover-bg: var(--ce-primary);
    --bs-btn-hover-border-color: var(--ce-primary);
}
.btn-outline-secondary { --bs-btn-border-color: #b6c2d0; }

.form-control,
.form-select,
.input-group-text {
    min-height: 2.55rem;
    border-color: #ccd6e2;
    border-radius: .55rem;
}
.form-control-sm,
.form-select-sm { min-height: 2rem; border-radius: .45rem; }
.form-control:focus,
.form-select:focus {
    border-color: #4f82b5;
    box-shadow: 0 0 0 .2rem rgba(18, 63, 116, .12);
}
.form-control:disabled,
.form-select:disabled {
    color: #617086;
    background-color: #eef2f7;
    opacity: 1;
}
.form-text { color: #738299; }
.input-group > .input-group-text {
    color: #58697f;
    background: #eef3f8;
}

.app-sidebar,
.app-offcanvas {
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), transparent 32%),
        linear-gradient(180deg, #082744, var(--ce-primary));
}
.app-sidebar { border-right: 1px solid rgba(255,255,255,.06); }
.sidebar-brand { border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark {
    box-shadow: 0 .35rem 1rem rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.45);
    letter-spacing: -.02em;
}
.sidebar-nav { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
.sidebar-link { min-height: 2.55rem; border: 1px solid transparent; }
.sidebar-link:hover { border-color: rgba(255,255,255,.07); }
.sidebar-link.active {
    background: linear-gradient(90deg, rgba(242,169,0,.22), rgba(255,255,255,.075));
    border-color: rgba(242,169,0,.12);
}
.sidebar-footer { background: rgba(4, 28, 52, .17); }
.app-topbar {
    box-shadow: 0 .12rem .65rem rgba(16, 47, 82, .055);
    border-color: rgba(205, 216, 229, .8);
}
.topbar-title { letter-spacing: -.015em; }
.app-main { max-width: 1920px; margin-inline: auto; }

.page-title { letter-spacing: -.025em; }
.page-title + .text-secondary { max-width: 72ch; }
.content-card,
.metric-card {
    border-radius: var(--ce-card-radius);
    border: 1px solid rgba(217, 226, 237, .8);
    box-shadow: var(--ce-shadow-sm);
    background-color: rgba(255,255,255,.985);
}
.content-card { overflow: hidden; }
.content-card.has-open-search-select {
    position: relative;
    z-index: 1090;
    overflow: visible;
}
.content-card > .card-header {
    min-height: 3.35rem;
    padding: .9rem 1.1rem;
    color: #24415f;
    border-bottom: 1px solid #e5ebf2;
}
.content-card > .card-footer { border-top-color: #e5ebf2; }
.metric-card {
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.metric-card:hover {
    transform: translateY(-2px);
    border-color: #c8d7e7;
    box-shadow: var(--ce-shadow-md);
}
.metric-label {
    color: var(--ce-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.metric-value {
    margin-top: .35rem;
    color: #173b64;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.today-summary .card-body {
    display: flex;
    flex-direction: column;
}
.today-summary-label {
    min-height: 2.5em;
    line-height: 1.25;
}
.today-summary-value { margin-top: .35rem; }

/* Central Hoje */
.central-today-page {
    --today-navy: #0a376a;
    --today-blue: #0967b9;
    --today-line: #d9e5ef;
    --today-muted: #627c98;
    display: grid;
    gap: .85rem;
    color: #12385f;
}
.central-today-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 0 .8rem; }
.central-today-heading > div:first-child > small { color: #2d608e; font-size: .68rem; font-weight: 700; }
.central-today-heading h1 { margin: .3rem 0 .25rem; color: #0a376d; font-size: 1.9rem; font-weight: 850; letter-spacing: -.035em; }
.central-today-heading p { margin: 0; color: var(--today-muted); font-size: .82rem; }
.central-today-heading-actions { display: flex; gap: .8rem; }
.central-today-date,
.central-today-motto { min-height: 6.2rem; border-radius: .6rem; }
.central-today-date { position: relative; display: grid; grid-template-columns: 2.3rem minmax(13rem, 1fr) auto; gap: .6rem; align-items: center; padding: .8rem 1rem 1.3rem; background: linear-gradient(120deg, #eef6fc, #f9fbfd); }
.central-today-date > span { color: #0a579a; }
.central-today-date svg,
.central-today-motto svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.central-today-date strong,
.central-today-date small { display: block; }
.central-today-date strong { font-size: .7rem; }
.central-today-date small { margin-top: .2rem; color: #728aa2; font-size: .62rem; }
.central-today-date a { padding: .6rem .9rem; color: #144f88; background: #fff; border: 1px solid #c8d9e7; border-radius: .42rem; font-size: .67rem; font-weight: 750; text-decoration: none; }
.central-today-date em { position: absolute; right: 1rem; bottom: .35rem; color: #7890a7; font-size: .56rem; font-style: normal; }
.central-today-motto { display: grid; grid-template-columns: 3.4rem 1fr; gap: .6rem; align-items: center; min-width: 20rem; padding: .75rem 1rem; color: #08704c; background: linear-gradient(120deg, #eefaf4, #dcf3e8); border: 1px solid #c6ead8; }
.central-today-motto > span { grid-row: 1 / 3; }
.central-today-motto svg { width: 3.1rem; height: 3.1rem; }
.central-today-motto strong { align-self: end; font-size: .74rem; line-height: 1.4; }
.central-today-motto small { align-self: start; color: #135e46; font-size: .59rem; font-weight: 750; text-align: right; }
.central-today-metrics { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .55rem; }
.central-today-metric { position: relative; display: grid; grid-template-columns: 2.6rem 1fr; gap: .55rem; min-width: 0; min-height: 7.7rem; padding: .8rem .65rem; color: #123a64; background: #fff; border: 1px solid var(--today-line); border-radius: .58rem; box-shadow: 0 .22rem .75rem rgba(17, 59, 99, .055); text-decoration: none; }
.central-today-metric:hover { color: #0b4f8c; border-color: #9fc0dc; transform: translateY(-1px); }
.central-today-metric-icon { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; color: #116bb8; background: #dcefff; border-radius: .65rem; }
.central-today-metric-icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.central-today-metric div { min-width: 0; }
.central-today-metric small,
.central-today-metric strong,
.central-today-metric em { display: block; }
.central-today-metric small { min-height: 2.15rem; color: #1e4d79; font-size: .61rem; font-weight: 750; line-height: 1.25; }
.central-today-metric strong { margin-top: .18rem; color: #0a376d; font-size: 1.65rem; line-height: 1; }
.central-today-metric em { margin-top: .5rem; overflow: hidden; color: #6e859d; font-size: .57rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.central-today-metric > b { position: absolute; right: .55rem; bottom: .55rem; color: #7196b7; }
.central-today-metric.is-danger { border-color: #f3a8b1; }
.central-today-metric.is-danger .central-today-metric-icon { color: #d9273f; background: #ffdfe4; }
.central-today-metric.is-danger strong { color: #d51d36; }
.central-today-metric.is-warning { border-color: #f0d282; }
.central-today-metric.is-warning .central-today-metric-icon { color: #9d6c00; background: #ffebad; }
.central-today-metric.is-success { border-color: #bfe4d1; }
.central-today-metric.is-success .central-today-metric-icon { color: #058655; background: #dff5e9; }
.central-today-metric.is-secondary .central-today-metric-icon { color: #53677b; background: #e3e9ef; }
.central-today-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20.5rem; gap: .75rem; align-items: start; }
.central-today-main,
.central-today-aside { display: grid; gap: .75rem; min-width: 0; }
.central-action-card,
.central-mini-queue,
.central-now-card,
.central-transit-card { overflow: hidden; background: #fff; border: 1px solid var(--today-line); border-radius: .62rem; box-shadow: 0 .22rem .8rem rgba(17, 59, 99, .055); }
.central-action-card > header { padding: .7rem .85rem .45rem; }
.central-action-card h2,
.central-mini-queue h2,
.central-now-card h2,
.central-transit-card h2 { margin: 0; color: #0d3c6d; font-size: .92rem; font-weight: 850; }
.central-action-card > header p { margin: .1rem 0 0; color: #5e7894; font-size: .68rem; }
.central-action-filters { display: grid; grid-template-columns: minmax(29rem, 1fr) repeat(4, minmax(7rem, auto)) 5.5rem; gap: .55rem; align-items: end; padding: 0 .85rem .7rem; }
.central-action-tabs { display: flex; gap: .35rem; min-width: 0; overflow-x: auto; }
.central-action-tabs button,
.central-action-clear { min-height: 2.45rem; padding: .5rem .72rem; color: #315b83; background: #fff; border: 1px solid #cbd9e6; border-radius: .42rem; font-size: .62rem; font-weight: 700; white-space: nowrap; }
.central-action-tabs button.active { color: #fff; background: #0b4a86; border-color: #0b4a86; }
.central-action-tabs button span { opacity: .8; }
.central-action-filters label > span { display: block; margin-bottom: .25rem; color: #426584; font-size: .56rem; font-weight: 750; }
.central-action-filters select { width: 100%; min-height: 2.45rem; padding: .4rem 1.6rem .4rem .55rem; color: #20486e; background: #fff; border: 1px solid #cbd9e6; border-radius: .42rem; font-size: .62rem; }
.central-action-selection { display: flex; align-items: center; gap: .65rem; margin: 0 .85rem .7rem; padding: .58rem .7rem; color: #173b61; background: #eef6ff; border: 1px solid #b9d8f4; border-radius: .48rem; }
.central-action-selection[hidden] { display: none; }
.central-action-selection > div { display: flex; min-width: 15rem; flex-direction: column; }
.central-action-selection strong { font-size: .7rem; }
.central-action-selection small { margin-top: .08rem; color: #5d7892; font-size: .58rem; }
.central-action-selection__feedback { margin-left: auto; color: #a33a43; font-size: .62rem; font-weight: 700; }
.central-action-selection .btn { flex: 0 0 auto; }
.central-action-table { width: 100%; min-width: 76rem; table-layout: fixed; font-size: .61rem; }
.central-action-table th { padding: .55rem .65rem; color: #56728e; background: #f5f8fb; font-size: .51rem; text-transform: uppercase; white-space: nowrap; }
.central-action-table td { padding: .52rem .55rem; vertical-align: middle; overflow-wrap: anywhere; }
.central-action-table th:nth-child(1) { width: 2.4rem; }
.central-action-table th:nth-child(2) { width: 6.2rem; }
.central-action-table th:nth-child(3) { width: 4.8rem; }
.central-action-table th:nth-child(4) { width: 5.3rem; }
.central-action-table th:nth-child(5) { width: 9.5rem; }
.central-action-table th:nth-child(6) { width: 9.2rem; }
.central-action-table th:nth-child(7) { width: 7rem; }
.central-action-table th:nth-child(8) { width: 10.4rem; }
.central-action-table th:nth-child(9) { width: 11.5rem; }
.central-action-table th:nth-child(10) { width: 3.5rem; }
.central-action-table th:nth-child(11) { width: 8.2rem; }
.central-action-table td:last-child .btn { width: 100%; overflow: visible; line-height: 1.2; text-overflow: clip; white-space: normal; }
.central-action-table td:nth-child(5) { max-width: 11rem; overflow: visible; text-overflow: clip; white-space: normal; }
.central-action-table td:nth-child(6) strong,
.central-action-table td:nth-child(6) small { display: block; }
.central-action-table td:nth-child(6) small { color: #6c849c; }
.central-action-table td:nth-child(9) { max-width: 15rem; color: #4e6c88; }
.central-priority { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .45rem; color: #fff; background: #d52b41; border-radius: .34rem; font-size: .57rem; font-weight: 750; white-space: nowrap; }
.central-priority b { padding-left: .35rem; border-left: 1px solid rgba(255,255,255,.45); }
.central-priority.is-high { background: #e23d49; }
.central-priority.is-medium { color: #442f00; background: #ffc21e; }
.central-priority.is-low { background: #159353; }
.central-action-mobile article { padding: .85rem; border-top: 1px solid var(--today-line); }
.central-action-mobile article > div { display: flex; justify-content: space-between; align-items: center; }
.central-action-mobile h3 { margin: .65rem 0 .2rem; font-size: .9rem; }
.central-action-mobile p,
.central-action-mobile em { display: block; margin: 0 0 .5rem; color: #637c94; font-size: .72rem; font-style: normal; }
.central-action-mobile .btn { width: 100%; }
.central-today-bottom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.central-mini-queue { min-height: 16rem; }
.central-mini-queue header,
.central-transit-card header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .72rem .8rem; border-bottom: 1px solid var(--today-line); }
.central-mini-queue header h2 span,
.central-transit-card header h2 span { color: #e2263d; }
.central-mini-queue header a,
.central-transit-card header a { color: #0667b9; font-size: .57rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.central-mini-queue table { width: 100%; font-size: .58rem; }
.central-mini-queue th { padding: .5rem .65rem; color: #617b94; background: #f6f9fc; font-size: .5rem; text-transform: uppercase; }
.central-mini-queue td { padding: .48rem .65rem; border-top: 1px solid #e3eaf1; }
.central-mini-queue td small { display: block; color: #70879e; }
.central-mini-empty { display: grid; min-height: 12rem; place-content: center; justify-items: center; color: #31628e; text-align: center; }
.central-mini-empty span { display: grid; width: 3.2rem; height: 3.2rem; place-items: center; color: #164e83; background: #f4f8fc; border: 1px solid #d8e5ef; border-radius: 50%; }
.central-mini-empty svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.central-mini-empty p { margin: .7rem 0 0; font-size: .7rem; }
.central-now-card { padding-bottom: .25rem; }
.central-now-card > h2 { padding: .82rem .9rem; border-bottom: 1px solid var(--today-line); }
.central-now-card > a { display: grid; grid-template-columns: 2.15rem 1fr auto auto; gap: .55rem; align-items: center; min-height: 4.1rem; padding: .55rem .75rem; color: #244d74; border-bottom: 1px solid #e4ebf2; text-decoration: none; }
.central-now-card > a:last-child { border: 0; }
.central-now-card > a > span { display: grid; width: 2.15rem; height: 2.15rem; place-items: center; color: #075f9f; background: #dcefff; border-radius: 50%; }
.central-now-card svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.central-now-card strong { font-size: .66rem; }
.central-now-card b { color: #0a376d; font-size: 1rem; }
.central-now-card em { color: #6e8aa4; font-style: normal; }
.central-transit-row { display: flex; justify-content: space-between; gap: .65rem; align-items: center; min-height: 4.1rem; padding: .65rem .8rem; color: #173f69; border-bottom: 1px solid #e3eaf1; text-decoration: none; }
.central-transit-row div { min-width: 0; }
.central-transit-row strong,
.central-transit-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.central-transit-row strong { font-size: .67rem; }
.central-transit-row small { color: #66819a; font-size: .58rem; }
.central-transit-row > span { padding: .32rem .45rem; color: #fff; background: #073d75; border-radius: .3rem; font-size: .58rem; font-weight: 800; white-space: nowrap; }
html[data-theme="dark"] .central-today-page { --today-line: #2c465e; color: #d9e7f4; }
html[data-theme="dark"] .central-today-heading h1,
html[data-theme="dark"] .central-action-card h2,
html[data-theme="dark"] .central-mini-queue h2,
html[data-theme="dark"] .central-now-card h2,
html[data-theme="dark"] .central-transit-card h2 { color: #dcecff; }
html[data-theme="dark"] .central-today-metric,
html[data-theme="dark"] .central-action-card,
html[data-theme="dark"] .central-mini-queue,
html[data-theme="dark"] .central-now-card,
html[data-theme="dark"] .central-transit-card { background: #102438; }
html[data-theme="dark"] .central-today-date { background: #142b3e; }
html[data-theme="dark"] .central-today-metric small,
html[data-theme="dark"] .central-today-metric strong,
html[data-theme="dark"] .central-now-card > a,
html[data-theme="dark"] .central-now-card b,
html[data-theme="dark"] .central-transit-row { color: #d7e9f8; }
html[data-theme="dark"] .central-action-filters select,
html[data-theme="dark"] .central-action-tabs button,
html[data-theme="dark"] .central-action-clear { color: #d8e7f5; background: #162d42; border-color: #35526b; }

@media (max-width: 991.98px) {
    .central-today-metrics { grid-template-columns: repeat(4, 1fr); }
    .central-action-filters { grid-template-columns: 1fr repeat(3, 8rem); }
    .central-action-filters label:nth-of-type(4),
    .central-action-clear { display: none; }
}
@media (max-width: 1199.98px) {
    .central-today-heading { align-items: stretch; flex-direction: column; }
    .central-today-heading-actions { align-self: stretch; }
    .central-today-date { flex: 1; }
    .central-today-layout { grid-template-columns: 1fr; }
    .central-today-aside { grid-template-columns: 1fr 1fr; }
    .central-today-bottom-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
    .central-today-heading { padding: 0; }
    .central-today-heading h1 { font-size: 1.55rem; }
    .central-today-heading-actions { flex-direction: column; }
    .central-today-date { grid-template-columns: 2.3rem 1fr; }
    .central-today-date a { grid-column: 1 / -1; text-align: center; }
    .central-today-date em { display: none; }
    .central-today-motto { min-width: 0; }
    .central-today-metrics { grid-template-columns: 1fr 1fr; }
    .central-action-filters { display: flex; flex-wrap: wrap; align-items: flex-end; }
    .central-action-tabs { flex: 1 0 100%; }
    .central-action-filters label { flex: 1 1 9rem; }
    .central-action-filters label:nth-of-type(4),
    .central-action-clear { display: block; }
    .central-today-aside,
    .central-today-bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 439.98px) {
    .central-today-metrics { grid-template-columns: 1fr; }
}

/* Fretes por veículo */
.app-topbar .topbar-title { min-width: 19rem; line-height: 1.1; }
.app-topbar .topbar-title > strong { display: block; color: #123962; font-size: .92rem; font-weight: 800; }
.topbar-global-search { margin-right: auto; }
.topbar-global-search-shell {
    position: relative;
    width: min(42rem, 42vw);
    margin: 0 auto;
    z-index: 4;
}
.topbar-global-search-shell .topbar-global-search {
    width: 100%;
    margin: 0;
    display: flex;
}
.topbar-global-search:focus-within {
    border-color: #68aaf0;
    box-shadow: 0 0 0 .2rem rgba(28, 125, 224, .11), 0 .25rem .8rem rgba(15, 55, 95, .08);
}
.global-search-clear {
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: #6c87a5;
    font-size: 1.35rem;
    line-height: 1;
    background: transparent;
    border: 0;
    border-radius: 50%;
}
.global-search-clear:hover,.global-search-clear:focus-visible { color: #0b5fae; background: #eaf4ff; outline: 0; }
.global-search-panel {
    position: absolute;
    top: calc(100% + .55rem);
    left: 50%;
    width: min(67rem, calc(100vw - var(--ce-sidebar-width) - 2rem));
    max-height: min(47rem, calc(100vh - 5.5rem));
    overflow: hidden;
    color: #173b64;
    background: #fff;
    border: 1px solid #cbdceb;
    border-radius: .85rem;
    box-shadow: 0 1.1rem 3rem rgba(8, 42, 80, .2);
    transform: translateX(-50%);
}
.global-search-panel[hidden] { display: none !important; }
.global-search-tabs {
    display: flex;
    gap: .35rem;
    padding: .8rem .85rem;
    overflow-x: auto;
    border-bottom: 1px solid #d9e5f0;
    scrollbar-width: thin;
}
.global-search-tabs button {
    flex: none;
    min-height: 2.2rem;
    padding: .35rem .72rem;
    color: #31567e;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
    background: #f5f9fd;
    border: 1px solid #dfebf5;
    border-radius: .55rem;
}
.global-search-tabs button:hover,.global-search-tabs button:focus-visible { color: #075da8; border-color: #9bc5ec; outline: 0; }
.global-search-tabs button.is-active { color: #fff; background: #075aaa; border-color: #075aaa; box-shadow: 0 .15rem .45rem rgba(7,90,170,.2); }
.global-search-layout { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; min-height: 18rem; }
.global-search-results { max-height: min(36rem, calc(100vh - 13rem)); overflow-y: auto; padding: .35rem 0; }
.global-search-group + .global-search-group { border-top: 1px solid #e2ebf4; }
.global-search-more { margin:10px 14px;min-height:44px;border-radius:8px;font-size:14px;font-weight:600; }
.global-search-group-heading {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.45rem;
    padding: .45rem .85rem;
    color: #0b427a;
    font-size: .78rem;
    background: #f8fbfe;
}
.global-search-group-icon { width: 1.15rem; color: #0c66b8; font-size: .92rem; text-align: center; }
.global-search-group-icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.global-search-result {
    position: relative;
    display: grid;
    grid-template-columns: 2.75rem minmax(0,1fr) minmax(8rem,.36fr) 1rem;
    align-items: center;
    gap: .72rem;
    min-height: 4.5rem;
    padding: .55rem .85rem;
    color: inherit;
    text-decoration: none;
    border-top: 1px solid #edf2f7;
}
.global-search-result:hover,.global-search-result.is-active { color: inherit; background: #edf6ff; box-shadow: inset 3px 0 #1479d1; }
.global-search-result-icon {
    width: 2.55rem;
    height: 2.55rem;
    display: grid;
    place-items: center;
    color: #0a5fae;
    font-size: 1.1rem;
    background: #eaf4ff;
    border: 1px solid #d5e8f8;
    border-radius: .65rem;
}
.global-search-result-icon svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.global-search-result-icon.type-client,.global-search-result-icon.type-provider,.global-search-result-icon.type-driver { border-radius: 50%; }
.global-search-result-main,.global-search-result-meta { min-width: 0; display: flex; flex-direction: column; gap: .12rem; }
.global-search-result-main strong { overflow: hidden; color: #073b76; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result-main span { overflow: hidden; color: #345c85; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result-main small,.global-search-result-meta > span { overflow: hidden; color: #70869e; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result-meta { align-items: flex-start; }
.global-search-result-meta em { display: inline-flex; align-items: center; gap: .3rem; color: #315b83; font-size: .64rem; font-style: normal; font-weight: 700; }
.global-search-result-meta em::before { width: .48rem; height: .48rem; content: ''; background: #3292e7; border-radius: 50%; }
.global-search-result-meta em.tone-success::before { background: #0ca56a; }
.global-search-result-meta em.tone-warning::before { background: #edae18; }
.global-search-result-meta em.tone-danger::before { background: #df334b; }
.global-search-result-arrow { color: #075aaa; font-size: 1.45rem; }
.global-search-tips {
    padding: 1rem;
    color: #355c83;
    font-size: .68rem;
    background: linear-gradient(180deg,#f4f9fe,#edf5fc);
    border-left: 1px solid #dbe7f1;
}
.global-search-tips h3 { margin: 0 0 .85rem; color: #123e70; font-size: .82rem; font-weight: 800; }
.global-search-tips > strong { display: block; margin-bottom: .45rem; color: #224c78; }
.global-search-tips ul { display: grid; gap: .5rem; margin: 0; padding: 0 0 1rem 1rem; }
.global-search-shortcuts { display: grid; gap: .45rem; padding-top: .8rem; border-top: 1px solid #d5e3ef; }
.global-search-shortcuts span { display: flex; align-items: center; gap: .3rem; }
.global-search-shortcuts kbd { min-width: 1.45rem; padding: .18rem .3rem; color: #144d83; text-align: center; background: #fff; border: 1px solid #aac5df; border-radius: .28rem; box-shadow: none; }
.global-search-all {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: .65rem;
    min-height: 3.35rem;
    padding: .65rem .95rem;
    color: #075aaa;
    font-size: .72rem;
    background: #eff7ff;
    border-top: 1px solid #cfe1f1;
}
.global-search-state,.global-search-intro {
    min-height: 18rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: 2rem;
    color: #70869d;
    text-align: center;
}
.global-search-state strong,.global-search-intro strong { color: #274f78; font-size: .9rem; }
.global-search-state-icon,.global-search-intro-icon { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; margin-bottom: .35rem; color: #0d66b7; font-size: 1.35rem; background: #edf6ff; border-radius: 50%; }
.global-search-state.loading .global-search-state-icon { animation: global-search-pulse .9s ease-in-out infinite alternate; }
@keyframes global-search-pulse { to { opacity: .4; transform: scale(.9); } }
.global-search-state.error .global-search-state-icon { color: #c52d42; background: #fff0f2; }
.topbar-actions { flex: none; }
.page-help-trigger.page-help-trigger--icon { width: 2.75rem; min-width: 2.75rem; min-height: 2.75rem; justify-content: center; padding: 0; color: #154f85; background: #fff; border-color: #cfdeeb; border-radius: 50%; box-shadow: 0 .15rem .5rem rgba(18,63,116,.06); }
.page-help-trigger--icon svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-help-trigger.page-help-trigger--icon:hover,
.page-help-trigger.page-help-trigger--icon:focus-visible,
.page-help-trigger.page-help-trigger--icon[aria-expanded="true"] { color: #fff; background: #0b4f8c; border-color: #0b4f8c; }
html[data-theme="dark"] .page-help-trigger.page-help-trigger--icon { color: #a9c9e7; background: #14283a; border-color: #38536b; }
html[data-theme="dark"] .page-help-trigger.page-help-trigger--icon:hover,
html[data-theme="dark"] .page-help-trigger.page-help-trigger--icon:focus-visible,
html[data-theme="dark"] .page-help-trigger.page-help-trigger--icon[aria-expanded="true"] { color: #102438; background: #f2b823; border-color: #f2b823; }
.app-topbar-clock { min-width: 12rem; padding: 0 1rem; border-right: 1px solid #dce5f0; }
html[data-theme="dark"] .app-topbar .topbar-title > strong { color: #deedfa; }
html[data-theme="dark"] .app-topbar-clock { border-color: #30475c; }
html[data-theme="dark"] .global-search-panel { color:#dbeafa; background:#102438; border-color:#36546e; box-shadow:0 1.2rem 3rem rgba(0,0,0,.5); }
html[data-theme="dark"] .global-search-tabs,html[data-theme="dark"] .global-search-group + .global-search-group,html[data-theme="dark"] .global-search-result { border-color:#29465f; }
html[data-theme="dark"] .global-search-tabs button,html[data-theme="dark"] .global-search-group-heading { color:#bcd6ec; background:#162d43; border-color:#31516d; }
html[data-theme="dark"] .global-search-tabs button.is-active { color:#fff; background:#1478ca; border-color:#1478ca; }
html[data-theme="dark"] .global-search-result:hover,html[data-theme="dark"] .global-search-result.is-active { background:#18344c; }
html[data-theme="dark"] .global-search-result-main strong { color:#e1effb; }
html[data-theme="dark"] .global-search-result-main span { color:#bad0e3; }
html[data-theme="dark"] .global-search-result-icon { color:#77baf0; background:#17344d; border-color:#31536e; }
html[data-theme="dark"] .global-search-tips { color:#b5caDC; background:#142b40; border-color:#315069; }
html[data-theme="dark"] .global-search-tips h3,html[data-theme="dark"] .global-search-tips > strong,html[data-theme="dark"] .global-search-state strong,html[data-theme="dark"] .global-search-intro strong { color:#dceafa; }
html[data-theme="dark"] .global-search-all { color:#91cafa; background:#173149; border-color:#36536b; }
.shipment-index-page {
    --shipment-navy: #0a376d;
    --shipment-blue: #096ac5;
    --shipment-line: #d6e3ef;
    --shipment-muted: #637d99;
    display: grid;
    gap: 1rem;
    padding-bottom: 1rem;
    color: #123a63;
}
.shipment-index-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding: 1.05rem 1.15rem; background: linear-gradient(135deg,#f7fbff 0%,#edf5fd 100%); border: 1px solid #d4e4f2; border-radius: .85rem; box-shadow: 0 .35rem 1.1rem rgba(22,64,103,.055); }
.shipment-index-heading nav { display: flex; align-items: center; gap: .42rem; color: #597691; font-size: .68rem; font-weight: 650; }
.shipment-index-heading nav a { color: #075ea9; }
.shipment-index-heading h1 { margin: .45rem 0 .22rem; color: var(--shipment-navy); font-size: clamp(1.75rem,2.2vw,2.15rem); font-weight: 850; letter-spacing: -.04em; line-height: 1.05; }
.shipment-index-heading p { max-width: 52rem; margin: 0; color: var(--shipment-muted); font-size: .78rem; line-height: 1.45; }
.shipment-index-heading-actions { display: flex; gap: .6rem; flex: none; align-items: center; }
.shipment-index-heading-actions .btn { min-height: 2.9rem; display: inline-flex; align-items: center; padding-inline: 1.1rem; border-radius: .55rem; font-weight: 750; box-shadow: 0 .18rem .45rem rgba(14,64,112,.08); }
.shipment-index-kpis { display: grid; grid-template-columns: repeat(7, minmax(9.7rem, 1fr)); gap: .7rem; }
.shipment-index-kpi { display: grid; grid-template-columns: 2.85rem 1fr; grid-template-rows: auto auto; min-width: 0; min-height: 6.15rem; padding: .78rem .8rem; background: #fff; border: 1px solid var(--shipment-line); border-radius: .72rem; box-shadow: 0 .25rem .85rem rgba(19,56,91,.06); text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.shipment-index-kpi:hover { border-color: #8eb4d5; box-shadow: 0 .42rem 1.05rem rgba(19,56,91,.1); transform: translateY(-2px); }
.shipment-index-kpi > span { grid-row: 1 / 3; align-self: center; display: grid; width: 2.65rem; height: 2.65rem; place-items: center; color: #0870d3; background: #dceeff; border-radius: .58rem; }
.shipment-index-kpi svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.shipment-index-kpi strong { align-self: end; overflow: hidden; color: #0a376d; font-size: 1.62rem; line-height: 1; text-overflow: ellipsis; }
.shipment-index-kpi small { align-self: start; min-height: 1.55rem; margin-top: .3rem; overflow: hidden; color: #567593; font-size: .64rem; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: normal; }
.shipment-index-kpi.is-yellow { border-color: #efd594; }.shipment-index-kpi.is-yellow > span { color: #9c6900; background: #ffe6a2; }
.shipment-index-kpi.is-green { border-color: #c7e5d6; }.shipment-index-kpi.is-green > span { color: #087f4f; background: #dff5e8; }.shipment-index-kpi.is-green strong { color: #07834f; }
.shipment-index-kpi.is-slate > span { color: #556d85; background: #e3ebf2; }
.shipment-index-kpi.is-red { border-color: #f2b4bc; }.shipment-index-kpi.is-red > span { color: #d52b42; background: #ffe0e5; }.shipment-index-kpi.is-red strong { color: #d51d37; }
.shipment-list-context { margin: 0; padding: 0 .35rem; font-size: .68rem; }
.shipment-list-context > summary { color: #53718d; font-weight: 650; }
.shipment-list-context > p { margin: .35rem 0 0; }
.shipment-dashboard-filter { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: .6rem .8rem; }
.shipment-dashboard-filter a { font-weight: 750; }
.shipment-filter-card,
.shipment-index-list { overflow: hidden; margin: 0; background: #fff; border: 1px solid var(--shipment-line); border-radius: .58rem; box-shadow: 0 .22rem .8rem rgba(19,56,91,.055); }
.shipment-filter-card,
.shipment-index-list { border-radius: .72rem; box-shadow: 0 .3rem 1rem rgba(19,56,91,.06); }
.shipment-filter-card > header { display: flex; align-items: center; justify-content: space-between; padding: .78rem 1rem; color: #123e6d; background: linear-gradient(180deg,#fff,#f7fafe); border-bottom: 1px solid var(--shipment-line); font-size: .76rem; letter-spacing: .01em; }
.shipment-filter-card > header span { color: #0870cb; font-size: .62rem; }
.shipment-filter-card form { padding: .85rem 1rem .95rem; }
.shipment-filter-card label,
.shipment-filter-secondary fieldset { min-width: 0; margin: 0; }
.shipment-filter-card label > span,
.shipment-filter-secondary legend { display: block; width: auto; margin: 0 0 .3rem; color: #315a80; font-size: .6rem; font-weight: 750; }
.shipment-filter-card .form-control,
.shipment-filter-card .form-select { min-height: 2.8rem; border-color: #cbdbea; border-radius: .38rem; color: #1e486f; font-size: .7rem; }
.shipment-filter-card .form-control:focus,
.shipment-filter-card .form-select:focus { border-color: #6da7d8; box-shadow: 0 0 0 .18rem rgba(9,106,197,.09); }
.shipment-filter-main { display: grid; grid-template-columns: minmax(22rem, 1.9fr) repeat(4, minmax(10rem, 1fr)); gap: .75rem; padding: 0; }
.shipment-filter-secondary { display: grid; grid-template-columns: minmax(24rem, 1.7fr) minmax(12rem, 1fr) minmax(12rem, 1fr) 7.5rem auto; gap: .75rem; align-items: end; margin-top: .75rem; }
.shipment-filter-secondary fieldset > div { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .4rem; }
.shipment-filter-secondary fieldset > div > span { color: #7d90a4; font-size: .62rem; }
.shipment-more-toggle { min-height: 2.8rem; color: #174e80; background: transparent; border: 0; font-size: .66rem; font-weight: 750; white-space: nowrap; }
.shipment-more-toggle:hover { color: #0870cb; }
.shipment-filter-actions { display: flex; gap: .5rem; }
.shipment-filter-actions .btn { min-height: 2.8rem; min-width: 8rem; display: inline-grid; place-items: center; font-size: .68rem; font-weight: 750; white-space: nowrap; }
.shipment-advanced-filters { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--shipment-line); }
.shipment-advanced-filters-body { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: .65rem; padding: 0; background: transparent; }
.shipment-advanced-filters-body label > small { display: block; margin-top: .2rem; color: #7890a6; font-size: .55rem; }
.shipment-index-toolbar { display: flex; align-items: center; gap: .65rem; min-height: 4.15rem; padding: .68rem .95rem; background: linear-gradient(180deg,#fff,#fbfdff); border-bottom: 1px solid var(--shipment-line); }
.shipment-selection-summary { display: flex; align-items: center; gap: .35rem; flex: none; color: #254d75; font-size: .64rem; }
.shipment-selection-dot { width: .66rem; height: .66rem; border: 1.5px solid #0b4f8c; border-radius: 50%; }
.shipment-selection-actions { display: flex; min-width: 0; gap: .38rem; }
.shipment-selection-actions .btn,
.shipment-list-tools .btn { min-height: 2.6rem; display: inline-flex; align-items: center; justify-content: center; padding: .42rem .78rem; font-size: .62rem; font-weight: 700; white-space: nowrap; }
.shipment-selection-actions .btn.disabled { color: #8799ab; background: #f6f8fa; border-color: #dde5ec; opacity: 1; pointer-events: auto; cursor: not-allowed; }
.shipment-list-tools { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.shipment-list-tools form { display: flex; align-items: center; gap: .35rem; color: #52708d; font-size: .61rem; white-space: nowrap; }
.shipment-list-tools select { min-height: 2.6rem; padding: .35rem 1.6rem .35rem .55rem; color: #244d75; background: #fff; border: 1px solid #cedce8; border-radius: .35rem; }
.shipment-index-table { width: 100%; min-width: 90rem; table-layout: fixed; font-size: .8rem; }
.shipment-index-table thead th { padding: .75rem .62rem; color: #4c6d8e; background: #f3f7fb; border-color: #dce6ef; font-size: .65rem; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; white-space: nowrap; }
.shipment-index-table tbody td { padding: .78rem .62rem; color: #173e65; border-color: #e0e8f0; vertical-align: middle; }
.shipment-index-table tbody tr { transition: background-color .14s ease; }
.shipment-index-table tbody tr:hover > td { background: #f7fbff; }
.shipment-index-table tbody tr.is-selected td { background: #eef7ff; }
.shipment-index-table th:nth-child(1) { width: 2.3rem; }.shipment-index-table th:nth-child(2) { width: 2.4rem; }.shipment-index-table th:nth-child(3) { width: 8.5rem; }.shipment-index-table th:nth-child(4) { width: 9.5rem; }.shipment-index-table th:nth-child(5) { width: 11rem; }.shipment-index-table th:nth-child(6) { width: 8rem; }.shipment-index-table th:nth-child(7) { width: 15rem; }.shipment-index-table th:nth-child(8) { width: 11rem; }.shipment-index-table th:nth-child(9) { width: 8rem; }.shipment-index-table th:nth-child(10) { width: 8rem; }.shipment-index-table th:nth-child(11) { width: 8rem; }
.shipment-index-table td strong,
.shipment-index-table td small { display: block; }
.shipment-index-table td strong { overflow-wrap: anywhere; color: #123a62; font-size: .8rem; line-height: 1.25; }
.shipment-index-table td small { max-width: 100%; margin-top: .15rem; overflow-wrap: anywhere; color: #6b839b; font-size: .68rem; line-height: 1.25; white-space: normal; }
.shipment-index-table td:nth-child(3) strong { overflow: visible; overflow-wrap: normal; text-overflow: clip; white-space: nowrap; }
.shipment-index-table td:nth-child(3) small { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.shipment-index-table .operation-vehicle-identity a,
.shipment-index-table .operation-vehicle-identity strong,
.shipment-index-table .operation-vehicle-identity small { max-width: 100%; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.shipment-plate-line { display: flex; min-width: 0; max-width: 100%; align-items: center; gap: .35rem; }
.shipment-plate-line .shipment-detail-link { min-width: 0; }
.shipment-plate-copy { display: inline-grid; width: 1.8rem; height: 1.8rem; flex: 0 0 1.8rem; place-items: center; padding: 0; color: #174b7c; background: #fff; border: 1px solid #bfd1e2; border-radius: .45rem; box-shadow: 0 .1rem .28rem rgba(17,59,96,.08); cursor: pointer; transition: color .15s,background .15s,border-color .15s,transform .15s; }
.shipment-plate-copy svg { width: .92rem; height: .92rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shipment-plate-copy:hover { color: #fff; background: var(--ce-primary); border-color: var(--ce-primary); transform: translateY(-1px); }
.shipment-plate-copy:focus-visible { outline: 3px solid rgba(20,117,201,.2); outline-offset: 2px; }
.shipment-plate-copy.is-copied { color: #087548; background: #e5f7ed; border-color: #8bcfae; }
.shipment-index-table .operation-route-acronym { max-width: 100%; overflow: visible; overflow-wrap: anywhere; font-size: .74rem; line-height: 1.2; text-overflow: clip; white-space: normal; }
.shipment-status-pill { display: flex; width: 100%; min-width: 0; align-items: flex-start; max-width: 100%; gap: .38rem; padding: .34rem .55rem; overflow: visible; color: #174e7d; background: color-mix(in srgb, var(--status-color) 12%, white); border-radius: .55rem; font-size: .68rem; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.shipment-status-pill i { width: .58rem; height: .58rem; flex: none; margin-top: .18rem; background: var(--status-color); border-radius: 50%; }
.shipment-photo-count { display: inline-flex; align-items: center; max-width: 100%; gap: .35rem; font-weight: 750; overflow-wrap: normal; word-break: normal; white-space: normal; }.shipment-photo-count i { width: .55rem; height: .55rem; flex: none; background: #dc2941; border-radius: 50%; }.shipment-photo-count.has-photos i { background: #159258; }.shipment-photo-count.spreadsheet-confirmed i { background: #e1a400; }.shipment-photo-count.not-applicable i { background: #8394a5; }
.shipment-index-table td:nth-child(9) small.is-danger { color: #d7243c; }.shipment-index-table td:nth-child(9) small.is-warning { color: #a66d00; }.shipment-index-table td:nth-child(9) small.is-success { color: #087c4c; }
.shipment-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; }
.shipment-row-actions .btn { box-sizing: border-box; min-width: 0; max-width: 100%; padding-inline: .65rem; font-size: .58rem; font-weight: 750; }
.shipment-more-button { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; color: #0b5ca7; background: transparent; border: 0; border-radius: .35rem; font-size: 1.25rem; line-height: 1; }
.shipment-more-button:hover,
.shipment-more-button[aria-expanded="true"] { background: #eaf4ff; }
.shipment-index-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.4rem; padding: .7rem .9rem; color: #365b80; font-size: .65rem; }
.shipment-index-pagination nav { display: flex; align-items: center; gap: .35rem; }
.shipment-index-pagination nav a { display: grid; min-width: 2.6rem; height: 2.6rem; place-items: center; color: #174e81; background: #fff; border: 1px solid #d1dfeb; border-radius: .36rem; text-decoration: none; }
.shipment-index-pagination nav a.active { color: #fff; background: #0b4f8c; border-color: #0b4f8c; }.shipment-index-pagination nav a.disabled { color: #9eacb9; pointer-events: none; }
html[data-theme="dark"] .shipment-index-page { --shipment-line: #2c465e; color: #d9e8f4; }
html[data-theme="dark"] .shipment-index-heading h1,
html[data-theme="dark"] .shipment-index-kpi strong,
html[data-theme="dark"] .shipment-index-table td strong { color: #dcecff; }
html[data-theme="dark"] .shipment-index-kpi,
html[data-theme="dark"] .shipment-filter-card,
html[data-theme="dark"] .shipment-index-list,
html[data-theme="dark"] .shipment-index-toolbar { background: #102438; }
html[data-theme="dark"] .shipment-index-heading { background: linear-gradient(135deg,#122d45 0%,#102438 100%); border-color: #2c4b66; box-shadow: 0 .35rem 1.1rem rgba(0,0,0,.22); }
html[data-theme="dark"] .shipment-index-heading nav,
html[data-theme="dark"] .shipment-index-heading p { color: #9bb5cc; }
html[data-theme="dark"] .shipment-filter-card > header,
html[data-theme="dark"] .shipment-index-table thead th { color: #b9cee1; background: #162d42; }
html[data-theme="dark"] .shipment-filter-card .form-control,
html[data-theme="dark"] .shipment-filter-card .form-select,
html[data-theme="dark"] .shipment-list-tools select { color: #d9e8f4; background-color: #142b3e; border-color: #35526b; }
html[data-theme="dark"] .shipment-status-pill { background: #1c3347; }

@media (max-width: 1399.98px) {
    .app-topbar .topbar-title { min-width: 15rem; }
    .topbar-global-search-shell { width: min(28rem, 32vw); }
    .topbar-global-search { width: 100%; }
    .app-topbar-clock { min-width: 10.5rem; }
    .shipment-index-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .shipment-filter-main { grid-template-columns: minmax(20rem, 1.8fr) repeat(2, 1fr); }
    .shipment-filter-main label:nth-child(4),.shipment-filter-main label:nth-child(5) { grid-row: 2; }
    .shipment-filter-secondary { grid-template-columns: minmax(23rem, 1.4fr) 1fr 1fr 7.5rem; }
    .shipment-filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .shipment-index-toolbar { flex-wrap: wrap; }
    .shipment-list-tools { margin-left: 0; }
    .shipment-index-table { min-width: 80rem; }
    .shipment-index-table th:nth-child(2),.shipment-index-table td:nth-child(2) { display: none; }
}
@media (max-width: 991.98px) {
    .app-topbar .topbar-title { min-width: 0; }
    .topbar-global-search-shell { width: min(25rem, 42vw); }
    .topbar-global-search { width: 100%; }
    .global-search-panel { width: min(50rem, calc(100vw - 2rem)); }
    .global-search-layout { grid-template-columns: minmax(0,1fr); }
    .global-search-tips { display: none; }
    .shipment-index-heading { align-items: stretch; flex-direction: column; }
    .shipment-index-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shipment-filter-main,.shipment-filter-secondary,.shipment-advanced-filters-body { grid-template-columns: 1fr 1fr; }
    .shipment-filter-main .is-search,.shipment-filter-secondary fieldset { grid-column: 1 / -1; }
    .shipment-filter-actions { grid-column: auto; }
    .shipment-selection-actions { order: 3; width: 100%; overflow-x: auto; }
    .shipment-list-tools { margin-left: auto; }
}
@media (max-width: 575.98px) {
    .shipment-index-heading-actions,.shipment-filter-actions { display: grid; grid-template-columns: 1fr; }
    .shipment-index-heading-actions .btn { justify-content: center; }
    .shipment-index-kpis,.shipment-filter-main,.shipment-filter-secondary,.shipment-advanced-filters-body { grid-template-columns: 1fr; }
    .shipment-filter-main label:nth-child(4),.shipment-filter-main label:nth-child(5) { grid-row: auto; }
    .shipment-filter-secondary fieldset,.shipment-filter-actions { grid-column: auto; }
    .shipment-index-toolbar { align-items: stretch; }
    .shipment-list-tools { width: 100%; justify-content: space-between; margin: 0; }
    .shipment-index-pagination { align-items: flex-start; flex-direction: column; }
    .shipment-index-pagination nav { max-width: 100%; overflow-x: auto; }
}

.alert {
    border: 0;
    border-left: .3rem solid currentColor;
    border-radius: .7rem;
    box-shadow: 0 .18rem .65rem rgba(20, 47, 77, .055);
}
.badge { font-weight: 650; letter-spacing: .005em; }
.badge.text-bg-light { color: #4f6075 !important; border: 1px solid #dce4ed; }

.table { --bs-table-color: #2d3f54; --bs-table-hover-bg: #f3f7fb; }
.table > :not(caption) > * > * {
    padding: .78rem .9rem;
    border-bottom-color: #e7ecf2;
}
.table thead th {
    color: #5a6d83;
    background: #f7f9fc;
    border-bottom-width: 1px;
    vertical-align: middle;
}
.table tbody tr:last-child > * { border-bottom-width: 0; }
.table tbody tr { transition: background-color .12s ease; }
.table-responsive {
    scrollbar-width: thin;
    scrollbar-color: #aebdcd #eef2f6;
    overscroll-behavior-inline: contain;
}
.table-responsive::-webkit-scrollbar { height: .65rem; }
.table-responsive::-webkit-scrollbar-track { background: #eef2f6; }
.table-responsive::-webkit-scrollbar-thumb { background: #aebdcd; border: 2px solid #eef2f6; border-radius: 999px; }
.empty-state {
    min-height: 7rem;
    vertical-align: middle;
    background: linear-gradient(135deg, rgba(244,247,251,.62), rgba(255,255,255,.8));
}
.status-dot { box-shadow: 0 0 0 2px rgba(0,0,0,.055); vertical-align: .02em; }

.pagination { gap: .2rem; }
.pagination .page-link {
    min-width: 2.15rem;
    border-radius: .45rem !important;
    border-color: #d7e0ea;
    color: var(--ce-primary);
    text-align: center;
}
.pagination .page-item.active .page-link {
    background: var(--ce-primary);
    border-color: var(--ce-primary);
}

/* Paginador padrão das listagens. */
.system-paginator {
    display: flex;
    min-height: 3.9rem;
    align-items: center;
    justify-content: flex-end;
    gap: .8rem;
    padding: .65rem .85rem;
    color: #58728d;
    font-size: .7rem;
}
.system-paginator > span { white-space: nowrap; }
.system-paginator > span strong { color: inherit; font-weight: 700; }
.system-paginator--card { border-top: 1px solid #e1e8ef; }
.system-paginator--embedded { padding-inline: 1rem; }
.system-paginator nav { display: flex; align-items: center; gap: .3rem; }
.system-paginator nav a,
.system-paginator nav .ellipsis {
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    color: #31577d;
    background: #fff;
    border: 1px solid #d7e2ed;
    border-radius: .42rem;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}
.system-paginator nav a:hover { color: #0b63b6; background: #f2f7fc; border-color: #a9c4dd; }
.system-paginator nav a.active { color: #fff; background: #0873df; border-color: #0873df; }
.system-paginator nav a.disabled { color: #aebdcb; background: #f8fafc; pointer-events: none; }
.system-paginator nav .ellipsis { color: #8498aa; background: transparent; border-color: transparent; }
html[data-theme="dark"] .system-paginator { color: var(--gh-text-muted); }
html[data-theme="dark"] .system-paginator--card { border-top-color: var(--gh-border); }
html[data-theme="dark"] .system-paginator nav a {
    color: var(--gh-accent-hover);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .system-paginator nav a:hover { color: var(--gh-text-strong); background: var(--gh-surface-raised); border-color: #6e7681; }
html[data-theme="dark"] .system-paginator nav a.active { color: #fff; background: #1f6feb; border-color: #388bfd; }
html[data-theme="dark"] .system-paginator nav a.disabled { color: #6e7681; background: var(--gh-canvas); }
html[data-theme="dark"] .system-paginator nav .ellipsis { color: var(--gh-text-muted); }
@media (max-width: 575.98px) {
    .system-paginator { align-items: flex-end; flex-direction: column; }
    .system-paginator nav { max-width: 100%; overflow-x: auto; }
}

/* Dashboard */
.app-main > .card.text-white {
    color: #fff !important;
    border-radius: 1rem;
    box-shadow: 0 .8rem 2rem rgba(11, 43, 80, .2) !important;
}
.app-main > .card.text-white .text-white-50 {
    color: rgba(255,255,255,.72) !important;
}
.app-main > .card.text-white img { filter: drop-shadow(0 .2rem .3rem rgba(0,0,0,.08)); }
section[aria-labelledby="central-filters-title"] .card-header h2,
section[aria-labelledby="route-summary-title"] h2,
section[aria-labelledby="general-metrics-title"] h2,
section[aria-labelledby="alerts-title"] h2,
section[aria-labelledby="charts-title"] h2 { letter-spacing: -.015em; }
section[aria-labelledby="central-filters-title"] {
    border-top: .22rem solid var(--ce-accent);
}
section[aria-labelledby="central-filters-title"] .form-label { font-size: .78rem; }
.dashboard-central-filters > [class*="col-"] { min-width: 0; }
.dashboard-central-filters .form-control,
.dashboard-central-filters .form-select { width: 100%; min-width: 0; }
.dashboard-central-filters input[type="date"] {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
@media (min-width: 992px) {
    .dashboard-central-filter-actions { padding-top: 1.72rem; }
}

/* Collapsible application navigation */
.app-sidebar,
.app-content {
    transition: width .22s ease, margin-left .22s ease;
}
.sidebar-brand-row {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding-right: .55rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand-row .sidebar-brand {
    min-width: 0;
    flex: 1;
    border-bottom: 0;
}
.sidebar-brand-copy,
.sidebar-footer-copy,
.sidebar-link-label {
    min-width: 0;
}
.sidebar-brand-copy,
.sidebar-footer-copy {
    overflow: hidden;
}
.sidebar-collapse-toggle {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    padding: 0;
    color: rgba(255,255,255,.82);
    background: transparent;
    border: 1px solid transparent;
    border-radius: .55rem;
}
.sidebar-collapse-toggle:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.08);
}
.sidebar-collapse-toggle:focus-visible {
    outline: 3px solid rgba(242,169,0,.45);
    outline-offset: 1px;
}
.sidebar-collapse-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}
.sidebar-heading {
    display: flex;
    align-items: center;
    width: 100%;
    gap: .55rem;
    min-height: 2.25rem;
    color: rgba(255,255,255,.86);
    background: transparent;
    border: 0;
    border-radius: .45rem;
    text-align: left;
    font-size: .82rem;
    letter-spacing: .055em;
    cursor: pointer;
}
.sidebar-heading:hover { color: rgba(255,255,255,.9); }
.sidebar-heading:focus-visible {
    color: #fff;
    outline: 2px solid rgba(242,169,0,.42);
    outline-offset: -2px;
}
.sidebar-heading-label { flex: 1; }
.sidebar-heading-chevron {
    width: .5rem;
    height: .5rem;
    margin-right: .15rem;
    color: #fff;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: .92;
    transform: rotate(225deg) translate(-1px, -1px);
    transition: transform .16s ease;
}
.sidebar-heading[aria-expanded="false"] .sidebar-heading-chevron {
    transform: rotate(45deg) translate(-1px, -1px);
}
.sidebar-group + .sidebar-group {
    margin-top: .72rem;
    padding-top: .72rem;
    border-top: 1px solid rgba(255,255,255,.14);
}
.sidebar-group-items {
    display: grid;
    gap: .08rem;
}
.sidebar-group-items[hidden] { display: none; }
.sidebar-link { position: relative; }
.sidebar-icon {
    display: grid;
    place-items: center;
    flex: 0 0 1.25rem;
    height: 1.25rem;
    line-height: 1;
}
.sidebar-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sidebar-footer {
    display: flex;
    align-items: center;
    gap: .7rem;
}
.sidebar-user-avatar {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 2.2rem;
    color: #173b64;
    background: #dceaf7;
    border: 2px solid rgba(255,255,255,.7);
    border-radius: 50%;
    font-size: .88rem;
    font-weight: 800;
}
.sidebar-user-security {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-left: auto;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: .55rem;
}
.sidebar-user-security:hover, .sidebar-user-security:focus-visible {
    color: #fff;
    background: rgba(255,255,255,.12);
}
.sidebar-navigation-tooltip {
    position: fixed;
    z-index: 2100;
    max-width: 18rem;
    padding: .55rem .75rem;
    color: #fff;
    background: #102f50;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: .5rem;
    box-shadow: 0 .55rem 1.5rem rgba(3,24,45,.24);
    font-size: .8rem;
    font-weight: 650;
    line-height: 1.2;
    pointer-events: none;
}
.sidebar-navigation-tooltip[hidden] { display: none; }

@media (min-width: 992px) {
    html.sidebar-collapsed { --ce-sidebar-width: var(--ce-sidebar-collapsed-width); }
    html.sidebar-collapsed .sidebar-brand-row {
        display: grid;
        justify-items: center;
        min-height: 112px;
        padding: .65rem .45rem;
    }
    html.sidebar-collapsed .sidebar-brand-row .sidebar-brand {
        min-height: auto;
        padding: 0;
    }
    html.sidebar-collapsed .sidebar-brand-copy,
    html.sidebar-collapsed .sidebar-footer-copy,
    html.sidebar-collapsed .sidebar-link-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    html.sidebar-collapsed .sidebar-collapse-toggle {
        width: 2.35rem;
        height: 2.1rem;
    }
    html.sidebar-collapsed .sidebar-nav { padding: .25rem .45rem 1rem; }
    html.sidebar-collapsed .sidebar-group + .sidebar-group {
        margin-top: .65rem;
        padding-top: .65rem;
    }
    html.sidebar-collapsed .sidebar-heading {
        display: none;
    }
    html.sidebar-collapsed .app-sidebar .sidebar-group-items { display: grid; }
    html.sidebar-collapsed .sidebar-link {
        justify-content: center;
        min-height: 2.8rem;
        padding: .45rem;
        border-radius: .6rem;
    }
    html.sidebar-collapsed .sidebar-link.active {
        box-shadow: inset 3px 0 var(--ce-accent);
    }
    html.sidebar-collapsed .sidebar-icon {
        width: 1.4rem;
        height: 1.4rem;
        flex-basis: 1.4rem;
        font-size: 1rem;
    }
    html.sidebar-collapsed .sidebar-footer {
        justify-content: center;
        padding: .85rem .4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-sidebar,
    .app-content,
    .sidebar-heading-chevron { transition: none; }
}
section[aria-labelledby="route-summary-title"] .metric-card {
    background: linear-gradient(155deg, #fff, #f7faff);
}
section[aria-labelledby="route-summary-title"] .metric-card h3 {
    letter-spacing: .035em;
}
section[aria-labelledby="route-summary-title"] .metric-card .badge {
    min-width: 2.6rem;
    padding: .45rem .6rem;
}
section[aria-labelledby="general-metrics-title"] .metric-card { overflow: hidden; }
section[aria-labelledby="general-metrics-title"] .metric-card::after {
    position: absolute;
    inset: auto -.75rem -.85rem auto;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: rgba(18,63,116,.045);
    content: "";
}
section[aria-labelledby="general-metrics-title"] .metric-card .badge {
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    place-items: center;
    padding: 0;
}
section[aria-labelledby="general-metrics-title"] .metric-card .h2,
section[aria-labelledby="general-metrics-title"] .metric-card .h4 {
    color: #173b64;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}
section[aria-labelledby="alerts-title"] a.card {
    border-radius: .78rem;
    background: rgba(255,255,255,.985);
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
section[aria-labelledby="alerts-title"] a.card:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: var(--ce-shadow-md) !important;
}
section[aria-labelledby="alerts-title"] a.card:focus-visible {
    outline: 3px solid rgba(18,63,116,.22);
    outline-offset: 2px;
}
.card.dashboard-alert-card,
.card.dashboard-operational-indicator {
    position: relative;
    overflow: hidden;
    border: 2px solid #dc3545 !important;
    box-shadow: 0 .3rem 1rem rgba(220, 53, 69, .12) !important;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease !important;
}
.legacy-dashboard-operational-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.legacy-dashboard-operational-filters {
    display: grid;
    grid-template-columns: 1fr;
    align-items: end;
    gap: .75rem;
}
.legacy-dashboard-operational-filters > * { min-width: 0; }
.dashboard-operational-filter-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
}
.card .dashboard-operational-title {
    color: #0b2b50;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 2.6em;
}
.card.dashboard-operational-indicator .card-body {
    display: grid;
    grid-template-rows: 2.6em auto 1fr;
    min-height: 7.5rem;
}
.dashboard-operational-value {
    color: #0b2b50;
    line-height: 1;
    margin: .35rem 0 0;
}
.dashboard-operational-action {
    align-self: end;
    line-height: 1.35;
    margin-top: 0;
    padding-top: .85rem;
}
html[data-theme="dark"] .dashboard-operational-title {
    color: #b9d7f5;
}
html[data-theme="dark"] .dashboard-operational-value {
    color: #edf6ff;
}
@media (min-width: 576px) {
    .dashboard-operational-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-operational-filters {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
    }
}
@media (min-width: 992px) {
    .dashboard-operational-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
    .dashboard-operational-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
.card.dashboard-alert-card::after,
.card.dashboard-operational-indicator::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.34);
}
a.card.dashboard-alert-card:hover,
a.card.dashboard-operational-indicator:hover {
    border-color: #b92332 !important;
    box-shadow: 0 .55rem 1.35rem rgba(220, 53, 69, .2) !important;
    transform: translateY(-2px);
}
a.card.dashboard-alert-card:focus-visible,
a.card.dashboard-operational-indicator:focus-visible {
    outline: 3px solid rgba(220, 53, 69, .28);
    outline-offset: 3px;
}
html[data-theme="dark"] .card.dashboard-alert-card,
html[data-theme="dark"] .card.dashboard-operational-indicator {
    border-color: #ff5d68 !important;
    box-shadow: 0 .35rem 1.15rem rgba(255, 65, 78, .18) !important;
}
html[data-theme="dark"] .card.dashboard-alert-card::after,
html[data-theme="dark"] .card.dashboard-operational-indicator::after {
    box-shadow: inset 0 0 0 1px rgba(255, 135, 143, .12);
}
html[data-theme="dark"] a.card.dashboard-alert-card:hover,
html[data-theme="dark"] a.card.dashboard-operational-indicator:hover {
    border-color: #ff7b84 !important;
    background: linear-gradient(155deg, #182836, #14222f);
    box-shadow: 0 .6rem 1.5rem rgba(255, 65, 78, .25) !important;
}
.legacy-dashboard-chart {
    display: grid;
    min-height: 16rem;
    align-items: center;
    overflow: hidden;
}
.legacy-dashboard-chart svg { display: block; max-height: 19rem; }
.table-sortable {
    cursor: pointer;
    user-select: none;
    transition: color .15s ease, background-color .15s ease;
}
.table-sortable:hover,
.table-sortable:focus-visible {
    color: var(--ce-primary);
    background: rgba(18, 63, 116, .055);
}
.table-sortable:focus-visible {
    outline: 2px solid rgba(18, 63, 116, .34);
    outline-offset: -2px;
}
.table-sort-indicator {
    display: inline-block;
    min-width: .9rem;
    margin-left: .35rem;
    color: currentColor;
    font-size: .7em;
    opacity: .48;
    vertical-align: .08em;
}
.table-sort-link {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    color: inherit;
    font: inherit;
    text-decoration: none;
}
.table-sort-link:hover,
.table-sort-link:focus-visible,
.table-sort-link.active {
    color: var(--ce-primary);
    text-decoration: none;
}
.text-end .table-sort-link { justify-content: flex-end; }
.table-sortable[aria-sort="ascending"] .table-sort-indicator,
.table-sortable[aria-sort="descending"] .table-sort-indicator {
    opacity: 1;
}
[data-shipment-queue] .card-header { background: linear-gradient(90deg, #fff, #f7faff) !important; }
[data-shipment-queue] .table { font-size: .88rem; }
[data-shipment-queue] .table td { vertical-align: middle; }
[data-shipment-queue] .form-control-sm,
[data-shipment-queue] .form-select-sm { font-size: .78rem; }
[data-shipment-queue] [data-shipment-feedback]:not(.d-none) { margin-top: .45rem !important; }
[data-shipment-operation-root] { transition: opacity .55s ease, transform .55s ease, background-color .15s ease; }

/* Reports */
.report-tabs { overflow: visible; }
.report-tab {
    display: flex;
    min-height: 5.4rem;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    gap: .2rem;
    padding: .9rem 1rem;
    color: #294866;
    background: #fff;
    border: 1px solid var(--ce-border);
    border-radius: .75rem;
    box-shadow: var(--ce-shadow-sm);
    text-decoration: none;
    transition: transform .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.report-tab > span { font-weight: 750; letter-spacing: -.01em; }
.report-tab small { color: #718096; line-height: 1.3; }
.report-tab:hover {
    color: var(--ce-primary);
    border-color: #a9bfd6;
    box-shadow: var(--ce-shadow-md);
    transform: translateY(-2px);
}
.report-tab.active {
    color: #fff;
    background: linear-gradient(125deg, var(--ce-primary-dark), var(--ce-primary));
    border-color: transparent;
    box-shadow: 0 .55rem 1.4rem rgba(18,63,116,.2);
}
.report-tab.active small { color: rgba(255,255,255,.72); }
.report-table table { min-width: 760px; }
.report-table td { vertical-align: middle; }
.financial-report-table { overflow-x: visible; }
.financial-collection-table { width: 100%; min-width: 0 !important; table-layout: fixed; }
.financial-collection-table col.financial-col-select { width: 2%; }
.financial-collection-table col.financial-col-date { width: 7.5%; }
.financial-collection-table col.financial-col-vehicle { width: 14%; }
.financial-collection-table col.financial-col-transport { width: 15.5%; }
.financial-collection-table col.financial-col-money { width: 6.5%; }
.financial-collection-table col.financial-col-due { width: 7.5%; }
.financial-collection-table col.financial-col-situation { width: 12%; }
.financial-collection-table col.financial-col-last-payment { width: 8%; }
.financial-collection-table col.financial-col-actions { width: 7.5%; }
.financial-collection-table th,
.financial-collection-table td { min-width: 0; padding-right: .32rem; padding-left: .32rem; }
.financial-collection-table th { line-height: 1.15; white-space: normal; }
.financial-collection-table td { line-height: 1.25; overflow-wrap: break-word; }
.financial-collection-table .financial-row-select,
.financial-collection-table thead th:first-child { padding-right: .16rem; padding-left: .16rem; }
.financial-collection-table .financial-row-select .form-check-input,
.financial-collection-table thead th:first-child .form-check-input { width: .9rem; height: .9rem; margin: 0; }
.financial-row-date,
.financial-row-last-payment { white-space: nowrap; }
.financial-heading-vehicle,
.financial-row-vehicle { text-align: center; }
.financial-row-vehicle { vertical-align: middle; }
.financial-row-vehicle a { min-width: 0; max-width: 100%; margin: 0 auto; overflow-wrap: anywhere; }
.financial-vehicle-stack { display: flex; align-items: center; flex-direction: column; gap: .08rem; line-height: 1.14; text-align: center; }
.financial-vehicle-stack strong { color: #0969da; font-size: .88rem; font-weight: 800; }
.financial-vehicle-stack small { display: block; color: #65778a; font-size: .72rem; line-height: 1.16; }
.financial-heading-money,
.financial-heading-due,
.financial-row-money,
.financial-row-due { text-align: center; }
.financial-row-money { font-size: .82rem; white-space: nowrap; }
.financial-row-due { vertical-align: middle; white-space: nowrap; }
.financial-row-due small { white-space: normal; }
.financial-heading-situation,
.financial-row-situation { text-align: center; }
.financial-row-situation .badge { max-width: 100%; white-space: normal; }
.financial-row-actions .btn { padding-right: .4rem; padding-left: .4rem; }
.financial-transport-cell { min-width: 0; }
.financial-transport-status {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 3.25rem;
    align-items: center;
    gap: .58rem;
    padding: .48rem .52rem .48rem .62rem;
    color: #173b64;
    background: color-mix(in srgb, var(--financial-transport-color) 7%, #fff);
    border: 1px solid color-mix(in srgb, var(--financial-transport-color) 26%, #d8e2ec);
    border-left: .25rem solid var(--financial-transport-color);
    border-radius: .58rem;
    box-shadow: 0 .12rem .32rem rgba(23, 59, 100, .06);
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.financial-transport-status:hover {
    color: #0b4d91;
    background: color-mix(in srgb, var(--financial-transport-color) 11%, #fff);
    border-color: color-mix(in srgb, var(--financial-transport-color) 45%, #c7d4e1);
    box-shadow: 0 .25rem .6rem rgba(23, 59, 100, .12);
    transform: translateY(-1px);
}
.financial-transport-status:focus-visible { outline: 2px solid #2f81f7; outline-offset: 2px; }
.financial-transport-status__dot {
    width: .72rem;
    height: .72rem;
    flex: 0 0 .72rem;
    background: var(--financial-transport-color);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--financial-transport-color) 30%, transparent);
}
.financial-transport-status__copy { min-width: 0; flex: 1; }
.financial-transport-status__copy strong,
.financial-transport-status__copy small { display: block; overflow-wrap: anywhere; white-space: normal; }
.financial-transport-status__copy strong { color: inherit; font-size: .78rem; font-weight: 800; line-height: 1.2; }
.financial-transport-status__copy small { margin-top: .16rem; color: #687b90; font-size: .66rem; font-weight: 600; line-height: 1.2; }
.financial-transport-status__arrow { flex: none; color: color-mix(in srgb, var(--financial-transport-color) 72%, #546b82); font-size: 1.25rem; line-height: 1; }
@media (min-width: 768px) and (max-width: 1199.98px) {
    .financial-collection-table { font-size: .72rem; }
    .financial-collection-table th,
    .financial-collection-table td { padding-right: .25rem; padding-left: .25rem; }
    .financial-transport-status { gap: .38rem; padding: .38rem .34rem .38rem .46rem; }
    .financial-transport-status__arrow { display: none; }
    .financial-row-actions .btn { width: 100%; padding: .25rem .2rem; font-size: .67rem; }
}
@media (max-width: 767.98px) {
    .financial-report-table { overflow: visible; }
    .financial-collection-table,
    .financial-collection-table tbody { display: block; width: 100%; }
    .financial-collection-table colgroup { display: none; }
    .financial-collection-table thead { display: block; padding: .48rem .75rem; border-bottom: 1px solid var(--ce-border); }
    .financial-collection-table thead tr { display: block; }
    .financial-collection-table thead th { display: none; }
    .financial-collection-table thead th:first-child { display: flex; width: max-content; align-items: center; gap: .42rem; border: 0; }
    .financial-collection-table thead th:first-child::after { content: 'Selecionar todos'; color: #5f7185; font-size: .72rem; font-weight: 700; }
    .financial-collection-table tbody { padding: .7rem; }
    .financial-collection-table tbody tr {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .72rem .85rem;
        padding: .85rem;
        background: var(--bs-body-bg);
        border: 1px solid var(--ce-border);
        border-radius: .75rem;
        box-shadow: var(--ce-shadow-sm);
    }
    .financial-collection-table tbody tr + tr { margin-top: .72rem; }
    .financial-collection-table tbody td { display: block; padding: 0; border: 0; }
    .financial-collection-table tbody td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: .22rem;
        color: #718096;
        font-size: .62rem;
        font-weight: 800;
        letter-spacing: .035em;
        line-height: 1.15;
        text-transform: uppercase;
    }
    .financial-collection-table .financial-row-select { position: absolute; top: .85rem; right: .85rem; z-index: 1; }
    .financial-collection-table .financial-row-select .form-check-input { width: 1rem; height: 1rem; }
    .financial-row-vehicle,
    .financial-transport-cell,
    .financial-row-situation,
    .financial-row-actions { grid-column: 1 / -1; }
    .financial-row-vehicle { padding-right: 2rem !important; }
    .financial-transport-status { min-height: 0; }
    .financial-row-actions > div { justify-content: flex-start !important; }
}
.completed-group-export { display:inline-flex; min-height:1.7rem; align-items:center; gap:.3rem; margin-left:.25rem; padding:.2rem .45rem; color:#476581; background:#f8fbfd; border:1px solid #d6e1eb; border-radius:.38rem; font-size:.64rem; font-weight:700; line-height:1; text-decoration:none; white-space:nowrap; }
.completed-group-export svg { width:.82rem; height:.82rem; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.completed-group-export:hover { color:#0b5fa9; background:#edf6ff; border-color:#a9c8e3; }
html[data-theme="dark"] .completed-group-export { color:#a9c7df; background:#142738; border-color:#35516a; }
html[data-theme="dark"] .completed-group-export:hover { color:#d8edff; background:#19364d; border-color:#527b9d; }
.completed-expense-form {
    width: min(38rem, 78vw);
    margin-left: auto;
    white-space: normal;
    box-shadow: 0 .4rem 1.25rem rgba(14, 40, 65, .1);
}

/* Audit, settings and backups */
form[action$="/audit"] .form-label,
form[action*="/reports"] .form-label { font-size: .78rem; }
form[action$="/audit"] + * { scroll-margin-top: 5rem; }
form[action*="/settings/company"] .bg-light {
    background: linear-gradient(145deg, #f4f8fc, #eef3f8) !important;
    border-color: #d7e2ed !important;
}
form[action*="/settings/company"] .bg-light > .bg-white {
    box-shadow: inset 0 0 0 1px rgba(18,63,116,.025);
}
form[action*="/settings/company"] .row.g-3 > div > .border {
    border-color: #dbe4ed !important;
    background: #fbfcfe;
    transition: border-color .15s ease, box-shadow .15s ease;
}
form[action*="/settings/company"] .row.g-3 > div > .border:focus-within {
    border-color: #91aecb !important;
    box-shadow: 0 0 0 .2rem rgba(18,63,116,.07);
}
form[action$="/backups"] .btn { box-shadow: 0 .3rem .8rem rgba(18,63,116,.14); }

@media (min-width: 992px) {
    html { font-size: 12px; }
    body { font-size-adjust: .67; }
    :root {
        --ce-sidebar-width: 224px;
        --ce-sidebar-collapsed-width: 64px;
    }
    .app-main { padding: 1rem; }
    .app-topbar { min-height: 50px; padding: .45rem .9rem; }
    .sidebar-brand { min-height: 54px; }
    .brand-mark {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 9px;
    }
    .sidebar-nav { padding-inline: .45rem; }
    .sidebar-group + .sidebar-group { margin-top: .55rem; padding-top: .55rem; }
    .sidebar-footer { padding: .65rem .85rem; }
    .sidebar-brand { padding-inline: .85rem; }
    .sidebar-link {
        min-height: 2.65rem;
        gap: .72rem;
        padding-inline: .65rem;
        font-size: .98rem;
    }
    .search-select-input { min-height: 32px; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    section[aria-labelledby="central-filters-title"] form > .col-lg-2 {
        flex: 0 0 auto;
        width: 33.333333%;
    }
}

@media (max-width: 991.98px) {
    .app-main > .card.text-white { border-radius: .85rem; }
    .legacy-dashboard-chart { min-height: 14rem; }
    .report-tab { min-height: 4.9rem; }
    [data-shipment-queue] .card-header .btn { min-height: 2.25rem; }
}

@media (max-width: 767.98px) {
    .content-card > .card-header { padding: .8rem .9rem; }
    .content-card > .card-body { padding: 1rem; }
    .app-main > .card.text-white .border-start {
        width: 100%;
        padding-left: 0 !important;
        border-left: 0 !important;
        border-top: 1px solid rgba(255,255,255,.18);
        padding-top: .75rem;
    }
    .app-main > .card.text-white form { width: 100%; }
    .app-main > .card.text-white form .btn { width: 100%; min-height: 2.5rem; }
    section[aria-labelledby="general-metrics-title"] .metric-card .card-body {
        gap: .55rem !important;
        padding: .85rem !important;
    }
    section[aria-labelledby="general-metrics-title"] .metric-card .h2 { font-size: 1.55rem; }
    section[aria-labelledby="general-metrics-title"] .metric-card .h4 { font-size: 1.08rem; }
    .report-tab { min-height: 5.1rem; padding: .7rem .75rem; }
    .report-tab > span { font-size: .88rem; }
    .report-tab small { font-size: .7rem; }
    .table-responsive > table {
        width: max-content;
        min-width: 100%;
    }
    .pagination { font-size: .82rem; }
    .pagination .page-link { padding: .42rem .58rem; }
    form[action*="/settings/"] .card-footer .btn { width: 100%; }
}

@media (max-width: 575.98px) {
    body { font-size: .94rem; }
    .app-main { padding: .75rem; }
    .app-topbar {
        min-height: 60px;
        padding-right: max(.75rem, env(safe-area-inset-right));
        padding-left: max(.75rem, env(safe-area-inset-left));
    }
    .app-topbar .btn,
    .app-main .btn:not(.btn-close),
    .app-main .form-control,
    .app-main .form-select,
    .app-main .search-select-input { min-height: 44px; }
    .theme-toggle {
        width: 2.75rem;
        height: 2.75rem;
        flex-basis: 2.75rem;
    }
    .page-help-trigger { min-height: 44px; }
    .sidebar-link { min-height: 44px; }
    .sidebar-footer { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
    .page-title { font-size: 1.55rem; }
    .app-main section .page-title { font-size: 1.15rem; }
    .dashboard-operational-filter-actions .btn { width: 100%; }
    .dashboard-operational-indicator .card-body { min-height: 7.25rem; }
    .table-responsive { -webkit-overflow-scrolling: touch; }
    section[aria-labelledby="central-filters-title"] form > .col-6 {
        flex: 0 0 auto;
        width: 100%;
    }
    section[aria-labelledby="route-summary-title"] .metric-card .card-body { padding: .9rem !important; }
    section[aria-labelledby="general-metrics-title"] .metric-card .card-body { flex-direction: column; }
    section[aria-labelledby="general-metrics-title"] .metric-card .badge {
        width: 1.9rem;
        height: 1.9rem;
        flex-basis: 1.9rem;
        font-size: .74rem !important;
    }
    section[aria-labelledby="general-metrics-title"] .metric-card .small { line-height: 1.25; }
    .legacy-dashboard-chart { min-height: 11rem; padding: .75rem; }
    [data-shipment-queue] .card-header { align-items: stretch !important; }
    [data-shipment-queue] .card-header .btn { width: 100%; }
    .report-tabs .row { --bs-gutter-x: .55rem; --bs-gutter-y: .55rem; }
    .report-tab { min-height: 4.7rem; }
    form[action$="/audit"] .col-sm-6:last-child,
    form[action$="/audit"] .col-lg-4 { flex-wrap: wrap; }
    form[action$="/audit"] .btn { min-height: 2.55rem; }
    form[action$="/backups"],
    form[action$="/backups"] .btn { width: 100%; }
    form[action*="/settings/"] .d-flex.gap-2 { flex-wrap: wrap; }
    form[action*="/settings/"] .d-flex.gap-2 .btn { width: 100%; }
    .empty-state { padding: 2rem .75rem; }
    .system-dialog .modal-dialog { margin: .75rem; }
    .system-dialog .modal-header { padding: 1rem 1rem .75rem; }
    .system-dialog .modal-body { padding: .3rem 1rem 1rem; }
    .system-dialog .modal-footer { padding: .8rem 1rem; }
    .system-dialog .modal-footer .btn { flex: 1 1 0; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
    .btn:not(:disabled):hover,
    .metric-card:hover,
    .report-tab:hover,
    section[aria-labelledby="alerts-title"] a.card:hover { transform: none; }
}
/* Editor visual de rotas */
.route-map-panel{border:1px solid var(--bs-border-color);border-radius:1rem;background:var(--bs-body-bg);overflow:hidden}.route-map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;border-bottom:1px solid var(--bs-border-color)}.route-map-canvas{height:390px;background:#e8eef5}.route-map-feedback{border-radius:0;border-left:0;border-right:0}.route-map-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;padding:1rem}.route-map-summary>div{border:1px solid var(--bs-border-color);border-radius:.75rem;padding:.75rem}.route-map-summary span{display:block;color:var(--bs-secondary-color);font-size:.75rem}.route-map-summary strong{display:block;margin-top:.2rem}.route-map-sequence{list-style:none;margin:0;padding:0 1rem 1rem;display:grid;gap:.5rem}.route-map-sequence li{display:flex;align-items:center;gap:.75rem}.route-map-sequence li>span{display:grid;place-items:center;width:1.7rem;height:1.7rem;border-radius:50%;background:#1458d4;color:#fff;font-weight:700;font-size:.75rem}.route-map-sequence strong,.route-map-sequence small{display:block}.route-map-sequence small{color:var(--bs-secondary-color)}.route-map-panel--fullscreen{position:fixed;inset:1rem;z-index:1090;box-shadow:0 1rem 4rem rgba(0,0,0,.3)}.route-map-panel--fullscreen .route-map-canvas{height:calc(100vh - 260px)}
.route-map-marker{display:grid!important;place-items:center;background:#1458d4;border:3px solid #fff;border-radius:50%;box-shadow:0 .2rem .55rem rgba(9,37,73,.38);color:#fff;font-size:.72rem;font-weight:800;line-height:1;text-align:center}.route-map-marker span{display:block}
.route-create-modal-shell{position:fixed;inset:0;z-index:1045;margin:0!important;padding:1.25rem;background:rgba(7,25,45,.58);overflow:auto;align-items:center}.route-create-modal-dialog{width:min(1500px,calc(100vw - 2.5rem));max-height:calc(100vh - 2.5rem);margin:auto;background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-radius:1rem;box-shadow:0 1.5rem 5rem rgba(0,0,0,.3);overflow:hidden;display:flex;flex-direction:column}.route-create-modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.15rem 1.4rem;border-bottom:1px solid var(--bs-border-color)}.route-create-modal-heading p{font-size:.86rem}.route-create-modal-card{border-radius:0!important;box-shadow:none!important;min-height:0;overflow:hidden;display:flex;flex:1;flex-direction:column}.route-create-modal-card>.card-body{overflow:auto}.route-create-modal-card>.card-footer{position:sticky;bottom:0;z-index:3;border-top:1px solid var(--bs-border-color)!important}.route-editor-layout,.route-quick-editor-layout{align-items:start}.route-editor-map-column{min-width:0}.route-editor-map-column .route-map-panel{position:sticky;top:0}.route-editor-layout [data-route-stop-row][data-route-endpoint-row]{background:var(--bs-tertiary-bg)}.route-quick-modal-dialog{width:min(1500px,calc(100vw - 2rem));max-width:none}.route-quick-modal-dialog .modal-content{max-height:calc(100vh - 2rem)}.route-quick-modal-dialog .modal-content>form{display:flex;min-height:0;max-height:calc(100vh - 2rem);flex-direction:column}.route-quick-modal-dialog .modal-body{overflow:auto}
.route-endpoint-actions{display:flex;min-height:2rem;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.45rem}.route-endpoint-actions:empty{display:none}.route-endpoint-actions .btn{margin:0!important;white-space:nowrap}
[data-route-stop-row][draggable="true"],[data-quick-route-stop-row][draggable="true"]{cursor:grab}.route-stop-row--dragging{opacity:.55;box-shadow:0 .5rem 1.25rem rgba(20,88,212,.2)}
.quick-route-stop-row{border:1px solid var(--bs-border-color);border-radius:.65rem;padding:.55rem;background:var(--bs-body-bg);box-shadow:0 .08rem .2rem rgba(20,51,84,.05)}.quick-route-stop-row--endpoint{background:color-mix(in srgb,var(--bs-primary-bg-subtle) 55%,var(--bs-body-bg))}.quick-route-stop-row__heading{display:flex;align-items:center;gap:.65rem;min-width:0}.quick-route-stop-row__heading>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.15rem .45rem;min-width:0;width:100%}.quick-route-stop-row__heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem}.quick-route-stop-row__heading small{grid-column:1/-1;color:var(--bs-secondary-color);font-size:.68rem}.quick-route-stop-row__number{display:inline-grid;place-items:center;flex:0 0 1.55rem;width:1.55rem;height:1.55rem;border-radius:50%;background:var(--bs-primary);color:#fff;font-size:.72rem;font-weight:800}.quick-route-stop-row__grip{color:var(--bs-secondary-color);font-weight:800;letter-spacing:-.18rem;cursor:grab}.quick-route-stop-row__controls{display:grid;grid-template-columns:auto auto minmax(12rem,1fr) auto auto;align-items:end;gap:.45rem}.quick-route-stop-row__location{min-width:0}.quick-route-stop-row__location .form-label,.quick-route-stop-row__permission .form-label{margin-bottom:.15rem;color:var(--bs-secondary-color);font-size:.64rem}.quick-route-stop-row__permission{text-align:center}.quick-route-stop-row__permission .form-switch{display:flex;justify-content:center;margin:0;padding:0 0 .35rem}.quick-route-stop-row__permission .form-check-input{float:none;margin-left:0}.quick-route-stop-row__remove{align-self:end;margin-bottom:.05rem}.quick-route-stop-row>[data-route-leg-label]{margin:.15rem 0 0 4.3rem!important;font-size:.67rem!important}.quick-route-stop-row>.row{margin-left:0;margin-right:0}.quick-route-stop-row>.row>div{padding-left:.2rem;padding-right:.2rem}.quick-route-stop-row>.row .border{height:100%;padding:.4rem!important;border-color:transparent!important;border-radius:.45rem!important}.quick-route-stop-row>.row .small.fw-semibold{font-size:.66rem;margin-bottom:.25rem!important}.quick-route-stop-row>.row .form-select,.quick-route-stop-row>.row .form-control,.quick-route-stop-row>.row .input-group-text{min-height:1.85rem;padding-top:.2rem;padding-bottom:.2rem;font-size:.69rem}
@media(min-width:1200px){.quick-route-stop-row{display:grid;grid-template-columns:1.55rem 1.55rem minmax(10rem,1.3fr) 5.2rem minmax(9.5rem,1fr) minmax(9.5rem,1fr) 2rem;column-gap:.45rem;align-items:center}.quick-route-stop-row__controls{display:contents}.quick-route-stop-row__grip{grid-column:1;grid-row:1}.quick-route-stop-row__controls>.quick-route-stop-row__number{grid-column:2;grid-row:1}.quick-route-stop-row__location{grid-column:3;grid-row:1}.quick-route-stop-row__permission{grid-column:4;grid-row:1}.quick-route-stop-row__remove{grid-column:7;grid-row:1;margin:0}.quick-route-stop-row--intermediate>[data-route-leg-label]{grid-column:3;grid-row:2;margin:.15rem 0 0!important}.quick-route-stop-row--intermediate>.row{display:contents}.quick-route-stop-row--intermediate>.row>div:first-child{grid-column:5;grid-row:1/3}.quick-route-stop-row--intermediate>.row>div:last-child{grid-column:6;grid-row:1/3}.quick-route-stop-row--endpoint .quick-route-stop-row__heading{grid-column:1/5}.quick-route-stop-row--endpoint>.row{grid-column:5/8;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}.quick-route-stop-row--endpoint>.row>div{width:auto;padding:0}}
[data-quick-route-stops-editor]{container-type:inline-size}.quick-route-stop-row--intermediate>.row>div{width:auto}.quick-route-stop-row>.row .row{margin-left:0;margin-right:0}.quick-route-stop-row>.row .row>div{min-width:0}
@container(max-width:899px){.quick-route-stop-row{display:block}.quick-route-stop-row__controls{display:grid;grid-template-columns:auto auto minmax(0,1fr) 5.2rem auto;align-items:end}.quick-route-stop-row__grip,.quick-route-stop-row__controls>.quick-route-stop-row__number,.quick-route-stop-row__location,.quick-route-stop-row__permission,.quick-route-stop-row__remove{grid-column:auto;grid-row:auto}.quick-route-stop-row__remove{margin-bottom:.05rem}.quick-route-stop-row--intermediate>[data-route-leg-label]{margin:.15rem 0 0 4.3rem!important}.quick-route-stop-row--intermediate>.row,.quick-route-stop-row--endpoint>.row{display:flex;margin-top:.45rem}.quick-route-stop-row--intermediate>.row>div,.quick-route-stop-row--endpoint>.row>div{width:50%;padding-left:.2rem;padding-right:.2rem}.quick-route-stop-row--endpoint .quick-route-stop-row__heading{grid-column:auto}.quick-route-stop-row>.row .row{display:grid;grid-template-columns:minmax(0,1fr) 7rem;gap:.4rem;margin:0}.quick-route-stop-row>.row .row>div{width:auto;padding:0}.quick-route-stop-row>.row select{min-width:0}}
@media(max-width:767.98px){.quick-route-stop-row__controls{grid-template-columns:auto auto minmax(0,1fr) auto}.quick-route-stop-row__permission{grid-column:3}.quick-route-stop-row__remove{grid-column:4;grid-row:1}.quick-route-stop-row--intermediate>.row,.quick-route-stop-row--endpoint>.row{display:grid;grid-template-columns:1fr}.quick-route-stop-row--intermediate>.row>div,.quick-route-stop-row--endpoint>.row>div{width:auto}}
.map-city-search-modal{z-index:1080}.map-city-search-modal .list-group{max-height:22rem;overflow:auto}.map-city-search-modal .list-group-item small{max-width:28rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:992px){[data-quote-route-modal] .route-quick-modal-dialog{width:min(1500px,calc(100vw - 3rem));max-width:none;min-height:auto;height:auto;margin:1.5rem auto;align-items:center}[data-quote-route-modal] .route-quick-modal-dialog .modal-content{min-height:0;max-height:calc(100vh - 3rem);border:1px solid var(--bs-border-color);border-radius:1rem;box-shadow:0 1.5rem 5rem rgba(0,0,0,.3);overflow:hidden}}
@media(min-width:1200px){.route-editor-layout,.route-quick-editor-layout{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1rem;row-gap:1rem}.route-editor-layout>div{width:auto;max-width:none}.route-editor-layout>div:nth-of-type(1){grid-column:1/span 3}.route-editor-layout>div:nth-of-type(2){grid-column:4/span 3}.route-editor-layout>div:nth-of-type(3){grid-column:1/span 4}.route-editor-layout>div:nth-of-type(4){grid-column:5/span 2}.route-editor-layout>div:nth-of-type(5){grid-column:1/span 2}.route-editor-layout>div:nth-of-type(6){grid-column:3/span 2}.route-editor-layout>div:nth-of-type(7){grid-column:5/span 2}.route-editor-layout>div:nth-of-type(8){display:none}.route-editor-layout>div:nth-of-type(9),.route-editor-layout>div:nth-of-type(11){grid-column:1/span 6}.route-editor-layout>.route-editor-map-column{display:block;grid-column:7/span 6;grid-row:1/span 12}.route-quick-editor-layout>div{width:auto;max-width:none}.route-quick-editor-layout>div:nth-of-type(1){grid-column:1/span 3}.route-quick-editor-layout>div:nth-of-type(2){grid-column:4/span 3}.route-quick-editor-layout>div:nth-of-type(3){grid-column:1/span 3}.route-quick-editor-layout>div:nth-of-type(4){grid-column:4/span 3}.route-quick-editor-layout>div:nth-of-type(5){grid-column:1/span 4}.route-quick-editor-layout>div:nth-of-type(6){grid-column:5/span 2}.route-quick-editor-layout>div:nth-of-type(7){grid-column:1/span 2}.route-quick-editor-layout>div:nth-of-type(8){grid-column:3/span 2}.route-quick-editor-layout>div:nth-of-type(9){grid-column:5/span 2}.route-quick-editor-layout>div:nth-of-type(10){grid-column:1/span 6}.route-quick-editor-layout>.route-editor-map-column{display:block;grid-column:7/span 6;grid-row:1/span 14}.route-create-modal-dialog .route-map-canvas,.route-quick-modal-dialog .route-map-canvas{height:350px}}
@media(min-width:1200px){.route-quick-editor-layout>div[data-quick-route-stops-editor]{grid-column:1/span 6}.route-quick-editor-layout>div.route-editor-map-column{display:block;grid-column:7/span 6;grid-row:1/span 14}}
@media(max-width:767.98px){.route-map-toolbar{align-items:stretch;flex-direction:column}.route-map-toolbar .btn-group{display:grid}.route-map-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.route-map-canvas{height:300px}.route-map-panel--fullscreen{inset:0}.route-map-panel--fullscreen .route-map-canvas{height:calc(100vh - 340px)}}
@media(max-width:767.98px){.route-create-modal-shell{padding:0}.route-create-modal-dialog{width:100%;max-height:none;min-height:100vh;border-radius:0}.route-create-modal-heading{padding:1rem}.route-create-modal-card>.card-body{padding:1rem!important}.route-quick-modal-dialog{width:auto;margin:.5rem}.route-map-toolbar .btn-group .btn{border-radius:.35rem!important;margin-top:.35rem}}
.shipment-interpreter__dropzone {
    min-height: 9.5rem;
    border: 1.5px dashed var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-tertiary-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.shipment-interpreter {
    overflow: hidden;
}

.shipment-interpreter > .card-body {
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), .018), transparent 7rem);
}

.shipment-interpreter textarea {
    min-height: 9.5rem;
    resize: vertical;
}

.shipment-route-modal-frame { display: block; width: 100%; height: min(78vh, 62rem); border: 0; background: var(--bs-body-bg); }
.shipment-route-choice { padding: 1.25rem; background: var(--bs-tertiary-bg); }
.shipment-route-choice__intro { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--bs-border-color); border-radius: .8rem; background: var(--bs-body-bg); }
.shipment-route-choice__intro strong { display: block; color: var(--bs-emphasis-color); font-size: 1rem; }
.shipment-route-choice__intro p { margin: .2rem 0 0; color: var(--bs-secondary-color); font-size: .84rem; }
.shipment-route-choice__icon { display: grid; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: .7rem; background: rgba(var(--bs-primary-rgb),.1); color: var(--bs-primary); font-size: 1.25rem; font-weight: 700; }
.shipment-route-choice__list { display: grid; gap: .65rem; }
.shipment-route-choice-card { display: grid; grid-template-columns: 2.35rem minmax(0,1fr) auto; align-items: center; gap: .85rem; width: 100%; padding: .9rem 1rem; border: 1px solid var(--bs-border-color); border-radius: .75rem; background: var(--bs-body-bg); color: var(--bs-body-color); text-align: left; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.shipment-route-choice-card:hover,.shipment-route-choice-card:focus-visible { border-color: var(--bs-primary); box-shadow: 0 .45rem 1.2rem rgba(17,65,111,.12); transform: translateY(-1px); outline: 0; }
.shipment-route-choice-card__number { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: 50%; background: var(--bs-primary); color: #fff; font-size: .82rem; font-weight: 800; }
.shipment-route-choice-card__content { min-width: 0; }
.shipment-route-choice-card__content strong,.shipment-route-choice-card__content small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shipment-route-choice-card__content strong { color: var(--bs-emphasis-color); font-size: .92rem; }
.shipment-route-choice-card__content small { margin-top: .2rem; color: var(--bs-secondary-color); font-size: .76rem; }
.shipment-route-choice-card__action { color: var(--bs-primary); font-size: .8rem; font-weight: 700; white-space: nowrap; }
@media(max-width:575.98px){.shipment-route-choice{padding:.75rem}.shipment-route-choice-card{grid-template-columns:2.2rem minmax(0,1fr)}.shipment-route-choice-card__action{grid-column:2}}
.embedded-route-editor { min-height: 100vh; padding: 0; background: var(--bs-body-bg); }
.embedded-route-editor > nav { display: none; }
.embedded-route-editor > .row { margin: 0; }
.embedded-route-editor .route-embedded-shell > .col-12 { padding: 0; }
.embedded-route-editor .route-embedded-card { margin: 0; border-radius: 0; box-shadow: none !important; }
.embedded-route-editor .route-embedded-shell--create,
.embedded-route-editor .route-embedded-shell--create > .col-12 { height: 100vh; min-height: 0; }
.embedded-route-editor .route-embedded-shell--create > .col-12 { display: flex; }
.embedded-route-editor .route-embedded-shell--create .route-embedded-card { flex: 1; height: 100%; }

.shipment-interpreter__dropzone:hover,
.shipment-interpreter__dropzone:focus-within {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .05);
}

.shipment-interpreter__pdf-icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: .65rem;
    background: rgba(var(--bs-danger-rgb), .12);
    color: var(--bs-danger);
    font-size: .75rem;
    font-weight: 800;
}

.shipment-interpreter__preview {
    border: 1px solid rgba(var(--bs-success-rgb), .28);
    border-radius: .75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(var(--bs-success-rgb), .075), var(--bs-body-bg) 48%);
}

.shipment-interpreter__preview .table {
    overflow: hidden;
    border-radius: .55rem;
    background: var(--bs-body-bg);
}

.shipment-interpreter__preview th:first-child {
    width: 12rem;
}

.shipment-interpreter__preview td:last-child {
    width: 9rem;
}

.shipment-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 21rem);
    gap: 1.1rem;
    align-items: start;
}

.shipment-create-layout__main {
    min-width: 0;
}

.shipment-create-summary {
    position: sticky;
    top: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-body-bg);
    box-shadow: 0 .3rem 1rem rgba(15, 50, 80, .06);
    overflow: hidden;
}

.shipment-create-summary__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.shipment-create-summary__header > div {
    width: 100%;
}

.quote-editor-summary__status.is-complete {
    color: #087548;
    background: #e1f7ea;
}

.quote-editor-summary__status.is-complete i {
    background: #15945d;
}

.shipment-create-summary__header h2,
.shipment-create-summary__flow h3 {
    margin: 0;
    font-size: .95rem;
}

.shipment-create-summary__list {
    margin: 0;
}

.shipment-create-summary__list > div {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.shipment-create-summary__list dt {
    color: var(--bs-secondary-color);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.shipment-create-summary__list dd {
    margin: .15rem 0 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.shipment-create-summary__flow {
    padding: 1rem;
}

.shipment-create-summary__stages {
    display: grid;
    gap: .55rem;
    margin-top: .75rem;
}

.shipment-create-summary__stage {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: .5rem;
    align-items: start;
    padding: .45rem .5rem;
    border: 1px solid #e6edf4;
    border-radius: .55rem;
    background: #f8fafc;
    font-size: .75rem;
}

.shipment-create-summary__stage > span {
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    font-weight: 700;
}

.shipment-create-summary__stage--coleta > span {
    background: #0b9b62;
}

.shipment-create-summary__stage--entrega > span {
    background: #7a45cc;
}

.shipment-create-summary__stage strong {
    display: block;
    color: #173a59;
    font-size: .76rem;
}

.shipment-create-summary__stage .text-secondary {
    overflow: hidden;
    margin-top: .12rem;
    font-size: .65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* New shipment readability matches the quote editor scale. */
.shipment-interpreter__dropzone { font-size: .94rem; }
.shipment-interpreter__pdf-icon { font-size: .84rem; }
.shipment-create-summary__header h2,
.shipment-create-summary__flow h3 { font-size: 1.08rem; }
.shipment-create-summary__list dt { font-size: .8rem; }
.shipment-create-summary__list dd { font-size: .92rem; }
.shipment-create-summary__stage { font-size: .84rem; }
.shipment-create-summary__stage strong { font-size: .84rem; }
.shipment-create-summary__stage .text-secondary { font-size: .74rem; line-height: 1.35; }
.shipment-create-summary > footer .btn-lg { font-size: .92rem; }

.shipment-create-summary > footer {
    display: grid;
    gap: .55rem;
    padding: .8rem 1rem;
    border-top: 1px solid var(--bs-border-color);
}

.shipment-create-summary > footer .btn-lg {
    min-height: 2.9rem;
    font-size: .82rem;
}

.shipment-create-flow {
    margin-top: .5rem;
    border-top: 1px solid var(--bs-border-color);
    padding-top: 1rem;
}

[data-flow-edit-route].disabled {
    pointer-events: none;
}

@media (max-width: 1199.98px) {
    .shipment-create-layout {
        grid-template-columns: 1fr;
    }
    .shipment-create-summary {
        position: static;
    }
}

@media (min-width: 1200px) {
    .shipment-editor {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(19rem, 21rem);
        align-items: start;
        gap: 1rem;
    }

    .shipment-editor > .quote-editor-steps {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .shipment-editor > .shipment-interpreter {
        grid-column: 1;
        grid-row: 2;
        margin-bottom: 0 !important;
    }

    .shipment-editor > form,
    .shipment-editor > form > .shipment-create-layout {
        display: contents;
    }

    .shipment-editor .shipment-create-layout__main {
        grid-column: 1;
        grid-row: 3;
    }

    .shipment-editor .shipment-create-summary {
        grid-column: 2;
        grid-row: 2 / span 2;
        top: 5rem;
    }
}

@media (max-width: 767.98px) {
    .shipment-interpreter__dropzone,
    .shipment-interpreter textarea {
        min-height: 10rem;
    }

    .shipment-interpreter__preview {
        padding: .75rem;
    }
}

html[data-theme="dark"] .shipment-create-summary__stage {
    background: #142535;
    border-color: #31485c;
}

html[data-theme="dark"] .shipment-create-summary__stage strong {
    color: #e2edf7;
}

/* Romaneio: documento visual no mesmo padrão do PDF de orçamento */
.manifest-document-shell {
    width: min(100%, 86rem);
    margin: 0 auto;
}

.manifest-document-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .9rem;
}

.manifest-document-toolbar > div {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.manifest-version-menu {
    position: relative;
}

.manifest-version-menu summary {
    min-height: 2.38rem;
    display: inline-flex;
    align-items: center;
    padding: .45rem .8rem;
    border: 1px solid #b8c8da;
    border-radius: .5rem;
    color: #173a59;
    background: #fff;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 750;
    list-style: none;
}

.manifest-version-menu summary::-webkit-details-marker { display: none; }
.manifest-version-menu summary::after { content: '▾'; margin-left: .55rem; }
.manifest-version-menu[open] summary::after { content: '▴'; }

.manifest-version-menu > div {
    position: absolute;
    z-index: 20;
    top: calc(100% + .35rem);
    right: 0;
    min-width: 17rem;
    overflow: hidden;
    padding: .3rem;
    border: 1px solid #cfdae6;
    border-radius: .55rem;
    background: #fff;
    box-shadow: 0 .65rem 1.5rem rgba(9, 31, 61, .16);
}

.manifest-version-menu a {
    display: block;
    padding: .48rem .65rem;
    border-radius: .35rem;
    color: #294866;
    font-size: .76rem;
    text-decoration: none;
}

.manifest-version-menu a:hover,
.manifest-version-menu a.active {
    color: #fff;
    background: #091f3d;
}

.manifest-version-menu a.manifest-version-menu-combined {
    margin-top: .3rem;
    border-top: 1px solid #d9e2ec;
    border-radius: 0 0 .35rem .35rem;
    color: #0b6b42;
    font-weight: 700;
}

.manifest-version-menu a.manifest-version-menu-combined:hover {
    color: #fff;
    background: #0b8457;
}

.manifest-document-alert { margin-bottom: .75rem; }

.manifest-document-paper {
    --manifest-navy: #091f3d;
    --manifest-red: #e80a24;
    --manifest-border: #c3ccd7;
    position: relative;
    isolation: isolate;
    min-height: 44rem;
    overflow: hidden;
    color: #0f1c2e;
    background: #fff;
    border: 1px solid #d5dde6;
    border-radius: .45rem;
    box-shadow: 0 .65rem 1.8rem rgba(9, 31, 61, .12);
}

.manifest-document-brand {
    display: block;
    width: calc(100% - 4.4rem);
    height: auto;
    overflow: hidden;
    margin: 1.6rem 2.2rem .8rem;
}

.manifest-document-content {
    position: relative;
    z-index: 1;
    padding: .75rem 0 1.5rem;
}

.manifest-document-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0 2.2rem 1.1rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid #bec9d5;
}

.manifest-document-title span,
.manifest-document-title small {
    display: block;
    color: #65717f;
    font-size: .67rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.manifest-document-title h1 {
    margin: .15rem 0 0;
    color: var(--manifest-navy);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.025em;
}

.manifest-document-title > div:last-child { text-align: right; }
.manifest-document-title > div:last-child strong {
    display: block;
    color: var(--manifest-red);
    font-size: 1rem;
    font-weight: 850;
}

.manifest-document-section-title {
    margin: 0 2.2rem;
    padding: .45rem .75rem;
    color: #fff;
    background: var(--manifest-navy);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .045em;
}

.manifest-document-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 2.2rem 1.15rem;
}

.manifest-document-fields > div {
    min-width: 0;
    min-height: 3.6rem;
    padding: .62rem .72rem;
    border-right: 1px solid var(--manifest-border);
    border-bottom: 1px solid var(--manifest-border);
}

.manifest-document-fields > div:nth-child(4n + 1) { border-left: 1px solid var(--manifest-border); }
.manifest-document-route { grid-column: auto; }

.manifest-document-fields dt {
    margin-bottom: .28rem;
    color: #606d7b;
    font-size: .59rem;
    font-weight: 800;
    letter-spacing: .035em;
}

.manifest-document-fields dd {
    overflow-wrap: anywhere;
    margin: 0;
    color: #0f1c2e;
    font-size: .76rem;
    font-weight: 650;
    line-height: 1.28;
}

.manifest-document-table-wrap {
    overflow: hidden;
    margin: 0 2.2rem 1.1rem;
    border: 1px solid var(--manifest-border);
    border-top: 0;
}

.manifest-document-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: .72rem;
}

.manifest-document-table col.order { width: 3.5%; }
.manifest-document-table col.client { width: 12%; }
.manifest-document-table col.vehicle { width: 11%; }
.manifest-document-table col.plate { width: 8%; }
.manifest-document-table col.lot { width: 10%; }
.manifest-document-table col.origin { width: 11%; }
.manifest-document-table col.destination { width: 11%; }
.manifest-document-table col.notes { width: 33.5%; }

.manifest-document-table th,
.manifest-document-table td {
    overflow-wrap: anywhere;
    padding: .48rem .52rem;
    border-right: 1px solid var(--manifest-border);
    border-bottom: 1px solid var(--manifest-border);
    text-align: left;
    vertical-align: top;
    line-height: 1.32;
}

.manifest-document-table tr > :last-child { border-right: 0; }
.manifest-document-table tbody tr:last-child td { border-bottom: 0; }
.manifest-document-table th {
    color: var(--manifest-navy);
    background: rgba(242, 245, 248, .92);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.manifest-document-table tbody tr:nth-child(even) { background: rgba(250, 251, 253, .82); }
.manifest-document-empty { padding: 1.5rem !important; color: #667483; text-align: center !important; }
.manifest-document-note-editor {
    display: block;
    width: 100%;
    min-height: 4.3rem;
    padding: .42rem .48rem;
    resize: vertical;
    border: 1px solid #b9c9da;
    border-radius: .35rem;
    color: #17324d;
    background: rgba(255, 255, 255, .92);
    font: inherit;
    line-height: 1.35;
}
.manifest-document-note-editor:focus { border-color: #176fc1; outline: 2px solid rgba(23, 111, 193, .15); }
.manifest-document-note-cell--editable .manifest-document-vehicle-note { display: none; }
.manifest-document-vehicle-note { white-space: pre-line; }

.manifest-document-notes {
    margin: 0 2.2rem 1rem;
    padding: .72rem .8rem;
    border: 1px solid var(--manifest-border);
    background: #f7f9fb;
}

.manifest-document-notes strong { color: var(--manifest-navy); font-size: .64rem; letter-spacing: .035em; }
.manifest-document-notes p { margin: .28rem 0 0; color: #344354; font-size: .7rem; line-height: 1.4; }
.manifest-document-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 2.2rem;
    padding-top: .55rem;
    border-top: 1px solid #d5dde6;
    color: #6b7785;
    font-size: .62rem;
}

html[data-theme="dark"] .manifest-document-paper { color-scheme: light; }
html[data-theme="dark"] .manifest-version-menu summary,
html[data-theme="dark"] .manifest-version-menu > div { color: #dbe7f2; background: #102333; border-color: #385169; }
html[data-theme="dark"] .manifest-version-menu a { color: #dbe7f2; }

@media (max-width: 767.98px) {
    .manifest-document-toolbar,
    .manifest-document-toolbar > div { align-items: stretch; }
    .manifest-document-toolbar { flex-direction: column; }
    .manifest-document-toolbar > div { display: grid; grid-template-columns: 1fr 1fr; }
    .manifest-version-menu summary,
    .manifest-document-toolbar .btn { width: 100%; justify-content: center; }
    .manifest-document-title { align-items: start; margin-inline: 1rem; }
    .manifest-document-title h1 { font-size: 1.2rem; }
    .manifest-document-section-title,
    .manifest-document-fields,
    .manifest-document-table-wrap,
    .manifest-document-notes,
    .manifest-document-footer { margin-inline: 1rem; }
    .manifest-document-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .manifest-document-fields > div:nth-child(4n + 1) { border-left: 0; }
    .manifest-document-fields > div:nth-child(2n + 1) { border-left: 1px solid var(--manifest-border); }
    .manifest-document-route,
    .manifest-document-status { grid-column: span 2; }
    .manifest-document-content { padding: .5rem 0 1rem; }
    .manifest-document-brand { width: calc(100% - 2rem); margin: 1rem 1rem .5rem; }
}

@page manifest-document { size: A4 landscape; margin: 10mm; }
@media print {
    html:has(.manifest-document-shell), body:has(.manifest-document-shell) { page: manifest-document; }
    body:has(.manifest-document-shell),
    body:has(.manifest-document-shell) .app-shell,
    body:has(.manifest-document-shell) .app-content,
    body:has(.manifest-document-shell) .app-main { width: auto !important; max-width: none !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; background: #fff !important; }
    .manifest-document-toolbar,
    .manifest-document-alert { display: none !important; }
    .manifest-document-shell { width: auto; max-width: none; margin: 0; }
    .manifest-document-paper { page: manifest-document; width: auto; height: auto; min-height: 0; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
    .manifest-document-brand { width: 205mm; max-width: 100%; height: auto; margin: 0 0 2mm; overflow: hidden; }
    .manifest-document-content { padding: 0; }
    .manifest-document-title { margin: 0 0 1mm; padding-bottom: 1mm; break-inside: avoid; }
    .manifest-document-title h1 { font-size: 12pt; }
    .manifest-document-title span,
    .manifest-document-title small { font-size: 6pt; }
    .manifest-document-title > div:last-child strong { font-size: 9pt; }
    .manifest-document-section-title { margin: 0; padding: 1mm 2.5mm; font-size: 8pt; break-after: avoid; }
    .manifest-document-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 1.5mm; break-inside: avoid; }
    .manifest-document-fields > div { min-height: 0; padding: 1.2mm 1.7mm; }
    .manifest-document-fields > div:nth-child(2n + 1) { border-left: 0; }
    .manifest-document-fields > div:nth-child(4n + 1) { border-left: 1px solid var(--manifest-border); }
    .manifest-document-route { grid-column: auto; }
    .manifest-document-status { grid-column: auto; }
    .manifest-document-fields dt { margin-bottom: .7mm; font-size: 6pt; }
    .manifest-document-fields dd { font-size: 8pt; line-height: 1.2; }
    .manifest-document-table-wrap { overflow: visible; margin: 0 0 1.5mm; }
    .manifest-document-table { width: 100%; min-width: 0; font-size: 8pt; }
    .manifest-document-table th { font-size: 7pt; padding: 1mm; }
    .manifest-document-table td { padding: .9mm 1mm; line-height: 1.25; }
    .manifest-document-table thead { display: table-header-group; }
    .manifest-document-table tr { break-inside: avoid; page-break-inside: avoid; }
    .manifest-document-note-editor { display: none !important; }
    .manifest-document-note-cell--editable .manifest-document-vehicle-note,
    .manifest-document-vehicle-note { display: block; overflow: visible; white-space: pre-wrap; }
    .manifest-document-notes { max-height: none; overflow: visible; margin: 0 0 3mm; padding: 2mm; break-inside: avoid; }
    .manifest-document-notes strong { font-size: 7pt; }
    .manifest-document-notes p { display: block; overflow: visible; margin-top: 1mm; font-size: 8pt; line-height: 1.25; }
    .manifest-document-footer { margin: 0; padding-top: 1mm; font-size: 6pt; break-inside: avoid; }
    .manifest-document-section-title,
    .manifest-document-table th { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Rotas — catálogo operacional e espaço unificado de edição */
.routes-catalog-page { color:#17375e; }
.routes-page-title { display:flex; align-items:center; gap:.85rem; }
.routes-page-title__icon { display:grid; width:2.4rem; height:2.4rem; flex:0 0 2.4rem; place-items:center; color:#17375e; }
.routes-page-title__icon svg,.route-group-card__icon svg,.route-workspace-section__icon svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.routes-page-heading .btn-primary { min-width:9.4rem; padding:.62rem 1rem; box-shadow:0 .28rem .7rem rgba(13,110,253,.18); }
.routes-add-icon { margin-right:.28rem; font-size:1.35rem; font-weight:300; line-height:.7; }
.route-breadcrumb { font-size:.82rem; }
.route-group-card { min-height:5.35rem; display:flex; align-items:center; gap:1rem; padding:1rem 1.15rem; color:#17375e; background:var(--bs-body-bg); border:1px solid var(--bs-border-color); border-radius:.55rem; box-shadow:0 .16rem .75rem rgba(19,55,94,.07); text-decoration:none; transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.route-group-card:hover { color:#075fca; border-color:#91bffc; box-shadow:0 .4rem 1.2rem rgba(19,87,160,.12); transform:translateY(-1px); }
.route-group-card.active { border:2px solid #0875ef; padding:calc(1rem - 1px) calc(1.15rem - 1px); background:linear-gradient(110deg,#fff 0%,#f3f8ff 100%); }
.route-group-card__icon { display:grid; width:2.7rem; height:2.7rem; flex:0 0 2.7rem; place-items:center; color:#0875ef; }
.route-group-card__icon--main { color:#e79a0a; }
.route-group-card__copy { min-width:0; flex:1; }
.route-group-card__copy strong,.route-group-card__copy small { display:block; }
.route-group-card__copy strong { margin-bottom:.18rem; font-size:1rem; }
.route-group-card__copy small { color:var(--bs-secondary-color); }
.route-group-card__meta { display:grid; align-self:stretch; min-width:5.5rem; justify-items:end; align-content:space-between; color:#0875ef; font-size:.78rem; }
.route-count-pill { display:inline-flex; min-width:2.25rem; min-height:1.55rem; align-items:center; justify-content:center; padding:.15rem .65rem; color:#075fca; background:#e7f1ff; border-radius:99rem; font-size:.82rem; font-weight:700; white-space:nowrap; }
.route-lookup-card,.route-list-card { border:1px solid rgba(26,75,123,.08)!important; border-radius:.55rem; }
.route-lookup-card .card-body { padding:1rem; }
.route-lookup-card .form-label,.route-list-card .form-label { color:#28496d; font-size:.78rem; font-weight:700; }
.route-lookup-card .form-select,.route-list-card .form-control,.route-list-card .form-select { min-height:2.55rem; border-color:#cbd9e8; }
.route-list-card>.card-body { padding:1rem; }
.route-list-summary { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.82rem 1rem; border-bottom:1px solid var(--bs-border-color); font-size:.82rem; }
.route-list-summary strong { margin-right:.25rem; font-size:1rem; }
.route-list-summary>span { color:var(--bs-secondary-color); }
.route-list-card table { min-width:82rem; font-size:.79rem; }
.route-list-card thead th { padding:.7rem .75rem; color:#56708f; background:#f4f7fb; border-color:#dfe7ef; font-size:.66rem; letter-spacing:.025em; text-transform:uppercase; white-space:nowrap; }
.route-list-card tbody td { padding:.72rem .75rem; border-color:#e1e8f0; }
.route-list-card tbody tr:hover { background:#f8fbff; }
.route-list-card tbody td:first-child a { color:#076bd7; font-weight:700; }
.route-acronym-badge { display:inline-flex; align-items:center; justify-content:center; min-width:4.75rem; padding:.25rem .5rem; color:#174a7c; background:#e5f0fb; border:1px solid #c7dff5; border-radius:.35rem; font-size:.7rem; font-weight:800; white-space:nowrap; }
.route-value-badges,.route-value-coverage,.route-row-actions { display:flex; align-items:center; gap:.35rem; }
.route-value-badges,.route-value-coverage { flex-wrap:wrap; }
.route-value-badge { display:inline-flex; align-items:center; padding:.2rem .48rem; border-radius:.35rem; font-size:.7rem; font-weight:700; }
.route-value-badge--price { color:#087844; background:#dff6e8; }
.route-value-badge--cost { color:#075fca; background:#e3efff; }
.route-value-coverage { margin-top:.32rem; color:#71849a; font-size:.68rem; }
.route-value-coverage span { padding:.12rem .4rem; background:#f1f4f7; border-radius:.3rem; }
.route-value-coverage .exact { color:#087844; background:#e7f7ed; }
.route-value-coverage .calculated { color:#066acb; background:#e7f2ff; }
.route-row-actions { justify-content:flex-end; }
.route-edit-action { min-width:6.8rem; }
.route-more-action { width:2.15rem; padding-inline:0; font-size:1.12rem; line-height:1; }
.route-actions-menu { min-width:12rem; padding:.38rem; }
.route-actions-menu form { margin:0; }
.route-actions-menu .dropdown-item { border:0; border-radius:.3rem; background:transparent; font-size:.82rem; text-align:left; }
.route-list-card>.card-footer { padding:.85rem 1rem; }

.route-workspace-nav { position:sticky; top:.6rem; z-index:12; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.5rem; margin-bottom:1rem; padding:.42rem; background:rgba(255,255,255,.94); border:1px solid var(--bs-border-color); border-radius:.7rem; box-shadow:0 .25rem 1rem rgba(19,55,94,.08); backdrop-filter:blur(10px); }
.route-workspace-nav a { display:grid; grid-template-columns:2rem 1fr; column-gap:.6rem; align-items:center; padding:.6rem .72rem; color:#375875; border-radius:.48rem; text-decoration:none; }
.route-workspace-nav a:hover,.route-workspace-nav a.active { color:#075fca; background:#edf5ff; }
.route-workspace-nav a>span { grid-row:1/span 2; display:grid; width:2rem; height:2rem; place-items:center; color:#fff; background:#0b70df; border-radius:50%; font-size:.7rem; font-weight:700; }
.route-workspace-nav strong,.route-workspace-nav small { display:block; line-height:1.2; }
.route-workspace-nav strong { font-size:.82rem; }
.route-workspace-nav small { margin-top:.12rem; color:var(--bs-secondary-color); font-size:.68rem; }
.route-workspace-main { margin-bottom:1rem; scroll-margin-top:5rem; }
#route-points-map,#route-providers,#route-service-prices { scroll-margin-top:5rem; }
.route-workspace-section { margin-top:1rem; margin-bottom:0; border-radius:.7rem; overflow:hidden; }
.route-price-workspace { scroll-margin-top:5rem; }
.route-workspace-section__header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.15rem; border-bottom:1px solid var(--bs-border-color); }
.route-workspace-section__heading { display:flex; align-items:center; gap:.8rem; }
.route-workspace-collapse>.route-workspace-section__header { cursor:pointer; list-style:none; user-select:none; }
.route-workspace-collapse>.route-workspace-section__header::-webkit-details-marker { display:none; }
.route-workspace-collapse>.route-workspace-section__header::after { display:grid; width:1.8rem; height:1.8rem; flex:0 0 1.8rem; place-items:center; color:#56708f; background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color); border-radius:.45rem; content:'⌄'; font-size:1rem; font-weight:800; transition:transform .18s ease; }
.route-workspace-collapse[open]>.route-workspace-section__header::after { transform:rotate(180deg); }
.route-workspace-collapse:not([open])>.route-workspace-section__header { border-bottom:0; }
.route-workspace-collapse>.route-workspace-section__header:hover { background:color-mix(in srgb,var(--bs-primary-bg-subtle) 28%,var(--bs-body-bg))!important; }
.route-workspace-collapse>.route-workspace-section__header:focus-visible { outline:3px solid rgba(13,110,253,.28); outline-offset:-3px; }
.route-workspace-collapse .route-workspace-section__heading { min-width:0; flex:1; }
.route-workspace-section__icon { display:grid; width:2.25rem; height:2.25rem; flex:0 0 2.25rem; place-items:center; padding:.42rem; color:#0875df; background:#e9f3ff; border-radius:.55rem; }
.route-workspace-section__icon--history { color:#8a6400; background:#fff2cc; }
.route-workspace-section__icon--provider { color:#087747; background:#ddf6e9; }
.route-provider-table { font-size:.77rem; }
.route-provider-table thead th { padding:.72rem 1rem; color:#526e8c; background:#f4f7fb; border-color:#dfe7ef; font-size:.65rem; text-transform:uppercase; white-space:nowrap; }
.route-provider-table td { min-width:8rem; padding:.78rem 1rem; border-color:#e2e9f0; vertical-align:middle; }
.route-provider-table td:first-child { min-width:15rem; }
.route-provider-table td:nth-child(3),.route-provider-table td:nth-child(4) { min-width:11rem; }
.route-provider-table td strong,.route-provider-table td small { display:block; }
.route-provider-table td small { margin-top:.16rem; color:var(--bs-secondary-color); font-size:.66rem; }
.route-provider-empty { padding:1rem; color:var(--bs-secondary-color); text-align:center; }
.route-provider-suggestions { border-top:1px solid var(--bs-border-color); }
.route-provider-suggestions>summary { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.85rem 1.15rem; color:#1766ad; background:var(--bs-tertiary-bg); cursor:pointer; list-style:none; }
.route-provider-suggestions>summary::-webkit-details-marker { display:none; }
.route-provider-suggestions>summary>span:first-child { display:flex; flex-direction:column; gap:.12rem; }
.route-provider-suggestions>summary strong { font-size:.78rem; }
.route-provider-suggestions>summary small { color:var(--bs-secondary-color); font-size:.66rem; }
.route-provider-suggestion-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; padding:1rem 1.15rem; border-top:1px solid var(--bs-border-color); }
.route-provider-suggestion { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.55rem; padding:.8rem; background:var(--bs-body-bg); border:1px solid var(--bs-border-color); border-radius:.55rem; }
.route-provider-suggestion strong,.route-provider-suggestion small { display:block; }
.route-provider-suggestion small { margin-top:.12rem; color:var(--bs-secondary-color); font-size:.64rem; }
.route-provider-suggestion p,.route-provider-suggestion form { grid-column:1/-1; margin:0; }
.route-provider-suggestion p { color:var(--bs-secondary-color); font-size:.68rem; }
.route-provider-create { padding:1rem 1.15rem; }
.route-provider-create__heading { margin-bottom:.75rem; }
.route-provider-create__heading strong,.route-provider-create__heading small { display:block; }
.route-provider-create__heading strong { color:var(--bs-heading-color); font-size:.82rem; }
.route-provider-create__heading small { margin-top:.12rem; color:var(--bs-secondary-color); font-size:.67rem; }
.route-provider-create>form { display:grid; grid-template-columns:minmax(14rem,1.4fr) minmax(7rem,.55fr) minmax(11rem,.9fr) minmax(10rem,.8fr) minmax(10rem,.75fr) auto; align-items:end; gap:.7rem; }
.route-provider-create label { color:#365a7e; font-size:.68rem; font-weight:700; }
.route-provider-create label sup { color:#dc3545; }
.route-provider-create .btn { min-height:2.35rem; white-space:nowrap; }
.route-evidence-card .card-body { padding:1rem 1.15rem; }
.route-evidence-empty { padding:.9rem; color:var(--bs-secondary-color); background:var(--bs-tertiary-bg); border:1px dashed var(--bs-border-color); border-radius:.55rem; font-size:.8rem; text-align:center; }
.route-evidence-points { display:grid; grid-template-columns:repeat(auto-fit,minmax(14rem,1fr)); gap:.55rem; }
.route-evidence-point { display:grid; grid-template-columns:1.25rem 1fr auto; align-items:center; gap:.55rem; min-width:0; padding:.7rem .8rem; background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color); border-radius:.55rem; }
.route-evidence-point>span { color:#0875df; text-align:center; }
.route-evidence-point strong,.route-evidence-point small { display:block; }
.route-evidence-point strong { color:var(--bs-heading-color); font-size:.8rem; }
.route-evidence-point small { overflow:hidden; margin-top:.15rem; color:var(--bs-secondary-color); font-size:.68rem; text-overflow:ellipsis; white-space:nowrap; }
.route-evidence-point em { padding:.18rem .45rem; color:#075fca; background:#e3efff; border-radius:99rem; font-size:.62rem; font-style:normal; font-weight:700; white-space:nowrap; }
.route-evidence-details { margin-top:.85rem; border:1px solid var(--bs-border-color); border-radius:.55rem; overflow:hidden; }
.route-evidence-details summary { padding:.7rem .85rem; color:#1766ad; background:var(--bs-tertiary-bg); cursor:pointer; font-size:.75rem; font-weight:700; }
.route-evidence-details[open] summary { border-bottom:1px solid var(--bs-border-color); }
.route-evidence-details table { font-size:.72rem; }
.route-evidence-details th { color:#526e8c; background:var(--bs-tertiary-bg); font-size:.64rem; text-transform:uppercase; }
.route-price-table { font-size:.79rem; }
.route-price-table thead th { padding:.72rem 1rem; color:#526e8c; background:#f4f7fb; border-color:#dfe7ef; font-size:.67rem; text-transform:uppercase; white-space:nowrap; }
.route-price-table td { min-width:10rem; padding:.85rem 1rem; border-color:#e2e9f0; vertical-align:top; }
.route-price-table td:first-child { min-width:13rem; }
.route-price-table td:last-child { min-width:14rem; }
.route-price-footer { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.15rem; }

html[data-theme="dark"] .route-group-card.active { background:linear-gradient(110deg,#152b3e,#102945); }
html[data-theme="dark"] .route-list-card thead th,html[data-theme="dark"] .route-price-table thead th,html[data-theme="dark"] .route-provider-table thead th { color:#a9bfd3; background:#142b3e; }
html[data-theme="dark"] .route-list-card tbody tr:hover { background:#112a40; }
html[data-theme="dark"] .route-workspace-nav { background:rgba(16,36,53,.94); }
html[data-theme="dark"] .route-workspace-nav a:hover,html[data-theme="dark"] .route-workspace-nav a.active { background:#173b5c; }

@media(max-width:991.98px) {
    .route-group-card__meta>span:last-child { display:none; }
    .route-list-summary { align-items:flex-start; flex-direction:column; gap:.2rem; }
    .route-workspace-nav { position:static; }
    .route-provider-suggestion-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .route-provider-create>form { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:767.98px) {
    .routes-page-heading .btn-primary { width:100%; }
    .route-group-card { min-height:auto; }
    .route-workspace-nav { grid-template-columns:1fr; }
    .route-workspace-nav a { grid-template-columns:1.75rem 1fr; padding:.45rem .55rem; }
    .route-workspace-nav a>span { width:1.75rem; height:1.75rem; }
    .route-price-footer { align-items:stretch; flex-direction:column; }
    .route-price-footer .btn { width:100%; }
    .route-provider-suggestion-grid,.route-provider-create>form { grid-template-columns:1fr; }
    .route-provider-create .btn { width:100%; }
}

/* Mensagens operacionais do WhatsApp */
.operational-whatsapp-page-tools { display:flex; justify-content:flex-end; margin:.65rem 0; }
.stage-standard-list-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.operational-whatsapp-page-tools.is-stage-heading { margin:0; }
.load-current-card { position:relative; }
.operational-whatsapp-page-tools.is-load-heading { position:absolute; top:.45rem; right:2.65rem; margin:0; }
.operational-whatsapp-page-tools.is-load-heading .operational-whatsapp-template-button { min-height:2.15rem; padding:.35rem .75rem; }
.operational-whatsapp-template-button,.operational-whatsapp-batch-button { font-weight:750; }
.operational-whatsapp-brand { display:grid; place-items:center; font-size:1.2rem; }
.operational-whatsapp-menu-item { display:flex; align-items:center; gap:.45rem; color:#087c48; font-weight:700; }
.operational-load-actions { display:flex; align-items:center; gap:.35rem; white-space:nowrap; }
.operational-whatsapp-editor textarea { line-height:1.48; resize:vertical; }
.operational-whatsapp-batch-tools { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem .8rem; border:1px solid #d8e3ec; border-radius:.6rem; background:#f7fafc; }
.operational-whatsapp-batch-list { display:flex; max-height:22rem; flex-direction:column; gap:.4rem; margin-top:.75rem; overflow:auto; }
.operational-whatsapp-batch-item { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.7rem; padding:.65rem .75rem; border:1px solid #dce5ed; border-radius:.55rem; background:#fff; cursor:pointer; }
.operational-whatsapp-batch-item span { display:flex; min-width:0; flex-direction:column; }
.operational-whatsapp-batch-item strong { color:#153b61; font-size:.82rem; }
.operational-whatsapp-batch-item small { color:#6b8198; }
.operational-whatsapp-batch-item em { color:#087c48; font-size:.72rem; font-style:normal; font-weight:700; }
.operational-whatsapp-batch-item.is-disabled { cursor:not-allowed; opacity:.62; background:#f5f6f8; }
html[data-theme="dark"] .operational-whatsapp-batch-tools,html[data-theme="dark"] .operational-whatsapp-batch-item { color:var(--gh-text); border-color:var(--gh-border); background:var(--gh-canvas-subtle); }
html[data-theme="dark"] .operational-whatsapp-batch-item strong { color:var(--gh-text-strong); }
@media(max-width:767.98px) {
    .operational-whatsapp-page-tools.is-load-heading { position:static; justify-content:flex-end; margin:.55rem .75rem 0; }
    .operational-whatsapp-template-button { width:100%; justify-content:center; }
    .operational-whatsapp-batch-tools { align-items:flex-start; flex-direction:column; }
}

/* Client receivables and settlement batches */
.financial-customer-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.financial-customer-tab { display:flex; min-height:5.25rem; flex-direction:column; justify-content:center; padding:1rem 1.15rem; color:#173b60; border:1px solid #d8e3ee; border-radius:.75rem; background:#fff; box-shadow:0 .2rem .65rem rgba(15,45,75,.045); text-decoration:none; transition:border-color .15s,box-shadow .15s,transform .15s; }
.financial-customer-tab:hover { color:#0d4e8f; border-color:#9fc5e9; box-shadow:0 .35rem .9rem rgba(15,45,75,.08); transform:translateY(-1px); }
.financial-customer-tab span { font-size:1.02rem; font-weight:800; }
.financial-customer-tab small { margin-top:.18rem; color:#6a8198; }
.financial-customer-tab.active { color:#fff; border-color:#123f70; background:linear-gradient(135deg,#123f70,#0d579c); box-shadow:0 .4rem 1rem rgba(18,63,112,.18); }
.financial-customer-tab.active small { color:#d6e8f8; }
.financial-settlement-intro { display:flex; align-items:center; justify-content:space-between; gap:1.25rem; padding:1.25rem 1.35rem; border:1px solid #d7e4f0; border-radius:.85rem; background:linear-gradient(120deg,#fff,#f4f9ff); box-shadow:0 .25rem .85rem rgba(15,45,75,.05); }
.financial-settlement-intro h2 { margin:.15rem 0 .2rem; color:#12395f; font-size:1.5rem; font-weight:850; }
.financial-settlement-intro p { margin:0; color:#647d95; }
.financial-settlement-eyebrow { color:#0d6fc3; font-size:.7rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.financial-settlement-rule { display:flex; max-width:23rem; flex-direction:column; padding:.75rem .9rem; border:1px solid #c6def3; border-radius:.65rem; background:#eaf5ff; }
.financial-settlement-rule strong { color:#164f83; font-size:.8rem; }
.financial-settlement-rule small { margin-top:.15rem; color:#577793; }
.financial-settlement-scopes { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.55rem; }
.financial-settlement-scope { display:flex; min-width:0; min-height:4.35rem; flex-direction:column; justify-content:center; padding:.68rem .75rem; color:#294c6e; border:1px solid #d8e3ee; border-radius:.65rem; background:#fff; text-decoration:none; }
.financial-settlement-scope strong { display:flex; align-items:center; justify-content:space-between; gap:.35rem; font-size:.76rem; }
.financial-settlement-scope strong span { display:grid; min-width:1.45rem; height:1.45rem; place-items:center; padding:0 .3rem; color:#315a80; border-radius:999px; background:#edf3f8; font-size:.68rem; }
.financial-settlement-scope small { overflow:hidden; margin-top:.15rem; color:#76899c; font-size:.62rem; text-overflow:ellipsis; white-space:nowrap; }
.financial-settlement-scope.active { color:#fff; border-color:#123f70; background:#123f70; box-shadow:0 .25rem .7rem rgba(18,63,112,.17); }
.financial-settlement-scope.active strong span { color:#123f70; background:#fff; }
.financial-settlement-scope.active small { color:#cee2f4; }
.financial-settlement-table th { padding:.72rem .65rem; color:#58718a; background:#f5f8fb; font-size:.7rem; font-weight:850; letter-spacing:.025em; text-transform:uppercase; white-space:nowrap; }
.financial-settlement-table td { padding:.72rem .65rem; border-color:#e3eaf1; }
.financial-settlement-vehicle { display:flex; min-width:9rem; flex-direction:column; color:#075fad; text-decoration:none; }
.financial-settlement-vehicle small { color:#71869a; }
.financial-settlement-list { display:grid; gap:.75rem; }
.financial-settlement-card { position:relative; display:grid; grid-template-columns:minmax(14rem,1fr) minmax(28rem,1.4fr) 1.5rem; align-items:center; gap:1rem; padding:1rem 1.2rem; color:inherit; text-decoration:none; }
.financial-settlement-card:hover { color:inherit; border-color:#a8c8e5; box-shadow:0 .35rem 1rem rgba(15,45,75,.08); }
.financial-settlement-card h3 { margin:.4rem 0 .15rem; color:#173e64; font-size:1rem; font-weight:850; }
.financial-settlement-card p { margin:0; color:#6e8499; font-size:.75rem; }
.financial-settlement-card dl { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0; }
.financial-settlement-card dl div { padding:0 .7rem; border-left:1px solid #e3eaf1; }
.financial-settlement-card dt { color:#7a8da0; font-size:.64rem; text-transform:uppercase; }
.financial-settlement-card dd { margin:.18rem 0 0; color:#183d61; font-size:.82rem; font-weight:800; }
.financial-settlement-card__arrow { color:#2f6fa8; font-size:1.5rem; }
.financial-settlement-summary { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); overflow:hidden; border:1px solid #d8e3ee; border-radius:.75rem; background:#fff; }
.financial-settlement-summary article { display:flex; min-width:0; flex-direction:column; padding:.9rem 1rem; border-right:1px solid #e3eaf1; }
.financial-settlement-summary article:last-child { border-right:0; }
.financial-settlement-summary small { color:#72879b; font-size:.64rem; font-weight:750; text-transform:uppercase; }
.financial-settlement-summary strong { overflow:hidden; margin-top:.2rem; color:#173d62; font-size:.82rem; text-overflow:ellipsis; white-space:nowrap; }
.financial-settlement-cancel summary { color:#a42132; font-weight:750; cursor:pointer; }
html[data-theme="dark"] .financial-customer-tab,html[data-theme="dark"] .financial-settlement-intro,html[data-theme="dark"] .financial-settlement-scope,html[data-theme="dark"] .financial-settlement-summary { color:var(--gh-text); border-color:var(--gh-border); background:var(--gh-canvas-subtle); box-shadow:none; }
html[data-theme="dark"] .financial-customer-tab.active,html[data-theme="dark"] .financial-settlement-scope.active { color:#fff; border-color:#347dba; background:#123f70; }
html[data-theme="dark"] .financial-settlement-intro h2,html[data-theme="dark"] .financial-settlement-card h3,html[data-theme="dark"] .financial-settlement-card dd,html[data-theme="dark"] .financial-settlement-summary strong { color:var(--gh-text-strong); }
html[data-theme="dark"] .financial-settlement-rule { border-color:#315d86; background:rgba(56,139,253,.11); }
html[data-theme="dark"] .financial-settlement-table th { color:var(--gh-text-muted); background:var(--gh-canvas); }
@media(max-width:1199.98px) { .financial-settlement-scopes { grid-template-columns:repeat(3,minmax(0,1fr)); } .financial-settlement-summary { grid-template-columns:repeat(4,minmax(0,1fr)); } .financial-settlement-summary article { border-bottom:1px solid #e3eaf1; } }
@media(max-width:991.98px) { .financial-settlement-card { grid-template-columns:1fr; } .financial-settlement-card dl { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem 0; } .financial-settlement-card__arrow { display:none; } }
@media(max-width:767.98px) { .financial-customer-tabs { grid-template-columns:1fr; } .financial-settlement-intro { align-items:stretch; flex-direction:column; } .financial-settlement-rule { max-width:none; } .financial-settlement-scopes { grid-template-columns:repeat(2,minmax(0,1fr)); } .financial-settlement-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Editor de rotas: colunas explícitas para o mapa nunca ocupar o lado errado. */
.route-workspace-main>.card-body { padding:1rem!important; }
.route-editor-fields-column { display:grid; width:100%; min-width:0; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.65rem .75rem; align-content:start; }
.route-editor-fields-column>div { width:auto; max-width:none; }
.route-editor-fields-column>.route-field-purpose { grid-column:1/-1; }
.route-purpose-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.route-purpose-option{display:flex;align-items:center;justify-content:center;gap:.45rem;min-height:2.45rem;margin:0;padding:.45rem .75rem;border:1px solid var(--bs-border-color);border-radius:.55rem;background:var(--bs-body-bg);color:var(--bs-body-color);font-size:.86rem;font-weight:700;cursor:pointer;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}.route-purpose-option:hover{border-color:var(--bs-primary)}.route-purpose-option:has(.form-check-input:checked){border-color:var(--bs-primary);background:rgba(var(--bs-primary-rgb),.08);box-shadow:0 0 0 1px rgba(var(--bs-primary-rgb),.08)}.route-purpose-option .form-check-input{flex:0 0 auto;margin:0;cursor:pointer}.route-purpose-options.is-invalid .route-purpose-option{border-color:var(--bs-danger)}
.route-editor-fields-column>.route-field-origin,.route-editor-fields-column>.route-field-destination { grid-column:1/-1; }
.route-editor-fields-column>.route-field-name { grid-column:span 4; }
.route-editor-fields-column>.route-field-code { grid-column:span 2; }
.route-editor-fields-column>.route-field-days,.route-editor-fields-column>.route-field-distance,.route-editor-fields-column>.route-field-duration { grid-column:span 2; }
.route-operational-points { container-type:inline-size; padding-top:.25rem; }
.route-operational-points>[data-route-stops-list] { counter-reset:route-operational-point; }
.route-operational-point { position:relative; container-type:inline-size; counter-increment:route-operational-point; padding:.8rem .8rem .8rem 3.15rem!important; background:var(--bs-body-bg); border-color:var(--bs-border-color)!important; box-shadow:0 .08rem .25rem rgba(21,57,92,.05); }
.route-operational-point::before { position:absolute; top:.78rem; left:.72rem; display:grid; width:1.7rem; height:1.7rem; place-items:center; color:#fff; background:#0b70df; border-radius:50%; content:counter(route-operational-point); font-size:.68rem; font-weight:800; }
.route-operational-point::after { position:absolute; top:2.75rem; left:.48rem; width:2.25rem; color:#6c8196; content:'Ponto'; font-size:.54rem; font-weight:700; letter-spacing:.02em; text-align:center; text-transform:uppercase; }
.route-operational-point:first-child { border-color:#9fc8f3!important; background:color-mix(in srgb,var(--bs-primary-bg-subtle) 30%,var(--bs-body-bg)); }
.route-operational-point:first-child::after { color:#075fca; content:'Origem'; }
.route-operational-point:last-child { border-color:#9fc8f3!important; background:color-mix(in srgb,var(--bs-primary-bg-subtle) 30%,var(--bs-body-bg)); }
.route-operational-point:last-child::after { color:#075fca; content:'Destino'; }
.route-operational-point>.row:first-child { display:grid; grid-template-columns:minmax(11rem,1.55fr) minmax(6.2rem,.55fr) minmax(6.6rem,.65fr) 6.5rem 2.55rem; align-items:end; gap:.45rem; margin:0; }
.route-operational-point>.row:first-child>div { width:auto; padding:0; }
.route-operational-point>.row:first-child .form-label { margin-bottom:.25rem; color:#536e89; font-size:.64rem; font-weight:700; }
.route-operational-point>.row:first-child .form-control,.route-operational-point>.row:first-child .form-select,.route-operational-point>.row:first-child .btn { min-height:2.15rem; font-size:.72rem; }
.route-operational-point>.row:nth-of-type(2) { margin-top:.55rem!important; }
.route-operational-point>.row:nth-of-type(2)>.col-lg-6>div { padding:.55rem!important; border-color:transparent!important; border-radius:.48rem!important; }
.route-operational-point>.row:nth-of-type(2) .form-label { margin-bottom:.2rem; font-size:.62rem; }
.route-operational-point>.row:nth-of-type(2) .form-control,.route-operational-point>.row:nth-of-type(2) .form-select,.route-operational-point>.row:nth-of-type(2) .input-group-text { min-height:2rem; padding-top:.25rem; padding-bottom:.25rem; font-size:.7rem; }
.route-operational-point>.route-stop-services { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; margin-right:0; margin-left:0; }
.route-operational-point>.route-stop-services>.route-stop-service-column { width:auto; min-width:0; padding:0; }
.route-stop-service-card { min-width:0; padding:.7rem!important; }
.route-stop-service-title { margin-bottom:.55rem; }
.route-stop-service-primary { display:grid; grid-template-columns:minmax(0,1fr) minmax(8.5rem,.72fr); gap:.45rem; align-items:end; }
.route-stop-vehicle-type-pill { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:.45rem .6rem; border-radius:.45rem; background:color-mix(in srgb,var(--bs-primary) 9%,var(--bs-body-bg)); border:1px solid color-mix(in srgb,var(--bs-primary) 22%,var(--bs-border-color)); }
.route-stop-vehicle-type-pill strong { color:var(--bs-heading-color); font-size:.75rem; }
.route-stop-vehicle-type-pill small { color:var(--bs-secondary-color); font-size:.65rem; }
.route-stop-service-primary>label,.route-stop-provider-alternative>label { display:block; min-width:0; }
.route-stop-service-primary .route-stop-service-provider { grid-column:1/-1; }
.route-single-configuration .route-operational-point[hidden] { display:none!important; }
.route-operational-points [data-route-stops-list].route-single-configuration { display:block; }
.route-single-configuration .route-operational-point { padding:1rem!important; }
.route-single-configuration .route-operational-point::before,.route-single-configuration .route-operational-point::after { display:none; }
.route-single-configuration .route-operational-point>.row:first-child { display:none!important; }
.route-single-configuration .route-operational-point>.route-stop-services { grid-template-columns:1fr; }
.route-single-configuration .route-operational-point:first-child { grid-column:1/-1; }
.route-editor-fields-column>.route-field-days { grid-column:1/-1; }
.route-identity-options { grid-column:1/-1; padding:.8rem 1rem; border:1px solid var(--bs-border-color); border-radius:.55rem; background:var(--bs-body-bg); }
.route-identity-options>summary,.route-form-optional>summary { color:var(--bs-secondary-color); font-size:.85rem; font-weight:600; cursor:pointer; }
.route-form-optional { grid-column:1/-1; padding:.8rem 1rem; border:1px solid var(--bs-border-color); border-radius:.55rem; }
.route-form-optional[open]>summary { margin-bottom:.75rem; }
.route-extra-settings { margin-top:1rem; border:1px solid var(--bs-border-color); border-radius:.65rem; padding:1rem; background:var(--bs-body-bg); }
.route-extra-settings>summary { color:var(--bs-heading-color); font-weight:700; cursor:pointer; }
.route-extra-settings>summary span { display:block; margin:.3rem 0 0 1rem; color:var(--bs-secondary-color); font-size:.8rem; font-weight:400; }
.route-extra-settings>.route-workspace-section { margin-top:1rem; }
.route-workspace-main>.card-footer { position:sticky; bottom:0; z-index:5; border-top:1px solid var(--bs-border-color); }
.route-workspace-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
.route-editor-map-column [data-route-map] { height:16rem!important; min-height:14rem!important; }
.route-editor-map-column [data-route-sequence] { display:none; }
@media(max-width:575px) { .route-workspace-nav { grid-template-columns:1fr; } }
.route-stop-service-primary .form-label,.route-stop-provider-alternative .form-label { display:block; }
.route-stop-provider-alternatives { display:grid; gap:.5rem; margin-top:.65rem; padding-top:.65rem; border-top:1px dashed color-mix(in srgb,var(--bs-border-color) 78%,transparent); }
.route-stop-provider-alternative { display:grid; grid-template-columns:minmax(8rem,.9fr) minmax(7rem,.65fr) minmax(7rem,.65fr) 2.25rem; gap:.4rem; align-items:end; padding:.55rem; background:color-mix(in srgb,var(--bs-body-bg) 82%,transparent); border:1px solid color-mix(in srgb,var(--bs-border-color) 78%,transparent); border-radius:.45rem; }
.route-stop-provider-alternative .route-stop-service-provider { grid-column:1/-1; }
.route-stop-provider-alternative>.btn { width:2.25rem; min-height:2rem; padding:.2rem; }
.route-cost-matrix { overflow:hidden; padding:0!important; background:var(--bs-body-bg)!important; }
.route-cost-matrix__heading { padding:.7rem .8rem; background:color-mix(in srgb,var(--bs-success) 10%,var(--bs-body-bg)); border-bottom:1px solid color-mix(in srgb,var(--bs-success) 18%,var(--bs-border-color)); }
.bg-primary-subtle.route-cost-matrix .route-cost-matrix__heading { background:color-mix(in srgb,var(--bs-primary) 10%,var(--bs-body-bg)); border-bottom-color:color-mix(in srgb,var(--bs-primary) 18%,var(--bs-border-color)); }
.route-cost-matrix__heading strong,.route-cost-matrix__heading small { display:block; }
.route-cost-matrix__heading strong { color:var(--bs-heading-color); font-size:.95rem; }
.route-cost-matrix__heading small { margin-top:.08rem; color:var(--bs-secondary-color); font-size:.78rem; }
.route-cost-matrix__provider { display:block; padding:.65rem .75rem .55rem; }
.route-cost-matrix__table { margin:0 .75rem .65rem; overflow:hidden; border:1px solid var(--bs-border-color); border-radius:.5rem; background:var(--bs-body-bg); }
.route-cost-matrix__header,.route-cost-matrix__row { display:grid; grid-template-columns:minmax(8rem,1fr) minmax(8.5rem,.8fr) 2rem; align-items:center; gap:.6rem; padding:.42rem .55rem; }
.route-cost-matrix__header { color:#517091; background:color-mix(in srgb,var(--bs-secondary-bg) 80%,var(--bs-body-bg)); font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.025em; }
.route-cost-matrix__row { min-height:3rem; border-top:1px solid color-mix(in srgb,var(--bs-border-color) 75%,transparent); }
.route-cost-matrix__row.is-default { background:color-mix(in srgb,var(--bs-primary) 4%,var(--bs-body-bg)); }
.route-cost-matrix__type { display:flex; align-items:center; gap:.45rem; min-width:0; }
.route-cost-matrix__type i { color:var(--bs-primary); font-size:.58rem; }
.route-cost-matrix__type strong { overflow:hidden; color:var(--bs-heading-color); font-size:.86rem; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.route-cost-matrix__type small { margin-left:auto; padding:.12rem .35rem; border-radius:999px; color:var(--bs-primary); background:color-mix(in srgb,var(--bs-primary) 10%,transparent); font-size:.68rem; font-weight:800; text-transform:uppercase; }
.route-cost-matrix__new-type { display:block; width:calc(100% - 1.5rem); margin:-.2rem .75rem .7rem; padding:.55rem .65rem; border:1px dashed color-mix(in srgb,var(--bs-primary) 55%,var(--bs-border-color)); border-radius:.45rem; color:var(--bs-primary); background:transparent; font-size:.82rem; font-weight:800; text-align:center; text-decoration:none; }
.route-cost-matrix__new-type:hover { background:color-mix(in srgb,var(--bs-primary) 6%,var(--bs-body-bg)); }
.route-cost-matrix__new-row { grid-template-columns:minmax(8rem,1fr) minmax(8.5rem,.8fr) auto; background:color-mix(in srgb,var(--bs-primary) 4%,var(--bs-body-bg)); }
.route-cost-matrix__new-row label { min-width:0; }
.route-cost-matrix__new-row label>span:first-child { display:block; margin-bottom:.18rem; color:var(--bs-secondary-color); font-size:.72rem; font-weight:800; text-transform:uppercase; }
.route-cost-matrix__new-actions { display:flex; align-self:end; gap:.35rem; }
.route-cost-matrix__new-actions .btn { min-height:2rem; }
.route-cost-matrix__delete { display:inline-grid; width:1.75rem; height:1.75rem; place-items:center; padding:0; border:1px solid color-mix(in srgb,var(--bs-danger) 70%,var(--bs-border-color)); border-radius:50%; color:var(--bs-danger); background:transparent; font-size:1.15rem; font-weight:800; line-height:1; }
.route-cost-matrix__delete:hover,.route-cost-matrix__delete:focus-visible { color:#fff; background:var(--bs-danger); border-color:var(--bs-danger); }
.route-cost-matrix__delete:disabled { opacity:.5; cursor:wait; }
.route-cost-matrix__protected { width:1.75rem; }
.route-cost-matrix__feedback { grid-column:1 / -1; margin:0; color:var(--bs-danger); font-size:.68rem; font-weight:700; }
.route-cost-matrix>.route-stop-provider-alternatives { margin:.25rem .75rem .65rem; }
.route-cost-matrix>.route-stop-add-provider { margin:0 .75rem .75rem; width:calc(100% - 1.5rem); border-style:dashed; }
.business-uppercase-field { text-transform:uppercase; }
[data-registration-uppercase] .form-control:not([type="email"]):not([type="password"]),
[data-registration-uppercase] .form-select,
[data-registration-uppercase] .search-select-input { text-transform:uppercase; }
[data-registration-uppercase] .form-control,
[data-registration-uppercase] .form-select,
[data-registration-uppercase] .search-select-input { font-size:.9rem; }
[data-registration-uppercase] .form-label { font-size:.78rem; }
.route-cost-matrix__provider .form-label { font-size:.78rem!important; }
.route-cost-matrix__provider .form-select,
.route-cost-matrix__row .form-control,
.route-cost-matrix__row .input-group-text { min-height:2.4rem; font-size:.9rem; }
.quote-flow-heading__main { min-width:0; }
.quote-flow-heading__tools { display:grid; grid-template-columns:minmax(15rem,20rem) auto; align-items:start; justify-content:end; gap:.65rem; }
.quote-flow-vehicle-type { min-width:0; text-align:left; }
.quote-flow-vehicle-type>label { display:block; margin-bottom:.22rem; color:var(--bs-heading-color); font-size:.72rem; font-weight:800; }
.quote-flow-vehicle-type>.form-select,.quote-flow-vehicle-type>.search-select { width:100%; }
.quote-flow-vehicle-type .form-select,.quote-flow-vehicle-type .search-select-input { min-height:2.35rem; font-size:.78rem; }
.quote-flow-vehicle-type .invalid-feedback { font-size:.68rem; }
.shipment-create-flow .quote-flow-add-actions>.quote-flow-vehicle-type { min-width:14rem; }
@media (max-width:767.98px) { .shipment-create-flow .quote-flow-add-actions>.quote-flow-vehicle-type { grid-column:1/-1; flex-basis:100%; min-width:0; width:100%; } }
.quote-flow-heading__tools>.quote-flow-add-actions { margin-top:1.15rem; }
.quote-vehicle-type-inline { margin-top:.42rem; padding:.52rem; background:color-mix(in srgb,var(--bs-primary) 4%,var(--bs-body-bg)); border:1px solid color-mix(in srgb,var(--bs-primary) 22%,var(--bs-border-color)); border-radius:.5rem; }
.quote-vehicle-type-inline>label { display:block; margin-bottom:.22rem; color:var(--bs-heading-color); font-size:.7rem; font-weight:800; }
.quote-vehicle-type-inline__controls { display:grid; grid-template-columns:minmax(8rem,1fr) auto auto; gap:.35rem; }
.quote-vehicle-type-inline__controls .form-control,.quote-vehicle-type-inline__controls .btn { min-height:2.15rem; padding:.3rem .55rem; font-size:.72rem; }
.quote-vehicle-type-inline__feedback { margin-bottom:.35rem; color:var(--bs-danger); font-size:.68rem; font-weight:700; }
.quote-flow-card__hint.is-rate-filled { display:inline-flex; align-items:center; width:max-content; max-width:100%; margin-top:.25rem; padding:.18rem .4rem; color:#08783f; border-radius:.35rem; background:color-mix(in srgb,#20c875 13%,transparent); font-weight:700; }
@media (max-width:991.98px) { .quote-editor .quote-flow-heading { align-items:stretch; flex-wrap:wrap; }.quote-flow-heading__tools { width:100%; grid-template-columns:minmax(14rem,1fr) auto; } }
@media (max-width:767.98px) { .quote-flow-heading__tools { grid-template-columns:1fr; }.quote-flow-heading__tools>.quote-flow-add-actions { margin-top:0; }.quote-flow-add-actions { justify-content:stretch; }.quote-flow-add-actions .btn { flex:1 1 0; }.route-cost-matrix__header { display:none; }.route-cost-matrix__row { grid-template-columns:minmax(0,1fr) minmax(8rem,.8fr) 2rem; }.route-cost-matrix__new-row { grid-template-columns:1fr; }.route-cost-matrix__new-actions { justify-content:flex-end; }.quote-vehicle-type-inline__controls { grid-template-columns:1fr 1fr; }.quote-vehicle-type-inline__controls .form-control { grid-column:1 / -1; } }
.route-stop-add-provider { margin-top:.6rem; white-space:normal; }
.route-operational-point details { margin-top:.5rem!important; }
.route-operational-point details summary { cursor:pointer; font-size:.65rem!important; }
.route-operational-points>.alert { padding:.65rem .75rem; border:1px solid #cfe1f3; background:#f3f8fe; font-size:.68rem!important; }
.route-editor-map-column .route-map-panel { border-radius:.7rem; box-shadow:0 .2rem .8rem rgba(17,54,91,.08); }
.route-editor-map-column .route-map-toolbar { padding:.8rem; }
.route-editor-map-column .route-map-toolbar h2 { color:#173f68; font-weight:800; }
.route-editor-map-column .route-map-toolbar small { font-size:.65rem; }
.route-editor-map-column .route-map-toolbar .btn { padding:.38rem .52rem; font-size:.65rem; }
.route-editor-map-column .route-map-summary { gap:.45rem; padding:.7rem; }
.route-editor-map-column .route-map-summary>div { padding:.55rem; border-radius:.5rem; }
.route-editor-map-column .route-map-summary span { font-size:.62rem; }
.route-editor-map-column .route-map-summary strong { font-size:.78rem; }
.route-editor-map-column .route-map-sequence { padding:0 .8rem .8rem; font-size:.72rem; }

@media(min-width:1200px) {
    .route-editor-layout { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:.85rem 1rem; align-items:start; }
    .route-editor-layout.route-editor-layout>div { display:block; width:auto; max-width:none; grid-column:auto; grid-row:auto; }
    .route-editor-layout>div.route-editor-fields-column { display:grid; grid-column:1/span 6; grid-row:1; }
    .route-editor-layout>div.route-operational-points { display:block; grid-column:1/-1; grid-row:2; }
    .route-editor-layout>div.route-field-notes { display:block; grid-column:1/-1; grid-row:3; }
    .route-editor-layout>div.route-editor-map-column { display:block; grid-column:7/span 6; grid-row:1; }
    .route-operational-points>[data-route-stops-list] { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
    .route-operational-points>[data-route-stops-list]>[data-route-stop-row]:first-child { grid-column:1; grid-row:1; }
    .route-operational-points>[data-route-stops-list]>[data-route-stop-row]:last-child { grid-column:2; grid-row:1; }
    .route-operational-points>[data-route-stops-list]>[data-route-stop-row]:not(:first-child):not(:last-child) { grid-column:1/-1; }
    .route-operational-points>[data-route-stops-list]:has(>[data-route-stop-row]:nth-child(3)) { grid-template-columns:1fr; }
    .route-operational-points>[data-route-stops-list]:has(>[data-route-stop-row]:nth-child(3))>[data-route-stop-row] { grid-column:1!important; grid-row:auto!important; }
    .route-editor-map-column .route-map-panel { position:sticky; top:5.2rem; }
    .route-editor-map-column .route-map-canvas { height:clamp(19rem,38vh,27rem); }
}

@container(max-width:720px) {
    .route-operational-point>.row:first-child { grid-template-columns:minmax(10rem,1fr) minmax(6rem,.5fr) 5.8rem 2.5rem; }
    .route-operational-point>.row:first-child>div:nth-child(3) { grid-column:1/span 2; grid-row:2; }
    .route-operational-point>.row:first-child>div:nth-child(4) { grid-column:3; grid-row:1/span 2; align-self:end; }
    .route-operational-point>.row:first-child>div:nth-child(5) { grid-column:4; grid-row:1/span 2; align-self:end; }
    .route-operational-point>.route-stop-services { grid-template-columns:1fr; }
}

@media(max-width:767.98px) {
    .route-editor-fields-column { grid-template-columns:1fr; }
    .route-editor-fields-column>div { grid-column:1!important; }
    .route-operational-points>.d-flex { align-items:stretch!important; flex-direction:column; }
    .route-operational-points>.d-flex .btn { width:100%; }
    .route-operational-point { padding-left:.75rem!important; padding-top:3.1rem!important; }
    .route-operational-point::before { top:.7rem; }
    .route-operational-point::after { top:1.08rem; left:2.65rem; width:auto; }
    .route-operational-point>.row:first-child { display:grid; grid-template-columns:1fr 1fr; }
    .route-operational-point>.row:first-child>div { grid-column:auto!important; grid-row:auto!important; }
    .route-operational-point>.row:first-child>div:first-child { grid-column:1/-1!important; }
    .route-operational-point>.row:nth-of-type(2) { display:grid; grid-template-columns:1fr; }
}

/* Cadastro direto e importação de fretes em lote. */
.shipment-batch-breadcrumb { display:flex; align-items:center; gap:.45rem; margin-bottom:1rem; color:var(--bs-secondary-color); font-size:.78rem; }
.shipment-batch-breadcrumb a { color:#0868c9; }
.shipment-batch-page { display:grid; gap:1rem; }
.shipment-batch-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.shipment-batch-heading h1 { margin:.15rem 0 .2rem; color:var(--bs-heading-color); font-size:1.65rem; font-weight:800; }
.shipment-batch-heading p { margin:0; color:var(--bs-secondary-color); font-size:.86rem; }
.shipment-batch-eyebrow { color:#0872dc; font-size:.68rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.shipment-batch-source,.shipment-batch-review { border:1px solid var(--bs-border-color); border-radius:.75rem; overflow:hidden; box-shadow:0 .3rem 1rem rgba(20,56,91,.07); }
.shipment-batch-source>header,.shipment-batch-review>header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.1rem; background:var(--bs-body-bg); border-bottom:1px solid var(--bs-border-color); }
.shipment-batch-source>header>div,.shipment-batch-review>header>div:first-child { display:flex; align-items:center; gap:.75rem; }
.shipment-batch-source>header>div>span,.shipment-batch-review>header>div:first-child>span { display:grid; width:2rem; height:2rem; flex:0 0 2rem; place-items:center; color:#fff; background:#0b70df; border-radius:50%; font-size:.68rem; font-weight:800; }
.shipment-batch-source h2,.shipment-batch-review h2 { margin:0; color:var(--bs-heading-color); font-size:1rem; font-weight:800; }
.shipment-batch-source header p,.shipment-batch-review header p { margin:.1rem 0 0; color:var(--bs-secondary-color); font-size:.72rem; }
.shipment-batch-limit { padding:.3rem .65rem; color:#075fca; background:#e5f0ff; border-radius:99rem; font-size:.68rem; font-weight:750; }
.shipment-batch-source-body { padding:1rem 1.1rem 1.1rem; }
.shipment-batch-source-body>label { display:block; margin-bottom:.4rem; color:var(--bs-heading-color); font-size:.78rem; font-weight:750; }
.shipment-batch-source-body textarea { min-height:17rem; padding:.85rem; font-family:inherit; line-height:1.48; resize:vertical; }
.shipment-batch-source-footer { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:.8rem; }
.shipment-batch-source-footer small { color:var(--bs-secondary-color); }
.shipment-batch-counters { display:flex; flex-wrap:wrap; gap:.45rem; }
.shipment-batch-counters>span { min-width:5.8rem; padding:.38rem .6rem; color:#4c6681; background:var(--bs-tertiary-bg); border:1px solid var(--bs-border-color); border-radius:.5rem; font-size:.66rem; text-align:center; }
.shipment-batch-counters strong { display:block; color:var(--bs-heading-color); font-size:.95rem; }
.shipment-batch-counters .is-ready strong { color:#087747; }
.shipment-batch-counters .is-blocked strong { color:#b42335; }
.shipment-batch-client-groups { display:grid; grid-template-columns:minmax(13rem,.65fr) minmax(0,2fr); align-items:start; gap:1rem; padding:.9rem 1.1rem; background:color-mix(in srgb,var(--bs-tertiary-bg) 62%,var(--bs-body-bg)); border-bottom:1px solid var(--bs-border-color); }
.shipment-batch-client-groups h3 { margin:0; color:var(--bs-heading-color); font-size:.78rem; }
.shipment-batch-client-groups p { margin:.15rem 0 0; color:var(--bs-secondary-color); font-size:.66rem; }
.shipment-batch-client-groups>div:last-child { display:flex; flex-wrap:wrap; gap:.45rem; }
.shipment-batch-client { display:flex; flex-direction:column; padding:.42rem .6rem; background:var(--bs-body-bg); border:1px solid var(--bs-border-color); border-left:.22rem solid #0b70df; border-radius:.45rem; }
.shipment-batch-client.is-new { border-left-color:#e5a100; }
.shipment-batch-client strong { color:var(--bs-heading-color); font-size:.7rem; }
.shipment-batch-client small { color:var(--bs-secondary-color); font-size:.61rem; }
.shipment-batch-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem 1.1rem; border-bottom:1px solid var(--bs-border-color); font-size:.72rem; }
.shipment-batch-toolbar label { color:var(--bs-heading-color); font-weight:700; }
.shipment-batch-toolbar>span { color:var(--bs-secondary-color); }
.shipment-batch-profit-summary { display:grid; grid-template-columns:minmax(15rem,1.5fr) repeat(4,minmax(8rem,1fr)); gap:.55rem; align-items:stretch; padding:.8rem 1.1rem; background:color-mix(in srgb,#e8f3ff 65%,var(--bs-body-bg)); border-bottom:1px solid var(--bs-border-color); }
.shipment-batch-profit-summary>header,.shipment-batch-profit-summary>div { display:flex; min-width:0; flex-direction:column; justify-content:center; padding:.55rem .65rem; background:var(--bs-body-bg); border:1px solid var(--bs-border-color); border-radius:.5rem; }
.shipment-batch-profit-summary>header strong,.shipment-batch-profit-summary>header small { display:block; }
.shipment-batch-profit-summary>header strong { color:var(--bs-heading-color); font-size:.78rem; }
.shipment-batch-profit-summary>header small,.shipment-batch-profit-summary>header>span { color:var(--bs-secondary-color); font-size:.66rem; }
.shipment-batch-profit-summary>header>span { margin-top:.2rem; }
.shipment-batch-profit-summary>div>span,.shipment-batch-item-financial>div>span { color:var(--bs-secondary-color); font-size:.65rem; font-weight:700; text-transform:uppercase; }
.shipment-batch-profit-summary>div>strong { margin-top:.12rem; color:var(--bs-heading-color); font-size:.92rem; }
.shipment-batch-profit-summary [data-batch-selected-profit-box] { border-color:#a9dfbd; background:#edf9f1; }
.shipment-batch-profit-summary [data-batch-selected-profit-box]>strong { color:#087747; }
.shipment-batch-profit-summary [data-batch-selected-profit-box].is-negative { border-color:#efb5bd; background:#fcecef; }
.shipment-batch-profit-summary [data-batch-selected-profit-box].is-negative>strong { color:#a51f31; }
.shipment-batch-profit-summary.is-incomplete>header { border-color:#edcf82; }
.shipment-batch-profit-summary.is-incomplete>header>span { color:#7a5900; font-weight:700; }
.shipment-batch-items { display:grid; gap:.7rem; padding:1rem 1.1rem; background:color-mix(in srgb,var(--bs-tertiary-bg) 50%,var(--bs-body-bg)); }
.shipment-batch-item { background:var(--bs-body-bg); border:1px solid var(--bs-border-color); border-radius:.65rem; overflow:hidden; }
.shipment-batch-item.is-blocked { border-color:#edbdc4; }
.shipment-batch-item.is-ready:not(.is-dirty) { background:#e7eaed; border-color:#aab4bd; box-shadow:inset .28rem 0 0 #238a57; }
.shipment-batch-item.is-ready:not(.is-dirty)>header { background:#dce1e5; }
.shipment-batch-item.is-ready:not(.is-dirty) dl>div { background:#d7dce0; }
.shipment-batch-item.is-ready:not(.is-dirty) .shipment-batch-stage { filter:saturate(.62); opacity:.86; }
.shipment-batch-item.is-ready:not(.is-dirty) .shipment-batch-item-actions,.shipment-batch-item.is-ready:not(.is-dirty) .shipment-batch-item-financial { filter:none; opacity:1; }
.shipment-batch-item>header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.75rem; padding:.75rem .85rem; border-bottom:1px solid var(--bs-border-color); }
.shipment-batch-item>header label { display:flex; align-items:center; gap:.45rem; color:#0868c9; font-size:.7rem; font-weight:800; }
.shipment-batch-item>header>div strong,.shipment-batch-item>header>div small { display:block; }
.shipment-batch-item>header>div strong { color:var(--bs-heading-color); font-size:.8rem; }
.shipment-batch-item>header>div small { margin-top:.1rem; color:var(--bs-secondary-color); font-size:.66rem; }
.shipment-batch-item-actions { display:flex; align-items:center; justify-content:flex-end; gap:.45rem; }
.shipment-batch-status { padding:.27rem .55rem; color:#087747; background:#def6e9; border-radius:99rem; font-size:.63rem; font-weight:800; }
.shipment-batch-status.is-blocked { color:#a51f31; background:#fbe4e8; }
.shipment-batch-item-body { padding:.8rem .85rem .9rem; }
.shipment-batch-item dl { display:grid; grid-template-columns:.65fr 1.5fr .65fr 1fr; gap:.55rem; margin:0 0 .8rem; }
.shipment-batch-item dl>div { min-width:0; padding:.5rem .6rem; background:var(--bs-tertiary-bg); border-radius:.42rem; }
.shipment-batch-item dt { color:var(--bs-secondary-color); font-size:.58rem; letter-spacing:.04em; text-transform:uppercase; }
.shipment-batch-item dd { overflow:hidden; margin:.12rem 0 0; color:var(--bs-heading-color); font-size:.7rem; font-weight:750; text-overflow:ellipsis; white-space:nowrap; }
.shipment-batch-item-financial { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.5rem; margin:0 0 .8rem; padding:.55rem; background:color-mix(in srgb,#e8f3ff 60%,var(--bs-body-bg)); border:1px solid #c8ddf3; border-radius:.5rem; }
.shipment-batch-item-financial>div { min-width:0; padding:.38rem .5rem; background:var(--bs-body-bg); border-radius:.38rem; }
.shipment-batch-item-financial>div>strong { display:block; margin-top:.1rem; color:var(--bs-heading-color); font-size:.8rem; }
.shipment-batch-item-financial [data-batch-item-profit-box]>strong { color:#087747; }
.shipment-batch-item-financial [data-batch-item-profit-box].is-negative>strong { color:#a51f31; }
.shipment-batch-item-financial>small { grid-column:1/-1; color:var(--bs-secondary-color); font-size:.66rem; }
.shipment-batch-item-financial.is-incomplete { background:#fff8e5; border-color:#edcf82; }
.shipment-batch-item-financial.is-incomplete>small { color:#7a5900; font-weight:700; }
.shipment-batch-item-body section h3 { margin:0 0 .45rem; color:#3d5d7c; font-size:.68rem; font-weight:800; text-transform:uppercase; }
.shipment-batch-flow { display:flex; align-items:stretch; gap:.35rem; overflow-x:auto; padding-bottom:.18rem; }
.shipment-batch-stage { position:relative; display:grid; grid-template-columns:1.4rem minmax(7rem,1fr); align-items:center; gap:.4rem; min-width:10rem; padding:.48rem .55rem; background:#edf5ff; border:1px solid #cce2fb; border-radius:.45rem; }
.shipment-batch-stage:not(:last-child)::after { position:absolute; right:-.38rem; z-index:2; color:#7b93aa; content:'›'; font-weight:900; }
.shipment-batch-stage>span { display:grid; width:1.4rem; height:1.4rem; place-items:center; color:#fff; background:#0b70df; border-radius:50%; font-size:.6rem; font-weight:800; }
.shipment-batch-stage strong,.shipment-batch-stage small { display:block; }
.shipment-batch-stage strong { color:#114a7d; font-size:.66rem; }
.shipment-batch-stage small { overflow:hidden; margin-top:.08rem; color:#637b93; font-size:.58rem; text-overflow:ellipsis; white-space:nowrap; }
.shipment-batch-stage.is-coleta { background:#fff7df; border-color:#f2d994; }
.shipment-batch-stage.is-coleta>span { background:#cb8c00; }
.shipment-batch-stage.is-entrega { background:#e9f8ef; border-color:#bfe8cf; }
.shipment-batch-stage.is-entrega>span { background:#138352; }
.shipment-batch-item-messages { display:grid; gap:.4rem; margin-top:.65rem; }
.shipment-batch-message { display:flex; flex-direction:column; gap:.12rem; padding:.48rem .6rem; border-radius:.4rem; font-size:.64rem; }
.shipment-batch-message.is-warning { color:#735400; background:#fff3cd; }
.shipment-batch-message.is-blocked { color:#8b1e2b; background:#fbe4e8; }
.shipment-batch-editor { margin-top:.9rem; border:1px solid #9fc8f3; border-radius:.6rem; overflow:hidden; }
.shipment-batch-item.is-dirty .shipment-batch-editor { border-color:#e5a100; box-shadow:0 0 0 .15rem rgba(229,161,0,.1); }
.shipment-batch-editor>header { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding:.75rem .85rem; background:#edf5ff; border-bottom:1px solid #cce2fb; }
.shipment-batch-editor>header h3 { margin:0; color:#114a7d; font-size:.78rem; text-transform:none; }
.shipment-batch-editor>header p { margin:.12rem 0 0; color:#637b93; font-size:.64rem; }
.shipment-batch-editor>header>span { color:#637b93; font-size:.62rem; }
.shipment-batch-editor-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:.7rem; padding:.9rem; }
.shipment-batch-editor.is-flow-only .shipment-batch-editor-grid { display:none; }
.shipment-batch-editor-grid label { min-width:0; }
.shipment-batch-editor-grid label>span { display:block; margin-bottom:.22rem; color:#46627e; font-size:.61rem; font-weight:750; }
.shipment-batch-editor-grid .form-control,.shipment-batch-editor-grid .form-select { min-height:2.2rem; padding-top:.35rem; padding-bottom:.35rem; font-size:.7rem; }
.shipment-batch-editor-grid .span-3 { grid-column:span 3; }
.shipment-batch-editor-grid .span-6 { grid-column:span 6; }
.shipment-batch-editor-grid .span-9 { grid-column:span 9; }
.shipment-batch-editor-grid .span-12 { grid-column:1/-1; }
.shipment-batch-editor-grid label>small { display:block; min-height:.9rem; margin-top:.2rem; color:var(--bs-secondary-color); font-size:.58rem; line-height:1.35; }
.shipment-batch-editor-grid label>small.is-error { color:#b42332; font-weight:700; }
.shipment-batch-editor-grid label>small.is-success { color:#08783e; font-weight:700; }
.shipment-batch-client-control { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.5rem; align-items:stretch; }
.shipment-batch-client-control>[data-searchable-wrapper],.shipment-batch-client-control>.searchable-select { min-width:0; }
.shipment-batch-client-control>.btn { white-space:nowrap; }
.shipment-batch-client-modal .modal-dialog { max-width:64rem; }
.shipment-batch-client-modal .modal-content { border:0; border-radius:1rem; box-shadow:0 1.5rem 4rem rgba(16,42,67,.22); overflow:hidden; }
.shipment-batch-client-modal .modal-header { padding:1.05rem 1.25rem; border-bottom:1px solid var(--bs-border-color); }
.shipment-batch-client-modal .modal-header>div { display:flex; align-items:center; gap:.8rem; }
.shipment-batch-client-modal .modal-title { margin:0; font-size:1.15rem; }
.shipment-batch-client-modal .modal-header p { margin:.15rem 0 0; color:var(--bs-secondary-color); font-size:.8rem; }
.shipment-batch-modal-icon { display:grid; place-items:center; flex:0 0 2.3rem; height:2.3rem; border-radius:.7rem; color:#fff; background:#1677e8; font-size:1.35rem; font-weight:800; }
.shipment-batch-client-modal .modal-body { padding:1.1rem 1.25rem 1.25rem; background:color-mix(in srgb,var(--bs-tertiary-bg) 32%,var(--bs-body-bg)); }
.shipment-batch-client-form { display:grid; grid-template-columns:2fr .9fr 1.25fr 1.25fr 1.5fr; gap:.75rem; }
.shipment-batch-client-lookup { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:.55rem; }
.shipment-batch-client-form label,.shipment-batch-client-address-grid label { min-width:0; }
.shipment-batch-client-form label>span,.shipment-batch-client-address-grid label>span { display:block; margin-bottom:.28rem; color:var(--bs-heading-color); font-size:.77rem; font-weight:750; }
.shipment-batch-client-form label>small,.shipment-batch-client-address-grid label>small { display:block; margin-top:.22rem; color:var(--bs-secondary-color); font-size:.68rem; }
.shipment-batch-client-address { margin-top:1rem; border:1px solid var(--bs-border-color); border-radius:.7rem; background:var(--bs-body-bg); overflow:hidden; }
.shipment-batch-client-address summary { display:flex; align-items:center; gap:.45rem; padding:.72rem .85rem; color:var(--bs-heading-color); font-size:.8rem; font-weight:750; cursor:pointer; list-style:none; }
.shipment-batch-client-address summary::-webkit-details-marker { display:none; }
.shipment-batch-client-address summary>span { display:grid; place-items:center; width:1.25rem; height:1.25rem; border-radius:50%; color:#0b70df; background:#e5f1ff; }
.shipment-batch-client-address summary small { margin-left:auto; color:var(--bs-secondary-color); font-size:.68rem; font-weight:500; }
.shipment-batch-client-address-grid { display:grid; grid-template-columns:1fr 2fr .65fr 1fr 1.2fr 1.2fr .55fr; gap:.7rem; padding:.8rem; border-top:1px solid var(--bs-border-color); }
.shipment-batch-client-note { display:flex; gap:.55rem; margin-top:1rem; padding:.7rem .85rem; border:1px solid #b9dafb; border-radius:.65rem; color:#235783; background:#edf6ff; font-size:.75rem; }
.shipment-batch-client-note span { color:#55738e; }
.shipment-batch-client-modal-feedback { margin-bottom:.85rem; }
.shipment-batch-plate-field { grid-column:span 2; }
.shipment-batch-plate-field .input-group .btn { white-space:nowrap; font-size:.66rem; }
.shipment-batch-standard-flow { padding:0 .85rem .85rem; }
.shipment-batch-standard-flow>.quote-editor { width:100%; padding:0; }
.shipment-batch-standard-flow .quote-flow-shell { margin:0; }
.shipment-batch-editor>footer { display:flex; justify-content:flex-end; gap:.5rem; padding:.7rem .85rem; background:var(--bs-tertiary-bg); border-top:1px solid var(--bs-border-color); }
.shipment-batch-review>footer { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.85rem 1.1rem; border-top:1px solid var(--bs-border-color); }
.shipment-batch-review>footer strong,.shipment-batch-review>footer small { display:block; }
.shipment-batch-review>footer strong { color:var(--bs-heading-color); font-size:.78rem; }
.shipment-batch-review>footer small { margin-top:.1rem; color:var(--bs-secondary-color); font-size:.65rem; }

/* Batch shipment readability: avoid sub-12px operational text. */
.shipment-batch-heading h1 { font-size: 1.9rem; }
.shipment-batch-heading p { font-size: .96rem; }
.shipment-batch-eyebrow { font-size: .78rem; }
.shipment-batch-page .btn { font-size: .88rem; }
.shipment-batch-source h2,
.shipment-batch-review h2 { font-size: 1.12rem; }
.shipment-batch-source header p,
.shipment-batch-review header p { font-size: .82rem; line-height: 1.4; }
.shipment-batch-limit { font-size: .78rem; }
.shipment-batch-source-body > label { font-size: .9rem; }
.shipment-batch-source-body textarea { font-size: .92rem; }
.shipment-batch-source-footer small { font-size: .8rem; line-height: 1.4; }
.shipment-batch-counters > span { font-size: .76rem; }
.shipment-batch-counters strong { font-size: 1.05rem; }
.shipment-batch-client-groups h3 { font-size: .9rem; }
.shipment-batch-client-groups p { font-size: .77rem; line-height: 1.4; }
.shipment-batch-client strong { font-size: .82rem; }
.shipment-batch-client small { font-size: .72rem; }
.shipment-batch-toolbar { font-size: .82rem; }
.shipment-batch-item > header label { font-size: .8rem; }
.shipment-batch-item > header > div strong { font-size: .92rem; }
.shipment-batch-item > header > div small { font-size: .76rem; }
.shipment-batch-status { font-size: .72rem; }
.shipment-batch-item dt { font-size: .68rem; }
.shipment-batch-item dd { font-size: .82rem; }
.shipment-batch-item-body section h3 { font-size: .78rem; }
.shipment-batch-stage strong { font-size: .78rem; }
.shipment-batch-stage small { font-size: .7rem; line-height: 1.35; }
.shipment-batch-message { font-size: .76rem; line-height: 1.4; }
.shipment-batch-editor > header h3 { font-size: .9rem; }
.shipment-batch-editor > header p { font-size: .75rem; line-height: 1.4; }
.shipment-batch-editor > header > span { font-size: .73rem; }
.shipment-batch-editor-grid label > span { font-size: .78rem; }
.shipment-batch-editor-grid .form-control,
.shipment-batch-editor-grid .form-select,
.shipment-batch-editor-grid .input-group-text { min-height: 2.65rem; font-size: .92rem; }
.shipment-batch-editor-grid label > small { font-size: .69rem; }
.shipment-batch-plate-field .input-group .btn { font-size: .76rem; }
.shipment-batch-review > footer strong { font-size: .9rem; }
.shipment-batch-review > footer small { font-size: .75rem; line-height: 1.4; }
.shipment-batch-client-form .form-control,
.shipment-batch-client-form .form-select,
.shipment-batch-client-address-grid .form-control { min-height:2.65rem; font-size:.92rem; }

html[data-theme="dark"] .shipment-batch-limit { color:#90c4ff; background:#173b5c; }
html[data-theme="dark"] .shipment-batch-stage { background:#132f48; border-color:#285578; }
html[data-theme="dark"] .shipment-batch-stage strong { color:#acd1f4; }
html[data-theme="dark"] .shipment-batch-stage.is-coleta { background:#3a3119; border-color:#685628; }
html[data-theme="dark"] .shipment-batch-stage.is-entrega { background:#153929; border-color:#285f45; }
html[data-theme="dark"] .shipment-batch-editor>header { background:#153653; border-color:#285578; }
html[data-theme="dark"] .shipment-batch-editor>header h3 { color:#acd1f4; }

@media(max-width:1199.98px) {
    .shipment-index-heading-actions { flex-wrap:wrap; justify-content:flex-end; }
    .shipment-batch-client-groups { grid-template-columns:1fr; }
    .shipment-batch-editor-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .shipment-batch-editor-grid .span-3,.shipment-batch-editor-grid .span-6,.shipment-batch-editor-grid .span-9 { grid-column:span 1; }
    .shipment-batch-client-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .shipment-batch-client-form .client-name,.shipment-batch-client-form .client-email { grid-column:span 2; }
    .shipment-batch-client-address-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .shipment-batch-client-address-grid .client-address,.shipment-batch-client-address-grid .client-complement { grid-column:span 2; }
    .shipment-batch-profit-summary { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .shipment-batch-profit-summary>header { grid-column:1/-1; }
}
@media(max-width:767.98px) {
    .shipment-batch-heading,.shipment-batch-source-footer,.shipment-batch-review>footer { align-items:stretch; flex-direction:column; }
    .shipment-batch-heading .btn,.shipment-batch-source-footer .btn,.shipment-batch-review>footer .btn { width:100%; }
    .shipment-batch-source>header,.shipment-batch-review>header { align-items:flex-start; flex-direction:column; }
    .shipment-batch-item>header { grid-template-columns:auto 1fr; }
    .shipment-batch-status { grid-column:1/-1; justify-self:start; }
    .shipment-batch-item dl { grid-template-columns:1fr 1fr; }
    .shipment-batch-item-actions { grid-column:1/-1; justify-content:flex-start; }
    .shipment-batch-editor-grid { grid-template-columns:1fr; }
    .shipment-batch-editor-grid .span-3,.shipment-batch-editor-grid .span-6,.shipment-batch-editor-grid .span-9,.shipment-batch-editor-grid .span-12 { grid-column:auto; }
    .shipment-batch-plate-field { grid-column:auto; }
    .shipment-batch-editor>header,.shipment-batch-editor>footer { align-items:stretch; flex-direction:column; }
    .shipment-batch-editor>footer .btn { width:100%; }
    .shipment-batch-client-control,.shipment-batch-client-form,.shipment-batch-client-address-grid { grid-template-columns:1fr; }
    .shipment-batch-client-form .client-name,.shipment-batch-client-form .client-email,.shipment-batch-client-address-grid .client-address,.shipment-batch-client-address-grid .client-complement { grid-column:auto; }
    .shipment-batch-client-address summary small { display:none; }
    .shipment-batch-client-note { flex-direction:column; }
    .shipment-batch-profit-summary,.shipment-batch-item-financial { grid-template-columns:1fr 1fr; }
}
.page-memory-recovery {
    position: static;
    margin: 0 0 .75rem;
    color: var(--bs-secondary-color, #61738a);
    font-size: .8rem;
}
.page-memory-recovery > summary {
    width: fit-content;
    cursor: pointer;
    padding: .2rem 0;
}
.page-memory-recovery > summary:focus-visible {
    outline: 2px solid #4785ca;
    outline-offset: 3px;
    border-radius: .2rem;
}
.page-memory-recovery > p { margin: .4rem 0; }
.page-memory-recovery .btn { font-size: .75rem; }
.page-memory-file-reminder {
    margin: .5rem 0;
    color: #885b16;
    font-size: .85rem;
}

/* GitHub-inspired dark theme: neutral canvas, layered surfaces and restrained accent. */
html[data-theme="dark"] {
    --gh-canvas: #0d1117;
    --gh-canvas-subtle: #161b22;
    --gh-canvas-inset: #010409;
    --gh-surface-raised: #21262d;
    --gh-border: #30363d;
    --gh-border-muted: #21262d;
    --gh-text: #e6edf3;
    --gh-text-strong: #f0f6fc;
    --gh-text-muted: #8b949e;
    --gh-accent: #2f81f7;
    --gh-accent-hover: #58a6ff;
    --gh-accent-muted: rgba(56, 139, 253, .15);
    --gh-success: #3fb950;
    --gh-warning: #d29922;
    --gh-danger: #f85149;
    --ce-primary: #1f6feb;
    --ce-primary-dark: #1158c7;
    --ce-primary-soft: var(--gh-accent-muted);
    --ce-surface: var(--gh-canvas);
    --ce-border: var(--gh-border);
    --ce-muted: var(--gh-text-muted);
    --ce-shadow-sm: 0 1px 0 rgba(255,255,255,.035);
    --ce-shadow-md: 0 .75rem 2rem rgba(0,0,0,.38);
    --bs-primary-rgb: 47, 129, 247;
    --bs-link-color: var(--gh-accent-hover);
    --bs-link-hover-color: #79c0ff;
    --bs-heading-color: var(--gh-text-strong);
    --bs-border-color: var(--gh-border);
    --bs-border-color-translucent: rgba(240,246,252,.1);
    --bs-body-color: var(--gh-text);
    --bs-body-color-rgb: 230, 237, 243;
    --bs-body-bg: var(--gh-canvas);
    --bs-body-bg-rgb: 13, 17, 23;
    --bs-secondary-color: var(--gh-text-muted);
    --bs-secondary-color-rgb: 139, 148, 158;
    --bs-secondary-bg: var(--gh-surface-raised);
    --bs-tertiary-bg: var(--gh-canvas-subtle);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .app-main,
html[data-theme="dark"] main.app-main.dashboard-main,
html[data-theme="dark"] .dashboard-main {
    color: var(--gh-text);
    background: var(--gh-canvas);
}

html[data-theme="dark"] .app-sidebar,
html[data-theme="dark"] .app-offcanvas {
    color: var(--gh-text);
    background: var(--gh-canvas-inset);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .sidebar-brand-row,
html[data-theme="dark"] .sidebar-footer,
html[data-theme="dark"] .sidebar-group + .sidebar-group { border-color: var(--gh-border-muted); }
html[data-theme="dark"] .sidebar-heading,
html[data-theme="dark"] .sidebar-brand small { color: var(--gh-text-muted); }
html[data-theme="dark"] .sidebar-link { color: #b1bac4; }
html[data-theme="dark"] .sidebar-link:hover {
    color: var(--gh-text-strong);
    background: var(--gh-surface-raised);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .sidebar-link.active {
    color: var(--gh-text-strong);
    background: var(--gh-surface-raised);
    border-color: var(--gh-border);
    box-shadow: inset 3px 0 var(--gh-accent);
}
html[data-theme="dark"] .sidebar-icon { color: var(--gh-text-muted); }
html[data-theme="dark"] .sidebar-link.active .sidebar-icon { color: var(--gh-accent-hover); }
html[data-theme="dark"] .sidebar-collapse-toggle:hover { background: var(--gh-surface-raised); border-color: var(--gh-border); }

html[data-theme="dark"] .app-topbar {
    color: var(--gh-text);
    background: rgba(1, 4, 9, .94);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .app-topbar .topbar-title > strong,
html[data-theme="dark"] .topbar-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .detail-value { color: var(--gh-text-strong); }
html[data-theme="dark"] .app-topbar-clock,
html[data-theme="dark"] .dashboard-topbar-clock { color: var(--gh-text-muted); border-color: var(--gh-border); }
html[data-theme="dark"] .dashboard-topbar-clock strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .topbar-back-link,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .page-help-trigger,
html[data-theme="dark"] .page-help-trigger.page-help-trigger--icon {
    color: var(--gh-text-muted);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .topbar-back-link:hover,
html[data-theme="dark"] .topbar-back-link:focus-visible,
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .page-help-trigger:hover,
html[data-theme="dark"] .page-help-trigger:focus-visible,
html[data-theme="dark"] .page-help-trigger[aria-expanded="true"],
html[data-theme="dark"] .page-help-trigger.page-help-trigger--icon:hover,
html[data-theme="dark"] .page-help-trigger.page-help-trigger--icon:focus-visible,
html[data-theme="dark"] .page-help-trigger.page-help-trigger--icon[aria-expanded="true"] {
    color: var(--gh-text-strong);
    background: var(--gh-surface-raised);
    border-color: #6e7681;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .auth-card {
    --bs-card-color: var(--gh-text);
    --bs-card-bg: var(--gh-canvas-subtle);
    --bs-card-border-color: var(--gh-border);
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: var(--ce-shadow-sm);
}
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .bg-white {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle) !important;
    border-color: var(--gh-border);
}
html[data-theme="dark"] img.bg-white { background: #fff !important; }
html[data-theme="dark"] .bg-light { color: var(--gh-text) !important; background: var(--gh-surface-raised) !important; }
html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .form-text,
html[data-theme="dark"] .detail-label,
html[data-theme="dark"] .shipment-details dt { color: var(--gh-text-muted) !important; }
html[data-theme="dark"] .text-body { color: var(--gh-text) !important; }
html[data-theme="dark"] .text-primary { color: var(--gh-accent-hover) !important; }

html[data-theme="dark"] .form-label { color: #b1bac4; }
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] .search-select-input,
html[data-theme="dark"] .system-date-field__display {
    color: var(--gh-text);
    background-color: var(--gh-canvas);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] .system-date-field__display::placeholder { color: #6e7681; opacity: 1; }
html[data-theme="dark"] .form-control:hover,
html[data-theme="dark"] .form-select:hover,
html[data-theme="dark"] .search-select-input:hover { border-color: #6e7681; }
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus,
html[data-theme="dark"] .search-select-input:focus,
html[data-theme="dark"] .search-select.is-open .search-select-input,
html[data-theme="dark"] .system-date-field__display:focus,
html[data-theme="dark"] .system-date-field.is-open .system-date-field__display {
    color: var(--gh-text-strong);
    background-color: var(--gh-canvas);
    border-color: var(--gh-accent);
    box-shadow: 0 0 0 .2rem var(--gh-accent-muted);
}
html[data-theme="dark"] .form-control:disabled,
html[data-theme="dark"] .form-select:disabled,
html[data-theme="dark"] .search-select.is-disabled .search-select-input { color: var(--gh-text-muted); background: var(--gh-canvas-subtle); }
html[data-theme="dark"] .form-check-input { background-color: var(--gh-canvas); border-color: #6e7681; }
html[data-theme="dark"] .form-check-input:checked { background-color: var(--gh-accent); border-color: var(--gh-accent); }

html[data-theme="dark"] .table {
    --bs-table-color: var(--gh-text);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--gh-border);
    --bs-table-striped-color: var(--gh-text);
    --bs-table-striped-bg: rgba(177,186,196,.035);
    --bs-table-hover-color: var(--gh-text-strong);
    --bs-table-hover-bg: rgba(177,186,196,.075);
}
html[data-theme="dark"] .table thead th,
html[data-theme="dark"] .collection-queue-table th,
html[data-theme="dark"] .stage-queue-columns,
html[data-theme="dark"] .quote-table thead th,
html[data-theme="dark"] .shipment-index-table thead th {
    color: var(--gh-text-muted);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .table tbody td,
html[data-theme="dark"] .collection-queue-table td,
html[data-theme="dark"] .stage-queue-item { border-color: var(--gh-border-muted); }
html[data-theme="dark"] .table tbody tr:hover > *,
html[data-theme="dark"] .collection-queue-table tbody tr:hover td,
html[data-theme="dark"] .collection-queue-table tbody tr.is-selected td,
html[data-theme="dark"] .stage-queue-item:hover,
html[data-theme="dark"] .quote-table tbody tr:hover td { background: var(--gh-surface-raised); }
html[data-theme="dark"] .financial-transport-status {
    color: var(--gh-text);
    background: color-mix(in srgb, var(--financial-transport-color) 13%, var(--gh-canvas-subtle));
    border-color: color-mix(in srgb, var(--financial-transport-color) 34%, var(--gh-border));
    border-left-color: var(--financial-transport-color);
    box-shadow: none;
}
html[data-theme="dark"] .financial-transport-status:hover {
    color: var(--gh-text-strong);
    background: color-mix(in srgb, var(--financial-transport-color) 19%, var(--gh-surface-raised));
    border-color: color-mix(in srgb, var(--financial-transport-color) 52%, var(--gh-border));
}
html[data-theme="dark"] .financial-transport-status__dot { border-color: var(--gh-canvas-subtle); }
html[data-theme="dark"] .financial-transport-status__copy small { color: var(--gh-text-muted); }
html[data-theme="dark"] .financial-vehicle-stack strong { color: var(--gh-accent-hover); }
html[data-theme="dark"] .financial-vehicle-stack small { color: var(--gh-text-muted); }
html[data-theme="dark"] .financial-collection-table thead { border-color: var(--gh-border); }
html[data-theme="dark"] .financial-collection-table thead th:first-child::after,
html[data-theme="dark"] .financial-collection-table tbody td[data-label]::before { color: var(--gh-text-muted); }
html[data-theme="dark"] .financial-collection-table tbody tr { background: var(--gh-canvas-subtle); border-color: var(--gh-border); }

html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .search-select-panel,
html[data-theme="dark"] .global-search-panel,
html[data-theme="dark"] .system-date-picker,
html[data-theme="dark"] .page-help-panel,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .offcanvas:not(.app-offcanvas) {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: var(--ce-shadow-md);
}
html[data-theme="dark"] .dropdown-menu {
    --bs-dropdown-color: var(--gh-text);
    --bs-dropdown-bg: var(--gh-canvas-subtle);
    --bs-dropdown-border-color: var(--gh-border);
    --bs-dropdown-link-color: var(--gh-text);
    --bs-dropdown-link-hover-color: var(--gh-text-strong);
    --bs-dropdown-link-hover-bg: var(--gh-surface-raised);
}
html[data-theme="dark"] .search-select-hint,
html[data-theme="dark"] .global-search-tabs button,
html[data-theme="dark"] .global-search-group-heading { color: var(--gh-text-muted); background: var(--gh-canvas); border-color: var(--gh-border); }
html[data-theme="dark"] .search-select-option:hover,
html[data-theme="dark"] .search-select-option.is-active,
html[data-theme="dark"] .global-search-result:hover,
html[data-theme="dark"] .global-search-result.is-active { color: var(--gh-text-strong); background: var(--gh-surface-raised); }
html[data-theme="dark"] .search-select-option.is-selected,
html[data-theme="dark"] .global-search-tabs button.is-active { color: var(--gh-text-strong); background: var(--gh-accent-muted); border-color: rgba(56,139,253,.4); }

html[data-theme="dark"] .btn-primary {
    --bs-btn-bg: #1f6feb;
    --bs-btn-border-color: #1f6feb;
    --bs-btn-hover-bg: #388bfd;
    --bs-btn-hover-border-color: #388bfd;
    --bs-btn-active-bg: #1158c7;
    --bs-btn-active-border-color: #1158c7;
}
html[data-theme="dark"] .btn-light,
html[data-theme="dark"] .btn-outline-secondary,
html[data-theme="dark"] .btn-outline-primary {
    --bs-btn-color: #c9d1d9;
    --bs-btn-bg: var(--gh-surface-raised);
    --bs-btn-border-color: #8b949e;
    --bs-btn-hover-color: var(--gh-text-strong);
    --bs-btn-hover-bg: #30363d;
    --bs-btn-hover-border-color: #8b949e;
}

html[data-theme="dark"] .dashboard-shell { --dash-border: var(--gh-border); color: var(--gh-text); }
html[data-theme="dark"] .dashboard-kpi,
html[data-theme="dark"] .dashboard-alert-strip,
html[data-theme="dark"] .dashboard-alert-card,
html[data-theme="dark"] .dashboard-queue,
html[data-theme="dark"] .dashboard-analysis-card,
html[data-theme="dark"] .dashboard-financial,
html[data-theme="dark"] .dashboard-advanced {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .card.dashboard-alert-card,
html[data-theme="dark"] .card.dashboard-operational-indicator {
    border-color: var(--gh-border) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .card.dashboard-alert-card::after,
html[data-theme="dark"] .card.dashboard-operational-indicator::after { box-shadow: none; }
html[data-theme="dark"] a.card.dashboard-alert-card:hover,
html[data-theme="dark"] a.card.dashboard-operational-indicator:hover,
html[data-theme="dark"] .dashboard-alert-card:hover,
html[data-theme="dark"] .dashboard-queue-row:hover {
    color: var(--gh-text-strong);
    background: var(--gh-surface-raised);
    border-color: #6e7681 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .dashboard-alert-strip > header,
html[data-theme="dark"] .dashboard-queue > header,
html[data-theme="dark"] .dashboard-analysis-card > header,
html[data-theme="dark"] .dashboard-financial > header,
html[data-theme="dark"] .dashboard-queue-row,
html[data-theme="dark"] .dashboard-finance-card,
html[data-theme="dark"] .dashboard-route-potential td,
html[data-theme="dark"] .dashboard-advanced td { color: #b1bac4; border-color: var(--gh-border-muted); }
html[data-theme="dark"] .dashboard-kpi-copy small,
html[data-theme="dark"] .dashboard-kpi-copy strong,
html[data-theme="dark"] .dashboard-alert-strip h2,
html[data-theme="dark"] .dashboard-alert-card strong,
html[data-theme="dark"] .dashboard-queue h2,
html[data-theme="dark"] .dashboard-analysis-card h2,
html[data-theme="dark"] .dashboard-financial h2,
html[data-theme="dark"] .dashboard-finance-card strong,
html[data-theme="dark"] .dashboard-queue-row strong,
html[data-theme="dark"] .dashboard-route-potential td:first-child a,
html[data-theme="dark"] .dashboard-donut-center strong,
html[data-theme="dark"] .dashboard-donut-legend-row strong,
html[data-theme="dark"] .dashboard-bar-value { color: var(--gh-text-strong); }
html[data-theme="dark"] .dashboard-kpi-copy em,
html[data-theme="dark"] .dashboard-donut-center small,
html[data-theme="dark"] .dashboard-donut-legend-row,
html[data-theme="dark"] .dashboard-bar-label { color: var(--gh-text-muted); }
html[data-theme="dark"] .dashboard-route-potential th,
html[data-theme="dark"] .dashboard-advanced th { color: var(--gh-text-muted); background: var(--gh-canvas); border-color: var(--gh-border); }
html[data-theme="dark"] .dashboard-bar-track { border-color: #6e7681; background: var(--gh-canvas); }
html[data-theme="dark"] .dashboard-bar-fill { background: var(--gh-accent); }
html[data-theme="dark"] .dashboard-load-row b,
html[data-theme="dark"] .dashboard-analysis-card > header > span { background: #1f6feb; }
html[data-theme="dark"] .dashboard-queue > footer a { color: var(--gh-accent-hover); border-color: var(--gh-border); }

html[data-theme="dark"] .load-dashboard,
html[data-theme="dark"] .load-detail-page,
html[data-theme="dark"] .collection-queue-page,
html[data-theme="dark"] .quote-dashboard,
html[data-theme="dark"] .shipment-index-page,
html[data-theme="dark"] .central-today-page {
    --load-ink: var(--gh-text);
    --load-muted: var(--gh-text-muted);
    --load-line: var(--gh-border);
    --load-soft: var(--gh-surface-raised);
    --collection-line: var(--gh-border);
    --collection-ink: var(--gh-text);
    --quote-line: var(--gh-border);
    --shipment-line: var(--gh-border);
    color: var(--gh-text);
}
html[data-theme="dark"] .load-overview-header,
html[data-theme="dark"] .load-metric-card,
html[data-theme="dark"] .load-filter-card,
html[data-theme="dark"] .load-routes,
html[data-theme="dark"] .load-create-panel,
html[data-theme="dark"] .load-current-card,
html[data-theme="dark"] .load-alerts,
html[data-theme="dark"] .load-detail-hero,
html[data-theme="dark"] .load-detail-progress,
html[data-theme="dark"] .load-finance-grid,
html[data-theme="dark"] .load-detail-main,
html[data-theme="dark"] .load-romaneio-card,
html[data-theme="dark"] .load-timeline-card,
html[data-theme="dark"] .load-quick-card,
html[data-theme="dark"] .stage-queue-filter,
html[data-theme="dark"] .stage-queue-board,
html[data-theme="dark"] .collection-metric-card,
html[data-theme="dark"] .collection-filter-card,
html[data-theme="dark"] .collection-list-card,
html[data-theme="dark"] .quote-metric-card,
html[data-theme="dark"] .quote-filter-card,
html[data-theme="dark"] .quote-list-card,
html[data-theme="dark"] .quote-status-tabs a,
html[data-theme="dark"] .central-today-metric,
html[data-theme="dark"] .central-action-card,
html[data-theme="dark"] .central-mini-queue,
html[data-theme="dark"] .central-now-card,
html[data-theme="dark"] .central-transit-card,
html[data-theme="dark"] .shipment-index-kpi,
html[data-theme="dark"] .shipment-filter-card,
html[data-theme="dark"] .shipment-index-list,
html[data-theme="dark"] .shipment-index-toolbar {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .load-route-card > summary:hover,
html[data-theme="dark"] .load-route-card[open] > summary,
html[data-theme="dark"] .load-ready-table thead th,
html[data-theme="dark"] .load-list-filters,
html[data-theme="dark"] .load-current-table thead th,
html[data-theme="dark"] .collection-queue-table th,
html[data-theme="dark"] .quote-table thead th,
html[data-theme="dark"] .shipment-index-table thead th { background: var(--gh-canvas); }
html[data-theme="dark"] .load-route-summary,
html[data-theme="dark"] .load-capacity-stats,
html[data-theme="dark"] .load-provider-suggestion,
html[data-theme="dark"] .load-open-vaga,
html[data-theme="dark"] .collection-filter-period,
html[data-theme="dark"] .collection-batch-bar,
html[data-theme="dark"] .central-today-date { background: var(--gh-surface-raised); border-color: var(--gh-border); }

html[data-theme="dark"] .alert-info { color: #a5d6ff; background: rgba(56,139,253,.12); border-color: rgba(56,139,253,.4); }
html[data-theme="dark"] .alert-warning { color: #e3b341; background: rgba(187,128,9,.15); border-color: rgba(210,153,34,.4); }
html[data-theme="dark"] .alert-danger { color: #ff7b72; background: rgba(248,81,73,.12); border-color: rgba(248,81,73,.4); }
html[data-theme="dark"] .alert-success { color: #56d364; background: rgba(46,160,67,.12); border-color: rgba(63,185,80,.4); }
html[data-theme="dark"] ::selection { color: var(--gh-text-strong); background: rgba(47,129,247,.45); }

/* Gestão de funcionários */
.employee-management-page {
    --employee-border: #d8e1ec;
    --employee-muted: #66758c;
    --employee-heading: #10213b;
    --employee-panel: #fff;
    --employee-soft: #f7f9fc;
    color: var(--employee-heading);
}
.employee-management-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1rem;
}
.employee-management-eyebrow { color: #0969da; font-size: .68rem; font-weight: 800; letter-spacing: .09em; }
.employee-management-heading h1 { margin: .15rem 0 .15rem; font-size: clamp(1.55rem, 2.2vw, 2.15rem); font-weight: 800; letter-spacing: -.035em; }
.employee-management-heading p { margin: 0; color: var(--employee-muted); }
.employee-period-area { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; flex-wrap: wrap; }
.employee-period-current,
.employee-period-tabs a,
.employee-custom-period {
    border: 1px solid var(--employee-border);
    background: var(--employee-panel);
    box-shadow: 0 4px 14px rgba(20,42,74,.05);
}
.employee-period-current { display: flex; align-items: center; gap: .5rem; min-height: 2.45rem; padding: .45rem .75rem; border-radius: .55rem; font-weight: 700; white-space: nowrap; }
.employee-period-current svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.employee-period-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.employee-period-tabs a { min-width: 4.3rem; padding: .58rem .8rem; border-radius: .5rem; color: #34435a; font-size: .8rem; font-weight: 700; text-align: center; text-decoration: none; }
.employee-period-tabs a:hover { border-color: #7eb8f5; color: #0969da; }
.employee-period-tabs a.active { color: #fff; background: #0969da; border-color: #0969da; box-shadow: 0 5px 14px rgba(9,105,218,.22); }
.employee-custom-period { display: flex; justify-content: flex-end; align-items: end; gap: .65rem; margin: -.25rem 0 1rem auto; padding: .75rem; border-radius: .65rem; }
.employee-custom-period label { color: var(--employee-muted); font-size: .7rem; font-weight: 750; }
.employee-custom-period .form-control { min-width: 9rem; margin-top: .25rem; }
.employee-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem; margin-bottom: .8rem; }
.employee-kpi { display: flex; gap: .7rem; min-width: 0; min-height: 6.25rem; padding: .85rem; border: 1px solid var(--employee-border); border-radius: .65rem; background: var(--employee-panel); box-shadow: 0 5px 18px rgba(20,42,74,.055); }
.employee-kpi-icon { display: grid; flex: 0 0 2.35rem; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: .6rem; color: #0969da; background: #ddf0ff; }
.employee-kpi-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.employee-kpi > div { display: flex; min-width: 0; flex-direction: column; }
.employee-kpi div > span { min-height: 2em; color: #34435a; font-size: .69rem; font-weight: 750; line-height: 1.15; }
.employee-kpi strong { margin-top: .08rem; color: var(--employee-heading); font-size: 1.45rem; line-height: 1.1; }
.employee-kpi small { margin-top: .22rem; overflow: hidden; color: var(--employee-muted); font-size: .62rem; text-overflow: ellipsis; }
.employee-kpi-cyan .employee-kpi-icon { color: #0a8d91; background: #d8f5f3; }
.employee-kpi-purple .employee-kpi-icon { color: #6f42c1; background: #ece5ff; }
.employee-kpi-green .employee-kpi-icon { color: #1a7f37; background: #dafbe1; }
.employee-kpi-mint .employee-kpi-icon { color: #16845b; background: #d9f7e8; }
.employee-kpi-orange .employee-kpi-icon { color: #bc5c00; background: #fff1df; }
.employee-management-layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(19rem, .95fr); gap: .8rem; align-items: start; }
.employee-management-main { display: grid; min-width: 0; gap: .8rem; }
.employee-analytics-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(17rem, 1fr); gap: .8rem; }
.employee-panel { min-width: 0; border: 1px solid var(--employee-border); border-radius: .7rem; background: var(--employee-panel); box-shadow: 0 5px 18px rgba(20,42,74,.05); }
.employee-panel > header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem .85rem; border-bottom: 1px solid var(--employee-border); }
.employee-panel h2 { margin: 0; color: var(--employee-heading); font-size: .95rem; font-weight: 800; }
.employee-panel header small { display: block; margin-top: .12rem; color: var(--employee-muted); font-size: .65rem; }
.employee-hourly-panel > header form { display: flex; gap: .35rem; }
.employee-hourly-panel > header .form-select { min-width: 9.5rem; }
.employee-hourly-chart { display: grid; grid-template-columns: repeat(24, minmax(.55rem, 1fr)); align-items: end; height: 12.5rem; padding: 2rem .8rem .65rem; border-bottom-left-radius: .7rem; border-bottom-right-radius: .7rem; background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #e7edf4 25%); }
.employee-hour-column { position: relative; display: flex; align-items: center; align-self: stretch; justify-content: flex-end; flex-direction: column; min-width: 0; }
.employee-hour-value { position: absolute; top: -.95rem; color: var(--employee-muted); font-size: .55rem; }
.employee-hour-bar { display: block; width: 68%; min-height: 2px; border-radius: .25rem .25rem 0 0; background: linear-gradient(180deg, #54aeff, #218bff); opacity: .82; transition: opacity .15s ease; }
.employee-hour-column:hover .employee-hour-bar { opacity: 1; }
.employee-hour-column small { display: block; height: 1rem; margin-top: .35rem; color: var(--employee-muted); font-size: .53rem; white-space: nowrap; }
.employee-distribution-panel > header { min-height: 3.8rem; }
.employee-distribution-body { display: grid; grid-template-columns: 8.3rem minmax(0, 1fr); align-items: center; gap: .9rem; min-height: 12.5rem; padding: 1rem; }
.employee-donut { display: grid; width: 8rem; height: 8rem; place-items: center; border-radius: 50%; }
.employee-donut > div { display: grid; width: 4.8rem; height: 4.8rem; place-content: center; border-radius: 50%; background: var(--employee-panel); text-align: center; }
.employee-donut strong { font-size: 1.25rem; }
.employee-donut span { color: var(--employee-muted); font-size: .65rem; }
.employee-donut-legend { display: grid; gap: .38rem; min-width: 0; }
.employee-donut-legend > div { display: grid; grid-template-columns: .55rem minmax(0, 1fr) auto; align-items: center; gap: .35rem; color: var(--employee-muted); font-size: .62rem; }
.employee-legend-color { width: .5rem; height: .5rem; border-radius: .15rem; }
.employee-donut-legend strong { color: #34435a; font-size: .64rem; white-space: nowrap; }
.employee-donut-legend strong small { color: var(--employee-muted); font-weight: 500; }
.employee-table-panel > header { border-bottom: 0; }
.employee-table-filters { display: grid; grid-template-columns: minmax(12rem, 2fr) minmax(8rem, 1fr) minmax(8rem, 1fr) auto; gap: .5rem; padding: 0 .85rem .75rem; }
.employee-table-panel .table-responsive { border-top: 1px solid var(--employee-border); }
.employee-table { width: 100%; border-collapse: collapse; font-size: .65rem; white-space: nowrap; }
.employee-table th { padding: .55rem .48rem; color: #526178; background: #f1f5f9; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.employee-table td { padding: .48rem; border-top: 1px solid #e7edf4; color: #34435a; text-align: center; }
.employee-table th:first-child,.employee-table td:first-child { text-align: left; }
.employee-table tbody tr:hover,.employee-table tbody tr.selected { background: #f4f9ff; }
.employee-table tbody tr.selected { box-shadow: inset 3px 0 #0969da; }
.employee-person { display: flex; align-items: center; gap: .48rem; min-width: 13rem; }
.employee-person > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.employee-person strong { max-width: 13rem; overflow: hidden; color: var(--employee-heading); text-overflow: ellipsis; }
.employee-person small { max-width: 13rem; overflow: hidden; color: var(--employee-muted); font-size: .57rem; text-overflow: ellipsis; }
.employee-avatar { display: grid; flex: 0 0 1.75rem; width: 1.75rem; height: 1.75rem; place-items: center; border-radius: 50%; color: #0755a3; background: #dbeafe; font-size: .62rem; font-weight: 850; }
.employee-avatar-large { flex-basis: 3.5rem; width: 3.5rem; height: 3.5rem; font-size: 1rem; }
.employee-status { display: inline-flex; align-items: center; gap: .25rem; padding: .22rem .42rem; border-radius: 999px; color: #116329; background: #dafbe1; font-size: .56rem; font-weight: 800; white-space: nowrap; }
.employee-status::before { width: .35rem; height: .35rem; border-radius: 50%; background: #1a7f37; content: ""; }
.employee-status.idle { color: #8a4600; background: #fff1df; }
.employee-status.idle::before { background: #bf6a02; }
.employee-status.inactive { color: #57606a; background: #eaeef2; }
.employee-status.inactive::before { background: #8c959f; }
.employee-last-activity { display: inline-flex; align-items: center; gap: .3rem; }
.employee-last-activity i { width: .38rem; height: .38rem; border-radius: 50%; background: #1a7f37; }
.employee-last-activity.muted { color: var(--employee-muted); }
.employee-last-activity.muted i { background: #8c959f; }
.employee-row-open { display: grid; width: 1.55rem; height: 1.55rem; place-items: center; border: 1px solid var(--employee-border); border-radius: .4rem; color: #0969da; font-size: 1rem; font-weight: 800; text-decoration: none; }
.employee-row-open:hover { color: #fff; background: #0969da; border-color: #0969da; }
.employee-table-panel > footer { padding: .6rem .85rem; color: var(--employee-muted); font-size: .62rem; }
.employee-empty { padding: 2.5rem 1rem !important; color: var(--employee-muted) !important; text-align: center !important; }
.employee-activity-panel { position: sticky; top: 5.25rem; overflow: hidden; }
.employee-profile-header { align-items: flex-start !important; }
.employee-profile-header > div { min-width: 0; flex: 1; }
.employee-profile-header h2 { overflow: hidden; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.employee-profile-header div > span,.employee-profile-header div > small { display: block; overflow: hidden; color: var(--employee-muted); font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.employee-profile-tabs { display: flex; justify-content: space-between; padding: .7rem .85rem 0; border-bottom: 1px solid var(--employee-border); color: var(--employee-muted); font-size: .65rem; }
.employee-profile-tabs strong { padding: 0 0 .62rem; color: #0969da; border-bottom: 2px solid #0969da; }
.employee-timeline-heading { display: flex; justify-content: space-between; gap: .5rem; padding: .75rem .85rem .5rem; }
.employee-timeline-heading h3 { margin: 0; font-size: .78rem; }
.employee-timeline-heading small,.employee-timeline-heading > span { color: var(--employee-muted); font-size: .58rem; }
.employee-timeline { max-height: 33rem; overflow-y: auto; padding: 0 .75rem .75rem; }
.employee-timeline-event { position: relative; display: grid; grid-template-columns: 2.25rem 1.25rem minmax(0, 1fr) auto; align-items: start; gap: .4rem; min-height: 3.5rem; padding: .45rem 0; }
.employee-timeline-event:not(:last-child)::after { position: absolute; top: 1.8rem; bottom: -.45rem; left: 3.05rem; width: 1px; background: var(--employee-border); content: ""; }
.employee-timeline-event time { padding-top: .25rem; color: var(--employee-muted); font-size: .58rem; text-align: right; }
.employee-event-icon { z-index: 1; display: grid; width: 1.25rem; height: 1.25rem; margin-top: .1rem; place-items: center; border: 3px solid #dbeafe; border-radius: 50%; background: #2f81f7; }
.employee-event-collections { border-color: #dafbe1; background: #2da44e; }
.employee-event-loads { border-color: #ece5ff; background: #8250df; }
.employee-event-deliveries { border-color: #fff1df; background: #fb8f44; }
.employee-event-quotes { border-color: #ffebe9; background: #d1242f; }
.employee-event-photos { border-color: #d8f5f3; background: #39c5cf; }
.employee-event-other { border-color: #eaeef2; background: #8c959f; }
.employee-timeline-event > div { display: flex; min-width: 0; flex-direction: column; }
.employee-timeline-event strong { color: var(--employee-heading); font-size: .67rem; }
.employee-timeline-event small { overflow: hidden; color: var(--employee-muted); font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
.employee-timeline-event > a { margin-top: .05rem; padding: .25rem .42rem; border: 1px solid var(--employee-border); border-radius: .35rem; color: #0969da; font-size: .56rem; text-decoration: none; white-space: nowrap; }
.employee-timeline-event > a:hover { background: #f4f9ff; }
.employee-activity-note { margin: 0 .75rem .75rem; padding: .6rem; border-radius: .45rem; color: var(--employee-muted); background: var(--employee-soft); font-size: .58rem; line-height: 1.45; }

@media (max-width: 1399.98px) {
    .employee-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .employee-management-layout { grid-template-columns: minmax(0, 1.8fr) minmax(18rem, .8fr); }
    .employee-analytics-grid { grid-template-columns: 1fr; }
    .employee-distribution-body { grid-template-columns: 8rem 1fr; }
}
@media (max-width: 1099.98px) {
    .employee-management-heading { align-items: flex-start; flex-direction: column; }
    .employee-period-area { justify-content: flex-start; }
    .employee-management-layout { grid-template-columns: 1fr; }
    .employee-activity-panel { position: static; }
    .employee-timeline { max-height: none; }
}
@media (max-width: 767.98px) {
    .employee-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .employee-period-current { width: 100%; }
    .employee-period-tabs { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); }
    .employee-period-tabs a { min-width: 0; }
    .employee-custom-period { align-items: stretch; flex-direction: column; }
    .employee-custom-period .form-control { width: 100%; }
    .employee-table-filters { grid-template-columns: 1fr; }
    .employee-hourly-panel > header { align-items: stretch; flex-direction: column; }
    .employee-hourly-panel > header form { width: 100%; }
    .employee-hourly-panel > header .form-select { min-width: 0; flex: 1; }
    .employee-distribution-body { grid-template-columns: 1fr; justify-items: center; }
    .employee-donut-legend { width: 100%; }
}
@media (max-width: 459.98px) {
    .employee-kpi-grid { grid-template-columns: 1fr; }
    .employee-period-tabs { grid-template-columns: repeat(2, 1fr); }
    .employee-timeline-event { grid-template-columns: 2rem 1.15rem minmax(0, 1fr); }
    .employee-timeline-event > a { grid-column: 3; justify-self: start; }
    .employee-timeline-event:not(:last-child)::after { left: 2.73rem; }
}

html[data-theme="dark"] .employee-management-page {
    --employee-border: var(--gh-border);
    --employee-muted: var(--gh-text-muted);
    --employee-heading: var(--gh-text-strong);
    --employee-panel: var(--gh-canvas-subtle);
    --employee-soft: var(--gh-canvas);
}
html[data-theme="dark"] .employee-period-current,
html[data-theme="dark"] .employee-period-tabs a,
html[data-theme="dark"] .employee-custom-period,
html[data-theme="dark"] .employee-kpi,
html[data-theme="dark"] .employee-panel { box-shadow: none; }
html[data-theme="dark"] .employee-period-tabs a { color: var(--gh-text); }
html[data-theme="dark"] .employee-period-tabs a:hover { color: var(--gh-accent-hover); border-color: var(--gh-accent); }
html[data-theme="dark"] .employee-period-tabs a.active { color: #fff; background: #1f6feb; border-color: #388bfd; }
html[data-theme="dark"] .employee-kpi div > span,
html[data-theme="dark"] .employee-table td,
html[data-theme="dark"] .employee-donut-legend strong { color: var(--gh-text); }
html[data-theme="dark"] .employee-hourly-chart { background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), var(--gh-border-muted) 25%); }
html[data-theme="dark"] .employee-table th { color: var(--gh-text-muted); background: var(--gh-canvas); }
html[data-theme="dark"] .employee-table td { border-color: var(--gh-border-muted); }
html[data-theme="dark"] .employee-table tbody tr:hover,
html[data-theme="dark"] .employee-table tbody tr.selected { background: rgba(56,139,253,.09); }
html[data-theme="dark"] .employee-person strong,
html[data-theme="dark"] .employee-timeline-event strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .employee-timeline-event > a:hover { background: rgba(56,139,253,.12); }
html[data-theme="dark"] .employee-status.active { color: #56d364; background: rgba(46,160,67,.15); }
html[data-theme="dark"] .employee-status.idle { color: #e3b341; background: rgba(187,128,9,.16); }
html[data-theme="dark"] .employee-status.inactive { color: var(--gh-text-muted); background: var(--gh-surface-raised); }

/* Dark mode refinements for charts, freight details and operational queues. */
.dashboard-donut-track { stroke: #e7edf4; }
.dashboard-donut-segment { stroke: var(--dashboard-segment-color); }
html[data-theme="dark"] .dashboard-donut-track { stroke: var(--gh-border) !important; }
html[data-theme="dark"] .dashboard-donut-segment { stroke: var(--dashboard-segment-color) !important; }
html[data-theme="dark"] .dashboard-donut-figure svg { filter: drop-shadow(0 0 .2rem rgba(88,166,255,.12)); }

html[data-theme="dark"] .shipment-summary--hero {
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .shipment-summary-item + .shipment-summary-item { border-color: var(--gh-border); }
html[data-theme="dark"] .shipment-summary-vehicle-thumb { color: var(--gh-accent-hover); background: var(--gh-accent-muted); border-color: var(--gh-border); }
html[data-theme="dark"] .shipment-summary-icon,
html[data-theme="dark"] .shipment-overview-icon,
html[data-theme="dark"] .shipment-document-icon,
html[data-theme="dark"] .quote-editor-section__icon {
    color: var(--gh-accent-hover);
    background: var(--gh-accent-muted);
}
html[data-theme="dark"] .shipment-summary-item.is-pending { background: rgba(187,128,9,.12); }
html[data-theme="dark"] .shipment-summary-item.is-pending .detail-value { color: #e3b341; }
html[data-theme="dark"] .shipment-detail-heading [data-current-status] {
    color: var(--gh-text) !important;
    background: var(--gh-surface-raised) !important;
    border-color: #484f58 !important;
}
html[data-theme="dark"] .shipment-commercial-editor,
html[data-theme="dark"] .shipment-flow-card { border-color: var(--gh-border); box-shadow: none; }
html[data-theme="dark"] .shipment-commercial-editor > .card-header,
html[data-theme="dark"] .shipment-flow-card > .card-header {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle) !important;
    border-color: var(--gh-border);
}
html[data-theme="dark"] .shipment-overview-title h2,
html[data-theme="dark"] .shipment-flow-card > .card-header h2 { color: var(--gh-text-strong); }
html[data-theme="dark"] .shipment-overview-title p,
html[data-theme="dark"] .shipment-flow-card > .card-header p { color: var(--gh-text-muted); }
html[data-theme="dark"] .shipment-date-control,
html[data-theme="dark"] .shipment-date-control.is-readonly,
html[data-theme="dark"] .shipment-date-control.is-awaiting {
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .shipment-date-control.is-editable {
    background: var(--gh-canvas);
    border-color: var(--gh-accent);
    box-shadow: inset 3px 0 var(--gh-accent);
}
html[data-theme="dark"] .shipment-date-label { color: #b1bac4; }
html[data-theme="dark"] .shipment-date-readonly,
html[data-theme="dark"] .shipment-date-control .form-control {
    color: var(--gh-text-strong);
    background: var(--gh-canvas-inset);
    border-color: #484f58;
}
html[data-theme="dark"] .shipment-date-control-icon { color: var(--gh-accent-hover); background: var(--gh-surface-raised); }
html[data-theme="dark"] .shipment-date-control > p { color: var(--gh-text-muted); }

html[data-theme="dark"] .quote-editor { --quote-editor-line: var(--gh-border); color: var(--gh-text); }
html[data-theme="dark"] .quote-editor-section > .card-header,
html[data-theme="dark"] .quote-editor-section > .card-body { background: var(--gh-canvas-subtle); }
html[data-theme="dark"] .quote-editor-section__state { color: #b1bac4; background: var(--gh-surface-raised); }
html[data-theme="dark"] .quote-editor .quote-flow-heading { border-color: var(--gh-border); }
html[data-theme="dark"] .quote-editor .quote-flow-heading .form-label { color: var(--gh-text-strong); }
html[data-theme="dark"] .quote-editor .quote-flow-summary {
    color: #a5d6ff;
    background: var(--gh-accent-muted);
    border-color: rgba(56,139,253,.4);
}
html[data-theme="dark"] .quote-flow-endpoint::after,
html[data-theme="dark"] .quote-editor .quote-flow-grid::before { background: #484f58; }
html[data-theme="dark"] .quote-flow-endpoint > span {
    color: var(--gh-accent-hover);
    background: var(--gh-accent-muted);
    box-shadow: 0 0 0 .25rem var(--gh-canvas-subtle);
}
html[data-theme="dark"] .quote-flow-endpoint__control > label,
html[data-theme="dark"] .quote-flow-endpoint small { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-flow-endpoint strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .quote-editor .quote-flow-card {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: #484f58;
    box-shadow: none;
}
html[data-theme="dark"] .quote-editor .quote-flow-card:hover,
html[data-theme="dark"] .quote-editor .quote-flow-card:focus-within {
    border-color: #6e7681;
    box-shadow: 0 0 0 1px rgba(110,118,129,.2);
}
html[data-theme="dark"] .quote-editor .quote-flow-card::before { background: var(--gh-canvas-subtle); }
html[data-theme="dark"] .quote-editor .quote-flow-card__header { color: var(--gh-text); border-color: #484f58; }
html[data-theme="dark"] .quote-editor .quote-flow-card--coleta .quote-flow-card__header {
    background: linear-gradient(90deg,rgba(210,153,34,.22),rgba(210,153,34,.07));
    box-shadow: inset 3px 0 var(--gh-warning);
}
html[data-theme="dark"] .quote-editor .quote-flow-card--vaga .quote-flow-card__header {
    background: linear-gradient(90deg,rgba(56,139,253,.22),rgba(56,139,253,.07));
    box-shadow: inset 3px 0 var(--gh-accent);
}
html[data-theme="dark"] .quote-editor .quote-flow-card--entrega .quote-flow-card__header {
    background: linear-gradient(90deg,rgba(46,160,67,.22),rgba(46,160,67,.07));
    box-shadow: inset 3px 0 var(--gh-success);
}
html[data-theme="dark"] .quote-editor .quote-flow-card__identity strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .quote-flow-card__type-icon {
    color: var(--gh-accent-hover);
    background: var(--gh-accent-muted);
}
html[data-theme="dark"] .quote-flow-card--coleta .quote-flow-card__type-icon,
html[data-theme="dark"] .quote-flow-card--entrega .quote-flow-card__type-icon {
    color: #56d364;
    background: rgba(46,160,67,.15);
}
html[data-theme="dark"] .quote-editor .quote-flow-card__identity small,
html[data-theme="dark"] .quote-editor .quote-flow-card__subtype,
html[data-theme="dark"] .quote-editor .quote-flow-card__drag,
html[data-theme="dark"] .quote-editor .quote-flow-card__actions button { color: #b1bac4; }
html[data-theme="dark"] .quote-editor .quote-flow-card__provider-row > label,
html[data-theme="dark"] .quote-editor .quote-flow-card__cost > label,
html[data-theme="dark"] .quote-editor .quote-flow-card__address > label,
html[data-theme="dark"] .quote-editor .quote-flow-card__route-label { color: #b1bac4; }
html[data-theme="dark"] .quote-editor .quote-flow-card__address .form-control,
html[data-theme="dark"] .quote-editor .quote-flow-card__body .form-control,
html[data-theme="dark"] .quote-editor .quote-flow-card__body .form-select,
html[data-theme="dark"] .quote-editor .quote-flow-card__body .input-group-text,
html[data-theme="dark"] .quote-editor .quote-flow-card__body .search-select-input {
    color: var(--gh-text);
    background-color: var(--gh-canvas-inset);
    border-color: #484f58;
}
html[data-theme="dark"] .quote-editor .quote-flow-card__cost .form-control { color: #56d364; }
html[data-theme="dark"] .quote-editor .quote-flow-card__hint { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-editor .quote-flow-card__actions button:hover:not(:disabled),
html[data-theme="dark"] .quote-editor .quote-flow-card__actions button:focus-visible,
html[data-theme="dark"] .quote-editor .quote-flow-card__drag:hover,
html[data-theme="dark"] .quote-editor .quote-flow-card__drag:focus-visible {
    color: var(--gh-text-strong);
    background: var(--gh-surface-raised);
    border-color: #6e7681;
}
html[data-theme="dark"] .quote-editor .quote-flow-card__route-proposal { color: #e3b341; background: rgba(187,128,9,.15); border-color: rgba(210,153,34,.4); }
html[data-theme="dark"] .quote-editor .quote-flow-card__route-proposal.is-error { color: #ff7b72; background: rgba(248,81,73,.12); border-color: rgba(248,81,73,.4); }
html[data-theme="dark"] .quote-editor .quote-flow-card__route-proposal.is-success { color: #56d364; background: rgba(46,160,67,.12); border-color: rgba(63,185,80,.4); }
html[data-theme="dark"] .operational-leg-preview { color: #b1bac4; background: var(--gh-canvas); border-color: var(--gh-border); }
html[data-theme="dark"] .operational-leg-preview.is-valid { color: #56d364; background: rgba(46,160,67,.12); border-color: rgba(63,185,80,.4); }

html[data-theme="dark"] .report-tab {
    color: #c9d1d9;
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .report-tab small { color: var(--gh-text-muted); }
html[data-theme="dark"] .report-tab:hover { color: var(--gh-text-strong); background: var(--gh-surface-raised); border-color: #6e7681; box-shadow: none; }
html[data-theme="dark"] .report-tab.active { color: #fff; background: #1f6feb; border-color: #388bfd; box-shadow: none; }
html[data-theme="dark"] .report-tab.active small { color: #dbeafe; }
html[data-theme="dark"] .collection-metric-card strong,
html[data-theme="dark"] .collection-list-card > header h2,
html[data-theme="dark"] .collection-queue-table td > strong,
html[data-theme="dark"] .collection-vehicle-cell strong,
html[data-theme="dark"] .collection-vehicle-cell b,
html[data-theme="dark"] .collection-approval-date-column > strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .collection-metric-card small,
html[data-theme="dark"] .collection-queue-table td > small,
html[data-theme="dark"] .operation-vehicle-identity small,
html[data-theme="dark"] .collection-vehicle-cell small { color: var(--gh-text-muted); }
html[data-theme="dark"] .collection-filter-grid label > span,
html[data-theme="dark"] .collection-filter-period legend { color: #b1bac4; }
html[data-theme="dark"] .collection-metric-card > i { color: #6e7681; }
html[data-theme="dark"] .collection-metric-card.tone-blue .collection-metric-icon { color: var(--gh-accent-hover); background: var(--gh-accent-muted); }
html[data-theme="dark"] .collection-metric-card.tone-green .collection-metric-icon { color: #56d364; background: rgba(46,160,67,.15); }
html[data-theme="dark"] .collection-metric-card.tone-purple .collection-metric-icon { color: #bc8cff; background: rgba(137,87,229,.18); }
html[data-theme="dark"] .collection-metric-card.tone-amber .collection-metric-icon { color: #e3b341; background: rgba(187,128,9,.17); }
html[data-theme="dark"] .collection-metric-card.tone-red .collection-metric-icon { color: #ff7b72; background: rgba(248,81,73,.15); }
html[data-theme="dark"] .collection-metric-card.tone-red.is-active { border-color: rgba(248,81,73,.55); box-shadow: none; }
html[data-theme="dark"] .collection-filter-period,
html[data-theme="dark"] .collection-filter-grid .collection-filter-date { background: var(--gh-canvas); border-color: var(--gh-border); }
html[data-theme="dark"] .collection-filter-grid .collection-filter-date > span { color: #a5d6ff; background: var(--gh-accent-muted); border-color: var(--gh-border); }
html[data-theme="dark"] .collection-queue-table th { color: var(--gh-text-muted); background: var(--gh-canvas); }
html[data-theme="dark"] .collection-queue-table th small { color: #6e7681; }
html[data-theme="dark"] .operation-vehicle-identity a { color: var(--gh-accent-hover); }
html[data-theme="dark"] .operation-vehicle-identity a:hover,
html[data-theme="dark"] .operation-vehicle-identity a:focus-visible { color: #79c0ff; }
html[data-theme="dark"] .operation-vehicle-plate,
html[data-theme="dark"] .collection-inline-money { color: #c9d1d9; }
html[data-theme="dark"] .operation-route-acronym { color: #a5d6ff; background: var(--gh-accent-muted); border-color: rgba(56,139,253,.4); }
html[data-theme="dark"] .operation-responsible-input,
html[data-theme="dark"] .collection-inline-address {
    color: #c9d1d9;
    background: var(--gh-canvas);
    border-color: #484f58;
}
html[data-theme="dark"] .operation-responsible-input:focus,
html[data-theme="dark"] .collection-inline-address:focus,
html[data-theme="dark"] .collection-inline-datetime:focus,
html[data-theme="dark"] .collection-inline-money input:focus {
    color: var(--gh-text-strong);
    background: var(--gh-canvas-inset);
    border-color: var(--gh-accent);
    box-shadow: 0 0 0 .2rem var(--gh-accent-muted);
}
html[data-theme="dark"] .collection-inline-datetime { color: #ff7b72; }
html[data-theme="dark"] .collection-forecast-cell:not(.is-overdue):not(.is-today) > small { color: var(--gh-text-muted); }
html[data-theme="dark"] .collection-batch-bar { color: var(--gh-text); background: var(--gh-surface-raised); border-color: var(--gh-border); }

html[data-theme="dark"] .shipment-section-tabs,
html[data-theme="dark"] .shipment-tab-content {
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .shipment-section-tab { color: var(--gh-text-muted); }
html[data-theme="dark"] .shipment-section-tab:hover { color: var(--gh-accent-hover); border-bottom-color: #6e7681; }
html[data-theme="dark"] .shipment-section-tab.active { color: var(--gh-accent-hover); border-bottom-color: var(--gh-accent); }
html[data-theme="dark"] .shipment-section-tab.active .badge {
    color: #a5d6ff !important;
    background: var(--gh-accent-muted) !important;
    border-color: rgba(56,139,253,.4) !important;
}
html[data-theme="dark"] .shipment-overview-card,
html[data-theme="dark"] .shipment-document-card,
html[data-theme="dark"] .shipment-notes-card,
html[data-theme="dark"] .shipment-tab-panel,
html[data-theme="dark"] .shipment-operation-panel,
html[data-theme="dark"] .shipment-movement-entry,
html[data-theme="dark"] .shipment-audit-details {
    color: var(--gh-text);
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .shipment-tab-panel > .card-header,
html[data-theme="dark"] .shipment-overview-card > .card-header,
html[data-theme="dark"] .shipment-notes-card > .card-header {
    background: var(--gh-canvas-subtle) !important;
    border-color: var(--gh-border);
}
html[data-theme="dark"] .shipment-overview-grid dt,
html[data-theme="dark"] .shipment-financial-grid dt { color: var(--gh-text-muted); }
html[data-theme="dark"] .shipment-overview-edit-grid > label > span { color: var(--gh-text-muted); }
html[data-theme="dark"] .shipment-overview-grid dd,
html[data-theme="dark"] .shipment-financial-grid dd { color: var(--gh-text); }
html[data-theme="dark"] .shipment-financial-grid dd.is-pending { color: #e3b341; }
html[data-theme="dark"] .shipment-financial-grid dd.is-expense { color: #ff7b72; }
html[data-theme="dark"] .shipment-financial-grid__result { color: #56d364; background: rgba(46,160,67,.12); }
html[data-theme="dark"] .shipment-financial-grid__result.is-negative { color: #ff7b72; background: rgba(248,81,73,.12); }
html[data-theme="dark"] .shipment-operation-panel-body,
html[data-theme="dark"] .shipment-movement-entry-body { border-color: var(--gh-border); }

/* Shipment operational flow: compact GitHub-style neutral workspace. */
html[data-theme="dark"] .shipment-flow-card > .card-body {
    padding: .9rem;
    background: var(--gh-canvas) !important;
}
html[data-theme="dark"] .shipment-flow-card .shipment-create-flow {
    margin: 0;
    padding: 0;
    border: 0;
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-heading {
    margin-bottom: .75rem;
    padding: .7rem .8rem;
    background: var(--gh-canvas-subtle);
    border: 1px solid var(--gh-border);
    border-radius: .55rem;
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-heading__title-row { gap: .45rem; }
html[data-theme="dark"] .shipment-flow-card .quote-flow-heading .btn {
    color: #c9d1d9;
    background: var(--gh-surface-raised);
    border-color: #484f58;
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-heading .btn:hover,
html[data-theme="dark"] .shipment-flow-card .quote-flow-heading .btn:focus-visible {
    color: var(--gh-text-strong);
    background: #30363d;
    border-color: #8b949e;
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-add-actions .btn {
    color: #fff;
    background: #1f6feb;
    border-color: #1f6feb;
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-add-actions .btn:hover,
html[data-theme="dark"] .shipment-flow-card .quote-flow-add-actions .btn:focus-visible {
    color: #fff;
    background: #388bfd;
    border-color: #388bfd;
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-summary {
    color: #b1bac4;
    background: var(--gh-surface-raised);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-endpoint {
    min-height: 2.85rem;
    margin-left: .2rem;
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-endpoint > span {
    width: 1.9rem;
    height: 1.9rem;
    flex-basis: 1.9rem;
    color: var(--gh-accent-hover);
    background: var(--gh-surface-raised);
    border: 1px solid #484f58;
    box-shadow: 0 0 0 .22rem var(--gh-canvas);
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-endpoint::after {
    top: 2.2rem;
    left: .93rem;
    background: var(--gh-border);
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-endpoint__control { flex-basis: 31rem; width: min(31rem,calc(100% - 2.55rem)); }
html[data-theme="dark"] .shipment-flow-card .quote-flow-grid {
    gap: .55rem;
    margin-left: 2.7rem;
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-grid::before {
    left: -1.57rem;
    width: 1px;
    background: var(--gh-border);
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-card {
    overflow: hidden;
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    border-radius: .55rem;
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-card.has-open-search-select { overflow: visible; }
html[data-theme="dark"] .shipment-flow-card .quote-flow-card:hover,
html[data-theme="dark"] .shipment-flow-card .quote-flow-card:focus-within {
    border-color: #6e7681;
    box-shadow: 0 0 0 1px rgba(110,118,129,.18);
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-card::before {
    left: -1.92rem;
    width: .58rem;
    height: .58rem;
    background: var(--gh-canvas);
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__header {
    color: var(--gh-text);
    background: var(--gh-surface-raised) !important;
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-card--coleta .quote-flow-card__header { box-shadow: inset 4px 0 var(--gh-warning); }
html[data-theme="dark"] .shipment-flow-card .quote-flow-card--vaga .quote-flow-card__header { box-shadow: inset 4px 0 var(--gh-accent); }
html[data-theme="dark"] .shipment-flow-card .quote-flow-card--entrega .quote-flow-card__header { box-shadow: inset 4px 0 var(--gh-success); }
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__body { background: var(--gh-canvas-subtle); }
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__step {
    width: 1.35rem;
    height: 1.35rem;
    color: #c9d1d9;
    background: #30363d;
    border-radius: 50%;
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-card--coleta .quote-flow-card__step { color: #e3b341; background: rgba(187,128,9,.18); }
html[data-theme="dark"] .shipment-flow-card .quote-flow-card--vaga .quote-flow-card__step { color: #79c0ff; background: rgba(56,139,253,.18); }
html[data-theme="dark"] .shipment-flow-card .quote-flow-card--entrega .quote-flow-card__step { color: #56d364; background: rgba(46,160,67,.18); }
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__type-icon {
    width: 2rem;
    height: 2rem;
    flex-basis: 2rem;
    border: 1px solid transparent;
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-card--coleta .quote-flow-card__type-icon { color: #e3b341; background: rgba(187,128,9,.14); border-color: rgba(210,153,34,.28); }
html[data-theme="dark"] .shipment-flow-card .quote-flow-card--vaga .quote-flow-card__type-icon { color: #79c0ff; background: rgba(56,139,253,.14); border-color: rgba(56,139,253,.28); }
html[data-theme="dark"] .shipment-flow-card .quote-flow-card--entrega .quote-flow-card__type-icon { color: #56d364; background: rgba(46,160,67,.14); border-color: rgba(63,185,80,.28); }
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__actions {
    background: transparent;
    border: 0;
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__body .form-control,
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__body .form-select,
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__body .input-group-text,
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__body .search-select-input,
html[data-theme="dark"] .shipment-flow-card .quote-flow-endpoint .search-select-input {
    color: var(--gh-text);
    background-color: var(--gh-canvas);
    border-color: #484f58;
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__body .form-control:hover,
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__body .form-select:hover,
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__body .search-select-input:hover,
html[data-theme="dark"] .shipment-flow-card .quote-flow-endpoint .search-select-input:hover { border-color: #6e7681; }
html[data-theme="dark"] .shipment-flow-card .shipment-flow-expenses {
    margin-top: .8rem;
    padding: .75rem;
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .shipment-flow-card .shipment-flow-expenses__heading h3 { color: var(--gh-text-strong); }
html[data-theme="dark"] .shipment-flow-card .shipment-flow-expenses__heading p { color: var(--gh-text-muted); }
html[data-theme="dark"] .shipment-flow-card .shipment-flow-expenses__empty {
    color: var(--gh-text-muted);
    background: var(--gh-canvas);
    border-color: #484f58;
}

@media (min-width: 768px) {
    html[data-theme="dark"] .shipment-flow-card .quote-flow-card {
        grid-template-columns: minmax(11rem,.58fr) minmax(0,3.42fr);
    }
}

/* System-wide dark surfaces: keep every operational screen on the same GitHub-like scale. */
html[data-theme="dark"] {
    --bs-emphasis-color: var(--gh-text-strong);
    --bs-emphasis-color-rgb: 240, 246, 252;
    --bs-tertiary-color: var(--gh-text-muted);
    --bs-tertiary-color-rgb: 139, 148, 158;
    --bs-primary-bg-subtle: var(--gh-accent-muted);
    --bs-secondary-bg-subtle: var(--gh-surface-raised);
    --bs-success-bg-subtle: rgba(46,160,67,.15);
    --bs-warning-bg-subtle: rgba(187,128,9,.16);
    --bs-danger-bg-subtle: rgba(248,81,73,.14);
    color-scheme: dark;
}

html[data-theme="dark"] :where(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6) {
    color: var(--gh-text-strong);
}

html[data-theme="dark"] :where(hr,.dropdown-divider) {
    border-color: var(--gh-border);
    opacity: 1;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .metric-card {
    background-image: none;
    box-shadow: 0 1px 0 rgba(255,255,255,.025);
}

html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
    border-color: var(--gh-border);
}

html[data-theme="dark"] .table-light {
    --bs-table-color: var(--gh-text-muted);
    --bs-table-bg: var(--gh-canvas-subtle);
    --bs-table-border-color: var(--gh-border);
}

html[data-theme="dark"] .text-dark { color: var(--gh-text-strong) !important; }
html[data-theme="dark"] .alert-light {
    color: var(--gh-text);
    background: var(--gh-surface-raised);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .badge.text-bg-info { color: #a5d6ff !important; background: rgba(56,139,253,.16) !important; }
html[data-theme="dark"] .badge.text-bg-warning { color: #e3b341 !important; background: rgba(187,128,9,.17) !important; }
html[data-theme="dark"] .badge.text-bg-success { color: #56d364 !important; background: rgba(46,160,67,.16) !important; }
html[data-theme="dark"] .badge.text-bg-danger { color: #ff7b72 !important; background: rgba(248,81,73,.16) !important; }
html[data-theme="dark"] .badge.text-bg-secondary { color: #c9d1d9 !important; background: #30363d !important; }

html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .accordion-item,
html[data-theme="dark"] .accordion-button,
html[data-theme="dark"] .nav-tabs .nav-link,
html[data-theme="dark"] .popover {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .accordion-button:not(.collapsed),
html[data-theme="dark"] .nav-tabs .nav-link.active,
html[data-theme="dark"] .nav-tabs .nav-link:hover {
    color: var(--gh-text-strong);
    background: var(--gh-surface-raised);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .accordion-button::after { filter: invert(1) grayscale(1); }

html[data-theme="dark"] .form-control[type="file"]::file-selector-button {
    color: var(--gh-text);
    background: var(--gh-surface-raised);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .form-control[type="file"]:hover::file-selector-button { background: #30363d; }
html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--gh-text);
    box-shadow: 0 0 0 1000px var(--gh-canvas) inset;
    caret-color: var(--gh-text);
}

html[data-theme="dark"] .invalid-feedback { color: #ff7b72; }
html[data-theme="dark"] .valid-feedback { color: #56d364; }
html[data-theme="dark"] .page-memory-recovery { color: var(--gh-text-muted); }
html[data-theme="dark"] .page-memory-file-reminder { color: #e3b662; }

/* Quote and freight editors: readable hierarchy instead of dark-on-dark legacy colors. */
html[data-theme="dark"] .quote-editor-header p,
html[data-theme="dark"] .quote-editor-breadcrumb { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-editor-breadcrumb a { color: var(--gh-accent-hover); }
html[data-theme="dark"] .quote-editor-breadcrumb strong { color: var(--gh-text); }

html[data-theme="dark"] .quote-editor-steps {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .quote-editor-steps button { color: #b1bac4; }
html[data-theme="dark"] .quote-editor-steps button:not(:last-child)::after {
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .quote-editor-steps button > span { color: #b1bac4; background: var(--gh-surface-raised); }
html[data-theme="dark"] .quote-editor-steps button small { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-editor-steps button.active,
html[data-theme="dark"] .quote-editor-steps button.active small { color: var(--gh-accent-hover); }
html[data-theme="dark"] .quote-editor-steps button.active > span { color: #fff; background: var(--gh-accent); box-shadow: none; }

html[data-theme="dark"] .quote-editor-section {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .quote-editor-section > .card-header {
    background: var(--gh-canvas-subtle) !important;
    border-color: var(--gh-border);
}
html[data-theme="dark"] .quote-editor-section > .card-body { background: var(--gh-canvas); }
html[data-theme="dark"] .quote-editor-section > .card-header h2 { color: var(--gh-text-strong); }
html[data-theme="dark"] .quote-editor-section > .card-header p { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-editor-section__icon { color: var(--gh-accent-hover); background: var(--gh-accent-muted); }
html[data-theme="dark"] .quote-editor-section__state { color: #b1bac4; background: var(--gh-surface-raised); }
html[data-theme="dark"] .quote-editor-section__state.is-complete { color: #56d364; background: rgba(46,160,67,.15); }
html[data-theme="dark"] .quote-editor-section__toggle { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-editor-section__toggle:hover { color: var(--gh-accent-hover); background: var(--gh-surface-raised); }
html[data-theme="dark"] .quote-editor-section__toggle.is-edit-action,
html[data-theme="dark"] .quote-editor-summary__section-title button {
    color: var(--gh-accent-hover);
    background: var(--gh-accent-muted);
    border-color: rgba(56,139,253,.4);
}
html[data-theme="dark"] .quote-editor-section .form-label { color: #b1bac4; }

html[data-theme="dark"] .quote-editor-secondary-fields {
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .quote-editor-secondary-fields > summary { color: var(--gh-text); }
html[data-theme="dark"] .quote-editor-secondary-fields > summary small { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-editor-secondary-fields > summary::before { color: var(--gh-accent-hover); background: var(--gh-accent-muted); }

html[data-theme="dark"] .quote-editor-summary {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: var(--ce-shadow-sm);
}
html[data-theme="dark"] .quote-editor-summary > header,
html[data-theme="dark"] .quote-editor-summary > footer,
html[data-theme="dark"] .quote-editor-summary__body > section { border-color: var(--gh-border); }
html[data-theme="dark"] .quote-editor-summary > header,
html[data-theme="dark"] .quote-editor-summary > footer { background: var(--gh-canvas-subtle); }
html[data-theme="dark"] .quote-editor-summary__body { background: var(--gh-canvas); }
html[data-theme="dark"] .quote-editor-summary h2,
html[data-theme="dark"] .quote-editor-summary h3,
html[data-theme="dark"] .quote-editor-summary h4,
html[data-theme="dark"] .quote-editor-summary section > strong,
html[data-theme="dark"] .quote-summary-stage b,
html[data-theme="dark"] .quote-summary-stage > strong,
html[data-theme="dark"] .quote-summary-values > div b,
html[data-theme="dark"] .quote-summary-total strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .quote-editor-summary section > small,
html[data-theme="dark"] .quote-summary-stage small,
html[data-theme="dark"] .quote-summary-values > div { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-summary-values .quote-summary-freight { color: #56d364; }
html[data-theme="dark"] .quote-summary-total { border-color: var(--gh-border); }
html[data-theme="dark"] .quote-editor-summary__status { color: #e3b341; background: rgba(187,128,9,.16); }
html[data-theme="dark"] .quote-editor-summary__status i { background: var(--gh-warning); }
html[data-theme="dark"] .quote-editor-summary__status.is-complete { color: #56d364; background: rgba(46,160,67,.15); }
html[data-theme="dark"] .quote-summary-profit {
    color: #56d364 !important;
    background: rgba(46,160,67,.13);
    border: 1px solid rgba(63,185,80,.24);
}
html[data-theme="dark"] .quote-summary-profit > strong,
html[data-theme="dark"] .quote-summary-profit > small { color: #56d364; }
html[data-theme="dark"] .quote-summary-profit.is-negative { color: #ff7b72 !important; background: rgba(248,81,73,.12); border-color: rgba(248,81,73,.28); }
html[data-theme="dark"] .quote-summary-profit.is-negative > strong,
html[data-theme="dark"] .quote-summary-profit.is-negative > small { color: #ff7b72; }

html[data-theme="dark"] .quote-rate-suggestion {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .quote-rate-suggestion > span,
html[data-theme="dark"] .quote-rate-suggestion__options { background: var(--gh-canvas); border-color: var(--gh-border); }
html[data-theme="dark"] .quote-rate-suggestion > div strong { color: var(--gh-text-strong); }

/* Operational flow keeps the three stages identifiable without luminous blocks. */
html[data-theme="dark"] .quote-editor .quote-flow-card {
    background: var(--gh-canvas-subtle);
    border-color: #484f58;
    box-shadow: none;
}
html[data-theme="dark"] .quote-editor .quote-flow-card__body { background: var(--gh-canvas-subtle); }
html[data-theme="dark"] .quote-editor .quote-flow-card::before { background: var(--gh-canvas); }
html[data-theme="dark"] .quote-editor .quote-flow-card--coleta .quote-flow-card__header { background: rgba(187,128,9,.13) !important; }
html[data-theme="dark"] .quote-editor .quote-flow-card--vaga .quote-flow-card__header { background: rgba(56,139,253,.13) !important; }
html[data-theme="dark"] .quote-editor .quote-flow-card--entrega .quote-flow-card__header { background: rgba(46,160,67,.13) !important; }
html[data-theme="dark"] .quote-editor .quote-flow-card__actions { background: transparent; border-color: transparent; }
html[data-theme="dark"] .quote-editor .quote-flow-card--withdrawal .quote-flow-card__cost .input-group-text,
html[data-theme="dark"] .quote-editor .quote-flow-card--withdrawal .quote-flow-card__cost .form-control,
html[data-theme="dark"] .quote-editor .quote-flow-card--patio-withdrawal .search-select.is-disabled .search-select-input {
    color: #56d364;
    background: var(--gh-canvas);
    border-color: #484f58;
}

/* Route catalog and route editor. */
html[data-theme="dark"] .routes-catalog-page { color: var(--gh-text); }
html[data-theme="dark"] .routes-page-title__icon { color: var(--gh-text-strong); }
html[data-theme="dark"] .route-group-card {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .route-group-card:hover { color: var(--gh-accent-hover); background: var(--gh-surface-raised); border-color: #6e7681; box-shadow: none; }
html[data-theme="dark"] .route-group-card.active { background: var(--gh-accent-muted); border-color: var(--gh-accent); }
html[data-theme="dark"] .route-count-pill { color: #a5d6ff; background: var(--gh-accent-muted); }
html[data-theme="dark"] .route-lookup-card,
html[data-theme="dark"] .route-list-card,
html[data-theme="dark"] .route-workspace-section,
html[data-theme="dark"] .route-map-panel,
html[data-theme="dark"] .route-create-modal-dialog {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border) !important;
    box-shadow: none;
}
html[data-theme="dark"] .route-lookup-card .form-label,
html[data-theme="dark"] .route-list-card .form-label,
html[data-theme="dark"] .route-provider-create label,
html[data-theme="dark"] .route-operational-point > .row:first-child .form-label { color: #b1bac4; }
html[data-theme="dark"] .route-list-card thead th,
html[data-theme="dark"] .route-price-table thead th,
html[data-theme="dark"] .route-provider-table thead th,
html[data-theme="dark"] .route-evidence-details th { color: var(--gh-text-muted); background: var(--gh-canvas); border-color: var(--gh-border); }
html[data-theme="dark"] .route-list-card tbody td,
html[data-theme="dark"] .route-price-table td,
html[data-theme="dark"] .route-provider-table td { border-color: var(--gh-border-muted); }
html[data-theme="dark"] .route-list-card tbody tr:hover { background: var(--gh-surface-raised); }
html[data-theme="dark"] .route-list-card tbody td:first-child a { color: var(--gh-accent-hover); }
html[data-theme="dark"] .route-acronym-badge { color:#cae8ff; background:rgba(31,111,235,.16); border-color:rgba(88,166,255,.38); }
html[data-theme="dark"] .route-value-badge--price,
html[data-theme="dark"] .route-value-coverage .exact { color: #56d364; background: rgba(46,160,67,.15); }
html[data-theme="dark"] .route-value-badge--cost,
html[data-theme="dark"] .route-value-coverage .calculated,
html[data-theme="dark"] .route-evidence-point em { color: #a5d6ff; background: var(--gh-accent-muted); }
html[data-theme="dark"] .route-value-coverage span { color: var(--gh-text-muted); background: var(--gh-surface-raised); }
html[data-theme="dark"] .route-workspace-nav { background: rgba(13,17,23,.94); border-color: var(--gh-border); box-shadow: none; }
html[data-theme="dark"] .route-workspace-nav a { color: #b1bac4; }
html[data-theme="dark"] .route-workspace-nav a:hover,
html[data-theme="dark"] .route-workspace-nav a.active { color: var(--gh-accent-hover); background: var(--gh-accent-muted); }
html[data-theme="dark"] .route-workspace-section__icon { color: var(--gh-accent-hover); background: var(--gh-accent-muted); }
html[data-theme="dark"] .route-workspace-section__icon--history { color: #e3b341; background: rgba(187,128,9,.16); }
html[data-theme="dark"] .route-workspace-section__icon--provider { color: #56d364; background: rgba(46,160,67,.15); }
html[data-theme="dark"] .route-provider-suggestions > summary,
html[data-theme="dark"] .route-evidence-details summary { color: var(--gh-accent-hover); background: var(--gh-canvas); border-color: var(--gh-border); }
html[data-theme="dark"] .route-provider-suggestion,
html[data-theme="dark"] .route-evidence-point,
html[data-theme="dark"] .route-evidence-empty,
html[data-theme="dark"] .route-operational-point { color: var(--gh-text); background: var(--gh-canvas); border-color: var(--gh-border) !important; box-shadow: none; }
html[data-theme="dark"] .route-operational-point:first-child,
html[data-theme="dark"] .route-operational-point:last-child { background: var(--gh-accent-muted); border-color: rgba(56,139,253,.45) !important; }
html[data-theme="dark"] .route-editor-map-column .route-map-toolbar h2 { color: var(--gh-text-strong); }
html[data-theme="dark"] .route-map-toolbar,
html[data-theme="dark"] .route-create-modal-heading { border-color: var(--gh-border); }

/* Batch creation and the remaining data-heavy pages. */
html[data-theme="dark"] .shipment-batch-source,
html[data-theme="dark"] .shipment-batch-review,
html[data-theme="dark"] .shipment-batch-item {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .shipment-batch-source > header,
html[data-theme="dark"] .shipment-batch-review > header,
html[data-theme="dark"] .shipment-batch-item > header { background: var(--gh-canvas-subtle); border-color: var(--gh-border); }
html[data-theme="dark"] .shipment-batch-client-groups,
html[data-theme="dark"] .shipment-batch-items,
html[data-theme="dark"] .shipment-batch-item dl > div { background: var(--gh-canvas); border-color: var(--gh-border); }
html[data-theme="dark"] .shipment-batch-client { background: var(--gh-canvas-subtle); border-color: var(--gh-border); }
html[data-theme="dark"] .shipment-batch-item-body section h3,
html[data-theme="dark"] .shipment-batch-editor-grid label > span { color: #b1bac4; }
html[data-theme="dark"] .shipment-batch-stage { color: var(--gh-text); background: var(--gh-accent-muted); border-color: rgba(56,139,253,.38); }
html[data-theme="dark"] .shipment-batch-stage strong { color: #a5d6ff; }
html[data-theme="dark"] .shipment-batch-stage small,
html[data-theme="dark"] .shipment-batch-editor > header p,
html[data-theme="dark"] .shipment-batch-editor > header > span { color: var(--gh-text-muted); }
html[data-theme="dark"] .shipment-batch-stage.is-coleta { background: rgba(187,128,9,.14); border-color: rgba(210,153,34,.38); }
html[data-theme="dark"] .shipment-batch-stage.is-coleta strong { color: #e3b341; }
html[data-theme="dark"] .shipment-batch-stage.is-entrega { background: rgba(46,160,67,.13); border-color: rgba(63,185,80,.36); }
html[data-theme="dark"] .shipment-batch-stage.is-entrega strong { color: #56d364; }
html[data-theme="dark"] .shipment-batch-editor { border-color: var(--gh-border); }
html[data-theme="dark"] .shipment-batch-client-modal .modal-content,
html[data-theme="dark"] .shipment-batch-client-address { background:var(--gh-canvas); border-color:var(--gh-border); }
html[data-theme="dark"] .shipment-batch-client-modal .modal-body { background:var(--gh-canvas-subtle); }
html[data-theme="dark"] .shipment-batch-client-note { color:#a5d6ff; background:rgba(56,139,253,.12); border-color:rgba(56,139,253,.35); }
html[data-theme="dark"] .shipment-batch-client-note span { color:var(--gh-text-muted); }
html[data-theme="dark"] .shipment-batch-client-address summary>span { color:#58a6ff; background:rgba(56,139,253,.14); }
html[data-theme="dark"] .shipment-batch-editor > header { background: var(--gh-surface-raised); border-color: var(--gh-border); }
html[data-theme="dark"] .shipment-batch-editor > header h3 { color: var(--gh-text-strong); }
html[data-theme="dark"] .shipment-batch-profit-summary,
html[data-theme="dark"] .shipment-batch-item-financial { background:var(--gh-canvas); border-color:var(--gh-border); }
html[data-theme="dark"] .shipment-batch-profit-summary>header,
html[data-theme="dark"] .shipment-batch-profit-summary>div,
html[data-theme="dark"] .shipment-batch-item-financial>div { background:var(--gh-canvas-subtle); border-color:var(--gh-border); }
html[data-theme="dark"] .shipment-batch-profit-summary [data-batch-selected-profit-box] { background:rgba(46,160,67,.13); border-color:rgba(63,185,80,.36); }
html[data-theme="dark"] .shipment-batch-profit-summary [data-batch-selected-profit-box].is-negative { background:rgba(248,81,73,.12); border-color:rgba(248,81,73,.4); }
html[data-theme="dark"] .shipment-batch-item.is-ready:not(.is-dirty) { background:#161b22; border-color:#3d444d; box-shadow:inset .28rem 0 0 #3fb950; }
html[data-theme="dark"] .shipment-batch-item.is-ready:not(.is-dirty)>header { background:#0d1117; }
html[data-theme="dark"] .shipment-batch-item.is-ready:not(.is-dirty) dl>div { background:#21262d; }
html[data-theme="dark"] .shipment-batch-profit-summary.is-incomplete>header,
html[data-theme="dark"] .shipment-batch-item-financial.is-incomplete { background:rgba(187,128,9,.12); border-color:rgba(210,153,34,.4); }

html[data-theme="dark"] .employee-management-page {
    --employee-border: var(--gh-border);
    --employee-muted: var(--gh-text-muted);
    --employee-heading: var(--gh-text-strong);
    --employee-panel: var(--gh-canvas-subtle);
    --employee-soft: var(--gh-canvas);
}
/* Configuracao inicial de prestadores e precos no cadastro da rota. */
.route-create-configuration {
    display: grid;
    gap: 1rem;
}

.route-create-configuration__section {
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-body-bg);
    overflow: visible;
}

.route-create-configuration__section > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    list-style: none;
}

.route-create-configuration__section > summary::-webkit-details-marker { display: none; }
.route-create-configuration__section > summary span:first-child { display: grid; gap: .2rem; }
.route-create-configuration__section > summary small,
.route-create-price-table td small { display: block; color: var(--bs-secondary-color); }

.route-create-provider-list {
    display: grid;
    gap: .75rem;
    padding: 0 1rem;
}

.route-create-provider-row {
    display: grid;
    grid-template-columns: minmax(7rem, .5fr) minmax(14rem, 1.35fr) minmax(10rem, .8fr) minmax(10rem, .7fr) auto;
    gap: .75rem;
    align-items: end;
}

.route-create-provider-row label { min-width: 0; }
.route-create-provider-row label > span { display: block; margin-bottom: .35rem; font-size: .78rem; font-weight: 700; }
.route-create-configuration__section > .btn,
.route-create-configuration__section > .form-text { margin-left: 1rem; margin-right: 1rem; }
.route-create-configuration__section > .form-text { padding-bottom: 1rem; }
.route-create-price-table { border-top: 1px solid var(--bs-border-color); }
.route-create-price-table th:first-child { min-width: 17rem; }
.route-create-price-table th:not(:first-child) { min-width: 12rem; }

html[data-theme="dark"] .route-create-configuration__section {
    background: #151b23;
    border-color: #30363d;
}

@media (max-width: 991.98px) {
    .route-create-provider-row { grid-template-columns: 1fr; }
    .route-create-provider-row > button { justify-self: start; }
}

@media (min-width: 1200px) {
    .route-editor-layout > div.route-create-configuration {
        display: grid;
        grid-column: 1 / -1;
        grid-row: 3;
    }
    .route-create-modal-card .route-editor-layout > div.route-field-notes {
        grid-column: 1 / -1;
        grid-row: 4;
    }
}
/* Diretório de prestadores: cadastro nativo, sem dependência visual de planilhas. */
.provider-directory{--provider-border:#d8e2ef;--provider-muted:#64748b;--provider-ink:#0b2b54;position:relative;color:var(--provider-ink)}
.provider-directory__heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;margin-bottom:1rem}
.provider-directory__heading h1{font-size:1.7rem;font-weight:800;letter-spacing:-.035em;margin:0;color:var(--provider-ink)}
.provider-directory__heading p{margin:.25rem 0 0;color:var(--provider-muted)}
.provider-new-button{min-height:2.75rem;display:inline-flex;align-items:center;gap:.4rem;padding-inline:1.15rem;box-shadow:0 .35rem .8rem rgba(9,105,218,.18)}
.provider-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem;margin-bottom:1rem}
.provider-metric{display:grid;grid-template-columns:3.25rem 1fr;grid-template-rows:auto auto auto;gap:.1rem .8rem;align-items:center;padding:.9rem 1rem;background:var(--bs-body-bg);border:1px solid var(--provider-border);border-radius:.6rem;box-shadow:0 .18rem .65rem rgba(15,23,42,.035)}
.provider-metric__icon{grid-row:1/4;width:3.25rem;height:3.25rem;display:grid;place-items:center;border-radius:.65rem;background:#eaf3ff;color:#0969da}
.provider-metric__icon svg{width:1.75rem;height:1.75rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.provider-metric__copy{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}.provider-metric__copy>span{order:0;font-size:.72rem;font-weight:750;color:#3d5878}.provider-metric__copy>strong{order:1;font-size:1.55rem;line-height:1;font-weight:800;color:#0b2b54}.provider-metric small{grid-column:2;color:var(--provider-muted);font-size:.66rem}
.provider-metric__bar{grid-column:2;height:.3rem;background:#e6edf6;border-radius:99px;overflow:hidden}.provider-metric__bar i{display:block;height:100%;background:#2388e8;border-radius:inherit}
.provider-metric--cyan .provider-metric__icon{background:#e1f7f8;color:#0e8a93}.provider-metric--purple .provider-metric__icon{background:#f0eafe;color:#6f42c1}.provider-metric--green .provider-metric__icon{background:#e2f8eb;color:#168a55}
.provider-metric--cyan .provider-metric__bar i{background:#19a7ad}.provider-metric--purple .provider-metric__bar i{background:#7047c7}.provider-metric--green .provider-metric__bar i{background:#16a05d}
.provider-directory-tabs{display:flex;gap:.25rem;overflow-x:auto;border-bottom:1px solid var(--provider-border);margin-bottom:0;padding:.15rem .25rem 0}
.provider-directory-tabs a{white-space:nowrap;padding:.85rem 1.15rem;color:#334e70;text-decoration:none;font-weight:650;border-bottom:3px solid transparent}
.provider-directory-tabs a:hover{color:#0969da}.provider-directory-tabs a.active{color:#0969da;border-bottom-color:#0969da}
.provider-list-card{background:var(--bs-body-bg);border:1px solid var(--provider-border);border-radius:0 0 .75rem .75rem;overflow:hidden;box-shadow:0 .3rem 1rem rgba(15,23,42,.05)}
.provider-filters{display:grid;grid-template-columns:minmax(15rem,1.75fr) repeat(4,minmax(8rem,1fr)) auto auto;gap:.55rem;align-items:end;padding:1rem;border-bottom:1px solid var(--provider-border)}
.provider-filters label,.provider-truck-grid label,.provider-editor-panel>label,.provider-form-grid label{display:flex;flex-direction:column;gap:.35rem;min-width:0}
.provider-filters label>span,.provider-truck-grid label>span,.provider-editor-panel>label>span,.provider-form-grid label>span{font-size:.72rem;font-weight:750;color:#3d5878}
.provider-section-intro{display:flex;align-items:center;gap:.75rem;padding:.8rem 1rem;background:#f6f9fd;border-bottom:1px solid var(--provider-border)}
.provider-section-intro strong{white-space:nowrap}.provider-section-intro span{font-size:.82rem;color:var(--provider-muted)}
.provider-table{width:100%;border-collapse:collapse;font-size:.82rem}.provider-table th{padding:.75rem .7rem;background:#f4f7fb;color:#52657d;font-size:.67rem;text-transform:uppercase;letter-spacing:.025em;font-weight:750;border-bottom:1px solid var(--provider-border);white-space:nowrap}.provider-table td{padding:.75rem .7rem;border-bottom:1px solid #e7edf5;vertical-align:middle;color:#17365d}.provider-table tbody tr:hover{background:#f8fbff}.provider-table tbody tr:last-child td{border-bottom:0}
.provider-person{display:flex;align-items:center;gap:.65rem;min-width:13rem}.provider-person>span{width:2.4rem;height:2.4rem;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;background:#eaf3ff;color:#1d5f9e;font-weight:800}.provider-person div,.provider-person small,.provider-cell-note{display:block}.provider-person strong{display:block;font-size:.83rem}.provider-person small,.provider-cell-note{margin-top:.16rem;color:var(--provider-muted);font-size:.7rem;font-weight:500}.provider-contact{white-space:nowrap}
.provider-type,.provider-service,.provider-status{display:inline-flex;align-items:center;border-radius:.35rem;padding:.2rem .45rem;font-size:.68rem;font-weight:750;white-space:nowrap}.provider-type{background:#dff2ff;color:#075985}.provider-type--guincho{background:#ddf7eb;color:#087443}.provider-type--motorista{background:#eee9ff;color:#6036aa}.provider-type--outros{background:#fff0cc;color:#8a5a00}
.provider-service-tags{display:flex;flex-wrap:wrap;gap:.25rem}.provider-service--coleta{background:#fff0d3;color:#8b5b00}.provider-service--vaga{background:#dff1ff;color:#075985}.provider-service--entrega{background:#dcf7e8;color:#087443}.provider-service--none{background:#eef2f7;color:#64748b}
.provider-route-acronyms{display:flex;align-items:center;flex-wrap:wrap;gap:.28rem;min-width:7rem}.provider-route-acronym{display:inline-flex;align-items:center;min-height:1.45rem;padding:.14rem .42rem;border:1px solid #b9d8f5;border-radius:.38rem;background:#eaf4ff;color:#075985;font-size:.68rem;font-weight:800;white-space:nowrap}.provider-route-acronym.is-more{border-color:#d6deea;background:#f1f5f9;color:#52657d}.provider-route-acronym.is-empty{border-color:transparent;background:transparent;color:var(--provider-muted);padding-left:0;font-weight:600}
.provider-status{gap:.3rem;background:#ddf7e8;color:#087443}.provider-status i{width:.38rem;height:.38rem;border-radius:50%;background:#16a05d}.provider-status.is-inactive{background:#edf0f4;color:#64748b}.provider-status.is-inactive i{background:#94a3b8}.provider-table__center{text-align:center}.provider-row-actions{display:flex;align-items:center;gap:.35rem}.provider-row-actions form{margin:0}.provider-actions-button,.provider-delete-button{display:grid;place-items:center;width:2.2rem;height:1.9rem;padding:0;border:1px solid #c8d6e6;border-radius:.4rem;text-decoration:none;background:transparent}.provider-actions-button{color:#315478;font-weight:800;letter-spacing:.05em}.provider-actions-button:hover{border-color:#0969da;color:#0969da;background:#eef6ff}.provider-delete-button{color:#cf222e;border-color:#f0b8bd;cursor:pointer}.provider-delete-button svg{width:1.05rem;height:1.05rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.provider-delete-button:hover,.provider-delete-button:focus-visible{color:#fff;background:#cf222e;border-color:#cf222e}
.provider-empty-state{display:flex;flex-direction:column;align-items:center;gap:.2rem;padding:3.5rem 1rem;color:var(--provider-muted)}.provider-empty-state strong{color:var(--provider-ink);font-size:1rem}
.provider-pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border-top:1px solid var(--provider-border);color:var(--provider-muted);font-size:.78rem}.provider-pagination nav{display:flex}.provider-pagination nav a{min-width:2.1rem;height:2rem;display:grid;place-items:center;border:1px solid var(--provider-border);margin-left:-1px;text-decoration:none;color:#315478}.provider-pagination nav a:first-child{border-radius:.4rem 0 0 .4rem}.provider-pagination nav a:last-child{border-radius:0 .4rem .4rem 0}.provider-pagination nav a.active{background:#0969da;border-color:#0969da;color:white;position:relative}
.provider-drawer-backdrop{position:fixed;inset:0;z-index:1054;background:rgba(9,16,27,.34);backdrop-filter:blur(1px)}.provider-editor{position:fixed;z-index:1055;top:0;right:0;width:min(34rem,100vw);height:100dvh;display:flex;flex-direction:column;background:#fff;border-left:1px solid var(--provider-border);box-shadow:-1rem 0 3rem rgba(15,23,42,.18);transform:translateX(102%);transition:transform .22s ease;overflow:hidden;container-type:inline-size}.provider-editor.is-open{transform:translateX(0)}
.provider-editor__header{position:relative;display:grid;grid-template-columns:2.75rem 1fr auto;align-items:center;gap:.85rem;padding:1.15rem 1.25rem;background:linear-gradient(135deg,#fff 35%,#f0f6ff);border-bottom:1px solid var(--provider-border)}.provider-editor__symbol{width:2.75rem;height:2.75rem;display:grid;place-items:center;border-radius:.75rem;background:linear-gradient(145deg,#e9f3ff,#dcecff);color:#0969da;box-shadow:inset 0 0 0 1px #c8dff8}.provider-editor__symbol svg{width:1.55rem;height:1.55rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.provider-editor__header h2{font-size:1.25rem;font-weight:800;letter-spacing:-.02em;margin:0;color:#0b2b54}.provider-editor__header p{font-size:.78rem;line-height:1.4;color:var(--provider-muted);margin:.18rem 0 0}.provider-editor__close{width:2rem;height:2rem;display:grid;place-items:center;border-radius:50%;font-size:1.4rem;line-height:1;text-decoration:none;color:#64748b}.provider-editor__close:hover{color:#d1242f;background:#ffeef0}
.provider-editor-tabs{display:grid;grid-template-columns:repeat(2,1fr);gap:.45rem;padding:.85rem 1.25rem;background:#f8fafc;border-bottom:1px solid var(--provider-border)}.provider-editor-tabs button{min-height:2.35rem;border:1px solid #dce5f0;background:#fff;color:#3d5878;border-radius:.55rem;padding:.5rem .3rem;font-size:.69rem;font-weight:750;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease,transform .15s ease}.provider-editor-tabs button:hover{border-color:#8db9eb;background:#f7fbff;transform:translateY(-1px)}.provider-editor-tabs button.active{color:#0969da;background:#eef6ff;border-color:#68a7eb;box-shadow:0 2px 5px rgba(9,105,218,.1),inset 0 -2px #0969da}
.provider-editor__form{display:flex;flex:1;min-height:0;flex-direction:column}.provider-editor__body{flex:1;min-height:0;overflow:auto;padding:1.2rem 1.25rem 1.5rem;background:#fff;scrollbar-color:#b9c6d6 transparent;scrollbar-width:thin}.provider-editor-panel{display:none}.provider-editor-panel.active{display:block;animation:provider-panel-in .18s ease}.provider-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem .85rem}.provider-form-wide{grid-column:1/-1}.provider-state-field{max-width:8rem}.provider-editor-panel>label+label{margin-top:1rem}.provider-editor-panel .invalid-feedback{display:block}.provider-editor .form-control,.provider-editor .form-select{min-height:2.55rem;border-color:#cbd9e8;border-radius:.55rem;background-color:#fff;box-shadow:0 1px 2px rgba(15,23,42,.025)}.provider-editor textarea.form-control{min-height:auto}.provider-editor .form-control:hover,.provider-editor .form-select:hover{border-color:#9eb9d8}.provider-editor .form-control:focus,.provider-editor .form-select:focus{border-color:#2186e5;box-shadow:0 0 0 .2rem rgba(33,134,229,.12)}.provider-form-section-title{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:.2rem 0 -.1rem;padding-top:1rem;border-top:1px solid #e5ebf2}.provider-form-section-title strong{font-size:.82rem;color:#17365d}.provider-form-section-title span{font-size:.66rem;color:var(--provider-muted);text-align:right}@keyframes provider-panel-in{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
.provider-route-picker__intro{display:flex;flex-direction:column;gap:.2rem;margin-bottom:.8rem}.provider-route-picker__intro strong{font-size:.9rem;color:#17365d}.provider-route-picker__intro span{font-size:.74rem;line-height:1.45;color:var(--provider-muted)}.provider-route-search-wrap{position:relative}.provider-route-search-icon{position:absolute;z-index:2;left:.8rem;top:.72rem;color:#64748b;pointer-events:none}.provider-route-search-icon svg{width:1.05rem;height:1.05rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.provider-editor .provider-route-search{padding-left:2.35rem;padding-right:2rem}.provider-route-results{position:absolute;z-index:15;top:calc(100% + .35rem);left:0;right:0;max-height:18rem;overflow:auto;padding:.35rem;background:#fff;border:1px solid #b9cce1;border-radius:.65rem;box-shadow:0 .8rem 2rem rgba(15,23,42,.16)}.provider-route-results button{width:100%;display:flex;flex-direction:column;gap:.15rem;padding:.7rem .75rem;border:0;border-radius:.45rem;background:transparent;text-align:left;color:#17365d}.provider-route-results button:hover,.provider-route-results button:focus{background:#eef6ff;outline:0}.provider-route-results button strong{font-size:.76rem}.provider-route-results button small{font-size:.65rem;color:#64748b}.provider-route-results__empty{margin:0;padding:1rem;text-align:center;font-size:.76rem;color:#64748b}.provider-route-selected-heading{display:flex;align-items:center;justify-content:space-between;margin:.95rem 0 .45rem;font-size:.72rem;font-weight:750;color:#52657d}.provider-route-selected-heading strong{min-width:1.45rem;height:1.45rem;display:grid;place-items:center;border-radius:99px;background:#eaf3ff;color:#0969da}.provider-route-selected{display:flex;flex-direction:column;gap:.45rem}.provider-route-chip{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.6rem;padding:.7rem .65rem .7rem .8rem;border:1px solid #d8e5f2;border-radius:.6rem;background:#f8fbff}.provider-route-chip>span,.provider-route-chip strong,.provider-route-chip small{display:block;min-width:0}.provider-route-chip strong{font-size:.74rem;color:#17365d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.provider-route-chip small{margin-top:.15rem;font-size:.63rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.provider-route-chip button{width:1.8rem;height:1.8rem;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#64748b;font-size:1.1rem}.provider-route-chip button:hover{background:#ffeef0;color:#cf222e}.provider-route-chip.is-learned{background:#f1fbf6;border-color:#bee7cf}.provider-route-chip.is-learned i{width:1.75rem;height:1.75rem;display:grid;place-items:center;border-radius:50%;background:#d8f5e4;color:#168a55;font-style:normal;font-weight:800}.provider-route-empty{display:flex;flex-direction:column;align-items:center;gap:.2rem;padding:2rem 1rem;border:1px dashed #c6d5e5;border-radius:.65rem;background:#fbfdff;text-align:center;color:#64748b}.provider-route-empty strong{font-size:.8rem;color:#3d5878}.provider-route-empty span{font-size:.7rem}.provider-learning-note--compact{padding:.8rem;margin-top:.85rem}.provider-learning-note--compact p{line-height:1.4}
.provider-services-fieldset{border:0;padding:0;margin:0}.provider-services-fieldset legend{font-size:.78rem;font-weight:750;margin-bottom:.65rem}.provider-services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem}.provider-services-fieldset label{display:flex;align-items:center;justify-content:center;gap:.4rem;border:1px solid var(--provider-border);border-radius:.5rem;padding:.65rem .35rem;margin:0;font-size:.7rem;font-weight:700;text-align:center}.provider-services-fieldset label:has(input:checked){border-color:#77ade8;background:#eef6ff;color:#075aaa}.provider-section-divider{display:flex;flex-direction:column;gap:.15rem;margin:1rem 0 .8rem;padding-top:1rem;border-top:1px solid var(--provider-border)}.provider-section-divider strong{font-size:.84rem;color:#17365d}.provider-section-divider span{font-size:.68rem;color:var(--provider-muted)}
.provider-learning-note,.provider-route-summary,.provider-editor-empty{padding:1rem;border-radius:.55rem;margin-top:1rem;background:#eef6ff;border:1px solid #c8e0fb}.provider-learning-note strong,.provider-route-summary strong,.provider-route-summary span{display:block}.provider-learning-note p,.provider-editor-empty p{font-size:.8rem;color:#52657d;margin:.3rem 0 0}.provider-route-summary span{font-size:.72rem;color:#64748b;margin-top:.2rem}.provider-editor-empty{text-align:center;padding:2rem}.provider-editor-empty .btn{margin-top:.75rem}
.provider-editor__footer{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.9rem 1.25rem;border-top:1px solid var(--provider-border);background:#f8fafc;box-shadow:0 -.4rem 1rem rgba(15,23,42,.035)}.provider-editor__footer>div{display:flex;flex:0 0 auto;gap:.5rem}.provider-editor__footer .btn{min-height:2.55rem;padding-inline:1rem;border-radius:.55rem;font-weight:750;white-space:nowrap}.provider-editor__footer .btn-primary{min-width:8.25rem;box-shadow:0 .25rem .6rem rgba(9,105,218,.16)}.provider-check{display:flex!important;flex-direction:row!important;align-items:center;gap:.5rem;font-size:.76rem;font-weight:750;white-space:nowrap}.provider-check .form-check-input{flex:0 0 auto}
.provider-rate-editor{margin-top:.85rem;border:1px solid var(--provider-border);border-radius:.6rem;overflow:hidden}.provider-rate-editor>summary{padding:.75rem .8rem;background:#f8fafc;font-size:.76rem;font-weight:750;cursor:pointer}.provider-rate-editor__rows{padding:0 .8rem .8rem}.provider-rate-row{display:grid;grid-template-columns:1fr 8.5rem;gap:.6rem;align-items:center;padding:.65rem 0;border-bottom:1px solid var(--provider-border)}.provider-rate-row strong,.provider-rate-row small{display:block;font-size:.7rem}.provider-rate-row small{color:var(--provider-muted);margin-top:.15rem}.provider-rate-editor__rows>.btn{margin-top:.8rem}
.provider-rate-editor__help{margin:.7rem 0;color:var(--provider-muted);font-size:.7rem;line-height:1.45}.provider-rate-group{padding:.65rem 0;border-top:1px solid var(--provider-border)}.provider-rate-group>header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}.provider-rate-group>header strong{font-size:.73rem}.provider-rate-group>header small{padding:.18rem .4rem;border-radius:999px;background:#eaf2ff;color:#164d88;font-size:.62rem;font-weight:750}.provider-rate-option{display:grid;grid-template-columns:minmax(0,1fr) 8.5rem auto;gap:.45rem;align-items:end;padding:.45rem;margin-bottom:.4rem;border:1px solid #d9e4f1;border-radius:.5rem;background:#fff}.provider-rate-option label>span{display:block;margin-bottom:.2rem;color:var(--provider-muted);font-size:.62rem;font-weight:700}.provider-rate-option .form-control,.provider-rate-option .input-group-text{font-size:.7rem}.provider-rate-option__delete{min-height:2rem;font-size:.67rem}.provider-rate-option--new{border-style:dashed;background:#f8fbff}.provider-rate-option__new-badge{align-self:center;color:#3271b5;font-size:.65rem;font-weight:750;text-align:center}.provider-rate-option.is-deleted{opacity:.55;background:#fff1f2}.provider-rate-option.is-deleted label{text-decoration:line-through}.provider-rate-editor__rows>.btn{margin-top:.8rem}@media(max-width:600px){.provider-rate-option{grid-template-columns:1fr 7rem}.provider-rate-option__delete,.provider-rate-option__new-badge{grid-column:1/-1}.provider-rate-option__delete{width:100%}}
.provider-trucks-workspace{border-radius:0 0 .75rem .75rem}.provider-truck-form{margin:1rem;border:1px solid var(--provider-border);border-radius:.6rem}.provider-truck-form summary{padding:.8rem 1rem;font-weight:750;cursor:pointer}.provider-truck-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;padding:1rem;border-top:1px solid var(--provider-border)}.provider-truck-actions{grid-column:2/-1;display:flex;justify-content:flex-end;align-items:center;gap:.5rem}
html[data-theme="dark"] .provider-directory{--provider-border:#30363d;--provider-muted:#8b949e;--provider-ink:#f0f6fc}
html[data-theme="dark"] .provider-metric,html[data-theme="dark"] .provider-list-card,html[data-theme="dark"] .provider-editor{background:#0d1117}
html[data-theme="dark"] .provider-metric{box-shadow:none}html[data-theme="dark"] .provider-directory{color-scheme:dark}
html[data-theme="dark"] .provider-metric__copy>span{color:#8b949e}html[data-theme="dark"] .provider-metric__copy>strong{color:#f0f6fc}html[data-theme="dark"] .provider-metric__bar{background:#21262d}
html[data-theme="dark"] .provider-directory-tabs a,html[data-theme="dark"] .provider-table td,html[data-theme="dark"] .provider-filters label>span,html[data-theme="dark"] .provider-truck-grid label>span,html[data-theme="dark"] .provider-editor-panel>label>span,html[data-theme="dark"] .provider-form-grid label>span{color:#c9d1d9}
html[data-theme="dark"] .provider-actions-button{color:#b1bac4;background:#161b22;border-color:#3d444d}html[data-theme="dark"] .provider-actions-button:hover{color:#79c0ff;background:#21262d;border-color:#58a6ff}html[data-theme="dark"] .provider-delete-button{color:#ff7b72;background:#161b22;border-color:rgba(248,81,73,.45)}html[data-theme="dark"] .provider-delete-button:hover,html[data-theme="dark"] .provider-delete-button:focus-visible{color:#fff;background:#da3633;border-color:#f85149}
html[data-theme="dark"] .provider-section-intro,html[data-theme="dark"] .provider-table th{background:#161b22;color:#8b949e}
html[data-theme="dark"] .provider-table td{border-bottom-color:#21262d}html[data-theme="dark"] .provider-table tbody tr:hover{background:#161b22}
html[data-theme="dark"] .provider-route-acronym{border-color:#284c6c;background:#102c43;color:#79c0ff}html[data-theme="dark"] .provider-route-acronym.is-more{border-color:#30363d;background:#21262d;color:#b1bac4}html[data-theme="dark"] .provider-route-acronym.is-empty{border-color:transparent;background:transparent;color:#8b949e}
html[data-theme="dark"] .provider-person>span,html[data-theme="dark"] .provider-metric__icon{background:#13233a;color:#58a6ff}
html[data-theme="dark"] .provider-editor__header{background:linear-gradient(135deg,#0d1117 35%,#111d2b)}html[data-theme="dark"] .provider-editor__header h2{color:#f0f6fc}html[data-theme="dark"] .provider-editor__symbol{background:#13233a;color:#58a6ff;box-shadow:inset 0 0 0 1px #214b76}html[data-theme="dark"] .provider-editor__close:hover{background:#3d161c;color:#ff7b72}
html[data-theme="dark"] .provider-editor-tabs{background:#161b22}html[data-theme="dark"] .provider-editor-tabs button{background:#0d1117;border-color:#30363d;color:#c9d1d9}html[data-theme="dark"] .provider-editor-tabs button:hover{background:#161b22;border-color:#58a6ff}html[data-theme="dark"] .provider-editor-tabs button.active{background:#13233a;border-color:#388bfd;color:#58a6ff}
html[data-theme="dark"] .provider-editor__body{background:#0d1117}html[data-theme="dark"] .provider-editor .form-control,html[data-theme="dark"] .provider-editor .form-select{background-color:#0d1117;border-color:#30363d;color:#f0f6fc;box-shadow:none}html[data-theme="dark"] .provider-form-section-title{border-top-color:#30363d}html[data-theme="dark"] .provider-form-section-title strong{color:#c9d1d9}
html[data-theme="dark"] .provider-route-picker__intro strong,html[data-theme="dark"] .provider-route-results button,html[data-theme="dark"] .provider-route-chip strong,html[data-theme="dark"] .provider-section-divider strong{color:#f0f6fc}html[data-theme="dark"] .provider-route-results{background:#161b22;border-color:#30363d;box-shadow:0 .8rem 2rem rgba(0,0,0,.35)}html[data-theme="dark"] .provider-route-results button:hover,html[data-theme="dark"] .provider-route-results button:focus{background:#13233a}html[data-theme="dark"] .provider-route-selected-heading strong{background:#13233a;color:#58a6ff}html[data-theme="dark"] .provider-route-chip,html[data-theme="dark"] .provider-route-chip.is-learned{background:#161b22;border-color:#30363d}html[data-theme="dark"] .provider-route-chip.is-learned i{background:#123524;color:#56d894}html[data-theme="dark"] .provider-route-empty{background:#0d1117;border-color:#30363d}html[data-theme="dark"] .provider-route-empty strong{color:#c9d1d9}html[data-theme="dark"] .provider-rate-editor>summary{background:#161b22}
html[data-theme="dark"] .provider-rate-option{color:#c9d1d9;background:#161b22;border-color:#30363d}html[data-theme="dark"] .provider-rate-option--new{background:#0d1117}html[data-theme="dark"] .provider-rate-group>header small{color:#79c0ff;background:#13233a}html[data-theme="dark"] .provider-rate-option.is-deleted{background:#321820}html[data-theme="dark"] .provider-rate-suggestions{background:#161b22;border-color:#3b4b5d;box-shadow:0 .5rem 1.2rem rgba(0,0,0,.5)}html[data-theme="dark"] .provider-rate-suggestions button{color:#c9d1d9}html[data-theme="dark"] .provider-rate-suggestions button:hover,html[data-theme="dark"] .provider-rate-suggestions button:focus-visible,html[data-theme="dark"] .provider-rate-suggestions button.is-selected{color:#79c0ff;background:#13233a}html[data-theme="dark"] .provider-rate-suggestions button span{color:#56d364}
html[data-theme="dark"] .provider-learning-note,html[data-theme="dark"] .provider-route-summary,html[data-theme="dark"] .provider-editor-empty,html[data-theme="dark"] .provider-services-fieldset label:has(input:checked){background:#13233a;border-color:#214b76}
html[data-theme="dark"] .provider-editor__footer{background:#0d1117}html[data-theme="dark"] .provider-service--none{background:#21262d;color:#8b949e}
@container (max-width:28rem){.provider-editor__footer{display:grid;grid-template-columns:1fr auto}.provider-editor__footer .btn{padding-inline:.8rem}.provider-editor__footer .btn-primary{min-width:7.5rem}.provider-check{font-size:.72rem}}
@media(min-width:1400px){.provider-directory{transition:width .22s ease}.provider-directory[data-drawer-open="1"]{width:calc(100% - 27rem)}.provider-directory[data-drawer-open="1"] .provider-drawer-backdrop{display:none!important}.provider-editor{top:66px;width:26rem;height:calc(100dvh - 66px);border-top:1px solid var(--provider-border);box-shadow:-.65rem .2rem 1.8rem rgba(15,23,42,.1)}.provider-editor__header{padding-top:1rem}.provider-editor__body{padding-top:1rem}}
@media(max-width:1200px){.provider-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.provider-filter-search{grid-column:span 2}.provider-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:767.98px){.provider-directory__heading{align-items:stretch;flex-direction:column}.provider-new-button{justify-content:center}.provider-metrics{grid-template-columns:1fr}.provider-filters{grid-template-columns:1fr}.provider-filter-search{grid-column:auto}.provider-form-grid,.provider-truck-grid{grid-template-columns:1fr}.provider-form-wide,.provider-truck-actions{grid-column:auto}.provider-editor__footer{align-items:stretch;flex-direction:column}.provider-editor__footer>div{display:grid;grid-template-columns:1fr 1fr}.provider-editor__footer .provider-delete-action{grid-column:1/-1}.provider-table{min-width:68rem}}

/* GitHub Dark final contrast pass.
   Legacy screens still declare light-theme navy text with greater specificity;
   keep the dark interface neutral and readable after every module stylesheet. */
html[data-theme="dark"] {
    --gh-control-border: #3d444d;
    --gh-control-hover: #262c36;
    --gh-selected: rgba(56, 139, 253, .12);
}

html[data-theme="dark"] body {
    scrollbar-color: #484f58 var(--gh-canvas);
}

html[data-theme="dark"] :where(a,button,input,select,textarea,summary):focus-visible {
    outline: 2px solid var(--gh-accent-hover);
    outline-offset: 2px;
}

html[data-theme="dark"] .topbar-dashboard-search,
html[data-theme="dark"] .topbar-global-search {
    color: var(--gh-text);
    background: var(--gh-canvas);
    border-color: var(--gh-control-border);
    box-shadow: none;
}
html[data-theme="dark"] .topbar-dashboard-search:focus-within,
html[data-theme="dark"] .topbar-global-search:focus-within {
    border-color: var(--gh-accent);
    box-shadow: 0 0 0 .2rem var(--gh-accent-muted);
}
html[data-theme="dark"] .topbar-dashboard-search input,
html[data-theme="dark"] .topbar-global-search input { color: var(--gh-text); }
html[data-theme="dark"] .topbar-dashboard-search input::placeholder,
html[data-theme="dark"] .topbar-global-search input::placeholder { color: var(--gh-text-muted); }

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .page-help-trigger { color: #b1bac4; }

html[data-theme="dark"] .btn-light,
html[data-theme="dark"] .btn-outline-secondary,
html[data-theme="dark"] .btn-outline-primary {
    --bs-btn-color: #c9d1d9;
    --bs-btn-bg: var(--gh-surface-raised);
    --bs-btn-border-color: var(--gh-control-border);
    --bs-btn-hover-color: var(--gh-text-strong);
    --bs-btn-hover-bg: var(--gh-control-hover);
    --bs-btn-hover-border-color: #8b949e;
    --bs-btn-active-color: var(--gh-text-strong);
    --bs-btn-active-bg: #30363d;
    --bs-btn-active-border-color: #8b949e;
}

/* Freight list: remove the remaining dark-blue-on-black combinations. */
html[data-theme="dark"] .shipment-index-page {
    --shipment-navy: var(--gh-text-strong);
    --shipment-blue: var(--gh-accent-hover);
    --shipment-line: var(--gh-border);
    --shipment-muted: var(--gh-text-muted);
    color: var(--gh-text);
}
html[data-theme="dark"] .shipment-index-heading nav,
html[data-theme="dark"] .shipment-index-heading p,
html[data-theme="dark"] .shipment-list-context,
html[data-theme="dark"] .shipment-list-context > summary,
html[data-theme="dark"] .shipment-filter-secondary fieldset > div > span,
html[data-theme="dark"] .shipment-advanced-filters-body label > small,
html[data-theme="dark"] .shipment-list-tools form,
html[data-theme="dark"] .shipment-index-pagination { color: var(--gh-text-muted); }
html[data-theme="dark"] .shipment-index-heading nav a,
html[data-theme="dark"] .shipment-more-toggle,
html[data-theme="dark"] .shipment-more-button { color: var(--gh-accent-hover); }
html[data-theme="dark"] .shipment-index-heading h1,
html[data-theme="dark"] .shipment-index-kpi strong,
html[data-theme="dark"] .shipment-filter-card > header strong,
html[data-theme="dark"] .shipment-index-table tbody td strong { color: var(--gh-text-strong); }

html[data-theme="dark"] .shipment-index-kpi,
html[data-theme="dark"] .shipment-filter-card,
html[data-theme="dark"] .shipment-index-list,
html[data-theme="dark"] .shipment-index-toolbar {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .shipment-index-kpi:hover {
    background: var(--gh-surface-raised);
    border-color: #6e7681;
}
html[data-theme="dark"] .shipment-index-kpi > span { color: var(--gh-accent-hover); background: var(--gh-accent-muted); }
html[data-theme="dark"] .shipment-index-kpi.is-yellow > span { color: #e3b341; background: rgba(187,128,9,.17); }
html[data-theme="dark"] .shipment-index-kpi.is-green > span { color: #56d364; background: rgba(46,160,67,.16); }
html[data-theme="dark"] .shipment-index-kpi.is-slate > span { color: #b1bac4; background: var(--gh-surface-raised); }
html[data-theme="dark"] .shipment-index-kpi.is-red > span { color: #ff7b72; background: rgba(248,81,73,.16); }
html[data-theme="dark"] .shipment-index-kpi.is-green strong,
html[data-theme="dark"] .shipment-index-kpi.is-red strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .shipment-index-kpi small { color: var(--gh-text-muted); }

html[data-theme="dark"] .shipment-filter-card > header {
    color: var(--gh-text);
    background: var(--gh-surface-raised);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .shipment-filter-card > header span { color: var(--gh-accent-hover); }
html[data-theme="dark"] .shipment-filter-card label > span,
html[data-theme="dark"] .shipment-filter-secondary legend { color: #b1bac4; }
html[data-theme="dark"] .shipment-filter-card .form-control,
html[data-theme="dark"] .shipment-filter-card .form-select,
html[data-theme="dark"] .shipment-list-tools select {
    color: var(--gh-text);
    background-color: var(--gh-canvas);
    border-color: var(--gh-control-border);
    box-shadow: none;
}
html[data-theme="dark"] .shipment-filter-card .form-control:hover,
html[data-theme="dark"] .shipment-filter-card .form-select:hover,
html[data-theme="dark"] .shipment-list-tools select:hover { border-color: #6e7681; }
html[data-theme="dark"] .shipment-selection-summary { color: #b1bac4; }
html[data-theme="dark"] .shipment-selection-dot { border-color: var(--gh-accent-hover); }
html[data-theme="dark"] .shipment-selection-actions .btn.disabled {
    color: #6e7681;
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}

html[data-theme="dark"] .shipment-index-table thead th {
    color: var(--gh-text-muted);
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .shipment-index-table tbody td {
    color: #c9d1d9;
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border-muted);
}
html[data-theme="dark"] .shipment-index-table tbody tr:hover > td,
html[data-theme="dark"] .shipment-index-table tbody tr.is-selected > td { background: var(--gh-selected); }
html[data-theme="dark"] .shipment-index-table tbody td small { color: var(--gh-text-muted); }
html[data-theme="dark"] .shipment-index-table td:nth-child(9) small.is-danger { color: #ff7b72; }
html[data-theme="dark"] .shipment-index-table td:nth-child(9) small.is-warning { color: #e3b341; }
html[data-theme="dark"] .shipment-index-table td:nth-child(9) small.is-success { color: #56d364; }
html[data-theme="dark"] .shipment-status-pill {
    color: #c9d1d9;
    background: color-mix(in srgb, var(--status-color) 18%, var(--gh-surface-raised));
    border: 1px solid color-mix(in srgb, var(--status-color) 35%, var(--gh-border));
}
html[data-theme="dark"] .shipment-plate-copy { color: #c9e4fb; background: #1b3348; border-color: #46647e; }
html[data-theme="dark"] .shipment-plate-copy:hover { color: #fff; background: #1767a8; border-color: #4b91c8; }
html[data-theme="dark"] .shipment-plate-copy.is-copied { color: #8ee2b3; background: #173b2c; border-color: #3b815e; }
html[data-theme="dark"] .shipment-more-button:hover,
html[data-theme="dark"] .shipment-more-button[aria-expanded="true"] { color: #79c0ff; background: var(--gh-surface-raised); }
html[data-theme="dark"] .shipment-index-pagination nav a {
    color: #c9d1d9;
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .shipment-index-pagination nav a:hover { color: var(--gh-text-strong); background: var(--gh-surface-raised); border-color: #6e7681; }
html[data-theme="dark"] .shipment-index-pagination nav a.active { color: #fff; background: #1f6feb; border-color: #388bfd; }
html[data-theme="dark"] .shipment-index-pagination nav a.disabled { color: #6e7681; background: var(--gh-canvas-subtle); }

/* Freight detail and operational flow use the same neutral surface hierarchy. */
html[data-theme="dark"] .shipment-flow-card,
html[data-theme="dark"] .shipment-flow-card > .card-header,
html[data-theme="dark"] .shipment-flow-card > .card-body { border-color: var(--gh-border); }
html[data-theme="dark"] .shipment-flow-card > .card-header { background: var(--gh-canvas-subtle) !important; }
html[data-theme="dark"] .shipment-flow-card > .card-body { color: var(--gh-text); background: var(--gh-canvas) !important; }
html[data-theme="dark"] .shipment-flow-card .quote-flow-shell {
    background: transparent !important;
    border-color: transparent;
    box-shadow: none;
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-heading,
html[data-theme="dark"] .shipment-flow-card .shipment-flow-expenses {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-card {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-control-border);
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__header,
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__body { background: var(--gh-canvas-subtle) !important; }
html[data-theme="dark"] .shipment-flow-card .quote-flow-card--coleta .quote-flow-card__header {
    background: var(--gh-surface-raised) !important;
    box-shadow: inset 4px 0 var(--gh-warning);
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-card--vaga .quote-flow-card__header {
    background: var(--gh-surface-raised) !important;
    box-shadow: inset 4px 0 var(--gh-accent);
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-card--entrega .quote-flow-card__header {
    background: var(--gh-surface-raised) !important;
    box-shadow: inset 4px 0 var(--gh-success);
}
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__identity strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__identity small,
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__subtype,
html[data-theme="dark"] .shipment-flow-card .quote-flow-card__hint,
html[data-theme="dark"] .shipment-flow-card .quote-flow-endpoint__control > label { color: var(--gh-text-muted); }

/* Final system-wide dark audit.
   This block intentionally lives last: a few older operational modules still
   ship highly-specific light palette rules and must resolve to the same
   neutral GitHub Dark hierarchy used by the shared components. */
html[data-theme="dark"] .pagination {
    --bs-pagination-color: var(--gh-accent-hover);
    --bs-pagination-bg: var(--gh-canvas-subtle);
    --bs-pagination-border-color: var(--gh-border);
    --bs-pagination-hover-color: var(--gh-text-strong);
    --bs-pagination-hover-bg: var(--gh-surface-raised);
    --bs-pagination-hover-border-color: #6e7681;
    --bs-pagination-focus-color: var(--gh-text-strong);
    --bs-pagination-focus-bg: var(--gh-surface-raised);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: #1f6feb;
    --bs-pagination-active-border-color: #388bfd;
    --bs-pagination-disabled-color: #6e7681;
    --bs-pagination-disabled-bg: var(--gh-canvas);
    --bs-pagination-disabled-border-color: var(--gh-border);
}
html[data-theme="dark"] .btn-close { filter: invert(1) grayscale(1); opacity: .72; }
html[data-theme="dark"] .btn-close:hover { opacity: 1; }
html[data-theme="dark"] .toast,
html[data-theme="dark"] .toast-header,
html[data-theme="dark"] .popover-header,
html[data-theme="dark"] .popover-body {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .list-group-item-action:hover,
html[data-theme="dark"] .list-group-item-action:focus,
html[data-theme="dark"] .list-group-item-action.active {
    color: var(--gh-text-strong);
    background: var(--gh-surface-raised);
    border-color: var(--gh-border);
}
html[data-theme="dark"] :where(code,pre,kbd) { color: #d2a8ff; }
html[data-theme="dark"] pre {
    background: var(--gh-canvas-inset);
    border-color: var(--gh-border);
}

/* Operational navigation: selected means highlighted, not a luminous panel. */
html[data-theme="dark"] .report-tabs .report-tab.active {
    color: #a5d6ff;
    background: var(--gh-accent-muted);
    border-color: #388bfd;
    box-shadow: inset 3px 0 #2f81f7;
}
html[data-theme="dark"] .report-tabs .report-tab.active small { color: #b1bac4; }

/* Vagas and trips: neutralize the legacy blue-on-black palette end to end. */
html[data-theme="dark"] .load-dashboard,
html[data-theme="dark"] .load-detail-page {
    --load-ink: var(--gh-text);
    --load-muted: var(--gh-text-muted);
    --load-line: var(--gh-border);
    --load-blue: var(--gh-accent-hover);
    --load-soft: var(--gh-surface-raised);
    color: var(--gh-text);
}
html[data-theme="dark"] .load-overview-header,
html[data-theme="dark"] .load-alerts,
html[data-theme="dark"] .load-metric-card,
html[data-theme="dark"] .load-filter-card,
html[data-theme="dark"] .load-routes,
html[data-theme="dark"] .load-create-panel,
html[data-theme="dark"] .load-current-card,
html[data-theme="dark"] .load-detail-hero,
html[data-theme="dark"] .load-detail-progress,
html[data-theme="dark"] .load-finance-grid,
html[data-theme="dark"] .load-detail-main,
html[data-theme="dark"] .load-romaneio-card,
html[data-theme="dark"] .load-timeline-card,
html[data-theme="dark"] .load-quick-card,
html[data-theme="dark"] .load-layout-header,
html[data-theme="dark"] .load-simulator,
html[data-theme="dark"] .load-cost-editor-card,
html[data-theme="dark"] .load-cost-modal .modal-body,
html[data-theme="dark"] .load-cost-editor-summary,
html[data-theme="dark"] .load-cost-row,
html[data-theme="dark"] .load-cost-modal-footer {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .load-current-card > summary,
html[data-theme="dark"] .load-section-heading,
html[data-theme="dark"] .load-panel-header,
html[data-theme="dark"] .load-list-filters,
html[data-theme="dark"] .load-ready-table thead th,
html[data-theme="dark"] .load-current-table thead th {
    color: var(--gh-text-muted);
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .load-list-filters .form-control,
html[data-theme="dark"] .load-list-filters .form-select,
html[data-theme="dark"] .load-route-filter > summary,
html[data-theme="dark"] .load-route-filter-panel,
html[data-theme="dark"] .load-table-search,
html[data-theme="dark"] .load-cost-control,
html[data-theme="dark"] .load-romaneio-preview {
    color: var(--gh-text);
    background: var(--gh-canvas);
    border-color: var(--gh-control-border);
    box-shadow: none;
}
html[data-theme="dark"] .load-route-filter-panel { box-shadow: var(--ce-shadow-md); }
html[data-theme="dark"] .load-route-filter-options label:hover { background: var(--gh-surface-raised); }

html[data-theme="dark"] .load-current-table tbody td,
html[data-theme="dark"] .load-ready-table tbody td,
html[data-theme="dark"] .load-vehicle-table tbody td {
    color: #c9d1d9;
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border-muted);
}
html[data-theme="dark"] .load-current-table tbody tr:hover > td,
html[data-theme="dark"] .load-ready-table tbody tr:hover > td,
html[data-theme="dark"] .load-vehicle-table tbody tr:hover > td { background: var(--gh-selected); }
html[data-theme="dark"] .load-current-table td > strong,
html[data-theme="dark"] .load-current-card > summary strong,
html[data-theme="dark"] .load-ready-table td > strong,
html[data-theme="dark"] .load-section-heading h2,
html[data-theme="dark"] .load-create-heading h2,
html[data-theme="dark"] .load-overview-copy h1,
html[data-theme="dark"] .load-overview-stats strong,
html[data-theme="dark"] .load-route-identity strong,
html[data-theme="dark"] .load-cost-row-vehicle strong,
html[data-theme="dark"] .load-detail-title-line h1,
html[data-theme="dark"] .load-detail-facts strong,
html[data-theme="dark"] .load-romaneio-heading h2 { color: var(--gh-text-strong); }
html[data-theme="dark"] .load-current-table td small,
html[data-theme="dark"] .load-ready-table td small,
html[data-theme="dark"] .load-current-card > summary small,
html[data-theme="dark"] .load-section-heading p,
html[data-theme="dark"] .load-section-heading > span,
html[data-theme="dark"] .load-filter-context,
html[data-theme="dark"] .load-empty,
html[data-theme="dark"] .load-cost-row-vehicle small,
html[data-theme="dark"] .load-cost-row-source span,
html[data-theme="dark"] .load-cost-row-field > span:first-child { color: var(--gh-text-muted); }
html[data-theme="dark"] .load-current-table a:not(.btn),
html[data-theme="dark"] .load-ready-table a:not(.btn),
html[data-theme="dark"] .load-detail-page a:not(.btn) { color: var(--gh-accent-hover); }
html[data-theme="dark"] .load-source-badge {
    color: #b1bac4;
    background: var(--gh-surface-raised);
    border: 1px solid var(--gh-border);
}
html[data-theme="dark"] .load-mini-progress,
html[data-theme="dark"] .load-capacity-track { background: #30363d; }
html[data-theme="dark"] .load-mini-progress i,
html[data-theme="dark"] .load-capacity-track i { background: #2f81f7; }
html[data-theme="dark"] .load-status.ready,
html[data-theme="dark"] .load-status.done { color: #56d364; background: rgba(46,160,67,.16); }
html[data-theme="dark"] .load-status.planned,
html[data-theme="dark"] .load-status.assembling { color: #e3b341; background: rgba(187,128,9,.17); }
html[data-theme="dark"] .load-status.transit { color: #a5d6ff; background: rgba(56,139,253,.17); }
html[data-theme="dark"] .load-status.neutral { color: #b1bac4; background: var(--gh-surface-raised); }
html[data-theme="dark"] .load-ready-status.is-waiting { color:#f6d365; background:rgba(187,128,9,.2); border-color:rgba(227,179,65,.42); }
html[data-theme="dark"] .load-ready-status.is-collecting { color:#79cfff; background:rgba(31,111,169,.22); border-color:rgba(121,207,255,.4); }
html[data-theme="dark"] .load-route-card > summary:hover,
html[data-theme="dark"] .load-route-card[open] > summary { background: var(--gh-surface-raised); }
html[data-theme="dark"] .load-route-summary,
html[data-theme="dark"] .load-capacity-stats,
html[data-theme="dark"] .load-provider-suggestion,
html[data-theme="dark"] .load-open-vaga,
html[data-theme="dark"] .load-transport-defaults {
    color: var(--gh-text);
    background: var(--gh-surface-raised);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .load-progress-step div { background: var(--gh-canvas-subtle); }
html[data-theme="dark"] .load-progress-step::after,
html[data-theme="dark"] .load-timeline-card ol::before { background: #484f58; }
html[data-theme="dark"] .load-progress-step > span {
    color: #b1bac4;
    background: #30363d;
    border-color: var(--gh-canvas-subtle);
}
html[data-theme="dark"] .load-progress-step.is-active > span {
    color: #fff;
    background: #1f6feb;
    border-color: rgba(56,139,253,.35);
    box-shadow: 0 0 0 2px rgba(56,139,253,.35);
}
html[data-theme="dark"] .load-progress-step.is-complete > span {
    color: #fff;
    background: #238636;
    border-color: rgba(63,185,80,.32);
}

/* Vaga detail: every nested surface must follow the active theme. Keep these
   rules after the legacy load styles because several of them use fixed light
   backgrounds (tabs, table footers and empty-state cards). */
html[data-theme="dark"] .load-detail-tabs,
html[data-theme="dark"] .load-detail-panel,
html[data-theme="dark"] .load-unloaded-vehicles,
html[data-theme="dark"] .load-add-shipment,
html[data-theme="dark"] .load-admin-override,
html[data-theme="dark"] .load-panel-footer {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .load-detail-tabs button {
    color: var(--gh-text-muted);
}
html[data-theme="dark"] .load-detail-tabs button:hover,
html[data-theme="dark"] .load-detail-tabs button:focus-visible {
    color: var(--gh-text);
    background: var(--gh-surface-raised);
}
html[data-theme="dark"] .load-detail-tabs button.active {
    color: var(--gh-accent-hover);
}
html[data-theme="dark"] .load-detail-tabs button.active::after {
    background: var(--gh-accent);
}
html[data-theme="dark"] .load-detail-tabs button span,
html[data-theme="dark"] .load-unloaded-vehicles > header > span,
html[data-theme="dark"] .load-romaneio-meta span,
html[data-theme="dark"] .load-layout-roster > header > strong {
    color: #a5d6ff;
    background: rgba(56,139,253,.16);
}
html[data-theme="dark"] .load-panel-header,
html[data-theme="dark"] .load-unloaded-vehicles > header,
html[data-theme="dark"] .load-layout-roster > header {
    color: var(--gh-text);
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .load-panel-header h2,
html[data-theme="dark"] .load-unloaded-vehicles > header h3,
html[data-theme="dark"] .load-info-grid dd,
html[data-theme="dark"] .load-add-modal-footer strong {
    color: var(--gh-text-strong);
}
html[data-theme="dark"] .load-panel-header p,
html[data-theme="dark"] .load-unloaded-vehicles > header p,
html[data-theme="dark"] .load-unloaded-empty,
html[data-theme="dark"] .load-unloaded-stage small,
html[data-theme="dark"] .load-next-stage small,
html[data-theme="dark"] .load-info-grid dt,
html[data-theme="dark"] .load-trip-total {
    color: var(--gh-text-muted);
}
html[data-theme="dark"] .load-vehicle-table table {
    --bs-table-color: var(--gh-text);
    --bs-table-bg: var(--gh-canvas-subtle);
    --bs-table-border-color: var(--gh-border-muted);
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
}
html[data-theme="dark"] .load-vehicle-table thead th {
    color: var(--gh-text-muted);
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .load-vehicle-table tfoot td {
    color: var(--gh-text-strong);
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .load-vehicle-table td:nth-child(2) small,
html[data-theme="dark"] .load-row-status,
html[data-theme="dark"] .load-next-stage-empty {
    color: var(--gh-text-muted);
}
html[data-theme="dark"] .load-row-more-button {
    color: var(--gh-accent-hover);
    background: var(--gh-canvas);
    border-color: var(--gh-control-border);
}
html[data-theme="dark"] .load-row-more-button:hover,
html[data-theme="dark"] .load-row-more-button[aria-expanded="true"] {
    color: #fff;
    background: var(--gh-accent);
    border-color: var(--gh-accent);
}
html[data-theme="dark"] .load-unloaded-location,
html[data-theme="dark"] .load-next-stage-coleta {
    color: #7ee787;
    background: rgba(46,160,67,.16);
    border-color: rgba(63,185,80,.42);
}
html[data-theme="dark"] .load-next-stage-label {
    color: #a5d6ff;
    background: rgba(56,139,253,.16);
    border-color: rgba(56,139,253,.42);
}
html[data-theme="dark"] .load-next-stage-entrega {
    color: #f2cc60;
    background: rgba(187,128,9,.17);
    border-color: rgba(210,153,34,.42);
}
html[data-theme="dark"] .load-finance-card {
    color: var(--gh-text);
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .load-finance-card small,
html[data-theme="dark"] .load-finance-card em { color: var(--gh-text-muted); }
html[data-theme="dark"] .load-finance-card strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .load-finance-card.is-result {
    background: rgba(46,160,67,.09);
    border-color: rgba(63,185,80,.35);
}
html[data-theme="dark"] .load-finance-card.is-loss {
    background: rgba(248,81,73,.09);
    border-color: rgba(248,81,73,.35);
}
html[data-theme="dark"] .load-finance-card.is-loss strong { color: #ff7b72; }
html[data-theme="dark"] .load-stop-row,
html[data-theme="dark"] .load-admin-override {
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .load-add-grid label > span,
html[data-theme="dark"] .load-stop-row label > span,
html[data-theme="dark"] .load-admin-override label,
html[data-theme="dark"] .load-admin-override small { color: var(--gh-text-muted); }
html[data-theme="dark"] .load-info-grid { background: var(--gh-canvas-subtle); }
html[data-theme="dark"] .load-romaneio-heading > span {
    color: #a5d6ff;
    background: rgba(56,139,253,.16);
}
html[data-theme="dark"] .load-romaneio-warning {
    color: #f2cc60;
    background: rgba(187,128,9,.17);
    border-color: #9e6a03;
}
html[data-theme="dark"] .load-romaneio-preview-title span,
html[data-theme="dark"] .load-romaneio-help,
html[data-theme="dark"] .load-confirm-manifest small { color: var(--gh-text-muted); }
html[data-theme="dark"] .load-romaneio-copy:disabled {
    color: #6e7681;
    background: var(--gh-surface-raised);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .load-romaneio-copy.is-copied,
html[data-theme="dark"] .load-copy-feedback {
    color: #7ee787;
    background: rgba(46,160,67,.16);
    border-color: rgba(63,185,80,.42);
}
html[data-theme="dark"] .load-confirm-manifest {
    background: rgba(46,160,67,.08);
    border-color: rgba(63,185,80,.28);
}
html[data-theme="dark"] .load-undo-manifest {
    background: rgba(248,81,73,.08);
    border-color: rgba(248,81,73,.28);
}
html[data-theme="dark"] .load-romaneio-advanced {
    color: var(--gh-accent-hover);
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .load-add-vehicles-modal .modal-header,
html[data-theme="dark"] .load-add-vehicles-modal .modal-body,
html[data-theme="dark"] .load-add-modal-filters,
html[data-theme="dark"] .load-add-route-list,
html[data-theme="dark"] .load-add-modal-footer {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .load-add-modal-filters {
    background: var(--gh-canvas);
}
html[data-theme="dark"] .load-add-capacity {
    color: var(--gh-text-muted);
    background: var(--gh-surface-raised);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .load-add-modal-heading p,
html[data-theme="dark"] .load-add-modal-heading > span,
html[data-theme="dark"] .load-add-modal-footer small { color: var(--gh-text-muted); }

/* Dark alerts: keep every Bootstrap alert variant readable on dialogs and pages. */
html[data-theme="dark"] .alert {
    --bs-alert-color: var(--gh-text);
    --bs-alert-bg: var(--gh-surface-raised);
    --bs-alert-border-color: var(--gh-control-border);
    color: var(--bs-alert-color) !important;
    background-color: var(--bs-alert-bg) !important;
    border: 1px solid var(--bs-alert-border-color) !important;
    border-left-width: .3rem !important;
    box-shadow: none;
}
html[data-theme="dark"] .alert-primary,
html[data-theme="dark"] .alert-info {
    --bs-alert-color: #a5d6ff;
    --bs-alert-bg: #0d2742;
    --bs-alert-border-color: #388bfd;
}
html[data-theme="dark"] .alert-secondary,
html[data-theme="dark"] .alert-light,
html[data-theme="dark"] .alert-dark {
    --bs-alert-color: #c9d1d9;
    --bs-alert-bg: #21262d;
    --bs-alert-border-color: #484f58;
}
html[data-theme="dark"] .alert-success {
    --bs-alert-color: #7ee787;
    --bs-alert-bg: #122d20;
    --bs-alert-border-color: #238636;
}
html[data-theme="dark"] .alert-warning {
    --bs-alert-color: #f2cc60;
    --bs-alert-bg: #332b00;
    --bs-alert-border-color: #9e6a03;
}
html[data-theme="dark"] .alert-danger {
    --bs-alert-color: #ffa198;
    --bs-alert-bg: #3d171d;
    --bs-alert-border-color: #da3633;
}
html[data-theme="dark"] .alert :where(strong,.alert-heading) { color: inherit; }
html[data-theme="dark"] .alert .alert-link,
html[data-theme="dark"] .alert a:not(.btn) {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .15em;
}
html[data-theme="dark"] .alert .text-secondary { color: color-mix(in srgb, currentColor 76%, transparent) !important; }

/* Navegação contínua sem snapshots sobrepostos. A API nativa de View
   Transitions duplica layouts extensos durante a animação e causa flashes em
   tabelas e painéis; apenas o conteúdo novo recebe uma entrada discreta. */
.app-main { position: relative; }
.app-main.is-soft-loading { cursor: progress; }
.app-main.is-soft-entering { animation: central-soft-enter 110ms ease-out both; }
.app-main.is-soft-loading::before {
    position: fixed;
    z-index: 1080;
    top: 0;
    left: 0;
    width: 32%;
    height: 2px;
    content: '';
    background: linear-gradient(90deg, transparent, #2f81f7 32%, #79c0ff 70%, transparent);
    animation: central-soft-progress .85s ease-in-out infinite;
    pointer-events: none;
}
@keyframes central-soft-progress {
    from { transform: translateX(-110%); }
    to { transform: translateX(420%); }
}
@keyframes central-soft-enter {
    from { opacity: .94; transform: translateY(2px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .app-main.is-soft-loading::before { animation: none; width: 100%; }
    .app-main.is-soft-entering { animation: none; }
}

/* Financial: make failed attempts visible without mixing them with manual costs. */
.financial-failed-charge-card {
    border-color: #f0ad26;
    background: #fff8e7;
}
.financial-failed-charge-card small:last-child { color: #8a5b00; }
.financial-client-charge-breakdown {
    max-width: 42rem;
    padding: .75rem 1rem;
    border: 1px solid #d8dee4;
    border-radius: .5rem;
    background: #f6f8fa;
}
.financial-client-charge-breakdown > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .25rem 0;
}
.financial-client-charge-breakdown .is-failed-charge { color: #9a6700; }
.financial-client-charge-breakdown .is-total {
    margin-top: .25rem;
    padding-top: .5rem;
    border-top: 1px solid #d8dee4;
    font-size: 1.05rem;
}
.financial-client-charge-breakdown > small { display: block; color: #57606a; }
.financial-expense-group + .financial-expense-group {
    padding-top: .75rem;
    border-top: 1px solid #d8dee4;
}

html[data-theme="dark"] .financial-failed-charge-card {
    border-color: #9e6a03;
    background: #2d2600;
}
html[data-theme="dark"] .financial-failed-charge-card small:last-child,
html[data-theme="dark"] .financial-client-charge-breakdown .is-failed-charge { color: #f2cc60; }
html[data-theme="dark"] .financial-client-charge-breakdown {
    border-color: var(--gh-border);
    background: var(--gh-canvas-subtle);
}
html[data-theme="dark"] .financial-client-charge-breakdown .is-total,
html[data-theme="dark"] .financial-expense-group + .financial-expense-group { border-color: var(--gh-border); }
html[data-theme="dark"] .financial-client-charge-breakdown > small { color: var(--gh-text-muted); }
html[data-theme="dark"] .financial-expense-entry {
    border-color: var(--gh-border) !important;
    background: var(--gh-surface);
}

/* Cadastro de veículos: formulário dividido por contexto operacional. */
.vehicle-editor-page {
    width: min(100%, 94rem);
    margin: 0 auto;
    color: #15385f;
}
.vehicle-editor-page__heading {
    min-height: 4.8rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1rem;
}
.vehicle-editor-page__mark {
    width: 3.25rem;
    height: 3.25rem;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid #cce0f3;
    border-radius: .9rem;
    color: #0968bd;
    background: linear-gradient(145deg, #f7fbff, #e8f3fd);
    box-shadow: 0 .35rem .85rem rgba(21, 69, 111, .08);
}
.vehicle-editor-page__mark svg,
.vehicle-editor-section__icon svg,
.vehicle-editor-lookup button svg,
.vehicle-editor-history-note svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.vehicle-editor-page__eyebrow {
    display: block;
    margin-bottom: .08rem;
    color: #0870cb;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}
.vehicle-editor-page__heading h1 {
    margin: 0;
    color: #102f52;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -.025em;
}
.vehicle-editor-page__heading p {
    margin: .15rem 0 0;
    color: #6c8098;
    font-size: .82rem;
}
.vehicle-editor-page__status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-left: auto;
    padding: .38rem .7rem;
    border: 1px solid #cbd6e1;
    border-radius: 999px;
    color: #607187;
    background: #fff;
    font-size: .72rem;
    font-weight: 800;
}
.vehicle-editor-page__status i {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #8998a8;
}
.vehicle-editor-page__status.is-active {
    border-color: #a9ddc4;
    color: #087946;
    background: #eefaf4;
}
.vehicle-editor-page__status.is-active i {
    background: #16a464;
    box-shadow: 0 0 0 .2rem rgba(22, 164, 100, .12);
}
.vehicle-editor-card {
    overflow: hidden;
    border: 1px solid #cedbe8;
    border-radius: .8rem;
    background: #f5f8fc;
    box-shadow: 0 .6rem 1.8rem rgba(18, 55, 91, .08);
}
.vehicle-editor {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}
.vehicle-editor-alert { margin: 1rem 1rem 0; }
.vehicle-editor-section {
    overflow: hidden;
    border: 1px solid #d6e1ec;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 .18rem .5rem rgba(22, 59, 96, .035);
}
.vehicle-editor-section__header {
    min-height: 4rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1rem;
    border-bottom: 1px solid #e0e8f0;
    background: linear-gradient(90deg, #f9fbfd, #fff);
}
.vehicle-editor-section__icon {
    width: 2.45rem;
    height: 2.45rem;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: .65rem;
    color: #0c6dc3;
    background: #eaf4fe;
}
.vehicle-editor-section__icon svg { width: 1.2rem; height: 1.2rem; }
.vehicle-editor-section__header > span:nth-child(2) { min-width: 0; }
.vehicle-editor-section__header strong {
    display: block;
    color: #183c64;
    font-size: .9rem;
    line-height: 1.2;
}
.vehicle-editor-section__header small {
    display: block;
    margin-top: .15rem;
    color: #74869a;
    font-size: .7rem;
}
.vehicle-editor-section__step {
    margin-left: auto;
    color: #b3c1cf;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .08em;
}
.vehicle-editor-section__body { padding: 1rem; }
.vehicle-editor .form-label {
    margin-bottom: .35rem;
    color: #294d73;
    font-size: .75rem;
    font-weight: 750;
}
.vehicle-editor .form-control,
.vehicle-editor .form-select,
.vehicle-editor .input-group-text {
    min-height: 2.45rem;
    border-color: #c9d7e5;
    font-size: .8rem;
}
.vehicle-editor .form-control:focus,
.vehicle-editor .form-select:focus {
    border-color: #4b9ee8;
    box-shadow: 0 0 0 .2rem rgba(32, 127, 215, .12);
}
.vehicle-editor .form-text { margin-top: .3rem; color: #7b8ca0; font-size: .68rem; }
.vehicle-editor-section--auction { border-color: #ead8a8; }
.vehicle-editor-section--auction .vehicle-editor-section__header {
    border-color: #eee0ba;
    background: linear-gradient(90deg, #fffaf0, #fff);
}
.vehicle-editor-section--auction .vehicle-editor-section__icon {
    color: #9b6900;
    background: #fff0c7;
}
.vehicle-editor-auction-note {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: .85rem;
    padding: .65rem .75rem;
    border: 1px solid #f0dfb2;
    border-radius: .5rem;
    color: #775a17;
    background: #fffbf1;
}
.vehicle-editor-auction-note > span {
    width: 1.35rem;
    height: 1.35rem;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #d69a12;
    font-size: .72rem;
    font-weight: 900;
}
.vehicle-editor-auction-note p { margin: 0; font-size: .7rem; line-height: 1.4; }
.vehicle-editor-auction-note strong { display: block; margin-bottom: .05rem; color: #684d0e; }
.vehicle-editor-lookup {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(17rem, .75fr);
    gap: 1rem;
    padding: .85rem;
    border: 1px solid #cfe0f1;
    border-radius: .6rem;
    background: #f5faff;
}
.vehicle-editor-lookup__value {
    padding-left: 1rem;
    border-left: 1px solid #d9e5f0;
}
.vehicle-editor.has-auction-context .vehicle-editor-lookup__value {
    border-color: #e5cf92;
    border-radius: .45rem;
    background: #fffaf0;
}
.vehicle-editor.has-auction-context .vehicle-editor-lookup__value::after {
    display: block;
    margin-top: .35rem;
    color: #8a6614;
    content: 'Consulta automática de valor desativada para veículo de leilão.';
    font-size: .65rem;
}
.vehicle-editor-lookup button {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding-inline: 1rem;
    white-space: nowrap;
}
.vehicle-editor-lookup button svg { width: 1rem; height: 1rem; }
.vehicle-editor-history-note {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1rem;
    padding: .58rem .7rem;
    border: 1px solid #e1e8ef;
    border-radius: .45rem;
    color: #718398;
    background: #f8fafc;
    font-size: .68rem;
}
.vehicle-editor-history-note svg { width: 1rem; height: 1rem; flex: none; color: #4e799f; }
.vehicle-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 -1rem -1rem;
    padding: .9rem 1rem;
    border-top: 1px solid #d4e0eb;
    background: #fff;
}
.vehicle-editor-active .form-check { display: flex; align-items: center; gap: .4rem; }
.vehicle-editor-active .form-check-input { margin-top: 0; }
.vehicle-editor-active label strong,
.vehicle-editor-active label small { display: block; }
.vehicle-editor-active label strong { color: #294c70; font-size: .75rem; }
.vehicle-editor-active label small { color: #8090a2; font-size: .65rem; }

html[data-theme="dark"] .vehicle-editor-page { color: #dbe8f5; }
html[data-theme="dark"] .vehicle-editor-page__mark {
    border-color: #32506b;
    color: #72baff;
    background: linear-gradient(145deg, #172c40, #112335);
    box-shadow: none;
}
html[data-theme="dark"] .vehicle-editor-page__heading h1 { color: #ecf5ff; }
html[data-theme="dark"] .vehicle-editor-page__heading p { color: #9db0c3; }
html[data-theme="dark"] .vehicle-editor-page__status { border-color: #385168; color: #b8c8d8; background: #122437; }
html[data-theme="dark"] .vehicle-editor-page__status.is-active { border-color: #28644b; color: #69d59e; background: #112e25; }
html[data-theme="dark"] .vehicle-editor-card { border-color: #294258; background: #0d1a27; box-shadow: none; }
html[data-theme="dark"] .vehicle-editor-section { border-color: #2b4359; background: #112335; box-shadow: none; }
html[data-theme="dark"] .vehicle-editor-section__header { border-color: #2b4359; background: linear-gradient(90deg, #142a3e, #112335); }
html[data-theme="dark"] .vehicle-editor-section__icon { color: #77bdff; background: #183653; }
html[data-theme="dark"] .vehicle-editor-section__header strong { color: #e0effc; }
html[data-theme="dark"] .vehicle-editor-section__header small,
html[data-theme="dark"] .vehicle-editor-section__step { color: #91a6ba; }
html[data-theme="dark"] .vehicle-editor .form-label,
html[data-theme="dark"] .vehicle-editor-active label strong { color: #cfe0ef; }
html[data-theme="dark"] .vehicle-editor .form-text,
html[data-theme="dark"] .vehicle-editor-active label small { color: #8fa5b9; }
html[data-theme="dark"] .vehicle-editor-section--auction { border-color: #5b4d29; }
html[data-theme="dark"] .vehicle-editor-section--auction .vehicle-editor-section__header { border-color: #5b4d29; background: linear-gradient(90deg, #2b2718, #172536); }
html[data-theme="dark"] .vehicle-editor-section--auction .vehicle-editor-section__icon { color: #f0c55e; background: #3a321b; }
html[data-theme="dark"] .vehicle-editor-auction-note { border-color: #5b4c27; color: #e8ce8b; background: #292515; }
html[data-theme="dark"] .vehicle-editor-auction-note strong { color: #f2d785; }
html[data-theme="dark"] .vehicle-editor-lookup { border-color: #31506c; background: #13293c; }
html[data-theme="dark"] .vehicle-editor-lookup__value { border-color: #31506c; }
html[data-theme="dark"] .vehicle-editor.has-auction-context .vehicle-editor-lookup__value { border-color: #5b4c27; background: #292515; }
html[data-theme="dark"] .vehicle-editor.has-auction-context .vehicle-editor-lookup__value::after { color: #e8ce8b; }
html[data-theme="dark"] .vehicle-editor-history-note { border-color: #2c455c; color: #9bb0c4; background: #14283a; }
html[data-theme="dark"] .vehicle-editor-history-note svg { color: #77b7ed; }
html[data-theme="dark"] .vehicle-editor-footer { border-color: #294258; background: #112335; }

@media (max-width: 767.98px) {
    .vehicle-editor-page__heading { align-items: flex-start; }
    .vehicle-editor-page__mark { width: 2.8rem; height: 2.8rem; }
    .vehicle-editor-page__heading h1 { font-size: 1.35rem; }
    .vehicle-editor-page__status { margin-top: .2rem; }
    .vehicle-editor { padding: .7rem; }
    .vehicle-editor-section__header,
    .vehicle-editor-section__body { padding: .75rem; }
    .vehicle-editor-section__step { display: none; }
    .vehicle-editor-lookup { grid-template-columns: 1fr; padding: .7rem; }
    .vehicle-editor-lookup__value { padding: .75rem 0 0; border-top: 1px solid #d9e5f0; border-left: 0; }
    .vehicle-editor-footer { align-items: stretch; flex-direction: column; margin: 0 -.7rem -.7rem; padding: .8rem .7rem; }
    .vehicle-editor-footer > div:last-child { justify-content: flex-end; }
    html[data-theme="dark"] .vehicle-editor-lookup__value { border-color: #31506c; }
}

/* Authoritative GitHub Dark contrast layer.
 * Keep this block last: older page modules still carry their original navy theme. */
html[data-theme="dark"] body,
html[data-theme="dark"] .app-main,
html[data-theme="dark"] .main-content {
    color: var(--gh-text);
    background: var(--gh-canvas);
}

html[data-theme="dark"] ::selection {
    color: var(--gh-text-strong);
    background: rgba(56, 139, 253, .35);
}

html[data-theme="dark"] :focus-visible {
    outline-color: var(--gh-accent-hover);
}

html[data-theme="dark"] * {
    scrollbar-color: #484f58 var(--gh-canvas);
}

html[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--gh-canvas); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #484f58; border: 2px solid var(--gh-canvas); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #6e7681; }

html[data-theme="dark"] select option {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
}

html[data-theme="dark"] .search-select-panel {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-control-border);
    box-shadow: 0 12px 32px rgba(1, 4, 9, .72);
}

html[data-theme="dark"] .search-select-hint {
    color: var(--gh-text-muted);
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}

html[data-theme="dark"] .search-select-option { color: var(--gh-text); }
html[data-theme="dark"] .search-select-option:hover,
html[data-theme="dark"] .search-select-option.is-active {
    color: var(--gh-text-strong);
    background: var(--gh-accent-muted);
}
html[data-theme="dark"] .search-select-option.is-selected {
    color: #e3b341;
    background: rgba(187, 128, 9, .15);
}
html[data-theme="dark"] .search-select-empty { color: var(--gh-text-muted); }

/* Quote editor */
html[data-theme="dark"] .quote-editor {
    --quote-editor-line: var(--gh-border);
    color: var(--gh-text);
}

html[data-theme="dark"] .quote-editor-header h1,
html[data-theme="dark"] .quote-editor-section > .card-header h2,
html[data-theme="dark"] .quote-editor-summary h2,
html[data-theme="dark"] .quote-editor-summary h3,
html[data-theme="dark"] .quote-editor-summary h4,
html[data-theme="dark"] .quote-editor-summary section > strong,
html[data-theme="dark"] .quote-flow-endpoint strong {
    color: var(--gh-text-strong);
}

html[data-theme="dark"] .quote-editor-header p,
html[data-theme="dark"] .quote-editor-breadcrumb,
html[data-theme="dark"] .quote-editor-section > .card-header p,
html[data-theme="dark"] .quote-editor-section .form-text,
html[data-theme="dark"] .quote-flow-endpoint small,
html[data-theme="dark"] .quote-editor .quote-flow-card__hint {
    color: var(--gh-text-muted);
}

html[data-theme="dark"] .quote-editor-breadcrumb a,
html[data-theme="dark"] .quote-editor-steps button.active,
html[data-theme="dark"] .quote-editor-steps button.active small {
    color: var(--gh-accent-hover);
}

html[data-theme="dark"] .quote-editor-breadcrumb strong,
html[data-theme="dark"] .quote-editor .quote-flow-heading .form-label,
html[data-theme="dark"] .quote-editor .quote-flow-card__identity strong {
    color: var(--gh-text-strong);
}

html[data-theme="dark"] .quote-editor-steps,
html[data-theme="dark"] .quote-editor-section,
html[data-theme="dark"] .quote-editor-section > .card-header,
html[data-theme="dark"] .quote-editor-summary,
html[data-theme="dark"] .quote-editor-summary > header,
html[data-theme="dark"] .quote-editor-summary > footer {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle) !important;
    border-color: var(--gh-border);
    box-shadow: none;
}

html[data-theme="dark"] .quote-editor-section > .card-body,
html[data-theme="dark"] .quote-editor-summary__body {
    color: var(--gh-text);
    background: var(--gh-canvas);
}

html[data-theme="dark"] .quote-editor-summary__body > section,
html[data-theme="dark"] .quote-editor .quote-flow-heading,
html[data-theme="dark"] .quote-summary-total {
    border-color: var(--gh-border);
}

html[data-theme="dark"] .quote-editor-steps button { color: #b1bac4; }
html[data-theme="dark"] .quote-editor-steps button:not(:last-child)::after {
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .quote-editor-steps button > span {
    color: #b1bac4;
    background: var(--gh-surface-raised);
}
html[data-theme="dark"] .quote-editor-steps button small { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-editor-steps button.active > span {
    color: #fff;
    background: var(--gh-accent);
    box-shadow: none;
}

html[data-theme="dark"] .quote-editor-secondary-fields {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .quote-editor-secondary-fields > summary { color: var(--gh-text); }
html[data-theme="dark"] .quote-editor-secondary-fields > summary small { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-editor-secondary-fields > summary::before {
    color: var(--gh-accent-hover);
    background: var(--gh-accent-muted);
}

html[data-theme="dark"] .quote-editor .quote-flow-shell { background: transparent; }
html[data-theme="dark"] .quote-flow-endpoint::after,
html[data-theme="dark"] .quote-editor .quote-flow-grid::before { background: #484f58; }
html[data-theme="dark"] .quote-flow-endpoint > span {
    color: var(--gh-accent-hover);
    background: var(--gh-accent-muted);
    box-shadow: 0 0 0 .25rem var(--gh-canvas);
}
html[data-theme="dark"] .quote-flow-endpoint__control > label,
html[data-theme="dark"] .quote-editor .quote-flow-card__provider-row > label,
html[data-theme="dark"] .quote-editor .quote-flow-card__cost > label,
html[data-theme="dark"] .quote-editor .quote-flow-card__address > label,
html[data-theme="dark"] .quote-editor .quote-flow-card__route-label {
    color: #b1bac4;
}

html[data-theme="dark"] .quote-editor .quote-flow-card,
html[data-theme="dark"] .quote-editor .quote-flow-card__body {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: #484f58;
    box-shadow: none;
}
html[data-theme="dark"] .quote-editor .quote-flow-card:hover,
html[data-theme="dark"] .quote-editor .quote-flow-card:focus-within { border-color: #6e7681; }
html[data-theme="dark"] .quote-editor .quote-flow-card::before { background: var(--gh-canvas); }
html[data-theme="dark"] .quote-editor .quote-flow-card__header {
    color: var(--gh-text);
    border-color: #484f58;
}
html[data-theme="dark"] .quote-editor .quote-flow-card--coleta .quote-flow-card__header {
    background: rgba(187, 128, 9, .13) !important;
    box-shadow: inset 3px 0 var(--gh-warning);
}
html[data-theme="dark"] .quote-editor .quote-flow-card--vaga .quote-flow-card__header {
    background: rgba(56, 139, 253, .13) !important;
    box-shadow: inset 3px 0 var(--gh-accent);
}
html[data-theme="dark"] .quote-editor .quote-flow-card--entrega .quote-flow-card__header {
    background: rgba(46, 160, 67, .13) !important;
    box-shadow: inset 3px 0 var(--gh-success);
}
html[data-theme="dark"] .quote-editor .quote-flow-card__actions {
    background: transparent;
    border-color: transparent;
}
html[data-theme="dark"] .quote-editor .quote-flow-card__identity small,
html[data-theme="dark"] .quote-editor .quote-flow-card__subtype,
html[data-theme="dark"] .quote-editor .quote-flow-card__drag,
html[data-theme="dark"] .quote-editor .quote-flow-card__actions button {
    color: #b1bac4;
}

html[data-theme="dark"] .quote-editor .form-control,
html[data-theme="dark"] .quote-editor .form-select,
html[data-theme="dark"] .quote-editor .input-group-text,
html[data-theme="dark"] .quote-editor .search-select-input {
    color: var(--gh-text);
    background-color: var(--gh-canvas-inset);
    border-color: var(--gh-control-border);
}
html[data-theme="dark"] .quote-editor .form-control::placeholder { color: #6e7681; }
html[data-theme="dark"] .quote-editor .quote-flow-card__cost .form-control { color: #56d364; }

html[data-theme="dark"] .quote-editor-summary section > small,
html[data-theme="dark"] .quote-summary-stage small,
html[data-theme="dark"] .quote-summary-values > div { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-summary-stage b,
html[data-theme="dark"] .quote-summary-stage > strong,
html[data-theme="dark"] .quote-summary-values > div b,
html[data-theme="dark"] .quote-summary-total strong { color: var(--gh-text-strong); }

/* Central Hoje */
html[data-theme="dark"] .central-today-page {
    --today-navy: var(--gh-text-strong);
    --today-blue: var(--gh-accent-hover);
    --today-line: var(--gh-border);
    --today-muted: var(--gh-text-muted);
    color: var(--gh-text);
}

html[data-theme="dark"] .central-today-heading > div:first-child > small,
html[data-theme="dark"] .central-today-heading p,
html[data-theme="dark"] .central-today-date small,
html[data-theme="dark"] .central-today-date em,
html[data-theme="dark"] .central-today-metric em,
html[data-theme="dark"] .central-action-card > header p,
html[data-theme="dark"] .central-action-table td:nth-child(6) small,
html[data-theme="dark"] .central-action-table td:nth-child(9),
html[data-theme="dark"] .central-action-mobile p,
html[data-theme="dark"] .central-action-mobile em,
html[data-theme="dark"] .central-mini-queue td small,
html[data-theme="dark"] .central-transit-row small {
    color: var(--gh-text-muted);
}

html[data-theme="dark"] .central-today-heading h1,
html[data-theme="dark"] .central-action-card h2,
html[data-theme="dark"] .central-mini-queue h2,
html[data-theme="dark"] .central-now-card h2,
html[data-theme="dark"] .central-transit-card h2,
html[data-theme="dark"] .central-today-metric strong,
html[data-theme="dark"] .central-now-card b {
    color: var(--gh-text-strong);
}

html[data-theme="dark"] .central-today-date,
html[data-theme="dark"] .central-today-metric,
html[data-theme="dark"] .central-action-card,
html[data-theme="dark"] .central-mini-queue,
html[data-theme="dark"] .central-now-card,
html[data-theme="dark"] .central-transit-card {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: none;
}

html[data-theme="dark"] .central-today-date > span { color: var(--gh-accent-hover); }
html[data-theme="dark"] .central-today-date a,
html[data-theme="dark"] .central-action-tabs button,
html[data-theme="dark"] .central-action-clear,
html[data-theme="dark"] .central-action-filters select {
    color: var(--gh-text);
    background: var(--gh-canvas);
    border-color: var(--gh-control-border);
}
html[data-theme="dark"] .central-action-tabs button:hover,
html[data-theme="dark"] .central-today-date a:hover { border-color: #6e7681; background: var(--gh-surface-raised); }
html[data-theme="dark"] .central-action-tabs button.active {
    color: #fff;
    background: #1f6feb;
    border-color: #1f6feb;
}
html[data-theme="dark"] .central-action-filters label > span { color: #b1bac4; }

html[data-theme="dark"] .central-today-motto {
    color: #56d364;
    background: rgba(46, 160, 67, .12);
    border-color: rgba(63, 185, 80, .4);
}
html[data-theme="dark"] .central-today-motto small { color: #7ee787; }

html[data-theme="dark"] .central-today-metric { color: var(--gh-text); }
html[data-theme="dark"] .central-today-metric:hover { color: var(--gh-text-strong); border-color: #6e7681; }
html[data-theme="dark"] .central-today-metric small { color: #b1bac4; }
html[data-theme="dark"] .central-today-metric > b { color: var(--gh-text-muted); }
html[data-theme="dark"] .central-today-metric-icon {
    color: var(--gh-accent-hover);
    background: var(--gh-accent-muted);
}
html[data-theme="dark"] .central-today-metric.is-danger { border-color: rgba(248, 81, 73, .45); }
html[data-theme="dark"] .central-today-metric.is-danger .central-today-metric-icon { color: #ff7b72; background: rgba(248, 81, 73, .15); }
html[data-theme="dark"] .central-today-metric.is-danger strong { color: #ff7b72; }
html[data-theme="dark"] .central-today-metric.is-warning { border-color: rgba(210, 153, 34, .45); }
html[data-theme="dark"] .central-today-metric.is-warning .central-today-metric-icon { color: #e3b341; background: rgba(187, 128, 9, .15); }
html[data-theme="dark"] .central-today-metric.is-success { border-color: rgba(63, 185, 80, .4); }
html[data-theme="dark"] .central-today-metric.is-success .central-today-metric-icon { color: #56d364; background: rgba(46, 160, 67, .15); }
html[data-theme="dark"] .central-today-metric.is-secondary .central-today-metric-icon { color: #b1bac4; background: var(--gh-surface-raised); }

html[data-theme="dark"] .central-action-table th,
html[data-theme="dark"] .central-mini-queue th {
    color: #b1bac4;
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .central-action-table td,
html[data-theme="dark"] .central-mini-queue td {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .central-action-table tbody tr:hover > td,
html[data-theme="dark"] .central-mini-queue tbody tr:hover > td { background: var(--gh-surface-raised); }
html[data-theme="dark"] .central-action-table a,
html[data-theme="dark"] .central-mini-queue a,
html[data-theme="dark"] .central-mini-queue header a,
html[data-theme="dark"] .central-transit-card header a { color: var(--gh-accent-hover); }

html[data-theme="dark"] .central-now-card > a,
html[data-theme="dark"] .central-transit-row {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .central-now-card > a:hover,
html[data-theme="dark"] .central-transit-row:hover { background: var(--gh-surface-raised); }
html[data-theme="dark"] .central-now-card > a > span {
    color: var(--gh-accent-hover);
    background: var(--gh-accent-muted);
}
html[data-theme="dark"] .central-mini-empty { color: var(--gh-text-muted); }
html[data-theme="dark"] .central-mini-empty span {
    color: var(--gh-accent-hover);
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}

/* Vehicle editor was the last legacy module still overriding the shared palette. */
html[data-theme="dark"] .vehicle-editor-page { color: var(--gh-text); }
html[data-theme="dark"] .vehicle-editor-page__mark,
html[data-theme="dark"] .vehicle-editor-section__icon {
    color: var(--gh-accent-hover);
    background: var(--gh-accent-muted);
    border-color: rgba(56, 139, 253, .4);
    box-shadow: none;
}
html[data-theme="dark"] .vehicle-editor-page__heading h1,
html[data-theme="dark"] .vehicle-editor-section__header strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .vehicle-editor-page__heading p,
html[data-theme="dark"] .vehicle-editor-section__header small,
html[data-theme="dark"] .vehicle-editor-section__step,
html[data-theme="dark"] .vehicle-editor .form-text,
html[data-theme="dark"] .vehicle-editor-active label small { color: var(--gh-text-muted); }
html[data-theme="dark"] .vehicle-editor-page__status { color: #b1bac4; background: var(--gh-surface-raised); border-color: var(--gh-border); }
html[data-theme="dark"] .vehicle-editor-page__status.is-active { color: #56d364; background: rgba(46, 160, 67, .15); border-color: rgba(63, 185, 80, .4); }
html[data-theme="dark"] .vehicle-editor-card,
html[data-theme="dark"] .vehicle-editor-section,
html[data-theme="dark"] .vehicle-editor-section__header,
html[data-theme="dark"] .vehicle-editor-footer {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .vehicle-editor .form-label,
html[data-theme="dark"] .vehicle-editor-active label strong { color: #b1bac4; }
html[data-theme="dark"] .vehicle-editor-lookup,
html[data-theme="dark"] .vehicle-editor-history-note {
    color: var(--gh-text-muted);
    background: var(--gh-canvas);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .vehicle-editor-lookup__value { border-color: var(--gh-border); }
html[data-theme="dark"] .vehicle-editor-section--auction { border-color: rgba(210, 153, 34, .4); }
html[data-theme="dark"] .vehicle-editor-section--auction .vehicle-editor-section__header,
html[data-theme="dark"] .vehicle-editor.has-auction-context .vehicle-editor-lookup__value,
html[data-theme="dark"] .vehicle-editor-auction-note {
    color: #e3b341;
    background: rgba(187, 128, 9, .12);
    border-color: rgba(210, 153, 34, .4);
}
html[data-theme="dark"] .vehicle-editor-section--auction .vehicle-editor-section__icon {
    color: #e3b341;
    background: rgba(187, 128, 9, .15);
}

html[data-theme="dark"] .central-action-selection {
    color: var(--gh-text);
    background: var(--gh-accent-muted);
    border-color: rgba(56, 139, 253, .4);
}
html[data-theme="dark"] .central-action-selection small { color: var(--gh-text-muted); }
html[data-theme="dark"] .central-action-selection__feedback { color: #ff7b72; }

/* Empty and no-result panels are shared by many legacy screens. Their light
   gradients must never leak through the authoritative dark layer. */
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .card-body.empty-state,
html[data-theme="dark"] td.empty-state,
html[data-theme="dark"] tr.empty-state > td {
    --bs-table-bg: var(--gh-canvas-subtle);
    --bs-table-color: var(--gh-text-muted);
    color: var(--gh-text-muted) !important;
    background: var(--gh-canvas-subtle) !important;
    border-color: var(--gh-border) !important;
}
html[data-theme="dark"] .empty-state .h1,
html[data-theme="dark"] .empty-state .h2,
html[data-theme="dark"] .empty-state .h3,
html[data-theme="dark"] .empty-state .h4,
html[data-theme="dark"] .empty-state .h5,
html[data-theme="dark"] .empty-state .h6,
html[data-theme="dark"] .empty-state strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .empty-state .text-secondary,
html[data-theme="dark"] .empty-state .text-muted { color: var(--gh-text-muted) !important; }

html[data-theme="dark"] .load-cost-modal-empty,
html[data-theme="dark"] .load-empty,
html[data-theme="dark"] .load-unloaded-empty,
html[data-theme="dark"] .quote-empty-state,
html[data-theme="dark"] .manifest-document-empty,
html[data-theme="dark"] .employee-empty,
html[data-theme="dark"] .provider-empty-state,
html[data-theme="dark"] .provider-route-results__empty,
html[data-theme="dark"] .provider-editor-empty {
    color: var(--gh-text-muted) !important;
    background: var(--gh-canvas-subtle) !important;
    border-color: var(--gh-border) !important;
}
html[data-theme="dark"] .quote-empty-state > span {
    color: var(--gh-accent-hover);
    background: var(--gh-accent-muted);
}
html[data-theme="dark"] .quote-empty-state strong,
html[data-theme="dark"] .provider-empty-state strong,
html[data-theme="dark"] .provider-editor-empty strong { color: var(--gh-text-strong); }

/* Quote list dashboard. This module predates the shared palette and still had
   fixed light-theme ink colors, which became almost invisible in dark mode. */
html[data-theme="dark"] .quote-dashboard {
    --quote-line: var(--gh-border);
    color: var(--gh-text);
}
html[data-theme="dark"] .quote-dashboard .quote-page-header h1,
html[data-theme="dark"] .quote-dashboard .quote-list-card > header h2,
html[data-theme="dark"] .quote-dashboard .quote-table td > strong,
html[data-theme="dark"] .quote-dashboard .quote-metric-content > strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .quote-dashboard .quote-page-header p,
html[data-theme="dark"] .quote-dashboard .quote-breadcrumb,
html[data-theme="dark"] .quote-dashboard .quote-list-card > header p,
html[data-theme="dark"] .quote-dashboard .quote-list-footer { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-dashboard .quote-export-button {
    color: var(--gh-text);
    background: var(--gh-surface-raised);
    border-color: var(--gh-control-border);
    box-shadow: none;
}
html[data-theme="dark"] .quote-dashboard .quote-export-button:hover:not(:disabled) {
    color: var(--gh-text-strong);
    background: #30363d;
    border-color: #6e7681;
}
html[data-theme="dark"] .quote-dashboard .quote-export-button:disabled {
    color: var(--gh-text-muted);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    opacity: .65;
}
html[data-theme="dark"] .quote-dashboard .quote-metric-card,
html[data-theme="dark"] .quote-dashboard .quote-filter-card,
html[data-theme="dark"] .quote-dashboard .quote-list-card {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .quote-dashboard a.quote-metric-card:hover {
    color: var(--gh-text-strong);
    background: var(--gh-surface-raised);
    border-color: #6e7681;
    box-shadow: none;
}
html[data-theme="dark"] .quote-dashboard .quote-metric-content > u,
html[data-theme="dark"] .quote-dashboard .quote-metric-content > .metric-name { color: #b1bac4; }
html[data-theme="dark"] .quote-dashboard .quote-metric-content > small { color: var(--gh-text); }
html[data-theme="dark"] .quote-dashboard .quote-metric-content > span:not(.metric-name):not(.quote-progress),
html[data-theme="dark"] .quote-dashboard .quote-metric-content .trend-neutral { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-dashboard .quote-metric-content .trend-up { color: #56d364; }
html[data-theme="dark"] .quote-dashboard .quote-metric-content .trend-down { color: #ff7b72; }
html[data-theme="dark"] .quote-dashboard .quote-metric-icon.tone-blue { color: #58a6ff; background: rgba(56, 139, 253, .15); }
html[data-theme="dark"] .quote-dashboard .quote-metric-icon.tone-teal,
html[data-theme="dark"] .quote-dashboard .quote-metric-icon.tone-green { color: #56d364; background: rgba(46, 160, 67, .15); }
html[data-theme="dark"] .quote-dashboard .quote-metric-icon.tone-amber { color: #e3b341; background: rgba(187, 128, 9, .15); }
html[data-theme="dark"] .quote-dashboard .quote-metric-icon.tone-red { color: #ff7b72; background: rgba(248, 81, 73, .15); }
html[data-theme="dark"] .quote-dashboard .quote-progress,
html[data-theme="dark"] .quote-dashboard .quote-row-margin {
    background: var(--gh-canvas-inset);
    border: 1px solid var(--gh-border);
}
html[data-theme="dark"] .quote-dashboard .quote-filter-grid label > span,
html[data-theme="dark"] .quote-dashboard .quote-period-field legend,
html[data-theme="dark"] .quote-dashboard .quote-list-tools label > span { color: #b1bac4; }
html[data-theme="dark"] .quote-dashboard .form-control,
html[data-theme="dark"] .quote-dashboard .form-select {
    color: var(--gh-text);
    background-color: var(--gh-canvas-inset);
    border-color: var(--gh-control-border);
}
html[data-theme="dark"] .quote-dashboard .form-control::placeholder { color: #6e7681; }
html[data-theme="dark"] .quote-dashboard .form-control:focus,
html[data-theme="dark"] .quote-dashboard .form-select:focus {
    border-color: var(--gh-accent);
    box-shadow: 0 0 0 .2rem rgba(47, 129, 247, .2);
}
html[data-theme="dark"] .quote-dashboard .quote-period-field > div > span { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-dashboard .quote-status-tabs a {
    color: #b1bac4;
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .quote-dashboard .quote-status-tabs a:hover {
    color: var(--gh-text-strong);
    background: var(--gh-surface-raised);
    border-color: #6e7681;
}
html[data-theme="dark"] .quote-dashboard .quote-status-tabs a.active {
    color: var(--gh-text-strong);
    background: var(--gh-accent-muted);
    border-color: var(--gh-accent);
    box-shadow: inset 0 0 0 1px rgba(56, 139, 253, .2);
}
html[data-theme="dark"] .quote-dashboard .quote-status-tabs .quote-clear-filters {
    color: var(--gh-accent-hover);
    background: transparent;
    border-color: transparent;
}
html[data-theme="dark"] .quote-dashboard .quote-list-card > header,
html[data-theme="dark"] .quote-dashboard .quote-list-footer { border-color: var(--gh-border); }
html[data-theme="dark"] .quote-dashboard .quote-table {
    --bs-table-color: var(--gh-text);
    --bs-table-bg: var(--gh-canvas-subtle);
    --bs-table-border-color: var(--gh-border);
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
}
html[data-theme="dark"] .quote-dashboard .quote-table thead th {
    color: #b1bac4;
    background: var(--gh-canvas) !important;
    border-color: var(--gh-border);
}
html[data-theme="dark"] .quote-dashboard .quote-table tbody td {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle) !important;
    border-color: var(--gh-border);
}
html[data-theme="dark"] .quote-dashboard .quote-table tbody tr:hover > td { background: var(--gh-surface-raised) !important; }
html[data-theme="dark"] .quote-dashboard .quote-table td > small,
html[data-theme="dark"] .quote-dashboard .quote-code-cell small,
html[data-theme="dark"] .quote-dashboard .quote-table.is-grid tbody td::before { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-dashboard .quote-code-cell a,
html[data-theme="dark"] .quote-dashboard .quote-row-document { color: var(--gh-accent-hover); }
html[data-theme="dark"] .quote-dashboard .quote-stage-collection { color: #79c0ff; background: rgba(56, 139, 253, .15); }
html[data-theme="dark"] .quote-dashboard .quote-stage-transport { color: #a5d6ff; background: rgba(31, 111, 235, .2); }
html[data-theme="dark"] .quote-dashboard .quote-stage-delivery { color: #7ee787; background: rgba(46, 160, 67, .15); }
html[data-theme="dark"] .quote-dashboard .quote-status-gerado { color: #e3b341; background: rgba(187, 128, 9, .18); }
html[data-theme="dark"] .quote-dashboard .quote-status-aprovado { color: #7ee787; background: rgba(46, 160, 67, .18); }
html[data-theme="dark"] .quote-dashboard .quote-status-pendente { color: #79c0ff; background: rgba(56, 139, 253, .18); }
html[data-theme="dark"] .quote-dashboard .quote-status-recusado,
html[data-theme="dark"] .quote-dashboard .quote-status-cancelado { color: #ff7b72; background: rgba(248, 81, 73, .18); }
html[data-theme="dark"] .quote-dashboard .quote-action-trigger { color: var(--gh-text-muted); background: transparent; }
html[data-theme="dark"] .quote-dashboard .quote-action-trigger:hover,
html[data-theme="dark"] .quote-dashboard .quote-action-trigger[aria-expanded="true"] {
    color: var(--gh-accent-hover);
    background: var(--gh-surface-raised);
}
html[data-theme="dark"] .quote-dashboard .quote-table.is-grid tbody tr:not(.quote-empty-row) {
    color: var(--gh-text);
    background: var(--gh-canvas-subtle);
    border-color: var(--gh-border);
    box-shadow: none;
}
html[data-theme="dark"] .quote-dashboard .quote-empty-state { color: var(--gh-text-muted); }
html[data-theme="dark"] .quote-dashboard .quote-empty-state > span { color: var(--gh-accent-hover); background: var(--gh-accent-muted); }
html[data-theme="dark"] .quote-dashboard .quote-empty-state strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .quote-dashboard .quote-tip {
    color: #a5d6ff;
    background: rgba(56, 139, 253, .12);
    border-color: rgba(56, 139, 253, .4);
}
html[data-theme="dark"] .quote-dashboard .quote-tip p { color: #b1bac4; }
html[data-theme="dark"] .quote-dashboard .quote-whatsapp-quick {
    color: #7ee787;
    background: rgba(46, 160, 67, .15);
    border-color: rgba(63, 185, 80, .4);
}
html[data-theme="dark"] .quote-actions-menu-portal {
    color: var(--gh-text);
    background: var(--gh-surface-raised);
    border-color: var(--gh-border);
}
html[data-theme="dark"] .quote-actions-menu-portal .dropdown-item { color: var(--gh-text); }
html[data-theme="dark"] .quote-actions-menu-portal .dropdown-item:hover,
html[data-theme="dark"] .quote-actions-menu-portal .dropdown-item:focus {
    color: var(--gh-text-strong);
    background: var(--gh-accent-muted);
}

/* Pátio de Betim */
.betim-yard-page {
    display: grid;
    gap: 1.25rem;
    color: #153759;
}
.betim-yard-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}
.betim-yard-heading h1 { margin: .15rem 0 .2rem; color: #0d3156; font-size: clamp(1.55rem,2vw,2rem); font-weight: 800; }
.betim-yard-heading p { margin: 0; color: #667f97; }
.betim-yard-eyebrow { color: #0873df; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.betim-yard-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.betim-yard-metrics article {
    display: grid;
    min-height: 7rem;
    align-content: center;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #d8e3ed;
    border-radius: .75rem;
    box-shadow: 0 .35rem 1rem rgba(27,68,106,.05);
}
.betim-yard-metrics span { color: #6c8298; font-size: .68rem; font-weight: 750; text-transform: uppercase; }
.betim-yard-metrics strong { margin: .15rem 0; color: #0b4d87; font-size: 1.55rem; }
.betim-yard-metrics small { color: #8294a6; font-size: .67rem; }
.betim-yard-metrics article.is-warning { background: #fffaf0; border-color: #f1ce78; }
.betim-yard-metrics article.is-warning strong { color: #b66a00; }
.betim-yard-manual-card,
.betim-yard-list-card,
.betim-yard-history {
    background: #fff;
    border: 1px solid #d8e3ed;
    border-radius: .8rem;
    box-shadow: 0 .45rem 1.25rem rgba(27,68,106,.06);
}
.betim-yard-manual-card > header,
.betim-yard-list-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1rem;
    border-bottom: 1px solid #e1e9f0;
}
.betim-yard-manual-card h2,
.betim-yard-list-card h2 { margin: 0; color: #12385e; font-size: 1rem; font-weight: 800; }
.betim-yard-manual-card header p,
.betim-yard-list-card header p { margin: .15rem 0 0; color: #74899d; font-size: .72rem; }
.betim-yard-list-card > header > span { padding: .3rem .55rem; color: #0b579d; background: #eaf4ff; border-radius: 999px; font-size: .67rem; font-weight: 800; }
.betim-yard-manual-card form { display: grid; grid-template-columns: 1.25fr 1.25fr .7fr 1fr; gap: .8rem; padding: 1rem; }
.betim-yard-manual-card label > span,
.betim-yard-filters label > span { display: block; margin-bottom: .25rem; color: #486985; font-size: .67rem; font-weight: 750; }
.betim-yard-manual-card sup { color: #d1242f; }
.betim-yard-manual-notes { grid-column: span 3; }
.betim-yard-manual-actions { display: flex; grid-column: 1/-1; align-items: center; justify-content: flex-end; gap: 1rem; padding-top: .15rem; }
.betim-yard-manual-actions small { margin-right: auto; color: #778b9e; }
.betim-yard-filters { display: grid; grid-template-columns: minmax(15rem,1.5fr) minmax(10rem,.8fr) minmax(10rem,.8fr) auto; gap: .75rem; align-items: end; padding: .85rem 1rem; background: #f8fafc; border-bottom: 1px solid #e1e9f0; }
.betim-yard-filters > div { display: flex; gap: .45rem; }
.betim-yard-table { width: 100%; min-width: 720px; table-layout: fixed; border-collapse: collapse; }
.betim-yard-table th { padding: .65rem 1rem; color: #698096; background: #f5f8fb; border-bottom: 1px solid #dfe8ef; font-size: .62rem; letter-spacing: .03em; text-transform: uppercase; }
.betim-yard-table th:nth-child(1) { width: 31%; }
.betim-yard-table th:nth-child(2) { width: 31%; }
.betim-yard-table th:nth-child(3) { width: 28%; }
.betim-yard-table th:nth-child(4) { width: 10%; }
.betim-yard-table td { padding: .8rem 1rem; color: #173a5d; border-bottom: 1px solid #e8eef3; vertical-align: middle; }
.betim-yard-table tbody tr:last-child td { border-bottom: 0; }
.betim-yard-table tbody tr:hover td { background: #f8fbfe; }
.betim-yard-table td > strong,
.betim-yard-table td > a { display: block; color: #103b66; font-size: .78rem; font-weight: 800; }
.betim-yard-table td > a { color: #0969da; }
.betim-yard-table td > small { display: block; margin-top: .12rem; color: #7a8fa3; font-size: .66rem; }
.betim-yard-source { display: inline-flex; align-items: center; padding: .23rem .5rem; border-radius: 999px; font-size: .62rem; font-weight: 800; }
.betim-yard-source.is-system { color: #0969da; background: #ddf4ff; }
.betim-yard-source.is-manual { color: #8250df; background: #f3e8ff; }
.betim-yard-more { width: 2rem; height: 2rem; padding: 0; color: #0969da; background: transparent; border: 0; border-radius: 50%; font-size: 1.4rem; line-height: 1; }
.betim-yard-more:hover,.betim-yard-more[aria-expanded="true"] { background: #eaf4ff; }
.betim-yard-table .dropdown-menu form { min-width: 14rem; }
.betim-yard-empty { display: grid; place-items: center; gap: .2rem; min-height: 8rem; color: #74899d; text-align: center; }
.betim-yard-empty strong { color: #315575; }
.betim-yard-history { overflow: hidden; }
.betim-yard-history > summary { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; color: #315575; cursor: pointer; font-size: .8rem; font-weight: 800; list-style: none; }
.betim-yard-history > summary::-webkit-details-marker { display: none; }
.betim-yard-history > summary span { min-width: 1.7rem; padding: .15rem .4rem; color: #0969da; background: #eaf4ff; border-radius: 999px; text-align: center; }
.betim-yard-history > div { border-top: 1px solid #e1e9f0; }
.betim-yard-history article { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid #edf1f5; }
.betim-yard-history article:last-child { border-bottom: 0; }
.betim-yard-history article span { display: grid; }
.betim-yard-history article span:last-child { text-align: right; }
.betim-yard-history article strong { color: #244b70; font-size: .72rem; }
.betim-yard-history article small { color: #7a8fa3; font-size: .65rem; }
html[data-theme="dark"] .betim-yard-page { color: var(--gh-text); }
html[data-theme="dark"] .betim-yard-heading h1,
html[data-theme="dark"] .betim-yard-manual-card h2,
html[data-theme="dark"] .betim-yard-list-card h2 { color: var(--gh-text-strong); }
html[data-theme="dark"] .betim-yard-heading p,
html[data-theme="dark"] .betim-yard-manual-card header p,
html[data-theme="dark"] .betim-yard-list-card header p { color: var(--gh-text-muted); }
html[data-theme="dark"] .betim-yard-metrics article,
html[data-theme="dark"] .betim-yard-manual-card,
html[data-theme="dark"] .betim-yard-list-card,
html[data-theme="dark"] .betim-yard-history { background: var(--gh-canvas-subtle); border-color: var(--gh-border); box-shadow: none; }
html[data-theme="dark"] .betim-yard-metrics article.is-warning { background: rgba(187,128,9,.12); border-color: rgba(227,179,65,.45); }
html[data-theme="dark"] .betim-yard-metrics span,
html[data-theme="dark"] .betim-yard-metrics small,
html[data-theme="dark"] .betim-yard-manual-actions small { color: var(--gh-text-muted); }
html[data-theme="dark"] .betim-yard-metrics strong { color: var(--gh-accent-hover); }
html[data-theme="dark"] .betim-yard-metrics article.is-warning strong { color: #e3b341; }
html[data-theme="dark"] .betim-yard-manual-card > header,
html[data-theme="dark"] .betim-yard-list-card > header,
html[data-theme="dark"] .betim-yard-history > div { border-color: var(--gh-border); }
html[data-theme="dark"] .betim-yard-filters { background: var(--gh-canvas); border-color: var(--gh-border); }
html[data-theme="dark"] .betim-yard-manual-card label > span,
html[data-theme="dark"] .betim-yard-filters label > span { color: #b1bac4; }
html[data-theme="dark"] .betim-yard-table th { color: #b1bac4; background: var(--gh-canvas); border-color: var(--gh-border); }
html[data-theme="dark"] .betim-yard-table td { color: var(--gh-text); background: var(--gh-canvas-subtle); border-color: var(--gh-border); }
html[data-theme="dark"] .betim-yard-table tbody tr:hover td { background: var(--gh-surface-raised); }
html[data-theme="dark"] .betim-yard-table td > strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .betim-yard-table td > a { color: var(--gh-accent-hover); }
html[data-theme="dark"] .betim-yard-table td > small,
html[data-theme="dark"] .betim-yard-history article small { color: var(--gh-text-muted); }
html[data-theme="dark"] .betim-yard-source.is-system { color: #79c0ff; background: rgba(56,139,253,.16); }
html[data-theme="dark"] .betim-yard-source.is-manual { color: #d2a8ff; background: rgba(163,113,247,.16); }
html[data-theme="dark"] .betim-yard-more { color: var(--gh-accent-hover); }
html[data-theme="dark"] .betim-yard-more:hover,
html[data-theme="dark"] .betim-yard-more[aria-expanded="true"] { background: var(--gh-accent-muted); }
html[data-theme="dark"] .betim-yard-empty,
html[data-theme="dark"] .betim-yard-history > summary { color: var(--gh-text-muted); }
html[data-theme="dark"] .betim-yard-empty strong,
html[data-theme="dark"] .betim-yard-history article strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .betim-yard-history article { border-color: var(--gh-border); }
@media (max-width: 991.98px) {
    .betim-yard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .betim-yard-manual-card form { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .betim-yard-manual-notes { grid-column: 1/-1; }
    .betim-yard-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 575.98px) {
    .betim-yard-heading { align-items: stretch; flex-direction: column; }
    .betim-yard-heading .btn { width: 100%; }
    .betim-yard-metrics { grid-template-columns: 1fr; }
    .betim-yard-manual-card form,
    .betim-yard-filters { grid-template-columns: 1fr; }
    .betim-yard-manual-notes { grid-column: auto; }
    .betim-yard-manual-actions { align-items: stretch; flex-direction: column; }
    .betim-yard-manual-actions .btn { width: 100%; }
    .betim-yard-filters > div .btn { flex: 1; }
    .betim-yard-history article { flex-direction: column; }
    .betim-yard-history article span:last-child { text-align: left; }
}

/* Pátio de Betim alinhado ao diretório operacional de prestadores. */
.betim-yard-directory .provider-directory__heading { margin-bottom: 1rem; }
.betim-yard-directory-filters {
    grid-template-columns: minmax(16rem,1.6fr) repeat(3,minmax(9rem,1fr)) auto auto;
}
.betim-yard-directory .provider-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.provider-metric--amber .provider-metric__icon { color: #c56a00; background: #fff1dc; }
.provider-metric--amber .provider-metric__bar i { background: #e58b18; }
.betim-yard-directory-table { min-width: 72rem; }
.betim-yard-directory-table th:first-child { width: 23%; }
.betim-yard-directory-table th:nth-child(2) { width: 21%; }
.betim-yard-directory-table th:nth-child(3) { width: 14%; }
.betim-yard-directory-table th:nth-child(4) { width: 10%; }
.betim-yard-directory-table th:nth-child(5) { width: 16%; }
.betim-yard-directory-table th:nth-child(6) { width: 12%; }
.betim-yard-directory-table th:last-child { width: 4%; }
.betim-yard-directory-table td > strong,
.betim-yard-vehicle > span:last-child > strong,
.betim-yard-vehicle-link { color: #17365d; font-size: .83rem; font-weight: 750; }
.betim-yard-vehicle-link { color: #0969da; text-decoration: underline; text-underline-offset: .12rem; }
.betim-yard-vehicle { display: flex; align-items: center; gap: .75rem; min-width: 13rem; }
.betim-yard-vehicle > span:last-child { min-width: 0; }
.betim-yard-vehicle-thumb { width: 4.15rem; height: 2.85rem; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid #dce6f1; border-radius: .55rem; background: #f2f7fd; color: #165d9f; }
.betim-yard-vehicle-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.betim-yard-vehicle-thumb img.is-facing-left { transform: scaleX(-1); }
.betim-yard-vehicle-thumb__fallback { width: 100%; height: 100%; display: grid; place-items: center; }
.betim-yard-vehicle-thumb svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.betim-yard-vehicle-thumb.is-image-ready { background: transparent; border-color: transparent; }
.betim-yard-directory-table .provider-person { min-width: 10rem; }
.betim-yard-directory-table .provider-person > span { width: 2rem; height: 2rem; font-size: .7rem; }
.betim-yard-date { color: #315478; font-size: .73rem; font-weight: 650; white-space: nowrap; }
.betim-yard-days,.betim-yard-status { display: inline-flex; align-items: center; min-height: 1.55rem; padding: .2rem .55rem; border-radius: 999px; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.betim-yard-days.is-ok { color: #087443; background: #ddf7e8; }
.betim-yard-days.is-warning { color: #9a6200; background: #fff0cf; }
.betim-yard-days.is-critical { color: #cf222e; background: #ffebe9; }
.betim-yard-status.is-danger { color: #cf222e; background: #ffebe9; }
.betim-yard-status.is-warning { color: #9a6200; background: #fff0cf; }
.betim-yard-status.is-info { color: #0969da; background: #ddf4ff; }
.betim-yard-status.is-manual { color: #8250df; background: #f3e8ff; }
.betim-yard-directory .provider-row-actions { justify-content: flex-start; }
.betim-yard-directory .dropdown-menu form { margin: 0; }
.betim-yard-status-form { min-width: 15rem; }
.betim-yard-directory .betim-yard-history { margin-top: 1.25rem; }
.betim-yard-editor .provider-editor__body { padding-top: 1.25rem; }
.betim-yard-editor .provider-form-grid { grid-template-columns: 1fr 1fr; }
.betim-yard-editor textarea.form-control { resize: vertical; }
.betim-yard-editor-note { color: #64748b; font-size: .69rem; line-height: 1.35; }
.betim-yard-keep-open { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; color: #315478; font-size: .76rem; font-weight: 650; }
.betim-yard-keep-open .form-check-input { flex: 0 0 auto; margin: 0; }
html[data-theme="dark"] .betim-yard-directory-table td > strong,
html[data-theme="dark"] .betim-yard-vehicle > span:last-child > strong { color: #f0f6fc; }
html[data-theme="dark"] .betim-yard-vehicle-link { color: #58a6ff; }
html[data-theme="dark"] .betim-yard-editor-note { color: #8b949e; }
html[data-theme="dark"] .provider-metric--amber .provider-metric__icon { color: #e3b341; background: rgba(187,128,9,.14); }
html[data-theme="dark"] .betim-yard-vehicle-thumb { color: #58a6ff; background: #13233a; border-color: #30363d; }
html[data-theme="dark"] .betim-yard-date,
html[data-theme="dark"] .betim-yard-keep-open { color: #c9d1d9; }
html[data-theme="dark"] .betim-yard-days.is-ok { color: #56d894; background: rgba(46,160,67,.16); }
html[data-theme="dark"] .betim-yard-days.is-warning,
html[data-theme="dark"] .betim-yard-status.is-warning { color: #e3b341; background: rgba(187,128,9,.16); }
html[data-theme="dark"] .betim-yard-days.is-critical,
html[data-theme="dark"] .betim-yard-status.is-danger { color: #ff7b72; background: rgba(248,81,73,.16); }
html[data-theme="dark"] .betim-yard-status.is-info { color: #79c0ff; background: rgba(56,139,253,.16); }
html[data-theme="dark"] .betim-yard-status.is-manual { color: #d2a8ff; background: rgba(163,113,247,.16); }
@media(max-width:1200px) {
    .betim-yard-directory .provider-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .betim-yard-directory-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .betim-yard-directory-filters .provider-filter-search { grid-column: 1/-1; }
}
@media(max-width:767.98px) {
    .betim-yard-directory .provider-metrics { grid-template-columns: 1fr; }
    .betim-yard-directory-filters,
    .betim-yard-editor .provider-form-grid { grid-template-columns: 1fr; }
    .betim-yard-directory-filters .provider-filter-search,
    .betim-yard-editor .provider-form-wide { grid-column: auto; }
    .betim-yard-editor-note { display: none; }
}

/* Classificação comercial do cliente e liberação financeira da entrega. */
.client-relationship-fieldset {
    margin: .15rem 0;
    padding: 1rem;
    border: 1px solid #d7e3f1;
    border-radius: .75rem;
    background: #f8fbff;
}
.client-relationship-fieldset legend { float: none; width: auto; margin: 0; color: #17365d; font-size: .9rem; font-weight: 800; }
.client-relationship-fieldset > p { margin: .15rem 0 .75rem; color: #64748b; font-size: .76rem; }
.quote-client-relationship-current { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-top: .4rem; }
.quote-client-relationship-current .client-relationship-badge { margin: 0; }
.quote-client-relationship-current small { color: #64748b; font-size: .72rem; }
.shipment-batch-client-relationship { margin-top: 1rem; }
.client-relationship-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.client-relationship-option {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    min-height: 5rem;
    padding: .85rem;
    border: 1px solid #cad8e8;
    border-radius: .65rem;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.client-relationship-option:hover { border-color: #7aa7dc; }
.client-relationship-option:has(input:checked) { border-color: #2185e7; background: #edf6ff; box-shadow: 0 0 0 2px rgba(33,133,231,.12); }
.client-relationship-option.is-fixed:has(input:checked) { border-color: #1a9b61; background: #edfbf4; box-shadow: 0 0 0 2px rgba(26,155,97,.12); }
.client-relationship-option input { flex: 0 0 auto; margin-top: .18rem; accent-color: #1677d2; }
.client-relationship-option span { display: grid; gap: .25rem; }
.client-relationship-option strong { color: #17365d; font-size: .84rem; }
.client-relationship-option small { color: #64748b; font-size: .72rem; line-height: 1.38; }
.client-relationship-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin: .25rem .25rem 0 0;
    padding: .18rem .48rem;
    border-radius: 999px;
    font-size: .63rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}
.client-relationship-badge.is-fixed { color: #087443; background: #ddf7e8; }
.client-relationship-badge.is-private { color: #9a6200; background: #fff0cf; }
.client-payment-state { display: block; margin-top: .2rem; font-size: .66rem; font-weight: 750; }
.client-payment-state.is-paid { color: #087443; }
.client-payment-state.is-pending { color: #a15c00; }
.delivery-release-badge {
    display: block;
    width: max-content;
    margin-top: .35rem;
    padding: .18rem .45rem;
    border-radius: .35rem;
    color: #9a6200;
    background: #fff0cf;
    font-size: .62rem;
    font-weight: 800;
}
.delivery-release-detail { display: block; max-width: 22rem; margin-top: .25rem; color: #6b7280; font-size: .65rem; line-height: 1.35; }
html[data-theme="dark"] .client-relationship-fieldset { border-color: var(--gh-border); background: var(--gh-canvas); }
html[data-theme="dark"] .client-relationship-fieldset legend,
html[data-theme="dark"] .client-relationship-option strong { color: var(--gh-text-strong); }
html[data-theme="dark"] .client-relationship-fieldset > p,
html[data-theme="dark"] .client-relationship-option small,
html[data-theme="dark"] .quote-client-relationship-current small,
html[data-theme="dark"] .delivery-release-detail { color: var(--gh-text-muted); }
html[data-theme="dark"] .client-relationship-option { border-color: var(--gh-border); background: var(--gh-canvas-subtle); }
html[data-theme="dark"] .client-relationship-option:has(input:checked) { border-color: #58a6ff; background: rgba(56,139,253,.12); }
html[data-theme="dark"] .client-relationship-option.is-fixed:has(input:checked) { border-color: #3fb950; background: rgba(46,160,67,.12); }
html[data-theme="dark"] .client-relationship-badge.is-fixed { color: #56d894; background: rgba(46,160,67,.16); }
html[data-theme="dark"] .client-relationship-badge.is-private,
html[data-theme="dark"] .delivery-release-badge { color: #e3b341; background: rgba(187,128,9,.16); }
html[data-theme="dark"] .client-payment-state.is-paid { color: #56d894; }
html[data-theme="dark"] .client-payment-state.is-pending { color: #e3b341; }
@media(max-width:767.98px) {
    .client-relationship-options { grid-template-columns: 1fr; }
}

/* Cadastro dedicado de siglas de rota */
.route-acronym-page { display:flex; flex-direction:column; gap:1rem; color:#173b62; }
.route-acronym-page .route-breadcrumb { margin:0; }
.route-acronym-hero { display:flex; align-items:center; justify-content:space-between; gap:1.25rem; padding:1.15rem 1.25rem; border:1px solid #d8e4ef; border-radius:.85rem; background:linear-gradient(120deg,#fff 0%,#f5f9ff 72%,#edf6ff 100%); box-shadow:0 .28rem .9rem rgba(23,59,98,.07); }
.route-acronym-hero__copy { display:flex; min-width:0; align-items:center; gap:.9rem; }
.route-acronym-hero__icon { display:grid; flex:0 0 3rem; width:3rem; height:3rem; place-items:center; color:#0969da; border:1px solid #c8def8; border-radius:.75rem; background:#eaf4ff; }
.route-acronym-hero__icon svg { width:1.55rem; height:1.55rem; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.route-acronym-eyebrow { display:block; margin-bottom:.15rem; color:#0969da; font-size:.72rem; font-weight:850; letter-spacing:.08em; }
.route-acronym-hero h1 { margin:0; color:#102f51; font-size:1.65rem; font-weight:850; line-height:1.12; }
.route-acronym-hero p { max-width:48rem; margin:.25rem 0 0; color:#607b98; font-size:.9rem; }
.route-acronym-new { display:inline-flex; flex:0 0 auto; align-items:center; gap:.4rem; font-weight:750; }
.route-acronym-new span { font-size:1.15rem; line-height:1; }
.route-acronym-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.route-acronym-metrics--single { grid-template-columns:1fr; }
.route-acronym-metrics article { display:flex; align-items:center; gap:.75rem; padding:.82rem 1rem; border:1px solid #dde7f1; border-radius:.7rem; background:#fff; box-shadow:0 .16rem .5rem rgba(23,59,98,.045); }
.route-acronym-metrics article > div { display:flex; flex-direction:column; }
.route-acronym-metrics strong { color:#15395f; font-size:1.15rem; font-weight:850; line-height:1.1; }
.route-acronym-metrics small { margin-top:.12rem; color:#6c8198; font-size:.76rem; font-weight:650; }
.route-acronym-metric-icon { display:grid; width:2.15rem; height:2.15rem; place-items:center; border-radius:.58rem; font-size:1rem; font-weight:900; }
.route-acronym-metric-icon.is-blue { color:#0969da; background:#e8f3ff; }
.route-acronym-metric-icon.is-green { color:#087443; background:#e2f7eb; }
.route-acronym-metric-icon.is-amber { color:#9a6200; background:#fff0cf; }
.route-acronym-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(19rem,25rem); align-items:start; gap:1rem; }
.route-acronym-directory,.route-acronym-editor { min-width:0; overflow:hidden; border:1px solid #d8e4ef; border-radius:.78rem; background:#fff; box-shadow:0 .22rem .75rem rgba(23,59,98,.055); }
.route-acronym-section-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.1rem; border-bottom:1px solid #e1e9f1; background:#f8fbfe; }
.route-acronym-section-header h2,.route-acronym-editor h2 { margin:0; color:#173b62; font-size:1.05rem; font-weight:850; }
.route-acronym-section-header p,.route-acronym-editor header p { margin:.18rem 0 0; color:#6a8198; font-size:.78rem; }
.route-acronym-search,.route-acronym-route-search { position:relative; display:block; }
.route-acronym-search { width:min(19rem,42%); }
.route-acronym-search > span,.route-acronym-route-search > span { position:absolute; z-index:1; top:50%; left:.68rem; color:#68819a; font-size:1.1rem; transform:translateY(-52%); pointer-events:none; }
.route-acronym-search input,.route-acronym-route-search input { width:100%; min-height:2.35rem; padding:.44rem .7rem .44rem 2rem; border:1px solid #cbd9e7; border-radius:.52rem; color:#183a5d; background:#fff; font-size:.8rem; }
.route-acronym-list { display:flex; max-height:calc(100vh - 19rem); min-height:18rem; flex-direction:column; overflow-y:auto; scrollbar-gutter:stable; }
.route-acronym-item { display:grid; grid-template-columns:minmax(14rem,.85fr) minmax(16rem,1.3fr) auto; align-items:center; gap:1rem; padding:.9rem 1.05rem; border-bottom:1px solid #e7edf3; transition:border-color .15s ease,background-color .15s ease; }
.route-acronym-item:last-of-type { border-bottom:0; }
.route-acronym-item:hover { background:#f7fbff; }
.route-acronym-item.is-selected { background:#eef6ff; box-shadow:inset .2rem 0 #1976d2; }
.route-acronym-item__identity { display:flex; min-width:0; align-items:center; gap:.58rem; }
.route-acronym-item__mark { display:grid; flex:0 0 1.85rem; width:1.85rem; height:1.85rem; place-items:center; color:#0969da; border-radius:.45rem; background:#e8f3ff; font-size:.9rem; font-weight:900; }
.route-acronym-pair { display:flex; min-width:0; align-items:center; gap:.38rem; }
.route-acronym-pair strong { overflow:hidden; color:#12385f; font-size:.88rem; font-weight:850; text-overflow:ellipsis; white-space:nowrap; }
.route-acronym-pair span { color:#7290ae; }
.route-acronym-status { flex:0 0 auto; padding:.17rem .42rem; color:#6d7680; border-radius:999px; background:#edf0f3; font-size:.63rem; font-weight:800; }
.route-acronym-status.is-active { color:#087443; background:#ddf7e8; }
.route-acronym-status.is-automatic { color:#075da8; background:#e2f0ff; }
.route-acronym-item__routes { min-width:0; }
.route-acronym-item__routes > span { display:block; color:#526f8d; font-size:.72rem; font-weight:750; }
.route-acronym-item__routes > div { display:flex; min-width:0; flex-wrap:wrap; gap:.28rem; margin-top:.32rem; }
.route-acronym-item__routes small { display:block; overflow:hidden; max-width:12rem; padding:.18rem .42rem; color:#506b87; border:1px solid #dce7f1; border-radius:.35rem; background:#f6f9fc; font-size:.66rem; text-overflow:ellipsis; white-space:nowrap; }
.route-acronym-item > .btn { justify-self:end; }
.route-acronym-empty,.route-acronym-no-results { padding:3rem 1rem; color:#6c8198; text-align:center; }
.route-acronym-empty { display:flex; align-items:center; flex-direction:column; }
.route-acronym-empty > span { display:grid; width:2.8rem; height:2.8rem; place-items:center; margin-bottom:.65rem; color:#0969da; border-radius:.7rem; background:#e8f3ff; font-size:1.25rem; font-weight:900; }
.route-acronym-empty strong { color:#25496e; font-size:.92rem; }
.route-acronym-empty p { margin:.28rem 0 0; font-size:.78rem; }
.route-acronym-editor { position:sticky; top:1rem; }
.route-acronym-editor > header { display:flex; align-items:flex-start; justify-content:space-between; gap:.75rem; padding:1rem 1.05rem; color:#fff; background:linear-gradient(135deg,#123f70,#0969da); }
.route-acronym-editor > header span { display:block; margin-bottom:.12rem; color:#b9dcff; font-size:.64rem; font-weight:850; letter-spacing:.08em; }
.route-acronym-editor > header h2 { color:#fff; }
.route-acronym-editor > header p { color:#d6eaff; }
.route-acronym-editor > header > a { display:grid; flex:0 0 1.8rem; width:1.8rem; height:1.8rem; place-items:center; color:#d8ebff; border-radius:.4rem; font-size:1.35rem; line-height:1; text-decoration:none; }
.route-acronym-editor > header > a:hover { color:#fff; background:rgba(255,255,255,.13); }
.route-acronym-editor form { padding:1rem; }
.route-acronym-fields { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:end; gap:.48rem; }
.route-acronym-fields label > span { display:block; margin-bottom:.32rem; color:#284c71; font-size:.73rem; font-weight:800; }
.route-acronym-fields sup,.route-acronym-route-picker h3 sup { color:#cf2941; }
.route-acronym-fields input { min-height:2.45rem; font-weight:750; }
.route-acronym-fields__separator { padding-bottom:.62rem; color:#6b87a3; font-size:1rem; font-weight:850; }
.route-acronym-preview { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-top:.85rem; padding:.65rem .75rem; border:1px solid #cce1f6; border-radius:.55rem; background:#eef7ff; }
.route-acronym-preview > span { color:#51708e; font-size:.68rem; font-weight:750; }
.route-acronym-preview strong { display:flex; min-width:0; align-items:center; gap:.34rem; color:#0c5fb3; font-size:.82rem; }
.route-acronym-preview b { overflow:hidden; max-width:7rem; text-overflow:ellipsis; white-space:nowrap; }
.route-acronym-preview i { color:#6c8ead; font-style:normal; }
.route-acronym-route-picker { margin-top:1rem; padding-top:.9rem; border-top:1px solid #e1e9f1; }
.route-acronym-route-picker > header { display:flex; align-items:flex-start; justify-content:space-between; gap:.6rem; }
.route-acronym-route-picker h3 { margin:0; color:#24486d; font-size:.8rem; font-weight:850; }
.route-acronym-route-picker header p { margin:.15rem 0 .65rem; color:#6f859b; font-size:.68rem; }
.route-acronym-route-picker header > span { flex:0 0 auto; padding:.18rem .42rem; color:#0969da; border-radius:999px; background:#e8f3ff; font-size:.62rem; font-weight:800; }
.route-acronym-route-list { display:flex; max-height:18.5rem; flex-direction:column; margin-top:.55rem; overflow:auto; border:1px solid #d7e2ec; border-radius:.55rem; }
.route-acronym-route-option { display:flex; align-items:flex-start; gap:.55rem; padding:.62rem .68rem; border-bottom:1px solid #e7edf3; cursor:pointer; }
.route-acronym-route-option:last-child { border-bottom:0; }
.route-acronym-route-option:hover { background:#f6faff; }
.route-acronym-route-option input { flex:0 0 auto; margin-top:.16rem; }
.route-acronym-route-option > span { display:flex; min-width:0; flex-direction:column; }
.route-acronym-route-option strong { overflow:hidden; color:#24476b; font-size:.75rem; text-overflow:ellipsis; white-space:nowrap; }
.route-acronym-route-option small { overflow:hidden; margin-top:.1rem; color:#6f8499; font-size:.66rem; text-overflow:ellipsis; white-space:nowrap; }
.route-acronym-route-option em { margin-top:.18rem; color:#9a6200; font-size:.62rem; font-style:normal; font-weight:750; }
.route-acronym-route-option.is-unavailable { cursor:not-allowed; opacity:.68; background:#f6f7f9; }
.route-acronym-route-empty { padding:1.6rem .75rem; color:#71869b; font-size:.72rem; text-align:center; }
.route-acronym-field-error { display:block; margin:.2rem 0 .45rem; color:#b42336; font-size:.7rem; font-weight:700; }
.route-acronym-editor form > footer { display:flex; justify-content:flex-end; gap:.55rem; margin:1rem -1rem -1rem; padding:.78rem 1rem; border-top:1px solid #e1e9f1; background:#f8fafc; }
.route-acronym-editor--welcome { display:flex; min-height:18rem; align-items:center; flex-direction:column; justify-content:center; padding:2rem 1.35rem; text-align:center; }
.route-acronym-editor__welcome-icon { display:grid; width:3.25rem; height:3.25rem; place-items:center; margin-bottom:.85rem; color:#0969da; border-radius:.8rem; background:#e8f3ff; font-size:1.4rem; font-weight:900; }
.route-acronym-editor--welcome p { max-width:18rem; margin:.35rem 0 1rem; color:#6a8198; font-size:.8rem; }
html[data-theme="dark"] .route-acronym-page { color:var(--gh-text); }
html[data-theme="dark"] .route-acronym-hero { border-color:var(--gh-border); background:linear-gradient(120deg,var(--gh-canvas-subtle),var(--gh-canvas)); box-shadow:none; }
html[data-theme="dark"] .route-acronym-hero h1,html[data-theme="dark"] .route-acronym-section-header h2,html[data-theme="dark"] .route-acronym-pair strong,html[data-theme="dark"] .route-acronym-empty strong,html[data-theme="dark"] .route-acronym-fields label > span,html[data-theme="dark"] .route-acronym-route-picker h3,html[data-theme="dark"] .route-acronym-route-option strong { color:var(--gh-text-strong); }
html[data-theme="dark"] .route-acronym-hero p,html[data-theme="dark"] .route-acronym-section-header p,html[data-theme="dark"] .route-acronym-item__routes > span,html[data-theme="dark"] .route-acronym-empty,html[data-theme="dark"] .route-acronym-no-results,html[data-theme="dark"] .route-acronym-route-picker header p,html[data-theme="dark"] .route-acronym-route-option small { color:var(--gh-text-muted); }
html[data-theme="dark"] .route-acronym-metrics article,html[data-theme="dark"] .route-acronym-directory,html[data-theme="dark"] .route-acronym-editor { border-color:var(--gh-border); background:var(--gh-canvas-subtle); box-shadow:none; }
html[data-theme="dark"] .route-acronym-metrics strong { color:var(--gh-text-strong); }
html[data-theme="dark"] .route-acronym-metrics small { color:var(--gh-text-muted); }
html[data-theme="dark"] .route-acronym-section-header,html[data-theme="dark"] .route-acronym-editor form > footer { border-color:var(--gh-border); background:var(--gh-canvas); }
html[data-theme="dark"] .route-acronym-search input,html[data-theme="dark"] .route-acronym-route-search input { color:var(--gh-text); border-color:var(--gh-border); background:var(--gh-canvas); }
html[data-theme="dark"] .route-acronym-item { border-color:var(--gh-border); }
html[data-theme="dark"] .route-acronym-item:hover,html[data-theme="dark"] .route-acronym-item.is-selected { background:rgba(56,139,253,.1); }
html[data-theme="dark"] .route-acronym-item__routes small { color:var(--gh-text-muted); border-color:var(--gh-border); background:var(--gh-canvas); }
html[data-theme="dark"] .route-acronym-preview { border-color:#315d86; background:rgba(56,139,253,.11); }
html[data-theme="dark"] .route-acronym-preview > span { color:var(--gh-text-muted); }
html[data-theme="dark"] .route-acronym-route-picker,html[data-theme="dark"] .route-acronym-route-list,html[data-theme="dark"] .route-acronym-route-option { border-color:var(--gh-border); }
html[data-theme="dark"] .route-acronym-route-option:hover { background:rgba(56,139,253,.08); }
html[data-theme="dark"] .route-acronym-route-option.is-unavailable { background:var(--gh-canvas); }
@media(max-width:1199.98px) {
    .route-acronym-layout { grid-template-columns:minmax(0,1fr) minmax(18rem,22rem); }
    .route-acronym-item { grid-template-columns:1fr auto; }
    .route-acronym-item__routes { grid-column:1/-1; padding-left:2.45rem; }
}
@media(max-width:991.98px) {
    .route-acronym-layout { grid-template-columns:1fr; }
    .route-acronym-editor { position:static; grid-row:1; }
    .route-acronym-list { max-height:none; min-height:0; overflow:visible; }
}
@media(max-width:767.98px) {
    .route-acronym-hero,.route-acronym-section-header { align-items:stretch; flex-direction:column; }
    .route-acronym-new,.route-acronym-search { width:100%; }
    .route-acronym-metrics { grid-template-columns:1fr; }
    .route-acronym-item { grid-template-columns:1fr auto; gap:.65rem; }
    .route-acronym-item__identity { flex-wrap:wrap; }
    .route-acronym-item__routes { grid-column:1/-1; padding-left:0; }
    .route-acronym-fields { grid-template-columns:1fr; }
    .route-acronym-fields__separator { display:none; }
}

/* Central Hoje: hierarquia operacional simplificada (out/2026). */
.central-today-page { gap: 1rem; }
.central-today-heading { padding-inline: .2rem; }
.central-today-heading h1 { margin-top: .18rem; }
.central-today-date { min-height: 4.8rem; padding: .7rem .85rem 1.15rem; border: 1px solid var(--today-line); }
.central-today-metrics { grid-template-columns: repeat(5,minmax(0,1fr)); gap: .75rem; }
.central-today-metric {
    display: block;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-top-width: 3px;
}
.central-today-metric__main {
    display: grid;
    grid-template-columns: 2.8rem minmax(0,1fr) auto;
    gap: .7rem;
    align-items: center;
    min-height: 7rem;
    padding: .9rem;
    color: inherit;
    text-decoration: none;
}
.central-today-metric__main:hover { color: inherit; background: rgba(9,103,185,.025); }
.central-today-metric__copy { min-width: 0; }
.central-today-metric__copy small,
.central-today-metric__copy strong,
.central-today-metric__copy em { display: block; }
.central-today-metric__copy small { min-height: 0; color: #355b7f; font-size: .72rem; font-weight: 800; }
.central-today-metric__copy strong { margin-top: .25rem; font-size: 2rem; line-height: 1; }
.central-today-metric__copy em { margin-top: .35rem; color: #6e859d; font-size: .62rem; font-style: normal; line-height: 1.3; white-space: normal; }
.central-today-metric__main > b { color: #7893ad; font-size: 1.3rem; }
.central-today-metric__breakdown { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--today-line); }
.central-today-metric__breakdown a {
    display: flex;
    min-width: 0;
    gap: .45rem;
    align-items: center;
    justify-content: space-between;
    padding: .48rem .68rem;
    color: #4e6c88;
    border-right: 1px solid var(--today-line);
    border-bottom: 1px solid var(--today-line);
    font-size: .56rem;
    text-decoration: none;
}
.central-today-metric__breakdown a:nth-child(even) { border-right: 0; }
.central-today-metric__breakdown a:nth-last-child(-n+2):nth-child(odd),
.central-today-metric__breakdown a:last-child:nth-child(even) { border-bottom: 0; }
.central-today-metric__breakdown a:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.central-today-metric__breakdown a:hover { color: #0b5799; background: #f6faff; }
.central-today-metric__breakdown span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.central-today-metric__breakdown b { color: #183f67; font-size: .67rem; }
.central-today-metric.is-danger { border-top-color: #df3148; }
.central-today-metric.is-warning { border-top-color: #d99a14; }
.central-today-metric.is-info { border-top-color: #1c78c8; }
.central-today-metric.is-financial { border-color: #cab9eb; border-top-color: #7252aa; }
.central-today-metric.is-financial .central-today-metric-icon { color: #66469c; background: #eee8fb; }
.central-today-metric.is-financial strong { color: #55378c; }
.central-today-metric.is-quotes { border-color: #b6d9cc; border-top-color: #168267; }
.central-today-metric.is-quotes .central-today-metric-icon { color: #08745a; background: #ddf5ec; }
.central-today-metric.is-quotes strong { color: #07694f; }
.central-today-layout { grid-template-columns: minmax(0,1fr) 19rem; gap: 1rem; }
.central-action-card > header { padding: .9rem 1rem .55rem; }
.central-action-card h2 { font-size: 1rem; }
.central-action-filters { grid-template-columns: minmax(24rem,1fr) repeat(4,minmax(6.5rem,8rem)) auto; padding: 0 1rem .85rem; }
.central-action-table { min-width: 78rem; table-layout: fixed; font-size: .64rem; }
.central-action-table th { padding: .65rem .7rem; }
.central-action-table td { padding: .65rem .62rem; }
.central-action-table th:nth-child(1) { width: 2.6rem; }
.central-action-table th:nth-child(2) { width: 8.2rem; }
.central-action-table th:nth-child(3) { width: 5.7rem; }
.central-action-table th:nth-child(4) { width: 10.5rem; }
.central-action-table th:nth-child(5) { width: 10rem; }
.central-action-table th:nth-child(6) { width: 7.5rem; }
.central-action-table th:nth-child(7) { width: 11rem; }
.central-action-table th:nth-child(8) { width: auto; }
.central-action-table th:nth-child(9) { width: 9rem; }
.central-action-table td:nth-child(4),
.central-action-table td:nth-child(7) { overflow-wrap: anywhere; }
.central-action-table td:nth-child(5) strong,
.central-action-table td:nth-child(5) small,
.central-action-table td:nth-child(8) strong,
.central-action-table td:nth-child(8) small { display: block; }
.central-action-table td:nth-child(5) small,
.central-action-table td:nth-child(8) small { margin-top: .16rem; color: #6c849c; font-size: .56rem; font-weight: 400; }
.central-action-table td:nth-child(9) .btn { width: 100%; line-height: 1.2; white-space: normal; }
.central-acronym-cell .shipment-route-acronym-editor,
.central-acronym-cell .shipment-route-acronym-input { width: 100%; }
.central-acronym-cell .operation-route-acronym { justify-content: center; font-size: .58rem; text-align: center; }
.central-vehicle-link { display: block; color: var(--bs-link-color); font-weight: 800; text-decoration: none; }
.central-vehicle-link:hover,
.central-vehicle-link:focus-visible { color: var(--bs-link-hover-color); text-decoration: underline; }
.central-action-table tbody tr.is-danger td:first-child { box-shadow: inset 3px 0 #df3148; }
.central-action-table tbody tr.is-warning td:first-child { box-shadow: inset 3px 0 #d99a14; }
.central-action-table tbody tr.is-info td:first-child { box-shadow: inset 3px 0 #1c78c8; }
.central-urgency {
    display: inline-flex;
    align-items: center;
    padding: .34rem .5rem;
    color: #315b7d;
    background: #eaf1f7;
    border-radius: 999px;
    font-size: .57rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}
.central-urgency.is-danger { color: #b51f36; background: #ffe5e9; }
.central-urgency.is-warning { color: #805600; background: #fff0c3; }
.central-urgency.is-info { color: #075b9d; background: #deeffe; }
.central-action-area { display: inline-flex; margin-bottom: .28rem; padding: .18rem .35rem; color: #496b8a; background: #edf3f8; border-radius: .25rem; font-size: .49rem; font-weight: 800; text-transform: uppercase; }
.central-action-mobile article { border-left: 3px solid #aebdca; }
.central-action-mobile article.is-danger { border-left-color: #df3148; }
.central-action-mobile article.is-warning { border-left-color: #d99a14; }
.central-action-mobile article.is-info { border-left-color: #1c78c8; }
.central-now-card > a { min-height: 3.7rem; }

html[data-theme="dark"] .central-today-metric__main:hover,
html[data-theme="dark"] .central-today-metric__breakdown a:hover { background: var(--gh-surface-raised); }
html[data-theme="dark"] .central-today-metric__copy small,
html[data-theme="dark"] .central-today-metric__breakdown a,
html[data-theme="dark"] .central-action-table td:nth-child(5) small,
html[data-theme="dark"] .central-action-table td:nth-child(8) small { color: var(--gh-text-muted); }
html[data-theme="dark"] .central-today-metric__breakdown,
html[data-theme="dark"] .central-today-metric__breakdown a { border-color: var(--gh-border); }
html[data-theme="dark"] .central-today-metric__breakdown b { color: var(--gh-text-strong); }
html[data-theme="dark"] .central-today-metric.is-financial { border-color: rgba(163,113,247,.48); }
html[data-theme="dark"] .central-today-metric.is-financial .central-today-metric-icon { color: #d2a8ff; background: rgba(163,113,247,.15); }
html[data-theme="dark"] .central-today-metric.is-financial strong { color: #d2a8ff; }
html[data-theme="dark"] .central-today-metric.is-quotes { border-color: rgba(46,160,67,.48); }
html[data-theme="dark"] .central-today-metric.is-quotes .central-today-metric-icon { color: #56d364; background: rgba(46,160,67,.15); }
html[data-theme="dark"] .central-today-metric.is-quotes strong { color: #56d364; }
.central-route-display { display: block; color: var(--bs-emphasis-color); font-size: .76rem; line-height: 1.25; }
html[data-theme="dark"] .central-urgency { color: #b1bac4; background: #30363d; }
html[data-theme="dark"] .central-urgency.is-danger { color: #ff7b72; background: rgba(248,81,73,.15); }
html[data-theme="dark"] .central-urgency.is-warning { color: #e3b341; background: rgba(187,128,9,.15); }
html[data-theme="dark"] .central-urgency.is-info { color: #79c0ff; background: rgba(56,139,253,.15); }
html[data-theme="dark"] .central-action-area { color: #b1bac4; background: var(--gh-surface-raised); }

@media (max-width: 1399.98px) {
    .central-today-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .central-action-filters { grid-template-columns: repeat(4,minmax(0,1fr)) auto; }
    .central-action-tabs { grid-column: 1 / -1; }
}
@media (max-width: 1199.98px) {
    .central-today-layout { grid-template-columns: 1fr; }
    .central-today-aside { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
    .central-today-metric__main { min-height: 6.2rem; padding: .7rem; }
    .central-today-metric__copy strong { font-size: 1.55rem; }
    .central-today-metric__breakdown { grid-template-columns: 1fr; }
    .central-today-metric__breakdown a,
    .central-today-metric__breakdown a:nth-child(even),
    .central-today-metric__breakdown a:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--today-line); }
    .central-today-metric__breakdown a:last-child { border-bottom: 0; }
    .central-action-filters { display: flex; }
}

/* Fretes em lote v2: experiência paralela de revisão rápida. */
.shipment-batch-v2-entry { position: relative; }
.shipment-batch-v2-entry span { margin-left: .35rem; padding: .16rem .38rem; color: #075fca; background: #e5f0ff; border-radius: 99rem; font-size: .58rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.shipment-batch-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.shipment-batch-page--v2 { --batch-v2-blue: #075fca; --batch-v2-line: #d7e1eb; --batch-v2-soft: #f5f8fb; gap: .75rem; }
.shipment-batch-page--v2 .shipment-batch-heading { align-items: center; }
.shipment-batch-page--v2 .shipment-batch-heading h1 { font-size: 1.55rem; }
.shipment-batch-page--v2 .shipment-batch-source { box-shadow: none; }
.shipment-batch-page--v2 .shipment-batch-source>header { min-height: 4.4rem; }
.shipment-batch-page--v2 .shipment-batch-source.is-collapsed>header { min-height: 0; padding: .7rem 1rem; }
.shipment-batch-page--v2 .shipment-batch-source.is-collapsed .shipment-batch-source-body { display: none; }
.shipment-batch-page--v2 .shipment-batch-source.is-collapsed>header>div>span { width: 1.65rem; height: 1.65rem; flex-basis: 1.65rem; }
.shipment-batch-page--v2 .shipment-batch-source.is-collapsed header p,
.shipment-batch-page--v2 .shipment-batch-source.is-collapsed .shipment-batch-limit { display: none; }
.shipment-batch-v2-source-toggle { margin-left: auto; white-space: nowrap; }
.shipment-batch-page--v2 .shipment-batch-review { overflow: visible; box-shadow: none; }
.shipment-batch-page--v2 .shipment-batch-review>header { position: relative; z-index: 2; padding: .8rem 1rem; border-radius: .75rem .75rem 0 0; }
.shipment-batch-page--v2 .shipment-batch-client-groups { display: none; }
.shipment-batch-page--v2 .shipment-batch-toolbar { padding: .62rem 1rem; background: var(--bs-body-bg); }
.shipment-batch-page--v2 .shipment-batch-profit-summary { grid-template-columns: minmax(12rem,1.35fr) repeat(4,minmax(7rem,1fr)); padding: .65rem 1rem; }
.shipment-batch-v2-workspace { display: grid; grid-template-columns: clamp(18rem,20vw,21rem) minmax(0,1fr); align-items: start; min-height: 36rem; background: var(--batch-v2-soft); border-top: 1px solid var(--batch-v2-line); }
.shipment-batch-v2-queue { position: sticky; top: .75rem; display: flex; max-height: calc(100vh - 7rem); min-height: 36rem; flex-direction: column; padding: .8rem; background: var(--bs-body-bg); border-right: 1px solid var(--batch-v2-line); }
.shipment-batch-v2-queue>header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .65rem; }
.shipment-batch-v2-queue h3 { margin: 0; color: var(--bs-heading-color); font-size: .92rem; }
.shipment-batch-v2-queue header small { display: block; margin-top: .12rem; color: var(--bs-secondary-color); font-size: .65rem; }
.shipment-batch-v2-queue>[type="search"] { min-height: 2.25rem; font-size: .72rem; }
.shipment-batch-v2-filters { display: grid; grid-template-columns: repeat(3,1fr); gap: .3rem; margin: .55rem 0; padding: .24rem; background: var(--bs-tertiary-bg); border-radius: .48rem; }
.shipment-batch-v2-filters button { padding: .35rem .25rem; color: var(--bs-secondary-color); background: transparent; border: 0; border-radius: .35rem; font-size: .64rem; font-weight: 750; }
.shipment-batch-v2-filters button:hover { color: var(--bs-heading-color); }
.shipment-batch-v2-filters button.is-active { color: #fff; background: var(--batch-v2-blue); box-shadow: 0 .15rem .4rem rgba(7,95,202,.2); }
.shipment-batch-v2-list { display: grid; gap: .38rem; overflow-y: auto; padding: .05rem .15rem .4rem 0; }
.shipment-batch-v2-row { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: .62rem; width: 100%; padding: .72rem .68rem; color: inherit; background: var(--bs-body-bg); border: 1px solid var(--batch-v2-line); border-left: .25rem solid #db9b00; border-radius: .58rem; text-align: left; transition: border-color .15s ease,background .15s ease,transform .15s ease; }
.shipment-batch-v2-row.is-ready { border-left-color: #178552; }
.shipment-batch-v2-row:hover { border-color: #8bbbe8; transform: translateX(.1rem); }
.shipment-batch-v2-row.is-active { background: #edf5ff; border-color: #6eabe4; box-shadow: 0 0 0 .12rem rgba(11,112,223,.08); }
.shipment-batch-v2-row>.form-check-input { margin-top: .2rem; }
.shipment-batch-v2-row-content { display: grid; min-width: 0; }
.shipment-batch-v2-row-content>span:first-child { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.shipment-batch-v2-row-content>span:first-child strong { color: var(--batch-v2-blue); font-size: .63rem; }
.shipment-batch-v2-row-content>span:first-child small { padding: .12rem .35rem; color: #8a5e00; background: #fff3cd; border-radius: 99rem; font-size: .55rem; font-weight: 800; }
.shipment-batch-v2-row.is-ready .shipment-batch-v2-row-content>span:first-child small { color: #087747; background: #def6e9; }
.shipment-batch-v2-row-content b { overflow: hidden; margin-top: .22rem; color: var(--bs-heading-color); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.shipment-batch-v2-row-content>span:not(:first-child) { overflow: hidden; margin-top: .1rem; color: var(--bs-secondary-color); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.shipment-batch-v2-row-content>small { overflow: hidden; margin-top: .28rem; color: #54708c; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.shipment-batch-v2-row-content>em { display: -webkit-box; overflow: hidden; margin-top: .4rem; color: #9d2737; font-size: .64rem; font-style: normal; font-weight: 700; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.shipment-batch-v2-detail { min-width: 0; padding: .9rem 1rem 1rem; container: batch-detail / inline-size; }
.shipment-batch-v2-detail-navigation { position: sticky; top: .4rem; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; padding: .62rem .7rem; background: color-mix(in srgb,var(--bs-body-bg) 94%,transparent); border: 1px solid var(--batch-v2-line); border-radius: .55rem; box-shadow: 0 .3rem 1rem rgba(20,56,91,.08); backdrop-filter: blur(8px); }
.shipment-batch-v2-detail-navigation>div:first-child { min-width: 0; }
.shipment-batch-v2-detail-navigation small,.shipment-batch-v2-detail-navigation strong { display: block; }
.shipment-batch-v2-detail-navigation small { color: var(--bs-secondary-color); font-size: .61rem; }
.shipment-batch-v2-detail-navigation strong { overflow: hidden; margin-top: .08rem; color: var(--bs-heading-color); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.shipment-batch-v2-detail-navigation>div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.shipment-batch-page--v2 .shipment-batch-items { display: block; padding: 0; background: transparent; }
.shipment-batch-page--v2 .shipment-batch-item { box-shadow: 0 .25rem .85rem rgba(20,56,91,.06); }
.shipment-batch-page--v2 .shipment-batch-item[hidden] { display: none !important; }
.shipment-batch-page--v2 .shipment-batch-item>header { position: relative; padding: .65rem .75rem; }
.shipment-batch-page--v2 .shipment-batch-item-body { padding: .72rem; }
.shipment-batch-page--v2 .shipment-batch-item dl { grid-template-columns: .7fr 1.5fr .7fr 1fr; }
.shipment-batch-page--v2 .shipment-batch-review>footer { position: sticky; bottom: .4rem; z-index: 9; margin: .6rem; border: 1px solid var(--batch-v2-line); border-radius: .65rem; box-shadow: 0 .5rem 1.5rem rgba(20,56,91,.14); }

/* A edição da v2 mostra somente o que ajuda na tarefa atual. */
.shipment-batch-page--v2 .shipment-batch-item.is-v2-editing .shipment-batch-v2-overview,
.shipment-batch-page--v2 .shipment-batch-item.is-v2-editing .shipment-batch-item-financial,
.shipment-batch-page--v2 .shipment-batch-item.is-v2-editing .shipment-batch-v2-flow-summary { display: none; }
.shipment-batch-page--v2 .shipment-batch-item.is-v2-editing .shipment-batch-item-messages:empty { display: none; }
.shipment-batch-page--v2 .shipment-batch-item.is-v2-editing .shipment-batch-editor { margin-top: .55rem; }
.shipment-batch-page--v2 .shipment-batch-editor { overflow: visible; background: var(--bs-body-bg); }
.shipment-batch-page--v2 .shipment-batch-editor>header { position: sticky; top: 4.65rem; z-index: 6; border-radius: .58rem .58rem 0 0; }
.shipment-batch-page--v2 .shipment-batch-editor-grid { display: grid; gap: .75rem; padding: .75rem; background: var(--batch-v2-soft); }
.shipment-batch-page--v2 .shipment-batch-editor.is-flow-only .shipment-batch-editor-grid { display: none; }
.shipment-batch-v2-form-section { grid-column: 1/-1; width: 100%; min-width: 0; overflow: visible; background: var(--bs-body-bg); border: 1px solid var(--batch-v2-line); border-radius: .65rem; box-shadow: 0 .12rem .45rem rgba(20,56,91,.05); }
.shipment-batch-v2-form-section-heading { display: flex; align-items: center; gap: .65rem; padding: .65rem .75rem; background: #f8fbfe; border-bottom: 1px solid var(--batch-v2-line); border-radius: .64rem .64rem 0 0; }
.shipment-batch-v2-form-section-heading>span { display: grid; width: 1.65rem; height: 1.65rem; flex: 0 0 1.65rem; place-items: center; color: #fff; background: var(--batch-v2-blue); border-radius: .45rem; font-size: .68rem; font-weight: 850; }
.shipment-batch-v2-form-section-heading h4 { margin: 0; color: var(--bs-heading-color); font-size: .83rem; font-weight: 800; }
.shipment-batch-v2-form-section-heading p { margin: .08rem 0 0; color: var(--bs-secondary-color); font-size: .66rem; }
.shipment-batch-v2-form-section-fields { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: .65rem .75rem; padding: .75rem; }
.shipment-batch-v2-form-section-fields label { min-width: 0; }
.shipment-batch-v2-form-section.is-flow { margin: 0 .75rem .75rem; }
.shipment-batch-v2-form-section.is-flow>[data-batch-standard-flow-host] { display: block; min-width: 0; padding: .75rem; }
.shipment-batch-page--v2 .shipment-batch-editor>footer { position: sticky; z-index: 7; bottom: 4.8rem; border: 1px solid var(--batch-v2-line); border-radius: 0 0 .58rem .58rem; box-shadow: 0 -.25rem .8rem rgba(20,56,91,.08); }
.shipment-batch-page--v2 .shipment-batch-message { padding: .62rem .72rem; border-left: .22rem solid currentColor; font-size: .75rem; }

@container batch-detail (max-width: 66rem) {
    .shipment-batch-page--v2 .quote-editor .quote-flow-card { grid-template-columns: 1fr; }
    .shipment-batch-page--v2 .quote-editor .quote-flow-card__header { position: relative; min-height: 3.3rem; padding-right: 5.3rem; border-right: 0; border-bottom: 1px solid #e1e9f1; border-radius: .48rem .48rem 0 0; }
    .shipment-batch-page--v2 .quote-editor .quote-flow-card__body { padding-right: 3.6rem; }
    .shipment-batch-page--v2 .quote-editor .quote-flow-card--expense { grid-template-columns: 1fr; }
}

@container batch-detail (max-width: 48rem) {
    .shipment-batch-v2-form-section-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .shipment-batch-v2-form-section-fields .span-3,
    .shipment-batch-v2-form-section-fields .span-6,
    .shipment-batch-v2-form-section-fields .span-9 { grid-column: span 1; }
    .shipment-batch-v2-form-section-fields .span-12 { grid-column: 1/-1; }
    .shipment-batch-page--v2 .quote-editor .quote-flow-card__body { grid-template-columns: minmax(0,1fr) minmax(7rem,.45fr); padding-right: .75rem; }
    .shipment-batch-page--v2 .quote-editor [data-stage-route-choice-wrap] { grid-column: 1/-1; grid-row: 1; }
    .shipment-batch-page--v2 .quote-editor .quote-flow-card__provider-row { grid-column: 1; grid-row: 2; }
    .shipment-batch-page--v2 .quote-editor [data-stage-amount-wrap] { grid-column: 2; grid-row: 2; }
    .shipment-batch-page--v2 .quote-editor .quote-flow-card__address { grid-column: 1/-1; grid-row: 3; }
    .shipment-batch-page--v2 .quote-editor .quote-flow-card__hint { grid-column: 1/-1; grid-row: 4; }
}

html[data-theme="dark"] .shipment-batch-v2-entry span { color: #79c0ff; background: rgba(56,139,253,.16); }
html[data-theme="dark"] .shipment-batch-page--v2 { --batch-v2-blue: #2f81f7; --batch-v2-line: #30363d; --batch-v2-soft: #0d1117; }
html[data-theme="dark"] .shipment-batch-v2-row.is-active { background: rgba(56,139,253,.13); border-color: #388bfd; }
html[data-theme="dark"] .shipment-batch-v2-row-content>span:first-child small { color: #e3b341; background: rgba(187,128,9,.18); }
html[data-theme="dark"] .shipment-batch-v2-row.is-ready .shipment-batch-v2-row-content>span:first-child small { color: #56d364; background: rgba(46,160,67,.16); }
html[data-theme="dark"] .shipment-batch-v2-row-content>small { color: #8c959f; }
html[data-theme="dark"] .shipment-batch-v2-row-content>em { color: #ff7b72; }
html[data-theme="dark"] .shipment-batch-v2-form-section { background: var(--gh-canvas-subtle); border-color: var(--gh-border); }
html[data-theme="dark"] .shipment-batch-v2-form-section-heading { background: var(--gh-surface-raised); border-color: var(--gh-border); }

@media (max-width: 1199.98px) {
    .shipment-batch-v2-workspace { grid-template-columns: 1fr; }
    .shipment-batch-v2-queue { position: static; min-height: 0; max-height: none; border-right: 0; border-bottom: 1px solid var(--batch-v2-line); }
    .shipment-batch-v2-list { grid-template-columns: repeat(3,minmax(14rem,1fr)); max-height: 17rem; }
    .shipment-batch-v2-detail-navigation { top: .25rem; }
}
@media (max-width: 991.98px) {
    .shipment-batch-page--v2 .shipment-batch-profit-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .shipment-batch-page--v2 .shipment-batch-profit-summary>header { grid-column: 1/-1; }
    .shipment-batch-v2-list { grid-template-columns: repeat(2,minmax(13rem,1fr)); }
}
@media (max-width: 767.98px) {
    .shipment-batch-heading-actions { width: 100%; justify-content: stretch; }
    .shipment-batch-heading-actions .btn { flex: 1 1 auto; }
    .shipment-batch-page--v2 .shipment-batch-source>header { flex-wrap: wrap; }
    .shipment-batch-v2-source-toggle { order: 3; width: 100%; margin: 0; }
    .shipment-batch-v2-list { display: flex; max-height: none; overflow-x: auto; }
    .shipment-batch-v2-row { min-width: 15rem; }
    .shipment-batch-v2-detail { padding: .55rem; }
    .shipment-batch-v2-detail-navigation { align-items: flex-start; flex-direction: column; }
    .shipment-batch-v2-detail-navigation>div:last-child { width: 100%; }
    .shipment-batch-v2-detail-navigation .btn { flex: 1 1 auto; }
    .shipment-batch-page--v2 .shipment-batch-item dl,
    .shipment-batch-page--v2 .shipment-batch-item-financial { grid-template-columns: 1fr 1fr; }
    .shipment-batch-v2-form-section-fields { grid-template-columns: 1fr; }
    .shipment-batch-v2-form-section-fields .span-3,
    .shipment-batch-v2-form-section-fields .span-6,
    .shipment-batch-v2-form-section-fields .span-9,
    .shipment-batch-v2-form-section-fields .span-12 { grid-column: auto; }
    .shipment-batch-v2-form-section.is-flow { margin: 0 .55rem .55rem; }
    .shipment-batch-v2-form-section.is-flow>[data-batch-standard-flow-host] { padding: .55rem; }
}
/* Financeiro administrativo */
.administrative-finance{--af-navy:#073b73;--af-blue:#0b63ce;--af-line:#dbe6f3;--af-muted:#637894;--af-bg:#f4f7fb;color:#102a47;padding:4px 0 28px}.admin-finance-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;padding:4px 2px}.admin-finance-eyebrow{display:block;color:#0b63ce;font-size:.7rem;font-weight:800;letter-spacing:.1em;margin-bottom:3px}.admin-finance-hero h1{font-size:clamp(1.55rem,2vw,2.15rem);font-weight:800;letter-spacing:-.035em;margin:0;color:#073b73}.admin-finance-hero p{color:var(--af-muted);margin:4px 0 0}.admin-finance-hero__actions{display:flex;align-items:center;gap:12px}.admin-period-switcher{align-items:stretch;background:#fff;border:1px solid var(--af-line);border-radius:12px;box-shadow:0 4px 14px rgba(33,65,103,.06);display:flex;min-width:250px;overflow:hidden}.admin-period-switcher>a{align-items:center;color:#315a86;display:flex;font-size:1.5rem;justify-content:center;text-decoration:none;width:42px}.admin-period-switcher>a:hover{background:#edf5ff;color:#0b63ce}.admin-period-switcher>div{align-items:center;border-left:1px solid var(--af-line);border-right:1px solid var(--af-line);display:flex;flex:1;flex-direction:column;justify-content:center;padding:8px 15px}.admin-period-switcher small{color:#71849b;font-size:.68rem;text-transform:uppercase}.admin-period-switcher strong{font-size:.9rem}.admin-new-expense{border-radius:10px;font-weight:700;min-height:46px;padding-inline:18px}.admin-new-expense span{font-size:1.25rem;margin-right:5px}.admin-finance-metrics{display:grid;gap:12px;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:14px}.admin-metric{background:#fff;border:1px solid var(--af-line);border-radius:13px;box-shadow:0 5px 18px rgba(29,63,99,.055);display:grid;grid-template-columns:40px 1fr;min-height:126px;padding:16px;position:relative;transition:transform .16s ease,box-shadow .16s ease}.admin-metric:hover{box-shadow:0 8px 22px rgba(29,63,99,.09);transform:translateY(-1px)}.admin-metric__icon{align-items:center;background:#e9f3ff;border-radius:10px;color:#0b63ce;display:flex;font-size:1.25rem;font-weight:900;height:38px;justify-content:center;width:38px}.admin-metric small{color:#5e738d;display:block;font-size:.7rem;font-weight:700;margin:1px 0 4px;text-transform:uppercase}.admin-metric strong{color:#0a3767;display:block;font-size:1.25rem;letter-spacing:-.025em;line-height:1.2}.admin-metric span{color:#7b8da2;display:block;font-size:.7rem;margin-top:4px}.admin-metric em{bottom:10px;color:#7b8da2;font-size:.65rem;font-style:normal;grid-column:1/-1;left:16px;position:absolute}.admin-metric em.is-up{color:#d15454}.admin-metric em.is-down{color:#15835a}.admin-metric--paid{border-top:3px solid #22a06b}.admin-metric--paid .admin-metric__icon{background:#dcf6e9;color:#15835a}.admin-metric--pending{border-top:3px solid #e5a718}.admin-metric--pending .admin-metric__icon{background:#fff1c7;color:#9c6800}.admin-metric--overdue{border-top:3px solid #e04356}.admin-metric--overdue .admin-metric__icon{background:#ffe5e9;color:#c4233b}.admin-metric--year{border-top:3px solid #7956c7}.admin-metric--year .admin-metric__icon{background:#eee7ff;color:#6945b6}.admin-finance-insights{display:grid;gap:14px;grid-template-columns:minmax(0,1.35fr) minmax(360px,.8fr);margin-bottom:14px}.admin-insight-card{background:#fff;border:1px solid var(--af-line);border-radius:13px;box-shadow:0 5px 18px rgba(29,63,99,.045);padding:18px 20px}.admin-insight-card>header{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:16px}.admin-insight-card header span,.admin-expense-panel__header span{color:#0b63ce;font-size:.66rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.admin-insight-card h2,.admin-expense-panel h2{color:#123a65;font-size:1.02rem;font-weight:800;margin:2px 0 0}.admin-insight-card header small{color:#7a8da4;font-size:.72rem}.admin-trend-chart{align-items:end;display:grid;gap:12px;grid-template-columns:repeat(6,1fr);height:176px}.admin-trend-column{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:flex-end;min-width:0}.admin-trend-value{color:#70849b;font-size:.62rem;height:21px;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:100%}.admin-trend-track{background:#f0f4f9;border-radius:6px 6px 2px 2px;flex:1;max-width:46px;overflow:hidden;position:relative;width:65%}.admin-trend-track i{bottom:0;left:0;position:absolute;width:100%}.admin-trend-total{background:#c7dcf4;border-radius:6px 6px 2px 2px}.admin-trend-paid{background:linear-gradient(180deg,#1381e8,#0757aa);border-radius:5px 5px 2px 2px;opacity:.9}.admin-trend-column>strong{color:#60758e;font-size:.67rem;margin-top:7px}.admin-trend-card footer{display:flex;gap:16px;justify-content:flex-end;margin-top:8px}.admin-trend-card footer span{color:#70839a;font-size:.65rem}.admin-trend-card footer i{border-radius:2px;display:inline-block;height:7px;margin-right:4px;width:12px}.legend-total{background:#c7dcf4}.legend-paid{background:#0b63ce}.admin-category-list{display:flex;flex-direction:column;gap:11px}.admin-category-item{display:grid;grid-template-columns:1fr auto;position:relative}.admin-category-item>div{align-items:center;display:flex;gap:7px}.admin-category-item>div:nth-child(2){justify-content:flex-end}.admin-category-item strong{font-size:.77rem}.admin-category-item em,.admin-category-item small{color:#8393a6;font-size:.64rem;font-style:normal}.admin-category-item b{font-size:.76rem}.admin-category-dot{background:#2d79c7;border-radius:50%;display:inline-block;flex:0 0 auto;height:9px;width:9px}.admin-category-item>i{background:#eef3f8;border-radius:5px;grid-column:1/-1;height:4px;margin-top:5px;overflow:hidden}.admin-category-item>i>span{background:#2d79c7;border-radius:5px;display:block;height:100%}.admin-category--purple .admin-category-dot,.admin-category--purple>i>span,.admin-category-dot.admin-category--purple{background:#7956c7}.admin-category--cyan .admin-category-dot,.admin-category--cyan>i>span,.admin-category-dot.admin-category--cyan{background:#16a6b6}.admin-category--yellow .admin-category-dot,.admin-category--yellow>i>span,.admin-category-dot.admin-category--yellow{background:#e3a214}.admin-category--indigo .admin-category-dot,.admin-category--indigo>i>span,.admin-category-dot.admin-category--indigo{background:#5b62cf}.admin-category--orange .admin-category-dot,.admin-category--orange>i>span,.admin-category-dot.admin-category--orange{background:#e98229}.admin-category--red .admin-category-dot,.admin-category--red>i>span,.admin-category-dot.admin-category--red{background:#df4052}.admin-category--green .admin-category-dot,.admin-category--green>i>span,.admin-category-dot.admin-category--green{background:#21a26d}.admin-category--teal .admin-category-dot,.admin-category--teal>i>span,.admin-category-dot.admin-category--teal{background:#1c968e}.admin-category--pink .admin-category-dot,.admin-category--pink>i>span,.admin-category-dot.admin-category--pink{background:#ce5798}.admin-category--slate .admin-category-dot,.admin-category--slate>i>span,.admin-category-dot.admin-category--slate{background:#66758a}.admin-category--gray .admin-category-dot,.admin-category--gray>i>span,.admin-category-dot.admin-category--gray{background:#8b97a7}.admin-category-empty{align-items:center;color:#8495a9;display:flex;flex-direction:column;justify-content:center;min-height:160px;text-align:center}.admin-category-empty strong{color:#4b617a;font-size:.9rem}.admin-category-empty span{font-size:.72rem}.admin-expense-panel{background:#fff;border:1px solid var(--af-line);border-radius:13px;box-shadow:0 6px 22px rgba(29,63,99,.055);overflow:hidden}.admin-expense-panel__header{padding:18px 20px 10px}.admin-expense-panel__header p{color:#788aa0;font-size:.74rem;margin:3px 0 0}.admin-expense-filters{align-items:end;background:#f8fafd;border-bottom:1px solid var(--af-line);border-top:1px solid #edf2f8;display:grid;gap:9px;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(130px,.7fr)) auto auto;padding:12px 20px}.admin-expense-filters label>span{color:#526b87;display:block;font-size:.67rem;font-weight:700;margin:0 0 4px}.admin-expense-filters input,.admin-expense-filters select{background:#fff;border:1px solid #cbd9e9;border-radius:8px;color:#173653;font-size:.76rem;height:38px;padding:0 10px;width:100%}.admin-expense-filters .btn{font-size:.74rem;height:38px}.admin-expense-table{border-collapse:collapse;width:100%}.admin-expense-table th{background:#fff;border-bottom:1px solid var(--af-line);color:#67809a;font-size:.66rem;font-weight:800;letter-spacing:.025em;padding:11px 16px;text-transform:uppercase;white-space:nowrap}.admin-expense-table td{border-bottom:1px solid #e8eef5;padding:12px 16px;vertical-align:middle}.admin-expense-row:hover td{background:#f9fbfe}.admin-expense-row--cancelled{opacity:.62}.admin-expense-name{align-items:flex-start;display:flex;gap:10px;min-width:230px}.admin-expense-name>.admin-category-dot{height:10px;margin-top:4px;width:10px}.admin-expense-table td strong{color:#173a60;display:block;font-size:.77rem}.admin-expense-table td small{color:#7c8ea3;display:block;font-size:.66rem;margin-top:2px}.admin-expense-name em{background:#eef4fb;border-radius:4px;color:#52708f;display:inline-block;font-size:.6rem;font-style:normal;margin-top:4px;padding:2px 5px}.admin-table-category{max-width:190px}.admin-status{align-items:center;border-radius:20px;display:inline-flex!important;font-size:.66rem!important;font-weight:800;padding:4px 8px;white-space:nowrap}.admin-status i{border-radius:50%;height:6px;margin-right:5px;width:6px}.admin-status--paid{background:#ddf6e9;color:#117448!important}.admin-status--paid i{background:#1d9d67}.admin-status--pending{background:#fff2ce;color:#936200!important}.admin-status--pending i{background:#d89b12}.admin-status--overdue{background:#ffe4e8;color:#b71f35!important}.admin-status--overdue i{background:#d92f47}.admin-status--today{background:#ffebcf;color:#a55b00!important}.admin-status--today i{background:#e27f0c}.admin-status--cancelled{background:#edf0f4;color:#657386!important}.admin-status--cancelled i{background:#8794a4}.admin-expense-amount{font-size:.84rem!important;white-space:nowrap}.admin-expense-actions{align-items:center;display:flex;gap:7px;justify-content:flex-end}.admin-expense-actions .btn{border-radius:7px;font-size:.65rem;font-weight:700;white-space:nowrap}.admin-row-menu{background:transparent;border:0;border-radius:7px;color:#58718d;font-weight:900;letter-spacing:1px;padding:6px 7px}.admin-row-menu:hover{background:#edf3fa}.admin-row-locked{color:#a2afbd}.admin-expense-panel__footer{align-items:center;background:#f8fafd;color:#74879d;display:flex;font-size:.7rem;justify-content:space-between;padding:11px 20px}.admin-expense-panel__footer strong{color:#24496f}.admin-expense-empty{align-items:center;display:flex;gap:16px;justify-content:center;min-height:190px;padding:30px}.admin-expense-empty>span{align-items:center;background:#e0f5e9;border-radius:50%;color:#168359;display:flex;font-size:1.2rem;height:44px;justify-content:center;width:44px}.admin-expense-empty strong{color:#294b6e}.admin-expense-empty p{color:#7c8ea3;font-size:.75rem;margin:3px 0 0}.admin-finance-modal .modal-content{border:0;border-radius:15px;box-shadow:0 24px 70px rgba(11,40,72,.24);overflow:hidden}.admin-finance-modal .modal-header{align-items:flex-start;background:#f7faff;border-bottom:1px solid #dce7f3;padding:19px 22px}.admin-finance-modal .modal-title{color:#0a3a70;font-size:1.3rem;font-weight:800}.admin-finance-modal .modal-header p{color:#71859d;font-size:.73rem;margin:3px 0 0}.admin-finance-modal .modal-body{padding:20px 22px}.admin-finance-modal .modal-footer{background:#f8fafd;border-top:1px solid #dce7f3;padding:13px 22px}.admin-form-section{display:grid;gap:12px;grid-template-columns:30px 1fr}.admin-form-section+.admin-form-section{border-top:1px solid #e4ebf3;margin-top:18px;padding-top:18px}.admin-form-section__number{align-items:center;background:#0b63ce;border-radius:8px;color:#fff;display:flex;font-size:.75rem;font-weight:800;height:28px;justify-content:center;width:28px}.admin-form-section__content>h3{color:#153e69;font-size:.92rem;font-weight:800;margin:2px 0}.admin-form-section__content>p{color:#7b8da3;font-size:.7rem;margin:0 0 13px}.admin-form-section .form-label,.admin-finance-modal .form-label{color:#365471;font-size:.71rem;font-weight:700;margin-bottom:4px}.admin-form-section .form-control,.admin-form-section .form-select,.admin-finance-modal .form-control,.admin-finance-modal .form-select{border-color:#cbd9e8;border-radius:8px;font-size:.78rem;min-height:39px}.admin-segmented{background:#edf3f9;border-radius:8px;display:flex;padding:3px}.admin-segmented label{flex:1}.admin-segmented input{height:0;opacity:0;position:absolute;width:0}.admin-segmented span{border-radius:6px;color:#637b94;cursor:pointer;display:block;font-size:.72rem;font-weight:700;padding:7px;text-align:center}.admin-segmented input:checked+span{background:#fff;box-shadow:0 2px 7px rgba(29,63,99,.12);color:#0b63ce}.admin-payment-summary{background:#eff6ff;border:1px solid #cde1fa;border-radius:10px;margin-bottom:16px;padding:13px 15px}.admin-payment-summary small{color:#5e7690;display:block}.admin-payment-summary strong{color:#075cae;display:block;font-size:1.4rem;margin-top:2px}
@media(max-width:1399px){.admin-finance-metrics{grid-template-columns:repeat(3,1fr)}.admin-finance-insights{grid-template-columns:1fr 1fr}.admin-expense-filters{grid-template-columns:1.5fr repeat(2,1fr) auto auto}.admin-expense-filters label:nth-of-type(4){grid-column:1/2}.admin-expense-table td,.admin-expense-table th{padding-inline:11px}}
@media(max-width:991px){.admin-finance-hero{align-items:flex-start;flex-direction:column}.admin-finance-hero__actions{width:100%}.admin-period-switcher{flex:1}.admin-finance-metrics{grid-template-columns:repeat(2,1fr)}.admin-finance-insights{grid-template-columns:1fr}.admin-expense-filters{grid-template-columns:repeat(2,1fr)}.admin-expense-filters label:nth-of-type(4){grid-column:auto}.admin-expense-table{min-width:950px}}
@media(max-width:575px){.administrative-finance{padding-top:0}.admin-finance-hero__actions{align-items:stretch;flex-direction:column}.admin-period-switcher{min-width:0}.admin-finance-metrics{grid-template-columns:1fr}.admin-finance-insights{grid-template-columns:1fr}.admin-insight-card{padding:15px}.admin-trend-chart{gap:5px}.admin-trend-value{display:none}.admin-expense-filters{grid-template-columns:1fr}.admin-expense-filters .btn{width:100%}.admin-form-section{grid-template-columns:1fr}.admin-form-section__number{margin-bottom:-3px}}
html[data-theme="dark"] .administrative-finance{--af-line:#2a435b;--af-muted:#9bb0c4;color:#dbe9f6}html[data-theme="dark"] .admin-finance-hero h1,html[data-theme="dark"] .admin-metric strong,html[data-theme="dark"] .admin-insight-card h2,html[data-theme="dark"] .admin-expense-panel h2,html[data-theme="dark"] .admin-expense-table td strong,html[data-theme="dark"] .admin-finance-modal .modal-title,html[data-theme="dark"] .admin-form-section__content>h3{color:#e1effc}html[data-theme="dark"] .admin-period-switcher,html[data-theme="dark"] .admin-metric,html[data-theme="dark"] .admin-insight-card,html[data-theme="dark"] .admin-expense-panel,html[data-theme="dark"] .admin-finance-modal .modal-content{background:#102437;border-color:#2a435b}html[data-theme="dark"] .admin-period-switcher>div,html[data-theme="dark"] .admin-expense-table td,html[data-theme="dark"] .admin-expense-table th{border-color:#2a435b}html[data-theme="dark"] .admin-expense-filters,html[data-theme="dark"] .admin-expense-panel__footer,html[data-theme="dark"] .admin-finance-modal .modal-header,html[data-theme="dark"] .admin-finance-modal .modal-footer{background:#132a3e;border-color:#2a435b}html[data-theme="dark"] .admin-expense-filters input,html[data-theme="dark"] .admin-expense-filters select,html[data-theme="dark"] .admin-form-section .form-control,html[data-theme="dark"] .admin-form-section .form-select,html[data-theme="dark"] .admin-finance-modal .form-control,html[data-theme="dark"] .admin-finance-modal .form-select{background:#0d1e2e;border-color:#36516a;color:#e2edf8}html[data-theme="dark"] .admin-expense-row:hover td{background:#152c40}html[data-theme="dark"] .admin-trend-track,html[data-theme="dark"] .admin-category-item>i{background:#20394f}html[data-theme="dark"] .admin-segmented{background:#0d1e2e}html[data-theme="dark"] .admin-segmented input:checked+span{background:#1a354c;color:#70b8ff}html[data-theme="dark"] .admin-payment-summary{background:#102f4c;border-color:#28557e}html[data-theme="dark"] .admin-payment-summary strong{color:#7fc0ff}

/* Financeiro administrativo: navegação e gestão completa */
.admin-finance-hero--rich{margin-bottom:0}.admin-finance-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:-2px 0 14px;padding:6px;border:1px solid #dbe6f0;border-radius:12px;background:#fff;box-shadow:0 4px 16px rgba(29,63,99,.045)}.admin-finance-tabs a{display:flex;min-width:0;flex-direction:column;padding:10px 12px;color:#5d7690;border:1px solid transparent;border-radius:8px;text-decoration:none;transition:.16s ease}.admin-finance-tabs a:hover{color:#0b5eaf;background:#f4f8fd}.admin-finance-tabs a.is-active{color:#075cad;border-color:#c7ddf3;background:#eaf4ff}.admin-finance-tabs strong,.admin-finance-tabs small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-finance-tabs strong{font-size:.75rem;font-weight:800}.admin-finance-tabs small{margin-top:2px;color:#8194a8;font-size:.61rem}.admin-metric--budget{border-top:3px solid #8365cf}.admin-metric--budget .admin-metric__icon{color:#6a4eb0;background:#eee8fb}.admin-metric--budget>a{position:absolute;right:13px;bottom:10px;color:#6549a7;font-size:.63rem;font-weight:750;text-decoration:none}.admin-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.admin-section-card{overflow:hidden;border:1px solid var(--af-line);border-radius:13px;background:#fff;box-shadow:0 6px 22px rgba(29,63,99,.055)}.admin-section-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #e5edf5}.admin-section-card>header>div>span{color:#1772c7;font-size:.62rem;font-weight:850;letter-spacing:.08em}.admin-section-card>header h2{margin:2px 0 0;color:#143b64;font-size:1rem;font-weight:850}.admin-section-card>header p{margin:3px 0 0;color:#778ca2;font-size:.7rem}.admin-section-card>header>a:not(.btn),.admin-section-card>header>button:not(.btn){padding:3px;color:#0969c3;border:0;background:transparent;font-size:.68rem;font-weight:750;text-decoration:none;white-space:nowrap}.admin-cashflow-list{max-height:270px;overflow:auto;padding:6px 20px 12px}.admin-cashflow-list>div{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #edf2f7}.admin-cashflow-list>div:last-child{border-bottom:0}.admin-cashflow-list span{display:flex;flex-direction:column}.admin-cashflow-list strong{color:#284b6f;font-size:.77rem}.admin-cashflow-list small{color:#8294a8;font-size:.64rem}.admin-cashflow-list b{color:#173d65;font-size:.82rem}.admin-clean-state{display:flex;min-height:150px;align-items:center;justify-content:center;padding:24px;color:#71869d;font-size:.76rem;text-align:center}.admin-clean-state--action{flex-direction:column;gap:6px}.admin-clean-state--action strong{color:#294d70;font-size:.9rem}.admin-clean-state--action .btn{margin-top:8px}.admin-budget-overview{padding:24px 20px}.admin-budget-overview>div:first-child{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:9px}.admin-budget-overview>div:first-child span{color:#74889e;font-size:.7rem}.admin-budget-overview>div:first-child strong{color:#173f68;font-size:1.2rem}.admin-budget-overview footer{display:flex;justify-content:space-between;margin-top:8px;color:#75899f;font-size:.65rem}.admin-progress{height:7px;overflow:hidden;border-radius:999px;background:#e7eef6}.admin-progress i{display:block;height:100%;border-radius:inherit;background:#2588dc}.admin-progress.is-warning i{background:#e4a11b}.admin-progress.is-danger i{background:#df4052}.admin-status--partial{color:#6b4aa8!important;background:#efe8fc}.admin-status--partial i{background:#8562cc}.admin-expense-filters--wide{grid-template-columns:minmax(190px,1.3fr) repeat(4,minmax(115px,.7fr)) auto auto}.admin-directory{min-height:300px}.admin-recurring-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px}.admin-recurring-grid>article{display:grid;grid-template-columns:34px 1fr auto;gap:11px;padding:15px;border:1px solid #dde7f1;border-radius:10px;background:#fbfdff}.admin-recurring-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:9px;background:#edf4fb}.admin-recurring-copy{min-width:0}.admin-recurring-copy>small{color:#71879f;font-size:.61rem;font-weight:700}.admin-recurring-copy h3{overflow:hidden;margin:2px 0;color:#173d64;font-size:.85rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.admin-recurring-copy p{margin:0 0 9px;color:#7b8fa4;font-size:.66rem}.admin-recurring-copy footer{display:flex;justify-content:space-between;margin-top:5px;color:#7a8fa5;font-size:.6rem}.admin-recurring-grid>article>strong{color:#17416c;font-size:.83rem;white-space:nowrap}.admin-simple-table{width:100%;border-collapse:collapse}.admin-simple-table th{padding:11px 16px;color:#6c8299;border-bottom:1px solid #e1e9f2;background:#f8fafd;font-size:.64rem;text-transform:uppercase}.admin-simple-table td{padding:13px 16px;color:#496682;border-bottom:1px solid #e8eef5;font-size:.73rem;vertical-align:middle}.admin-simple-table td>strong,.admin-simple-table td>span{display:block;color:#173d63;font-size:.77rem}.admin-simple-table td>small{display:block;margin-top:2px;color:#8193a7;font-size:.63rem}.admin-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:18px}.admin-account-card{position:relative;overflow:hidden;padding:17px;border:1px solid #dbe6f1;border-radius:12px;background:linear-gradient(145deg,#fff,#f4f9ff)}.admin-account-card:before{position:absolute;top:0;right:0;left:0;height:4px;background:#2b82d5;content:""}.admin-account-card--green:before{background:#20a26b}.admin-account-card--purple:before{background:#7956c7}.admin-account-card--orange:before{background:#e98229}.admin-account-card--red:before{background:#df4052}.admin-account-card--slate:before{background:#66758a}.admin-account-card.is-inactive{opacity:.55}.admin-account-card header{display:flex;align-items:center;justify-content:space-between}.admin-account-card header span{color:#71879e;font-size:.61rem;font-weight:750;text-transform:uppercase}.admin-account-card header button{padding:0;color:#2875bc;border:0;background:transparent;font-size:.62rem}.admin-account-card h3{margin:13px 0 1px;color:#173d64;font-size:.96rem}.admin-account-card p{margin:0;color:#7d91a6;font-size:.65rem}.admin-account-card>div{margin-top:22px}.admin-account-card>div small{display:block;color:#7890a8;font-size:.61rem}.admin-account-card>div strong{color:#123f6d;font-size:1.28rem}.admin-account-card footer{display:flex;justify-content:space-between;margin-top:13px;padding-top:9px;color:#778ca2;border-top:1px solid #e2eaf3;font-size:.61rem}.admin-account-note{display:flex;gap:8px;margin:0 18px 18px;padding:12px 14px;color:#617a94;border:1px solid #cfe1f3;border-radius:9px;background:#f0f7ff;font-size:.68rem}.admin-account-note strong{color:#24517f;white-space:nowrap}.admin-budget-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px}.admin-budget-list>article{padding:15px;border:1px solid #dde7f1;border-radius:10px;background:#fbfdff}.admin-budget-title{display:flex;align-items:center;gap:8px}.admin-budget-title h3{margin:0;color:#173d64;font-size:.82rem}.admin-budget-title small{display:block;color:#8294a8;font-size:.61rem}.admin-budget-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 10px}.admin-budget-numbers span{display:flex;flex-direction:column}.admin-budget-numbers small{color:#8294a7;font-size:.59rem}.admin-budget-numbers strong{color:#21476d;font-size:.78rem}.admin-budget-numbers .is-negative strong{color:#c42940}.admin-budget-list footer{display:flex;justify-content:space-between;margin-top:7px;color:#74899f;font-size:.61rem}.admin-budget-list footer button{padding:0;color:#176dbd;border:0;background:transparent;font-size:.62rem;font-weight:750}.admin-report-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:18px}.admin-report-summary article{padding:14px;border:1px solid #dce7f1;border-radius:9px;background:#f8fbfe}.admin-report-summary small{display:block;color:#748aa0;font-size:.63rem}.admin-report-summary strong{color:#153e68;font-size:1.15rem}.admin-report-summary span{margin-left:5px;color:#7b8fa5;font-size:.64rem}.admin-report-table{min-width:1400px;width:100%;border-collapse:collapse}.admin-report-table th{padding:9px;color:#6b8198;border:1px solid #e1e9f2;background:#f7fafd;font-size:.6rem;text-align:right}.admin-report-table th:first-child{text-align:left}.admin-report-table td{padding:9px;color:#516d88;border:1px solid #e6edf4;font-size:.61rem;text-align:right;white-space:nowrap}.admin-report-table td:first-child{display:flex;align-items:center;gap:7px;min-width:180px;text-align:left}.admin-report-table td:first-child strong{color:#24496e}.admin-report-total td{color:#123e69!important;background:#edf5fd;font-weight:850}.admin-payment-summary span{display:block;color:#7890a7;font-size:.62rem}.admin-finance-modal .form-text{color:#7b8fa4;font-size:.63rem}
@media(min-width:1400px){.admin-finance-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1399px){.admin-finance-tabs{grid-template-columns:repeat(4,1fr)}.admin-expense-filters--wide{grid-template-columns:repeat(3,1fr)}.admin-account-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:991px){.admin-finance-tabs{display:flex;overflow-x:auto}.admin-finance-tabs a{min-width:145px}.admin-overview-grid{grid-template-columns:1fr}.admin-recurring-grid,.admin-budget-list{grid-template-columns:1fr}.admin-account-grid{grid-template-columns:1fr}.admin-expense-filters--wide{grid-template-columns:repeat(2,1fr)}}
@media(max-width:575px){.admin-finance-tabs a{min-width:125px}.admin-expense-filters--wide{grid-template-columns:1fr}.admin-budget-numbers{grid-template-columns:1fr}.admin-report-summary{grid-template-columns:1fr}.admin-account-note{flex-direction:column}.admin-recurring-grid>article{grid-template-columns:30px 1fr}.admin-recurring-grid>article>strong{grid-column:2}}
html[data-theme="dark"] .admin-finance-tabs,html[data-theme="dark"] .admin-section-card,html[data-theme="dark"] .admin-recurring-grid>article,html[data-theme="dark"] .admin-account-card,html[data-theme="dark"] .admin-budget-list>article{color:#dceaf7;border-color:#2a435b;background:#102437}html[data-theme="dark"] .admin-finance-tabs a{color:#a6bacd}html[data-theme="dark"] .admin-finance-tabs a.is-active{color:#80c2ff;border-color:#315b80;background:#123654}html[data-theme="dark"] .admin-section-card>header,html[data-theme="dark"] .admin-simple-table td,html[data-theme="dark"] .admin-recurring-grid>article,html[data-theme="dark"] .admin-account-card footer{border-color:#2a435b}html[data-theme="dark"] .admin-section-card h2,html[data-theme="dark"] .admin-recurring-copy h3,html[data-theme="dark"] .admin-recurring-grid>article>strong,html[data-theme="dark"] .admin-simple-table td>strong,html[data-theme="dark"] .admin-simple-table td>span,html[data-theme="dark"] .admin-account-card h3,html[data-theme="dark"] .admin-account-card>div strong,html[data-theme="dark"] .admin-budget-title h3,html[data-theme="dark"] .admin-budget-numbers strong,html[data-theme="dark"] .admin-report-summary strong{color:#e0eefb}html[data-theme="dark"] .admin-simple-table th,html[data-theme="dark"] .admin-report-summary article,html[data-theme="dark"] .admin-report-table th{border-color:#2a435b;background:#132a3e}html[data-theme="dark"] .admin-account-note{color:#a6b9cc;border-color:#315574;background:#102f4c}html[data-theme="dark"] .admin-progress{background:#203a50}html[data-theme="dark"] .admin-report-table td{border-color:#294257;color:#acc0d2}html[data-theme="dark"] .admin-report-total td{background:#143450}
.admin-attachment-link{color:#146fbd;font-weight:750;text-decoration:none}.admin-attachment-link:hover{text-decoration:underline}
.admin-category-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:18px}.admin-category-directory>article{display:grid;grid-template-columns:38px 1fr auto auto;align-items:center;gap:11px;padding:13px;border:1px solid #dfe8f1;border-radius:10px;background:#fbfdff}.admin-category-directory>article.is-inactive{opacity:.58}.admin-category-directory__icon{display:grid;width:38px;height:38px;place-items:center;border-radius:10px;background:#edf4fb}.admin-category-directory__icon .admin-category-dot{width:13px;height:13px}.admin-category-directory h3{margin:0;color:#173d64;font-size:.82rem}.admin-category-directory p{margin:2px 0 0;color:#8194a8;font-size:.62rem}.admin-category-directory>article>button{padding:3px;color:#176dbd;border:0;background:transparent;font-size:.64rem;font-weight:750}@media(min-width:1400px){.admin-finance-tabs{grid-template-columns:repeat(8,minmax(0,1fr))}}@media(max-width:991px){.admin-category-directory{grid-template-columns:1fr}}@media(max-width:575px){.admin-category-directory>article{grid-template-columns:34px 1fr}.admin-category-directory>article>.admin-status,.admin-category-directory>article>button{grid-column:2;justify-self:start}}html[data-theme="dark"] .admin-category-directory>article{border-color:#2a435b;background:#102437}html[data-theme="dark"] .admin-category-directory h3{color:#e0eefb}

/* Financeiro administrativo: posição executiva, calendário, faturas e conciliação */
.admin-executive-panel{display:grid;grid-template-columns:1.35fr repeat(3,1fr);gap:1px;margin-bottom:14px;overflow:hidden;border:1px solid #d9e5f0;border-radius:13px;background:#dfe8f1;box-shadow:0 6px 22px rgba(29,63,99,.05)}.admin-executive-panel>*{background:#fff}.admin-executive-panel__lead{padding:18px 20px}.admin-executive-panel__lead>span{color:#0c6dc6;font-size:.61rem;font-weight:850;letter-spacing:.08em}.admin-executive-panel__lead h2{margin:3px 0;color:#123d69;font-size:1rem;font-weight:850}.admin-executive-panel__lead p{margin:3px 0 0;color:#748aa0;font-size:.67rem;line-height:1.45}.admin-executive-panel>article{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:16px 18px}.admin-executive-panel>article small{color:#74899e;font-size:.63rem;font-weight:700}.admin-executive-panel>article strong{margin:3px 0;color:#123f6e;font-size:1.18rem}.admin-executive-panel>article span{overflow:hidden;color:#8193a6;font-size:.59rem;text-overflow:ellipsis;white-space:nowrap}.admin-executive-panel>article.is-danger strong{color:#cb293f}.admin-executive-panel>article.is-positive strong{color:#13825b}.admin-executive-alerts{display:grid;grid-column:1/-1;grid-template-columns:repeat(3,1fr);gap:1px;background:#dfe8f1}.admin-executive-alerts a{display:flex;align-items:center;gap:9px;padding:10px 16px;color:#607a94;background:#f9fbfd;text-decoration:none}.admin-executive-alerts a:hover{background:#f0f7ff}.admin-executive-alerts b{display:grid;min-width:25px;height:25px;place-items:center;color:#0a65ba;border-radius:7px;background:#e3f1ff;font-size:.72rem}.admin-executive-alerts span{font-size:.65rem;font-weight:700}
.admin-calendar-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:16px 18px}.admin-calendar-summary article{padding:12px 14px;border:1px solid #dfe8f1;border-radius:9px;background:#f9fbfe}.admin-calendar-summary small{display:block;color:#778ca2;font-size:.61rem}.admin-calendar-summary strong{color:#153f6a;font-size:1rem}.admin-calendar-weekdays,.admin-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.admin-calendar-weekdays{margin:0 18px;border:1px solid #dfe8f1;border-bottom:0;border-radius:9px 9px 0 0;background:#f4f8fc}.admin-calendar-weekdays span{padding:8px;color:#6d8399;border-right:1px solid #dfe8f1;font-size:.61rem;font-weight:800;text-align:center;text-transform:uppercase}.admin-calendar-weekdays span:last-child{border-right:0}.admin-calendar-grid{margin:0 18px 18px;border-top:1px solid #dfe8f1;border-left:1px solid #dfe8f1}.admin-calendar-grid>article,.admin-calendar-grid>.is-empty{min-height:126px;padding:8px;border-right:1px solid #dfe8f1;border-bottom:1px solid #dfe8f1;background:#fff}.admin-calendar-grid>.is-empty{background:#f8fafc}.admin-calendar-grid>article>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.admin-calendar-grid>article>header strong{display:grid;width:24px;height:24px;place-items:center;color:#315475;border-radius:7px;font-size:.68rem}.admin-calendar-grid>article>header span{color:#8496a9;font-size:.55rem}.admin-calendar-grid>article.is-today{box-shadow:inset 0 0 0 2px #2688df}.admin-calendar-grid>article.is-today>header strong{color:#fff;background:#1475ce}.admin-calendar-event{display:flex;align-items:flex-start;gap:6px;margin-bottom:5px;padding:5px 6px;color:#3d5d7a;border-radius:6px;background:#f3f7fb;text-decoration:none}.admin-calendar-event:hover{color:#155e9f;background:#eaf4fd}.admin-calendar-event>i{flex:0 0 6px;height:6px;margin-top:4px;border-radius:50%;background:#7c90a4}.admin-calendar-event span{min-width:0}.admin-calendar-event b,.admin-calendar-event small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-calendar-event b{font-size:.58rem}.admin-calendar-event small{margin-top:1px;color:#7e91a4;font-size:.52rem}.admin-calendar-event--overdue{background:#fff0f2}.admin-calendar-event--overdue>i{background:#df3e53}.admin-calendar-event--paid{background:#edf9f3}.admin-calendar-event--paid>i{background:#20a16d}.admin-calendar-event--today{background:#fff7e8}.admin-calendar-event--today>i{background:#df8a12}.admin-calendar-more{display:block;padding:2px 5px;color:#6e849a;font-size:.53rem}
.admin-account-card>div em{display:block;margin-top:3px;color:#758ca2;font-size:.58rem;font-style:normal}.admin-card-config{padding:12px;border:1px solid #cfe0f1;border-radius:9px;background:#f4f9fe}.admin-invoice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:18px}.admin-invoice-card{padding:17px;border:1px solid #dce6f0;border-radius:12px;background:linear-gradient(145deg,#fff,#f5f9fd)}.admin-invoice-card>header{display:flex;align-items:flex-start;justify-content:space-between}.admin-invoice-card>header span{color:#7b8fa4;font-size:.58rem;text-transform:uppercase}.admin-invoice-card>header h3{margin:2px 0;color:#173e67;font-size:.93rem}.admin-invoice-card>header>b{padding:4px 7px;color:#8a6410;border-radius:999px;background:#fff2c9;font-size:.54rem}.admin-invoice-card.is-paid>header>b{color:#14754f;background:#ddf4e9}.admin-invoice-values{display:grid;grid-template-columns:1.5fr 1fr;gap:10px;margin:18px 0 11px}.admin-invoice-values span{padding:10px;border-radius:8px;background:#edf4fb}.admin-invoice-values small,.admin-invoice-values strong{display:block}.admin-invoice-values small{color:#71879c;font-size:.57rem}.admin-invoice-values strong{color:#113f6e;font-size:.95rem}.admin-invoice-meta{display:flex;flex-wrap:wrap;gap:6px 12px;margin-bottom:13px;color:#758ba1;font-size:.58rem}.admin-invoice-card>form .btn{font-size:.7rem}.admin-invoice-card details{margin-top:12px;border-top:1px solid #e0e8f1;padding-top:10px}.admin-invoice-card summary{color:#176dbc;cursor:pointer;font-size:.65rem;font-weight:750}.admin-invoice-pay{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.admin-invoice-pay label{display:flex;flex-direction:column;gap:3px}.admin-invoice-pay label:nth-of-type(3),.admin-invoice-pay button{grid-column:1/-1}.admin-invoice-pay label span{color:#70869c;font-size:.57rem}.admin-invoice-pay input,.admin-invoice-pay select{min-width:0;padding:7px;border:1px solid #cbd9e7;border-radius:7px;background:#fff;font-size:.65rem}.admin-invoice-empty{padding:18px 4px;color:#7c8fa3;font-size:.66rem;text-align:center}
.admin-statement-upload{display:grid;grid-template-columns:1fr 1.4fr auto;gap:12px;align-items:end;margin:18px;padding:15px;border:1px solid #cfe1f3;border-radius:10px;background:#f2f8fe}.admin-statement-upload label{display:flex;flex-direction:column;gap:4px}.admin-statement-upload label>span{color:#385a79;font-size:.65rem;font-weight:750}.admin-statement-upload select,.admin-statement-upload input{min-height:38px;padding:7px 9px;border:1px solid #c4d6e7;border-radius:8px;background:#fff;font-size:.7rem}.admin-statement-upload small{color:#7d90a4;font-size:.57rem}.admin-statement-batch{margin:0 18px 18px;overflow:hidden;border:1px solid #dce6f0;border-radius:10px}.admin-statement-batch>header{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border-bottom:1px solid #dfe7ef;background:#f8fafc}.admin-statement-batch>header small{color:#1670c2;font-size:.58rem;font-weight:800}.admin-statement-batch>header h3{margin:2px 0 0;color:#173e65;font-size:.82rem}.admin-statement-batch>header>span{padding:4px 7px;color:#496b88;border-radius:999px;background:#e7eef5;font-size:.55rem;font-weight:750}.admin-reconciliation-table{min-width:1050px}.admin-reconcile-form{display:flex;min-width:370px;gap:7px}.admin-reconcile-form select{flex:1;min-width:0;padding:6px;border:1px solid #c9d8e7;border-radius:7px;background:#fff;font-size:.63rem}.admin-statement-history{margin-top:8px;border-top:1px solid #e2eaf2}.admin-statement-history>h3{margin:0;padding:14px 18px;color:#173e66;font-size:.84rem}
@media(min-width:1400px){.admin-finance-tabs{grid-template-columns:repeat(11,minmax(0,1fr))}}
@media(max-width:1399px){.admin-executive-panel{grid-template-columns:1.4fr repeat(3,1fr)}.admin-invoice-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:991px){.admin-executive-panel{grid-template-columns:1fr 1fr}.admin-executive-panel__lead{grid-column:1/-1}.admin-executive-alerts{grid-template-columns:1fr}.admin-calendar-panel{overflow-x:auto}.admin-calendar-weekdays,.admin-calendar-grid{min-width:900px}.admin-invoice-grid{grid-template-columns:1fr}.admin-statement-upload{grid-template-columns:1fr}}
@media(max-width:575px){.admin-executive-panel{grid-template-columns:1fr}.admin-executive-panel__lead,.admin-executive-alerts{grid-column:1}.admin-calendar-summary{grid-template-columns:1fr 1fr}.admin-invoice-pay{grid-template-columns:1fr}.admin-invoice-pay label,.admin-invoice-pay label:nth-of-type(3),.admin-invoice-pay button{grid-column:1}}
html[data-theme="dark"] .admin-executive-panel{border-color:#2a435b;background:#2a435b}html[data-theme="dark"] .admin-executive-panel>*,html[data-theme="dark"] .admin-executive-alerts a,html[data-theme="dark"] .admin-calendar-grid>article,html[data-theme="dark"] .admin-invoice-card{background:#102437}html[data-theme="dark"] .admin-executive-alerts{background:#2a435b}html[data-theme="dark"] .admin-executive-panel h2,html[data-theme="dark"] .admin-executive-panel>article strong,html[data-theme="dark"] .admin-calendar-summary strong,html[data-theme="dark"] .admin-invoice-card h3,html[data-theme="dark"] .admin-invoice-values strong,html[data-theme="dark"] .admin-statement-batch h3{color:#e0eefb}html[data-theme="dark"] .admin-calendar-summary article,html[data-theme="dark"] .admin-calendar-weekdays,html[data-theme="dark"] .admin-calendar-grid>.is-empty,html[data-theme="dark"] .admin-invoice-values span,html[data-theme="dark"] .admin-statement-batch>header{border-color:#2a435b;background:#132a3e}html[data-theme="dark"] .admin-calendar-grid,html[data-theme="dark"] .admin-calendar-grid>article,html[data-theme="dark"] .admin-calendar-weekdays span,html[data-theme="dark"] .admin-invoice-card,html[data-theme="dark"] .admin-statement-batch{border-color:#2a435b}html[data-theme="dark"] .admin-card-config,html[data-theme="dark"] .admin-statement-upload{border-color:#315574;background:#102f4c}html[data-theme="dark"] .admin-statement-upload select,html[data-theme="dark"] .admin-statement-upload input,html[data-theme="dark"] .admin-reconcile-form select,html[data-theme="dark"] .admin-invoice-pay input,html[data-theme="dark"] .admin-invoice-pay select{border-color:#36516a;background:#0d1e2e;color:#e2edf8}

/* Financeiro administrativo: salto direto de competência */
.admin-period-picker{align-items:center;border-left:1px solid var(--af-line);border-right:1px solid var(--af-line);display:grid;grid-template-columns:1fr auto;min-width:220px;padding:5px 8px}.admin-period-picker label{color:#71849b;font-size:.58rem;font-weight:700;grid-column:1/-1;text-transform:uppercase}.admin-period-picker input{appearance:none;background:transparent;border:0;color:#173d64;font-size:.78rem;font-weight:800;min-width:150px;outline:0;padding:0}.admin-period-picker button{background:#e9f3fd;border:0;border-radius:6px;color:#075fac;font-size:.65rem;font-weight:800;height:26px;padding:0 9px}.admin-period-picker button:hover{background:#d9ebfb}.admin-period-current{color:#1769b2;font-size:.68rem;font-weight:750;text-decoration:none;white-space:nowrap}.admin-period-current:hover{text-decoration:underline}html[data-theme="dark"] .admin-period-picker input{color:#e1effc;color-scheme:dark}html[data-theme="dark"] .admin-period-picker button{background:#183852;color:#8fc9ff}@media(max-width:575px){.admin-period-picker{min-width:0}.admin-period-picker input{min-width:120px}.admin-period-current{text-align:center}}

/* Financeiro administrativo: competência global com mês e ano explícitos */
.admin-period-switcher{min-width:390px}.admin-period-picker{column-gap:5px;grid-template-columns:minmax(112px,1fr) 76px auto;min-width:300px;padding:5px 7px}.admin-period-picker>span{color:#71849b;font-size:.56rem;font-weight:800;grid-column:1/-1;letter-spacing:.04em;line-height:1;text-transform:uppercase}.admin-period-picker select{appearance:none;background-color:#f5f8fc;background-image:linear-gradient(45deg,transparent 50%,#55738f 50%),linear-gradient(135deg,#55738f 50%,transparent 50%);background-position:calc(100% - 10px) 50%,calc(100% - 6px) 50%;background-repeat:no-repeat;background-size:4px 4px;border:1px solid #d4e0ec;border-radius:6px;color:#173d64;font-size:.68rem;font-weight:800;height:27px;outline:0;padding:0 20px 0 7px}.admin-period-picker select:focus{border-color:#2481d7;box-shadow:0 0 0 2px rgba(36,129,215,.13)}.admin-period-picker button{height:27px;padding:0 8px}.admin-period-current{flex:0 0 auto}html[data-theme="dark"] .admin-period-picker select{background-color:#132d43;border-color:#36516a;color:#e1effc;color-scheme:dark}@media(max-width:767px){.admin-period-switcher{min-width:0;width:100%}.admin-period-picker{grid-template-columns:minmax(104px,1fr) 72px auto;min-width:0;width:100%}}@media(max-width:420px){.admin-period-picker{grid-template-columns:1fr 70px}.admin-period-picker button{grid-column:1/-1}.admin-period-switcher{align-items:stretch}.admin-period-switcher>a{width:36px}}

/* Financeiro administrativo: formulário profissional do funcionário */
.admin-employee-modal .modal-dialog{max-width:1060px}.admin-employee-modal .modal-content{background:#f6f9fd}.admin-employee-form__header{align-items:center!important;display:grid!important;gap:16px;grid-template-columns:58px 1fr auto;padding:20px 24px!important}.admin-employee-form__avatar{align-items:center;background:linear-gradient(145deg,#e7f3ff,#d7eaff);border-radius:50%;color:#0870d4;display:flex;height:52px;justify-content:center;width:52px}.admin-employee-form__avatar svg{fill:none;height:27px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;width:27px}.admin-employee-form__header h2{font-size:1.35rem!important;letter-spacing:-.02em}.admin-employee-form__header p{font-size:.72rem!important;line-height:1.45;margin-top:4px!important;max-width:790px}.admin-employee-form__header .btn-close{align-self:start;margin:0}.admin-employee-form__body{display:flex;flex-direction:column;gap:14px;padding:18px 22px!important}.admin-employee-form__section{background:#fff;border:1px solid #dce7f2;border-radius:12px;box-shadow:0 3px 12px rgba(29,63,99,.035);overflow:hidden}.admin-employee-form__section>header{align-items:center;border-bottom:1px solid #e4ebf3;display:flex;gap:10px;padding:12px 18px}.admin-employee-form__section>header>span{align-items:center;background:#e4f1ff;border-radius:8px;color:#0967bd;display:flex;font-size:.62rem;font-weight:900;height:28px;justify-content:center;width:28px}.admin-employee-form__section>header h3{color:#113c69;font-size:.86rem;font-weight:850;margin:0}.admin-employee-form__section>header p{color:#7b8fa5;font-size:.6rem;margin:1px 0 0}.admin-employee-form__grid{display:grid;gap:13px 20px;grid-template-columns:repeat(2,minmax(0,1fr));padding:15px 18px 17px}.admin-employee-field{display:flex;flex-direction:column;gap:5px;min-width:0}.admin-employee-field>span{color:#244866;font-size:.66rem;font-weight:750}.admin-employee-field>span b,.admin-employee-form__footer>small b{color:#d72f48}.admin-employee-field .form-control,.admin-employee-field .form-select{background-color:#fff;border:1px solid #c9d8e8;border-radius:8px;color:#173956;font-size:.72rem;height:39px;min-height:39px;padding:8px 11px}.admin-employee-field textarea.form-control{height:auto;min-height:72px;resize:vertical}.admin-employee-field .form-control::placeholder{color:#9aaabd}.admin-employee-field .form-control:focus,.admin-employee-field .form-select:focus{border-color:#2080d8;box-shadow:0 0 0 3px rgba(32,128,216,.12)}.admin-employee-field .input-group-text{background:#f3f7fb;border-color:#c9d8e8;color:#476782;font-size:.7rem}.admin-employee-field>small{color:#7e90a2;font-size:.56rem;line-height:1.35;margin-top:-1px}.admin-employee-field--wide{grid-column:1/-1}.admin-employee-form__split{display:grid;gap:10px;grid-template-columns:.65fr 1.35fr}.admin-employee-form__notice{align-self:end;background:#f1f7fe;border:1px solid #d7e8f9;border-radius:9px;display:flex;flex-direction:column;min-height:63px;padding:10px 12px}.admin-employee-form__notice strong{color:#185587;font-size:.65rem}.admin-employee-form__notice span{color:#70869b;font-size:.56rem;line-height:1.4;margin-top:2px}.admin-employee-form__footer{align-items:center!important;background:#fff!important;display:flex!important;justify-content:space-between!important;padding:13px 22px!important}.admin-employee-form__footer>small{color:#788b9f;font-size:.6rem}.admin-employee-form__footer>div{display:flex;gap:8px}.admin-employee-form__footer .btn{border-radius:8px;font-size:.72rem;font-weight:750;min-height:39px;padding:8px 17px}.admin-employee-form__footer .btn-primary{box-shadow:0 4px 11px rgba(11,99,206,.2)}.admin-employee-form__footer .btn-primary span{font-size:.8rem;margin-right:4px}@media(max-width:767px){.admin-employee-form__header{grid-template-columns:42px 1fr auto;padding:16px!important}.admin-employee-form__avatar{height:40px;width:40px}.admin-employee-form__avatar svg{height:22px;width:22px}.admin-employee-form__body{padding:12px!important}.admin-employee-form__grid,.admin-employee-form__grid--remuneration{grid-template-columns:1fr}.admin-employee-field--wide{grid-column:auto}.admin-employee-form__split{grid-template-columns:1fr}.admin-employee-form__footer{align-items:stretch!important;flex-direction:column}.admin-employee-form__footer>div{display:grid;grid-template-columns:1fr 1fr}.admin-employee-form__footer .btn{width:100%}}html[data-theme="dark"] .admin-employee-modal .modal-content,html[data-theme="dark"] .admin-employee-form__body{background:#0d1e2e}html[data-theme="dark"] .admin-employee-form__section,html[data-theme="dark"] .admin-employee-form__footer{background:#102437!important;border-color:#2a435b}html[data-theme="dark"] .admin-employee-form__section>header{border-color:#2a435b}html[data-theme="dark"] .admin-employee-form__section>header h3,html[data-theme="dark"] .admin-employee-field>span{color:#dceaf7}html[data-theme="dark"] .admin-employee-field .form-control,html[data-theme="dark"] .admin-employee-field .form-select{background-color:#0d1e2e;border-color:#36516a;color:#e2edf8}html[data-theme="dark"] .admin-employee-field .input-group-text{background:#183149;border-color:#36516a;color:#acc2d8}html[data-theme="dark"] .admin-employee-form__notice{background:#102f4c;border-color:#28557e}html[data-theme="dark"] .admin-employee-form__notice strong{color:#9bcfff}

/* Financeiro administrativo: funcionários e folha */
.admin-payroll-actions{display:flex;align-items:center;gap:7px}.admin-payroll-actions form{display:flex;gap:6px}.admin-payroll-actions input{min-height:34px;padding:5px 8px;border:1px solid #c8d8e8;border-radius:7px;color:#294c6e;background:#fff;font-size:.68rem}.admin-payroll-state{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;padding:16px 18px;border-bottom:1px solid #e3ebf3;background:#f8fbfe}.admin-payroll-state article{padding:12px 13px;border:1px solid #dce7f1;border-radius:9px;background:#fff}.admin-payroll-state small,.admin-payroll-state span{display:block;color:#74899f;font-size:.59rem}.admin-payroll-state strong{display:block;margin:3px 0;color:#123f6c;font-size:1rem}.admin-payroll-list{display:flex;flex-direction:column;gap:10px;padding:18px}.admin-payroll-person{display:grid;grid-template-columns:minmax(260px,1.15fr) minmax(370px,1.3fr) auto;gap:16px;align-items:center;padding:15px;border:1px solid #dae5ef;border-radius:11px;background:#fff}.admin-payroll-person.is-inactive{opacity:.65}.admin-payroll-person__identity{display:flex;align-items:center;gap:11px;min-width:0}.admin-payroll-person__identity>span{display:grid;flex:0 0 38px;height:38px;place-items:center;color:#0a64b8;border-radius:10px;background:#e5f2ff;font-size:.9rem;font-weight:850}.admin-payroll-person__identity h3{overflow:hidden;margin:0;color:#143e68;font-size:.86rem;text-overflow:ellipsis;white-space:nowrap}.admin-payroll-person__identity p{margin:2px 0;color:#6e849a;font-size:.64rem}.admin-payroll-person__identity small{display:block;color:#8495a7;font-size:.57rem}.admin-payroll-person__numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.admin-payroll-person__numbers span{padding:8px 10px;border-radius:7px;background:#f4f8fc}.admin-payroll-person__numbers small,.admin-payroll-person__numbers em{display:block;color:#7a8da2;font-size:.55rem;font-style:normal}.admin-payroll-person__numbers strong{display:block;color:#173f69;font-size:.75rem}.admin-payroll-person .is-positive{color:#168059}.admin-payroll-person .is-negative{color:#c2374c}.admin-payroll-person__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.admin-payroll-person>details{grid-column:1/-1;border-top:1px solid #e6edf4;padding-top:9px}.admin-payroll-person>details>summary{color:#126cbd;cursor:pointer;font-size:.63rem;font-weight:750}.admin-payroll-details{display:grid;grid-template-columns:.8fr 1.1fr 1.1fr;gap:12px;margin-top:10px}.admin-payroll-details>section{padding:11px;border:1px solid #e0e9f2;border-radius:8px;background:#f9fbfd}.admin-payroll-details h4{margin:0 0 8px;color:#23496f;font-size:.7rem}.admin-payroll-details dl{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0}.admin-payroll-details dl div{min-width:0}.admin-payroll-details dt{color:#8092a5;font-size:.53rem}.admin-payroll-details dd{overflow:hidden;margin:1px 0;color:#355573;font-size:.62rem;text-overflow:ellipsis;white-space:nowrap}.admin-payroll-details ul{display:flex;flex-direction:column;gap:5px;margin:0;padding:0;list-style:none}.admin-payroll-details li{display:grid;grid-template-columns:1fr auto auto;gap:7px;align-items:center;padding:6px 7px;border-radius:6px;background:#fff}.admin-payroll-details li.is-disabled{opacity:.48}.admin-payroll-details li b,.admin-payroll-details li small{display:block}.admin-payroll-details li b{color:#365674;font-size:.61rem}.admin-payroll-details li small{color:#8193a6;font-size:.52rem}.admin-payroll-details li strong{font-size:.62rem;white-space:nowrap}.admin-payroll-details li button{padding:2px;color:#176db8;border:0;background:transparent;font-size:.52rem}.admin-payroll-empty{margin:0;color:#7d90a4;font-size:.61rem}@media(min-width:1400px){.admin-finance-tabs{grid-template-columns:repeat(12,minmax(0,1fr))}}@media(max-width:1199px){.admin-payroll-state{grid-template-columns:repeat(3,1fr)}.admin-payroll-person{grid-template-columns:1fr}.admin-payroll-person__actions{justify-content:flex-start}.admin-payroll-details{grid-template-columns:1fr 1fr}}@media(max-width:767px){.admin-payroll-actions{align-items:stretch;flex-direction:column}.admin-payroll-actions form{flex-wrap:wrap}.admin-payroll-state{grid-template-columns:1fr 1fr}.admin-payroll-person__numbers,.admin-payroll-details{grid-template-columns:1fr}.admin-payroll-list{padding:10px}}html[data-theme="dark"] .admin-payroll-state,html[data-theme="dark"] .admin-payroll-details>section{border-color:#2a435b;background:#132a3e}html[data-theme="dark"] .admin-payroll-state article,html[data-theme="dark"] .admin-payroll-person,html[data-theme="dark"] .admin-payroll-details li{border-color:#2a435b;background:#102437}html[data-theme="dark"] .admin-payroll-person h3,html[data-theme="dark"] .admin-payroll-state strong,html[data-theme="dark"] .admin-payroll-person__numbers strong,html[data-theme="dark"] .admin-payroll-details h4,html[data-theme="dark"] .admin-payroll-details li b{color:#e0eefb}html[data-theme="dark"] .admin-payroll-person__numbers span{background:#183149}html[data-theme="dark"] .admin-payroll-actions input{border-color:#36516a;background:#0d1e2e;color:#e2edf8;color-scheme:dark}

/* Avisos, endereco e ajuda ocupam linhas independentes em todos os editores. */
.search-select-native[data-client-picker] { display: none !important; }
.shipment-client-quotes { padding: 1rem; border: 1px solid #ead098; border-left: 4px solid #d69b13; border-radius: .65rem; background: #fffbf0; color: #634b1f; }
.shipment-client-quotes-title { display: block; font-size: .92rem; }
.shipment-client-quotes > p { margin: .35rem 0 .8rem; font-size: .8rem; }
.shipment-client-quote { padding: .8rem; margin-top: .6rem; border: 1px solid #ecdfc3; border-radius: .5rem; background: #fff; }
.shipment-client-quote > strong { color: #173d65; font-size: .82rem; }
.shipment-client-quote-details { margin-top: .25rem; color: #718295; font-size: .76rem; overflow-wrap: anywhere; }
.shipment-client-quote-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.shipment-client-quote-existing { margin-top: .55rem; color: #805b1a; font-size: .78rem; font-weight: 650; }
html[data-theme="dark"] .shipment-client-quotes { background: #302a1d; color: #e2cc9e; border-color: #806732; }
html[data-theme="dark"] .shipment-client-quote { background: #162c40; border-color: #4e493a; }
html[data-theme="dark"] .shipment-client-quote > strong { color: #d7e9fc; }
html[data-theme="dark"] .shipment-client-quote-details { color: #acc0d3; }
html[data-theme="dark"] .shipment-client-quote-existing { color: #e3c27f; }
.client-profile { --profile-surface: #fff; --profile-line: #e1e9f2; --profile-heading: #163d65; --profile-text: #567089; max-width: 1540px; margin: 0 auto; }
.client-profile-breadcrumb { display: flex; gap: .65rem; align-items: center; margin: .25rem 0 1.2rem; color: #8596a9; font-size: .82rem; }
.client-profile-breadcrumb a { color: var(--profile-text); text-decoration: none; }
.client-profile-hero { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; padding: 2rem; border: 1px solid #dbe7f4; border-radius: 1rem; background: radial-gradient(ellipse at 95% 0, #dfedfc 0, transparent 60%), linear-gradient(120deg, #fff, #f2f7fd); }
.client-profile-identity { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.client-profile-avatar { display: grid; flex: 0 0 76px; width: 76px; height: 76px; place-items: center; border: 1px solid #cadaed; border-radius: 1.15rem; background: #e6effa; color: #1b5286; font-size: 1.55rem; font-weight: 800; }
.client-profile-name { min-width: 0; }
.client-profile-name > p { margin: 0 0 .5rem; color: #567596; font-size: .75rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.client-profile-name > p span { color: #8195aa; font-weight: 500; letter-spacing: 0; }
.client-profile-name h1 { margin: 0; color: var(--profile-heading); font-size: clamp(1.3rem, 2.1vw, 2rem); font-weight: 800; line-height: 1.22; overflow-wrap: anywhere; }
.client-profile-legal-name { margin-top: .35rem; color: var(--profile-text); font-size: .85rem; }
.client-profile-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .85rem; }
.client-profile-badges > span { display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .65rem; border: 1px solid #d8e4f0; border-radius: 2rem; color: #476482; background: #fff9; font-size: .74rem; font-weight: 650; }
.client-profile-badges .client-profile-status { border-color: #cdebdc; background: #eaf8f0; color: #25805b; }
.client-profile-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.client-profile-badges .is-inactive { color: #7b8794; border-color: #dce3ea; background: #f0f3f6; }
.client-profile-edit { display: inline-flex; flex-shrink: 0; align-items: center; gap: .5rem; padding: .65rem 1rem; border-radius: .6rem; font-size: .84rem; font-weight: 700; }
.client-profile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.client-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 1.35rem; }
.client-profile-details { display: grid; gap: 1.2rem; min-width: 0; }
.client-profile-card { overflow: hidden; border: 1px solid var(--profile-line); border-radius: .85rem; background: var(--profile-surface); box-shadow: 0 3px 12px #153b5e04; }
.client-profile-card > header { display: flex; align-items: center; gap: .8rem; padding: 1.15rem 1.4rem; border-bottom: 1px solid var(--profile-line); }
.client-profile-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: .65rem; background: #edf5ff; color: #377db8; }
.client-profile-card h2 { margin: 0; color: var(--profile-heading); font-size: .96rem; font-weight: 750; }
.client-profile-card header p { margin: .2rem 0 0; color: #8797a7; font-size: .76rem; }
.client-profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 2rem; padding: 1.35rem 1.4rem; margin: 0; }
.client-profile-field { min-width: 0; }
.client-profile-field dt { margin-bottom: .35rem; color: var(--profile-text); font-size: .76rem; font-weight: 550; }
.client-profile-field dd { margin: 0; color: var(--profile-heading); font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.client-profile-field .is-empty { color: #a0adba; font-size: .82rem; font-weight: 400; }
.client-profile-field a { color: #286499; text-decoration: none; }
.client-profile-field a:hover { text-decoration: underline; }
.client-profile-field a span { margin-left: .4rem; color: #9aacbd; }
.client-profile-empty { padding: 1.35rem 1.4rem; }
.client-profile-empty strong { color: #72869a; font-size: .85rem; font-weight: 600; }
.client-profile-empty p { margin: .35rem 0 0; color: #95a3b1; font-size: .78rem; line-height: 1.5; }
.client-profile-related nav { padding: .35rem 1rem; }
.client-profile-related-link { display: flex; align-items: center; gap: .8rem; padding: .95rem .35rem; text-decoration: none; border-bottom: 1px solid var(--profile-line); border-radius: .35rem; }
.client-profile-related-link:last-child { border-bottom: 0; }
.client-profile-related-link:hover { background: #edf5ff70; }
.client-profile-related-link > span:nth-child(2) { flex: 1; min-width: 0; }
.client-profile-related-link strong { display: block; color: var(--profile-heading); font-size: .82rem; font-weight: 700; }
.client-profile-related-link small { display: block; margin-top: .2rem; color: #8697a8; font-size: .7rem; }
.client-profile-related-link b { color: #9baec0; font-size: 1.1rem; font-weight: 400; }
.client-profile-rule { margin: .4rem 1.2rem 1.2rem; padding: 1rem; background: #f5f8fc; border-radius: .65rem; }
.client-profile-rule strong { color: var(--profile-heading); font-size: .78rem; }
.client-profile-rule p { margin: .35rem 0 0; color: var(--profile-text); font-size: .73rem; line-height: 1.6; }
.client-profile-notes { margin: 0; padding: 1.35rem 1.4rem; color: var(--profile-text); font-size: .85rem; white-space: pre-wrap; }
html[data-theme="dark"] .client-profile { --profile-surface: #142b42; --profile-line: #29425c; --profile-heading: #e0ecf9; --profile-text: #a3b7ca; }
html[data-theme="dark"] .client-profile-hero { background: linear-gradient(120deg, #183754, #142b42); border-color: #29425c; }
html[data-theme="dark"] .client-profile-avatar, html[data-theme="dark"] .client-profile-icon { background: #1c3d5c; color: #9bc7f3; border-color: #345675; }
html[data-theme="dark"] .client-profile-rule { background: #1a344d; }
html[data-theme="dark"] .client-profile-field a { color: #9bcbfa; }
html[data-theme="dark"] .client-profile-name > p { color: #a3bfda; }
html[data-theme="dark"] .client-profile-name > p span { color: #93abc1; }
html[data-theme="dark"] .client-profile-badges > span { background: #183754; border-color: #345675; color: #b6cde5; }
@media (max-width: 1100px) { .client-profile-layout { grid-template-columns: minmax(0, 1fr) 285px; } }
@media (max-width: 767px) { .client-profile-hero { align-items: stretch; flex-direction: column; padding: 1.2rem; gap: 1.1rem; } .client-profile-identity { gap: .85rem; } .client-profile-avatar { flex-basis: 52px; width: 52px; height: 52px; border-radius: .8rem; font-size: 1.1rem; } .client-profile-name > p span { display: none; } .client-profile-edit { justify-content: center; } .client-profile-layout { grid-template-columns: minmax(0, 1fr); } .client-profile-card > header, .client-profile-fields, .client-profile-empty { padding: 1.1rem; } .client-profile-fields { gap: 1.1rem; } }
@media (max-width: 420px) { .client-profile-fields { grid-template-columns: minmax(0, 1fr); } }
.search-select--client .search-select-input { min-height: 44px; padding-block: .65rem; font-size: 1rem; text-transform: none; }
.search-select-panel--client { border-radius: .65rem; box-shadow: 0 .5rem 1.8rem #17345226; }
.search-select-panel--client .search-select-option { align-items: flex-start; min-height: 3.6rem; padding: .7rem .9rem; }
.search-select-panel--client .search-select-option-label { min-width: 0; white-space: normal; }
.search-select-panel--client .search-select-option-label strong { display: block; font-size: .95rem; }
.search-select-panel--client .search-select-option-label small { display: block; margin-top: .2rem; font-size: .78rem; line-height: 1.4; opacity: .8; overflow-wrap: anywhere; }
@media (min-width: 480px) and (max-width: 767.98px) {
    .quote-editor .quote-flow-card .quote-flow-card__route-proposal { grid-row: 3; }
    .quote-editor .quote-flow-card .quote-flow-card__address { grid-row: 4; }
    .quote-editor .quote-flow-card .quote-flow-card__hint { grid-row: 5; }
}
@media (max-width: 479.98px) {
    .quote-editor .quote-flow-card .quote-flow-card__route-proposal { grid-column: 1; grid-row: auto; }
}

.shipment-flow-acronym-previous{display:inline-flex;align-items:center;gap:7px;padding:3px 9px;border:1px solid #dbe3ed;border-radius:20px;color:#60748c;background:#f7f9fc;font-size:.72rem}
.shipment-flow-acronym-previous::before{content:'←';color:#8a9ab0}

.quote-primary-field--vehicle-brand { grid-column: span 4; }
.operation-route-acronym,
.shipment-index-table .operation-route-acronym,
.central-acronym-cell .operation-route-acronym,
.provider-route-acronym { font-size: .95rem; font-weight: 800; line-height: 1.3; padding: .25rem .4rem; min-height: 1.85rem; }
.shipment-route-acronym-editor { width:100%; min-width:0; max-width:100%; }
.operation-route-acronym.shipment-route-acronym-input { width:100%; max-width:100%; min-width:0; font-size:.95rem; box-sizing:border-box; }
.collection-column-route-acronym,.stage-standard-column-route-acronym { width: 8.25rem; }
.client-payment-state.is-pending { display:grid;gap:.12rem;margin-top:.4rem;padding:.45rem .55rem;border:1px solid #e8bb6a;border-left:3px solid #b96b00;border-radius:.4rem;background:#fff5df;color:#754100;font-size:.76rem;font-weight:700;text-align:left; }
.client-payment-state.is-pending strong { font-size:.95rem;font-variant-numeric:tabular-nums; }
.client-payment-state.is-pending small { font-size:.7rem;font-weight:600; }
.client-payment-state.is-credit { border-color:#c5d9ec;border-left-color:#4075a8;background:#eef6ff;color:#244c76; }
html[data-theme="dark"] .client-payment-state.is-pending { background:#392c16;border-color:#8a6631;color:#ffe0a0; }
html[data-theme="dark"] .client-payment-state.is-credit { background:#192f43;border-color:#395b7a;color:#bbdcff; }
.plate-input-actions { display:inline-flex;align-items:center;gap:.2rem;padding:.15rem .25rem;vertical-align:middle; }
