:root{color-scheme:light;--bg:#edf3f6;--panel:#ffffff;--line:#d5e0e8;--red:#c91635;--text:#173447;--muted:#54697a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,a{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #fff;outline-offset:3px}.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:24px;letter-spacing:-1px}.brand img{width:48px}.brand b{color:var(--red)}.muted,small{color:var(--muted)}.eyebrow{color:#b51b35;text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:800}.landing{max-width:1250px;margin:auto;min-height:100vh;padding:32px 5vw;display:flex;flex-direction:column}.top{display:flex;align-items:center;justify-content:space-between;gap:16px}.pill{border:1px solid #c7d9e2;color:#173c50;padding:6px 12px;border-radius:40px;font-size:12px}.hero{flex:1;display:grid;grid-template-columns:1.2fr .8fr;gap:7vw;align-items:center;padding:70px 0}.hero h1{font-size:clamp(42px,6.5vw,86px);line-height:1.02;margin:16px 0 24px;letter-spacing:-.055em}.hero h1 em{color:var(--red);font-style:normal}.hero p{max-width:550px;font-size:19px;color:var(--muted)}.features{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:30px}.feature,.card,.access{border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:20px}.feature{padding:14px}.feature strong{display:block}.access{padding:32px;background:linear-gradient(145deg,#ffffff,#f6fafc);box-shadow:0 25px 80px #173c501a}.access h2{font-size:26px;margin:12px 0}.access img{width:90px}.btn{display:block;width:100%;border:1px solid var(--line);background:#e1edf3;color:var(--text);border-radius:10px;padding:13px 16px;font-weight:700;text-align:center;margin-top:12px}.btn.primary{background:#c91635;border-color:#c91635;color:white}.btn:disabled{cursor:not-allowed;opacity:.65}.btn:hover:not(:disabled){filter:brightness(1.15)}.notice{padding:12px 15px;background:#e1edf3;border:1px solid #b9d0dc;border-radius:10px;color:#173c50;font-size:13px;margin:18px 0}.foot{border-top:1px solid var(--line);padding:22px 0;color:var(--muted);display:flex;justify-content:space-between;gap:12px;font-size:12px}.shell{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:100vh}.sidebar{padding:26px 16px;border-right:1px solid var(--line);background:#173c50;position:sticky;top:0;height:100vh;overflow:auto}.sidebar .brand{margin:0 8px 32px}.sidebar .brand img{width:35px}.nav{display:grid;gap:5px}.nav a{display:flex;align-items:center;gap:12px;padding:12px;border-radius:9px;color:#edf3f6}.nav a.active{background:#c91635;color:white;font-weight:700}.nav a:hover{background:#27546b}.nav a.active:hover{background:#a9112b}.nav .symbol{width:22px;text-align:center;color:inherit;font-size:17px}.main{padding:25px 32px;min-width:0}.mainhead{display:flex;align-items:center;justify-content:space-between;padding-bottom:16px;border-bottom:1px solid var(--line);gap:14px}.mainhead a{font-size:13px;color:var(--muted)}h1{font-size:clamp(28px,4vw,43px);letter-spacing:-1.5px;line-height:1.13;margin:26px 0 10px}h2{font-size:19px}p{margin:8px 0 16px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}.kpi{border-left:3px solid var(--red)}.kpi strong{font-size:35px;display:block;margin:6px 0}.cols{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}.card h2{margin-top:0}.line{display:flex;justify-content:space-between;align-items:center;padding:13px 0;gap:12px;border-bottom:1px solid var(--line)}.line:last-child{border-bottom:0}.line span:last-child{color:var(--muted);font-size:12px;text-align:right}.module{margin-top:24px}.empty{padding:35px 16px;border:1px dashed #a6bdca;border-radius:12px;text-align:center;color:var(--muted);margin:20px 0}.driver{max-width:680px;margin:auto;padding:22px 18px 100px}.driver .mainhead .brand{font-size:20px}.driver .mainhead img{width:35px}.driver .kpis{grid-template-columns:repeat(2,1fr)}.driver .nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;background:#ffffff;border-top:1px solid var(--line);padding:8px 4px;z-index:5}.driver .nav a{flex:1;max-width:140px;flex-direction:column;gap:3px;padding:8px 3px;font-size:11px}.driver .nav a.active{background:#e1edf3;color:#b51b35}.driver .nav .symbol{font-size:20px}.driver .cols{grid-template-columns:1fr}.rule{color:#455f70;font-size:14px}.step{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.num{background:#e1edf3;color:#173c50;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;flex-shrink:0;font-weight:bold}@media(max-width:850px){.hero{grid-template-columns:1fr;padding:42px 0;gap:25px}.shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;border-right:0;padding:14px}.sidebar .brand{margin:0 0 12px}.sidebar .nav{display:flex;overflow:auto}.sidebar .nav a{white-space:nowrap;padding:9px}.main{padding:18px}.kpis{grid-template-columns:repeat(2,1fr)}.cols{grid-template-columns:1fr}}@media(max-width:420px){.landing{padding:20px}.brand{font-size:21px}.pill{font-size:10px}.access{padding:22px}.foot{flex-direction:column}.kpi{padding:14px}.mainhead{flex-wrap:wrap}}
.mainhead button.btn{width:auto;margin-top:0;padding:8px 16px;flex-shrink:0}.mainhead .brand{flex-shrink:0}

.tx-input{display:block;width:100%;background:#edf3f6;border:1px solid #a6bdca;color:var(--text);padding:11px 12px;border-radius:8px;font:inherit;margin:7px 0 13px}.tx-input:focus{outline:2px solid #b51b35;outline-offset:2px}.tx-table-wrap{overflow-x:auto;margin-top:15px}.tx-table{width:100%;border-collapse:collapse;text-align:left;min-width:670px}.tx-table th,.tx-table td{padding:13px 10px;border-bottom:1px solid var(--line)}.tx-table th{color:var(--muted);font-size:12px}.tx-table td .btn{width:auto;margin:0;padding:7px 12px}.tx-edit{background:#f7fafc;border:1px solid var(--line);border-radius:12px;padding:18px;margin:16px 0}.tx-edit h3{margin:0 0 14px}.tx-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px}.tx-checks,.tx-actions{display:flex;gap:18px;flex-wrap:wrap;align-items:center}.tx-checks input{accent-color:#c91635}.tx-actions .btn{width:auto;margin-top:0}.tx-edit p{font-size:13px}@media(max-width:600px){.tx-fields{grid-template-columns:1fr}.tx-edit{padding:12px}}

/* V1.06.1 — identidade azul petróleo e branco; somente apresentação. */
:root{--petroleo:#173c50;--petroleo-hover:#27546b;--soft:#e1edf3;--focus:#17698c;--red:#c91635}
body{font-size:16px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.top,.driver>.mainhead,.main>.mainhead{background:var(--petroleo);color:#fff;border:0;border-radius:14px;padding:14px 18px}
.top .brand,.driver>.mainhead .brand,.sidebar .brand{color:#fff}
.top .brand b,.driver>.mainhead .brand b,.sidebar .brand b{color:#ff758a}
.top .pill{color:#fff;border-color:#7190a1}
.access img{background:var(--petroleo);border-radius:14px;padding:12px}
.access,.feature,.card{box-shadow:0 3px 14px #173c500b}
.sidebar{border-right:0}
.sidebar .muted,.sidebar small{color:#d0e0e8}
.sidebar a:focus-visible,.top a:focus-visible,.driver>.mainhead a:focus-visible,.main>.mainhead button:focus-visible,.driver>.mainhead button:focus-visible{outline-color:#fff}
.nav a.active{background:var(--red);color:white}
.sidebar .nav a:hover:not(.active){background:var(--petroleo-hover);color:white}
.btn{min-height:44px;color:var(--text);background:var(--soft);border-color:#b9d0dc}
.btn.primary{background:var(--red);border-color:var(--red);color:#fff}
.btn:hover:not(:disabled){filter:brightness(.96)}
.main>.mainhead button.btn,.driver>.mainhead button.btn{background:#fff;color:var(--petroleo);border-color:#fff}
.driver .mainhead .brand img{width:40px}
.driver .nav{background:#fff;box-shadow:0 -3px 14px #173c5014;padding:8px 4px calc(8px + env(safe-area-inset-bottom,0px))}
.driver .nav a{min-height:56px;justify-content:center;color:#405c6c;font-size:12px}
.driver .nav a.active{background:var(--soft);color:#b51b35;font-weight:800}
.driver .nav a:hover:not(.active){background:#edf3f6;color:var(--petroleo)}
.driver .nav .symbol{font-size:23px}
.tx-input{background:#fff;color:var(--text);border-color:#a6bdca;min-height:44px;font-size:16px}
.tx-input::placeholder{color:#54697a}
.tx-input:focus{outline-color:var(--focus)}
.tx-edit{background:#f7fafc;border-color:var(--line)}
.notice{color:#173c50;background:#e1edf3;border-color:#b9d0dc}
.driver .kpis .card{border-top:3px solid #b9d0dc}
.driver .kpis .card:hover{border-top-color:var(--red)}
summary{cursor:pointer;font-weight:700;color:var(--petroleo);padding:12px 0}
input[type=checkbox]{accent-color:var(--red);width:18px;height:18px;vertical-align:middle}
@media(max-width:600px){.driver{padding:14px 14px calc(100px + env(safe-area-inset-bottom,0px))}.driver .nav a{font-size:11px}.tx-actions{gap:10px}.tx-actions .btn{flex:1;min-width:110px}.driver .mainhead{padding:12px}.card{padding:16px}}

/* V1.06.2 — seleção de pontos da viagem */
.tx-city-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 9px}
.tx-city-heading h3{margin:0;font-size:15px;color:var(--petroleo)}
.tx-city-heading>span{font-size:12px;color:var(--muted);font-weight:700;white-space:nowrap}
.tx-city-order{display:grid;gap:7px;margin-bottom:16px}
.tx-city-point{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #c7d9e2;border-radius:10px;padding:8px}
.tx-city-number{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;background:var(--petroleo);color:#fff;border-radius:50%;font-weight:800;font-size:13px}
.tx-city-name{flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px}
.tx-city-actions{display:flex;gap:4px;flex-shrink:0}
.tx-city-actions .btn{padding:5px;width:44px;min-height:44px;margin:0;font-size:19px}
.tx-city-actions .btn:last-child{color:var(--red);background:#fff;border-color:#e7bdc5}
.tx-city-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:340px;overflow:auto;padding:4px 4px 8px;margin:0 0 18px;scrollbar-gutter:stable}
.tx-city-option{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #b9d0dc;border-radius:9px;background:#fff;color:var(--text);padding:11px 10px;min-height:48px;text-align:left;font-size:14px;font-weight:600}
.tx-city-option>span:first-child{overflow-wrap:anywhere}
.tx-city-option.selected{background:#e1edf3;border:2px solid #173c50;padding:10px 9px}
.tx-city-badge{flex-shrink:0;font-size:12px;font-weight:800;color:var(--petroleo)}
.tx-city-option.selected .tx-city-badge{color:#14633b}
.tx-city-picker #tx-city-add{margin:0 0 12px;width:auto}
@media(max-width:420px){.tx-city-grid{grid-template-columns:1fr;max-height:320px}.tx-city-point{gap:6px}.tx-city-actions .btn{width:44px;min-height:44px}.tx-city-name{font-size:13px}.tx-city-number{width:25px;height:25px}}

.tx-point-label{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}.tx-point-label .muted{font-size:12px;font-weight:500}.tx-city-name .muted{font-size:12px;margin-top:3px}.tx-city-option{min-height:62px}#tx-point-warning:not(:empty){background:#fff4d9;border:1px solid #e1c789;color:#664700;padding:10px;border-radius:8px;font-size:13px}

/* V1.07.1 - Aba BP */
.tx-bp-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.tx-bp-row>div{min-width:0;overflow-wrap:anywhere;flex:1}.tx-bp-row .btn{flex-shrink:0}.tx-bp-row p{margin:4px 0 0;font-size:12px}#tx-bp-delivery{scroll-margin-top:16px}#tx-bp-pull{display:grid;gap:8px}.driver .nav a{min-width:0;max-width:130px}.driver .nav{gap:0}@media(max-width:480px){.driver .nav a{font-size:10px;padding:7px 1px}.driver .nav .symbol{font-size:21px}.tx-bp-row .btn{padding:8px 10px}}

/* V1.08 GPS */
.tx-gps-map{display:block;width:100%;height:auto;aspect-ratio:2/1;background:#edf3f6;border:1px solid #b9d0dc;border-radius:10px}.tx-gps-panel{margin:12px 0;min-width:0}.tx-gps-panel a{color:#173c50;text-decoration:underline}.tx-gps-panel p{overflow-wrap:anywhere}#tx-gps-bar[hidden]{display:none}#tx-gps-status{font-weight:700;margin:0 0 6px}#tx-gps-controls .btn{min-height:36px;padding:6px 10px;font-size:13px}
