@media(max-width:700px){.table th:last-child,.table td:last-child{display:table-cell!important}.table th:nth-child(5),.table td:nth-child(5){display:none}}
.media-item{position:relative;display:inline-block}.remove-media{position:absolute;right:-6px;top:-7px;width:22px;height:22px;padding:0;border-radius:50%;background:#c42c39;color:#fff}.filetile{display:grid;place-items:center;padding:6px;background:#f2effa;font-size:10px}.factory-row{display:flex;gap:8px;align-items:end}.factory-row .field{flex:1}.review p{padding:9px;margin:0;border-bottom:1px solid #e5e1ed}
.marker-view-status{display:inline-block;margin-left:7px;padding:5px 7px;border-radius:12px;font-size:10px;font-weight:700;white-space:nowrap}.marker-view-status.PENDING{background:#fff0cf;color:#996300}.marker-view-status.VERIFIED{background:#dff5e7;color:#087436}.marker-view-status.LOCKED{background:#118542;color:#fff}
.media-fullscreen{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:24px;background:#090713ee;touch-action:pan-y}.media-large{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.media-close,.media-nav{position:absolute;z-index:1;width:44px;height:44px;padding:0;border-radius:50%;background:#fff;color:#1a1530;font-size:30px;line-height:38px}.media-close{top:16px;right:18px}.media-nav{top:50%;transform:translateY(-50%)}.media-prev{left:18px}.media-next{right:18px}.media-nav:disabled{opacity:.3}.media-count{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);padding:7px 11px;border-radius:14px;background:#ffffffd9;color:#1a1530;font-weight:bold}.thumb{cursor:zoom-in}
@media(min-width:701px){.media-fullscreen{padding:38px 118px}.media-large{max-width:1080px;max-height:calc(100vh - 76px)}.media-prev{left:max(20px,calc(50% - 580px))}.media-next{right:max(20px,calc(50% - 580px))}.media-close{top:20px;right:24px}.media-count{bottom:22px}}
.load-search{margin:0 0 12px}.load-search input{width:min(460px,100%);padding:11px 13px;border:1px solid #d9d5e0;border-radius:6px;background:#fff}
.dashboard-filter{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:0 0 14px}.dashboard-filter label{display:grid;gap:4px;font-size:11px;font-weight:bold}.dashboard-filter input{padding:9px;border:1px solid #d9d5e0;border-radius:6px}.dashboard-filter button{padding:10px 13px}.dashboard-filter span{width:100%;font-size:12px;color:#777386}
.marker-status-control{padding:7px 10px;font-size:11px}
.marker-password-reset{padding:6px 8px;font-size:10px}.secured-password{letter-spacing:2px;color:#777386}
.marker-dashboard-filter .marker-load-search{padding:9px 11px;border:1px solid #d9d5e0;border-radius:6px;min-width:240px}
.marker-identity-fields{border-top:1px solid #e5e1ed;margin-top:12px;padding-top:4px}.marker-detail-identity{border-top:1px solid #e5e1ed;margin:12px 0}.marker-detail-identity p{margin:8px 0}
.report-workspace #reportExport:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(1)}
#profileModal{z-index:30}
.table-wrap{overflow-x:auto}.table-wrap table{width:100%;border-collapse:collapse;table-layout:fixed}.table-wrap th,.table-wrap td{padding:12px 14px;text-align:left;vertical-align:middle;border-bottom:1px solid #e5e1ed;white-space:normal;overflow-wrap:anywhere}.table-wrap th{font-size:12px;color:#625d77}.table-wrap th:nth-child(1),.table-wrap td:nth-child(1){width:25%}.table-wrap th:nth-child(2),.table-wrap td:nth-child(2){width:14%;white-space:nowrap}.table-wrap th:nth-child(3),.table-wrap td:nth-child(3){width:37%}.table-wrap th:nth-child(4),.table-wrap td:nth-child(4){width:24%}.table-wrap tbody tr:last-child td{border-bottom:0}@media(max-width:700px){.table-wrap table{min-width:650px}.table-wrap th,.table-wrap td{padding:10px}}
.qr-settings{grid-column:1/-1;border-top:1px solid #e5e1ed;padding-top:14px}.qr-settings h2{font-size:16px;margin:0 0 4px}.qr-settings input{margin:8px 0}.qr-settings #qrPasteArea{min-height:76px;border:2px dashed #4d24ad;border-radius:7px;display:grid;place-items:center;text-align:center;color:#4d24ad;padding:12px;cursor:pointer}.qr-settings #qrPasteArea:focus{outline:3px solid #dcd1ff}.qr-settings #qrImagePreview{margin-top:10px}.qr-settings #qrImagePreview .thumb,.company-qr-code .thumb{width:180px;height:180px;object-fit:contain;background:#fff}.company-qr-code{margin:14px 0}
.login-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.login-tabs button{min-height:50px}.login-tabs button:nth-child(3),.login-tabs button:nth-child(4){border-top:1px solid #e5e1ed}
#modal .current-admin-files{display:none}
.inline-admin-delete{margin-left:8px;padding:4px 8px;border:0;border-radius:4px;background:#c92f3e;color:#fff;font-size:10px;font-weight:700}.inline-admin-delete:disabled{opacity:.55}.added-file{overflow-wrap:anywhere}
.status.LOCKED{background:#118542!important;color:#fff!important}.status.PENDING{background:#f59e0b!important;color:#402700!important}.row-export{margin-left:7px;padding:11px 14px}.row-export:disabled{opacity:.55}
.media-upload-layer{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:rgba(14,9,39,.86);backdrop-filter:blur(3px)}
.media-upload-card{width:min(440px,100%);padding:26px;border-radius:18px;background:#fff;box-shadow:0 18px 60px rgba(0,0,0,.35);text-align:center}
.media-upload-card img{display:block;width:150px;max-height:100px;object-fit:contain;margin:0 auto 12px}
.media-upload-card h2{margin:4px 0 12px}.media-upload-card p{overflow-wrap:anywhere}.media-upload-card progress{display:block;width:100%;height:18px;margin:14px 0;accent-color:#5425bc}
.media-upload-card .small{color:#6d687d;font-size:13px}.media-upload-card .upload-close{width:100%;margin-top:10px}
.upload-progress-row{display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:center;gap:10px}.upload-progress-row progress{margin:14px 0}.upload-progress-row b{color:#5425bc}.media-upload-card .upload-home{width:100%;margin-top:14px;padding:13px}
.video-preview{display:inline-grid;width:178px;max-width:46%;gap:5px;margin:4px;vertical-align:top}.video-preview-player{width:100%;height:112px;border-radius:5px;background:#050505;object-fit:contain}.video-fullscreen-button{padding:8px 5px;border-radius:5px;background:#4d24ad;color:#fff;font-size:11px}.full-video-player{width:min(1100px,100%);height:min(78vh,720px);background:#000}.media-native-fullscreen{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);z-index:2;padding:10px 16px;border-radius:6px;background:#fff;color:#281268;font-weight:700}.video-fullscreen-viewer .media-count,.video-fullscreen-viewer .media-nav{display:none}@media(max-width:700px){.video-preview{width:46%}.video-preview-player{height:96px}.full-video-player{height:72vh}.media-native-fullscreen{bottom:14px}}
.modal .thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px;width:100%}.modal .thumbs>.thumb{width:100%;height:auto;aspect-ratio:4/3}.modal .thumbs>.video-preview{width:100%;max-width:none;margin:0;min-width:0}.modal .video-preview-player{aspect-ratio:4/3;height:auto}
.video-edit-thumbnail{display:block;background:#08080b;object-fit:contain;pointer-events:none}
.video-fullscreen-viewer{padding:max(12px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));overflow:hidden}.video-fullscreen-viewer .full-video-player{display:block;width:100%;height:auto;max-width:100vw;max-height:calc(100dvh - 88px);aspect-ratio:auto;object-fit:contain}.video-fullscreen-viewer .media-close{top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:48px;height:48px;font-size:28px}.video-fullscreen-viewer .media-native-fullscreen{top:max(10px,env(safe-area-inset-top));bottom:auto;left:max(10px,env(safe-area-inset-left));transform:none;max-width:calc(100vw - 82px);white-space:nowrap}@media(orientation:landscape){.video-fullscreen-viewer{padding:0}.video-fullscreen-viewer .full-video-player{width:100vw;height:100dvh;max-width:none;max-height:none}.video-fullscreen-viewer .media-native-fullscreen{top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left))}.video-fullscreen-viewer .media-close{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right))}}
.complete-media-gallery .media-native-fullscreen{top:max(12px,env(safe-area-inset-top));bottom:auto;left:max(12px,env(safe-area-inset-left));transform:none}.complete-media-gallery video.media-large{background:#000;max-height:calc(100dvh - 70px)}
.load-submission-metadata{margin:10px 0;line-height:1.45}

/* Keep load lists inside the available viewport rather than widening the page. */
.layout{grid-template-columns:225px minmax(0,1fr)}
.page,.panel{min-width:0}
.tablewrap{width:100%;max-width:100%;overflow-x:auto}
.tablewrap:has(.view) .table{table-layout:fixed}
.tablewrap:has(.view) .table th,.tablewrap:has(.view) .table td{white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
.tablewrap:has(.view) .table th:nth-child(1){width:17%}
.tablewrap:has(.view) .table th:nth-child(2){width:16%}
.tablewrap:has(.view) .table th:nth-child(3){width:18%}
.tablewrap:has(.view) .table th:nth-child(4){width:13%}
.tablewrap:has(.view) .table th:nth-child(5){width:13%}
.tablewrap:has(.view) .table th:nth-child(6){width:12%}
.tablewrap:has(.view) .table th:nth-child(7){width:11%}
.tablewrap:has(.view) .table td:last-child button{display:block;width:100%;margin:3px 0;padding:9px 5px;white-space:nowrap}
.tablewrap:has(.view) .table .status{display:inline-block;max-width:100%;white-space:normal;overflow-wrap:normal;text-align:center}
@media(max-width:900px) and (min-width:701px){.tablewrap:has(.view) .table{min-width:700px}}
@media(max-width:1100px) and (min-width:701px){.tablewrap:has(.view) .table td{font-size:13px}}
@media(max-width:700px){
 .layout{display:block}
 .tablewrap:has(.view) .table,.tablewrap:has(.view) .table tbody{display:block;width:100%}
 .tablewrap:has(.view) .table thead{display:none}
 .tablewrap:has(.view) .table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
 .tablewrap:has(.view) .table tr[hidden]{display:none}
 .tablewrap:has(.view) .table td{display:block!important;width:auto;padding:0;border:0;min-width:0}
 .tablewrap:has(.view) .table td:before{display:block;color:var(--muted);font-size:11px;font-weight:bold;margin-bottom:4px}
 .tablewrap:has(.view) .table td:nth-child(1):before{content:'Load ID'}
 .tablewrap:has(.view) .table td:nth-child(2):before{content:'Date'}
 .tablewrap:has(.view) .table td:nth-child(3):before{content:'Factory'}
 .tablewrap:has(.view) .table td:nth-child(4):before{content:'Vehicle'}
 .tablewrap:has(.view) .table td:nth-child(5):before{content:'Marker ID'}
 .tablewrap:has(.view) .table td:nth-child(6):before{content:'Status'}
 .tablewrap:has(.view) .table td:nth-child(7){grid-column:1/-1}
 .tablewrap:has(.view) .table td:nth-child(7):before{content:'Actions'}
 .tablewrap:has(.view) .table td:last-child button{display:inline-block;width:auto;min-width:85px;margin:0 6px 0 0}
}
