#ceDumpView.ce-dump-view{z-index:2100!important;background:rgba(0,0,0,.25)}.ce-dump-view .modal-dialog{height:calc(100dvh - 2rem);max-width:1100px;margin:1rem auto}.ce-dump-view .modal-content{max-height:100%;border-top:4px solid #ffc107}.ce-dump-view .modal-header{border-bottom:1px solid #ffc107}.ce-dump-view .modal-body{overflow:auto}.ce-dump-tabs{display:flex;gap:8px;margin-bottom:16px}.ce-dump-tabs button,.ce-dump-driver{border:1px solid #ddd;background:white;border-radius:5px;padding:8px 12px;color:#333;font:inherit;font-size:12px}.ce-dump-tabs button.active{background:#fff4cb;border-color:#ffc107;font-weight:600}.ce-dump-panes{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;min-height:350px}.ce-dump-panes aside{border-right:1px solid #ddd;padding-right:12px}.ce-dump-driver{display:block;width:100%;text-align:left;margin-bottom:8px}.ce-dump-driver.active{background:#fff4cb;border-left:4px solid #aa2424}.ce-dump-driver small{display:block;color:#666}.ce-dump-detail{font-size:13px;min-width:0}.ce-dump-detail dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.ce-dump-detail dd{margin:0}.ce-dump-detail details{border:1px solid #ddd;border-radius:5px;padding:10px;margin-bottom:8px}.ce-dump-detail summary{cursor:pointer}.ce-dump-map{height:380px;width:100%}.ce-dump-warning{color:#b02020!important;background:#fff0f0!important;font-weight:700}.ce-dump-pdf-actions{display:inline-flex;flex-wrap:wrap;gap:5px;margin:3px}.ce-dump-pdf-actions .btn,.ce-dump-pdf-button{font-size:11px!important;padding:4px 7px!important;width:auto!important;white-space:nowrap}
[data-ce-dispatch-policy][data-ce-policy-kind="dump"] .ce-policy-assignment,[data-ce-dispatch-policy]:not([data-ce-policy-kind]) .ce-policy-assignment{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
[data-ce-dispatch-policy][data-ce-policy-kind="dump"] .ce-policy-assignment button,[data-ce-dispatch-policy]:not([data-ce-policy-kind]) .ce-policy-assignment button{font-size:11px!important;line-height:1.4!important;padding:4px 8px!important;min-height:0!important;width:auto!important;margin:0!important;border-radius:5px!important}
@media(max-width:600px){.ce-dump-view .modal-dialog{margin:.5rem;height:calc(100dvh - 1rem)}.ce-dump-panes{grid-template-columns:130px minmax(0,1fr);gap:10px}.ce-dump-panes aside{padding-right:6px}.ce-dump-driver{padding:7px;font-size:11px}.ce-dump-detail dl{grid-template-columns:1fr}.ce-dump-map{height:300px}}

/* Content-sized document dialog, bounded by the viewport. */
#ceDumpView .modal-dialog{height:auto;max-height:calc(100dvh - 2rem);width:calc(100% - 2rem);max-width:1100px;transition:max-width .15s ease}
#ceDumpView .modal-content{max-height:calc(100dvh - 2rem)}
#ceDumpView .ce-dump-panes{min-height:180px}
#ceDumpView.ce-dump-preview-open .modal-dialog{max-width:1400px}
#ceDumpView .ce-dump-dispatch-only{grid-template-columns:minmax(0,1fr)}
#ceDumpView .ce-dump-detail dd{white-space:pre-wrap;overflow-wrap:anywhere}
#ceDumpView .ce-dump-tabs{flex-wrap:wrap}
#ceDumpView .ce-dump-document-preview{display:block;width:100%;margin-top:12px;border:1px solid #ddd;border-radius:5px}
#ceDumpView img.ce-dump-document-preview{height:auto;max-height:65dvh;object-fit:contain}
#ceDumpView iframe.ce-dump-document-preview{height:65dvh;min-height:250px;background:#f5f5f5}

/* View Dispatch header contrast */
#ceDumpView .modal-header{background:#242424!important}
#ceDumpView #ceDumpTitle{color:#ffc107!important;font-weight:600}
#ceDumpView .modal-header .btn-close{filter:invert(1) grayscale(1) brightness(2);opacity:1}

#ceDumpView .ce-dump-playback{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0}#ceDumpView .ce-dump-playback button,#ceDumpView .ce-dump-playback select{border:1px solid #ddd;border-radius:5px;background:#fff4cb;padding:6px 12px;font:inherit}#ceDumpView .ce-dump-upload{padding:12px;background:#fff8df;border:1px solid #ffdf80;border-radius:6px;margin-bottom:14px}#ceDumpView .ce-dump-upload input{display:block;max-width:100%;margin:8px 0}#ceDumpView .ce-dump-upload p{margin:8px 0 0}

/* Viewport-filling route view, with controls and close button kept visible. */
#ceDumpView.ce-dump-fullscreen .modal-dialog{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;transition:none}
#ceDumpView.ce-dump-fullscreen .modal-content{height:100dvh;max-height:100dvh;border-radius:0}
#ceDumpView.ce-dump-fullscreen .modal-body{display:flex;flex-direction:column;min-height:0}
#ceDumpView.ce-dump-fullscreen .ce-dump-panes{flex:1;min-height:0}
#ceDumpView.ce-dump-fullscreen .ce-dump-panes aside{overflow:auto}
#ceDumpView.ce-dump-fullscreen .ce-dump-detail{display:flex;flex-direction:column;min-height:0}
#ceDumpView.ce-dump-fullscreen .ce-dump-map{flex:1;min-height:180px;height:auto}
@media(max-width:600px){#ceDumpView.ce-dump-fullscreen .ce-dump-panes{grid-template-columns:minmax(0,1fr)}#ceDumpView.ce-dump-fullscreen .ce-dump-panes aside{display:none}}

#ceDumpView .ce-dump-stop-filter{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 10px;background:#fff8df;border:1px solid #ffdf80;border-radius:5px}#ceDumpView .ce-dump-stop-filter label{display:flex;align-items:center;gap:8px;margin:0}#ceDumpView .ce-dump-stop-filter input[type=number]{width:75px;padding:4px;border:1px solid #ccc;border-radius:4px}#ceDumpView .ce-dump-stop-filter input[type=checkbox]{width:16px;height:16px;accent-color:#a92020}

.ce-truck-map-host{display:flex;flex-direction:column;gap:8px;min-height:0;flex:1}.ce-truck-map-host .ce-dump-map{min-height:300px}.ce-truck-marker{background:transparent;border:0}.ce-truck-number{display:block;min-width:32px;width:max-content;padding:3px 6px;border:2px solid white;border-radius:14px;color:#fff;font:700 12px Poppins,sans-serif;box-shadow:0 1px 5px #333;white-space:nowrap}.ce-truck-timeline{width:100%}.ce-truck-ended{color:#15803d!important;font-weight:600}.ce-truck-map-host .ce-dump-playback{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ce-truck-map-host .ce-dump-playback button,.ce-truck-map-host select{font:inherit;font-size:12px;padding:6px 10px;background:#fff4cb;border:1px solid #ddd;border-radius:5px}.ce-truck-map-host .ce-dump-stop-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff8df;padding:10px;border:1px solid #ffdf80;border-radius:5px}.ce-truck-map-host .ce-dump-stop-filter label{display:flex;gap:8px;align-items:center;margin:0}.ce-truck-map-host input[type=number]{width:75px}.ce-truck-map-host small{font-size:11px}
