:root{--navy:#0b1730;--blue:#145bea;--ink:#17243c;--muted:#677b95;--line:#e0e7f1;--bg:#f5f7fb;--green:#20774d}*{box-sizing:border-box}html{background:var(--bg);overflow-x:hidden}body{margin:0;color:var(--ink);background:var(--bg);font:15px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;min-width:0;overflow-wrap:anywhere}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,.button{cursor:pointer;border-radius:11px;padding:13px 16px;min-height:48px;border:1px solid #1c62da;background:linear-gradient(#337dff,#1456d6);box-shadow:0 4px 0 #0a3b98;color:white;font-weight:700;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;gap:8px;max-width:100%;transition:transform .1s,box-shadow .1s}button:active,.button:active{transform:translateY(3px);box-shadow:0 1px 0 #0a3b98}button:disabled{opacity:.55;cursor:wait}.secondary{color:#315785;background:#f4f8ff;border-color:#d6e1f0;box-shadow:0 3px 0 #cbd8ea}.danger{background:#fff0f1;color:#ac3346;border-color:#eec8cf;box-shadow:0 3px 0 #ddbdc5}button:focus-visible,a:focus-visible{outline:3px solid #54bdec;outline-offset:3px}.app-header{background:white;border-bottom:1px solid var(--line);padding:18px max(18px,env(safe-area-inset-right)) 16px max(18px,env(safe-area-inset-left));display:flex;align-items:center;gap:11px;min-height:83px}.app-header img{width:43px;height:43px;border-radius:10px}.app-header>div{flex:1;min-width:0}.app-header strong{display:block;font-size:16px;letter-spacing:-.3px}.app-header span{display:block;font-size:11px;color:var(--muted);margin-top:2px}.icon-btn{background:#f0f5fc;color:#436382;box-shadow:none;border-color:var(--line);padding:8px;min-width:40px;min-height:40px;font-size:22px}#sync{padding:9px 18px;font-size:11px;font-weight:650;background:#eaf4ee;color:#2c7050;min-height:35px}#sync[data-state=pending]{background:#fff4dd;color:#916015}#sync[data-state=error]{background:#fff0f0;color:#ad3b49}#sync button{min-height:30px;padding:4px 9px;font-size:11px;box-shadow:none;margin:4px 0 0 6px}main{max-width:760px;padding:22px 16px 14px;margin:auto;min-width:0}h1{font-size:25px;letter-spacing:-.7px;line-height:1.25;margin:5px 0 9px}h2{font-size:18px;letter-spacing:-.35px;margin:0 0 12px}h3{font-size:15px;margin:18px 0 8px}p{margin:8px 0 14px}.muted,.help{color:var(--muted);font-size:12px}.eyebrow{font-size:10px;color:#50759f;font-weight:800;letter-spacing:1.5px;text-transform:uppercase}.card{background:white;border:1px solid var(--line);border-radius:15px;padding:20px;margin:0 0 16px;box-shadow:0 4px 16px #19365b03;min-width:0}.hero{background:var(--navy);color:white;border-color:var(--navy);padding:24px}.hero .eyebrow{color:#9fbadc}.hero p{color:#a9bdd6;font-size:12px}.hero h2{font-size:23px;color:white;margin:10px 0 2px}.elapsed{font-size:42px;font-weight:750;letter-spacing:-1.8px;line-height:1.2;margin:12px 0 10px;font-variant-numeric:tabular-nums}.hero-meta{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:12px;color:#d0deee}.pill{display:inline-flex;padding:5px 9px;border-radius:6px;background:#223858;color:#d5e7ff;font-size:10px;font-weight:700}.pill.green{background:#1c493d;color:#a7e8ca}.greeting{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 4px 18px}.greeting p{font-size:12px;color:var(--muted);margin:0}.greeting time{font-size:11px;color:var(--muted);white-space:nowrap}.actions{display:grid;gap:11px}.activity-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.activity-actions button{flex-direction:column;gap:8px;min-height:94px;padding:12px 5px;font-size:12px;border-color:var(--line);background:white;color:#415d80;box-shadow:0 3px 0 #d5dfec}.activity-actions button span{font-size:24px;font-weight:500}.activity-actions button.is-active{color:#175bd7;background:#ecf3ff;border-color:#9dbdf0}.action-heading{margin:23px 3px 14px}.wide{width:100%}.end-run{margin-top:14px}.detail-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #eef2f7;font-size:12px}.detail-row:last-child{border:0}.detail-row span{color:var(--muted)}.detail-row b{text-align:right;max-width:65%}.notice{background:#edf4ff;border:1px solid #d2e1f7;border-radius:10px;padding:13px 14px;font-size:12px;color:#42628e;margin:14px 0}.notice.warn{background:#fff5df;border-color:#f0d697;color:#865f20}.error{color:#b13147;background:#fff0f3;padding:12px;border-radius:9px;font-size:13px;white-space:pre-wrap}label{display:block;font-size:12px;font-weight:650;color:#48617f;margin:13px 0 0}input:not([type=checkbox]),select,textarea{display:block;width:100%;min-width:0;background:#fff;border:1px solid #cad7e8;border-radius:9px;padding:12px;margin:6px 0 0;min-height:47px;font-size:16px;color:var(--ink)}textarea{min-height:80px;resize:vertical}input:focus,select:focus,textarea:focus{outline:3px solid #d8eeff;border-color:#3678de}.form-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:23px}.checkbox{display:flex;align-items:flex-start;gap:9px;line-height:1.6}.checkbox input{width:20px;height:20px;flex-shrink:0;margin-top:0}.form-title{margin-bottom:14px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:white;border-top:1px solid var(--line);padding:8px 8px max(9px,env(safe-area-inset-bottom));z-index:20}.bottom-nav[hidden]{display:none}.bottom-nav button{border:0;background:transparent;box-shadow:none;display:flex;flex-direction:column;gap:1px;font-size:10px;font-weight:650;color:#8493a8;min-height:48px;padding:4px}.bottom-nav span{font-size:22px}.bottom-nav button.active{color:#145bea;background:#eff5ff;border-radius:10px}footer{text-align:center;color:#8897ab;font-size:10px;padding:5px 16px 100px}#toast{position:fixed;bottom:95px;left:16px;right:16px;max-width:690px;margin:auto;background:#172c49;color:white;padding:14px 18px;border-radius:12px;font-size:13px;z-index:100;box-shadow:0 8px 24px #12274140}#toast[hidden]{display:none}.doc-row{padding:16px 0;border-top:1px solid var(--line)}.doc-row b{font-size:14px}.doc-row .actions{grid-template-columns:1fr 1fr;margin-top:12px}.doc-row button{font-size:11px;padding:10px 7px;min-height:40px}.doc-row p{font-size:11px;margin:5px 0;color:var(--muted)}.timeline{list-style:none;padding:0;margin:0}.timeline li{border-left:2px solid #d5e4f9;padding:0 0 16px 16px;font-size:12px}.timeline time{font-size:10px;color:var(--muted);display:block}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stat-grid div{padding:15px;border:1px solid var(--line);border-radius:10px}.stat-grid small{display:block;color:var(--muted);font-size:11px}.stat-grid strong{display:block;font-size:23px;margin-top:5px}canvas{display:block;width:100%;height:160px;border:1px dashed #abbfd9;border-radius:10px;background:white;touch-action:none;margin-top:10px}.instruction-copy{white-space:pre-wrap;font-size:13px;max-height:40vh;overflow:auto}.control-link{display:block;margin-top:12px}.subnav{display:flex;gap:8px;margin-bottom:18px}.subnav button{font-size:12px;min-height:38px;padding:8px 12px}@media(min-width:800px){.app-header{padding-left:calc((100vw - 728px)/2);padding-right:calc((100vw - 728px)/2)}.bottom-nav{max-width:760px;left:50%;transform:translateX(-50%);border:1px solid var(--line);border-radius:18px 18px 0 0}main{padding-top:30px}.card{padding:24px}.activity-actions button{min-height:105px}.hero{padding:29px}}@media(max-width:350px){main{padding:16px 10px}.card{padding:17px}.app-header{padding:14px 12px}.activity-actions{gap:7px}.activity-actions button{font-size:10px}.app-header strong{font-size:14px}}@media print{.app-header,#sync,.bottom-nav,footer{display:none}main{max-width:none}}
/* Office V2: same information hierarchy as the existing driver portal. */
.driver-day-heading{margin:0 2px 20px}.driver-day-heading h1{font-size:23px;line-height:1.35;margin:8px 0 14px}.driver-day-heading h1 span{white-space:normal}.driver-date{display:flex;align-items:center;justify-content:space-between;gap:14px}.driver-date strong{font-size:14px}.driver-date button{font-size:12px;padding:9px 12px;min-height:40px}.driver-status{background:#eef8f2;border-color:#c5e8d2}.driver-status-top{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.driver-status-top strong{font-size:24px;color:#23754d;letter-spacing:-.5px}.driver-status-top small{font-size:11px;color:#6b8276;margin-left:auto}.driver-status p{font-size:13px;font-weight:650;margin:12px 0 0}.driver-status p.help{font-size:11px;font-weight:500}.driving-overview{background:#f8fbfa;border-color:#dce9e2}.meter-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.meter-box{border:1px solid #dce6e3;border-radius:12px;background:white;padding:16px;min-width:0}.meter-box label{font-size:11px;color:#526b61;margin:0 0 9px;min-height:34px}.meter-box strong{display:block;font-size:30px;color:#26784f;letter-spacing:-1px;white-space:nowrap}.meter-box small{font-size:15px;color:#7d8d86;letter-spacing:-.3px}.meter-box progress,progress{display:block;width:100%;height:7px;border:0;border-radius:5px;overflow:hidden;background:#e6eee9;accent-color:#229c63;margin-top:10px}progress::-webkit-progress-bar{background:#e6eee9}progress::-webkit-progress-value{background:#229c63}progress::-moz-progress-bar{background:#229c63}.break-note{font-weight:700;color:#26754f;font-size:13px;margin:15px 0 10px}.counter-row{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin:8px 0}.counter-row b{text-align:right;font-variant-numeric:tabular-nums}.driving-overview .help:empty{display:none}.driver-controls{background:#f6f9ff}.control-heading h2{margin:0 0 4px}.control-heading p{margin:0 0 17px}.driver-control-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.driver-control-grid button{position:relative;display:grid;grid-template-columns:34px 1fr;gap:4px 9px;justify-content:start;align-content:center;text-align:left;min-height:105px;padding:15px 12px}.driver-control-grid button>span{grid-row:1/3;font-size:28px;align-self:center}.driver-control-grid button b{font-size:14px;line-height:1.35}.driver-control-grid button small{font-size:10px;font-weight:500;opacity:.85}.driver-control-grid button i{position:absolute;right:7px;top:5px;font-size:8px;letter-spacing:.8px;font-style:normal;padding:2px 5px;border-radius:5px;background:#ffffffc9;color:#203f6d}.driver-control-grid .control-drive{background:linear-gradient(#3c80fc,#185ce2);box-shadow:0 5px 0 #1649a5;color:#fff}.driver-control-grid .control-work{background:linear-gradient(#fff0c8,#f6d58a);border-color:#e6be65;box-shadow:0 5px 0 #d4b879;color:#805114}.driver-control-grid .control-pause{background:linear-gradient(#e9f8ef,#c9ebd5);border-color:#b7dcc5;box-shadow:0 5px 0 #a9cbb7;color:#276e47}.driver-control-grid .control-end{background:linear-gradient(#ffe7e9,#f5c9d0);border-color:#e7a6b2;box-shadow:0 5px 0 #cea4af;color:#9e3249}.driver-control-grid .is-active{outline:3px solid #9ab9fc;outline-offset:3px}.driver-control-grid button:active{transform:translateY(4px);box-shadow:0 1px 0 #b8c7dc}.end-day{background:#173050;border-color:#173050;box-shadow:0 4px 0 #0d1e36;margin-top:22px}.month-archive>details{border:1px solid #e1e8f2;border-radius:11px;margin-top:12px;overflow:hidden}.month-archive>details>summary{padding:14px 15px;font-size:14px;font-weight:750;background:#f5f8fd;cursor:pointer}.sheet-day{padding:15px;border-top:1px solid #e5ebf4}.sheet-day-head{display:flex;justify-content:space-between;gap:10px;align-items:start;font-size:12px}.sheet-badge{font-size:10px;border-radius:5px;background:#edf2f9;padding:3px 7px}.sheet-day-meta{display:grid;gap:5px;font-size:11px;color:#6a7e99;margin:9px 0}.sheet-buttons{grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.sheet-buttons button{font-size:11px;min-height:42px;padding:9px 8px}.sheet-error{font-size:11px;color:#a83c4f;margin:9px 0}.text-error{color:#ad3448}.day-graph{display:block;width:100%;height:auto;margin:14px 0;border:1px solid #e3e9f1;border-radius:8px;background:white}.current-document>details{font-size:12px;margin:15px 0}.current-document>details>summary{font-weight:650;cursor:pointer}.current-document .timeline{margin-top:15px}.month-archive .help{padding:0 12px}.current-document h2{margin-bottom:6px}#sync{position:sticky;top:0;z-index:30}
@media(min-width:800px){main{max-width:1000px}.app-header{padding-left:calc((100vw - 950px)/2);padding-right:calc((100vw - 950px)/2)}.driver-day-heading h1{font-size:27px}.driver-date strong{font-size:18px}.driver-control-grid button{padding:20px;min-height:110px}.driver-control-grid button b{font-size:17px}.meter-box label{min-height:0}.meter-box strong{font-size:36px}}
@media(max-width:480px){.meter-pair{grid-template-columns:repeat(2,minmax(0,1fr))}.meter-box label{min-height:0}.meter-box strong{font-size:33px}.driver-day-heading h1{font-size:20px}.driver-date{align-items:flex-start}.driver-date strong{font-size:13px}.driver-status-top small{margin-left:0;width:100%}.driver-status-top strong{font-size:22px}.driver-control-grid button{grid-template-columns:1fr;padding:19px 10px 14px;min-height:124px;gap:7px}.driver-control-grid button>span{grid-row:auto;font-size:24px}.driver-control-grid button b{font-size:13px}.driver-control-grid button small{font-size:10px}.sheet-day-head{flex-wrap:wrap}.sheet-day-head b{font-size:12px}.counter-row{font-size:12px}.sheet-buttons{grid-template-columns:1fr}}

.driving-overview[data-level="warn"],.driving-overview[data-level="pulse"]{border-color:#e9c889;background:#fffaf0}.driving-overview[data-level="critical"]{border-color:#e6a7b3;background:#fff5f6}.driving-overview[data-level="critical"] .break-note{color:#ac324b}
[hidden]{display:none!important}.driver-date button{flex-shrink:0;white-space:nowrap;min-width:94px}.meter-box{padding:13px}.meter-box strong{line-height:1.25}.meter-box label{margin-bottom:8px}

.driver-control-grid button>span svg{display:block;width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}

/* Fahrer UI V3: Office palette and compact, permanent meter pair. */
:root{--muted:#405570;--line:#c5d2e3;--bg:#e8eef6}
.app-header{background:#0b1730;color:#fff;border-bottom:3px solid #00b9e9}.app-header span{color:#d5e5fa}.app-header .icon-btn{background:#243c60;color:white;border-color:#506988}
.card{border-color:#bdcce0;box-shadow:0 4px 14px #1733540c}.eyebrow{color:#24518c}.help,footer{color:#405570}.driver-day-heading h1,.driver-date strong,h1,h2{color:#142c4e}.driver-status{background:#173354;border-color:#173354;color:white}.driver-status-top strong{color:#fff}.driver-status-top .eyebrow{color:#70ddff}.driver-status-top small,.driver-status p.help{color:#d7e7fb}
.driving-overview,.driver-controls{background:#f0f5fc;border-color:#b4c6df}.meter-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}.meter-box{display:flex;flex-direction:column;border-color:#b7cae2;border-top:3px solid #145bea;padding:12px;background:white}.meter-box label{color:#223f62;font-size:12px;line-height:1.35;font-weight:750;margin-bottom:10px;min-height:0}.meter-box strong{margin-top:auto;color:#163e7a;font-size:30px;letter-spacing:-.6px;white-space:normal;line-height:1.2;font-variant-numeric:tabular-nums}.meter-box strong>span{white-space:nowrap}.meter-box small{display:block;color:#405570;font-size:13px;letter-spacing:0;margin-top:3px}.meter-box progress{flex-shrink:0}.break-note{color:#235638}.counter-row{color:#203d62}.counter-row b{color:#142c4e}.secondary{color:#24466f;background:#e4edf9;border-color:#a5bddb;box-shadow:0 3px 0 #9cb2cf}
.driver-control-grid .control-drive{background:linear-gradient(#2469e8,#124cb8);color:white;border-color:#184997;box-shadow:0 5px 0 #0c347e}.driver-control-grid .control-work{background:linear-gradient(#aa640d,#804600);color:white;border-color:#743e00;box-shadow:0 5px 0 #603300}.driver-control-grid .control-pause{background:linear-gradient(#258056,#16633e);color:white;border-color:#145331;box-shadow:0 5px 0 #10442c}.driver-control-grid .control-end{background:linear-gradient(#b93b51,#93273c);color:white;border-color:#7b2033;box-shadow:0 5px 0 #641a29}.driver-control-grid button small{opacity:1;color:white}.driver-control-grid .is-active{outline:3px solid #145bea;outline-offset:3px}.notice{background:#e2edf9;border-color:#b1c6e0;color:#27466b}.bottom-nav{border-top:1px solid #a9bed8;box-shadow:0 -3px 14px #17335412}.bottom-nav button{color:#405570}.bottom-nav button.active{background:#163e7a;color:white}.sheet-day-meta{color:#405570}.sheet-badge{background:#dce8f8;color:#24466f}
@media(max-width:480px){.driving-overview{padding:14px}.meter-pair{gap:8px}.meter-box{padding:10px 9px}.meter-box label{font-size:11px}.meter-box strong{font-size:27px}.meter-box small{font-size:12px}.driver-control-grid button{min-height:110px;padding:17px 10px 12px}.driver-control-grid button b{font-size:13px}}
@media(max-width:350px){.meter-box strong{font-size:24px}.meter-box label{font-size:10px}.driver-control-grid button b{font-size:12px}}

/* V4: fixed-height app shell; only content scrolls, navigation stays in its own bottom row. */
@media screen{
html{height:100%;overflow:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{height:100%;height:100dvh;overflow:hidden;display:flex;flex-direction:column;font-size:16px;line-height:1.5}
.app-header{flex:0 0 auto;min-height:70px;padding-top:12px;padding-bottom:12px}.app-header strong{font-size:17px}.app-header span{font-size:13px}
#sync{position:relative;top:auto;flex:0 0 auto;font-size:14px;line-height:1.4;padding:9px 16px;z-index:10}#sync button{font-size:14px}
.app-scroll{flex:1 1 0;min-height:0;width:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scroll-padding:16px}
main{width:100%;padding-top:18px;padding-bottom:16px}footer{font-size:12px;padding:8px 16px 18px}
.bottom-nav{position:relative;inset:auto;transform:none;flex:0 0 auto;width:100%;max-width:none;margin:0;z-index:40;border-radius:0;padding:7px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
.bottom-nav button{font-size:13px;line-height:1.25;min-height:58px;padding:5px 3px;gap:3px;overflow-wrap:normal;transform:none}.bottom-nav button:active{transform:none}.bottom-nav span{font-size:24px;line-height:1.15}
h2{font-size:20px}.help,.muted,.notice,.detail-row,label,.timeline li,.sheet-day-meta,.sheet-error,.current-document>details{font-size:15px}.eyebrow{font-size:12px}.driver-date strong,.driver-date button{font-size:15px}.driver-status p{font-size:16px}.driver-status p.help,.driver-status-top small{font-size:14px}.meter-box label{font-size:14px;line-height:1.35}.meter-box strong{font-size:32px}.meter-box small{font-size:15px}.break-note{font-size:16px}.counter-row{font-size:15px;gap:8px;flex-wrap:wrap}.counter-row b{margin-left:auto}.driver-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.driver-control-grid button{min-width:0;grid-template-columns:1fr;padding:20px 12px 14px;gap:7px;min-height:130px}.driver-control-grid button>span{grid-row:auto}.driver-control-grid button b{font-size:16px;line-height:1.35;overflow-wrap:normal;hyphens:auto}.driver-control-grid button small{font-size:13px;line-height:1.4;overflow-wrap:normal}.driver-control-grid button i{font-size:10px}.sheet-day-head,.sheet-day-head b{font-size:15px}.sheet-badge,.timeline time{font-size:13px}.sheet-buttons button{font-size:14px}.sheet-buttons{grid-template-columns:1fr}.month-archive>details>summary{font-size:16px}.meter-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:480px){main{padding-left:12px;padding-right:12px}.card{padding:16px}.driving-overview{padding:12px}.meter-box{padding:10px 8px}.meter-box label{font-size:13px}.meter-box strong{font-size:30px}.meter-box small{font-size:14px}.driver-day-heading h1{font-size:22px}.driver-control-grid{gap:12px}.driver-control-grid button b{font-size:16px}.driver-control-grid button small{font-size:13px}.driver-date{gap:8px}.driver-date button{min-width:0}}
@media(max-width:350px){.meter-box label{font-size:12px}.meter-box strong{font-size:28px}.driver-control-grid button{padding-left:9px;padding-right:9px}.driver-control-grid button b{font-size:15px}.bottom-nav button{font-size:12px}}
}

/* Language control stays in header; native picker works without network. */
.app-language{display:flex;align-items:center;gap:4px;margin:0;flex:0 0 auto;color:white;font-size:16px}.app-language>span{color:#70ddff;margin:0;font-size:20px}.app-language select{width:64px;max-width:64px;min-height:40px;margin:0;padding:7px 3px;border:1px solid #7289ab;background:#243c60;color:white;font-size:14px}.app-language option{color:#17243c;background:white}.app-header>div{flex:1 1 auto}.app-header{gap:8px}.app-header img{flex-shrink:0}.app-header strong{overflow-wrap:normal}.rtl-language .counter-row b{margin-left:0;margin-right:auto}.rtl-language .meter-box strong{direction:ltr;text-align:right}.rtl-language .driver-control-grid button{text-align:right}
@media(max-width:350px){.app-header{padding-left:10px;padding-right:10px}.app-header strong{font-size:15px}.app-header img{width:36px;height:36px}.app-header span#company{font-size:12px}.app-language>span{display:none}.app-language select{width:58px;max-width:58px}}

/* Rolling 29-day documents; two navigation tabs, direct previews. */
.bottom-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.document-view{margin-top:16px}.document-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.document-actions button,.document-actions a{font-size:15px;padding:10px 8px;min-width:0}.document-day{border-top:2px solid #b8cbe3;padding-top:16px;margin-top:20px}.document-paper{background:white;border:1px solid #bdcce0;border-radius:10px;padding:13px;margin:12px 0;color:#17243c;overflow-wrap:anywhere}.document-paper h3{font-size:17px;margin:0 0 12px}.document-paper p{font-size:14px}.document-table{overflow-x:auto;max-width:100%}.document-table table{font-size:13px;width:100%;border-collapse:collapse}.document-table td,.document-table th{border-bottom:1px solid #d2deed;text-align:start;padding:8px 5px}.document-paper .day-graph{margin:12px 0}.doc-cache-state{font-size:14px;margin:14px 0}.document-view h2{font-size:19px}#packPreview{min-width:0}#backDocuments{margin-top:15px}

#controlPack{margin-top:12px}.document-actions a,.document-actions button{overflow-wrap:normal;hyphens:auto}

/* Fahrer UI V7: unified status header, second counters and modern control palette. */
.driver-status{background:linear-gradient(135deg,#152e50,#20466d);padding:20px;border-color:#294e74;box-shadow:0 8px 24px #152e5015}.driver-status .driver-day-heading{margin:0 0 20px;padding-bottom:17px;border-bottom:1px solid #ffffff29}.driver-status .driver-day-heading h1{color:#fff;font-size:21px;line-height:1.4;letter-spacing:-.35px;margin:0 0 14px;font-weight:750}.driver-status .driver-date strong{color:#fff;font-size:15px;line-height:1.5}.driver-status .driver-date{align-items:center;gap:12px}.driver-status #driverLogout{background:linear-gradient(#ffffff20,#ffffff0c);color:#fff;border:1px solid #ffffff60;box-shadow:0 3px 0 #0b203d;min-width:0;white-space:nowrap;font-size:14px;min-height:42px;padding:9px 12px}.driver-status-top{gap:12px}.driver-status-top strong{display:flex;align-items:center;gap:10px;font-size:24px;line-height:1.35;min-width:0}.driver-status-top .eyebrow{color:#8cdff5}.status-beacon{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;min-width:23px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px #ffffff10}.status-beacon>span{width:13px;height:13px;border-radius:50%;background:#16a65c;animation:status-breathe 1.8s ease-in-out infinite}.driver-status p,.driver-status p.help{color:#fff}.driver-status p.help{opacity:.88}
@keyframes status-breathe{0%,100%{transform:scale(.78);opacity:.72}50%{transform:scale(1);opacity:1;box-shadow:0 0 6px #20ba6a70}}
.meter-box strong>span{font-size:clamp(21px,5.5vw,32px);font-variant-numeric:tabular-nums;letter-spacing:-.8px;white-space:nowrap;direction:ltr;unicode-bidi:isolate;display:inline-block;line-height:1.3}.meter-box small{font-size:13px;font-variant-numeric:tabular-nums}#driveClock{color:#167343}#driveClock[data-warning="warn"],#driveClock[data-warning="pulse"]{color:#b5263c}#driveClock[data-warning="pulse"]{animation:drive-alert 1.2s ease-in-out infinite}#pauseClock{color:#185c88}
@keyframes drive-alert{0%,100%{opacity:1;text-shadow:0 0 0 transparent}50%{opacity:.45;text-shadow:0 0 9px #d52c4e44}}
.driver-control-grid{gap:15px}.driver-control-grid button{border-radius:15px;border-width:1px;transition:transform .12s,box-shadow .12s,filter .12s}.driver-control-grid .control-drive{background:linear-gradient(145deg,#267de3,#2155a6);border-color:#3475c5;box-shadow:0 5px 0 #153d78,inset 0 1px 0 #ffffff40,0 8px 14px #2155a61a}.driver-control-grid .control-work{background:linear-gradient(145deg,#6571d9,#4b4da9);border-color:#7780df;box-shadow:0 5px 0 #333672,inset 0 1px 0 #ffffff40,0 8px 14px #4b4da91a}.driver-control-grid .control-pause{background:linear-gradient(145deg,#168c91,#116a73);border-color:#2ba1a4;box-shadow:0 5px 0 #0b4c56,inset 0 1px 0 #ffffff40,0 8px 14px #116a731a}.driver-control-grid .control-end{background:linear-gradient(145deg,#d55a72,#ad3e58);border-color:#df7188;box-shadow:0 5px 0 #7d2e43,inset 0 1px 0 #ffffff40,0 8px 14px #ad3e581a}.driver-control-grid button b,.driver-control-grid button small,.driver-control-grid button>span{color:#fff}.driver-control-grid .is-active{outline:3px solid #39c9e2;outline-offset:3px}.driver-control-grid button i{background:#fff;color:#17385d;border:1px solid #ffffffa0;border-radius:6px;font-weight:800;font-size:10px}.driver-control-grid button:active{transform:translateY(4px);box-shadow:0 1px 0 #1d385b,inset 0 2px 5px #00000020;filter:brightness(.96)}.driver-controls .end-day{border-radius:13px;background:linear-gradient(145deg,#405a84,#243c61);border-color:#526d98;box-shadow:0 4px 0 #162c4a,inset 0 1px 0 #ffffff30;color:#fff}.driver-controls .end-day:active{transform:translateY(3px);box-shadow:0 1px 0 #162c4a}
@media(max-width:350px){.driver-status{padding:16px}.driver-status .driver-day-heading h1{font-size:19px}.driver-status .driver-date{flex-wrap:wrap}.driver-status .driver-date strong{font-size:14px}.driver-status-top strong{font-size:22px}.meter-box strong>span{font-size:21px;letter-spacing:-.8px}}
@media(prefers-reduced-motion:reduce){.status-beacon>span,#driveClock[data-warning="pulse"]{animation:none}}
.meter-box label{overflow-wrap:normal;hyphens:auto}

/* Fahrer UI V8: clear activity pulse and compact status details. */
.status-beacon{overflow:hidden}.status-beacon>span{display:block;flex:none;will-change:transform,opacity;animation:status-breathe-v8 1.5s ease-in-out infinite}
@keyframes status-breathe-v8{0%,100%{transform:scale(.5);opacity:.4}50%{transform:scale(1);opacity:1}}
.driver-status p.status-elapsed{margin-top:8px;font-size:15px;opacity:1;font-variant-numeric:tabular-nums}.driver-status p.status-vehicle{margin-top:9px}
@media(prefers-reduced-motion:reduce){.status-beacon>span{will-change:opacity;animation:status-breathe-soft-v8 2s ease-in-out infinite}}
@keyframes status-breathe-soft-v8{0%,100%{opacity:.65}50%{opacity:1}}

/* V9: original PDF pages and prominent foreground reminders. */
.pdf-zoom{display:flex;align-items:center;justify-content:center;gap:18px;position:sticky;top:0;z-index:2;padding:10px;background:#e8eff8;border-radius:12px}.pdf-zoom button{min-width:48px;font-size:23px;padding:6px 14px}.pdf-zoom output{font-size:16px;font-weight:750;color:#173354;min-width:54px;text-align:center}.pdf-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin-top:10px;direction:ltr}.pdf-pages{max-width:none}.pdf-page{margin-bottom:14px;background:#fff;border:1px solid #bcc9da;overflow:hidden}.pdf-page canvas{display:block;max-width:none!important;touch-action:pan-x pan-y pinch-zoom}.pdf-loading{font-size:14px}.document-view{padding:12px;min-width:0}
#driveClock[data-warning="pulse"]{animation:drive-size-alert 1.3s ease-in-out infinite;transform-origin:center;opacity:1;text-shadow:none}
@keyframes drive-size-alert{0%,100%{transform:scale(.9);opacity:1}50%{transform:scale(1.08);opacity:1}}
.break-alert-backdrop{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px;background:#07162db3}.break-alert-dialog{width:min(440px,100%);max-height:85dvh;overflow:auto;background:#fff;border:3px solid #cb344d;border-radius:22px;padding:26px 22px;box-shadow:0 18px 70px #0006;text-align:center;color:#102b4f}.break-alert-dialog h2{font-size:25px;line-height:1.25;margin:14px 0}.break-alert-dialog p{font-size:20px;line-height:1.5;font-weight:650}.break-alert-dialog button{width:100%;min-height:52px;font-size:18px}.break-alert-icon{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:50%;background:#c42c47;color:#fff;font-weight:850;font-size:36px}
@media(prefers-reduced-motion:reduce){#driveClock[data-warning="pulse"]{animation:none;transform:none}}
