/* V6.4: Pit-first Daily Production. Advanced tools remain available on demand. */
body.office-signed-in{background:#f7f8fa;color:#202936}
.office-signed-in .shell{max-width:1240px;padding:18px 28px 28px}
.office-signed-in .brand{margin-bottom:12px}
.office-signed-in .brand .mark{width:36px;height:36px;font-size:15px;border-radius:10px}
.office-signed-in .brand strong{font-size:19px}
.office-signed-in .brand small{font-size:9px}
.office-signed-in #signed-in{border:0;box-shadow:none;background:transparent;padding:0;margin:0;max-width:none}
.office-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #e2e6eb;padding:4px 0 16px}

.office-company-identity{display:flex;align-items:center;gap:12px;min-width:0}
.office-company-logo{display:block;width:auto;max-width:118px;max-height:52px;object-fit:contain;object-position:left center;flex:0 0 auto}
.office-workspace-label{display:flex;align-items:center;gap:10px;margin:0;font-size:12px;color:#6a7687}
.office-workspace-label select{min-width:180px;max-width:320px;padding:9px 30px 9px 12px;border:1px solid #d8dfe8;border-radius:9px;background:white;color:#202936;font:inherit;font-size:14px;font-weight:650}
.office-account-details{position:relative;margin:0;padding:0;border:0;flex-shrink:0}
.office-account-details>summary{list-style:none;cursor:pointer;padding:10px 12px;border:1px solid #d8dfe8;border-radius:9px;background:white;color:#394b60;font-size:13px}
.office-account-details>summary::-webkit-details-marker{display:none}
.office-account-details[open]{z-index:10}
.office-account-details[open]>summary{background:#edf3fc}
.office-account-details>p,.office-account-details>.owner-badge,.office-account-details>.status-row,.office-account-details>.workspaces,.office-account-details>button{position:relative}
/* Account details are a small popover, not an additional dashboard. */
.office-account-details{max-width:340px}
.office-account-details[open]{padding:0}
.office-account-details .muted{margin:12px 0 0;font-size:12px}
.office-account-details .status-row{font-size:12px;padding:9px 0}
.office-account-details .workspaces{max-height:200px;overflow:auto}
.office-account-details .workspace{padding:8px;margin:5px 0}
.office-account-details .secondary{width:100%;margin:12px 0 0!important}
.office-nav{display:flex;align-items:stretch;gap:5px;margin:12px 0 0;padding:4px;border-radius:10px;background:#edf0f4}
.office-nav>button{flex:0 1 160px;margin:0;padding:10px 16px;font-size:14px;font-weight:650;justify-content:center;background:transparent;color:#536174;border-radius:8px}
.office-nav>button.office-nav-active{background:white;color:#245cba;box-shadow:0 1px 3px #243b5810}
.office-nav .office-more{margin-left:auto;position:relative;min-width:95px}
.office-more>summary{list-style:none;cursor:pointer;text-align:center;border-radius:8px;padding:10px 15px;font-size:14px;font-weight:650;color:#536174}
.office-more>summary::-webkit-details-marker{display:none}
.office-more[open]>summary{background:white;color:#245cba}
.office-more-menu{position:absolute;right:0;top:calc(100% + 5px);z-index:20;min-width:210px;background:white;border:1px solid #dce4ec;border-radius:12px;padding:5px;box-shadow:0 10px 30px #1e2b3b12}
.office-more-menu button{display:block;width:100%;margin:0;padding:12px;text-align:left;background:transparent;color:#394b60;font-size:14px}
.office-more-menu button:hover,.office-more-menu button.office-nav-active{background:#eef3fa;color:#245cba}
.office-page{margin-top:20px}
.db-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.db-page-head h1{font-size:27px;letter-spacing:-.8px;line-height:1.2;margin:0 0 4px}
.db-page-head p{font-size:13px;color:#788493;line-height:1.5;margin:0}
.db-page-head button{flex-shrink:0}
.db-datebar{border:1px solid #e1e6ed;border-radius:12px;background:#fff;padding:12px 15px;margin-bottom:14px}
.db-date-line{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.db-date-line button{min-height:42px;margin:0!important}
.db-date-label{display:flex;flex-direction:column;gap:4px;flex:0 1 240px;min-width:170px;font-size:11px;color:#6d7888;margin:0}
.db-date-label input,.db-date-label select{width:100%;min-height:42px;padding:8px 12px;font-size:14px;border:1px solid #d8dfe8;border-radius:8px;background:#fff;color:#202936}
.db-arrow{width:42px!important;min-width:42px;font-size:23px!important;line-height:1!important}
.db-date-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:11px 0 0;font-size:13px}
.db-date-meta>strong{font-size:14px;font-weight:650;color:#394b60}
.db-date-meta details{margin-left:auto}
.db-date-meta details>summary,.db-advanced>summary{cursor:pointer;color:#315d9d;font-size:13px;font-weight:650}
.db-date-meta details[open]{width:100%}
.db-date-meta details[open]>summary{margin-bottom:12px}
.db-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px 16px;border-top:1px solid #e8edf2;padding-top:12px}
.db-filter-grid label{display:flex;flex-direction:column;gap:5px;margin:0;font-size:12px;color:#5a6b80}
.db-filter-grid select,.db-filter-grid input{width:100%;margin:0;padding:10px 12px;border:1px solid #d8dfe8;border-radius:8px;background:#fff;font-size:14px;color:#202936}
.db-custom-dates{display:contents}
.db-hidden-control{display:none!important}
.db-filter-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:12px}
.db-filter-actions .radio-option{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;color:#5b6b7d}
.db-filter-actions input{width:17px;height:17px}
.db-sync-status{color:#7b8796;font-size:12px;line-height:1.5;margin:10px 0 16px;min-height:18px}
.db-sync-status.error{color:#a33329}
.db-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 24px}
.db-stats>div{background:#fff;border:1px solid #e0e6ed;border-radius:12px;padding:17px 20px;min-width:0}
.db-stats span{display:block;font-size:12px;color:#748193;margin-bottom:7px}
.db-stats strong{display:block;font-size:28px;font-weight:750;letter-spacing:-1px;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:#202936}
.db-list-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 11px}
.db-list-heading h2{font-size:20px;margin:0;letter-spacing:-.4px}
.db-list-heading>span{font-size:12px;color:#7b8796}
.db-job-list,.db-record-list{display:grid;gap:9px}
.db-job-card,.db-load-row{width:100%;margin:0;display:flex;align-items:center;gap:16px;min-width:0;border:1px solid #e0e6ed;border-radius:11px;background:#fff;color:#202936;padding:16px 18px;text-align:left;box-shadow:none}
.db-job-card:hover,.db-load-row:hover{background:#f9fbfe;border-color:#b6c9e4}
.db-job-info,.db-load-row>span:first-child{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.db-job-info strong{font-size:16px;font-weight:700;line-height:1.3}
.db-job-location{font-size:14px;color:#526174;line-height:1.3}
.db-job-info small,.db-job-amount small,.db-load-row small{font-size:12px;color:#7b8796;line-height:1.4;font-weight:400;overflow-wrap:anywhere}
.db-job-amount,.db-load-row>span:last-child{text-align:right;display:flex;flex-direction:column;gap:4px;min-width:90px;align-items:flex-end}
.db-job-amount strong{font-size:18px;font-variant-numeric:tabular-nums;font-weight:750;white-space:nowrap}
.db-chevron{color:#9aa8b8;font-size:24px;font-weight:300}
.db-empty{border:1px dashed #d9e1ea;border-radius:11px;background:white;padding:24px;color:#748193;font-size:14px;line-height:1.6;margin:0}
.db-issues{display:block;width:100%;text-align:left;background:#fff7e8;color:#7c5418;border:1px solid #efdaad;border-radius:10px;padding:12px;margin:0 0 16px;font-size:13px}
.db-issues[hidden]{display:none!important}
.db-job-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.db-job-actions{display:flex;gap:8px;flex-wrap:wrap}
.db-job-toolbar button{margin:0!important}
.db-job-context{display:none}
.db-tabs{display:flex;gap:18px;border-bottom:1px solid #e0e6ed;margin:0 0 18px;overflow-x:auto}
.db-tabs button{border:0;border-radius:0;border-bottom:2px solid transparent;margin:0;padding:10px 2px;background:transparent;color:#68788b;font-size:14px;white-space:nowrap;font-weight:650;min-height:44px}
.db-tabs button.db-tab-active{border-color:#245cba;color:#245cba}
.db-summary-surface{background:white;border:1px solid #e0e6ed;border-radius:12px;padding:25px 28px;min-width:0}
.db-summary-surface .ls-original-summary{margin:0;width:100%;padding:0;max-width:none}
.db-summary-surface .ls-summary-heading-right{font-size:10pt}
.db-summary-surface .ls-summary-header{margin-bottom:5mm}
.db-summary-surface .ls-summary-kpi{border-color:#e0e6ed;border-radius:5px;background:#fafbfd}
.db-summary-surface .ls-summary-table th{background:#f6f8fa}
.db-summary-surface .ls-summary-bottom{margin-top:4mm}
.db-summary-surface .ls-summary-table{font-size:9pt}
.db-history-message{font-size:12px;color:#a33329;line-height:1.5}
.db-help{font-size:13px;color:#7b8796;line-height:1.6;margin:0 0 13px}
.db-load-row strong{font-size:15px}
.db-load-row>span:last-child strong{font-size:16px;font-variant-numeric:tabular-nums}
.db-advanced{margin:28px 0 0;border-top:1px solid #e0e6ed;padding-top:16px}
.db-advanced>summary{list-style:none;padding:6px 0;color:#576a80;font-size:13px}
.db-advanced>summary::-webkit-details-marker{display:none}
.db-advanced>summary:before{content:'▸';margin-right:8px;color:#8a98a8}
.db-advanced[open]>summary:before{content:'▾'}
.db-advanced-inner{padding-top:12px}
.db-advanced .archive-card{padding:18px;margin-top:14px}
.db-advanced .archive-stats{margin:14px 0}
.db-advanced .archive-stats>div{padding:13px}
.co-settings-group{margin-top:10px;padding:0;overflow:visible}
.co-settings-group>summary{list-style:none;cursor:pointer;font-size:15px;font-weight:700;padding:17px 20px;color:#25384d}
.co-settings-group>summary::-webkit-details-marker{display:none}
.co-settings-group>summary:after{content:'⌄';float:right;color:#8b99a9}
.co-settings-group[open]>summary:after{transform:rotate(180deg)}
.co-settings-body{padding:0 20px 20px;border-top:1px solid #ecf0f4}
.co-settings-body>.muted,.co-settings-body>p:first-child{margin-top:14px}
.office-signed-in footer{margin-top:30px;padding-top:14px;font-size:11px}
[hidden]{display:none!important}
@media(max-width:760px){
 .office-signed-in .shell{padding:12px 16px 24px}
 .office-topbar{align-items:flex-start;gap:10px}

 .office-company-identity{align-items:flex-start;gap:8px;flex:1;min-width:0}
 .office-company-logo{max-width:82px;max-height:42px;margin-top:18px}
 .office-workspace-label{flex-direction:column;align-items:flex-start;gap:4px;flex:1;min-width:0}
 .office-workspace-label select{min-width:0;max-width:none;width:100%}
 .office-account-details>summary{padding:9px 10px}
 .office-nav>button{flex:1 1 0;padding:10px 8px}
 .office-nav .office-more{min-width:70px}
 .office-more>summary{padding:10px 5px}
 .db-page-head{align-items:flex-start}
 .db-page-head h1{font-size:23px}
 .db-page-head p{font-size:12px}
 .db-datebar{padding:12px}
 .db-date-line{gap:5px}
 .db-date-label{flex:1 1 150px;min-width:120px}
 .db-date-line button{padding:8px!important}
 .db-arrow{width:36px!important;min-width:36px}
 .db-date-meta details{margin-left:0}
 .db-filter-grid{grid-template-columns:1fr 1fr;gap:10px}
 .db-stats{gap:7px;margin-bottom:20px}
 .db-stats>div{padding:12px 10px}
 .db-stats span{font-size:10px;line-height:1.3;min-height:26px}
 .db-stats strong{font-size:21px;letter-spacing:-.6px}
 .db-job-card,.db-load-row{padding:14px 12px;gap:10px}
 .db-job-info strong{font-size:14px}
 .db-job-location{font-size:13px}
 .db-job-amount strong{font-size:15px}
 .db-job-amount,.db-load-row>span:last-child{min-width:76px}
 .db-chevron{font-size:18px}
 .db-summary-surface{padding:16px 12px}
 .db-summary-surface .ls-summary-header{flex-wrap:wrap}
 .db-summary-surface .ls-summary-identity h1{font-size:17pt}
 .db-summary-surface .ls-summary-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .db-summary-surface .ls-summary-kpi{min-height:50px}
 .db-summary-surface .ls-summary-table{font-size:8pt}
 .db-summary-surface .ls-summary-table th,.db-summary-surface .ls-summary-table td{padding:5px 4px}
 .db-summary-surface .ls-summary-trucks{font-size:7.5pt}
 .db-summary-surface .ls-summary-trucks th,.db-summary-surface .ls-summary-trucks td{padding:5px 3px}
 .db-summary-surface .ls-summary-truck strong{font-size:8pt}
 .db-summary-surface .ls-summary-truck span{font-size:7pt}
 .db-summary-surface .ls-summary-bottom{flex-wrap:wrap;gap:6px}
 .db-summary-surface .ls-summary-bottom strong{margin-left:auto}
 .db-job-toolbar{align-items:flex-start}
 .db-job-actions{gap:5px}
 .db-job-actions button{font-size:12px!important;padding:8px!important}
}
@media print{
 .db-datebar,.db-page-head,.db-sync-status,.db-stats,.db-job-list,.db-job-toolbar,.db-tabs,.db-advanced,.office-more-menu,.office-account-details{display:none!important}
 .db-summary-surface{border:0;padding:0;background:white}
 .db-summary-surface .ls-summary-kpi{border-radius:0;background:white;border-color:#999}
 .db-summary-surface .ls-summary-table th{background:white}
 .db-summary-surface .ls-summary-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
}
.office-account-panel{position:absolute;right:0;top:calc(100% + 6px);width:min(340px,calc(100vw - 32px));background:white;border:1px solid #dce4ec;border-radius:12px;padding:15px;box-shadow:0 10px 30px #1e2b3b12;z-index:30;color:#202936}
.office-account-panel .muted{overflow-wrap:anywhere}
.office-account-panel .owner-badge{margin:8px 0}
@media(max-width:760px){.office-account-panel{max-width:calc(100vw - 32px)}}

/* Keep the selected date visible while reviewing a job. */
@media(max-width:760px){
 .db-summary-surface .ls-summary-trucks,.db-summary-surface .ls-summary-trucks tbody{display:block;width:100%}
 .db-summary-surface .ls-summary-trucks thead{display:none}
 .db-summary-surface .ls-summary-trucks tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid #dce3eb;border-radius:7px;margin-bottom:8px;overflow:hidden}
 .db-summary-surface .ls-summary-trucks td{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;border:0;border-right:1px solid #edf0f4;border-bottom:1px solid #edf0f4;padding:9px 7px;text-align:left!important;font-size:10pt}
 .db-summary-surface .ls-summary-trucks td:first-child{grid-column:1/-1;border-right:0;background:#f7f9fc;padding:10px}
 .db-summary-surface .ls-summary-trucks td:not(:first-child):before{content:attr(data-label);font-size:9px;line-height:1.3;color:#7b8796;font-weight:650;text-transform:uppercase;letter-spacing:.2px}
 .db-summary-surface .ls-summary-trucks td:last-child{border-right:0}
 .db-summary-surface .ls-summary-truck strong{font-size:12pt}
 .db-summary-surface .ls-summary-truck span{font-size:9pt}
}

/* Final daily-board polish. No global changes to the approved print template. */
.office-account-panel{position:absolute;right:0;top:calc(100% + 6px);width:min(340px,calc(100vw - 32px));background:#fff;border:1px solid #dce4ec;border-radius:12px;padding:15px;box-shadow:0 10px 30px #1e2b3b12;z-index:30;color:#202936}
.db-summary-surface .ls-summary-header{align-items:flex-start}
.db-summary-surface .ls-original-summary{font-family:Arial,Helvetica,sans-serif}
.db-job-toolbar~.db-job-context{display:none}
.db-summary-surface .ls-summary-table{width:100%}
.db-summary-surface .ls-summary-trucks{table-layout:fixed}
.db-summary-surface .ls-summary-trucks td,.db-summary-surface .ls-summary-trucks th{overflow-wrap:anywhere}
.db-stats strong,.db-job-amount strong{font-variant-numeric:tabular-nums}
.db-summary-surface .ls-summary-section{break-inside:auto}
.db-summary-surface .ls-summary-header{break-inside:avoid}
.db-job-card:focus-visible,.db-load-row:focus-visible{outline:3px solid #8bb4ff;outline-offset:2px}
@media(max-width:760px){.office-account-details{max-width:none}.office-account-panel{max-width:calc(100vw - 32px)}.db-summary-surface .ls-summary-trucks{table-layout:auto}.db-job-card{align-items:flex-start}.db-job-amount{min-width:78px}.db-summary-surface .ls-summary-trucks tbody{display:block}}
@media print{.db-summary-surface .ls-summary-trucks{display:table!important}.db-summary-surface .ls-summary-trucks tbody{display:table-row-group!important}.db-summary-surface .ls-summary-trucks thead{display:table-header-group!important}.db-summary-surface .ls-summary-trucks tbody tr{display:table-row!important}.db-summary-surface .ls-summary-trucks td{display:table-cell!important}.db-summary-surface .ls-summary-trucks td:before{display:none!important}}


/* V6.4 pit tabs and current/finished separation */
.db-pit-tabs{display:flex;gap:7px;overflow-x:auto;padding:2px 1px 9px;margin:0 0 12px;scrollbar-width:thin}
.db-pit-tab{flex:0 0 auto;margin:0!important;min-height:42px;padding:9px 14px!important;border:1px solid #dce3eb;border-radius:999px;background:#fff;color:#506075;display:flex;gap:7px;align-items:center;justify-content:center;font-size:13px;font-weight:700;white-space:nowrap}
.db-pit-tab:hover{background:#f6f9fd;border-color:#b8c9df}
.db-pit-tab.db-pit-active{background:#245cba;color:#fff;border-color:#245cba}
.db-pit-tab small{font-size:10px;opacity:.82;font-weight:650}
.db-finished{margin:20px 0 0;border-top:1px solid #e1e6ed;padding-top:12px}
.db-finished>summary{cursor:pointer;list-style:none;color:#59697c;font-size:13px;font-weight:700;padding:7px 2px 11px}
.db-finished>summary::-webkit-details-marker{display:none}
.db-finished>summary:before{content:'▸';display:inline-block;margin-right:7px;color:#8b98a8}
.db-finished[open]>summary:before{content:'▾'}
.db-finished .db-job-card{opacity:.88;background:#fafbfc}
.db-finished .db-job-card:hover{opacity:1;background:#f7faff}
@media(max-width:760px){
 .db-pit-tabs{margin-left:-2px;margin-right:-2px;padding-bottom:8px}
 .db-pit-tab{min-height:39px;padding:8px 12px!important;font-size:12px}
}

/* V6.5: four top-level choices stay tidy on narrow phones. */
@media(max-width:420px){
 .office-nav{display:grid;grid-template-columns:1fr 1fr;gap:5px}
 .office-nav>button{width:100%;min-width:0;max-width:none;flex:none;font-size:12px;padding:9px 5px}
 .office-nav .office-more{width:100%;min-width:0;margin:0}
 .office-more>summary{padding:9px 5px;font-size:12px}
 .office-more-menu{right:0;max-width:calc(100vw - 32px)}
}

/* V6.6.8: Daily Production uses actual haul dates only. */
.ls-summary-company-row td{font-weight:750!important;background:#eef3f9!important;color:#26384d;text-align:left!important;font-size:9pt!important;letter-spacing:.1px;padding:1.7mm 1.8mm!important}
@media(max-width:760px){
 .db-summary-surface .ls-summary-trucks tbody tr.ls-summary-company-row{display:block;border:0;border-radius:0;margin:14px 0 5px;background:transparent;overflow:visible}
 .db-summary-surface .ls-summary-trucks tbody tr.ls-summary-company-row:first-child{margin-top:0}
 .db-summary-surface .ls-summary-trucks .ls-summary-company-row td{display:block!important;border:0!important;background:#eef3f9!important;border-radius:6px;padding:8px 10px!important;font-size:11pt!important}
}
@media print{.ls-summary-company-row td{background:#f2f2f2!important;font-weight:700!important}}

/* V6.6.18 simple device access management */
.device-help{margin:14px 0 8px;padding:12px 14px;border:1px solid #d9e5f5;border-radius:10px;background:#f5f8fd;color:#314b69;font-size:13px;line-height:1.5}
.device-help strong{color:#182c43}
.device-access-list{display:grid;gap:0}
#co-staff .status-row{flex-wrap:wrap;align-items:center;gap:10px}
#co-staff .status-row>div{flex:1 1 180px;min-width:0;overflow-wrap:anywhere}
#co-staff .status-row small{display:block}
#co-staff .status-row>select{flex:0 1 150px;min-width:0}
#co-staff .status-row>button{max-width:100%;margin-top:0}
.device-access-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid #e9edf3}
.device-access-row:last-child{border-bottom:0}
.device-access-info{min-width:0;display:grid;gap:4px}
.device-access-info strong{color:#182c43;font-size:14px;overflow-wrap:anywhere}
.device-access-info small{color:#7b8898;font-size:11px;overflow-wrap:anywhere}
.device-access-state{font-size:12px;font-weight:700}
.device-access-state.active{color:#198452}
.device-access-state.pending{color:#6c7c90}
.device-access-state.removed{color:#a0443b}
.device-remove{flex:0 0 auto;white-space:nowrap}
@media(max-width:600px){.device-access-row{align-items:stretch;flex-direction:column;gap:10px}.device-remove{width:100%!important}}

/* V6.6.18: date-first Daily Production hierarchy and larger pit targets. */
.db-pit-picker{margin:0 0 10px}
.db-pit-label{display:block;margin:0 0 7px;font-size:12px;font-weight:700;color:#536174}
.db-pit-tabs{gap:10px;padding:2px 1px 8px;margin:0}
.db-pit-tab{min-height:48px;min-width:118px;padding:11px 20px!important;font-size:14px}
.db-date-meta{margin:10px 0 0}
@media(max-width:760px){
 .db-pit-tabs{gap:8px;margin-left:-2px;margin-right:-2px;padding-bottom:8px}
 .db-pit-tab{min-height:46px;min-width:104px;padding:10px 17px!important;font-size:13px}
}

.db-date-change-note{display:flex;align-items:center;gap:8px;margin:2px 0 10px;padding:0 2px;color:#68778c;font-size:13px;line-height:1.35}.db-date-change-note[hidden]{display:none}.db-date-change-note span{min-width:0}.db-date-note-back{appearance:none;border:0;background:transparent;color:#315fae;font:inherit;font-weight:700;padding:2px 4px;white-space:nowrap;cursor:pointer}.db-date-note-back:hover{text-decoration:underline}@media(max-width:620px){.db-date-change-note{font-size:12.5px;gap:6px;margin-top:0;margin-bottom:9px}}

/* V6.6.18 daily records download picker */
.db-record-actions{display:flex;justify-content:flex-end;margin:8px 0 2px}
.db-download-inner{max-width:560px}
.db-download-options{display:grid;gap:8px;margin:14px 0}
.db-download-options .radio-option{align-items:flex-start;border:1px solid #dfe6ee;border-radius:10px;padding:11px 12px;background:#fff}
.db-download-options .radio-option span{display:flex;flex-direction:column;gap:3px}
.db-download-options .radio-option small{font-size:12px;line-height:1.35;color:#748295}
.db-download-buttons{justify-content:space-between}
@media(max-width:760px){.db-record-actions{justify-content:stretch}.db-record-actions button{width:100%}.db-download-buttons{display:grid;grid-template-columns:1fr 1fr}.db-download-buttons button{width:100%!important}}

/* V6.6.25: stable custom haul-date dropdown for desktop and touch. */
.db-custom-select{position:relative;width:100%}
.db-select-trigger{width:100%;min-height:42px!important;padding:8px 12px!important;border:1px solid #d8dfe8!important;border-radius:8px!important;background:#fff!important;color:#202936!important;font:inherit!important;font-size:14px!important;font-weight:500!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;text-align:left!important;box-shadow:none!important}
.db-select-trigger:focus-visible{outline:2px solid #2f6fed;outline-offset:2px}
.db-select-chevron{font-size:17px;line-height:1;color:#687386}
.db-select-menu{position:absolute;z-index:80;top:calc(100% + 4px);left:0;right:0;max-height:300px;overflow:auto;padding:5px;background:#fff;border:1px solid #d8dfe8;border-radius:9px;box-shadow:0 12px 30px rgba(25,35,50,.18)}
.db-select-menu[hidden]{display:none!important}
.db-select-option{display:block!important;width:100%!important;margin:0!important;min-height:38px!important;padding:8px 10px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#202936!important;font-size:14px!important;font-weight:500!important;text-align:left!important;box-shadow:none!important}
.db-select-option:hover,.db-select-option:focus-visible{background:#eef4ff!important;outline:none}
.db-select-option.selected{background:#e6efff!important;color:#174ea6!important;font-weight:700!important}
.db-select-option:disabled{color:#8b95a5!important}

/* Company switching is a platform-owner/developer control only. Customer accounts see a fixed company identity. */
.office-company-static{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.office-company-static span{font-size:12px;color:#6a7687;font-weight:650}
.office-company-static strong{font-size:15px;color:#202936;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:360px}
.office-workspace-label{display:none!important}
body.platform-owner .office-workspace-label{display:flex!important}
body.platform-owner .office-company-static{display:none!important}

/* Customer accounts get a centered branded workspace header. If a company logo exists, it stands alone. */
body:not(.platform-owner) .office-topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
body:not(.platform-owner) .office-company-identity{grid-column:2;justify-content:center;min-width:0}
body:not(.platform-owner) .office-account-details{grid-column:3;justify-self:end}
body:not(.platform-owner) .office-company-logo{max-width:190px;max-height:72px;object-position:center center}
body:not(.platform-owner).customer-company-logo .office-company-static{display:none!important}
body:not(.platform-owner):not(.customer-company-logo) .office-company-static{align-items:center;text-align:center}
body:not(.platform-owner):not(.customer-company-logo) .office-company-static span{display:none}
body:not(.platform-owner):not(.customer-company-logo) .office-company-static strong{max-width:none;font-size:18px}

.co-company-switcher{display:none!important}
body.platform-owner .co-company-switcher{display:block!important}
.co-company-static-wrap{display:flex;flex-direction:column;gap:6px}
.co-company-static-wrap strong{display:block;padding:10px 12px;border:1px solid #d8dfe8;border-radius:9px;background:#f7f9fc;color:#202936;font-size:14px}
body.platform-owner .co-company-static-wrap{display:none!important}

@media(max-width:680px){.office-company-static{flex:1;min-width:0}.office-company-static strong{max-width:100%;font-size:14px}.office-company-logo{margin-top:0!important}body:not(.platform-owner) .office-topbar{grid-template-columns:1fr auto;row-gap:8px}body:not(.platform-owner) .office-company-identity{grid-column:1/span 2}body:not(.platform-owner) .office-account-details{grid-column:2;grid-row:1;justify-self:end}body:not(.platform-owner).customer-company-logo .office-company-logo{max-width:160px;max-height:58px}}

/* V7.16 — Today-first Daily Production cleanup */
.db-date-meta>strong{display:none}
.db-date-meta{justify-content:flex-end;margin-top:4px}
.db-sync-status:not(.error){display:none}
.db-no-activity{background:#fff;border:1px solid #e0e6ed;border-radius:14px;padding:30px 26px;text-align:center;margin:8px 0 20px}
.db-no-activity h2{margin:0 0 8px;font-size:22px;color:#202936;letter-spacing:-.35px}
.db-no-activity p{margin:0 auto 18px;max-width:560px;color:#748193;font-size:14px;line-height:1.55}
.db-no-activity button{margin:0 auto!important}
#db-current-section[hidden],#db-production-content[hidden],#db-pit-picker[hidden],#db-record-actions[hidden]{display:none!important}
#db-current-section{margin-top:0}
.db-finished{margin-top:16px}
@media(max-width:620px){.db-no-activity{padding:26px 18px}.db-no-activity h2{font-size:20px}.db-date-meta{margin-top:2px}}

/* V7.31.20: one operational summary with purposeful, optional drilldowns. */
#db-job-breadcrumb{display:block;font-size:19px;font-weight:700;color:#25384d;line-height:1.4;margin:0 0 14px;overflow-wrap:anywhere}
#db-job-date{display:none}
.db-summary-drilldown{border-top:1px solid #e1e6ed;padding:13px 0}
.db-summary-drilldown:last-child{padding-bottom:0}
.db-summary-drilldown>summary{cursor:pointer;font-size:14px;font-weight:700;color:#315d9d;min-height:28px}
.db-summary-drilldown[open]>summary{margin-bottom:12px}
.db-summary-drilldown .ls-summary-section{margin:0}
.db-summary-drilldown .db-help{margin:10px 0 0}
.db-tabs button:focus-visible,.db-summary-drilldown>summary:focus-visible{outline:3px solid #8bb4ff;outline-offset:3px}

.db-report-tool>summary{cursor:pointer;font-size:15px;font-weight:700;color:#315d9d;min-height:26px}
.db-report-tool-body{padding-top:16px}
.db-report-tool .archive-heading h3{display:none}
.db-report-tool>summary:focus-visible{outline:3px solid #8bb4ff;outline-offset:3px}
