/* 2S Office visual layer. Screen rules do not replace the original print layout. */
:root{--o-navy:#0b1730;--o-blue:#145bea;--o-cyan:#00b9e9;--o-bg:#f5f7fb;--o-ink:#17243c;--o-muted:#67758a;--o-border:#e5eaf2;--o-sidebar:238px}
.office-sidebar,.office-nav-shade,.office-page-heading,.office-top-context{display:none}
@media screen{
 html{background:var(--o-bg);scroll-padding-top:100px}
 body,body.login-mode{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--o-bg);color:var(--o-ink);font-size:14px;line-height:1.55;min-height:100vh}
 body.login-mode:before,body.login-mode:after{display:none}
 body .app{max-width:none;margin:0 0 0 var(--o-sidebar);padding:0;min-height:100vh}
 body .topbar{position:sticky;top:0;z-index:40;background:#fff;color:var(--o-ink);border:0;border-bottom:1px solid var(--o-border);border-radius:0;box-shadow:none;padding:18px 32px;min-height:74px;margin:0;gap:18px;display:flex;justify-content:space-between;align-items:center}
 body .app>main{padding:30px 32px 12px;max-width:1700px;margin:auto;display:block;width:100%}
 body .office-original-header{display:none}
 .office-top-context{display:flex;align-items:center;gap:12px;min-width:0}
 .office-breadcrumb{display:flex;align-items:center;gap:9px;font-size:12px;color:#7a899f;white-space:nowrap}
 .office-breadcrumb strong{font-weight:600;color:#3d5476}
 .office-breadcrumb svg{width:13px;height:13px;color:#8c9ab0}
 .office-sidebar{display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:var(--o-sidebar);padding:27px 16px;background:var(--o-navy);color:#adbed7;z-index:90}
 .office-brand{display:flex;align-items:center;gap:10px;padding:0 5px 30px}
 .office-brand img{width:44px;height:44px;border-radius:10px;object-fit:contain;background:#fff}
 .office-brand strong{display:block;color:#fff;font-size:15px;letter-spacing:-.1px}
 .office-brand span{display:block;color:#9bb0d0;font-size:10px;margin-top:2px}
 .office-workspace{display:flex;align-items:center;gap:10px;border:1px solid #ffffff12;border-radius:8px;padding:12px;margin-bottom:29px;font-size:11px;color:#b7c8e2}
 .office-workspace svg{width:17px;height:17px;color:#7ba8ef}
 .office-nav-label{color:#728ba9;font-size:9px;letter-spacing:1.5px;font-weight:700;padding:0 12px;margin-bottom:12px}
 body .office-nav-item{display:flex;align-items:center;gap:11px;text-align:left;min-height:44px;width:100%;margin:0 0 6px;padding:12px 13px;background:transparent;color:#a9bddb;border:0;border-radius:8px;box-shadow:none;font-size:12px;font-weight:500;line-height:1.4;filter:none}
 body .office-nav-item:hover{background:#ffffff08;color:#fff}
 body .office-nav-item.active{background:#1d3970;color:#fff;box-shadow:inset 3px 0 var(--o-cyan)}
 .office-nav-item svg{width:18px;height:18px;flex-shrink:0}
 body .office-nav-item:disabled{opacity:.45;cursor:not-allowed}
 body .office-nav-item[hidden]{display:none}
 .office-sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff12;padding:20px 10px 0;font-size:11px}
 .office-sidebar-bottom strong{font-size:11px;color:#d2def1;font-weight:600}
 .office-brand-dot{display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:#29ad8b}
 .office-sidebar-bottom p{font-size:10px;color:#8ea5c7;margin:8px 0 2px}
 .office-sidebar-bottom small{font-size:9px;color:#6f87a8}
 .office-page-heading{display:block;margin:0 0 26px}
 .office-eyebrow{color:#56769e;font-size:10px;letter-spacing:1.7px;font-weight:700;margin-bottom:9px}
 .office-page-heading h1{font-size:29px;line-height:1.25;letter-spacing:-.8px;font-weight:700;margin:0 0 8px;color:var(--o-ink)}
 .office-page-heading p{font-size:13px;color:var(--o-muted);margin:0}
 body .card{border:1px solid var(--o-border);border-radius:12px;box-shadow:0 10px 35px #10234305;padding:24px;background:white;margin-bottom:20px}
 body .card>h2,body .card>h3{color:var(--o-ink);letter-spacing:-.3px;margin-top:0}
 body h2{font-size:19px;font-weight:650;line-height:1.35}
 body h3{font-size:16px;font-weight:650}
 body h4{font-size:14px}
 body p{line-height:1.65}
 body label{font-weight:600;font-size:12px;color:#4a5b73;margin:14px 0 7px;line-height:1.5}
 body input,body select,body textarea{font:inherit;font-size:14px;color:var(--o-ink);border:1px solid #dce3ed;border-radius:8px;background:#fff;padding:11px 12px;min-height:43px;margin-top:7px;box-shadow:none}
 body input::placeholder{color:#99a5b5;font-weight:400}
 body input:focus,body select:focus,body textarea:focus{outline:none;border-color:var(--o-blue);box-shadow:0 0 0 3px #145bea14}
 body input[type=checkbox],body input[type=radio]{min-height:0;width:16px;height:16px;accent-color:var(--o-blue);vertical-align:middle;margin:0 7px 0 0;padding:0}
 body button{background:var(--o-blue);color:white;border:1px solid var(--o-blue);padding:10px 15px;border-radius:8px;min-height:40px;font-size:13px;font-weight:600;box-shadow:none;line-height:1.4;margin:3px 3px 3px 0;transition:background .15s,border-color .15s}
 body button:hover{filter:none;background:#104bc3;border-color:#104bc3}
 body button:disabled{opacity:.5;cursor:not-allowed}
 body button.ghost{background:white;border:1px solid #dce3ed;color:#415573;box-shadow:none}
 body button.ghost:hover{background:#f4f7fc;border-color:#bac9de}
 body button.danger{background:#fdeef0;border:1px solid #f6dce1;color:#b23849;box-shadow:none}
 body button.danger:hover{background:#fbe1e5;border-color:#ecbcc6}
 body button.small{font-size:11px;padding:7px 10px;min-height:32px}
 body button.primary-wide{font-size:14px;min-height:46px;border-radius:8px;margin-top:20px}
 body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #00b9e980;outline-offset:3px}
 body .pill{border:1px solid #dce3ed;border-radius:7px;background:#fafcff;padding:10px 13px;min-height:42px;display:flex;align-items:center;font-size:13px;font-weight:500;color:#536984;margin:0}
 body .pill:has(input:checked){background:#edf3ff;border-color:#b9d0fc;color:#145bea}
 body .radio-grid{gap:7px;margin-top:7px;align-items:center}
 body .grid{gap:20px}
 body .customer-grid{grid-template-columns:minmax(160px,1fr) minmax(270px,1.8fr) repeat(3,minmax(110px,.65fr));gap:15px}
 body .hint{color:var(--o-muted);font-size:12px;line-height:1.7}
 body .warning,body .route-error{color:#b23849;font-size:12px;font-weight:600}
 body .list-item{border:1px solid var(--o-border);border-radius:9px;padding:15px;margin-bottom:10px;align-items:center;background:white}
 body .list-item:hover{background:#fafcff}
 body .table-wrap{overflow:auto;border:1px solid var(--o-border);border-radius:9px;background:#fff}
 body .table{border-collapse:collapse;width:100%;font-size:13px}
 body .table th{padding:13px 15px;background:#f9fbfd;border-bottom:1px solid var(--o-border);font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:#7e8ca1;font-weight:600}
 body .table td{padding:14px 15px;border-bottom:1px solid #edf0f5;line-height:1.5}
 body .table tbody tr:last-child td{border-bottom:0}
 body .table tbody tr:hover{background:#f8fbff}
 body .section-title{margin-bottom:18px;align-items:center;gap:15px}
 body .section-title h2{margin:0}
 body .section-title p{margin:8px 0 0;color:var(--o-muted);font-size:13px}
 body .status-badge{display:inline-flex;align-items:center;gap:6px;color:#536c91;background:#f2f6fd;border:1px solid #e3ebf7;padding:6px 10px;min-height:30px;font-size:10px;font-weight:600;border-radius:6px;box-shadow:none}
 body .top-actions{gap:10px;align-items:center;flex-wrap:wrap}
 body .top-actions #homeNavBtn,body .top-actions #customerDbNavBtn{display:none}
 body #logoutBtn{font-size:12px;min-height:35px;padding:7px 12px}
 body .routes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,430px),1fr));gap:22px;align-items:start}
 body .route-card{border:1px solid var(--o-border);border-top:3px solid var(--o-blue);border-radius:12px;padding:22px;overflow:hidden}
 body .mai-route-titlebar{border:0;border-bottom:1px solid var(--o-border);padding:0 0 15px;margin:0 0 17px;display:flex;justify-content:space-between;gap:10px;align-items:center;background:transparent;border-radius:0}
 body .mai-route-title{font-size:19px;font-weight:650;color:var(--o-ink);letter-spacing:-.3px}
 body .mai-route-date{font-size:11px;color:var(--o-muted);background:#f3f6fb;padding:5px 8px;border-radius:5px;white-space:nowrap}
 body .route-header{gap:10px}
 body .mai-route-identity-editor{display:block}
 body .mai-route-identity-label{font-size:11px;color:#788aa3;font-weight:600;margin-bottom:5px}
 body .mai-route-identity-control input{margin-top:0}
 body .summary{border:1px solid var(--o-border);border-radius:9px;padding:0;background:white;margin:17px 0;box-shadow:none}
 body .mai-route-totals-grid{background:transparent;padding:0;border-radius:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
 body .mai-route-total-item{padding:13px 14px;border-bottom:1px solid #edf0f5}
 body .mai-route-total-item:nth-child(odd){border-right:1px solid #edf0f5}
 body .mai-route-total-item:nth-last-child(-n+2){border-bottom:0}
 body .mai-route-total-item small{display:block;font-size:10px;color:#7c8da5;margin-bottom:5px;font-weight:500}
 body .mai-route-total-item b{font-size:20px;letter-spacing:-.5px;color:#253e65}
 body .mai-route-total-item b.red{color:#b23849}
 body .stop{background:white;border:1px solid var(--o-border);border-radius:9px;padding:15px;margin:11px 0;font-size:12px;color:#62758f}
 body .stop strong{color:var(--o-ink);font-size:13px;margin-bottom:5px;font-weight:650}
 body .stop-address{color:#7988a0;font-size:12px;line-height:1.65;margin:5px 0}
 body .start-station,body .end-station{background:#f7faff;border-color:#e3ebf8}
 body .start-station strong,body .end-station strong{font-size:10px;color:#6981a4;text-transform:uppercase;letter-spacing:.6px}
 body .stop-actions,body .route-actions{gap:5px;margin-top:12px}
 body .stop-actions button:not(.danger),body .route-actions button:not(.danger){background:#edf3ff;border:1px solid #e1eaff;color:#2c5bb1}
 body .stop-actions button:not(.danger):hover,body .route-actions button:not(.danger):hover{background:#e0ebff}
 body .pause{background:#fffbef;border-style:dashed;color:#8f7028}
 body .mai-route-disclaimer{font-size:10px;color:#8b97a8}
 body .modal{background:#0c183b66;backdrop-filter:blur(3px);z-index:1000;padding:24px}
 body .modal-content{border:1px solid var(--o-border);border-radius:14px;padding:27px;box-shadow:0 24px 80px #0010342b}
 body #mapCanvas{border:1px solid var(--o-border);border-radius:10px}
 body .map-placeholder{border-radius:9px;border-color:#cddbef;background:#f4f8ff;color:#6f84a5;font-size:13px}
 body #routeHistoryPanel{scroll-margin-top:95px}
 body #maiProductFooter{max-width:none;margin:12px 32px 0;padding:22px 10px;border-top:1px solid var(--o-border);color:#8a98ad;font-size:10px}
 body #maiProductFooter .mai-footer-links button{font-size:10px;color:#6e84a7;font-weight:500}
 body #maiProductFooter .mai-footer-note{font-size:10px;color:#91a0b4}
 body .admin-security-card{margin-top:20px}
 body .recovery-codes-box{background:#f8faff;border:1px solid var(--o-border);border-radius:9px;padding:18px}
 body .admin-security-card code{background:#f3f6fb;border-radius:6px;font-size:12px}
 body details{font-size:12px;color:#5f7697}
 .office-menu{display:none}
 /* Login: the same navy/white split as Office, keeping every original field. */
 body.login-mode .office-sidebar,body.login-mode .office-top-context,body.login-mode .office-page-heading{display:none}
 body.login-mode .app{margin:0;max-width:none;padding:40px 24px;min-height:100vh;display:flex;flex-direction:column}
 body.login-mode .app>main{display:grid;place-items:center;padding:0;flex:1}
 body.login-mode .topbar{display:none}
 body .login-shell{display:grid;grid-template-columns:.9fr 1.1fr;width:min(940px,100%);border:1px solid var(--o-border);border-radius:15px;box-shadow:0 20px 70px #1023430e;margin:30px auto;overflow:hidden;background:#fff}
 body .login-brand{padding:45px 34px;background:var(--o-navy);display:flex;align-items:stretch}
 body .login-brand:before{width:300px;height:300px;right:-170px;top:auto;bottom:-150px;border-color:#ffffff0c}
 body .login-brand-main{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:30px;max-width:100%}
 body .mai-logo{width:80px;height:80px;min-width:80px;max-width:80px;border-radius:15px;border:1px solid #ffffff20;box-shadow:none}
 body .mai-logo img{border-radius:14px}
 body .login-brand-copy h1{font-size:27px;font-weight:650;line-height:1.2;letter-spacing:-.5px;color:#fff}
 body .login-product{font-size:22px;font-weight:400;color:#c9daf4;margin-top:8px}
 body .login-brand-copy p{font-size:13px;line-height:1.85;color:#91aacf;margin-top:18px;max-width:260px}
 body .route-mark{display:none}
 body .login-card-body{padding:42px 36px;background:white}
 body .login-card-body h2{font-size:25px;letter-spacing:-.6px;font-weight:650;color:var(--o-ink);margin-bottom:9px}
 body .login-intro{font-size:13px;color:var(--o-muted);line-height:1.8;margin-bottom:24px}
 body .login-field{font-size:12px;font-weight:600;margin-top:17px}
 body .input-wrap input{height:47px;min-height:47px;font-size:14px;border:1px solid #dce3ed;border-radius:8px;padding-left:43px;margin-top:0;background:white;box-shadow:none}
 body .field-icon{left:14px;width:19px;height:19px;opacity:.65}
 body .user-icon:before{width:7px;height:7px;left:5px}
 body .user-icon:after{width:15px;height:8px;left:1px}
 body .lock-icon:before{width:14px;height:12px;left:1px}
 body .lock-icon:after{width:7px;height:9px;left:5px}
 body .login-submit{background:var(--o-blue);border:1px solid var(--o-blue);height:46px;min-height:46px;border-radius:8px;font-size:14px;box-shadow:none;margin:24px 0 0;letter-spacing:0}
 body .login-submit:hover{background:#104bc3;transform:none}
 body .login-arrow{font-size:18px;vertical-align:0;margin-right:6px}
 body button.admin-recovery-link{border:0;background:transparent!important;color:var(--o-blue)!important;font-size:12px;margin-top:13px;min-height:33px}
 body.login-mode #maiProductFooter{margin:0 auto;max-width:940px;border:0;padding:12px}
 @media(min-width:1650px){body .app>main{padding-top:38px}body .customer-grid{gap:18px}}
 @media(max-width:1300px){body .customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.office-brand strong{font-size:14px}body .topbar{padding:17px 25px}body .app>main{padding:27px 25px}}
 @media(max-width:1050px){:root{--o-sidebar:205px}.office-sidebar{padding:25px 12px}.office-brand{gap:8px;padding-bottom:28px}.office-brand img{width:38px;height:38px}.office-brand strong{font-size:12px}.office-brand span{font-size:9px}body .office-nav-item{padding:11px 10px;font-size:11px}.office-breadcrumb{font-size:11px;gap:6px}.office-breadcrumb svg{width:11px}body .routes-grid{grid-template-columns:1fr}body .topbar{gap:10px}.office-page-heading h1{font-size:26px}.office-workspace{font-size:10px;padding:10px}.office-sidebar-bottom{padding-left:5px;padding-right:5px}}
 @media(max-width:800px){:root{--o-sidebar:0px}.office-sidebar{width:238px;transform:translateX(-100%);transition:transform .2s}.office-nav-open .office-sidebar{transform:translateX(0)}.office-sidebar .office-brand strong{font-size:14px}.office-sidebar .office-nav-item{font-size:12px}.office-menu{display:grid;place-items:center;min-height:34px;width:34px;background:transparent!important;border:1px solid var(--o-border)!important;color:#516889!important;margin:0;padding:7px;flex-shrink:0}.office-menu svg{width:18px;height:18px}.office-nav-open .office-nav-shade{display:block;position:fixed;inset:0;background:#0c183b66;z-index:80;margin:0;border:0;border-radius:0;width:100%;height:100%}.office-breadcrumb{font-size:10px}.office-breadcrumb strong{display:none}body .topbar{padding:13px 16px;min-height:64px}body .top-actions{gap:5px}body .status-badge{font-size:9px;max-width:165px;padding:5px 7px}body #logoutBtn{font-size:11px;padding:6px 9px;min-height:31px}body .app>main{padding:24px 16px 8px}.office-page-heading h1{font-size:25px}.office-page-heading p{font-size:12px}.office-page-heading{margin-bottom:23px}body .card{padding:20px}body .grid.two,body .customer-grid{grid-template-columns:1fr}body .route-card{padding:19px}body .section-title{flex-wrap:wrap;gap:12px}body .section-title h2{font-size:18px}body .modal{padding:12px}body .modal-content{padding:21px;border-radius:12px}body #maiProductFooter{margin:12px 16px 0;padding:20px 0}body.login-mode .app{padding:20px 16px}body .login-shell{grid-template-columns:1fr;max-width:540px;margin:15px auto}body .login-brand{padding:25px}body .login-brand-main{flex-direction:row;align-items:center;gap:18px}body .mai-logo{width:65px;height:65px;min-width:65px;max-width:65px}body .login-brand-copy h1{font-size:22px}body .login-product{font-size:19px;margin-top:3px}body .login-brand-copy p{display:none}body .login-card-body{padding:29px 25px}body .login-intro{font-size:13px}body .login-card-body h2{font-size:24px}body .mai-route-title{font-size:17px}body .mai-route-date{font-size:10px}}
 @media(prefers-reduced-motion:reduce){.office-sidebar{transition:none}body button{transition:none}}
}
@media print{.office-sidebar,.office-nav-shade,.office-top-context,.office-page-heading{display:none!important}}

@media screen{
 .company-feature-options{margin:16px 0;padding:18px;border:1px solid #d6e1ef;border-radius:10px;background:#f7faff}
 .company-feature-options h4{margin:22px 0 8px}
 .standard-company-fields{display:grid;gap:10px;margin-top:14px}
 .standard-company-fields .pill{justify-content:flex-start}
 .company-field-editor{display:flex;gap:12px;align-items:flex-end;margin:14px 0}
 .company-field-editor label{flex:1;min-width:0}
 body .company-field-editor input{margin-top:5px}
 body .company-field-editor button{flex-shrink:0;margin-bottom:5px}
 .company-custom-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
 .company-custom-fields[hidden]{display:none!important}
 .company-custom-fields label{min-width:0}
 body #customerModal{overflow-y:auto;align-items:flex-start}
 body #customerModal .modal-content{margin:auto;flex-shrink:0}
 @media(min-width:801px){body #adminView>.grid.two>.card:nth-child(2){align-self:start;position:sticky;top:100px;max-height:calc(100vh - 120px);overflow:auto}}
 @media(max-width:600px){.company-custom-fields{grid-template-columns:1fr}.company-field-editor{gap:8px;flex-wrap:wrap}.company-field-editor label{min-width:170px}}
}
/* Functional forms: shared customer suggestions and numbered customer list. */
@media screen{
 .numbered-customers{padding:0;margin:16px 0;list-style:none}
 body .customer-db-row{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap}
 .customer-db-number{min-width:26px;color:#345987;font-weight:750;padding-top:4px}
 .customer-db-details{min-width:150px;overflow-wrap:anywhere}
 .customer-name-field{position:relative;min-width:0}
 .customer-name-field>label{display:block}
 body .customer-suggestions{position:absolute;left:0;top:100%;width:max(100%,320px);max-width:min(480px,85vw);max-height:320px;overflow:auto;background:#fff;border:1px solid #a9c0df;border-radius:10px;padding:8px;box-shadow:0 12px 30px #102d5030;z-index:700}
 body .customer-suggestions[hidden]{display:none!important}
 body .customer-suggestions .hint{margin:4px 8px 9px;font-size:13px}
 body .customer-suggestions button.autocomplete-customer{display:flex;flex-direction:column;gap:4px;text-align:left;width:100%;margin:0;padding:12px;background:#fff;color:#17385f;border:0;border-bottom:1px solid #dce5f1;border-radius:5px;box-shadow:none;transform:none;text-shadow:none;font-size:14px}
 body .customer-suggestions button.autocomplete-customer:hover,body .customer-suggestions button.autocomplete-customer:active{background:#eaf2ff;box-shadow:none;transform:none;filter:none}
 body .customer-suggestions button span{font-size:13px;color:#425d7f}
 body #endAddressModal .modal-content{max-width:650px;width:100%}
 body #endAddressStatus{min-height:30px}
}
@media print{.customer-suggestions{display:none!important}}
/* 2S readability + tactile buttons. Screen-only: existing print styles stay intact. */
@media screen{
 :root{--o-muted:#4c5e76}
 body{font-size:15px;color:#14243c}
 body .office-page-heading h1{font-size:31px;font-weight:750;letter-spacing:-.7px}
 body .office-page-heading p{font-size:15px;color:#475a73;line-height:1.7}
 body .office-eyebrow{font-size:12px;color:#415f8c;letter-spacing:1.3px}
 body h2{font-size:22px;font-weight:700}
 body h3{font-size:18px;font-weight:700}
 body h4{font-size:16px}
 body .card>p,body .section-title p{font-size:15px;color:#41536c}
 body label{font-size:14px;font-weight:650;color:#30445f;line-height:1.6}
 body input,body select,body textarea{font-size:16px;min-height:47px;color:#172d4d;border-color:#b8c7dc;line-height:1.5}
 body input::placeholder{color:#63758e;opacity:1}
 body .hint{font-size:14px;color:#475b78;line-height:1.8}
 body .warning,body .route-error{font-size:14px;color:#a4263c;font-weight:700}
 body .table th{font-size:12px;color:#465c7b;font-weight:700;letter-spacing:.35px;padding:14px 16px}
 body .table td{font-size:14px;color:#213653;line-height:1.6;padding:15px 16px}
 body .table td .hint{font-size:13px}
 body .stop{font-size:15px;color:#3e5472;padding:18px;border-color:#d8e1ed}
 body .stop strong{font-size:16px;font-weight:700;line-height:1.6;color:#122d51}
 body .stop-address{font-size:14px;color:#425b7e;line-height:1.8;margin:7px 0}
 body .start-station strong,body .end-station strong{font-size:12px;color:#47658d;font-weight:750;letter-spacing:.5px}
 body .mai-route-title{font-size:22px;font-weight:750;color:#142e50}
 body .mai-route-date{font-size:13px;color:#3c5374;font-weight:650;background:#edf3fc;border:1px solid #dce6f5}
 body .mai-route-identity-label{font-size:13px;color:#405979;font-weight:650}
 body .mai-route-total-item small{font-size:13px;color:#4a6080;font-weight:600}
 body .mai-route-total-item b{font-size:24px;color:#15355d;font-weight:750;line-height:1.4}
 body .mai-route-disclaimer{font-size:12px;color:#516681}
 body .office-breadcrumb{font-size:13px;color:#526985}
 body .office-breadcrumb strong{color:#29466e;font-weight:700}
 body .status-badge{font-size:12px;color:#345987;border-color:#d0def2;padding:7px 11px}
 body .office-brand strong{font-size:15px}
 body .office-brand span{font-size:11px;color:#b5c8e2}
 body .office-nav-label{font-size:11px;color:#91a9cb;letter-spacing:1.2px}
 body .office-workspace{font-size:13px;color:#c5d7ef;border-color:#ffffff20}
 body .office-sidebar-bottom strong{font-size:12px}
 body .office-sidebar-bottom p{font-size:11px;color:#a8bdd9}
 body .office-sidebar-bottom small{font-size:10px;color:#9aafcd}
 body .office-nav-item{font-size:14px;min-height:48px;color:#c4d4ec;font-weight:600;padding:13px 12px;transition:background .14s,box-shadow .14s}
 body .office-nav-item:hover{background:#172d50;color:#fff}
 body .office-nav-item.active{background:linear-gradient(180deg,#244981,#1a365f);border:1px solid #35588b;box-shadow:inset 3px 0 #00c6ed,inset 0 1px 0 #ffffff16,0 2px 4px #00000012;color:white;padding-left:11px}
 body .office-nav-item:active{background:#142b4d;box-shadow:inset 3px 0 #00c6ed,inset 0 2px 5px #00000035;transform:none}
 body .office-nav-item:disabled{opacity:.65;background:transparent;box-shadow:none;cursor:not-allowed}
 body .pill{font-size:14px;font-weight:600;color:#3c5372;border-color:#c6d3e4;min-height:46px}
 body .pill:has(input:checked){background:#e6efff;border-color:#80a9ef;color:#164999;box-shadow:inset 0 1px 3px #1d4f9914}
 body .pill input[type=number]{max-width:120px}
 body input[type=radio],body input[type=checkbox]{width:18px;height:18px;min-height:0}

 /* Raised primary button; active state collapses the lower edge. */
 body button:where(:not(.office-nav-item):not(.office-menu):not(.office-nav-shade):not(.admin-recovery-link)){
  position:relative;min-height:46px;padding:11px 17px;margin:4px 5px 7px 0;border:1px solid #1750b6;border-bottom-color:#0d3c91;border-radius:9px;background:linear-gradient(180deg,#347cf5 0%,#1b64df 50%,#1252c9 100%);color:#fff;font-size:15px;font-weight:650;line-height:1.45;letter-spacing:.05px;text-shadow:0 1px 1px #07347540;
  box-shadow:0 4px 0 #0c3c91,0 6px 10px #183f7d20,inset 0 1px 0 #ffffff45;transform:translateY(0);transition:transform 90ms ease,box-shadow 90ms ease,filter 100ms ease;
 }
 body button:where(:not(.office-nav-item):not(.office-menu):not(.office-nav-shade):not(.admin-recovery-link)):not(:disabled):hover{
  filter:brightness(1.05);transform:translateY(-1px);box-shadow:0 5px 0 #0c3c91,0 8px 13px #183f7d28,inset 0 1px 0 #ffffff55;
 }
 body button:where(:not(.office-nav-item):not(.office-menu):not(.office-nav-shade):not(.admin-recovery-link)):not(:disabled):active{
  filter:brightness(.97);transform:translateY(3px);box-shadow:0 1px 0 #0c3c91,0 2px 3px #183f7d18,inset 0 2px 5px #092e8b35;
 }
 /* Secondary: strong blue lettering on a pale raised surface. */
 body button.ghost:not(.office-menu):not(.admin-recovery-link),body .stop-actions button:not(.danger),body .route-actions button:not(.danger){
  background:linear-gradient(180deg,#ffffff 0%,#eff5ff 100%);color:#174d99;border:1px solid #bdcfe9;border-bottom-color:#9cb3d3;text-shadow:0 1px 0 #fff;box-shadow:0 3px 0 #a8bddb,0 5px 8px #23457112,inset 0 1px 0 #ffffff;min-height:40px;font-size:13px;font-weight:700;padding:9px 12px;
 }
 body button.ghost:not(.office-menu):not(.admin-recovery-link):not(:disabled):hover,body .stop-actions button:not(.danger):not(:disabled):hover,body .route-actions button:not(.danger):not(:disabled):hover{
  background:linear-gradient(180deg,#ffffff,#e5efff);border-color:#8faedd;filter:none;box-shadow:0 4px 0 #9fb6d7,0 6px 10px #23457120,inset 0 1px 0 white;transform:translateY(-1px);
 }
 body button.ghost:not(.office-menu):not(.admin-recovery-link):not(:disabled):active,body .stop-actions button:not(.danger):not(:disabled):active,body .route-actions button:not(.danger):not(:disabled):active{
  background:linear-gradient(180deg,#dae7fa,#eef5ff);filter:none;box-shadow:0 1px 0 #9cb3d3,inset 0 2px 4px #42649525;transform:translateY(2px);
 }
 /* Destructive actions remain visually distinct. */
 body button.danger{
  background:linear-gradient(180deg,#fff6f7,#fbe1e6);color:#a5213a;border:1px solid #e5a9b7;border-bottom-color:#d68c9e;text-shadow:0 1px 0 #fff;font-size:13px;font-weight:700;min-height:40px;padding:9px 12px;box-shadow:0 3px 0 #d99baa,0 5px 8px #8c233514,inset 0 1px 0 #fff;
 }
 body button.danger:not(:disabled):hover{background:linear-gradient(180deg,#fff0f3,#fad3dd);filter:none;box-shadow:0 4px 0 #d08a9b,0 6px 10px #8c233520,inset 0 1px 0 #fff;transform:translateY(-1px)}
 body button.danger:not(:disabled):active{background:#f6d0da;filter:none;box-shadow:0 1px 0 #c98295,inset 0 2px 4px #91253e25;transform:translateY(2px)}
 body button.small{font-size:13px;min-height:39px;padding:9px 12px}
 body button.primary-wide{font-size:16px;min-height:49px}
 body #logoutBtn{font-size:13px;min-height:38px;padding:8px 12px}
 body .stop-actions,body .route-actions{gap:7px;row-gap:8px;margin-top:16px;padding-bottom:3px}
 body .login-card-body h2{font-size:27px}
 body .login-intro{font-size:15px;color:#465a75}
 body .login-field{font-size:14px;color:#30445f}
 body .input-wrap input{font-size:16px;height:49px}
 body .login-submit{height:auto;min-height:49px;font-size:16px;background:linear-gradient(180deg,#347cf5,#1252c9);box-shadow:0 4px 0 #0c3c91,0 6px 10px #183f7d20,inset 0 1px 0 #ffffff45}body .login-submit:not(:disabled):hover{transform:translateY(-1px);background:linear-gradient(180deg,#347cf5,#1252c9);box-shadow:0 5px 0 #0c3c91,0 8px 13px #183f7d28,inset 0 1px 0 #ffffff55}body .login-submit:not(:disabled):active{transform:translateY(3px);box-shadow:0 1px 0 #0c3c91,inset 0 2px 5px #092e8b35}
 body button.admin-recovery-link{font-size:14px;font-weight:650;color:#1c529d!important}
 body button:where(:not(.office-nav-item):not(.office-menu):not(.office-nav-shade):not(.admin-recovery-link)):disabled,body .stop-actions button:disabled,body .route-actions button:disabled,body button.ghost:disabled,body button.danger:disabled{opacity:1;background:#e3e9f1;color:#64758a;border-color:#c6d0dd;box-shadow:none;text-shadow:none;transform:none;filter:none;cursor:not-allowed}
 body #maiProductFooter button{background:transparent;border:0;min-height:28px;padding:3px 6px;margin:0;box-shadow:none;text-shadow:none;transform:none;filter:none;font-size:12px;color:#456183}
 body #maiProductFooter button:hover,body #maiProductFooter button:active{box-shadow:none;transform:none;filter:none;background:transparent;text-decoration:underline}
 body #maiProductFooter,body #maiProductFooter .mai-footer-note{font-size:11px;color:#576e8c}
 body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #0089c9;outline-offset:4px}
 @media(max-width:1050px){body .office-nav-item{font-size:13px}body .office-brand strong{font-size:13px}body .office-brand span{font-size:10px}.office-page-heading h1{font-size:28px}}
 @media(max-width:800px){body .office-page-heading h1{font-size:27px}body .office-page-heading p{font-size:14px}body .office-sidebar .office-nav-item{font-size:14px}body .office-brand strong{font-size:14px}body .office-breadcrumb{font-size:11px}body .status-badge{font-size:10px}body .card{padding:20px}body .stop{padding:16px}body .stop strong{font-size:15px}body .stop-address{font-size:14px}body .mai-route-total-item small{font-size:12px}body .mai-route-total-item b{font-size:22px}body .topbar{flex-wrap:wrap;gap:8px}body .top-actions{margin-top:0}}
 @media(prefers-reduced-motion:reduce){body button{transition:none!important}body button:not(:disabled):hover{transform:none}}
}

/* Compact custom values and consistently aligned customer field captions. */
@media screen{
 body .pill.other-choice{gap:10px;white-space:nowrap}
 body .pill.other-choice input[type=radio]{margin:0;flex:0 0 18px}
 body .pill.other-choice input[type=number]{width:80px;max-width:80px;min-width:0;min-height:36px;padding:5px 8px;margin:0;flex:0 0 80px;font-size:14px}
 body .customer-grid{grid-template-columns:minmax(190px,1.1fr) minmax(270px,1.8fr) repeat(3,minmax(170px,1fr));align-items:start}
 body .customer-grid>label,body .customer-grid>.customer-name-field>label,body .customer-grid .company-custom-fields>label{display:grid;grid-template-rows:minmax(3.2em,auto) 47px;align-content:start;min-width:0;row-gap:7px}
 body .customer-grid input{min-width:0;width:100%;height:47px;margin:0}
 @media(max-width:1500px){body .customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
 @media(max-width:800px){body .customer-grid{grid-template-columns:1fr}body .customer-grid>label,body .customer-grid>.customer-name-field>label,body .customer-grid .company-custom-fields>label{grid-template-rows:auto 47px}}
}
/* Tourenplanung: settings, customer entry and stops in one compact workspace. */
@media screen{
 body .office-page-heading{position:relative;padding-right:190px;margin-bottom:22px}
 body #newPlanningBtn{position:absolute;right:0;top:28px;margin:0}
 body #newPlanningBtn[hidden]{display:none!important}
 body #planningStartView>.card,body #customerView>.card{padding:20px 24px;margin-bottom:16px}
 body .planning-summary-grid{display:grid;grid-template-columns:180px 200px 240px;gap:20px}
 body .planning-address-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:12px}
 body #planningStartView label{margin:0;display:flex;flex-direction:column;gap:6px}
 body #planningStartView input,body #planningStartView select{min-height:42px;height:42px;padding:8px 12px}
 body .date-control{display:block;position:relative}
 body #routeDate{color:transparent;position:relative;width:100%}
 body #routeDate::-webkit-datetime-edit{color:transparent}
 body #routeDateDisplay{position:absolute;left:12px;top:9px;font-size:16px;line-height:24px;font-weight:600;pointer-events:none;color:#172d4d}
 body #startValidation:empty,body #newPlanningFallback:empty{display:none}
 body #planningStartViewDraftStatus{margin:10px 0 0;font-size:12px}
 body #customerViewDraftStatus{display:none}
 body #customerView .section-title h2{font-size:19px;margin:0 0 14px}
 body #customerView .section-title p{display:none}
 body #customerView .customer-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px;align-items:start}
 body #customerView .customer-grid>label,body #customerView .customer-grid>.customer-name-field>label,body #customerView .company-custom-fields>label{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0;line-height:1.5}
 body #customerView .customer-grid input{height:42px;min-height:42px;padding:8px 11px}
 body #customerView .customer-name-field{order:1}
 body #customerView label:has(#custAddress){order:2;grid-column:span 2}
 body #customerView label:has(#custWeight){order:3}
 body #customerView label:has(#custAbstellgenehmigung){order:4}
 body #customerView label:has(#custCoolant){order:5}
 body #customerView label:has(#custGas){order:6}
 body #customerView label:has(#custZusatzinfo){order:7}
 body #customerView .company-custom-fields{order:8;margin:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px}
 body #saveCustomer{margin-top:14px}
 body #customerView .card>.hint{font-size:12px;margin:9px 0 0;line-height:1.6}
 body #customerView .card>h3{font-size:18px;margin-bottom:10px}
 body #customerView .primary-wide{margin-top:10px}
 @media(max-width:1100px){body .planning-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body #customerView .customer-grid,body #customerView .company-custom-fields{grid-template-columns:repeat(2,minmax(0,1fr))}body #customerView label:has(#custAddress){grid-column:auto}}
 @media(max-width:600px){body .office-page-heading{padding-right:0}body #newPlanningBtn{position:static;margin-top:10px}body .planning-summary-grid,body .planning-address-grid,body #customerView .customer-grid,body #customerView .company-custom-fields{grid-template-columns:1fr}body #planningStartView>.card,body #customerView>.card{padding:18px}body .planning-address-grid{margin-top:14px}}
}

/* Open the native calendar from the entire date field, with a visible icon. */
@media screen{
 body #routeDate{cursor:pointer;padding-right:38px}
 body .date-control:not(.native-date-fallback)::after{content:"";position:absolute;right:12px;top:12px;width:18px;height:18px;pointer-events:none;background:center/18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330445f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E")}
 body .date-control:not(.native-date-fallback) #routeDate::-webkit-calendar-picker-indicator{opacity:0}
 body .native-date-fallback #routeDate,body .native-date-fallback #routeDate::-webkit-datetime-edit{color:#172d4d}
 body .native-date-fallback #routeDateDisplay{display:none}
}
@media screen{
 body #routeDate:focus,body #routeDate:focus::-webkit-datetime-edit{color:#172d4d}
 body .date-control:focus-within #routeDateDisplay{display:none}
}

/* New planning action beside the heading, with an explicit explanation. */
@media screen{
 body .office-page-heading{padding-right:0}
 body .office-page-heading:has(#newPlanningActions:not([hidden])){display:grid;grid-template-columns:max-content minmax(200px,290px);column-gap:48px;align-items:start}
 body .office-page-heading>.office-eyebrow{grid-column:1/-1}
 body .office-page-heading>h1{grid-column:1;grid-row:2}
 body .office-page-heading>#officePageDescription{grid-column:1;grid-row:3}
 body #newPlanningActions{grid-column:2;grid-row:2/span 2;padding-top:3px}
 body #newPlanningActions[hidden]{display:none!important}
 body #newPlanningActions #newPlanningBtn{position:static;margin:0 0 10px;display:inline-block}
 body #newPlanningActions #newPlanningHint{margin:0;font-size:13px;line-height:1.55;color:#475a73;max-width:290px}
 @media(max-width:1100px){body .office-page-heading:has(#newPlanningActions:not([hidden])){grid-template-columns:1fr}body #newPlanningActions{grid-column:1;grid-row:4;padding-top:10px}body #newPlanningActions #newPlanningHint{max-width:380px}}
}

/* Clear local validation and a moderately denser desktop workspace. */
@media screen{
 body .planning-validation:not(:empty){background:#fff3f4;border:1px solid #d88b99;border-radius:8px;padding:10px 13px;margin:12px 0;color:#8c233a;font-size:14px;line-height:1.5}
 body .planning-validation ul{padding-left:20px;margin:5px 0 0}
 body .planning-validation:empty{display:none}
 body input[aria-invalid=true],body select[aria-invalid=true]{border:2px solid #b72d49;background:#fff7f8}
 body .topbar{min-height:62px;padding:12px 24px}
 body .app>main{padding:22px 24px 10px}
 body .office-page-heading{margin-bottom:16px}
 body .office-page-heading h1{font-size:27px;margin-bottom:5px}
 body .office-page-heading p{font-size:14px}
 body .office-eyebrow{font-size:11px;margin-bottom:6px}
 body .card,body #planningStartView>.card,body #customerView>.card{padding:16px 20px;margin-bottom:14px}
 body label{font-size:13px;margin:10px 0 5px}
 body input,body select{font-size:15px;min-height:39px;padding:7px 10px}
 body #planningStartView input,body #planningStartView select,body #customerView .customer-grid input{height:39px;min-height:39px}
 body .date-control::after{top:10px!important}
 body #routeDateDisplay{top:7px;font-size:15px}
 body .planning-summary-grid{gap:14px}
 body .planning-address-grid{margin-top:9px;gap:14px}
 body #customerView .customer-grid{gap:9px 14px}
 body #customerView .section-title h2{font-size:18px;margin-bottom:10px}
 body button:where(:not(.office-nav-item):not(.office-menu):not(.office-nav-shade):not(.admin-recovery-link)){min-height:38px;padding:8px 13px;font-size:14px}
 body button.small{min-height:31px;padding:5px 9px;font-size:13px}
 body .table th,body .table td{padding:10px 12px;font-size:13px}
 body .routes-grid{gap:16px}
 body #routesContainer:not(:has(.route-card~.route-card)){grid-template-columns:1fr}
 body #planningSaveWrap{grid-column:1/-1;margin:8px 0 14px!important;padding:0!important;justify-content:flex-start!important}
 body #savePlanningDayBtn{font-size:14px!important;padding:9px 16px!important;min-width:0!important}
 body .route-card{padding:16px 18px}
 body .mai-route-title{font-size:20px}
 body .mai-route-titlebar{margin-bottom:10px;padding-bottom:10px}
 body .mai-route-identity-label{font-size:12px;margin-bottom:4px}
 body .mai-route-identity-input{margin-top:8px}
 body .mai-route-totals{margin:10px 0;padding:0}
 body .mai-route-totals-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body .mai-route-totals-grid:has(.mai-route-total-item[style*="none"]){grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body .mai-route-total-item{padding:9px 11px;min-height:0}
 body .mai-route-total-item small{font-size:12px}
 body .mai-route-total-item b{font-size:21px}
 body .stop{padding:10px 12px;margin:9px 0;font-size:14px}
 body .stop strong{font-size:15px}
 body .stop-address{font-size:13px;line-height:1.5;margin:4px 0}
 body .route-actions,body .stop-actions{gap:4px;margin-top:6px}
 body .mai-route-disclaimer{font-size:12px;line-height:1.5;margin:8px 0}
 @media(max-width:800px){body .app>main{padding:18px 14px 8px}body .office-page-heading h1{font-size:25px}body .mai-route-totals-grid,body .mai-route-totals-grid:has(.mai-route-total-item[style*="none"]){grid-template-columns:repeat(2,minmax(0,1fr))!important}body input,body select,body #planningStartView input,body #planningStartView select,body #customerView .customer-grid input{font-size:16px;min-height:42px;height:42px}}
}

/* Customer order number first; keep controls aligned even if a caption wraps. */
body #customerView .customer-grid{align-items:stretch}
body #customerView .customer-grid>label,body #customerView .customer-grid>.customer-name-field>label{justify-content:space-between}
body #customerView .customer-grid>.customer-name-field{height:100%}
body #customerView .customer-grid>.customer-name-field>label{height:100%}
body #customerView label:has(#custOrderNumber){order:0}
body #customerView label:has(#custPhone){order:3}
body #customerView label:has(#custWeight){order:4}
body #customerView label:has(#custAbstellgenehmigung){order:5}
body #customerView label:has(#custCoolant){order:6}
body #customerView label:has(#custGas){order:7}
body #customerView label:has(#custZusatzinfo){order:8}
body #customerView .company-custom-fields{order:9}
/* Customer phone shares the compact two-row entry form. */
@media screen and (min-width:1251px){
 body #customerView .customer-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
 body #customerView label:has(#custPhone){order:3}
 body #customerView label:has(#custWeight){order:4}
 body #customerView label:has(#custAbstellgenehmigung){order:5}
 body #customerView label:has(#custCoolant){order:6}
 body #customerView label:has(#custGas){order:7}
 body #customerView label:has(#custZusatzinfo){order:8;grid-column:span 2}
 body #customerView .company-custom-fields{order:9}
}
@media screen and (max-width:1250px){body #customerView .customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body #customerView label:has(#custAddress){grid-column:auto}}
@media screen and (max-width:600px){body #customerView .customer-grid{grid-template-columns:1fr}}
/* Confirmation after saving a new tour customer; never interrupts route persistence. */
body .customer-db-offer{z-index:10050}
body .customer-db-offer-panel{max-width:510px;width:min(100%,510px);padding:28px}
body .customer-db-offer-panel h2{margin:0 0 12px;font-size:21px;line-height:1.3}
body .customer-db-offer-panel p{line-height:1.55}
body .customer-db-offer-details{display:flex;flex-direction:column;gap:4px;border:1px solid #d5e2f0;background:#f4f8fd;border-radius:12px;padding:12px 15px;margin:16px 0;color:#193450;overflow-wrap:anywhere}
body .customer-db-offer-details strong{font-size:16px}
body .customer-db-offer-details span{font-size:14px}
body .customer-db-offer-panel .hint{font-size:13px;color:#50657f}
body .customer-db-offer-buttons{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}
body .customer-db-offer-buttons button{min-width:105px}
@media(max-width:600px){body .customer-db-offer-panel{padding:22px}body .customer-db-offer-buttons button{flex:1}}
/* Language selector: accessible on the login screen and throughout Office. */
.rp-language-picker{display:inline-flex;align-items:center;gap:9px;margin:0;font-size:13px;font-weight:650;color:inherit;white-space:nowrap}
.rp-language-picker select{width:auto;min-width:110px;max-width:150px;min-height:36px;padding:6px 30px 6px 10px;border:1px solid #cbd7e5;border-radius:9px;background:#fff;color:#173c61;font:inherit;cursor:pointer}
.rp-language-picker select:focus-visible{outline:3px solid #7db7ff;outline-offset:2px}
.top-actions .rp-language-picker select{background:linear-gradient(#344e75,#243c61);color:#fff;border-color:#8199b9;border-radius:12px;min-height:39px;font-weight:700}
.top-actions .rp-language-picker select option{color:#173c61;background:#edf3fa}
.rp-login-language{display:flex;justify-content:flex-end;margin:-6px 0 15px}
.rp-login-language .rp-language-picker{color:#526680}
@media(max-width:520px){.top-actions{flex-wrap:wrap;justify-content:flex-end}.rp-language-picker{gap:5px;font-size:12px}.rp-language-picker select{min-width:95px;max-width:115px}}
/* 2S Office: compact inline delivery state, photo proofs and driver install QR. */
@media screen{
 body .route-card .fr-stop-layout{display:grid;grid-template-columns:minmax(0,39fr) minmax(0,61fr);gap:16px;align-items:start}
 body .route-card .fr-stop-info{min-width:0}
 body .route-card .fr-stop-proof{min-width:0;display:grid;grid-template-columns:minmax(0,60fr) minmax(0,40fr);align-items:start;gap:14px;margin:0;padding:2px 0;background:transparent;border:0;box-shadow:none}
 body .route-card .fr-status-details{min-width:0;max-width:none;display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left}
 body .route-card .fr-status-text{display:block;max-width:100%;font-weight:800;font-size:15px;line-height:1.3;text-align:left;cursor:default;overflow-wrap:anywhere}
 body .route-card .fr-status-details.fr-success .fr-status-text{color:#157347}
 body .route-card .fr-status-details.fr-alert .fr-status-text{color:#b6313d}
 body .route-card .fr-status-details.fr-pending .fr-status-text{color:#55708d}
 body .route-card .fr-status-time{font-size:13px;line-height:1.4;color:#546f89;font-weight:650}
 body .route-card .fr-complaint-entry{display:flex;flex-direction:column;gap:2px;width:100%;min-width:0;margin-top:5px;padding:7px 9px;border-left:3px solid #c97827;border-radius:5px;background:#fff4e8;font-size:12px;line-height:1.4;color:#714216;overflow-wrap:anywhere}
 body .route-card .fr-complaint-entry strong{font-size:12px;color:#934713}
 body .route-card .fr-complaint-entry small{font-size:11px;color:#7e633e}
 body .route-card .fr-photo-print-count{display:none}
 body .route-card .fr-photo-strip{display:grid;grid-template-columns:repeat(3,52px);gap:7px;align-items:start;justify-content:center;min-width:0}
 body .route-card .fr-photo-thumb,body .route-card .fr-more-photos{display:grid!important;place-items:center;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;padding:2px!important;margin:0!important;border:1px solid #c7d6e6!important;border-radius:8px!important;background:#f4f8fd!important;box-shadow:none!important;cursor:zoom-in;overflow:hidden}
 body .route-card .fr-photo-thumb img{width:100%;height:100%;object-fit:cover;border-radius:5px}
 body .route-card .fr-photo-thumb:hover{border-color:#2d70c5!important;transform:translateY(-1px)}
 body .route-card .fr-more-photos{color:#215fae!important;font-size:14px!important;font-weight:800}
 body .route-card .fr-photo-loading{grid-column:1/-1;font-size:12px;color:#657c98}
 body #driverView .fr-qr-panel{float:right;width:216px;max-width:100%;padding:16px 14px;margin:0 0 17px 18px;border:1px solid #d6e3f0;border-radius:14px;background:#f7faff;text-align:center;box-shadow:0 3px 12px #153b6509}
 body #driverView .fr-qr-panel strong{display:block;margin-bottom:12px;font-size:14px;color:#254970}
 body #driverView .fr-qr-code{display:grid;place-items:center;margin:auto;min-width:172px;min-height:172px;font-size:12px;color:#657c98}
 body #driverView .fr-qr-code img,body #driverView .fr-qr-code canvas{display:block;max-width:100%;height:auto;margin:auto;border:6px solid #fff;border-radius:6px}
 body .route-card .fr-dispatch,body .route-card .fr-assigned{margin-top:18px;padding:18px 20px;border:1px solid #cadced;border-radius:13px;background:#f1f6fc;color:#234360}
 body .route-card .fr-dispatch{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
 body .route-card .fr-assigned .fr-actions{margin-top:12px}
 body .fr-dispatch .fr-dispatch-msg{display:block;flex:1 1 200px;font-size:13px;color:#1b6647}
 body .fr-dispatch .fr-current-assignees{flex:0 0 100%;width:100%;font-size:14px;font-weight:750;color:#264b73;margin-bottom:6px}
 body .fr-dispatch .fr-driver-choices{flex:0 0 100%;width:100%;min-width:0;margin:0;padding:0;border:0}
 body .fr-dispatch .fr-driver-choices legend{margin:0 0 10px;padding:0;color:#244668;font-size:14px;font-weight:750}
 body .fr-dispatch .fr-driver-choices-grid{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px}
 body .fr-dispatch .fr-driver-choice{display:flex!important;align-items:center!important;justify-content:flex-start;gap:10px;flex:0 1 auto;min-width:190px;min-height:45px;margin:0!important;padding:10px 14px!important;background:#fff;border:1px solid #bdcde0;border-radius:10px;color:#234360;font-size:15px!important;line-height:1.4;cursor:pointer;box-shadow:0 2px 7px #0820400a}
 body .fr-dispatch .fr-driver-choice:has(input:checked){border-color:#2e74bf;background:#e7f1fc;color:#133e6a}
 body .fr-dispatch .fr-driver-choice input[type="checkbox"]{flex:none;width:20px!important;height:20px!important;min-height:20px!important;margin:0!important;padding:0!important;accent-color:#1266bf;cursor:pointer;box-shadow:none!important}
 body .fr-dispatch .fr-driver-choice input[type="checkbox"]:disabled{cursor:default;opacity:.9}
 body .fr-dispatch .fr-driver-choice span{font-weight:700;white-space:normal}
 body .fr-dispatch .fr-driver-choice .fr-driver-fixed-mark{font-size:11px;color:#315a83;font-weight:650;white-space:nowrap}
 body .fr-dispatch .fr-driver-locked-info{flex:0 0 100%;font-size:12px!important;color:#456889;margin:4px 0 0!important}
 body .fr-dispatch .fr-send-selected{align-self:flex-start;min-height:44px;margin-top:6px}
 body .fr-assigned>small{display:block;margin-top:5px;color:#315675;font-size:13px}
 body .fr-inline-photo-overlay{position:fixed;inset:0;z-index:99999;display:flex;justify-content:center;align-items:center;padding:20px;background:rgba(9,24,45,.88)}
 body .fr-inline-photo-overlay .fr-photo-viewer{display:flex;flex-direction:column;gap:10px;width:min(1080px,96vw);height:min(820px,92vh);max-height:calc(100dvh - 30px);min-height:0;padding:14px;background:#f7faff;border-radius:15px;box-shadow:0 18px 65px #07132880;color:#143454}
 body .fr-inline-photo-overlay .fr-photo-toolbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
 body .fr-inline-photo-overlay .fr-photo-toolbar button{margin:0;min-height:34px;padding:5px 12px;font-weight:700}
 body .fr-inline-photo-overlay .fr-photo-scale{margin-left:auto;font-size:13px;white-space:nowrap}
 body .fr-inline-photo-overlay .fr-photo-caption,body .fr-inline-photo-overlay .fr-photo-hint{margin:0;font-size:13px;color:#425b78}
 body .fr-inline-photo-overlay .fr-photo-stage{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;touch-action:none;background:#0c1a2c;border-radius:9px}
 body .fr-inline-photo-overlay .fr-photo-canvas{display:flex;align-items:center;justify-content:center;margin:auto}
 body .fr-inline-photo-overlay .fr-photo-canvas img{display:block;flex:none;max-width:none;object-fit:contain;user-select:none}
 body .fr-save-confirm-overlay{position:fixed;inset:0;z-index:99998;display:grid;place-items:center;padding:20px;background:rgba(9,24,45,.68);backdrop-filter:blur(3px)}
 body .fr-save-confirm-dialog{width:min(510px,100%);padding:30px;border:1px solid #d8e5f2;border-radius:18px;background:#fff;box-shadow:0 22px 85px #06152d66;color:#19395b}
 body .fr-save-confirm-dialog h2{font-size:24px;line-height:1.25;font-weight:800;margin:0 0 14px;color:#152f52}
 body .fr-save-confirm-dialog p{font-size:16px;line-height:1.55;margin:0 0 24px;color:#354e6c}
 body .fr-save-confirm-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center}
 body .fr-save-confirm-actions button{min-width:110px;min-height:46px;margin:0}
 body .fr-save-confirm-actions .fr-save-no{background:#f3f6fb!important;color:#284565!important;border:1px solid #c6d3e3!important;box-shadow:none!important}
 body .fr-save-success{grid-column:1/-1;width:100%;display:flex;align-items:flex-start;gap:18px;margin:24px 0 30px;padding:20px 22px;border:1px solid #9bcdb4;border-radius:14px;background:#eff9f3;box-shadow:0 4px 15px #1b75530b;color:#174733}
 body .fr-save-success-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:44px;padding:8px 15px;background:#187750;color:#fff;border-radius:10px;font-weight:800;font-size:15px;white-space:nowrap}
 body .fr-save-success-copy{min-width:0;max-width:850px;font-size:15px;line-height:1.55}
 body .fr-save-success-copy strong{display:block;margin:0 0 5px;font-size:17px;font-weight:800}
 body .fr-save-success-copy p{margin:3px 0;color:#245340}
}
@media screen and (max-width:1150px){body .route-card .fr-stop-layout{grid-template-columns:minmax(0,1fr)}body .route-card .fr-stop-proof{grid-template-columns:minmax(0,60fr) minmax(0,40fr);padding-top:10px;border-top:1px solid #e9eff6}}
@media screen and (max-width:680px){body .route-card .fr-stop-proof{grid-template-columns:minmax(0,1fr) minmax(115px,38%);gap:8px}body .route-card .fr-photo-strip{grid-template-columns:repeat(2,52px);justify-content:end}body #driverView .fr-qr-panel{float:none;margin:16px auto 22px;width:max-content}body .fr-inline-photo-overlay{padding:8px}body .fr-inline-photo-overlay .fr-photo-viewer{width:100%;height:calc(100dvh - 16px);padding:9px}}
@media screen and (max-width:680px){body .fr-save-success{flex-direction:column;gap:12px;padding:16px}body .fr-save-success-mark{white-space:normal}body .fr-save-confirm-dialog{padding:22px}body .fr-save-confirm-actions{justify-content:stretch}body .fr-save-confirm-actions button{flex:1}}
/* The original route PDF/print is also the final route-status record. */
@media print{
 .fr-qr-panel,.route-card .fr-photo-strip{display:none!important}
 .route-card .fr-stop-layout{display:grid!important;grid-template-columns:minmax(0,48fr) minmax(0,52fr)!important;gap:3mm!important;align-items:start!important}
 .route-card .fr-stop-info{min-width:0!important}
 .route-card .fr-stop-proof{display:block!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important}
 .route-card .fr-status-details{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:1px!important;text-align:left!important;min-width:0!important}
 .route-card .fr-status-text{display:block!important;font-size:1em!important;font-weight:800!important;line-height:1.12!important;overflow-wrap:anywhere!important}
 .route-card .fr-status-details.fr-success .fr-status-text{color:#157347!important}
 .route-card .fr-status-details.fr-alert .fr-status-text{color:#b6313d!important}
 .route-card .fr-status-details.fr-pending .fr-status-text{color:#55708d!important}
 .route-card .fr-status-time,.route-card .fr-photo-print-count{display:block!important;font-size:.83em!important;line-height:1.1!important;color:#425a73!important}
 .route-card .fr-status-details .fr-warning{font-size:.8em!important;line-height:1.1!important}
 .route-card .fr-complaint-entry{display:flex!important;flex-direction:column!important;gap:1px!important;margin-top:2px!important;padding:1px 0 1px 4px!important;border-left:2px solid #98551e!important;break-inside:avoid;font-size:.75em!important;line-height:1.15!important;overflow-wrap:anywhere!important}
 .route-card .fr-complaint-entry strong,.route-card .fr-complaint-entry small{font-size:inherit!important;line-height:inherit!important}
}

/* Office: company-private delivery/order status search. */
body #statusSearchBtn{min-height:45px;padding:10px 15px;max-width:320px;font-size:14px;font-weight:750;white-space:normal;line-height:1.35;text-align:center}
body #statusSearchBtn[hidden]{display:none!important}
@media screen and (min-width:1301px){
 body .office-page-heading:has(#newPlanningActions:not([hidden])){grid-template-columns:minmax(320px,1fr) minmax(190px,290px) minmax(230px,320px);column-gap:18px}
 body #statusSearchBtn{grid-column:3;grid-row:2;justify-self:end;margin-top:3px;width:100%}
}
@media screen and (max-width:1300px){
 body .office-page-heading:has(#newPlanningActions:not([hidden])){grid-template-columns:1fr}
 body #newPlanningActions{grid-column:1;grid-row:4}
 body #statusSearchBtn{grid-column:1;grid-row:5;justify-self:start;margin:10px 0 0}
}
body #statusSearchModal{z-index:10060}
body #statusSearchModal .status-search-panel{width:min(800px,96vw);max-width:800px;max-height:min(88vh,960px);overflow-y:auto;padding:26px 30px}
body .status-search-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
body .status-search-heading h2{margin:0;font-size:22px;line-height:1.35}
body #statusSearchHelp{margin:12px 0 19px;line-height:1.6;color:#455d78}
body .status-search-form>label{display:block;font-weight:750;margin-bottom:8px}
body .status-search-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
body #statusSearchQuery{width:100%;min-width:0;height:45px;border:1px solid #bdd0e7;border-radius:9px;padding:10px 13px;font-size:16px}
body #statusSearchSubmit{min-width:112px}
body #statusSearchFeedback{font-size:14px;min-height:20px;margin:14px 0;color:#3b5574}
body .status-search-results{display:flex;flex-direction:column;gap:11px}
body .status-search-row{background:#f8fbff;border:1px solid #d4e1ef;border-radius:13px;padding:16px 18px;color:#18334f;overflow-wrap:anywhere}
body .status-search-row-top{display:flex;align-items:baseline;justify-content:space-between;gap:7px 14px;flex-wrap:wrap}
body .status-search-row-top strong{font-size:17px}
body .status-search-result-number{font-size:13px;color:#496381}
body .status-search-row-meta{display:flex;gap:8px 18px;flex-wrap:wrap;font-size:13px;color:#5b718b;margin-top:8px}
body .status-search-row-bottom{display:flex;align-items:center;gap:8px 15px;flex-wrap:wrap;font-size:14px;margin-top:11px}
body .status-search-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:20px;font-weight:800;font-size:13px}
body .status-search-badge.is-success{background:#def5e8;color:#166444}
body .status-search-badge.is-error{background:#ffeaec;color:#9e2939}
body .status-search-badge.is-pending{background:#e7f0ff;color:#27558b}
@media(max-width:600px){body #statusSearchModal .status-search-panel{padding:20px 17px}body .status-search-controls{grid-template-columns:1fr}body #statusSearchSubmit{width:100%}}

/* Fahrer & Büronummer — tidy paired action columns and disclosure sections. */
body #driverView .fr-office-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);align-items:start;gap:20px}
body #driverView .fr-management-column{display:grid;gap:18px;min-width:0}
body #driverView .fr-management-column>.card{margin:0;min-width:0}
body #driverView .fr-office-grid>aside.card{margin:0;min-width:0}
body #driverView .fr-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0;margin:0;color:#183354;background:transparent;font-size:23px;font-weight:850;cursor:pointer;list-style:none}
body #driverView .fr-accordion>summary::-webkit-details-marker{display:none}
body #driverView .fr-accordion>summary span{display:inline-grid;place-items:center;width:32px;height:32px;flex:none;font-size:24px;line-height:1;border:1px solid #cad8ea;border-radius:9px;background:#edf5ff;color:#245e9a;transition:transform .15s}
body #driverView .fr-accordion[open]>summary span{transform:rotate(180deg)}
body #driverView .fr-accordion-content{padding-top:22px}
body #driverView .fr-office-list{margin:16px 0 0;padding-left:27px;list-style:decimal}
body #driverView .fr-office-list>li{display:grid;grid-template-columns:minmax(0,1fr) 220px;align-items:center;gap:12px;padding:14px 4px 14px 2px;border-bottom:1px solid #dce6ef;color:#244363}
body #driverView .fr-office-list>li::marker{color:#334e70;font-weight:700}
body #driverView .fr-list-text{min-width:0;overflow-wrap:anywhere}
body #driverView .fr-list-text strong{display:block;font-size:15px;line-height:1.4}
body #driverView .fr-list-text small{display:block;margin-top:3px;color:#5a728d;font-size:13px}
body #driverView .fr-item-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:220px;justify-self:end;margin:0}
body #driverView .fr-item-actions>button{min-width:0;width:100%;margin:0;padding:8px 10px;min-height:42px;font-size:13px;white-space:nowrap}
body #driverView .fr-phone-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end}
body #driverView .fr-phone-fields>label{min-width:0;margin:0}
body #driverView #frPhoneEditor,body #driverView #frEditor{margin-top:18px;padding:17px;background:#f3f7fd;border:1px solid #d2dfef;border-radius:12px}
body #driverView #frPhoneError{color:#a7313c;font-weight:650}
body #driverView .fr-empty-phones{padding:14px 0;color:#657b94}
@media(max-width:1050px){body #driverView .fr-office-grid{grid-template-columns:minmax(0,1fr)}body #driverView .fr-office-grid>aside.card{max-width:100%}}
@media(max-width:650px){body #driverView .fr-office-list>li{grid-template-columns:minmax(0,1fr);gap:9px}body #driverView .fr-item-actions{width:220px;max-width:100%;justify-self:start}body #driverView .fr-phone-fields{grid-template-columns:1fr}body #driverView .fr-accordion>summary{font-size:20px}}

/* The installation and QR block follows BOTH expandable management blocks. */
body #driverView .fr-office-grid{grid-template-columns:minmax(0,1fr);gap:20px}
body #driverView .fr-office-grid>aside.card{width:100%;max-width:none;grid-column:1}
body #driverView .fr-short-form{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:14px 0 18px;padding:15px;border:1px solid #d5e1f0;border-radius:12px;background:#f4f8fe}
body #driverView .fr-short-form label{flex:1 1 250px;min-width:0;margin:0}
body #driverView .fr-short-form input{width:100%;min-height:45px}
body #driverView .fr-short-form button{flex:0 0 auto;margin:0;min-height:45px}
body #driverView #frShortMessage{flex:1 1 100%;color:#246e53;font-weight:700;font-size:14px}

/* Company-specific delivery configuration. */
body #deliverySettingsView .fr-delivery-settings{max-width:1040px;padding:26px}
body #deliverySettingsView .fr-delivery-settings h2{font-size:26px;margin:0 0 5px}
body #deliverySettingsView .fr-settings-list{counter-reset:settings;list-style:decimal;padding-left:27px;margin:20px 0}
body #deliverySettingsView .fr-settings-list>li{padding:18px 14px 18px 4px;border-top:1px solid #dce6f1;line-height:1.5}
body #deliverySettingsView .fr-settings-list>li::marker{font-weight:850;color:#214d7a}
body #deliverySettingsView .fr-setting-main{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
body #deliverySettingsView .fr-setting-main>strong{font-size:19px;color:#153451}
body #deliverySettingsView .fr-setting-main .fr-setting-toggle{display:inline-flex;align-items:center;gap:10px;margin:0;color:#1c456a;white-space:nowrap;font-weight:750}
body #deliverySettingsView input[type=checkbox]{width:21px;height:21px;accent-color:#1b7f55;margin:0}
body #deliverySettingsView .fr-settings-list p{font-size:14px;color:#536b86;line-height:1.55;margin:8px 0 0}
body #deliverySettingsView .fr-setting-category{display:block;max-width:530px;margin:14px 0 0;font-weight:700}
body #deliverySettingsView .fr-setting-category input{display:block;width:100%;min-height:45px;margin-top:6px}
body #deliverySettingsView #frDeliverySettingsMessage{color:#1a6b4d;font-weight:700}
/* Print the actual receiving name, barcode list, notes and signature with the route. */
body .fr-status-extra{font-size:12px;line-height:1.45;overflow-wrap:anywhere;text-align:left}
body .status-search-extras{margin-top:10px;padding-top:10px;border-top:1px solid #dae5f1;font-size:14px;color:#27435f;overflow-wrap:anywhere}
body .status-search-extras p{margin:5px 0}
body .status-search-extras ol{margin:4px 0;padding-left:26px}
body .fr-barcode-proof{font-size:12px;line-height:1.45;text-align:left;overflow-wrap:anywhere}
body .fr-barcode-proof ol{margin:3px 0 6px;padding-left:20px}
body .fr-barcode-proof li{margin:1px 0}
body .fr-signature-frame{display:grid;justify-items:start;gap:4px;width:min(100%,300px);margin:6px 0 3px;color:#173d64;font-size:12px;text-align:left}
body .fr-signature-frame img{display:block;width:min(100%,250px);height:auto;max-height:130px;object-fit:contain;border:1px solid #24435e;background:#fff}
@media print{body .fr-status-extra,body .fr-barcode-proof{font-size:9pt!important;line-height:1.2!important}body .fr-signature-frame{display:grid!important;break-inside:avoid!important}body .fr-signature-frame img{display:block!important;max-width:48mm!important;max-height:22mm!important;object-fit:contain!important}}
@media(max-width:650px){body #deliverySettingsView .fr-delivery-settings{padding:17px}body #deliverySettingsView .fr-setting-main{align-items:flex-start}}

/* V4: use the full stop width. With no proof photos, the recipient and signature
   share one horizontal area; notes and barcode numbers stay below the status. */
body .route-card .fr-stop-proof:not(.fr-proof-has-photos){grid-template-columns:minmax(0,1fr)}
body .route-card .fr-stop-proof:not(.fr-proof-has-photos) .fr-status-details{
 display:grid;grid-template-columns:minmax(0,39fr) minmax(0,61fr);gap:5px 13px;align-items:start;width:100%
}
body .route-card .fr-status-primary{min-width:0;display:flex;flex-direction:column;gap:3px;grid-column:1;grid-row:1}
body .route-card .fr-receipt-inline{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);align-items:start;gap:8px;grid-column:2;grid-row:1/span 2}
body .route-card .fr-recipient{min-width:0;display:grid;gap:4px;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
body .route-card .fr-recipient strong{font-size:13px;color:#173d64}
body .route-card .fr-status-addenda{grid-column:1;grid-row:2;min-width:0;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}
body .route-card .fr-status-details:not(:has(.fr-receipt-inline)){grid-template-columns:minmax(0,1fr)}
body .route-card .fr-status-details:not(:has(.fr-receipt-inline)) .fr-status-addenda{grid-column:1}
body .route-card .fr-signature-frame{width:100%;min-width:0;max-width:230px;margin:0;gap:3px}
body .route-card .fr-signature-frame img{width:100%;max-width:200px;max-height:90px;object-fit:contain}
body .route-card .fr-barcode-proof ol{display:flex;flex-wrap:wrap;gap:2px 9px;list-style:none;margin:3px 0;padding:0}
body .route-card .fr-barcode-proof li{margin:0;white-space:normal}
body .route-card .fr-proof-has-photos .fr-status-details{display:flex;flex-direction:column;align-items:stretch;gap:4px}
body .route-card .fr-proof-has-photos .fr-receipt-inline{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%}
@media screen and (max-width:740px){
 body .route-card .fr-stop-proof:not(.fr-proof-has-photos) .fr-status-details{grid-template-columns:minmax(0,1fr)}
 body .route-card .fr-stop-proof:not(.fr-proof-has-photos) .fr-receipt-inline{grid-column:1;grid-row:2;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
 body .route-card .fr-stop-proof:not(.fr-proof-has-photos) .fr-status-addenda{grid-column:1;grid-row:3}
}
@media print{
 body.mai-print-driver .route-card .mai-print-brand-sub::after{content:" · Fahrerroute ohne Status"}
 body.mai-print-status .route-card .mai-print-brand-sub::after{content:" · Zustellbericht mit Status"}
 body.mai-print-status .route-card .fr-stop-layout{grid-template-columns:minmax(0,40fr) minmax(0,60fr)!important;gap:2.5mm!important}
 body.mai-print-status .route-card .fr-stop-proof{display:block!important;min-width:0!important}
 body.mai-print-status .route-card .fr-status-details{display:grid!important;grid-template-columns:minmax(0,39fr) minmax(0,61fr)!important;gap:1mm 2mm!important;align-items:start!important}
 body.mai-print-status .route-card .fr-status-primary{grid-column:1!important;grid-row:1!important;gap:1px!important}
 body.mai-print-status .route-card .fr-receipt-inline{display:grid!important;grid-column:2!important;grid-row:1/span 2!important;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)!important;gap:1.5mm!important}
 body.mai-print-status .route-card .fr-status-addenda{grid-column:1!important;grid-row:2!important;gap:1px!important}
 body.mai-print-status .route-card .fr-status-details:not(:has(.fr-receipt-inline)){grid-template-columns:minmax(0,1fr)!important}
 body.mai-print-status .route-card .fr-recipient{font-size:8pt!important;line-height:1.15!important}
 body.mai-print-status .route-card .fr-recipient strong{font-size:8pt!important}
 body.mai-print-status .route-card .fr-signature-frame{width:100%!important;max-width:38mm!important;margin:0!important;gap:1px!important}
 body.mai-print-status .route-card .fr-signature-frame img{width:100%!important;max-width:36mm!important;max-height:18mm!important;object-fit:contain!important}
 body.mai-print-status .route-card .fr-barcode-proof ol{display:flex!important;flex-wrap:wrap!important;gap:0 2mm!important;list-style:none!important;margin:1px 0!important;padding:0!important}
 body.mai-print-status .route-card .fr-barcode-proof li{font-size:8pt!important;margin:0!important}
 body.mai-print-status .route-card .fr-photo-print-count{grid-column:1!important}
 body.mai-print-driver .route-card .fr-stop-proof{display:none!important}
 body.mai-print-driver .route-card .fr-stop-layout{display:block!important;grid-template-columns:minmax(0,1fr)!important}
 body.mai-print-driver .route-card .fr-stop-info{display:block!important;width:100%!important}
 body.mai-print-driver .route-card .fr-stop-info>:not(.fr-driver-print-only){display:none!important}
 body.mai-print-driver .route-card .stop:not(.start-station):not(.end-station):not(.pause)>:not(.fr-stop-layout):not(.fr-driver-print-only){display:none!important}
 body.mai-print-driver .route-card .fr-driver-print-only{display:grid!important;grid-template-columns:minmax(0,27fr) minmax(0,42fr) minmax(0,31fr)!important;gap:1mm 3mm!important;align-items:start!important;width:100%!important;min-width:0!important}
 body.mai-print-driver .route-card .fr-driver-print-only>*{min-width:0;overflow-wrap:anywhere}
 body.mai-print-driver .route-card .fr-driver-print-only .fr-print-name{font-weight:800}
 body.mai-print-driver .route-card .fr-driver-print-only .fr-print-address{font-weight:600}
 body.mai-print-driver .route-card .fr-driver-print-only .fr-print-meta{font-size:.95em;line-height:1.15}
 body.mai-print-driver .route-card .fr-driver-print-only .fr-print-details{grid-column:1/-1;display:flex!important;flex-wrap:wrap;gap:0 4mm;font-size:.89em;line-height:1.14}
 body.mai-print-driver .route-card .fr-driver-print-only .fr-print-details>span{display:inline;min-width:0;overflow-wrap:anywhere}
 body.mai-print-driver .route-card .stop:not(.start-station):not(.end-station):not(.pause){padding:2.2mm 2.5mm!important;margin:1.5mm 0!important;border-radius:2mm!important}
 body.mai-print-driver .route-card .mai-route-disclaimer{font-size:8pt!important}
}
@media screen{.fr-driver-print-only{display:none!important}}
@media print{.fr-driver-print-only{display:none!important}}
