/* V6.6.2 Daily Load Sheets: paperwork-first review and export. */
#office-load-sheets-page{min-width:0}
.dls-datebar{display:flex;align-items:end;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid #e1e6ed;border-radius:12px;padding:12px 15px;margin:0 0 18px}
.dls-date-label{display:flex;flex-direction:column;gap:4px;min-width:190px;margin:0;font-size:11px;color:#6d7888}
.dls-date-label input{min-height:42px;padding:8px 12px;font-size:14px}
#dls-date-label{margin-left:8px;color:#42546a;font-size:14px}
.dls-job-list{display:grid;gap:9px}
.dls-job-card{width:100%;margin:0;display:flex;align-items:center;gap:14px;border:1px solid #e0e6ed;border-radius:11px;background:#fff;color:#202936;padding:16px 18px;text-align:left}
.dls-job-card:hover{background:#f9fbfe;border-color:#b6c9e4}
.dls-job-main{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.dls-job-main strong{font-size:16px;line-height:1.3}
.dls-job-main span{font-size:14px;color:#526174}
.dls-job-main small,.dls-job-side small{font-size:12px;color:#7b8796;line-height:1.4}
.dls-job-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:120px;text-align:right}
.dls-job-side strong{font-size:15px}
.dls-job-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.dls-format-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.dls-format-actions label{display:flex;flex-direction:column;gap:5px;margin:0;font-size:11px;color:#68788a}
.dls-format-actions select{min-width:190px;padding:9px 12px;border:1px solid #d4dde7;border-radius:9px;background:#fff;color:#202936;font:inherit;font-size:13px}
.dls-format-actions button{margin:0!important}
.dls-job-header{background:#fff;border:1px solid #e0e6ed;border-radius:12px;padding:16px 18px;margin-bottom:14px}
.dls-job-header h2{margin:0 0 5px;font-size:21px}
.dls-job-header p{margin:0 0 5px;color:#536174;font-size:14px;line-height:1.5}
.dls-job-header small{color:#7b8796}
.dls-preview{display:grid;gap:18px;min-width:0}
.dls-ticket-fit{width:100%;min-width:0}
.dls-preview .paper-page{background:#fff;border:1px solid #dfe5ec;border-radius:10px;padding:24px;box-shadow:0 4px 18px rgba(24,44,67,.035);font-family:Arial,sans-serif;color:#111;overflow:hidden}
.dls-preview .paper-header{margin-bottom:16px}
.dls-preview .paper-brand{display:flex;align-items:center;gap:14px}
.dls-preview .paper-brand img{max-width:150px;max-height:60px;object-fit:contain}
.dls-preview .paper-brand h1{font-size:22px;margin:0}
.dls-preview .paper-title{text-align:center;font-size:17px;font-weight:700;margin:16px 0 9px}
.dls-preview .paper-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px 18px;font-size:12px;margin-bottom:12px}
.dls-preview .paper-meta div{display:flex;gap:8px;min-width:0}
.dls-preview .paper-meta strong{min-width:110px}
.dls-preview .paper-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}
.dls-preview .paper-table th,.dls-preview .paper-table td{border:1px solid #a3a3a3;padding:6px 7px;overflow-wrap:anywhere}
.dls-preview .paper-table th{background:#f6f7f8}
.dls-preview .paper-ticket-table th:first-child,.dls-preview .paper-ticket-table td:first-child{width:5%;text-align:center}
.dls-preview .paper-total{text-align:right;font-weight:700;margin:11px 0 0}
.dls-preview .paper-footer{text-align:right;color:#707070;font-size:10px;margin-top:8px}
.dls-preview[data-format="spreadsheet"] .paper-page{overflow-x:auto}
.dls-preview[data-format="spreadsheet"] .paper-table{min-width:760px}
@media(max-width:760px){
 .dls-datebar{padding:11px;gap:5px}
 .dls-date-label{flex:1 1 150px;min-width:120px}
 #dls-date-label{width:100%;margin:4px 0 0}
 .dls-job-card{padding:14px 12px;gap:9px}
 .dls-job-main strong{font-size:14px}
 .dls-job-main span{font-size:13px}
 .dls-job-side{min-width:92px}
 .dls-job-side strong{font-size:13px}
 .dls-job-toolbar{align-items:stretch}
 .dls-format-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
 .dls-format-actions label{grid-column:1/-1}
 .dls-format-actions select{width:100%;min-width:0}
 .dls-format-actions button{width:100%!important}
 .dls-preview .paper-page{padding:12px;border-radius:8px}
 .dls-preview .paper-meta{grid-template-columns:1fr;font-size:10px}
 .dls-preview .paper-meta strong{min-width:88px}
 .dls-preview .paper-table{font-size:8.5px}
 .dls-preview .paper-table th,.dls-preview .paper-table td{padding:4px 3px}
 .dls-preview .paper-brand h1{font-size:17px}
 .dls-preview .paper-title{font-size:13px;margin:11px 0 7px}
}

/* Loader-style Spreadsheet preview: same round/truck layout as the field app. */
.dls-preview .scale-sheet-page{overflow:hidden}
.dls-preview .scale-sheet-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:8px}
.dls-preview .scale-sheet-head h1{font-size:20px;margin:0}
.dls-preview .scale-sheet-consultant{font-size:13px;font-weight:700;margin-top:3px}
.dls-preview .scale-sheet-job{font-size:12px;font-weight:700;color:#33445a;margin-top:3px}
.dls-preview .scale-sheet-sub,.dls-preview .scale-sheet-timeline{font-size:11px;color:#778397;margin-top:3px}
.dls-preview .scale-sheet-total{text-align:right;font-size:12px;white-space:nowrap}
.dls-preview .scale-sheet-timeline{margin:0 0 8px}
.dls-preview .scale-sheet-scroll{overflow-x:auto;border:1px solid #dfe5ec;border-radius:10px}
.dls-preview .scale-sheet-table{width:100%;min-width:680px;border-collapse:collapse;table-layout:fixed;font-size:11px}
.dls-preview .scale-sheet-table th,.dls-preview .scale-sheet-table td{border-right:1px solid #dfe5ec;border-bottom:1px solid #dfe5ec;padding:7px 5px;text-align:center;white-space:nowrap}
.dls-preview .scale-sheet-table th:first-child,.dls-preview .scale-sheet-table td:first-child{position:sticky;left:0;z-index:2;background:#fff;text-align:left;font-weight:800}
.dls-preview .scale-sheet-table thead th,.dls-preview .scale-sheet-table tfoot td{background:#f5f7fa;font-weight:800}
.dls-preview .scale-sheet-table thead th:first-child,.dls-preview .scale-sheet-table tfoot td:first-child{background:#f5f7fa;z-index:3}
.dls-preview .scale-sheet-product{font-size:9px;color:#7a8798;margin-top:2px}
@media(max-width:760px){
 .dls-preview .scale-sheet-head{flex-wrap:wrap}
 .dls-preview .scale-sheet-head h1{font-size:17px}
 .dls-preview .scale-sheet-total{text-align:left}
}


/* Advantage North authorized legacy paper preview */
.dls-preview .an-ticket-page{font-family:Arial,Helvetica,sans-serif;color:#111}
.dls-preview .an-head{display:grid;grid-template-columns:125px minmax(250px,1fr) 125px;gap:8px;align-items:start;margin-bottom:5px}
.dls-preview .an-logo{font-size:27px;font-weight:900;line-height:.9;letter-spacing:-1px}
.dls-preview .an-company-logo{display:block;max-width:125px;max-height:49px;object-fit:contain;object-position:left top;margin:0 0 3px}
.dls-preview .an-services{font-size:10px;font-weight:700;margin-top:3px}
.dls-preview .an-contact{font-size:9px;line-height:1.2;margin-top:3px;white-space:nowrap}
.dls-preview .an-head-center{text-align:center}
.dls-preview .an-title{font-size:15px;font-weight:700;margin-bottom:10px;white-space:nowrap}
.dls-preview .an-field{display:flex;align-items:flex-end;gap:6px;min-height:22px;font-size:13px}
.dls-preview .an-label{white-space:nowrap}
.dls-preview .an-line{border-bottom:1px solid #555;min-height:18px;flex:1;padding:0 4px;font-weight:700;text-align:center}
.dls-preview .an-date-center{display:block;position:relative;max-width:260px;margin:0 auto}
.dls-preview .an-date-center .an-label{position:absolute;right:calc(100% + 6px);bottom:0;line-height:18px}
.dls-preview .an-date-center .an-line{display:block;width:100%;box-sizing:border-box}
.dls-preview .an-detail-row{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(220px,.92fr);gap:18px;margin-bottom:10px}
.dls-preview .an-consultant-line{margin:4px 0 0 44px;border-bottom:1px solid #555;min-height:18px;font-size:13px;font-weight:700;padding:0 4px;text-align:center}
.dls-preview .an-right-stack{display:flex;flex-direction:column;gap:5px}
.dls-preview .an-right-stack .an-label{min-width:130px}
.dls-preview .an-ticket-table{width:100%;min-width:720px;table-layout:fixed;border-collapse:collapse;font-size:13px;color:#000}
.dls-preview .an-ticket-table th,.dls-preview .an-ticket-table td{border:1.25px solid #666;padding:4px 5px;height:28px;line-height:1.05;vertical-align:middle}
.dls-preview .an-ticket-table th{background:#e2e8ef;text-align:center;font-size:11.5px;font-weight:700}
.dls-preview .an-ticket-table th:first-child,.dls-preview .an-ticket-table td:first-child{width:5%;text-align:center;padding-left:2px;padding-right:2px;white-space:nowrap}
.dls-preview .an-ticket-table th:nth-child(2),.dls-preview .an-ticket-table td:nth-child(2){width:30%;font-weight:700}
.dls-preview .an-ticket-table th:nth-child(3),.dls-preview .an-ticket-table td:nth-child(3){width:22%}.dls-preview .an-ticket-table td:nth-child(3){font-weight:500}
.dls-preview .an-ticket-table th:nth-child(4),.dls-preview .an-ticket-table td:nth-child(4){width:13%;text-align:center}.dls-preview .an-ticket-table td:nth-child(4){font-weight:700}
.dls-preview .an-ticket-table th:nth-child(5),.dls-preview .an-ticket-table td:nth-child(5){width:18%}.dls-preview .an-ticket-table td:nth-child(5){font-weight:500;text-align:center}
.dls-preview .an-ticket-table th:nth-child(6),.dls-preview .an-ticket-table td:nth-child(6){width:12%;text-align:center}.dls-preview .an-ticket-table td:nth-child(6){font-weight:500}
.dls-preview .an-footer{text-align:right;font-size:10px;color:#444;margin-top:6px}
@media(max-width:760px){
 .dls-ticket-fit{overflow:hidden}
 .dls-ticket-fit .an-ticket-page{width:740px;max-width:none;box-sizing:border-box;overflow:visible;padding:12px 8px;transform-origin:top left}
 .dls-preview .an-head,.dls-preview .an-detail-row,.dls-preview .an-ticket-table,.dls-preview .an-bottom{min-width:720px}
 .dls-preview .an-ticket-table{width:720px!important;font-size:13px!important}
 .dls-preview .an-ticket-table th,.dls-preview .an-ticket-table td{padding:4px 5px!important;height:28px!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
 .dls-preview .an-bottom{flex-direction:row;align-items:center;gap:12px}
}

/* V6.6.4 Advantage North mobile fit + bottom totals */
.dls-preview .an-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:7px}
.dls-preview .an-totals{font-size:var(--ticket-totals-px,14px);font-weight:700}
.dls-preview .an-totals span{padding:0 5px;color:#555}
@media(max-width:760px){
 .dls-preview .an-bottom{align-items:center;flex-direction:row;gap:12px}
}


/* V7.7 selective image sharing */
.dls-share-dialog{width:min(620px,calc(100vw - 28px));max-height:min(760px,calc(100vh - 28px));border:0;border-radius:18px;padding:0;box-shadow:0 24px 70px rgba(13,32,55,.25);color:#202936}
.dls-share-dialog::backdrop{background:rgba(17,34,54,.46)}
.dls-share-dialog-inner{padding:22px;overflow:auto;max-height:inherit}
.dls-share-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.dls-share-dialog-head h2{margin:0 0 5px;font-size:20px}.dls-share-dialog-head p{margin:0;color:#708096;font-size:13px;line-height:1.45}
.dls-share-list{display:grid;gap:9px;margin:12px 0 16px}
.dls-share-choice{display:grid;grid-template-columns:24px 1fr;gap:11px;align-items:start;border:1px solid #dce4ee;border-radius:12px;background:#fff;padding:13px 14px;cursor:pointer;margin:0}
.dls-share-choice:has(input:checked){border-color:#9ab9e6;background:#f7faff}
.dls-share-choice input{width:20px;height:20px;margin:2px 0 0;accent-color:#1769e0}
.dls-share-choice-main{display:grid;gap:3px;min-width:0}.dls-share-choice-main strong{font-size:14px;color:#182c43}.dls-share-choice-main span{font-size:13px;color:#52657d;line-height:1.35}.dls-share-choice-main small{font-size:11px;color:#7a899b;line-height:1.35}
.dls-share-zero{display:inline-block;font-weight:700;color:#996f25!important}
.dls-share-dialog-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.dls-share-dialog-actions #dls-share-selected{margin-left:auto}.dls-share-status{min-height:18px;margin:10px 0 0;color:#65758a;font-size:12px}.dls-share-status.error{color:#a53b2f}
@media(max-width:560px){.dls-share-dialog-inner{padding:17px}.dls-share-dialog-head h2{font-size:18px}.dls-share-dialog-actions{display:grid;grid-template-columns:1fr 1fr}.dls-share-dialog-actions button{width:100%!important;margin:0!important}.dls-share-dialog-actions #dls-share-selected{grid-column:1/-1}}


/* V7.19 day-level multi-sheet sharing */
.dls-list-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dls-list-actions #dls-job-count{color:#6d7888;font-size:13px}
@media(max-width:560px){.dls-list-actions{width:100%;justify-content:space-between}.dls-list-actions #dls-share-day{margin-left:auto}}


/* V7.19 job-level billing export */
.dls-list-actions #dls-export-day,.dls-list-actions #dls-share-day{white-space:nowrap}
@media(max-width:560px){
 .dls-list-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
 .dls-list-actions #dls-job-count{grid-column:1/-1}
 .dls-list-actions button{width:100%!important;margin:0!important}
}

.dls-preview .an-ticket-table td:nth-child(2),.dls-preview .an-ticket-table td:nth-child(4){font-size:var(--ticket-unit-px,13px)!important}
.dls-preview .an-ticket-table td:first-child{font-size:var(--ticket-load-px,13px)!important}

.dls-preview .an-ticket-page .an-ticket-table{font-size:var(--ticket-body-px,13px)!important}
.dls-preview .an-ticket-page .an-ticket-table td{height:var(--ticket-row-px,28px)!important;border-width:var(--ticket-grid-px,1.25px)!important}

.dls-preview .paper-ticket .paper-ticket-table{font-size:var(--generic-body-px,12px)}
.dls-preview .paper-ticket .paper-ticket-table td{height:var(--generic-row-px,20px);border-width:var(--generic-grid-px,1px)}

/* V7.31.20: full sheets first; optional load records and source corrections below. */
#dls-date-label{display:none}
.dls-working-scroll{overflow-x:auto;border:1px solid #dfe5ec;border-radius:12px;background:#fff;margin-bottom:18px}
.dls-working-table{border-collapse:collapse;width:100%;text-align:left;font-size:14px}
.dls-working-table caption{text-align:left;padding:15px 18px;font-size:17px;font-weight:700;color:#26384d}
.dls-working-table th{font-size:12px;color:#65758a;background:#f5f7fa;padding:10px 14px;font-weight:700}
.dls-working-table td{padding:12px 14px;border-top:1px solid #e5eaf0;vertical-align:middle;overflow-wrap:anywhere}
.dls-working-table td:first-child strong{display:block;font-size:16px;color:#202936}
.dls-working-table td:first-child small{display:block;margin-top:3px;font-size:12px;color:#6b7c91}
.dls-working-table .dls-weight{font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap}
.dls-working-table button{margin:0!important;white-space:nowrap}
.dls-source-details{border:1px solid #dfe5ec;border-radius:12px;padding:15px 18px;background:#fff;margin:14px 0}
.dls-source-details>summary{cursor:pointer;color:#315d9d;font-size:14px;font-weight:700;min-height:24px}
.dls-source-details[open]>summary{margin-bottom:15px}
.dls-preview-controls{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.dls-preview-controls label{display:flex;align-items:center;gap:10px;margin:0;color:#65758a;font-size:13px}
.dls-preview-controls select{padding:9px 12px;border:1px solid #d4dde7;border-radius:9px;background:#fff;color:#202936;max-width:100%}
#dls-sheet-view{min-width:0}
.dls-job-card:focus-visible,.dls-source-details>summary:focus-visible{outline:3px solid #8bb4ff;outline-offset:3px}
@media(max-width:760px){
 .dls-working-table,.dls-working-table tbody{display:block;width:100%}
 .dls-working-table thead{display:none}
 .dls-working-table caption{display:block;padding:13px 14px}
 .dls-working-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #dfe5ec;padding:0 12px 12px;gap:0 8px}
 .dls-working-table td{display:flex;flex-direction:column;gap:4px;min-width:0;border:0;padding:10px 0;font-size:13px}
 .dls-working-table td:before{content:attr(data-label);font-size:10px;color:#6b7c91;font-weight:600}
 .dls-working-table td:first-child{grid-column:1/3;padding-bottom:0}
 .dls-working-table td:first-child:before{display:none}
 .dls-working-table td:nth-child(2){grid-column:3;grid-row:1;text-align:right;padding-bottom:0}
 .dls-working-table td:nth-child(3){grid-column:1/3}
 .dls-working-table td:nth-child(4){grid-column:3;text-align:right}
 .dls-working-table td:last-child{grid-column:1/-1;padding:0}
 .dls-working-table td:last-child:before{display:none}
 .dls-working-table td:last-child button{width:100%!important;min-height:38px}
 .dls-source-details{padding:13px 12px}
 .dls-preview-controls label{align-items:flex-start;flex-direction:column;width:100%}
 .dls-preview-controls select{width:100%}
 .dls-job-side{min-width:100px;max-width:42%}
 .dls-job-side strong{white-space:normal}
}
