/* Loading Supervisor, scoped to Production Planning only. */
.loading-page{display:grid;gap:13px;max-width:1080px;margin:0 auto;padding-bottom:25px}
.loading-page .pp-dense-header{margin-bottom:0}
.loading-page h2{font-size:15px;letter-spacing:0}
.loading-new{display:grid;gap:12px;padding:18px}
.loading-new p,.loading-rates p{color:#587087;font-size:12px;line-height:1.5}
.loading-start-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px}
.loading-start-grid label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#3c5570;min-width:0}
.loading-start-grid select{min-height:41px}
.loading-new .btn{justify-self:start}
.loading-section-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.loading-session-list{display:grid;gap:7px}
.loading-session-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:13px 15px;text-align:left;border:1px solid #dce5f0;border-radius:11px;background:#fff;color:#25374d}
.loading-session-row:hover{background:#f3f8ff;border-color:#86aee3}
.loading-session-title{min-width:0;display:flex;gap:8px;flex-wrap:wrap;font-weight:650;font-size:14px}
.loading-session-title strong{font-size:14px}
.loading-session-sub{font-size:11px;color:#66788e;grid-column:1}
.loading-status{display:inline-flex;justify-content:center;align-items:center;border-radius:25px;font-size:10px;font-weight:800;white-space:nowrap;padding:5px 8px}
.loading-status-in_progress{color:#894b00;background:#fff0d1}
.loading-status-completed{color:#0d6945;background:#d8f8e4}
.loading-session-row>.loading-status{grid-column:2;grid-row:1 / span 2}
.loading-top-actions{display:flex;gap:7px;flex-wrap:wrap}
.loading-top-actions .btn{font-size:11px;gap:5px;padding:7px 10px}
.loading-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,0.6fr);gap:12px;border:1px solid #dae4ef;border-radius:12px;background:#fff;padding:14px}
.loading-summary>div{display:grid;gap:3px;min-width:0}
.loading-summary span{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:#67778e}
.loading-summary strong{font-size:17px;overflow-wrap:anywhere}
.loading-summary small{font-size:11px}
.loading-progress{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;color:#fff;background:#ca121b;border-radius:9px;padding:12px 14px;font-size:13px;font-weight:800}
.loading-progress strong{font-size:15px}
.loading-line-nav{display:flex;gap:7px;max-width:100%;overflow-x:auto;padding:4px 0;scrollbar-width:thin}
.loading-line-tab{flex:0 0 auto;display:grid;gap:4px;border:1px solid #c7d3df;border-radius:9px;padding:9px 14px;background:#fff;color:#263b55;font-weight:800}
.loading-line-tab span{font-size:9px;color:#66788e;font-weight:650}
.loading-line-tab.done{background:#e5f9e9;border-color:#74ce91}
.loading-line-tab.selected{outline:2px solid #2166b4;outline-offset:1px}
.loading-stepbar{display:flex;align-items:end;gap:9px;flex-wrap:wrap;background:#f4f7fa;padding:9px 11px;border-radius:10px}
.loading-stepbar label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:750}
.loading-stepbar .select{width:100px;height:38px}
.loading-stepbar .input{width:115px;height:38px}
.loading-locked{padding:10px;background:#f3f5fa;border-radius:9px;color:#66758b;font-size:12px}
.loading-tile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.loading-tile{border:2px solid #232c31;border-radius:16px;background:#fff;overflow:hidden;display:grid;grid-template-rows:auto minmax(105px,1fr) auto;min-width:0;box-shadow:0 1px 2px #22334414}
.loading-tile-done{background:#93fa98}
.loading-tile-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:2px solid #232c31}
.loading-tile-top span{padding:6px 8px;font-size:12px;white-space:nowrap;text-align:center;overflow:hidden;text-overflow:ellipsis}
.loading-tile-top span+span{border-left:2px solid #232c31}
.loading-tile-top strong{font-size:15px;color:#142b22}
.loading-tile-main{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;width:100%;border:0;background:transparent;color:#15232b;cursor:pointer;padding:15px 8px;text-align:center}
.loading-tile-main strong{font-size:17px;line-height:1.27;overflow-wrap:anywhere}
.loading-tile-main span{font-size:11px;color:#3d4c5e;line-height:1.3}
.loading-tile-main:disabled{cursor:default}
.loading-tile-main:focus-visible{outline:3px solid #1d5faf;outline-offset:-3px}
.loading-tile-main:not(:disabled):active{background:#dff7ee;transform:scale(.99)}
.loading-tile-bottom{display:grid;grid-template-columns:45px 1fr 35px;align-items:center;border-top:2px solid #232c31;min-height:42px}
.loading-tile-bottom>*{text-align:center}
.loading-tile-bottom strong{font-size:13px}
.loading-tile-bottom .loading-undo{border:0;border-right:2px solid #232c31;background:transparent;height:100%;font-size:29px;line-height:1;color:#243642;font-weight:900}
.loading-tile-bottom .loading-undo:disabled{opacity:.25}
.loading-tile-check{border-left:2px solid #232c31;display:grid;place-items:center;height:100%;font-size:21px;font-weight:900;color:#147e3b}
.loading-bottom-actions{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;padding:12px;border:1px solid #dde6ee;border-radius:10px}
.loading-bottom-actions .btn{min-height:42px}
.loading-photo-preview{display:flex;align-items:center;gap:12px;padding:10px;background:#fff;border:1px solid #dde7f0;border-radius:10px;font-size:12px;text-decoration:none;color:#2563a8}
.loading-photo-preview img{width:88px;height:66px;object-fit:cover;border-radius:6px}
.loading-rates,.loading-history{padding:12px}
.loading-rates summary,.loading-history summary{font-size:13px;font-weight:800;cursor:pointer}
.loading-rates p{margin:9px 0}
.loading-rate-row{display:grid;grid-template-columns:minmax(0,1fr) 125px auto;gap:8px;align-items:center;padding:6px 0}
.loading-rate-row>span{font-size:12px;overflow-wrap:anywhere}
.loading-rate-row .input{height:36px}
.loading-history ol{margin:10px 0 0;padding-left:25px;display:grid;gap:9px}
.loading-history li{font-size:11px;line-height:1.4;color:#324a61}
.loading-history li strong{text-transform:capitalize}
.loading-history li small{display:block;color:#67778d}
@media(max-width:680px){
 .page-production-loading .content{padding:10px 9px 115px}
 .loading-page{gap:10px;padding-bottom:8px}
 .loading-new{padding:12px;gap:10px}
 .loading-start-grid{grid-template-columns:1fr}
 .loading-new .btn{width:100%}
 .loading-top-actions .btn{flex:1;min-height:37px;white-space:nowrap;font-size:10px;padding-inline:5px}
 .loading-summary{grid-template-columns:minmax(0,1fr) minmax(0,.55fr);gap:5px;padding:9px 11px}
 .loading-summary strong{font-size:14px}
 .loading-progress{border-radius:0;position:relative;padding:10px 12px}
 .loading-progress strong{font-size:14px}
 .loading-tile-grid{gap:10px}
 .loading-tile{border-radius:15px;grid-template-rows:auto minmax(95px,1fr) auto}
 .loading-tile-top span{font-size:11px;padding:5px 3px}
 .loading-tile-top strong{font-size:13px}
 .loading-tile-main{padding:11px 4px}
 .loading-tile-main strong{font-size:15px}
 .loading-tile-main span{font-size:10px}
 .loading-tile-bottom{grid-template-columns:35px 1fr 24px;min-height:37px}
 .loading-tile-bottom strong{font-size:11px}
 .loading-bottom-actions{position:sticky;bottom:calc(62px + env(safe-area-inset-bottom,0px));z-index:30;box-shadow:0 5px 20px #18345438;border-radius:9px;padding:8px}
 .loading-bottom-actions .btn{flex:1;padding:8px 7px;font-size:11px;min-height:43px}
 .loading-rate-row{grid-template-columns:minmax(0,1fr) 89px auto;gap:4px}
 .loading-rate-row .btn{padding:7px 6px}
}
@media(max-width:355px){
 .loading-tile-top span{font-size:10px}
 .loading-tile-main strong{font-size:13px}
 .loading-tile-main span{font-size:9px}
 .loading-tile-bottom strong{font-size:10px}
}

/* Compact, full-height loading workstation. Only product tiles scroll. */
body.page-production-loading:has(.loading-workspace){overflow:hidden}
body.page-production-loading:has(.loading-workspace) .shell{height:100dvh;min-height:0;overflow:hidden}
body.page-production-loading:has(.loading-workspace) .main{min-height:0;overflow:hidden}
body.page-production-loading:has(.loading-workspace) .content{height:100%;min-height:0;overflow:hidden;padding:0!important}
body.page-production-loading:has(.loading-workspace) .mobile-header,
body.page-production-loading:has(.loading-workspace) .topbar{display:none!important}
body.page-production-loading:has(.loading-workspace) .mobile-nav{display:none!important}
.loading-workspace{height:100%;max-height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#f4f6f9;overscroll-behavior:none}
.loading-fixed-head{flex:0 0 auto;z-index:5;background:#fff;border-top:4px solid #d00812;border-bottom:2px solid #d00812;box-shadow:0 2px 5px #101f3017}
.loading-head-main{display:flex;align-items:center;gap:8px;min-height:49px;padding:4px 10px}
.loading-head-back,.loading-head-more{border:0;background:transparent;color:#23303a;font-weight:800;flex:0 0 32px;height:38px;display:grid;place-items:center;cursor:pointer}
.loading-head-back{font-size:32px;line-height:1}
.loading-head-more{font-size:26px}
.loading-head-party{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1;line-height:1.14}
.loading-head-party strong{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.loading-head-party small{font-size:10px;color:#6a7480;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.loading-head-vehicle{font-size:13px;white-space:nowrap}
.loading-head-sub{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:4px 10px 7px;background:#fff;font-size:12px;font-weight:750}
.loading-lines-trigger{border:1px solid #cbd6e1;background:#f2f6fa;border-radius:7px;padding:6px 9px;font-size:12px;font-weight:800}
.loading-quick-step{display:flex;align-items:center;gap:5px;font-size:12px}
.loading-quick-step select{border:1px solid #c9d5e0;background:#fff;border-radius:7px;font-size:16px;padding:4px 6px;max-width:85px}
#loading-step-custom{font-size:16px;width:76px;min-height:32px;border:1px solid #c9d5e0;border-radius:7px}
.loading-scroll-items{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:8px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.loading-scroll-items .loading-tile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.loading-scroll-items .loading-tile{border:1.5px solid #1c252b;border-radius:12px;grid-template-rows:auto minmax(60px,1fr) auto;box-shadow:none}
.loading-scroll-items .loading-tile-top{border-bottom:1.5px solid #1c252b}
.loading-scroll-items .loading-tile-top span{font-size:11px;padding:3px 2px}
.loading-scroll-items .loading-tile-top strong{font-size:12px}
.loading-scroll-items .loading-tile-top span+span{border-left:1.5px solid #1c252b}
.loading-scroll-items .loading-tile-main{padding:6px 3px;min-height:60px;touch-action:manipulation}
.loading-scroll-items .loading-tile-main strong{font-size:13px;line-height:1.15}
.loading-scroll-items .loading-tile-main .loading-tile-cumulative{font-size:10px;line-height:1.2;color:#3f4b57;font-weight:750}
.loading-scroll-items .loading-tile-main .loading-tile-cumulative strong{font-size:11px;line-height:1.2;color:#142b22}
.loading-scroll-items .loading-tile-this-line{display:flex;gap:4px;align-items:center;justify-content:center;min-width:0;font-size:10px;font-weight:750;white-space:nowrap}
.loading-scroll-items .loading-tile-this-line strong{font-size:12px}
.loading-scroll-items .loading-tile-bottom{grid-template-columns:33px 1fr 26px;min-height:28px;border-top:1.5px solid #1c252b}
.loading-scroll-items .loading-tile-bottom strong{font-size:12px}
.loading-scroll-items .loading-undo{font-size:22px;border-right:1.5px solid #1c252b;touch-action:manipulation}
.loading-scroll-items .loading-tile-check{font-size:15px;border-left:1.5px solid #1c252b}
.loading-scroll-items .loading-tile-done{background:#89f994}
.loading-scroll-items .loading-tile-excess{background:#ff9898}
.loading-fixed-footer{flex:0 0 auto;display:flex;align-items:center;gap:12px;justify-content:space-between;background:#d00000;color:#fff;padding:9px 12px calc(10px + env(safe-area-inset-bottom,0px));min-height:59px;z-index:6}
.loading-footer-count{font-size:23px;white-space:nowrap;font-weight:900}
.loading-footer-button{background:#fff;color:#b40000;border:0;border-radius:9px;padding:10px 12px;min-height:39px;font-size:12px;font-weight:900;line-height:1.2;touch-action:manipulation}
.loading-footer-state{font-size:13px;font-weight:800}
.loading-popup{border:0;border-radius:14px;max-height:min(85dvh,780px);width:min(94vw,600px);padding:0;box-shadow:0 15px 70px #0006;color:#1f2c3b}
.loading-popup::backdrop{background:#0009}
.loading-popup-head{position:sticky;top:0;background:#fff;z-index:1;border-bottom:1px solid #d9e2eb;display:flex;align-items:center;justify-content:space-between;padding:12px 15px;gap:12px}
.loading-popup-head strong{font-size:16px}
.loading-popup-close{width:36px;height:36px;display:grid;place-items:center;border:1px solid #d6e0e9;background:#f3f6fa;border-radius:50%;font-size:18px;cursor:pointer}
.loading-popup-body{overflow:auto;max-height:calc(85dvh - 65px);padding:12px 15px}
.loading-photo-large{display:block;max-width:100%;max-height:calc(85dvh - 105px);width:auto;height:auto;object-fit:contain;margin:auto}
.loading-popup-line{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e5ebf1;padding:10px 0}
.loading-popup-line>div:first-child{display:grid;gap:3px}
.loading-popup-line small{color:#6a7988;font-size:11px}
.loading-popup-line-buttons{display:flex;gap:6px}
.loading-more-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.loading-more-actions .btn{min-height:39px;display:flex;justify-content:center;font-size:12px}
.loading-more-summary{font-size:12px;color:#536476;line-height:1.6}
.loading-popup-details{padding:10px 0;border-top:1px solid #e0e6ed}
.loading-popup-details summary{font-size:13px;font-weight:800;cursor:pointer}
.loading-popup-details ol{padding-left:23px}
.loading-popup-details li{font-size:12px;margin:8px 0}
.loading-popup-details li small{display:block;color:#778493}
.loading-popup-details .loading-rate-row{grid-template-columns:minmax(0,1fr) 100px auto}
.loading-popup-details .loading-rate-row input{font-size:16px}
@media(max-width:680px){
 body.page-production-loading:has(.loading-workspace) .main{height:100dvh}
 .loading-head-party strong{font-size:15px}
 .loading-head-vehicle{font-size:12px}
 .loading-scroll-items .loading-tile-grid{gap:7px}
 .loading-scroll-items .loading-tile-main strong{font-size:12.5px}
 .loading-fixed-footer{padding-left:11px;padding-right:11px}
 .loading-footer-count{font-size:22px}
}

/* Loading workstation v3: compact neutral footer and deliberate tap handling. */
.loading-workspace,.loading-workspace *, .loading-popup,.loading-popup *{touch-action:manipulation}
.loading-scroll-items{touch-action:pan-y}
.loading-fixed-head{border-top:2px solid #d00812;border-bottom:1px solid #dce3eb}
.loading-head-sub{padding:3px 11px 5px;font-size:10px;color:#66788b;min-height:20px}
.loading-fixed-footer{background:#fff;color:#172d44;border-top:2px solid #d5e1eb;box-shadow:0 -3px 13px #1834541c;
 min-height:48px;gap:6px;padding:5px 8px calc(5px + env(safe-area-inset-bottom,0px))}
.loading-fixed-footer .loading-lines-trigger{flex:0 1 auto;min-width:0;white-space:nowrap;font-size:11px;padding:7px 6px;
 border:1px solid #b9cce0;background:#edf4fb;color:#174b79;border-radius:7px;min-height:34px}
.loading-fixed-footer .loading-footer-count{font-size:17px;color:#153e64;white-space:nowrap;letter-spacing:-.5px}
.loading-fixed-footer .loading-footer-button{background:#16724f;color:#fff;border:0;border-radius:7px;
 padding:7px 8px;min-height:34px;font-size:11px;max-width:155px;flex:0 1 auto}
.loading-fixed-footer .loading-footer-state{font-size:11px}
.loading-scroll-items .loading-tile-top span{font-size:11px}
.loading-scroll-items .loading-tile-bottom strong{font-size:11px}
.loading-more-step{padding:10px;margin-bottom:12px;border:1px solid #d9e5ef;border-radius:9px;background:#f4f8fc;display:grid;gap:7px}
.loading-more-step label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;font-weight:750}
.loading-more-step select{font-size:16px;max-width:120px}
.loading-more-step input{font-size:16px;max-width:110px}
.loading-correction-help{font-size:12px;color:#4c6278;line-height:1.5;margin:0 0 12px}
.loading-correction-field{display:grid;gap:5px;margin-bottom:11px;font-size:12px;font-weight:750;color:#314b63}
.loading-correction-field .input,.loading-correction-field .select{font-size:16px;min-height:41px}
.loading-correction-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.loading-correction-actions .btn{font-size:11px;min-height:41px;white-space:normal}
@media(max-width:375px){
 .loading-fixed-footer{gap:4px;padding-left:5px;padding-right:5px}
 .loading-fixed-footer .loading-footer-count{font-size:15px}
 .loading-fixed-footer .loading-lines-trigger{font-size:10px;padding:6px 4px}
 .loading-fixed-footer .loading-footer-button{font-size:10px;padding:6px 5px}
}

/* Loading v4: large minus target and only the current line quantity in the tile footer. */
.loading-scroll-items .loading-tile-bottom{display:grid;grid-template-columns:44% 56%;min-height:39px;align-items:stretch}
.loading-scroll-items .loading-undo{font-size:34px;font-weight:900;line-height:1;min-height:39px;border-right:2px solid #1c252b;touch-action:manipulation}
.loading-scroll-items .loading-tile-bottom strong{font-size:18px;font-weight:900;display:grid;place-items:center;min-width:0}
.loading-scroll-items .loading-tile-main:disabled{opacity:.7}
.loading-edit-photo{max-height:34dvh;width:auto;object-fit:contain;margin:0 auto 12px}
.loading-popup-body #loading-edit-save{width:100%;min-height:44px}

/* v5: bigger legible tiles and operational loading-day controls. */
.loading-scroll-items .loading-tile-top{min-height:35px;align-items:stretch}
.loading-scroll-items .loading-tile-top span{font-size:13px;padding:7px 3px}
.loading-scroll-items .loading-tile-top strong{font-size:15px}
.loading-scroll-items .loading-tile-main strong{font-size:16px;line-height:1.22}
.loading-scroll-items .loading-tile-main{min-height:68px}
.loading-day-nav{display:flex;align-items:center;gap:5px;flex-wrap:nowrap}
.loading-day-nav>button:not(.btn){min-width:33px;min-height:35px;border:1px solid #bdcfe0;border-radius:7px;background:#edf4fb;font-size:24px;color:#174b79}
.loading-day-nav input{min-width:0;max-width:150px;font-size:14px;min-height:35px;border:1px solid #bdcfe0;border-radius:7px;padding:3px}
.loading-more-actions{grid-template-columns:1fr 1fr}
@media(max-width:680px){
 .loading-scroll-items .loading-tile-main strong{font-size:15px}
 .loading-scroll-items .loading-tile-top span{font-size:12px}
 .loading-scroll-items .loading-tile-top strong{font-size:14px}
 .loading-section-head{flex-wrap:wrap;gap:7px}
 .loading-day-nav{width:100%;justify-content:flex-end}
}

/* v6: stronger line navigation and finish controls, explicit draft Save. */
.loading-fixed-footer{min-height:62px;padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px));gap:7px}
.loading-fixed-footer .loading-lines-trigger{font-size:14px;font-weight:900;min-height:46px;padding:9px 10px;background:#dceaf8;color:#103d69;border:2px solid #2474ae;box-shadow:0 1px 3px #134c7a33}
.loading-fixed-footer .loading-footer-button{font-size:13px;font-weight:900;min-height:46px;padding:9px 10px;max-width:none}
.loading-footer-actions{display:flex;align-items:stretch;gap:5px;min-width:0;flex:1}
.loading-footer-actions .loading-footer-button{flex:1;min-width:0}
.loading-footer-actions .loading-save-only{background:#e8f1f9;color:#174b79;border:2px solid #aac8df}
@media(max-width:390px){
 .loading-fixed-footer{gap:4px;padding-left:5px;padding-right:5px}
 .loading-fixed-footer .loading-lines-trigger{font-size:12px;padding:8px 5px;min-height:44px}
 .loading-fixed-footer .loading-footer-button{font-size:11px;padding:8px 5px;min-height:44px}
 .loading-footer-actions{gap:3px}
 .loading-fixed-footer .loading-footer-count{font-size:13px}
}

/* Refined loading options menu: compact, consistent with PF-ERP blue/white theme. */
.loading-menu-intro{background:linear-gradient(120deg,#123f69,#216f9d);color:#fff;border-radius:12px;padding:14px 15px;margin:0 0 15px;display:grid;gap:5px}
.loading-menu-intro strong{font-size:15px;line-height:1.3}
.loading-menu-intro span{font-size:12px;color:#dceaf7}
.loading-menu-section{margin:0 0 15px}
.loading-menu-heading{font-size:10px;font-weight:900;letter-spacing:1.1px;color:#637c92;margin:0 0 8px 3px}
.loading-menu-link{display:flex;align-items:center;gap:11px;width:100%;text-align:left;text-decoration:none;color:#163c5f;background:#fff;border:1px solid #dce6ef;padding:11px 12px;min-height:62px;border-radius:10px;margin-bottom:7px;box-shadow:0 2px 7px #173c5a0a;cursor:pointer;font-family:inherit}
.loading-menu-link>span:nth-child(2){flex:1;display:grid;gap:4px;min-width:0}
.loading-menu-link strong{font-size:13px;font-weight:800;line-height:1.25}
.loading-menu-link small{font-size:11px;color:#748699;line-height:1.2}
.loading-menu-icon{width:35px;height:35px;display:grid;place-items:center;flex-shrink:0;border-radius:9px;background:#e9f3fc;color:#1d689b;font-size:20px;font-weight:800}
.loading-menu-arrow{font-size:18px;color:#7894aa}
.loading-menu-link:active{background:#f0f7ff}
.loading-menu-complete .loading-menu-icon{background:#e4f7ee;color:#158354}
.loading-menu-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 13px}
.loading-menu-summary>span{background:#f2f7fb;border:1px solid #e2eaf1;border-radius:9px;padding:10px 8px;font-size:11px;color:#61758a;display:grid;gap:4px}
.loading-menu-summary strong{font-size:15px;color:#173e63}
.loading-menu-section .loading-more-step{margin:0;padding:11px 12px;border-color:#dce6ef;background:#f7fafd}
.loading-menu-section .loading-more-step label{font-size:13px;color:#254763}

/* Centered line completion confirmation. */
.loading-success-dialog{width:min(92vw,390px);max-width:390px;border:0;border-radius:18px;padding:0;box-shadow:0 20px 65px #102b4850;text-align:center}
.loading-success-dialog::backdrop{background:#10273c99;backdrop-filter:blur(3px)}
.loading-success-dialog .loading-popup-head{display:none}
.loading-success-dialog .loading-popup-body{padding:25px 22px 23px;display:flex;flex-direction:column;align-items:center}
.loading-success-mark{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;background:#dcf7e8;color:#16834f;font-size:37px;font-weight:900;margin:0 auto 15px;border:2px solid #b2e8c8}
.loading-success-title{font-size:19px;font-weight:900;color:#183b59;line-height:1.3}
.loading-success-subtitle{font-size:15px;color:#526c82;margin:10px 0 23px;line-height:1.4}
.loading-success-continue{width:100%;min-height:49px;border-radius:11px;font-size:15px;font-weight:800}

/* Administrative cleanup controls for historical loading records. */
.loading-cleanup-entry{width:100%;min-height:43px;text-align:center;border:1px solid #b7cce0;border-radius:10px;background:#f0f6fc;color:#174a75;font-weight:800;font-size:13px;cursor:pointer}
.loading-cleanup-field{display:grid;gap:7px;margin:12px 0;font-size:12px;font-weight:800;color:#274b69}
.loading-cleanup-field .input,.loading-cleanup-field .select{min-height:43px;width:100%}
.loading-cleanup-warning{background:#fff7eb;border:1px solid #f1d7a7;border-radius:9px;padding:11px 12px;font-size:12px;line-height:1.55;color:#78522b}
.loading-cleanup-preview{width:100%;min-height:44px;margin:9px 0}
.loading-cleanup-count{display:grid;gap:5px;background:#edf5fd;border:1px solid #cfe0ef;border-radius:10px;padding:13px;margin:12px 0}
.loading-cleanup-count strong{font-size:17px;color:#164771}
.loading-cleanup-count span{font-size:12px;color:#54738c}
.loading-cleanup-delete{background:#b72832;color:#fff;width:100%;min-height:46px;font-size:13px;font-weight:900;border:0;border-radius:9px}
.loading-cleanup-delete:disabled{opacity:.5}

/* Loading product filter: hide saved red/green tiles, show instantly on toggle. */
.loading-scroll-items .loading-tile[hidden]{display:none!important}
.loading-head-sub{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.loading-hide-toggle{display:inline-flex;align-items:center;gap:9px;min-height:40px;cursor:pointer;user-select:none;flex-shrink:0}
.loading-hide-toggle input{position:absolute;width:1px;height:1px;opacity:0}
.loading-hide-track{position:relative;display:inline-block;width:42px;height:25px;border-radius:18px;background:#a5b6c7;transition:background .15s;flex-shrink:0}
.loading-hide-track:after{content:'';position:absolute;width:19px;height:19px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s}
.loading-hide-toggle input:checked+.loading-hide-track{background:#1a8d64}
.loading-hide-toggle input:checked+.loading-hide-track:after{transform:translateX(17px)}
.loading-hide-toggle input:focus-visible+.loading-hide-track{outline:3px solid #67b7ff;outline-offset:3px}
.loading-hide-label{font-size:12px;font-weight:800;line-height:1.15;color:inherit;display:grid;gap:2px}
.loading-hide-label small{font-size:10px;font-weight:600;opacity:.72}
.loading-filter-empty{grid-column:1/-1;background:#edf7f4;border:1px solid #b9e1d3;color:#1d6854;padding:20px 13px;text-align:center;border-radius:12px;font-size:13px;font-weight:700}
@media(max-width:390px){.loading-head-sub{gap:4px}.loading-hide-label{font-size:11px}.loading-hide-track{width:39px}.loading-hide-toggle input:checked+.loading-hide-track:after{transform:translateX(14px)}}

/* Loading overview: compact top-right administrative menu. */
.loading-page .pp-dense-header{position:relative}
.loading-overview-menu-trigger{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border:1px solid #c9d9e8;border-radius:10px;background:#f1f7fd;color:#1b527d;font-size:23px;font-weight:800;cursor:pointer}
.loading-overview-menu-trigger:focus-visible{outline:3px solid #69aaf0;outline-offset:2px}
.loading-overview-menu-panel{position:absolute;right:0;top:calc(100% + 6px);width:min(290px,calc(100vw - 32px));z-index:35;background:#fff;border:1px solid #d9e4ef;border-radius:12px;padding:7px;box-shadow:0 12px 35px #17354d30}
.loading-overview-menu-panel button{width:100%;min-height:49px;display:flex;align-items:center;gap:10px;padding:11px 13px;text-align:left;border:0;border-radius:8px;background:transparent;color:#234a6b;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.loading-overview-menu-panel button:active{background:#edf5fc}

/* Compact Loading Supervisor overview, with planning-style center hierarchy. */
.loading-page{gap:9px;padding-bottom:15px}
.loading-page .pp-dense-header{min-height:43px;gap:7px}
.loading-page .pp-dense-header h1{font-size:17px;line-height:1.2}
.loading-page .pp-center-metric{font-size:11px;white-space:nowrap}
.loading-new{gap:9px;padding:11px 12px;border-radius:11px}
.loading-start-grid{gap:9px}
.loading-start-grid label{gap:4px;font-size:11px}
.loading-start-grid select{min-height:39px;font-size:13px}
.loading-new .btn{min-height:39px;font-size:12px;padding:8px 13px}
.loading-page h2{font-size:14px}
.loading-section-head{gap:7px;flex-wrap:wrap}
.loading-day-nav{gap:4px}
.loading-day-nav input[type=date]{min-width:0}
.loading-session-list{gap:6px}
.loading-session-row{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:2px 10px;padding:10px 12px;border-radius:10px;min-height:72px}
.loading-session-center{grid-column:1;grid-row:1;display:block;font-size:15px;font-weight:850;line-height:1.2;color:#163d63;overflow-wrap:anywhere}
.loading-session-party{grid-column:1;grid-row:2;display:block;font-size:12px;font-weight:400;line-height:1.3;color:#344d66;overflow-wrap:anywhere}
.loading-session-row .loading-session-sub{grid-column:1;grid-row:3;font-size:11px;font-weight:400;line-height:1.25;color:#728296}
.loading-session-row>.loading-status{grid-column:2;grid-row:1 / span 3;align-self:center;font-size:10px;padding:5px 8px}
@media(max-width:390px){.loading-page .pp-dense-header h1{font-size:15px}.loading-session-row{padding:9px 10px}.loading-session-center{font-size:14px}.loading-new{padding:10px}.loading-start-grid{gap:7px}}

.loading-session-row .loading-session-vehicle{font-size:12px;font-weight:850;color:#213e5b;letter-spacing:.1px}


/* Loading v14: predictable compact footer on Android and iPhone. */
.loading-workspace .loading-fixed-footer{
 display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.86fr) minmax(0,1.3fr);
 align-items:center;justify-content:initial;gap:7px;min-height:0;
 padding:6px 9px calc(6px + env(safe-area-inset-bottom,0px));
 background:#fff;box-sizing:border-box;
}
.loading-fixed-footer .loading-lines-trigger{
 display:flex;align-items:center;justify-content:center;width:100%;min-width:0;
 height:44px;min-height:44px;max-width:none;padding:6px 5px;margin:0;
 white-space:nowrap;font-family:inherit;font-size:clamp(11px,3vw,14px);
 font-weight:900;line-height:1.1;text-overflow:ellipsis;overflow:hidden;
 border:2px solid #2577b6;border-radius:9px;background:#e3effa;color:#164a70;
 box-shadow:none;-webkit-appearance:none;appearance:none;
}
.loading-footer-progress{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:2px}
.loading-footer-progress small{font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.4px;line-height:1;color:#6d8093}
.loading-fixed-footer .loading-footer-progress .loading-footer-count{
 max-width:100%;font-size:clamp(11px,3vw,16px);font-weight:900;line-height:1.18;
 letter-spacing:-.55px;white-space:nowrap;font-variant-numeric:tabular-nums;color:#164a70;
}
.loading-fixed-footer>.loading-footer-button{
 box-sizing:border-box;width:100%;min-width:0;max-width:none;height:44px;min-height:44px;
 border:0;border-radius:9px;padding:6px 7px;margin:0;
 background:#177851;color:#fff;font-family:inherit;font-weight:850;
 font-size:clamp(11px,3vw,13px);line-height:1.2;text-align:center;
 -webkit-appearance:none;appearance:none;white-space:normal;
}
.loading-fixed-footer>.loading-footer-state{
 width:100%;min-width:0;display:flex;align-items:center;justify-content:center;
 min-height:44px;font-size:11px;text-align:center;line-height:1.15;color:#41627c;
}
.loading-workspace button,.loading-popup button,.loading-workspace input,.loading-popup input{
 font-family:inherit;-webkit-tap-highlight-color:transparent;
}
.loading-workspace,.loading-popup{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.loading-workspace button,.loading-popup button{touch-action:manipulation}
@media(max-width:370px){
 .loading-workspace .loading-fixed-footer{grid-template-columns:minmax(0,1fr) minmax(0,.82fr) minmax(0,1.25fr);gap:4px;padding-left:5px;padding-right:5px}
 .loading-fixed-footer .loading-lines-trigger{font-size:11px;padding:5px 3px}
 .loading-fixed-footer .loading-footer-progress .loading-footer-count{font-size:11px;letter-spacing:-.65px}
 .loading-fixed-footer>.loading-footer-button{font-size:11px;padding:5px 3px}
}

/* Text link under success confirmation, not a second primary button. */
.loading-success-dialog .loading-success-subtitle{margin-bottom:17px}
.loading-success-back{
 display:inline-flex;align-items:center;justify-content:center;text-align:center;
 min-height:44px;margin:9px 0 0;padding:8px 4px;
 color:#1a659c;font-size:13px;font-weight:750;text-decoration:underline;
 text-underline-offset:3px;cursor:pointer;
}
.loading-success-back[aria-disabled="true"]{opacity:.5;pointer-events:none}

/* Completed line actions remain separate from the active line. */
.loading-lines-dialog{width:min(calc(100vw - 28px),440px);border-radius:15px}
.loading-lines-dialog .loading-popup-body{padding:12px 14px 15px}
.loading-lines-dialog .loading-popup-line{
 display:flex;align-items:center;gap:10px;justify-content:space-between;
 padding:10px 11px;margin-bottom:7px;border:1px solid #e0e9f1;
 background:#f9fbfd;border-radius:9px;
}
.loading-lines-dialog .loading-popup-line>div:first-child{min-width:0;display:grid;gap:3px}
.loading-lines-dialog .loading-popup-line strong{font-size:14px;color:#183d60}
.loading-lines-dialog .loading-popup-line small{font-size:11px;color:#647c91}
.loading-lines-dialog .loading-popup-line-buttons{flex-shrink:0}
.loading-lines-dialog .loading-popup-line-buttons .btn{min-height:39px;min-width:91px;border-radius:8px;font-weight:750}
.loading-popup-continue{margin-top:13px;padding-top:13px;border-top:1px solid #dce7f0;display:grid;gap:7px}
.loading-continue-line{width:100%;min-height:48px;display:flex;justify-content:center;align-items:center;gap:8px;border:0;border-radius:10px;background:#167951;color:#fff;font-size:14px;font-weight:850;cursor:pointer}
.loading-continue-line span{font-size:22px;line-height:1}

/* Clear, two-choice editing dialog: use camera or retain existing image. */
.loading-edit-dialog{width:min(calc(100vw - 28px),430px);border-radius:17px}
.loading-edit-dialog .loading-popup-head{padding:10px 15px}
.loading-edit-dialog .loading-popup-body{padding:15px 17px 17px}
.loading-edit-intro{display:grid;gap:4px;margin-bottom:13px}
.loading-edit-intro strong{font-size:15px;color:#153c60}
.loading-edit-intro span{font-size:12px;color:#64798e;line-height:1.4}
.loading-edit-photo-wrap{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px;border:1px solid #e0e8f0;border-radius:11px;background:#f7fafd;margin-bottom:13px}
.loading-edit-photo-wrap .loading-edit-photo{display:block;max-height:155px;max-width:100%;width:auto;height:auto;object-fit:contain;margin:0}
.loading-edit-photo-wrap small{font-size:11px;color:#71859a}
.loading-edit-choices{display:grid;gap:9px}
.loading-edit-camera,.loading-edit-existing{
 width:100%;min-height:48px;display:flex;justify-content:center;align-items:center;gap:9px;
 padding:10px 11px;border-radius:10px;font-size:13px;font-weight:850;
 font-family:inherit;text-align:center;cursor:pointer;line-height:1.2;
 -webkit-appearance:none;appearance:none;
}
.loading-edit-camera{border:1px solid #135b9a;background:#176aa8;color:#fff}
.loading-edit-camera span{font-size:19px}
.loading-edit-existing{border:1.5px solid #a5becf;background:#f2f7fb;color:#174b70}
.loading-edit-camera:disabled,.loading-edit-existing:disabled{opacity:.55;cursor:wait}
.loading-edit-hint{font-size:11px;line-height:1.55;color:#687b8d;margin:12px 1px 0}


/* Loading v15: full-size saved photo preview, with a separate X-to-close layer. */
.loading-edit-dialog{width:min(calc(100vw - 22px),500px)}
.loading-edit-dialog .loading-popup-body{padding:13px 15px 16px}
.loading-edit-photo-wrap.loading-edit-photo-preview{
 box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:9px;width:100%;padding:9px;border:1px solid #cfdfed;border-radius:12px;
 background:#f4f8fc;color:#1b527d;cursor:zoom-in;appearance:none;-webkit-appearance:none;
 font-family:inherit;
}
.loading-edit-dialog .loading-edit-photo-wrap .loading-edit-photo{
 display:block;width:100%;max-width:100%;height:auto;max-height:min(41dvh,360px);
 object-fit:contain;margin:0 auto;border-radius:7px;
}
.loading-photo-expand{font-size:12px;font-weight:800;color:#205d8f;line-height:1.3}
.loading-edit-photo-preview:focus-visible{outline:3px solid #327db2;outline-offset:2px}
.loading-full-photo-dialog{
 box-sizing:border-box;width:min(calc(100vw - 12px),1000px);
 height:min(96dvh,960px);max-width:none;max-height:none;overflow:hidden;
 padding:0;border:0;border-radius:14px;background:#101b28;color:#fff;
 box-shadow:0 20px 65px #07142299;
}
.loading-full-photo-dialog[open]{display:flex;flex-direction:column}
.loading-full-photo-dialog::backdrop{background:#000c}
.loading-full-photo-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 13px;background:#1a2b3c}
.loading-full-photo-header strong{font-size:14px;line-height:1.3;font-weight:850}
.loading-full-photo-close{
 flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;
 border:1px solid #8394a3;border-radius:50%;background:#344b5e;
 color:#fff;font-size:21px;font-weight:800;cursor:pointer;
}
.loading-full-photo-body{flex:1 1 auto;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;padding:8px;overflow:auto}
.loading-full-photo-body img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}

/* Loading v16: camera-first, in-app only. Native camera chooser intentionally removed. */
.loading-camera-dialog{
 box-sizing:border-box;width:min(calc(100vw - 16px),630px);
 height:min(94dvh,850px);max-height:none;max-width:none;
 padding:0;border:1px solid #415263;border-radius:20px;
 overflow:hidden;background:#0c1724;color:#fff;
 box-shadow:0 24px 80px #03101fe0;
}
.loading-camera-dialog[open]{display:flex;flex-direction:column}
.loading-camera-dialog::backdrop{background:#081522e5;backdrop-filter:blur(4px)}
.loading-camera-head{
 flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;
 gap:10px;padding:14px 17px;background:#172b3f;
 border-bottom:1px solid #ffffff24;
}
.loading-camera-heading{display:flex;flex-direction:column;gap:5px;min-width:0}
.loading-camera-eyebrow{
 font-size:10px;font-weight:850;letter-spacing:1.45px;color:#95b6d1;
}
.loading-camera-heading strong{
 font-size:clamp(17px,4.2vw,21px);line-height:1.15;
 letter-spacing:-.35px;font-weight:900;color:#fff;
}
.loading-camera-close{
 flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;
 border:1px solid #60768b;background:#30465a;color:#fff;
 border-radius:50%;font-family:inherit;font-size:22px;font-weight:700;
 cursor:pointer;-webkit-appearance:none;appearance:none;
}
.loading-camera-close:focus-visible,.loading-camera-shutter:focus-visible,
.loading-camera-review-actions button:focus-visible,.loading-camera-retry:focus-visible{
 outline:3px solid #7fc7ff;outline-offset:3px;
}
.loading-camera-frame{
 flex:1 1 auto;min-height:185px;position:relative;overflow:hidden;
 background:linear-gradient(135deg,#14263b,#07121e);
 display:flex;align-items:center;justify-content:center;
 isolation:isolate;
}
.loading-camera-frame video,.loading-camera-frame .loading-camera-photo{
 display:block;width:100%;height:100%;position:absolute;inset:0;
 object-fit:cover;
}
.loading-camera-frame .loading-camera-photo{z-index:2;object-fit:contain;background:#060e17}
.loading-camera-dialog [hidden]{display:none!important}
.loading-camera-guides{
 position:absolute;inset:12% 9%;z-index:3;pointer-events:none;
}
.loading-camera-guides i{
 position:absolute;display:block;width:29px;height:29px;
 border-color:#eef7ffce;border-style:solid;
}
.loading-camera-guides i:nth-child(1){top:0;left:0;border-width:3px 0 0 3px;border-radius:8px 0 0 0}
.loading-camera-guides i:nth-child(2){top:0;right:0;border-width:3px 3px 0 0;border-radius:0 8px 0 0}
.loading-camera-guides i:nth-child(3){bottom:0;left:0;border-width:0 0 3px 3px;border-radius:0 0 0 8px}
.loading-camera-guides i:nth-child(4){bottom:0;right:0;border-width:0 3px 3px 0;border-radius:0 0 8px 0}
.loading-camera-frame[data-mode="review"] .loading-camera-guides{display:none}
.loading-camera-live,.loading-camera-ready{
 position:absolute;top:15px;left:15px;z-index:4;
 display:flex;align-items:center;gap:7px;
 padding:8px 11px;border:1px solid #ffffff45;border-radius:8px;
 color:#fff;background:#0b1b2ac9;
 font-size:10px;font-weight:900;letter-spacing:.8px;
}
.loading-camera-live span{width:8px;height:8px;background:#f1535b;border-radius:50%;box-shadow:0 0 0 3px #f1535b22}
.loading-camera-ready{background:#115b42d9;border-color:#5cbd94;color:#fff;font-size:11px;letter-spacing:.15px}
.loading-camera-frame-label{
 position:absolute;bottom:15px;left:50%;z-index:4;
 transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);
 box-sizing:border-box;padding:8px 16px;
 border-radius:99px;background:#0b1b2ac9;border:1px solid #ffffff55;
 font-size:14px;font-weight:900;text-align:center;letter-spacing:.3px;
 color:#fff;text-shadow:0 1px 3px #000a;pointer-events:none;
}
.loading-camera-bottom{
 flex:0 0 auto;display:flex;flex-direction:column;align-items:stretch;
 padding:10px 18px calc(17px + env(safe-area-inset-bottom,0px));
 background:#172b3f;border-top:1px solid #ffffff27;
}
.loading-camera-status{
 min-height:32px;box-sizing:border-box;padding:6px 4px;margin:0;
 color:#afc7d9;text-align:center;font-size:12px;line-height:1.4;
 font-weight:650;
}
.loading-camera-capture-actions{
 display:flex;flex-direction:column;align-items:center;gap:8px;
 padding:4px 0 0;
}
.loading-camera-shutter{
 display:grid;place-items:center;width:76px;height:76px;
 padding:0;border:5px solid #f5faff;border-radius:50%;
 background:#2e718f;box-shadow:0 0 0 3px #799ebc45;
 cursor:pointer;-webkit-appearance:none;appearance:none;
 touch-action:manipulation;
}
.loading-camera-shutter span{
 display:block;width:52px;height:52px;border-radius:50%;background:#fff;
 box-shadow:inset 0 0 0 2px #e7f0f8;
}
.loading-camera-shutter:active:not(:disabled){transform:scale(.96)}
.loading-camera-shutter:disabled{opacity:.48;cursor:default}
.loading-camera-capture-actions small{
 font-size:11px;letter-spacing:.6px;font-weight:800;color:#c3d5e3;
}
.loading-camera-review-actions{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);
 gap:10px;padding:12px 0 1px;
}
.loading-camera-review-actions button,.loading-camera-retry{
 box-sizing:border-box;min-width:0;min-height:49px;
 border-radius:11px;padding:10px 12px;
 font-family:inherit;font-size:14px;font-weight:850;
 text-align:center;cursor:pointer;-webkit-appearance:none;appearance:none;
}
.loading-camera-retake{border:1px solid #69849a;background:#2b4359;color:#e5f1f9}
.loading-camera-use{border:1px solid #46a47a;background:#18875d;color:#fff}
.loading-camera-error-actions{display:flex;justify-content:center;padding:11px 0 1px}
.loading-camera-retry{width:100%;max-width:280px;border:1px solid #6a9ebf;background:#24668e;color:#fff}
.loading-camera-review-actions button:disabled,.loading-camera-retry:disabled{opacity:.5;cursor:wait}
@media(max-width:390px){
 .loading-camera-dialog{width:calc(100vw - 8px);height:min(97dvh,860px);border-radius:14px}
 .loading-camera-head{padding:11px 12px}
 .loading-camera-heading strong{font-size:17px}
 .loading-camera-bottom{padding:8px 11px calc(12px + env(safe-area-inset-bottom,0px))}
 .loading-camera-status{font-size:11px}
 .loading-camera-shutter{height:70px;width:70px}
 .loading-camera-shutter span{height:47px;width:47px}
 .loading-camera-frame-label{font-size:13px}
}

/* Edited-line confirmation: scannable per-product before/after comparison. */
.loading-edit-success-dialog{
 width:min(calc(100vw - 24px),460px);max-width:460px;
 border:0;border-radius:19px;padding:0;box-shadow:0 23px 75px #112b4366;
}
.loading-edit-success-dialog::backdrop{background:#0c243ba8;backdrop-filter:blur(2px)}
.loading-edit-success-dialog .loading-popup-head{display:none}
.loading-edit-success-dialog .loading-popup-body{
 box-sizing:border-box;max-height:min(88dvh,790px);overflow-y:auto;
 display:flex;flex-direction:column;align-items:center;padding:22px 17px 17px;
}
.loading-edit-success-mark{
 display:grid;place-items:center;width:57px;height:57px;flex-shrink:0;
 background:#e0f6e7;color:#168151;border:2px solid #b6e4ca;border-radius:50%;
 font-size:32px;font-weight:900;margin-bottom:10px;
}
.loading-edit-success-title{
 margin:0;color:#153954;font-size:19px;line-height:1.28;font-weight:900;text-align:center;
}
.loading-edit-success-description{
 margin:6px 0 14px;text-align:center;color:#587087;font-size:12px;line-height:1.45;
}
.loading-edit-success-list{width:100%;display:grid;gap:9px;margin:0 0 12px}
.loading-change-row{box-sizing:border-box;display:grid;gap:8px;width:100%;padding:12px;border:1px solid #d9e5ef;border-radius:12px;background:#f8fbfe}
.loading-change-name{color:#173e60;font-size:14px;font-weight:900;line-height:1.25;overflow-wrap:anywhere}
.loading-change-values{display:grid;grid-template-columns:minmax(0,1fr) 21px minmax(0,1fr);gap:4px;align-items:center}
.loading-change-values>div{display:grid;gap:4px;min-width:0}
.loading-change-values>div:first-child{text-align:left}
.loading-change-values>div:last-child{text-align:right}
.loading-change-values small{font-size:10px;font-weight:700;color:#688096;line-height:1.1}
.loading-change-values strong{font-size:22px;line-height:1.1;color:#153d61;font-weight:900;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.loading-change-arrow{align-self:end;padding-bottom:3px;text-align:center;color:#6785a1;font-size:20px;font-weight:800}
.loading-change-delta{justify-self:end;padding:4px 8px;border-radius:20px;font-size:11px;font-weight:850}
.loading-change-added{background:#e1f4e9;color:#166c46}
.loading-change-reduced{background:#fff0eb;color:#a44325}
.loading-edit-no-changes{width:100%;box-sizing:border-box;margin:2px 0 12px;padding:13px;border:1px solid #d8e5f0;border-radius:10px;background:#f7fafc;color:#61788c;font-size:12px;text-align:center}
.loading-edit-total{
 box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;
 gap:8px;width:100%;padding:12px;border-top:1px solid #dae4ec;
 font-size:12px;color:#587087;font-weight:750;
}
.loading-edit-total strong{color:#173e60;font-size:15px;font-weight:900;white-space:nowrap;font-variant-numeric:tabular-nums}
.loading-edit-total strong span{font-size:12px;color:#7790a5}
.loading-edit-success-ok{
 position:sticky;bottom:0;flex-shrink:0;width:100%;min-height:50px;margin-top:5px;
 padding:10px;border:0;border-radius:10px;background:#176d9d;color:#fff;
 font-size:14px;font-weight:900;font-family:inherit;cursor:pointer;
}
@media(max-width:375px){.loading-edit-success-dialog .loading-popup-body{padding:18px 12px 12px}.loading-change-values strong{font-size:20px}.loading-edit-success-title{font-size:17px}}


/* Loading v17: clear captured-image display and separate photo-only line action. */
.loading-camera-frame[data-mode="review"] video{visibility:hidden}
.loading-camera-frame[data-mode="review"] .loading-camera-photo{
 display:block!important;visibility:visible;opacity:1;z-index:2;
 background:#0d1822;
}
.loading-camera-frame[data-mode="review"] .loading-camera-frame-label{z-index:5}
.loading-camera-frame[data-mode="live"] video{visibility:visible}
.loading-lines-dialog .loading-popup-line-buttons{display:flex;align-items:center;gap:7px;flex-shrink:0}
.loading-lines-dialog .loading-line-photo-preview{
 display:grid;place-items:center;flex:0 0 39px;width:39px;min-width:39px;
 height:39px;min-height:39px;margin:0;padding:0;
 color:#1d5b88;background:#ebf4fb;border:1.5px solid #c4d8e8;
 border-radius:9px;font-size:19px;line-height:1;
 cursor:pointer;touch-action:manipulation;-webkit-appearance:none;appearance:none;
}
.loading-lines-dialog .loading-line-photo-preview:active{background:#d9eefa}
.loading-lines-dialog .loading-line-photo-preview:focus-visible{outline:3px solid #3f91ca;outline-offset:2px}
@media(max-width:390px){
 .loading-lines-dialog .loading-popup-line{gap:6px;padding:9px 8px}
 .loading-lines-dialog .loading-popup-line-buttons{gap:5px}
 .loading-lines-dialog .loading-line-photo-preview{width:37px;min-width:37px;flex-basis:37px;height:38px;min-height:38px}
 .loading-lines-dialog .loading-popup-line-buttons .btn{min-width:84px;font-size:11px;padding:7px 8px}
}


/* Loading v18: real camera torch control (only enabled where the browser supports it). */
.loading-camera-controls{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-shrink:0}
.loading-camera-flash{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 min-width:102px;min-height:42px;margin:0;padding:8px 11px;
 border:1px solid #6b8195;border-radius:11px;
 background:#2f465a;color:#eaf2f9;font-family:inherit;
 font-size:12px;font-weight:850;line-height:1.1;white-space:nowrap;
 cursor:pointer;-webkit-appearance:none;appearance:none;
 touch-action:manipulation;transition:background .15s,border-color .15s;
}
.loading-camera-flash-icon{font-size:21px;line-height:1;font-weight:900}
.loading-camera-flash.is-on{
 border-color:#f6d67e;background:#ffdf79;color:#352807;
 box-shadow:0 0 0 2px #ffdf7924;
}
.loading-camera-flash:disabled{opacity:.5;cursor:default}
.loading-camera-flash:focus-visible{outline:3px solid #88c9ff;outline-offset:2px}
@media(max-width:390px){
 .loading-camera-controls{gap:6px}
 .loading-camera-flash{min-width:85px;min-height:41px;padding:7px 8px;font-size:11px;gap:5px}
 .loading-camera-flash-icon{font-size:18px}
}


/* Loading v19: line-list dialogs keep controls inside narrow Android/iPhone screens. */
.loading-lines-dialog{
 box-sizing:border-box;width:min(440px,calc(100vw - 18px));max-width:calc(100vw - 18px);
 max-height:min(86dvh,740px);overflow:hidden;border-radius:15px;
}
.loading-lines-dialog .loading-popup-head{min-width:0;padding:10px 13px;gap:8px}
.loading-lines-dialog .loading-popup-head strong{
 min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:1.25;
}
.loading-lines-dialog .loading-popup-body{
 box-sizing:border-box;display:flex;flex-direction:column;min-width:0;min-height:0;
 max-height:calc(86dvh - 60px);padding:9px 10px 12px;overflow:hidden;
}
.loading-lines-list{
 flex:1 1 auto;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;
 overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
 display:grid;align-content:start;gap:6px;
}
.loading-lines-dialog .loading-popup-line{
 box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;
 align-items:center;gap:7px;margin:0;padding:9px 10px;
 border:1px solid #dee9f2;background:#fbfcfe;border-radius:10px;
 min-width:0;max-width:100%;
}
.loading-lines-dialog .loading-popup-line-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.loading-lines-dialog .loading-popup-line-info strong{font-size:14px;line-height:1.1;color:#173d60;font-weight:850}
.loading-lines-dialog .loading-popup-line-info small{
 display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;
 color:#627991;font-size:10px;line-height:1.2;font-weight:550;min-width:0;
}
.loading-line-status{font-size:10px;font-weight:750;white-space:nowrap}
.loading-line-status.is-complete{color:#147449}
.loading-line-status.is-progress{color:#97611c}
.loading-lines-dialog .loading-popup-line-buttons{
 display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;gap:6px;
 min-width:0;max-width:100%;
}
.loading-lines-dialog .loading-line-photo-preview{
 flex:0 0 38px;width:38px;min-width:38px;height:38px;min-height:38px;
 font-size:18px;border-radius:8px;
}
.loading-lines-dialog .loading-popup-line-buttons .btn{
 flex:0 0 auto;min-width:82px;min-height:38px;padding:6px 9px;
 border-radius:8px;font-size:11px;line-height:1.1;white-space:nowrap;
}
.loading-lines-dialog .loading-popup-continue{
 box-sizing:border-box;flex:0 0 auto;min-width:0;margin:10px 0 0;
 padding:10px 0 0;border-top:1px solid #e0e8ef;
 background:#fff;
}
.loading-lines-dialog .loading-continue-line{min-height:45px;font-size:13px}
@media(max-width:360px){
 .loading-lines-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px)}
 .loading-lines-dialog .loading-popup-body{padding:8px}
 .loading-lines-dialog .loading-popup-line{
  grid-template-columns:minmax(0,1fr);gap:7px;padding:8px;
 }
 .loading-lines-dialog .loading-popup-line-buttons{justify-content:flex-end}
 .loading-lines-dialog .loading-popup-line-buttons .btn{min-width:91px}
 .loading-lines-dialog .loading-popup-line-info small{gap:4px}
}

/* Loading v19: 5–6 edited products fit neatly in a scrollable comparison. */
.loading-edit-success-dialog{
 box-sizing:border-box;width:min(450px,calc(100vw - 18px));
 max-width:calc(100vw - 18px);max-height:min(88dvh,730px);overflow:hidden;
}
.loading-edit-success-dialog .loading-popup-body{
 box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;
 gap:0;min-width:0;min-height:0;max-height:min(88dvh,730px);
 overflow:hidden;padding:15px 14px 12px;
}
.loading-edit-success-dialog .loading-edit-success-mark{
 width:43px;height:43px;min-height:43px;font-size:25px;
 margin:0 auto 6px;flex-shrink:0;
}
.loading-edit-success-dialog .loading-edit-success-title{
 font-size:17px;line-height:1.2;text-align:center;
}
.loading-edit-success-dialog .loading-edit-success-description{
 font-size:11px;line-height:1.35;margin:4px 0 10px;text-align:center;
}
.loading-edit-changes-heading{
 width:100%;box-sizing:border-box;padding:0 2px 6px;
 font-size:11px;font-weight:850;color:#4f6d87;letter-spacing:.15px;
}
.loading-edit-success-dialog .loading-edit-success-list{
 box-sizing:border-box;width:100%;min-height:0;min-width:0;
 flex:1 1 auto;overflow-y:auto;overflow-x:hidden;
 overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
 display:grid;align-content:start;gap:5px;margin:0;padding:0 2px 2px 0;
}
.loading-edit-success-dialog .loading-change-row{
 display:grid;gap:5px;box-sizing:border-box;width:100%;min-width:0;
 padding:8px 10px;background:#f8fbfe;border:1px solid #e1e9f1;border-radius:9px;
}
.loading-change-row-head{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0}
.loading-edit-success-dialog .loading-change-name{
 min-width:0;flex:1 1 auto;font-size:12px;line-height:1.2;
 font-weight:850;overflow-wrap:anywhere;color:#153d61;
}
.loading-edit-success-dialog .loading-change-delta{
 flex:0 0 auto;justify-self:auto;padding:3px 7px;
 font-size:10px;font-weight:850;white-space:nowrap;
}
.loading-edit-success-dialog .loading-change-values{
 display:flex;justify-content:flex-start;align-items:baseline;
 gap:8px;min-width:0;
}
.loading-edit-success-dialog .loading-change-values>span:not(.loading-change-arrow){
 display:inline-flex;align-items:baseline;gap:5px;min-width:0;
 color:#677f94;font-size:10px;line-height:1.2;font-weight:700;
}
.loading-edit-success-dialog .loading-change-values strong{
 font-size:15px;font-weight:900;font-variant-numeric:tabular-nums;
 color:#163d61;line-height:1.1;overflow-wrap:anywhere;
}
.loading-edit-success-dialog .loading-change-arrow{
 flex:0 0 auto;align-self:center;padding:0;color:#7991a5;font-size:14px;
}
.loading-edit-success-footer{
 box-sizing:border-box;flex:0 0 auto;display:flex;flex-direction:column;gap:7px;
 width:100%;min-width:0;background:#fff;
 padding-top:9px;border-top:1px solid #e0e8ef;margin-top:8px;
}
.loading-edit-success-dialog .loading-edit-total{
 min-width:0;padding:3px 1px;border:0;
 font-size:11px;line-height:1.2;
}
.loading-edit-success-dialog .loading-edit-total strong{
 font-size:14px;white-space:normal;text-align:right;
}
.loading-edit-success-dialog .loading-edit-success-ok{
 position:static;width:100%;min-height:44px;margin:0;padding:9px 10px;
 font-size:13px;flex-shrink:0;
}
@media(max-width:365px){
 .loading-edit-success-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px)}
 .loading-edit-success-dialog .loading-popup-body{padding:12px 10px 10px}
 .loading-edit-success-dialog .loading-change-row{padding:7px 8px}
 .loading-edit-success-dialog .loading-change-values{gap:5px}
 .loading-edit-success-dialog .loading-change-values>span:not(.loading-change-arrow){
  gap:3px;font-size:9px;
 }
 .loading-edit-success-dialog .loading-change-values strong{font-size:14px}
}

/* Unsaved drafts remain visible when opening/switching Loading Lines. */
.loading-lines-dialog .loading-line-draft-note{color:#996217;font-size:10px;font-weight:800;line-height:1.2}


/* Vehicle finish long-press now lives only in the Loading header. */
.loading-finish-confirm-dialog{
 box-sizing:border-box;width:min(410px,calc(100vw - 24px));max-width:none;
 padding:21px 19px;border:1px solid #e7c3c5;border-radius:16px;
 background:#fff;color:#24354b;box-shadow:0 22px 80px #13283e55;
}
.loading-finish-confirm-dialog::backdrop{background:#0e233e99;backdrop-filter:blur(2px)}
.loading-finish-confirm-head{display:flex;align-items:flex-start;gap:10px}
.loading-finish-warning{
 display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;
 border-radius:50%;background:#fff0f1;color:#b42330;
 font-size:23px;font-weight:900;
}
.loading-finish-confirm-head h2{margin:2px 0 0;font-size:17px;font-weight:900;line-height:1.3;color:#9e2632}
.loading-finish-confirm-dialog p{margin:12px 0 19px;color:#63768b;font-size:12px;line-height:1.5}
.loading-finish-confirm-actions{display:grid;grid-template-columns:1fr 1.3fr;gap:8px}
.loading-finish-confirm-actions button{
 box-sizing:border-box;min-width:0;min-height:46px;border-radius:9px;
 padding:9px;font-family:inherit;font-size:12px;line-height:1.25;font-weight:850;cursor:pointer;
}
.loading-finish-cancel{border:1px solid #c8d6e2;background:#f7fafc;color:#31536f}
.loading-finish-yes{border:1px solid #ad2737;background:#bd293b;color:#fff}
.loading-finish-confirm-actions button:focus-visible{outline:3px solid #76b7e5;outline-offset:2px}


/* Compact red Finish Loading button beside Hide Red & Green switch. */
.loading-head-tools{
 margin-left:auto;display:flex;align-items:center;justify-content:flex-end;
 gap:9px;min-width:0;
}
.loading-head-tools .loading-hide-toggle{
 flex:0 1 auto;min-width:0;margin:0;gap:7px;
}
.loading-head-finish{
 box-sizing:border-box;display:flex;flex-direction:column;
 align-items:center;justify-content:center;flex:0 0 auto;
 min-width:112px;min-height:48px;padding:7px 12px;
 border:1px solid #9a202b;border-radius:8px;
 color:#fff;background:#bb2939;font-family:inherit;
 font-size:13px;font-weight:900;line-height:1.12;
 cursor:pointer;text-align:center;
 touch-action:none;user-select:none;-webkit-user-select:none;
 -webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;
}
.loading-head-finish small{
 display:block;margin-top:2px;color:#fff4f4;
 font-size:11px;line-height:1.12;font-weight:800;
}
.loading-head-finish.loading-longpress-active{
 background:#861a29;border-color:#5e111c;
 box-shadow:inset 0 0 0 2px #ffffff88,0 0 0 3px #edb3bb75;
 transform:scale(.98);
}
.loading-head-finish:focus-visible{outline:3px solid #efb9c2;outline-offset:2px}
@media(max-width:500px){
 .loading-head-sub{gap:6px;padding:4px 8px 5px}
 .loading-head-help{font-size:10px;line-height:1.1}
 .loading-head-tools{gap:6px}
 .loading-head-tools .loading-hide-toggle{gap:5px}
 .loading-head-tools .loading-hide-label{font-size:11px}
 .loading-head-finish{min-width:105px;min-height:46px;padding:6px 9px;font-size:12px}
}
@media(max-width:385px){
 .loading-head-sub{justify-content:flex-end;gap:2px}
 .loading-head-help{display:none}
 .loading-head-tools{width:100%;justify-content:space-between;gap:7px}
 .loading-head-tools .loading-hide-toggle{min-height:37px}
}


/* Completed vehicle: long-press status at the bottom-right to resume safely. */
.loading-fixed-footer>.loading-resume-vehicle{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 box-sizing:border-box;width:100%;min-width:0;min-height:44px;
 padding:5px 4px;border:1px solid #7ea6bd;border-radius:9px;
 background:#e9f4fc;color:#1c638c;font-family:inherit;
 font-size:clamp(10px,2.8vw,12px);line-height:1.1;font-weight:900;
 text-align:center;white-space:normal;cursor:pointer;
 touch-action:none;user-select:none;-webkit-user-select:none;
 -webkit-touch-callout:none;-webkit-appearance:none;appearance:none;
}
.loading-resume-vehicle small{
 display:block;margin-top:3px;font-size:9px;font-weight:750;color:#47768f;
}
.loading-resume-vehicle.loading-longpress-active{
 border-color:#26729d;background:#cce6f9;
 box-shadow:inset 0 0 0 2px #fff,0 0 0 3px #9fc9e8;
}
.loading-resume-vehicle:focus-visible{outline:3px solid #78b4db;outline-offset:2px}
.loading-resume-dialog{width:min(calc(100vw - 24px),420px);border-radius:15px}
.loading-resume-intro strong{color:#173e60;font-size:15px}
.loading-resume-intro p{margin:6px 0 13px;color:#597187;font-size:12px;line-height:1.45}
.loading-resume-label{display:block;margin:0 0 6px;color:#314f68;font-size:12px;font-weight:800}
.loading-resume-dialog #loading-resume-reason{
 display:block;width:100%;box-sizing:border-box;min-height:43px;font-size:13px;
}
.loading-resume-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:9px;margin:17px 0 0}
.loading-resume-actions button{
 min-height:44px;padding:8px;border-radius:9px;
 font-family:inherit;font-size:12px;font-weight:850;cursor:pointer;
}
.loading-resume-cancel{background:#f4f7fb;border:1px solid #cedce7;color:#405b73}
.loading-resume-confirm{background:#186f9d;border:1px solid #1b6086;color:#fff}

/* iOS-style loading header and full-size native-proportion switches. */
.loading-head-line{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;font-size:clamp(22px,5.8vw,30px);font-weight:800;letter-spacing:-.5px;line-height:1.15;color:#d11f32;white-space:nowrap;font-variant-numeric:tabular-nums}
.loading-head-sub{flex-wrap:wrap;gap:8px}
.loading-hide-track{width:51px!important;height:31px!important;border-radius:999px!important;background:#e9e9eb!important}
.loading-hide-track:after{width:27px!important;height:27px!important;left:2px!important;top:2px!important;box-shadow:0 1px 3px #0003!important}
.loading-hide-toggle input:checked+.loading-hide-track{background:#34c759!important}
.loading-hide-toggle input:checked+.loading-hide-track:after{transform:translateX(20px)!important}
@media(max-width:385px){.loading-head-line{display:block!important}.loading-head-tools{width:auto;flex:1 1 100%}}

/* Loading options popup hierarchy */
.loading-menu-intro{margin-bottom:9px}
.loading-menu-summary{margin-bottom:18px}
.loading-popup-details{border:1px solid #cbdced;border-radius:12px;padding:0;overflow:hidden;background:#f0f6fc;margin-top:6px}
.loading-popup-details summary{list-style:none;display:flex;align-items:center;justify-content:space-between;padding:16px 15px;min-height:54px;box-sizing:border-box;color:#124e82;font-size:15px;font-weight:850;cursor:pointer}
.loading-popup-details summary::-webkit-details-marker{display:none}
.loading-popup-details[open] summary{border-bottom:1px solid #d5e3ef}
.loading-popup-details[open] summary span{transform:rotate(180deg)}
.loading-popup-details ol{padding:6px 15px 12px 35px;margin:0;background:#fff}
.loading-head-more{font-size:25px;line-height:1;font-weight:800}

/* Loading popup isolation: keep functional dialogs' original light design.
   Remove the global mobile focus halo from their close control only. */
dialog.loading-popup:not(.loading-whatsapp-success) .loading-popup-close:focus,
dialog.loading-popup:not(.loading-whatsapp-success) .loading-popup-close:focus-visible{
 outline:none!important;outline-offset:0!important;box-shadow:none!important;
 -webkit-box-shadow:none!important;
}
dialog.loading-popup .loading-popup-close{-webkit-tap-highlight-color:transparent!important}


/* Loading lines only: compact rows and keep Continue Loading fully visible.
   Preserve the existing light functional-popup palette. */
dialog.loading-lines-dialog[open]{
 display:flex;flex-direction:column;
 height:auto;max-height:min(86dvh,740px);
 overflow:hidden;
}
dialog.loading-lines-dialog .loading-popup-head{flex:0 0 auto;padding:8px 12px}
dialog.loading-lines-dialog .loading-popup-body{
 flex:1 1 auto;min-height:0;max-height:none;
 padding:7px 9px 9px;overflow:hidden;
}
dialog.loading-lines-dialog .loading-lines-list{flex:1 1 auto;min-height:0;overflow-y:auto;gap:4px}
dialog.loading-lines-dialog .loading-popup-line{
 padding:6px 9px;gap:6px;min-height:48px;
}
dialog.loading-lines-dialog .loading-popup-line-info{gap:2px}
dialog.loading-lines-dialog .loading-popup-line-info strong{font-size:13px}
dialog.loading-lines-dialog .loading-popup-line-info small{font-size:10px}
dialog.loading-lines-dialog .loading-line-photo-preview{
 flex-basis:32px;width:32px;min-width:32px;height:32px;min-height:32px;font-size:16px;
}
dialog.loading-lines-dialog .loading-popup-line-buttons .btn{
 min-height:33px;min-width:77px;padding:5px 8px;font-size:11px;
}
dialog.loading-lines-dialog .loading-popup-continue{
 flex:0 0 auto;margin-top:6px;padding-top:7px;
 padding-bottom:max(4px,env(safe-area-inset-bottom,0px));
}
dialog.loading-lines-dialog .loading-continue-line{min-height:42px}

/* Loading workstation header refresh: clean two-row hierarchy, original colors. */
.loading-workspace .loading-fixed-head{background:#fff;border-bottom:1px solid #dce4ec}
.loading-workspace .loading-head-main{min-height:52px;padding:6px 12px;gap:9px}
.loading-workspace .loading-head-party strong{font-size:15px;letter-spacing:.1px}
.loading-workspace .loading-head-party small{font-size:11px;margin-top:2px}
.loading-workspace .loading-head-vehicle{font-size:12px;font-weight:850;color:#35516b}
.loading-workspace .loading-head-sub{
 box-sizing:border-box;display:grid;grid-template-columns:auto minmax(0,1fr);
 align-items:center;gap:8px;padding:9px 12px 11px;
 background:#f8fafc;border-top:1px solid #edf1f5;
}
.loading-workspace .loading-head-line{
 font-size:clamp(20px,5vw,27px);line-height:1.1;letter-spacing:-.6px;
 padding:0;margin:0;white-space:nowrap;
}
.loading-workspace .loading-head-tools{
 margin:0;width:auto;min-width:0;display:flex;justify-content:flex-end;
 align-items:center;gap:9px;
}
.loading-workspace .loading-head-tools .loading-hide-toggle{
 min-width:0;flex:0 1 auto;gap:7px;
}
.loading-workspace .loading-hide-label{
 font-size:11px;line-height:1.15;font-weight:800;gap:2px;color:#46596c;
}
.loading-workspace .loading-hide-label small{font-size:10px;color:#718294;opacity:1}
.loading-workspace .loading-hide-track{
 width:42px!important;height:26px!important;flex:0 0 42px;
}
.loading-workspace .loading-hide-track:after{
 width:22px!important;height:22px!important;left:2px!important;top:2px!important;
}
.loading-workspace .loading-hide-toggle input:checked+.loading-hide-track:after{
 transform:translateX(16px)!important;
}
.loading-workspace .loading-head-finish{
 min-width:104px;min-height:44px;padding:6px 9px;
 border-radius:10px;font-size:12px;line-height:1.1;
 box-shadow:0 2px 5px #7e17251c;
}
.loading-workspace .loading-head-finish small{font-size:10px;margin-top:2px}
@media(max-width:390px){
 .loading-workspace .loading-head-sub{grid-template-columns:auto minmax(0,1fr);gap:5px;padding:8px 7px}
 .loading-workspace .loading-head-line{font-size:clamp(18px,5.2vw,22px)}
 .loading-workspace .loading-head-tools{gap:5px;width:auto;justify-content:flex-end}
 .loading-workspace .loading-head-tools .loading-hide-toggle{gap:4px}
 .loading-workspace .loading-hide-label{font-size:10px}
 .loading-workspace .loading-hide-label small{font-size:9px}
 .loading-workspace .loading-hide-track{width:36px!important;height:23px!important;flex-basis:36px}
 .loading-workspace .loading-hide-track:after{width:19px!important;height:19px!important}
 .loading-workspace .loading-hide-toggle input:checked+.loading-hide-track:after{transform:translateX(13px)!important}
 .loading-workspace .loading-head-finish{min-width:88px;min-height:42px;padding:5px 6px;font-size:11px}
 .loading-workspace .loading-head-finish small{font-size:9px}
}

/* Photo upload and line-save progress, only shown after native camera capture. */
.loading-save-progress{
 position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;
 padding:18px;background:#10253b99;box-sizing:border-box;
}
.loading-save-progress-card{
 width:min(100%,340px);box-sizing:border-box;background:#fff;color:#1d354c;
 border-radius:17px;padding:23px 22px;text-align:center;
 box-shadow:0 15px 50px #0004;font-family:inherit;
}
.loading-save-progress-card strong{display:block;font-size:18px;font-weight:850;margin:9px 0}
.loading-save-progress-card p{font-size:13px;line-height:1.45;margin:8px 0 15px;color:#4b6174}
.loading-save-progress-spinner{
 width:35px;height:35px;margin:0 auto;border:3px solid #dbe8f5;border-top-color:#2464a8;
 border-radius:50%;animation:loading-save-spin .8s linear infinite;
}
@keyframes loading-save-spin{to{transform:rotate(360deg)}}
.loading-save-progress-track{height:9px;background:#e7eef5;border-radius:99px;overflow:hidden}
.loading-save-progress-fill{height:100%;width:0;background:#286cb4;border-radius:99px;transition:width .15s}
.loading-save-progress-percent{display:block;margin-top:10px;font-size:12px;font-weight:700;color:#536d84}
@media(prefers-reduced-motion:reduce){.loading-save-progress-spinner{animation:none}}

.loading-offline-banner{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 12px;background:#fff7e6;border-bottom:1px solid #e8d29b;color:#634c20}
.loading-offline-banner span{display:grid;gap:3px;min-width:0}
.loading-offline-banner strong{font-size:12px}
.loading-offline-banner small{font-size:10px;line-height:1.3}
.loading-offline-banner button{flex:0 0 auto;border:1px solid #b78b3d;border-radius:8px;background:#fff;color:#634c20;padding:9px;font-size:11px;font-weight:800}

/* ChatGPT iOS-style floating menu: Loading Supervisor overview ONLY.
   Do not apply to .loading-head-more or individual vehicle menu. */
.loading-page .pp-dense-header{position:relative;isolation:isolate;overflow:visible}
.loading-overview-menu-trigger{
 width:43px!important;height:43px!important;flex:0 0 43px!important;
 display:grid!important;place-items:center!important;
 border:1px solid #dedee1!important;border-radius:50%!important;
 background:#f4f4f5!important;color:#171717!important;
 font-size:24px!important;font-weight:500!important;line-height:1!important;
 box-shadow:0 1px 3px #0000000b!important;cursor:pointer!important
}
.loading-overview-menu-trigger[aria-expanded=true]{background:#e9e9eb!important;border-color:#d1d1d5!important}
.loading-overview-menu-panel{
 position:absolute!important;right:0!important;top:calc(100% + 12px)!important;
 width:min(89vw,345px)!important;max-height:min(75dvh,520px)!important;
 display:flex!important;flex-direction:column!important;gap:2px!important;
 overflow-y:auto!important;overscroll-behavior:contain!important;
 padding:11px!important;background:#fafafa!important;color:#171717!important;
 border:1px solid #e2e2e4!important;border-radius:27px!important;
 box-shadow:0 20px 55px #00000025,0 4px 12px #0000000b!important;
 z-index:300!important;-webkit-overflow-scrolling:touch
}
.loading-overview-menu-panel button{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 gap:18px!important;width:100%!important;min-height:62px!important;
 padding:12px 16px!important;margin:0!important;
 border:0!important;border-radius:15px!important;background:transparent!important;
 color:#18181a!important;text-align:left!important;
 font:500 18px/1.25 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;
 letter-spacing:-.2px!important;cursor:pointer!important
}
.loading-overview-menu-panel button svg{
 width:25px!important;height:25px!important;flex:0 0 25px!important;
 stroke-width:2.1!important;color:inherit!important
}
.loading-overview-menu-panel button span{min-width:0!important;overflow-wrap:anywhere}
.loading-overview-menu-panel button:hover,.loading-overview-menu-panel button:active,.loading-overview-menu-panel button:focus-visible{background:#ebebed!important}
.loading-overview-menu-divider{height:1px!important;min-height:1px!important;margin:7px 10px!important;background:#e5e5e7!important}
.loading-overview-menu-panel .loading-overview-menu-danger{color:#e02b37!important}
.loading-overview-menu-panel .loading-overview-menu-danger:hover{background:#fff0f1!important}
@media(max-width:680px){
 .loading-overview-menu-trigger{width:42px!important;height:42px!important;flex-basis:42px!important}
 .loading-overview-menu-panel{top:calc(100% + 11px)!important;padding:10px!important;border-radius:26px!important}
 .loading-overview-menu-panel button{min-height:59px!important;padding:11px 15px!important}
}

/* Compact ChatGPT menu typography on Loading Supervisor overview. */
.loading-overview-menu-panel button,
.loading-overview-menu-panel button span{
 font-size:16px!important;
 line-height:1.3!important;
 font-weight:500!important;
 letter-spacing:-.15px!important;
}

/* Same compact ChatGPT popover proportions on Loading Supervisor overview. */
.loading-overview-menu-panel{
 width:min(78vw,290px)!important;
 padding:9px!important;gap:0!important;border-radius:25px!important;
}
.loading-overview-menu-panel button,
.loading-overview-menu-panel button span{
 font:400 16px/1.25 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;
 letter-spacing:-.3px!important;
}
.loading-overview-menu-panel button{
 min-height:46px!important;padding:8px 11px!important;gap:13px!important;
 border-radius:12px!important;
}
.loading-overview-menu-panel button svg{
 width:21px!important;height:21px!important;flex:0 0 21px!important;
 stroke-width:1.9!important;
}
.loading-overview-menu-divider{margin:5px 9px!important}
@media(max-width:680px){
 .loading-overview-menu-panel{width:min(78vw,290px)!important;padding:9px!important}
 .loading-overview-menu-panel button{min-height:46px!important;padding:8px 11px!important}
}
