:root{
  --navy:#0a315e;--navy2:#0e447b;--blue:#2f73d9;--gold:#d89d16;--gold2:#efbd37;
  --bg:#f2f7fc;--surface:#fff;--surface2:#f7fbff;--line:#dbe6f1;--text:#102f55;--muted:#70859e;
  --green:#1b9b5a;--red:#d94848;--orange:#e9891e;--purple:#7659d6;--shadow:0 10px 28px rgba(25,55,91,.08);
  --radius:15px;--sidebar:235px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color-scheme:light
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.toast{position:fixed;right:20px;top:20px;z-index:5000;background:#fff;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:12px;padding:12px 16px;box-shadow:var(--shadow);font-size:12px;opacity:0;transform:translateY(-8px);pointer-events:none;transition:.18s;max-width:420px}.toast.show{opacity:1;transform:none}.toast.error{border-left-color:var(--red)}
/* logo */
.lux-mark{display:grid;place-items:center;position:relative;color:var(--gold);border:2px solid var(--gold);clip-path:polygon(50% 0,90% 16%,86% 72%,50% 100%,14% 72%,10% 16%)}.lux-mark:before{content:"♛";position:absolute;top:-19px;color:var(--gold);font-size:18px}.lux-mark span{font-family:Georgia,serif;font-weight:800}.lux-mark.large{width:72px;height:82px;margin:12px auto 8px}.lux-mark.large span{font-size:38px}.lux-mark.small{width:43px;height:49px;flex:0 0 auto}.lux-mark.small span{font-size:24px}.mini-l{display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid #eab73e;color:#f0bd3d;margin-right:7px;font-family:Georgia,serif;font-weight:800}
/* auth */
.auth-shell{min-height:100vh;display:grid;place-items:center;padding:38px 18px 74px;position:relative;overflow:hidden;background:linear-gradient(145deg,#fbfdff 0%,#f1f7fd 62%,#edf5fc 100%)}.auth-shell:before,.auth-shell:after{content:"";position:absolute;border:1px solid rgba(216,157,22,.52);border-radius:50%;width:72vw;height:72vw}.auth-shell:before{left:-44vw;top:-49vw}.auth-shell:after{right:-47vw;bottom:-52vw}.auth-deco{position:absolute;width:260px;height:180px;opacity:.18;background:radial-gradient(circle at 25% 30%,#9ec5f5 0 5px,transparent 6px),linear-gradient(120deg,transparent 45%,#bcd6f4 46% 47%,transparent 48%);border:1px solid #dceaf8;border-radius:28px}.auth-deco.left{left:7%;bottom:15%;transform:rotate(-8deg)}.auth-deco.right{right:7%;top:20%;transform:rotate(9deg)}.auth-card{z-index:2;width:min(540px,94vw);background:rgba(255,255,255,.97);border:1px solid #dce8f4;border-radius:28px;padding:34px 44px 28px;box-shadow:0 28px 80px rgba(32,66,103,.14);text-align:center}.auth-rule{height:2px;width:62px;background:linear-gradient(90deg,var(--gold),var(--gold2));margin:15px auto 23px}.auth-card h1{margin:0;font-size:31px;letter-spacing:.02em;color:#12365f;font-family:Georgia,serif}.auth-card>p{margin:8px 0 28px;color:#bd8410;font-weight:800;font-size:14px;letter-spacing:.02em}.login-form{display:grid;gap:16px;text-align:left}.login-form label{font-size:12px;font-weight:800;color:#193b63}.input-icon{position:relative;margin-top:7px}.input-icon>span{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#7790ac}.input-icon input{padding-left:43px;padding-right:44px}.auth-card input{width:100%;height:52px;border:1px solid #cbd9e9;border-radius:11px;background:#fff;padding:0 14px;outline:none;color:var(--text)}.auth-card input:focus{border-color:#8ab2e5;box-shadow:0 0 0 3px rgba(47,115,217,.07)}.eye-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#637f9e;font-size:18px}.login-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.check{display:flex!important;align-items:center;gap:8px!important}.check input{width:18px!important;height:18px!important;margin:0;accent-color:var(--gold)}.text-link{border:0;background:none;color:#256ed1;font-size:12px;font-weight:800}.secure-line{border-top:1px solid #e6edf5;margin-top:22px;padding-top:18px;color:#758aa3;font-size:12px}.auth-footer{position:absolute;bottom:24px;color:#173c68;font-weight:850;letter-spacing:.1em;font-size:11px}
/* shell */
.software{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100vh}.sidebar{height:100vh;position:sticky;top:0;background:linear-gradient(180deg,#072d58 0%,#0a3b6d 55%,#082d57 100%);color:#fff;padding:15px 10px 14px;display:flex;flex-direction:column;border-right:1px solid rgba(255,255,255,.07);z-index:50}.brand-block{height:86px;display:flex;align-items:center;gap:10px;padding:0 7px 14px;border-bottom:1px solid rgba(255,255,255,.12)}.brand-copy strong{display:block;color:#f1bd37;font-size:14px;letter-spacing:.04em}.brand-copy small{display:block;color:#d7e4f1;font-size:9px;margin-top:5px;letter-spacing:.08em}.side-close{display:none;margin-left:auto;border:0;background:none;color:#fff;font-size:23px}.side-nav{display:grid;gap:3px;margin-top:12px;overflow:auto;padding:0 1px 12px;scrollbar-width:none}.side-nav::-webkit-scrollbar{width:0;height:0}.nav-btn{border:0;background:transparent;color:#edf4fb;border-radius:10px;padding:10px 10px;display:flex;align-items:center;gap:11px;text-align:left;font-size:11px;font-weight:720;position:relative;transition:.15s}.nav-btn:hover{background:rgba(255,255,255,.07)}.nav-btn.active{background:linear-gradient(90deg,rgba(216,157,22,.28),rgba(255,255,255,.10));box-shadow:inset 3px 0 var(--gold2)}.nav-ico{font-size:17px;width:22px;text-align:center}.side-version{margin-top:auto;border:1px solid rgba(239,189,55,.3);background:rgba(5,30,58,.33);border-radius:12px;padding:11px;color:#dce8f4;font-size:9px;line-height:1.7}.version-brand{display:flex;align-items:center;color:#efbd3b;margin-bottom:4px}.system-ok i{display:inline-block;width:7px;height:7px;background:#37c978;border-radius:50%;margin-right:7px}.main{min-width:0;background:linear-gradient(180deg,#fff 0,#f7faff 42%,#f2f7fc 100%)}.topbar{height:76px;background:rgba(255,255,255,.97);border-bottom:1px solid #dde7f2;display:flex;align-items:center;gap:13px;padding:0 20px;position:sticky;top:0;z-index:35;backdrop-filter:blur(10px)}.top-icon,.top-control,.profile-control{height:42px;border:1px solid #dbe5ef;background:#fff;border-radius:10px;color:var(--text)}.top-icon{width:42px;font-size:19px}.top-title{display:flex;flex-direction:column}.top-title strong{font-size:16px;color:#0b315e}.top-title small{font-size:9px;color:#7c8fa6;margin-top:4px;font-weight:700}.top-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.top-control{padding:0 13px;display:flex;align-items:center;gap:6px;font-size:10px;font-weight:800}.icon-only{width:42px;padding:0;justify-content:center;position:relative;font-size:17px}.icon-only b{position:absolute;right:-2px;top:-5px;background:#df2634;color:#fff;border:2px solid #fff;border-radius:50%;min-width:18px;height:18px;display:grid;place-items:center;font-size:8px}.profile-control{padding:0 10px;display:flex;align-items:center;gap:8px}.avatar{width:31px;height:31px;border-radius:8px;background:#f1f5f9;border:1px solid #dce5ee;display:grid;place-items:center;font-weight:850}.profile-copy{text-align:left}.profile-copy strong{display:block;font-size:10px}.profile-copy small{display:block;font-size:8px;color:#8395aa;margin-top:2px}.pagebar{padding:23px 26px 9px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.pagebar h2{margin:0;color:#0b315e;font-size:24px}.pagebar p{margin:5px 0 0;color:#70849d;font-size:11px}.page-actions{display:flex;gap:9px;flex-wrap:wrap}.content{padding:9px 26px 36px;max-width:1760px;margin:0 auto}.mobile-shade{display:none}.menu-btn{display:none}
/* common */
.btn{min-height:39px;border:1px solid #d4e0ec;border-radius:10px;background:#fff;color:#254667;padding:9px 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:11px;font-weight:800}.btn:hover{filter:brightness(.99);transform:translateY(-1px)}.btn.gold{background:linear-gradient(135deg,#e9b42e,#ca8d11);border-color:#d5a126;color:#fff;box-shadow:0 7px 18px rgba(202,141,17,.16)}.btn.navy{background:linear-gradient(135deg,#0d3b70,#0a2d58);border-color:#0c3564;color:#fff}.btn.blue{background:#2e72d5;border-color:#2e72d5;color:#fff}.btn.ghost{background:#fff}.btn.danger{background:#fff4f4;border-color:#ffd1d1;color:#cf3838}.btn.mini{min-height:31px;padding:6px 9px;font-size:9px}.btn-login{height:54px;font-size:15px}.panel{background:#fff;border:1px solid #dfe8f1;border-radius:14px;box-shadow:var(--shadow);padding:15px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:11px;margin-bottom:12px}.panel-head h3,.panel-head h4{margin:0;color:#143861}.panel-head h4{font-size:13px}.toolbar{display:flex;gap:9px;align-items:center;margin-bottom:13px}.search{height:39px;border:1px solid #d4e0ec;border-radius:9px;background:#fbfdff;padding:0 12px;min-width:260px;outline:none;color:var(--text)}.empty{padding:25px;border:1px dashed #cad9e9;border-radius:11px;background:#fbfdff;text-align:center;color:#7d8fa5;font-size:11px}.badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:7px;font-size:8px;font-weight:900;background:#edf4fb;color:#47729b;white-space:nowrap}.badge.green{background:#e7f8ee;color:#178d51}.badge.red{background:#fff0f0;color:#d63c3c}.badge.orange{background:#fff3e4;color:#d17a14}.badge.blue{background:#eaf3ff;color:#2867c5}.badge.purple{background:#f0edff;color:#6f52ce}.metric-grid{display:grid;grid-template-columns:repeat(6,minmax(135px,1fr));gap:11px}.metric-card{background:#fff;border:1px solid #dfe7f0;border-radius:13px;padding:14px;min-height:118px;box-shadow:0 5px 15px rgba(29,58,92,.05)}.metric-card .metric-icon{width:38px;height:38px;border-radius:10px;background:#edf4ff;display:grid;place-items:center;color:#2668c7;font-size:18px;margin-bottom:10px}.metric-card small{display:block;color:#657b96;font-size:8px;font-weight:900;text-transform:uppercase}.metric-card strong{display:block;color:#102f55;font-size:22px;margin-top:5px}.metric-card p{margin:4px 0 0;color:#71869e;font-size:9px}.dashboard-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:13px;margin-top:13px}.quick-panel{margin-top:13px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quick-action{border:1px solid #dfe7f1;background:#fff;border-radius:11px;min-height:82px;padding:12px;display:flex;align-items:center;gap:11px;color:var(--text);text-align:left}.quick-ico{width:38px;height:38px;border-radius:10px;background:#edf4ff;display:grid;place-items:center;color:#286bc9;font-size:18px}.quick-copy{flex:1}.quick-copy strong{display:block;font-size:10px}.quick-copy small{display:block;color:#7d90a6;font-size:8px;margin-top:4px}.alert-row{border-left:3px solid var(--gold);background:#fff9ed;border-radius:8px;padding:10px 11px;margin-bottom:8px;font-size:10px}.alert-row strong{display:block;margin-bottom:3px}
/* tables */
.table-wrap{overflow:auto;border:1px solid #e0e7ef;border-radius:10px}.data-table{width:100%;border-collapse:collapse;min-width:850px;background:#fff}.data-table th{position:sticky;top:0;background:#f7faff;color:#657b95;text-align:left;font-size:8px;text-transform:uppercase;letter-spacing:.03em;padding:9px;border-bottom:1px solid #dfe7f0}.data-table td{padding:9px;border-bottom:1px solid #edf1f5;color:#294864;font-size:9px;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fbfdff}.table-actions{display:flex;gap:5px}.action-btn{border:1px solid #dce5ef;background:#fff;border-radius:7px;width:29px;height:29px;color:#365f88}.action-btn.danger{color:#d34545}.money-pos{color:#168e51;font-weight:850}.money-neg{color:#d63f3f;font-weight:850}.result-pos{color:#138b4e;font-weight:900}.result-neg{color:#d43d3d;font-weight:900}
/* forms */
label{font-size:9px;font-weight:800;color:#21425f}input,select,textarea{width:100%;margin-top:6px;border:1px solid #ccd9e7;background:#fff;color:#153552;border-radius:9px;padding:9px 10px;outline:none;font-size:10px}input,select{height:39px}textarea{min-height:82px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:#89afe1;box-shadow:0 0 0 3px rgba(47,115,217,.06)}input:disabled,select:disabled,textarea:disabled{background:#eff2f5;color:#9aa8b6;border-color:#dfe5eb}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.full{grid-column:1/-1}.form-section{border:1px solid #e0e8f1;background:#fff;border-radius:12px;padding:14px;margin-bottom:12px}.form-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.form-section-title strong{font-size:13px;color:#173b64}.form-section-title small{color:#8394a8;font-size:8px}.section-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.section-grid.cols5{grid-template-columns:repeat(5,minmax(0,1fr))}.section-grid .span2{grid-column:span 2}.section-grid .span3{grid-column:span 3}.section-grid .full{grid-column:1/-1}.check-line{display:flex;align-items:center;gap:7px;margin-top:10px}.check-line input{width:17px;height:17px;margin:0;accent-color:var(--gold)}.check-line span{font-size:9px}.segment{height:42px;border:1px solid #dfe7f1;border-radius:10px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;margin-bottom:15px}.segment button{border:0;background:#fff;color:#244661;font-size:10px;font-weight:850}.segment button.active{background:linear-gradient(135deg,#0f3d72,#0a2d57);color:#fff}.editor-shell{background:#fff;border:1px solid #dfe7f0;border-radius:14px;box-shadow:var(--shadow);padding:15px}.editor-actions{display:flex;justify-content:flex-end;gap:8px;margin-bottom:13px}.money-field{font-variant-numeric:tabular-nums}.tab-strip{display:flex;gap:3px;border-bottom:1px solid #e0e8f1;margin-bottom:14px;overflow:auto}.tab-btn{border:0;background:transparent;color:#71849c;padding:10px 12px;border-bottom:2px solid transparent;font-size:9px;font-weight:850;white-space:nowrap}.tab-btn.active{color:#1f64c6;border-bottom-color:#2f73d9}.subpanel{display:none}.subpanel.active{display:block}.field-help{color:#8395aa;font-size:8px;margin-top:4px}.danger-note{padding:10px 12px;border-radius:9px;background:#fff0f0;border:1px solid #ffd1d1;color:#b83737;font-size:9px}.warning-note{padding:10px 12px;border-radius:9px;background:#fff8e8;border:1px solid #f5deb0;color:#9d6a08;font-size:9px}.success-note{padding:10px 12px;border-radius:9px;background:#eaf8ef;border:1px solid #bfe8cf;color:#177b49;font-size:9px}
/* modal */
.modal{position:fixed;inset:0;z-index:100;background:rgba(13,36,63,.4);display:grid;place-items:center;padding:18px;backdrop-filter:blur(4px)}.modal-card{width:min(940px,96vw);max-height:92vh;overflow:auto;background:#fff;border:1px solid #dbe5ef;border-radius:17px;padding:18px;box-shadow:0 30px 90px rgba(12,36,63,.22)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #e4ebf2;padding-bottom:11px;margin-bottom:14px}.modal-head h3{margin:3px 0 0;font-size:17px}.modal-kicker{font-size:8px;color:#b77d08;font-weight:900;letter-spacing:.12em}.modal-x{width:34px;height:34px;border:1px solid #dce5ef;background:#fff;border-radius:8px;color:#6c829a;font-size:20px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e4ebf2;margin-top:15px;padding-top:13px}
/* finance */
.finance-kpis{display:grid;grid-template-columns:repeat(8,minmax(110px,1fr));gap:8px;margin-bottom:12px}.finance-kpis .metric-card{min-height:100px;padding:11px}.finance-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px}.side-stack{display:grid;gap:12px}.summary-card{background:#fff;border:1px solid #dfe7f0;border-radius:13px;padding:14px;box-shadow:var(--shadow)}.summary-card h4{margin:0 0 12px}.summary-pairs{display:grid;grid-template-columns:1fr 1fr;gap:11px}.summary-pairs small{font-size:8px;color:#7a8ea5}.summary-pairs strong{display:block;margin-top:3px;font-size:12px}.summary-total{grid-column:1/-1;border:1px solid #cfe0f3;background:#f3f8ff;border-radius:9px;padding:10px}.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.filters input,.filters select{height:37px;margin:0;font-size:9px}.filters .grow{min-width:230px;flex:1}
/* checklist */
.checklist-shell{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:13px}.checklist-section{border:1px solid #dfe8f1;border-radius:12px;margin-bottom:11px;overflow:hidden}.checklist-section h4{margin:0;padding:11px 13px;background:#f7faff;border-bottom:1px solid #e2e9f1;font-size:11px}.check-item{display:grid;grid-template-columns:minmax(180px,1fr) 280px;gap:12px;padding:10px 12px;border-bottom:1px solid #edf1f5;align-items:start}.check-item:last-child{border-bottom:0}.check-label{font-size:10px;font-weight:750;color:#244665}.check-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.check-actions label{display:flex;align-items:center;gap:5px;border:1px solid #dce5ee;border-radius:7px;padding:7px;background:#fff;font-size:8px}.check-actions input{width:14px;height:14px;margin:0}.issue-extra{grid-column:1/-1;display:grid;grid-template-columns:150px 1fr;gap:8px;margin-top:7px}.release-box{position:sticky;top:92px}.release-status{padding:12px;border-radius:10px;font-size:10px;font-weight:850;margin-bottom:10px}.release-status.ok{background:#e9f8ef;color:#187f4b}.release-status.wait{background:#fff7e8;color:#986607}.release-status.block{background:#fff0f0;color:#b63333}
/* reports */
.report-toolbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin-bottom:13px}.report-toolbar label{min-width:135px}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.report-card{background:#fff;border:1px solid #dfe8f1;border-radius:13px;padding:15px;box-shadow:var(--shadow)}.report-card h4{margin:0 0 12px}.report-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #edf1f5;font-size:10px}.report-row:last-child{border-bottom:0}.chart-list{display:grid;gap:8px}.chart-row{display:grid;grid-template-columns:110px 1fr 90px;gap:8px;align-items:center;font-size:9px}.bar-track{height:9px;border-radius:999px;background:#edf2f7;overflow:hidden}.bar-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#2f73d9,#6da5f0)}.bar-fill.gold{background:linear-gradient(90deg,#d69a12,#efbd38)}.bar-fill.green{background:linear-gradient(90deg,#1a9656,#45bd7d)}.bar-fill.red{background:linear-gradient(90deg,#dc4848,#f27a7a)}
/* settings */
.settings-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:13px}.setting-card{background:#fff;border:1px solid #dfe8f1;border-radius:13px;padding:15px;box-shadow:var(--shadow)}.setting-card h4{margin:0 0 10px}.setting-card p{color:#778ba3;font-size:9px;line-height:1.55}.status{color:#188d51;font-size:9px;font-weight:850}.role-chip{padding:5px 8px;border-radius:7px;background:#edf4ff;color:#2768c6;font-size:8px;font-weight:850}.driver-home{display:grid;gap:13px}.driver-trip-card{background:#fff;border:1px solid #dfe8f1;border-radius:15px;padding:16px;box-shadow:var(--shadow)}.driver-trip-top{display:flex;justify-content:space-between;gap:12px}.driver-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:13px}.driver-actions .btn{min-height:50px}
@media(max-width:1300px){.metric-grid{grid-template-columns:repeat(3,1fr)}.finance-kpis{grid-template-columns:repeat(4,1fr)}.section-grid.cols5{grid-template-columns:repeat(3,1fr)}.section-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:980px){.software{grid-template-columns:1fr}.sidebar{position:fixed;left:-245px;width:235px;transition:.2s;box-shadow:10px 0 35px rgba(6,32,60,.24)}.sidebar.open{left:0}.side-close{display:block}.mobile-shade{display:block;position:fixed;inset:0;background:rgba(11,34,61,.35);z-index:45;opacity:0;pointer-events:none;transition:.2s}.mobile-shade.show{opacity:1;pointer-events:auto}.menu-btn{display:block}.top-actions{gap:5px}.profile-copy{display:none}.dashboard-grid,.finance-layout,.checklist-shell,.settings-grid{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(2,1fr)}.section-grid,.section-grid.cols5{grid-template-columns:repeat(2,1fr)}.release-box{position:static}}
@media(max-width:650px){body{background:#f3f7fc}.topbar{height:66px;padding:0 10px}.top-title strong{font-size:12px}.top-title small{font-size:7px}.top-actions .profile-control{display:none}.top-actions #logoutBtn span:last-child{display:none}.pagebar{padding:16px 13px 7px;flex-direction:column}.pagebar h2{font-size:20px}.page-actions{width:100%}.page-actions .btn{flex:1}.content{padding:7px 12px 24px}.metric-grid,.finance-kpis{grid-template-columns:repeat(2,1fr)}.metric-card{min-height:108px}.quick-grid,.section-grid,.section-grid.cols5,.form-grid,.report-grid{grid-template-columns:1fr}.section-grid .span2,.section-grid .span3{grid-column:auto}.toolbar{flex-direction:column;align-items:stretch}.search{min-width:0;width:100%}.auth-card{padding:28px 20px 24px}.auth-card h1{font-size:25px}.auth-deco{display:none}.login-row{align-items:flex-start}.editor-actions{display:grid;grid-template-columns:1fr 1fr}.editor-actions .btn:first-child{grid-column:1/-1}.modal{padding:7px}.modal-card{width:100%;max-height:97vh}.check-item{grid-template-columns:1fr}.check-actions{grid-template-columns:repeat(3,1fr)}.issue-extra{grid-template-columns:1fr}.driver-actions{grid-template-columns:1fr 1fr}.chart-row{grid-template-columns:90px 1fr 70px}.table-wrap.mobile-cards{border:0;overflow:visible}.table-wrap.mobile-cards table,.table-wrap.mobile-cards thead{display:none}.table-wrap.mobile-cards tbody,.table-wrap.mobile-cards tr,.table-wrap.mobile-cards td{display:block}.table-wrap.mobile-cards tr{border:1px solid #dfe8f1;border-radius:12px;padding:10px;margin-bottom:9px;background:#fff}.table-wrap.mobile-cards td{border:0;padding:4px 0}.side-version{margin-top:10px}.sidebar{padding-bottom:max(14px,env(safe-area-inset-bottom))}}

/* ===== V3.2.1 visual refresh ===== */
:root{
  --navy:#123b69;
  --navy2:#1a4f86;
  --gold:#d9a320;
  --gold2:#f0c55a;
  --bg:#eef4fb;
  --surface:#ffffff;
  --surface2:#f8fbff;
  --line:#d9e5f0;
  --text:#15385f;
  --muted:#7288a3;
  --shadow:0 18px 45px rgba(19,54,95,.10);
  --radius:18px;
}
body{background:var(--bg)}
.logo-hero{width:104px;height:auto;display:block;margin:0 auto 8px;filter:drop-shadow(0 8px 18px rgba(217,163,32,.15))}
.brand-logo{width:42px;height:42px;object-fit:contain;display:block;filter:drop-shadow(0 4px 10px rgba(217,163,32,.18))}
.mini-logo{width:22px;height:22px;object-fit:contain;margin-right:7px;display:block}
.lux-mark,.mini-l{display:none!important}
.auth-shell{
  background:linear-gradient(180deg,#f7fbff 0%,#eef4fb 100%);
}
.auth-shell:before,.auth-shell:after{border-color:rgba(217,163,32,.55)}
.auth-shell .auth-card{
  border:1px solid rgba(208,223,237,.95);
  box-shadow:0 28px 80px rgba(22,58,99,.14);
  backdrop-filter:blur(8px);
}
.auth-card h1{font-size:34px;letter-spacing:.01em}
.auth-card>p{font-size:15px;letter-spacing:.04em}
.auth-footer{font-size:12px;letter-spacing:.12em;font-weight:900}
.input-icon input{border-radius:14px;height:56px}
.btn,
.auth-card .btn-login,
.top-control,
.profile-control,
.action-btn,
.side-nav .nav-btn,
.modal-actions .btn{
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease;
}
.btn:hover,.top-control:hover,.profile-control:hover,.action-btn:hover,.side-nav .nav-btn:hover{transform:translateY(-1px)}
.btn.gold,
.auth-card .btn-login{
  background:linear-gradient(135deg,var(--gold2),var(--gold));
  border:1px solid rgba(196,143,16,.65);
  color:#fff;
  box-shadow:0 14px 26px rgba(217,163,32,.24);
  border-radius:14px;
  font-weight:900;
}
.btn.ghost{border-radius:14px}
.sidebar{
  background:linear-gradient(180deg,#153e6d 0%,#184a80 50%,#11365f 100%);
  box-shadow:8px 0 25px rgba(15,43,79,.10);
}
.brand-block{height:88px;padding:4px 10px 14px;border-bottom:1px solid rgba(255,255,255,.10)}
.brand-copy strong{font-size:15px}
.brand-copy small{font-size:10px;opacity:.92}
.nav-btn{border-radius:14px;padding:12px 12px;font-size:11px}
.nav-btn.active{background:linear-gradient(90deg,rgba(217,163,32,.30),rgba(255,255,255,.15));box-shadow:inset 3px 0 var(--gold2),0 8px 18px rgba(0,0,0,.08)}
.main{position:relative;overflow:hidden;background:linear-gradient(180deg,#f7fbff 0%,#eef4fb 100%)}
.main::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(circle at 110px 305px, rgba(146,182,228,.26) 0 7px, transparent 8px),
    radial-gradient(circle at 110px 305px, transparent 0 18px, rgba(146,182,228,.26) 19px 23px, transparent 24px),
    linear-gradient(0deg, transparent 0 95%, rgba(146,182,228,.16) 95% 100%),
    linear-gradient(90deg, transparent 0 95%, rgba(146,182,228,.16) 95% 100%),
    linear-gradient(170deg, transparent 0 88%, rgba(146,182,228,.22) 88% 91%, transparent 91%),
    radial-gradient(circle at -8% -12%, transparent 0 64%, rgba(217,163,32,.58) 64.2% 64.5%, transparent 64.7%),
    linear-gradient(180deg,#f7fbff 0%,#eef4fb 100%);
  background-size:auto,auto,54px 54px,54px 54px,86px 86px,100% 100%,100% 100%;
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,no-repeat,no-repeat,no-repeat;
  background-position:105px 300px,105px 300px,88px 445px,88px 445px,92px 603px,left top,left top;
  opacity:1;
}
.topbar,.pagebar,.content{position:relative;z-index:1}
.topbar{
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(217,229,240,.95);
  box-shadow:0 6px 18px rgba(20,57,97,.04);
}
.top-title strong{font-size:15px;letter-spacing:.03em}
.top-title small{color:#6e86a1;font-size:10px}
.top-control,.profile-control{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(214,226,238,.95);
  box-shadow:0 8px 18px rgba(19,54,95,.06);
  border-radius:14px;
}
.profile-control{padding:8px 12px}
.avatar{background:linear-gradient(135deg,#173e6c,#2b65a2);color:#fff}
.pagebar{padding-top:22px}
.pagebar h2{font-size:30px}
.pagebar p{font-size:13px;color:#6a829d}
.page-actions .btn{min-height:44px;border-radius:14px}
.panel,.metric-card,.setting-card,.summary-card,.editor-shell,.report-card,.driver-trip-card,.modal-card,.table-wrap,.form-section,.release-box,.checklist-section,.driver-home .panel,.empty,.side-version{
  border-radius:18px;
}
.panel,.metric-card,.setting-card,.summary-card,.editor-shell,.report-card,.driver-trip-card,.table-wrap,.form-section,.release-box,.checklist-section{box-shadow:var(--shadow);border:1px solid rgba(216,229,240,.98)}
.metric-card{background:rgba(255,255,255,.95)}
.metric-value{font-size:28px}
.data-table thead th{background:#f7fbff;color:#5f7691;font-size:10px}
.data-table tbody tr:hover{background:#fbfdff}
.action-btn{border-radius:12px;background:#fff;box-shadow:0 6px 14px rgba(18,59,105,.06)}
.modal{backdrop-filter:blur(6px)}
.modal-card{background:rgba(255,255,255,.98)}
.form-section{background:rgba(255,255,255,.98)}
input,select,textarea{border-radius:12px}
input:focus,select:focus,textarea:focus{box-shadow:0 0 0 4px rgba(47,115,217,.08)}
.check-actions label{border-radius:10px}
.release-status{border-radius:14px}
.version-brand{display:flex;align-items:center}
.side-version{background:rgba(255,255,255,.06);border-color:rgba(240,197,90,.28)}
@media(max-width:650px){
  .logo-hero{width:88px}
  .auth-card h1{font-size:28px}
  .main::before{background-size:auto,auto,42px 42px,42px 42px,68px 68px,100% 100%,100% 100%;background-position:38px 260px,38px 260px,28px 395px,28px 395px,34px 540px,left top,left top}
  .topbar{padding-top:max(0px,env(safe-area-inset-top))}
}


/* ===== V3.2.2 premium refinement ===== */
.metric-grid{gap:14px}
.metric-card{
  position:relative;overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.98) 0%, rgba(248,251,255,.96) 100%);
  border:1px solid rgba(214,226,239,.95);
  padding:18px 18px 16px;
  min-height:136px;
}
.metric-card::after{
  content:"";position:absolute;right:-26px;top:-26px;width:92px;height:92px;border-radius:50%;background:radial-gradient(circle, rgba(47,115,217,.10) 0%, rgba(47,115,217,0) 70%);
}
.metric-label{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#7288a2}
.metric-value{font-size:32px;line-height:1.05;margin-top:10px}
.metric-note{font-size:11px;color:#7590aa;max-width:75%}
.metric-icon{width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,#fff7de,#f2c95d);box-shadow:0 10px 22px rgba(217,163,32,.22);font-size:20px}
.dashboard-grid{gap:14px}
.panel-head h4{font-size:16px}
.quick-panel{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(249,252,255,.95))}
.quick-grid{gap:12px}
.quick-action{
  min-height:90px;padding:16px 16px;border-radius:18px;border:1px solid rgba(214,226,239,.96);
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  box-shadow:0 14px 30px rgba(20,57,97,.08);
}
.quick-action:hover{transform:translateY(-2px);box-shadow:0 18px 35px rgba(20,57,97,.12)}
.quick-ico{width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,#173f6d,#2f73d9);color:#fff;box-shadow:0 10px 20px rgba(47,115,217,.22)}
.quick-copy strong{font-size:14px}
.quick-copy small{font-size:11px;color:#7088a1}
.top-control,.profile-control,.btn{font-weight:800}
.btn.navy{background:linear-gradient(135deg,#173f6d,#2f73d9);border-color:#235ca0;color:#fff;box-shadow:0 14px 26px rgba(24,64,109,.20);border-radius:14px}
.table-wrap{background:rgba(255,255,255,.96)}
.data-table tbody td{font-size:11px}
.editor-shell{padding:18px;background:rgba(255,255,255,.96)}
.form-section-title strong{font-size:15px}
.form-section-title small{font-size:10px}
.form-section{padding:16px 16px 14px}
.section-grid{gap:13px}
label{font-size:11px;font-weight:800;color:#274868}
input,select,textarea{font-size:11px;padding:11px 12px}
input,select{height:42px}
textarea{min-height:96px}
.setting-card{padding:18px}
.setting-card h4{font-size:16px}
.report-toolbar{gap:10px}
.report-toolbar label{font-size:11px;font-weight:800;color:#274868}
.report-card{
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  padding:18px;position:relative;overflow:hidden;
}
.report-card::after{content:"";position:absolute;right:-32px;bottom:-32px;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle, rgba(217,163,32,.12) 0%, rgba(217,163,32,0) 70%)}
.report-card h4{font-size:16px;color:#173f6d}
.report-row{font-size:11px;padding:10px 0}
.chart-row{font-size:10px}
.bar-track{height:11px;border-radius:999px;background:#edf3f9}
.bar-fill{box-shadow:0 4px 10px rgba(47,115,217,.20)}
.driver-home{gap:14px}
.driver-trip-card{
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
  padding:18px;border-radius:20px;position:relative;overflow:hidden;
}
.driver-trip-card::before{content:"";position:absolute;right:-25px;top:-25px;width:92px;height:92px;border-radius:50%;background:radial-gradient(circle, rgba(47,115,217,.10) 0%, rgba(47,115,217,0) 70%)}
.driver-trip-top h3{margin:6px 0 4px;font-size:22px;color:#163f6e}
.driver-trip-top p{margin:0;color:#6c87a1;font-size:12px}
.driver-actions{gap:10px}
.driver-actions .btn{min-height:54px;border-radius:14px}
.checklist-shell .panel,.checklist-shell .release-box{background:rgba(255,255,255,.96)}
.checklist-section h4{font-size:13px}
.check-label{font-size:11px}
.check-actions label{font-size:9px;padding:9px 8px}
.page-actions .btn,
.toolbar .btn,
.editor-actions .btn,
.modal-actions .btn{min-height:42px;padding:0 16px}
@media(max-width:980px){
  .metric-card{min-height:124px}
  .driver-trip-top h3{font-size:20px}
}
@media(max-width:650px){
  .metric-value{font-size:28px}
  .metric-note{max-width:100%}
  .quick-action{min-height:84px;padding:14px}
  .quick-ico{width:44px;height:44px}
  .driver-trip-top{flex-direction:column}
  .driver-trip-top h3{font-size:18px}
  .report-card{padding:15px}
}


/* ===== V3.2.3 transparent logo tuning ===== */
.logo-hero{width:126px!important;max-width:42vw;display:block;object-fit:contain;margin:0 auto 10px!important;background:transparent!important}
.brand-logo{width:34px!important;height:34px!important;object-fit:contain;background:transparent!important}
.mini-logo{width:20px!important;height:20px!important;object-fit:contain;background:transparent!important}
.brand-block{padding-top:10px!important}
.brand-copy strong{font-size:14px!important;letter-spacing:.04em}
.brand-copy small{font-size:9px!important;letter-spacing:.08em}
.auth-card{overflow:hidden}
.auth-card .logo-hero{filter:drop-shadow(0 10px 18px rgba(217,163,32,.16))}


/* ===== V3.3.0 executive + corporate forms ===== */
.sidebar{background:linear-gradient(180deg,#0f3158 0%,#154370 42%,#0d2747 100%)!important;border-right:1px solid rgba(255,255,255,.08)}
.brand-block{padding:12px 12px 16px!important;min-height:92px}
.brand-copy strong{font-size:15px!important;font-weight:900}
.brand-copy small{font-size:9px!important;letter-spacing:.12em;color:rgba(255,255,255,.72)!important}
#nav{padding:8px 8px 14px}
.nav-btn{min-height:48px!important;justify-content:flex-start!important;gap:10px;border:1px solid rgba(255,255,255,.06)!important;background:rgba(255,255,255,.04)!important;color:#eef6ff!important}
.nav-btn .nav-ico{width:28px;height:28px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.10)}
.nav-btn.active{background:linear-gradient(90deg,rgba(217,163,32,.24),rgba(255,255,255,.10))!important;border-color:rgba(240,197,90,.28)!important}
.nav-btn:hover{background:rgba(255,255,255,.08)!important}
.side-version{background:rgba(255,255,255,.06)!important;border:1px solid rgba(240,197,90,.22)!important;box-shadow:none!important}

/* Lux Logística 4.1 — legibilidade, financeiro e formulários inteligentes */
.side-version{display:none!important}
.finance-summary-grid{grid-template-columns:repeat(3,minmax(220px,1fr))!important}
.metric-card{min-width:0}
.metric-copy{min-width:0;overflow:visible}
.metric-value{font-size:clamp(17px,1.45vw,25px)!important;line-height:1.16;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere}
.metric-danger{background:linear-gradient(145deg,#fff7f7,#fff)!important;border-color:#f3c7cb!important}
.metric-danger .metric-value{color:#b5444c!important}
.metric-danger .metric-icon{background:#ffedef!important;color:#bd4952!important;border-color:#f3c7cb!important}
.metric-positive{border-color:#cce9d8!important}
.location-pair{grid-column:span 2;display:grid;grid-template-columns:minmax(105px,.38fr) minmax(190px,1fr);gap:12px}
.location-pair>label{min-width:0}
.calculated-field{background:#eef4fa!important;color:#0b315e!important;font-weight:850;cursor:not-allowed}
.setting-actions{display:flex;gap:9px;flex-wrap:wrap;margin:13px 0}
.field-help{font-size:10px;line-height:1.55;color:#6f8299}
.app-footer{padding:14px 20px 24px;text-align:center;color:#7588a0;font-size:10px}
.logo-hero{max-width:205px!important;max-height:185px!important;object-fit:contain}
.brand-logo,.topbar-logo{object-fit:contain}

[data-theme="dark"] .main,[data-theme="dark"] body{background:#071522!important;color:#eaf2fa}
[data-theme="dark"] .main{background:linear-gradient(180deg,#071522,#0a1928 45%,#071522)!important}
[data-theme="dark"] .topbar,[data-theme="dark"] .panel,[data-theme="dark"] .metric-card,[data-theme="dark"] .setting-card,[data-theme="dark"] .summary-card,[data-theme="dark"] .editor-shell,[data-theme="dark"] .report-card,[data-theme="dark"] .driver-trip-card,[data-theme="dark"] .modal-card,[data-theme="dark"] .table-wrap,[data-theme="dark"] .form-section,[data-theme="dark"] .checklist-section,[data-theme="dark"] .empty,[data-theme="dark"] .subpanel{background:#102235!important;border-color:#294158!important;color:#eaf2fa!important}
[data-theme="dark"] .pagebar h2,[data-theme="dark"] .panel h3,[data-theme="dark"] .panel h4,[data-theme="dark"] .setting-card h4,[data-theme="dark"] .form-section-title strong,[data-theme="dark"] .report-card h4,[data-theme="dark"] .metric-value,[data-theme="dark"] .data-table td,[data-theme="dark"] .data-table td strong,[data-theme="dark"] label,[data-theme="dark"] .report-row,[data-theme="dark"] .chart-row,[data-theme="dark"] .top-title strong,[data-theme="dark"] .profile-copy strong,[data-theme="dark"] .auth-card h1{color:#f5f8fc!important}
[data-theme="dark"] .pagebar p,[data-theme="dark"] .metric-label,[data-theme="dark"] .metric-note,[data-theme="dark"] .field-help,[data-theme="dark"] .form-section-title small,[data-theme="dark"] .profile-copy small,[data-theme="dark"] small,[data-theme="dark"] .privacy-note,[data-theme="dark"] .app-footer{color:#afc0d2!important}
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea,[data-theme="dark"] .top-icon,[data-theme="dark"] .top-control,[data-theme="dark"] .profile-control,[data-theme="dark"] .search{background:#0a1928!important;color:#f5f8fc!important;border-color:#36506a!important}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#8297ad!important;opacity:1}
[data-theme="dark"] select option{background:#0a1928;color:#f5f8fc}
[data-theme="dark"] input:disabled,[data-theme="dark"] select:disabled,[data-theme="dark"] textarea:disabled{background:#172b3e!important;color:#9fb0c1!important;opacity:1}
[data-theme="dark"] .calculated-field{background:#172b3e!important;color:#e8c35d!important}
[data-theme="dark"] .tab-btn{background:#13283d!important;color:#dce8f4!important;border-color:#34516b!important}
[data-theme="dark"] .tab-btn.active{background:#e0a922!important;color:#091728!important;border-color:#f3c44d!important}
[data-theme="dark"] .data-table th{background:#0b1c2d!important;color:#b9c9da!important;border-color:#294158!important}
[data-theme="dark"] .data-table tr,[data-theme="dark"] .data-table td,[data-theme="dark"] .report-row{border-color:#294158!important}
[data-theme="dark"] .metric-danger{background:linear-gradient(145deg,#351a22,#162535)!important;border-color:#743948!important}
[data-theme="dark"] .metric-danger .metric-value{color:#ff9ca5!important}
[data-theme="dark"] .metric-danger .metric-icon{background:#48212b!important;color:#ff9ca5!important;border-color:#743948!important}
[data-theme="dark"] .metric-positive{border-color:#2a6048!important}
[data-theme="dark"] .modal-head{background:#0b1d30!important;border-color:#294158!important}
[data-theme="dark"] .btn.ghost{background:#152b40!important;color:#e9f2fb!important;border-color:#3b566f!important}

@media(max-width:1100px){.finance-summary-grid{grid-template-columns:repeat(2,minmax(200px,1fr))!important}}
@media(max-width:650px){.finance-summary-grid{grid-template-columns:1fr!important}.location-pair{grid-template-columns:105px minmax(0,1fr);grid-column:1/-1}.logo-hero{max-width:165px!important;max-height:150px!important}}
.executive-hero{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px 20px;margin-bottom:14px;background:linear-gradient(135deg,rgba(15,49,88,.98) 0%,rgba(25,87,147,.96) 62%,rgba(20,60,104,.96) 100%);color:#fff;position:relative;overflow:hidden}
.executive-hero:after{content:"";position:absolute;right:-60px;top:-60px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(240,197,90,.30) 0%, rgba(240,197,90,0) 65%)}
.hero-copy,.hero-kpis{position:relative;z-index:1}.hero-copy small{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#cddcf0}.hero-copy h3{margin:4px 0 8px;font-size:30px;letter-spacing:.02em}.hero-copy p{margin:0;max-width:560px;color:#d9e7f7;font-size:12px;line-height:1.55}.hero-kpis{display:grid;grid-template-columns:repeat(3,minmax(110px,1fr));gap:10px;min-width:min(420px,50%)}.hero-kpis div{padding:14px;border-radius:16px;background:rgba(255,255,255,.10);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.12)}.hero-kpis span{display:block;font-size:10px;color:#d8e3f0}.hero-kpis strong{display:block;margin-top:6px;font-size:18px;color:#fff}
.metric-card{display:flex;align-items:flex-start;gap:14px!important}
.metric-copy{display:flex;flex-direction:column;gap:4px;flex:1}
.metric-icon{flex:0 0 50px}
.metric-label{text-transform:uppercase;letter-spacing:.08em}
.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.panel{padding:16px 16px 15px}
.panel-head{margin-bottom:14px;align-items:center}
.panel-head h4{font-size:15px;letter-spacing:.02em}
.alert-row{padding:13px 14px;border-radius:14px;background:#f9fbff;border:1px solid #e1ebf4;margin-bottom:10px;box-shadow:0 10px 20px rgba(20,57,97,.04)}
.alert-row strong{display:block;margin-bottom:4px;color:#183f6c}
.quick-action{display:flex;align-items:center;gap:14px}
.quick-action b{margin-left:auto;color:#7f97b0}
.corporate-shell .tab-strip,.editor-shell .tab-strip{position:sticky;top:0;z-index:2;background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,255,255,.88));backdrop-filter:blur(8px);padding:2px 0 12px}
.tab-strip{gap:8px!important;border-bottom:1px solid #e5edf6!important}
.tab-btn{padding:10px 14px!important;border:1px solid transparent!important;border-radius:12px!important;background:#f6f9fd!important;color:#68819a!important;font-size:10px!important}
.tab-btn.active{background:#ffffff!important;color:#123b69!important;border-color:#d7e5f2!important;box-shadow:0 10px 20px rgba(20,57,97,.06)!important;border-bottom-color:#d7e5f2!important}
.form-section{border-radius:18px!important;padding:18px 18px 16px!important;margin-bottom:14px!important;background:linear-gradient(180deg,#ffffff,#fbfdff)!important}
.form-section-title{padding-bottom:10px;border-bottom:1px dashed #e4ecf4}
.form-section-title strong{font-size:16px!important}
.form-section-title small{font-size:10px!important;color:#7f94aa!important;letter-spacing:.03em}
.section-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px!important}
.section-grid.cols5{grid-template-columns:repeat(5,minmax(0,1fr))!important}
input,select,textarea{border-radius:13px!important;border:1px solid #d7e3ee!important;background:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
input,select{height:44px!important}
textarea{min-height:110px!important}
label{font-size:11px!important;color:#244768!important}
.segment{border-radius:14px!important;overflow:hidden;background:#f6f9fc}
.segment button{font-size:11px!important}
.check-line{padding-top:8px}
.table-wrap{border-radius:18px!important;overflow:hidden}
.data-table thead th{padding:12px 14px!important}.data-table tbody td{padding:12px 14px!important}
.table-actions{gap:8px}
.action-btn{width:34px;height:34px;border-radius:12px}
.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.report-card{min-height:250px}
.driver-trip-card{box-shadow:0 18px 40px rgba(18,59,105,.10)!important}
.release-box{position:sticky;top:92px}
@media(max-width:1100px){.quick-grid,.hero-kpis,.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-grid.cols5{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:800px){.executive-hero{flex-direction:column;align-items:flex-start}.hero-kpis{min-width:100%;width:100%}.section-grid,.section-grid.cols5{grid-template-columns:repeat(2,minmax(0,1fr))!important}.release-box{position:static}}
@media(max-width:560px){.quick-grid,.hero-kpis,.report-grid,.section-grid,.section-grid.cols5{grid-template-columns:1fr!important}.tab-btn{font-size:9px!important;padding:10px 10px!important}}


/* v3.3.1 ajustes solicitados */
.input-icon.clean>span{display:none!important}.input-icon.clean input{padding-left:14px!important;padding-right:44px!important}
.auth-card .btn-login{background:linear-gradient(135deg,#0d3b70,#0a2d58)!important;border-color:#0c3564!important}
.metric-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important}
.metric-card{min-width:0!important;overflow:hidden}
.metric-value,.metric-card strong{font-size:clamp(20px,1.6vw,30px)!important;line-height:1.05!important;white-space:nowrap}
.metric-label,.metric-card small{font-size:10px!important;line-height:1.2!important}
.metric-note,.metric-card p{font-size:11px!important;line-height:1.25!important}
.top-title strong,.brand-copy strong,.version-brand strong{letter-spacing:.01em}
.brand-copy small{font-size:10px!important}
@media(max-width:1100px){.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){.metric-grid{grid-template-columns:1fr!important}.metric-value,.metric-card strong{font-size:24px!important}}


/* 3.4.1 premium refinements */
.app-footer{padding:14px 24px 24px;text-align:center;color:#c9971b;font-weight:800;font-size:12px;letter-spacing:.04em}
.app-footer strong{color:#e0aa2f}
.metric-card strong{font-size:clamp(18px,1.4vw,28px)!important;line-height:1.1!important;word-break:break-word}
.metric-card small{font-size:9px!important}.metric-card p{font-size:10px!important}
.content{padding-bottom:18px!important}
.report-card{position:relative;overflow:hidden}
.report-card h4{color:#10345e}
.report-grid.premium-report{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media(max-width:980px){.app-footer{padding-bottom:calc(20px + env(safe-area-inset-bottom))}.topbar{padding-top:max(0px,env(safe-area-inset-top))}}
@media(max-width:650px){.software{min-height:100dvh}.main{min-height:100dvh}.topbar{position:sticky;top:0;padding-left:10px;padding-right:10px}.content{padding-left:10px!important;padding-right:10px!important}.pagebar{padding-left:10px!important;padding-right:10px!important}.app-footer{font-size:11px}.metric-card{padding:12px!important}.metric-card strong{font-size:22px!important}.nav-btn{min-height:46px!important}}

/* 3.4.1 fixes */
.auth-footer,.app-footer{color:#c9971b!important;letter-spacing:.04em!important;text-align:center}
.finance-kpis{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;gap:12px!important}
.metric-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important}
.metric-card{display:flex!important;align-items:flex-start!important;gap:12px!important;min-height:112px!important}
.finance-kpis .metric-card{min-height:108px!important;padding:12px!important}
.metric-card .metric-icon{flex:0 0 44px!important;width:44px!important;height:44px!important;margin-bottom:0!important}
.metric-card > div:last-child{flex:1 1 auto;min-width:0}
.metric-card strong,.metric-value{display:block!important;font-size:clamp(16px,1.15vw,22px)!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin-top:2px!important}
.metric-card small,.metric-label{display:block!important;font-size:10px!important;line-height:1.2!important;white-space:normal!important}
.metric-card p,.metric-note{display:block!important;font-size:10px!important;line-height:1.2!important;white-space:normal!important;margin-top:6px!important}
@media (max-width: 1100px){.finance-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width: 760px){.finance-kpis,.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pagebar{padding:14px 12px 8px!important}.content{padding:8px 10px 22px!important}.panel{padding:12px!important}.topbar{padding-left:10px!important;padding-right:10px!important}.sidebar{width:min(86vw,320px)!important}}
@media (max-width: 480px){.finance-kpis,.metric-grid{grid-template-columns:1fr!important}.metric-card strong,.metric-value{font-size:22px!important}.auth-footer,.app-footer{font-size:10px!important;padding-left:10px;padding-right:10px}}


/* ===== 3.4.4 refinamento visual premium ===== */
.metric-card{
  position:relative;
  isolation:isolate;
  border:1px solid rgba(207,222,237,.95)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.99),rgba(246,250,255,.97))!important;
  box-shadow:0 12px 28px rgba(20,57,97,.08)!important;
}
.metric-card:before{
  content:"";position:absolute;left:0;top:16px;bottom:16px;width:3px;border-radius:0 6px 6px 0;
  background:linear-gradient(180deg,#e3b13a,#c98e14);opacity:.9;z-index:-1;
}
.metric-card .metric-icon{
  border:1px solid rgba(221,232,244,.9)!important;
  background:linear-gradient(145deg,#f2f7ff,#ffffff)!important;
  box-shadow:0 10px 22px rgba(31,91,166,.08),0 8px 18px rgba(210,158,31,.08)!important;
}
.finance-kpis{gap:10px!important;margin-bottom:16px!important}
.finance-kpis .metric-card{padding:12px 13px!important;min-height:110px!important}
.finance-kpis .metric-copy{gap:3px!important}
.finance-kpis .metric-value,.finance-kpis .metric-card strong{
  font-size:clamp(16px,1.05vw,21px)!important;
  letter-spacing:-.015em!important;
  font-variant-numeric:tabular-nums!important;
}
.trips-panel{padding:16px!important;border-radius:22px!important;background:rgba(255,255,255,.88)!important;backdrop-filter:blur(10px);}
.trip-toolbar{padding:2px 0 14px!important;margin-bottom:0!important;border-bottom:1px solid #e4edf6;}
.trip-toolbar .search{height:44px!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 16px rgba(18,58,99,.035)!important}
.trip-toolbar select{height:44px!important;border-radius:14px!important;background:#fff!important}
.trips-table-wrap{margin-top:14px!important;border:1px solid #dbe6f0!important;border-radius:18px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 10px 25px rgba(20,57,97,.055)!important}
.trips-table thead th{padding:13px 14px!important;background:linear-gradient(180deg,#f8fbff,#f3f8fd)!important;font-size:10px!important;letter-spacing:.025em!important;color:#587393!important;border-bottom:1px solid #dce7f1!important;white-space:nowrap}
.trips-table tbody td{padding:14px!important;border-bottom:1px solid #edf2f7!important;font-size:11px!important;vertical-align:middle!important}
.trips-table tbody tr:last-child td{border-bottom:0!important}
.trips-table tbody tr{transition:background .16s ease,box-shadow .16s ease}
.trips-table tbody tr:hover{background:#fbfdff!important}
.trip-code{color:#103d70;font-weight:900;letter-spacing:.01em}
.money-cell{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:750;color:#385776}
.result-pos{color:#167a4d!important}.result-neg{color:#c84646!important}
.trip-actions{display:flex!important;gap:7px!important;flex-wrap:nowrap!important}
.trip-actions .action-btn{width:36px!important;height:36px!important;border-radius:12px!important;background:linear-gradient(180deg,#fff,#f7faff)!important;border-color:#d9e5f0!important;box-shadow:0 5px 12px rgba(19,55,93,.05)!important}
.trip-actions .action-btn:hover{transform:translateY(-1px);border-color:#b8cce0!important;box-shadow:0 8px 18px rgba(19,55,93,.09)!important}
.trip-actions .action-btn.danger{color:#c84040!important;background:#fff8f8!important;border-color:#f3d5d5!important}
.sidebar{box-shadow:8px 0 30px rgba(10,37,68,.12)!important}
.nav-btn{border-radius:16px!important;margin-bottom:4px!important}
.nav-btn.active{box-shadow:inset 3px 0 #edbd43,0 9px 22px rgba(4,28,54,.16)!important}
.pagebar h2{letter-spacing:-.015em}
.page-actions .btn{border-radius:14px!important;box-shadow:0 10px 22px rgba(19,60,106,.11)!important}
.app-footer{border-top:1px solid rgba(215,226,237,.75);margin:8px 24px 0!important;padding-top:18px!important}

@media(max-width:980px){
  .trips-panel{border-radius:18px!important;padding:13px!important}
  .trip-toolbar{display:grid!important;grid-template-columns:1fr 180px!important;gap:10px!important}
  .trip-toolbar .search{width:100%!important;min-width:0!important}
}

@media(max-width:650px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  .software,.main{width:100%;max-width:100%;overflow-x:hidden}
  .pagebar{gap:10px!important}
  .pagebar h2{font-size:24px!important;line-height:1.05!important}
  .pagebar p{font-size:11px!important;line-height:1.35!important}
  .page-actions{display:grid!important;grid-template-columns:1fr!important}
  .page-actions .btn{width:100%!important;min-height:46px!important}
  .finance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .finance-kpis .metric-card{min-height:104px!important;padding:10px!important;gap:8px!important}
  .finance-kpis .metric-card .metric-icon{width:38px!important;height:38px!important;flex-basis:38px!important;font-size:16px!important}
  .finance-kpis .metric-value,.finance-kpis .metric-card strong{font-size:17px!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}
  .finance-kpis .metric-label,.finance-kpis .metric-card small{font-size:8.5px!important}
  .finance-kpis .metric-note,.finance-kpis .metric-card p{font-size:8.5px!important}
  .trip-toolbar{grid-template-columns:1fr!important;gap:8px!important}
  .trip-toolbar select{max-width:none!important;width:100%!important}
  .trips-table-wrap{border:0!important;box-shadow:none!important;background:transparent!important;margin-top:12px!important;overflow:visible!important}
  .trips-table,.trips-table tbody,.trips-table tr,.trips-table td{display:block!important;width:100%!important}
  .trips-table thead{display:none!important}
  .trips-table tbody tr{background:#fff!important;border:1px solid #dbe6f0!important;border-radius:17px!important;padding:13px!important;margin-bottom:10px!important;box-shadow:0 10px 24px rgba(20,57,97,.065)!important}
  .trips-table tbody td{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;padding:6px 0!important;border:0!important;font-size:11px!important;min-height:28px!important;white-space:normal!important}
  .trips-table tbody td:before{content:attr(data-label);font-size:8.5px;font-weight:900;text-transform:uppercase;letter-spacing:.055em;color:#7890a8}
  .trips-table tbody td[data-label="Viagem"]{padding-bottom:10px!important;border-bottom:1px solid #edf2f7!important;margin-bottom:5px!important}
  .trips-table tbody td[data-label="Viagem"] .trip-code{font-size:13px!important}
  .trips-table tbody td[data-label="Ações"]{grid-template-columns:92px 1fr!important;padding-top:10px!important;border-top:1px solid #edf2f7!important;margin-top:5px!important}
  .trip-actions{justify-content:flex-start!important;flex-wrap:wrap!important}
  .trip-actions .action-btn{width:38px!important;height:38px!important}
  .app-footer{margin:8px 10px 0!important;padding:16px 6px calc(20px + env(safe-area-inset-bottom))!important;font-size:10px!important;line-height:1.4!important}
  .sidebar{left:-100%!important;width:min(86vw,330px)!important;max-width:330px!important}
  .sidebar.open{left:0!important}
  .topbar{min-height:64px!important;height:auto!important;padding-top:max(6px,env(safe-area-inset-top))!important;padding-bottom:6px!important}
  .top-title{min-width:0!important}.top-title strong{font-size:13px!important}.top-title small{font-size:8px!important}
  .top-actions{margin-left:auto!important}
}

@media(max-width:430px){
  .finance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .finance-kpis .metric-card{min-height:98px!important}
  .finance-kpis .metric-value,.finance-kpis .metric-card strong{font-size:15px!important}
  .trips-table tbody td{grid-template-columns:80px minmax(0,1fr)!important}
  .trips-table tbody td[data-label="Ações"]{grid-template-columns:80px 1fr!important}
  .pagebar h2{font-size:22px!important}
}


/* ===== V3.4.5 viagem automática + entrega + pedágio ===== */
.trip-finance-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:13px;border:1px solid #dce7f2;border-radius:14px;background:linear-gradient(180deg,#f9fcff,#f3f8fd)}
.trip-finance-preview>div{padding:10px 12px;border-radius:12px;background:#fff;border:1px solid #e3ebf3}.trip-finance-preview small{display:block;font-size:9px;color:#7289a2;text-transform:uppercase;font-weight:800}.trip-finance-preview strong{display:block;margin-top:5px;font-size:16px;color:#123b69}.trip-finance-preview .toll-mode{display:flex;align-items:center;justify-content:center;text-align:center;font-size:10px;font-weight:850}.trip-finance-preview .included{color:#147b4a;background:#eaf8f0;border-color:#cdebd9}.trip-finance-preview .deducted{color:#b06f0d;background:#fff8e9;border-color:#f0ddad}.toll-check{min-height:44px;padding:8px 10px;border:1px solid #dce7f1;border-radius:12px;background:#fafcff}.action-btn.finish{color:#8a5a08;background:#fff8e8;border-color:#efdbac}.action-btn.delivered{color:#147b4a;background:#eaf8ef;border-color:#c9e8d5}.action-btn.returned{color:#a45f09;background:#fff5e8;border-color:#efd4aa}
@media(max-width:900px){.trip-finance-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.trip-editor-shell .section-grid.cols5{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){.trip-editor-shell{padding:10px!important}.trip-editor-shell .section-grid,.trip-editor-shell .section-grid.cols5{grid-template-columns:1fr!important}.trip-editor-shell .span2{grid-column:auto!important}.trip-finance-preview{grid-template-columns:1fr!important}.trip-finance-preview>div{padding:12px}.driver-actions{grid-template-columns:1fr!important}.trip-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important}.trip-actions .action-btn{width:38px!important;height:38px!important}}

/* 3.4.6 fluxo do motorista */
.driver-actions-flow{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;align-items:center}
.driver-help{display:flex;align-items:center;color:#7087a0;font-size:10px;padding:0 4px}
@media(max-width:650px){.driver-actions-flow{grid-template-columns:1fr!important}.driver-actions-flow .btn{width:100%;min-height:52px}.driver-help{justify-content:center;text-align:center}.driver-trip-card{padding:14px!important}.driver-trip-top h3{font-size:17px!important}}

/* ===== V4.0 Lux Logística: tema, alertas e importação ===== */
.startup-alerts{position:fixed;inset:0;z-index:6000;display:grid;place-items:center;padding:18px;background:rgba(3,18,35,.68);backdrop-filter:blur(8px)}
.startup-alert-card{position:relative;width:min(560px,96vw);max-height:88vh;overflow:auto;border:1px solid #dce6ef;border-radius:24px;background:var(--surface);padding:27px;box-shadow:0 32px 100px rgba(3,18,35,.34)}
.startup-alert-card>.modal-x{position:absolute;right:15px;top:15px}.startup-alert-logo{display:block;width:62px;height:62px;object-fit:contain;margin-bottom:10px}.startup-alert-card>small{color:var(--gold);font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.startup-alert-card h3{margin:7px 42px 18px 0;color:var(--text);font-size:21px}.startup-alert-list{display:grid;gap:9px;margin-bottom:18px}.startup-alert-row{display:grid;gap:4px;padding:12px 14px;border:1px solid #f0dca9;border-left:4px solid var(--gold);border-radius:12px;background:#fff9e9}.startup-alert-row b{font-size:11px;color:#754e06}.startup-alert-row span{font-size:10px;color:#7f6841}.privacy-note{padding:10px 12px;border:1px solid #dbe7f3;border-radius:10px;background:var(--surface2)}

html[data-theme="dark"]{color-scheme:dark;--bg:#071526;--surface:#0e2137;--surface2:#102943;--line:#29435f;--text:#e8f1fb;--muted:#9eb1c6;--shadow:0 18px 45px rgba(0,0,0,.28)}
html[data-theme="dark"] body,html[data-theme="dark"] .main{background:linear-gradient(180deg,#081829,#0a1c31 48%,#071526)}
html[data-theme="dark"] .auth-shell{background:radial-gradient(circle at 50% 15%,#16385c,#071526 68%)}
html[data-theme="dark"] .auth-card,html[data-theme="dark"] .topbar,html[data-theme="dark"] .panel,html[data-theme="dark"] .metric-card,html[data-theme="dark"] .quick-action,html[data-theme="dark"] .setting-card,html[data-theme="dark"] .summary-card,html[data-theme="dark"] .report-card,html[data-theme="dark"] .driver-trip-card,html[data-theme="dark"] .editor-shell,html[data-theme="dark"] .form-section,html[data-theme="dark"] .modal-card,html[data-theme="dark"] .startup-alert-card{background:#0e2137!important;border-color:#29435f!important;color:var(--text)!important}
html[data-theme="dark"] .top-icon,html[data-theme="dark"] .top-control,html[data-theme="dark"] .profile-control,html[data-theme="dark"] .btn,html[data-theme="dark"] .btn.ghost,html[data-theme="dark"] .action-btn,html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .search,html[data-theme="dark"] .segment button,html[data-theme="dark"] .check-actions label{background:#132b45!important;border-color:#34506d!important;color:#e8f1fb!important}
html[data-theme="dark"] .btn.gold,html[data-theme="dark"] .btn.navy,html[data-theme="dark"] .btn.blue,html[data-theme="dark"] .segment button.active{color:#fff!important}
html[data-theme="dark"] .pagebar h2,html[data-theme="dark"] .top-title strong,html[data-theme="dark"] .panel-head h3,html[data-theme="dark"] .panel-head h4,html[data-theme="dark"] .metric-card strong,html[data-theme="dark"] .quick-copy strong,html[data-theme="dark"] .form-section-title strong,html[data-theme="dark"] .modal-head h3,html[data-theme="dark"] .report-card h4,html[data-theme="dark"] .setting-card h4,html[data-theme="dark"] .auth-card h1{color:#f1f6fc!important}
html[data-theme="dark"] .data-table,html[data-theme="dark"] .data-table td{background:#0e2137!important;color:#dce8f5!important;border-color:#213a55!important}html[data-theme="dark"] .data-table th,html[data-theme="dark"] .checklist-section h4{background:#132b45!important;color:#aac0d6!important;border-color:#29435f!important}html[data-theme="dark"] .data-table tbody tr:hover{background:#132b45!important}
html[data-theme="dark"] .empty{background:#102943!important;border-color:#35516e!important;color:#a9bbcd!important}html[data-theme="dark"] .alert-row,html[data-theme="dark"] .startup-alert-row{background:#302713!important;border-color:#6c571e!important}html[data-theme="dark"] .startup-alert-row b{color:#f0c65c}html[data-theme="dark"] .startup-alert-row span{color:#d8c99d}
html[data-theme="dark"] .trip-finance-preview,html[data-theme="dark"] .trip-finance-preview>div,html[data-theme="dark"] .privacy-note{background:#102943!important;border-color:#29435f!important}html[data-theme="dark"] .trip-finance-preview strong{color:#f1f6fc!important}
html[data-theme="dark"] .secure-line,html[data-theme="dark"] .modal-head,html[data-theme="dark"] .modal-actions,html[data-theme="dark"] .table-wrap,html[data-theme="dark"] .tab-strip{border-color:#29435f!important}
html[data-theme="dark"] .trips-table tbody tr,html[data-theme="dark"] .table-wrap.mobile-cards tr{background:#0e2137!important;border-color:#29435f!important}html[data-theme="dark"] .trips-table tbody td[data-label="Viagem"],html[data-theme="dark"] .trips-table tbody td[data-label="Ações"]{border-color:#29435f!important}
@media(max-width:650px){.startup-alert-card{padding:22px 16px;border-radius:19px}.startup-alert-card h3{font-size:18px}.page-actions{grid-template-columns:1fr 1fr!important}.page-actions .btn:last-child:nth-child(odd){grid-column:1/-1}.top-title strong{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

/* ===== V4.0.1 logo transparente no login e cabecalho ===== */
.logo-hero{
  width:150px!important;
  height:126px!important;
  max-width:46vw;
  margin:0 auto 8px!important;
  object-fit:contain;
  object-position:center;
  background:transparent!important;
  filter:drop-shadow(0 9px 16px rgba(199,139,15,.18));
}
.topbar-logo{
  width:45px;
  height:45px;
  flex:0 0 45px;
  display:block;
  object-fit:contain;
  object-position:center;
  background:transparent;
  filter:drop-shadow(0 4px 8px rgba(199,139,15,.16));
}
.brand-logo,.mini-logo,.startup-alert-logo{background:transparent!important;object-fit:contain;object-position:center}
html[data-theme="dark"] .logo-hero,
html[data-theme="dark"] .topbar-logo,
html[data-theme="dark"] .brand-logo,
html[data-theme="dark"] .mini-logo,
html[data-theme="dark"] .startup-alert-logo{filter:drop-shadow(0 5px 12px rgba(240,197,90,.24))}
@media(max-width:650px){
  .logo-hero{width:128px!important;height:108px!important}
  .topbar-logo{width:38px;height:38px;flex-basis:38px}
  .topbar{gap:8px!important}
}
@media(max-width:390px){
  .topbar-logo{width:34px;height:34px;flex-basis:34px}
  .top-title strong{max-width:102px!important}
}
/* Identidade configurável e contraste dos temas */
.branding-settings{display:grid;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.branding-settings label{display:grid;gap:7px;color:var(--text);font-weight:600}
.branding-settings input:not([type=checkbox]){width:100%;max-width:420px}
.branding-settings .check{display:flex;align-items:center;gap:8px}
html[data-theme="light"] .panel,html[data-theme="light"] .setting-card,html[data-theme="light"] .report-card,html[data-theme="light"] .data-table td{color:#142d49}
html[data-theme="dark"] .content p,html[data-theme="dark"] .content label,html[data-theme="dark"] .content small,html[data-theme="dark"] .brand-copy small{color:#d4e1ef}
html[data-theme="dark"] .content strong,html[data-theme="dark"] .content h4{color:#f3f7fc}
/* V4.3: azul e branco em toda a interface */
:root{--gold:#2c75cd;--gold2:#5ca8ed;--navy:#184d82;--navy2:#2670b3;--blue:#2b79cf;--bg:#f2f8ff;--surface2:#f5faff;--line:#cbdff2;--text:#143a62;--muted:#5f7c9b}
html[data-theme="dark"]{--bg:#174674;--surface:#205587;--surface2:#286296;--line:#5792c2;--text:#f4faff;--muted:#d7e9fa;color-scheme:dark}
html[data-theme="dark"] body,html[data-theme="dark"] .main{background:linear-gradient(145deg,#205a91,#164472)!important;color:#f4faff!important}
html[data-theme="dark"] .main::before{opacity:.17;background:radial-gradient(circle at 10% 20%,#8ad3ff,transparent 42%)!important}
html[data-theme="dark"] .sidebar{background:linear-gradient(180deg,#194d80,#246298)!important}
html[data-theme="dark"] .auth-shell{background:linear-gradient(145deg,#1b5084,#2b71a9)!important}
html[data-theme="dark"] .auth-card{background:#205587!important;color:#fff!important}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .panel,html[data-theme="dark"] .metric-card,html[data-theme="dark"] .quick-action,html[data-theme="dark"] .setting-card,html[data-theme="dark"] .summary-card,html[data-theme="dark"] .report-card,html[data-theme="dark"] .driver-trip-card,html[data-theme="dark"] .editor-shell,html[data-theme="dark"] .form-section,html[data-theme="dark"] .modal-card,html[data-theme="dark"] .table-wrap,html[data-theme="dark"] .subpanel,html[data-theme="dark"] .empty{background:#205587!important;border-color:#5792c2!important;color:#f4faff!important}
html[data-theme="dark"] .trips-panel,html[data-theme="dark"] .trips-table tbody tr,html[data-theme="dark"] .data-table,html[data-theme="dark"] .data-table td,html[data-theme="dark"] .table-wrap.mobile-cards tr{background:#205587!important;color:#f4faff!important;border-color:#5792c2!important}
html[data-theme="dark"] .data-table th,html[data-theme="dark"] .checklist-section h4,html[data-theme="dark"] .privacy-note{background:#286296!important;color:#eaf5ff!important;border-color:#5792c2!important}
html[data-theme="dark"] .top-icon,html[data-theme="dark"] .top-control,html[data-theme="dark"] .profile-control,html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .search,html[data-theme="dark"] .action-btn{background:#276297!important;border-color:#70a5d2!important;color:#f5fbff!important}
html[data-theme="dark"] .hero-copy h3,html[data-theme="dark"] .hero-copy p,html[data-theme="dark"] .hero-copy small,html[data-theme="dark"] .hero-kpis span,html[data-theme="dark"] .hero-kpis strong{color:#fff!important}
.executive-hero,html[data-theme="dark"] .executive-hero{background:linear-gradient(125deg,#2b74b5,#164e86 72%,#22649e)!important;color:#fff!important;border:1px solid #73aae0!important}
.executive-hero .hero-copy h3{color:#fff!important;text-shadow:0 2px 8px rgba(8,38,70,.25)}
.executive-hero:after{background:radial-gradient(circle,rgba(122,199,255,.30),transparent 68%)!important}
html[data-theme="light"] .pagebar h2{color:#143a62!important}
.btn.gold,.btn.navy,.btn.blue,.auth-card .btn-login,.segment button.active{background:linear-gradient(135deg,#2877c5,#15518f)!important;border-color:#2b79c5!important;color:#fff!important;box-shadow:0 9px 24px rgba(34,105,172,.20)!important}
.nav-btn.active{background:rgba(137,203,255,.22)!important;box-shadow:inset 3px 0 #84c9ff,0 8px 18px rgba(8,55,101,.12)!important}
.main::before{background:radial-gradient(circle at -7% -12%,transparent 0 64%,rgba(81,153,221,.23) 64.2% 64.5%,transparent 64.7%)!important}
.auth-shell:before,.auth-shell:after{border-color:rgba(54,138,209,.35)!important}
.auth-rule{background:linear-gradient(90deg,#175a9d,#6bc3f8)!important}
.auth-card>p,.auth-footer,.app-footer,.app-footer strong,.modal-kicker,.brand-copy strong{color:#2c79c5!important}
.sidebar .brand-copy strong{color:#eaf7ff!important}
html[data-theme="dark"] .auth-card>p,html[data-theme="dark"] .auth-footer,html[data-theme="dark"] .app-footer,html[data-theme="dark"] .app-footer strong{color:#c4e7ff!important}
.auth-footer,.app-footer{letter-spacing:.02em!important;font-weight:800!important}
.logo-hero,.auth-card .logo-hero{width:220px!important;height:194px!important;max-width:60vw!important;max-height:none!important;display:block!important;margin:0 auto 12px!important;object-fit:contain!important;filter:drop-shadow(0 10px 18px rgba(34,114,198,.23))!important}
.topbar-logo,.brand-logo,.startup-alert-logo{filter:drop-shadow(0 5px 10px rgba(51,142,228,.2))!important}
.bar-fill.gold{background:linear-gradient(90deg,#2a75be,#68b3f0)!important}
.metric-card:before{background:#3a83cc!important}
.metric-danger,.metric-danger .metric-value,.metric-danger strong,.result-neg,.action-btn.danger{color:#e55260!important}
html[data-theme="dark"] .metric-danger{background:#68445c!important;border-color:#b77586!important}
html[data-theme="dark"] .metric-danger .metric-value,html[data-theme="dark"] .action-btn.danger{color:#ffd1d8!important}
.warning-note,.release-status.wait,.startup-alert-row,.alert-row{background:#fff1f3!important;color:#a52f43!important;border-color:#efb2bf!important}
.setting-card{min-width:0}
.settings-grid{display:grid;grid-template-columns:minmax(300px,1fr) minmax(0,1.8fr);gap:18px;align-items:start}
.settings-grid>.setting-card:first-child{display:grid;gap:14px;align-content:start}
.settings-grid>.setting-card:first-child>p{font-size:12px;line-height:1.7;margin:0;color:var(--text)}
.settings-grid .panel-head{align-items:center;gap:12px;flex-wrap:wrap}
.settings-grid .table-wrap{width:100%;overflow-x:auto}
.branding-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;margin-top:5px;border:1px solid var(--line);border-radius:16px;background:var(--surface2)}
.branding-settings label:first-child{grid-column:1/-1}
.branding-settings input:not([type="checkbox"]){width:100%;max-width:none;min-height:42px}
.branding-settings .check{grid-column:1/-1}
.branding-settings button{grid-column:1/-1;justify-self:start;min-width:180px}
.csv-result{margin-bottom:16px;border-left:4px solid #297dcb!important;font-size:13px;line-height:1.5}
.csv-result details{margin-top:10px}.csv-result li{margin:5px 0;overflow-wrap:anywhere}
@media(max-width:980px){.settings-grid{grid-template-columns:1fr}}
@media(max-width:650px){.logo-hero,.auth-card .logo-hero{width:186px!important;height:165px!important;max-width:65vw!important}.branding-settings{grid-template-columns:1fr}.branding-settings label,.branding-settings label:first-child,.branding-settings .check,.branding-settings button{grid-column:1/-1}.settings-grid{gap:12px}}
.badge.orange{background:#e6f3ff!important;color:#17639c!important}
.badge.red{background:#ffe9ed!important;color:#aa3046!important}
html[data-theme="dark"] .badge.orange{background:#3178af!important;color:#f5fbff!important}
html[data-theme="dark"] .badge.red{background:#8a4052!important;color:#fff!important}
html[data-theme="dark"] .metric-card .metric-icon,html[data-theme="dark"] .quick-ico{background:#3170a7!important;color:#eaf8ff!important;border-color:#75aee0!important}
html[data-theme="dark"] .top-title small,html[data-theme="dark"] .metric-label,html[data-theme="dark"] .metric-note,html[data-theme="dark"] .setting-card p,html[data-theme="dark"] .field-help{color:#dbeeff!important}
html[data-theme="dark"] .top-title strong,html[data-theme="dark"] .pagebar h2,html[data-theme="dark"] .pagebar p,html[data-theme="dark"] .setting-card h4{color:#fff!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#d2e8fb!important}
.auth-card .logo-hero{aspect-ratio:1/1}
/* V4.4: marca sobre o nome e visual adaptado a 9:16 */
.sidebar .brand-block{height:auto!important;min-height:150px!important;padding:12px 14px 16px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;position:relative}
.sidebar .brand-logo{width:74px!important;height:74px!important;flex:none!important;object-fit:contain!important;filter:grayscale(1) brightness(0) invert(1) drop-shadow(0 5px 9px rgba(2,32,64,.2))!important}
.sidebar .brand-copy{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;gap:3px!important;min-width:0!important}
.sidebar .brand-copy strong{color:#fff!important;font-size:14px!important;line-height:1.15!important;max-width:200px;overflow-wrap:anywhere}
.sidebar .brand-copy small{color:#d6ecff!important;letter-spacing:.10em!important;font-size:9px!important}
.sidebar .side-close{position:absolute;right:8px;top:10px}
.top-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:2px;min-width:110px;max-width:180px;flex:none}
.top-brand .topbar-logo{width:62px!important;height:62px!important;flex:none!important;max-width:100%!important;object-fit:contain!important;filter:drop-shadow(0 5px 10px rgba(42,122,205,.18))!important}
.top-brand .top-title{align-items:center!important;max-width:100%;min-width:0!important}
.top-brand .top-title strong{color:#1b5d9b!important;max-width:170px!important;font-size:13px!important;overflow-wrap:anywhere;white-space:normal!important;line-height:1.12!important}
.top-brand .top-title small{font-size:8px!important;line-height:1.15!important;color:#527da8!important;white-space:normal!important}
html[data-theme="dark"] .top-brand .top-title strong,html[data-theme="dark"] .top-brand .top-title small{color:#fff!important}
html[data-theme="dark"] .top-brand .topbar-logo{filter:grayscale(1) brightness(0) invert(1) drop-shadow(0 4px 9px rgba(1,34,69,.16))!important}
.auth-card .logo-hero,.logo-hero{width:286px!important;height:245px!important;max-width:72vw!important;max-height:none!important;margin:0 auto 8px!important;object-fit:contain!important}
.access-csv-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}
.access-csv-actions .btn{white-space:nowrap}
@media(max-width:980px){.sidebar .brand-block{min-height:160px!important}.sidebar .brand-logo{width:82px!important;height:82px!important}}
@media(max-width:650px){.topbar{display:grid!important;grid-template-columns:42px minmax(95px,1fr) auto;gap:6px!important;align-items:center!important;min-height:105px!important;height:auto!important;padding:calc(6px + env(safe-area-inset-top)) 9px 7px!important}.topbar #menuBtn{grid-column:1;grid-row:1}.top-brand{grid-column:2;grid-row:1;justify-self:center;max-width:145px;min-width:0}.top-brand .topbar-logo{width:58px!important;height:58px!important}.top-brand .top-title strong{font-size:11px!important;max-width:140px!important}.top-brand .top-title small{font-size:7px!important}.top-actions{grid-column:3;grid-row:1;margin:0!important;gap:4px!important}.top-actions .top-control{height:36px!important;min-width:34px!important;padding:0 6px!important}.top-actions .profile-control{display:none!important}.top-actions #logoutBtn span:last-child{display:none!important}.auth-card .logo-hero,.logo-hero{width:235px!important;height:211px!important;max-width:76vw!important}.auth-card{padding-top:20px!important}.access-csv-actions{width:100%;margin:0}.access-csv-actions .btn{flex:1 1 130px}.settings-grid .panel-head>.btn{order:-1}}
@media(max-width:390px){.top-brand .topbar-logo{width:50px!important;height:50px!important}.top-brand .top-title small{display:none!important}.top-actions #alertBtn{display:none!important}.topbar{grid-template-columns:38px minmax(82px,1fr) auto!important}.auth-card .logo-hero,.logo-hero{height:180px!important}}
html[data-theme="dark"] .auth-card .logo-hero{filter:grayscale(1) brightness(0) invert(1) drop-shadow(0 8px 15px rgba(3,31,62,.22))!important}
.access-csv-help{font-size:10px!important;color:var(--muted)!important;line-height:1.5!important;margin:2px 0 0!important;width:100%}
@media(max-width:650px){.top-brand .topbar-logo{height:62px!important;width:62px!important}.top-brand .top-title strong{max-width:140px!important}.settings-grid .setting-card{padding:15px!important}.settings-grid .table-wrap.mobile-cards tr{display:block!important}.settings-grid .table-wrap.mobile-cards td{display:block!important;overflow-wrap:anywhere}}
/* V4.5: símbolo sem o nome embutido no PNG; identidade personalizada fica no mesmo suporte */
.logo-hero-frame{width:260px;height:216px;max-width:72vw;overflow:hidden;margin:0 auto 10px;position:relative}
.logo-hero-frame .logo-hero{width:260px!important;height:260px!important;max-width:none!important;margin:-7px auto 0!important;object-fit:contain!important}
.sidebar .brand-logo-frame{width:112px;height:94px;overflow:hidden;flex:none;position:relative}
.sidebar .brand-logo-frame .brand-logo{width:112px!important;height:112px!important;max-width:none!important;margin:-3px auto 0!important;object-fit:contain!important;filter:drop-shadow(0 5px 8px rgba(0,22,54,.28))!important}
.logo-hero-frame.custom-logo .logo-hero,.sidebar .brand-logo-frame.custom-logo .brand-logo{width:100%!important;height:100%!important;margin:0!important;object-fit:contain!important}
.sidebar .brand-block{min-height:170px!important}
.top-brand{max-width:240px;min-width:0}
.top-brand .top-title strong{max-width:235px!important;font-size:16px!important}
.main::before{background:repeating-linear-gradient(145deg,transparent 0 135px,rgba(50,131,211,.07) 136px 139px,transparent 140px 280px)!important;opacity:1!important}
.auth-shell:before,.auth-shell:after{border-color:rgba(42,124,207,.34)!important}
html[data-theme="dark"] .auth-shell{background-image:repeating-linear-gradient(145deg,transparent 0 135px,rgba(255,255,255,.09) 136px 139px,transparent 140px 280px),linear-gradient(145deg,#1b5084,#2b71a9)!important}
.sidebar{background-image:repeating-linear-gradient(145deg,transparent 0 105px,rgba(255,255,255,.085) 106px 109px,transparent 110px 220px),linear-gradient(180deg,#153b68,#20578d)!important}
html[data-theme="dark"] .main::before{background:repeating-linear-gradient(145deg,transparent 0 135px,rgba(255,255,255,.11) 136px 139px,transparent 140px 280px)!important;opacity:1!important}
html[data-theme="dark"] .sidebar{background-image:repeating-linear-gradient(145deg,transparent 0 105px,rgba(255,255,255,.10) 106px 109px,transparent 110px 220px),linear-gradient(180deg,#194d80,#246298)!important}
@media(max-width:650px){.logo-hero-frame{width:222px;height:185px}.logo-hero-frame .logo-hero{width:222px!important;height:222px!important}.top-brand .top-title strong{font-size:13px!important}}
/* V4.6: foco no símbolo e uso vertical no celular */
.sidebar .brand-logo-frame{width:132px;height:98px}
.sidebar .brand-logo-frame .brand-logo{width:132px!important;height:132px!important;margin:-9px auto 0!important}
.logo-hero-frame{height:207px}
.logo-hero-frame .logo-hero{margin:-12px auto 0!important}
.sidebar,.main{background-color:#225787}
html[data-theme="dark"] body,html[data-theme="dark"] .main{background:linear-gradient(145deg,#3373ab,#275f96)!important}
html[data-theme="dark"] .sidebar{background-image:repeating-linear-gradient(145deg,transparent 0 105px,rgba(255,255,255,.12) 106px 109px,transparent 110px 220px),linear-gradient(180deg,#28669f,#3075aa)!important}
html[data-theme="dark"] .auth-shell{background-image:repeating-linear-gradient(145deg,transparent 0 135px,rgba(255,255,255,.11) 136px 139px,transparent 140px 280px),linear-gradient(145deg,#28669f,#3075aa)!important}
.attention-alert{color:#fff!important;background:#c93447!important;animation:alertPulse 1.1s ease-in-out infinite!important}
@keyframes alertPulse{50%{background:#8b172b;box-shadow:0 0 0 5px rgba(211,44,65,.25)}}
.field-inactive{opacity:.56}
.vehicle-ownership{padding:16px 20px;max-width:460px}
.vehicle-ownership select{width:100%}
label[hidden]{display:none!important}
@media(max-width:650px){html,body,.software,.main{max-width:100vw;min-width:0;overflow-x:hidden}.topbar{min-height:63px!important;height:63px!important;grid-template-columns:40px minmax(0,1fr) auto!important}.top-brand{min-width:0!important}.top-brand .top-title small{font-size:8px!important}.top-actions{gap:3px!important}.top-actions .top-control{width:32px!important;min-width:32px!important}.pagebar,.content{min-width:0;max-width:100%;overflow-wrap:anywhere}.checklist-shell,.dashboard-grid,.section-grid,.editor-shell,.driver-home,.settings-grid{min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr)!important}.check-item{grid-template-columns:minmax(0,1fr)!important}.check-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.check-actions label{min-width:0!important}.trip-finance-preview{grid-template-columns:repeat(2,minmax(0,1fr))!important}.table-wrap,.report-toolbar{max-width:100%;overflow-x:auto}.logo-hero-frame{width:222px;height:177px}.logo-hero-frame .logo-hero{margin:-10px auto 0!important}.vehicle-ownership{padding:12px}}
@media(max-width:380px){.topbar{grid-template-columns:35px minmax(0,1fr) auto!important}.top-actions #alertBtn{display:flex!important}.top-actions #profileBtn{display:none!important}.top-brand .top-title small{font-size:7px!important}.metric-grid,.finance-kpis{grid-template-columns:1fr 1fr!important}}
/* A imagem padrão já contém somente o L e a carreta, sem texto para recortar. */
.logo-hero-frame{width:280px;height:270px;max-width:72vw;overflow:visible}
.logo-hero-frame .logo-hero{width:280px!important;height:270px!important;max-width:100%!important;margin:0 auto!important}
.sidebar .brand-logo-frame{width:126px;height:125px;overflow:visible}
.sidebar .brand-logo-frame .brand-logo{width:126px!important;height:125px!important;margin:0 auto!important}
.sidebar .brand-block{min-height:198px!important}
@media(max-width:650px){.logo-hero-frame{width:220px;height:218px}.logo-hero-frame .logo-hero{width:220px!important;height:218px!important;margin:0 auto!important}.sidebar .brand-logo-frame{width:126px;height:125px}}
html[data-theme="dark"] .auth-card .logo-hero{filter:drop-shadow(0 10px 18px rgba(3,31,62,.25))!important}
