:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;color:#122c3c;background:#f4f7f8}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.hidden{display:none!important}.shell{min-height:100vh;display:flex;flex-direction:column}.site-header{background:#071e30;color:white;height:92px;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,28px);border-bottom:1px solid #ffffff20}.identity{display:flex;gap:14px;align-items:center}.logo{width:46px;height:46px;border:2px solid #67d6b2;display:grid;place-items:center;border-radius:12px;color:#75ebc2;font-weight:800;font-size:29px;transform:rotate(-8deg)}.logo-arrow{transform:rotate(8deg)}.identity-text{display:flex;flex-direction:column;gap:4px}.identity-text strong{letter-spacing:3px;font-size:20px;line-height:1}.identity-text small{font-size:9px;letter-spacing:1.9px;color:#a2c0c9}.header-right{display:flex;align-items:center;gap:20px}.status{display:flex;gap:9px;align-items:center;font-size:12px;color:#b4cecf}.status-dot{background:#55dfaf;border-radius:50%;height:7px;width:7px;box-shadow:0 0 0 4px #55dfaf18}main{flex:1}.center-layout{min-height:65vh;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#78909a}.loader{width:32px;height:32px;border:3px solid #d7e5e7;border-top-color:#0d887e;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.login-layout{min-height:calc(100vh - 160px);display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,450px);align-items:center;gap:clamp(50px,9vw,160px);padding:55px max(8vw,30px);background:radial-gradient(ellipse at 20% 90%,#dbeeea 0%,transparent 38%),#f4f7f8}.eyebrow{font-weight:800;letter-spacing:2.5px;font-size:11px;color:#0a8d83;display:flex;align-items:center;gap:12px}.eyebrow-line{height:2px;width:30px;background:#0dafa2}.welcome h1{font-size:clamp(45px,5.1vw,78px);line-height:1.08;font-weight:790;letter-spacing:-3px;color:#092b3a;margin:31px 0 20px}.welcome h1 em{font-style:normal;color:#10a88f}.welcome>p{font-size:17px;line-height:1.8;color:#68818a;max-width:520px}.welcome-feature{display:flex;align-items:center;gap:15px;margin-top:55px;color:#113648;font-size:14px;font-weight:700}.welcome-feature small{display:block;color:#899ba4;font-size:12px;font-weight:450;margin-top:4px}.shield{border-radius:14px;background:#daf5e9;color:#119f83;padding:14px 19px;font-size:22px}.login-panel{background:#fff;border:1px solid #e3e9ec;box-shadow:0 22px 70px #102d4012;border-radius:20px;padding:42px}.panel-kicker{color:#0d9e8d;font-size:10px;font-weight:850;letter-spacing:2px}.login-panel h2{font-size:29px;letter-spacing:-1px;margin:14px 0 8px;color:#143344}.panel-subtitle{margin:0 0 30px;color:#8195a0;font-size:14px}label{display:block;color:#334c57;font-size:12px;font-weight:750;margin:22px 0 9px}input{height:51px;border:1px solid #d7e2e4;border-radius:9px;background:white;width:100%;padding:0 14px;outline:none;transition:border-color .15s,box-shadow .15s;color:#123647;font-size:14px}input:focus{border-color:#20aa9c;box-shadow:0 0 0 3px #20aa9c20}input::placeholder{color:#a7b5bd}.password-wrap{position:relative}.password-wrap input{padding-right:92px}.toggle-password{position:absolute;right:12px;top:50%;transform:translateY(-50%);border:0;background:none;color:#268c83;font-size:12px;font-weight:700}.primary{border:0;border-radius:9px;background:#0c877c;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 21px;width:100%;height:52px;margin-top:28px;font-weight:750;font-size:14px;box-shadow:0 8px 18px #0c877c2a}.primary:hover{background:#076e67}.primary:disabled{opacity:.6;cursor:wait}.primary span{font-size:19px}.help{margin-top:25px;padding-top:22px;border-top:1px solid #e9eff1;color:#7e929a;font-size:12px;line-height:1.7;display:flex;gap:9px}.help>span{font-size:17px}.message{border-radius:8px;padding:12px 14px;font-size:12px;background:#e5f7ef;color:#176c58;margin:16px 0 0}.message.error{background:#fff0ee;color:#ad433f}footer{background:#071e30;color:#8fa8b2;display:flex;justify-content:space-between;gap:20px;padding:20px max(5vw,28px);font-size:10px;letter-spacing:1px}.portal-layout{display:flex;min-height:calc(100vh - 157px)}.side-nav{width:254px;flex-shrink:0;background:#fff;border-right:1px solid #e3e9ec;padding:28px 16px;display:flex;flex-direction:column;gap:7px}.nav-label{padding:12px 15px 17px;color:#99a9b0;font-size:10px;font-weight:850;letter-spacing:1.5px}.nav-button,.logout{background:transparent;border:0;display:flex;align-items:center;text-align:left;width:100%;padding:15px 16px;border-radius:10px;color:#647c86;font-weight:650;font-size:14px;gap:14px}.nav-button:hover{background:#eef7f5}.nav-button.selected{background:#e0f4ee;color:#08796d}.nav-icon{font-size:20px;width:22px;text-align:center}.nav-end{margin-top:auto;padding-top:30px}.logout{color:#b65048}.logout:hover{background:#fff1f0}.portal-main{flex:1;min-width:0;padding:52px clamp(25px,5vw,80px);max-width:1450px}.eyebrow.dark{color:#0b9885}.page-title{font-size:clamp(30px,3.2vw,48px);letter-spacing:-1.8px;margin:15px 0 8px;color:#113244}.page-subtitle{color:#798e98;margin:0 0 38px;font-size:15px}.wave{font-size:.7em;vertical-align:middle}.dashboard-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.dash-card{background:#fff;border:1px solid #e1e9eb;border-radius:16px;padding:27px;min-height:253px;display:flex;flex-direction:column;align-items:flex-start}.dash-card.accent{background:#10384a;color:#fff;border-color:#10384a}.card-symbol{font-size:28px;color:#0aa38c;margin-bottom:24px}.dash-card.accent .card-symbol{color:#75e5c5}.dash-card small{font-size:10px;letter-spacing:1.5px;color:#849ba3;font-weight:800}.dash-card.accent small{color:#9cceca}.dash-card h2{font-size:20px;margin:9px 0}.dash-card p{color:#81959d;font-size:13px;line-height:1.65;margin:0}.dash-card.accent p{color:#b1c9cb}.text-link{background:none;border:0;color:#078f82;padding:0;margin-top:auto;font-size:13px;font-weight:750}.future{display:flex;gap:20px;background:#e7f2f0;border:1px solid #cce7df;border-radius:14px;margin-top:25px;padding:25px}.future-icon{font-size:23px;color:#159884}.future strong{font-size:14px;color:#184637}.future p{font-size:13px;color:#6c8984;margin:7px 0 0;line-height:1.65}.content-card{display:flex;align-items:flex-start;gap:30px;max-width:780px;padding:36px;background:#fff;border:1px solid #e1e8eb;border-radius:16px;box-shadow:0 8px 32px #12354406}.avatar{flex:0 0 74px;height:74px;border-radius:18px;background:#dff4ec;color:#078c7b;display:grid;place-items:center;font-size:29px;font-weight:800}.profile-data{flex:1}.profile-data label{margin:0 0 6px;font-size:11px;color:#879ba5}.profile-data strong{display:block;font-size:17px;margin-bottom:26px;color:#143647}.profile-note{color:#8ca0a9;font-size:12px;line-height:1.6;border-top:1px solid #edf1f1;padding-top:20px}.form-card{display:block;max-width:570px}.form-card h2{margin:0;font-size:22px}.form-card>p{color:#7b919a;font-size:13px;line-height:1.7}.notice{display:flex;gap:16px;background:#fff5da;border:1px solid #f0dfb3;padding:18px;border-radius:12px;margin:0 0 28px;color:#795824}.notice>span{font-weight:900;font-size:23px}.notice strong{font-size:14px}.notice p{margin:4px 0;font-size:13px}.menu-button{color:white;background:#ffffff15;border:1px solid #ffffff33;padding:8px 12px;border-radius:8px;font-size:22px}@media(max-width:1000px){.login-layout{gap:30px;padding:40px}.welcome h1{font-size:48px}.dashboard-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.site-header{height:76px;padding:0 20px}.identity-text strong{font-size:16px}.identity-text small{font-size:8px;letter-spacing:1px}.logo{width:38px;height:38px;font-size:23px}.status{display:none}.login-layout{display:flex;flex-direction:column;align-items:stretch;padding:36px 18px 48px;min-height:calc(100vh - 145px);gap:32px}.welcome h1{font-size:clamp(36px,9vw,48px);letter-spacing:-2px;margin:22px 0 12px}.welcome>p{font-size:14px;line-height:1.7}.welcome-feature{display:none}.login-panel{padding:30px 25px;border-radius:16px}.portal-layout{display:block;position:relative}.side-nav{position:absolute;z-index:20;left:0;top:0;width:min(300px,100%);height:calc(100vh - 76px);box-shadow:10px 20px 30px #16314120;display:none}.side-nav.open{display:flex}.portal-main{padding:38px 20px}.dashboard-cards{grid-template-columns:1fr}.dash-card{min-height:205px}.content-card{padding:25px;gap:18px}.avatar{width:50px;flex-basis:50px;height:50px;font-size:21px}.menu-button:not(.hidden){display:block}footer{padding:18px 20px;flex-direction:column;gap:8px;font-size:9px}}@media(min-width:761px){.menu-button{display:none!important}}

/* Portal do Motorista / Diárias */
.daily-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:26px}
.daily-periods{display:flex;gap:4px;padding:5px;border-radius:12px;background:#e6efef;width:max-content;max-width:100%}
.daily-period{border:0;background:transparent;color:#69818b;padding:12px 18px;font-size:13px;font-weight:750;border-radius:8px;min-width:135px}
.daily-period.selected{background:#fff;color:#087c70;box-shadow:0 2px 9px #0c344216}
.daily-refresh{border:1px solid #c9deda;background:#fff;padding:12px 17px;border-radius:9px;color:#087b71;font-weight:750;font-size:13px}
.daily-refresh:hover{background:#e8f4ef}.daily-refresh:disabled{opacity:.55;cursor:wait}
.daily-loading{background:white;border:1px solid #e1e9eb;padding:36px 20px;border-radius:14px;text-align:center;color:#6b858f}
.daily-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}
.daily-heading h2{font-size:24px;margin:0 0 7px;color:#173849;letter-spacing:-.5px}
.daily-heading p{margin:0;color:#7a919c;font-size:12px;line-height:1.7}
.daily-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-bottom:22px}
.daily-metric{background:#fff;border:1px solid #e1e9eb;border-radius:14px;padding:22px;min-width:0}
.daily-metric span{display:block;font-size:12px;color:#66818c;font-weight:700}
.daily-metric strong{display:block;color:#103444;font-size:clamp(23px,2.5vw,32px);margin:12px 0 7px;letter-spacing:-1px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.daily-metric small{display:block;color:#859ca5;line-height:1.5;font-size:11px}
.daily-metric:nth-child(2) strong{color:#0b897c}
.daily-warning{border:1px solid #eddfaf;background:#fff8e4;color:#886a2c;padding:15px 19px;border-radius:10px;font-size:13px;line-height:1.55;margin-bottom:22px}
.daily-history{background:#fff;border:1px solid #e1e8eb;border-radius:15px;overflow:hidden}
.daily-history-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 26px 18px}
.daily-history-header h3{color:#193b4a;margin:0 0 5px;font-size:18px}
.daily-history-header p{color:#8497a0;font-size:12px;margin:0}
.daily-history-header>span{color:#8399a1;font-size:12px;white-space:nowrap}
.daily-table-scroll{overflow-x:auto}
.daily-table{border-collapse:collapse;width:100%;min-width:280px;text-align:left}
.daily-table th{background:#f7fafa;text-transform:uppercase;letter-spacing:1px;font-size:10px;color:#879ba3;font-weight:850;padding:15px 26px;border-block:1px solid #e8eff0}
.daily-table td{padding:16px 26px;border-bottom:1px solid #edf1f2;font-size:13px;color:#42606a}
.daily-table tr:last-child td{border-bottom:0}
.daily-table th:last-child,.daily-table td:last-child{text-align:right}
.daily-table tbody tr:hover{background:#fbfdfc}
.daily-date{font-weight:730;color:#173949!important;white-space:nowrap}
.daily-value{font-weight:770;color:#173d45!important;white-space:nowrap;font-variant-numeric:tabular-nums}
.daily-empty{padding:20px 27px;font-size:13px;color:#8296a1}
.daily-disclaimer{color:#8a9ba3;font-size:12px;line-height:1.8;margin:19px 3px}
@media(max-width:760px){.daily-metrics{grid-template-columns:1fr;gap:10px}.daily-metric{padding:18px 20px}.daily-metric strong{font-size:26px;margin:8px 0 4px}.daily-heading{align-items:flex-start;flex-direction:column}.daily-toolbar{align-items:flex-start}.daily-periods{width:100%}.daily-period{flex:1;min-width:0;padding:12px 8px}.daily-table th,.daily-table td{padding:13px 16px}.daily-history-header{padding:20px 17px 14px}}


/* Revisões de diárias — Portal do Motorista */
.daily-table{min-width:390px}
.daily-table th:last-child,.daily-table td:last-child{text-align:right}
.daily-review-action{white-space:nowrap}
.daily-request-button{border:1px solid #9fcfc2;background:#e9f7f1;color:#08796b;padding:9px 12px;border-radius:8px;font-weight:780;font-size:11px;white-space:nowrap}
.daily-request-button:hover:not(:disabled){background:#d9f3e9}
.daily-request-button:disabled{background:#f0f4f5;color:#82979d;border-color:#e0e8e9;cursor:not-allowed}
.daily-review-dialog{border:1px solid #dce8e8;border-radius:19px;padding:33px;background:white;color:#173646;width:min(520px,calc(100% - 28px));max-height:90vh;overflow:auto;box-shadow:0 23px 80px #0c2b3b45}
.daily-review-dialog::backdrop{background:#061c2e9c}
.daily-review-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.daily-review-header h2{font-size:28px;letter-spacing:-1px;margin:11px 0 0}
.daily-review-close{width:35px;height:35px;display:grid;place-items:center;border:0;background:#edf4f5;color:#426674;border-radius:9px;font-size:25px;line-height:1}
.daily-review-intro{color:#7a909b;font-size:13px;line-height:1.8;margin:16px 0 24px}
.daily-review-current{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:20px;background:#f1f7f6;border-radius:12px}
.daily-review-current small{font-size:10px;color:#839ba3;font-weight:820;letter-spacing:.7px;display:block;margin-bottom:8px}
.daily-review-current strong{font-size:18px;color:#143d45;display:block}
.daily-review-dialog label{margin:22px 0 9px;font-size:12px;font-weight:780}
.daily-review-dialog select,.daily-review-dialog textarea{width:100%;border:1px solid #d1dfe1;border-radius:9px;background:white;padding:13px;font:inherit;color:#234753;outline:none}
.daily-review-dialog select{min-height:52px}
.daily-review-dialog textarea{resize:vertical;min-height:120px}
.daily-review-dialog select:focus,.daily-review-dialog textarea:focus{border-color:#0ba28f;box-shadow:0 0 0 3px #09a48b18}
.daily-review-count{text-align:right;color:#90a1a7;font-size:10px;margin-top:5px}
.daily-review-actions{display:flex;gap:11px;justify-content:flex-end;margin-top:24px}
.daily-review-secondary,.daily-review-submit{padding:13px 18px;border-radius:9px;font-weight:750;font-size:13px}
.daily-review-secondary{background:#f1f5f5;border:1px solid #dce7e8;color:#50717c}
.daily-review-submit{background:#0b8e7c;border:1px solid #0b8e7c;color:white}
.daily-review-submit:hover{background:#067766}
.daily-review-actions button:disabled{opacity:.6;cursor:wait}
@media(max-width:760px){.daily-review-dialog{padding:23px 20px}.daily-table{min-width:355px}.daily-table td,.daily-table th{padding:12px 9px}.daily-request-button{font-size:10px;padding:8px 7px}.daily-review-actions{flex-direction:column-reverse}.daily-review-actions button{width:100%}}
