/* Dispatch center: readable operational grid; no navigation or business-rule changes. */
#productionWorkspace #board{min-width:1180px}
#productionWorkspace #board .board-heading,#productionWorkspace #board .job-row{display:grid!important;grid-template-columns:minmax(230px,2fr) 100px 110px 110px 120px minmax(145px,1.2fr) minmax(170px,1.4fr) 110px!important;width:100%;align-items:stretch}
#productionWorkspace #board .board-heading{position:sticky;top:0;z-index:4;min-height:46px}
#productionWorkspace #board .board-heading>div{display:flex;align-items:center;justify-content:center;padding:12px 8px!important;font:600 12px/1.4 system-ui;min-width:0}
#productionWorkspace #board .job-row>div{min-height:100px!important;box-sizing:border-box;padding:12px 10px!important;border:0!important;border-right:1px solid #d1deeb!important;border-bottom:1px solid #c7d8e7!important;border-radius:0!important;box-shadow:none!important;gap:7px;justify-content:center}
#productionWorkspace #board .job-row .customer-cell{display:flex!important;align-items:flex-start!important;flex-direction:column!important;position:relative;background:var(--sc-row-background)!important;gap:5px!important}
#productionWorkspace #board .dispatch-assigned>.customer-cell>.record-picker,#productionWorkspace #board .dispatch-assigned>.customer-cell>.resource-link,#productionWorkspace #board .customer-row-number{display:none!important}
#productionWorkspace #board .customer-expand{display:flex!important;align-items:center!important;width:100%;padding:0!important;min-height:28px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#102e49!important;font:700 14px/1.4 system-ui!important;text-align:left!important;gap:6px!important;border-radius:0!important}
#productionWorkspace #board .customer-expand>span{white-space:normal!important;text-align:left!important;overflow-wrap:break-word!important}
#productionWorkspace #board .customer-expand>b{font-size:14px;color:#075fc7;margin-left:auto}
#productionWorkspace #board .customer-expand:before{display:none!important}
#productionWorkspace #board .dispatch-address{font:12px/1.4 system-ui;color:#526c83}
#productionWorkspace #board .dispatch-row-next{font:600 12px/1.4 system-ui;color:#254c70}
#productionWorkspace #board .dispatch-open{font-size:12px!important;min-height:30px!important;padding:4px 8px!important;align-self:flex-start}
#productionWorkspace #board .marker-cell{display:flex;flex-direction:column;align-items:center}
#productionWorkspace #board .marker-cell .dot{width:34px!important;height:34px!important;min-height:34px!important;padding:4px!important;border:0!important;background:transparent!important}
#productionWorkspace #board .marker-symbol{width:26px!important;height:26px!important}
#productionWorkspace #board .marker-balance,#productionWorkspace #board .marker-date{font-size:11px;line-height:1.4;text-align:center}
#productionWorkspace #board .dispatch-permit-cell{display:flex;flex-direction:column;align-items:center}
#productionWorkspace #board .dispatch-permit-cell button{font-size:12px!important;padding:6px 8px!important;line-height:1.4!important;max-width:100%;border:1px solid #a6bdd3;background:#e6eff8;color:#294e70}
#productionWorkspace #board .dispatch-permit-cell .is-ready{background:#e1f2e8;border-color:#9ac8ac;color:#22603e}
#productionWorkspace #board .dispatch-date{font-size:11px;color:#42617c;line-height:1.4}
#productionWorkspace #board .dispatch-date.is-overdue{color:#9b2534;font-weight:700}
#productionWorkspace #board .status-cell,#productionWorkspace #board .contractor-cell{display:flex;flex-direction:column;align-items:stretch;min-width:0}
#productionWorkspace #board .status-cell select{font:12px/1.4 system-ui;padding:7px;min-height:34px;max-width:100%}
#productionWorkspace .board-wrap{max-height:calc(100dvh - 320px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.dispatch-queues{display:flex;flex-wrap:wrap;gap:8px;margin:0 24px 14px}
.dispatch-queues button{background:#f8fbff;color:#274b6a;border:1px solid #a4bed7;font-variant-numeric:tabular-nums}
.dispatch-queues button[aria-pressed=true]{background:#102e49;color:#fff;border-color:#102e49}
.dispatch-hub h3{margin:0;color:#102e49}.dispatch-hub p{font-size:13px;line-height:1.6}
.dispatch-next{background:#e1edfa;border-left:3px solid #1687f7;border-radius:6px;padding:12px}
.dispatch-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.dispatch-links button{width:100%;min-width:0!important}
.dispatch-hub label,.dispatch-permit label{display:grid;gap:6px;font-size:13px;color:#294c69}
.dispatch-hub textarea{width:100%;min-height:90px;margin-bottom:14px}
.dispatch-permit{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dispatch-permit p,.dispatch-permit>button{grid-column:1/-1}
#productionWorkspace #board .customer-cell .jpb-contact-actions{position:absolute;right:10px;bottom:12px;gap:4px}
#productionWorkspace .job-view-toolbar{padding:6px 12px;margin-top:0;margin-bottom:10px}
#productionWorkspace .dispatch-queues{margin-bottom:10px}
#productionWorkspace .pagebar{padding-right:90px!important}
#productionWorkspace #board .board-heading>div{background:#e6f2ff!important;color:#123b5b!important;border-color:#bbd3e7}
#productionWorkspace #board .board-heading :is(span,button){color:#123b5b!important}
#productionWorkspace #board .board-heading{background:#e6f2ff!important;border-bottom:2px solid #1687f7}

/* Owner-supplied reference: compact table and a contextual right-hand details panel. */
#productionWorkspace #board{min-width:1140px}
#productionWorkspace #board .board-heading,#productionWorkspace #board .job-row{grid-template-columns:90px minmax(175px,1.8fr) 75px 85px 85px 100px minmax(130px,1.2fr) 145px 90px 110px!important}
#productionWorkspace #board .job-row{min-height:64px!important}
#productionWorkspace #board .job-row>div{min-height:64px!important;padding:10px 8px!important;border-right:0!important;justify-content:center;font-size:12px}
#productionWorkspace #board .dispatch-assigned>.customer-cell{justify-content:center!important;padding:10px 12px!important}
#productionWorkspace #board .dispatch-address,#productionWorkspace #board .dispatch-row-next,#productionWorkspace #board .customer-cell .jpb-contact-actions,#productionWorkspace #board .customer-cell .resource-link,#productionWorkspace #board .marker-cell .resource-link,#productionWorkspace #board .marker-balance,#productionWorkspace #board .marker-date{display:none!important}
#productionWorkspace #board .customer-expand{font-size:12px!important;min-height:30px!important;white-space:nowrap!important}
#productionWorkspace #board .customer-expand>span{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
#productionWorkspace #board .dispatch-job-id{display:flex;align-items:center;font:600 11px/1.4 system-ui;color:#42617c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#productionWorkspace #board .dispatch-row-actions{display:flex;align-items:center;gap:5px}
#productionWorkspace #board .dispatch-row-actions button{font-size:11px!important;min-height:30px!important;padding:5px 7px!important;border:1px solid #c0d4e5;background:#f8fbff;color:#175581}
#productionWorkspace #board .status-cell select{font-size:11px;min-height:30px}
#productionWorkspace #board .status-date-btn{font-size:10px!important;min-height:24px!important;padding:2px!important}
.dispatch-view-tools{margin:0 24px 14px;color:#42617c;font-size:12px}
.dispatch-view-tools>summary{cursor:pointer;padding:6px 0;font-weight:600}
.dispatch-view-tools .dispatch-queues{margin:8px 0}
#productionWorkspace .dispatch-view-tools .job-view-toolbar{margin:0;padding:8px 10px}
.dispatch-status-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:16px 0}
.dispatch-status-summary>div{display:grid;gap:7px;padding:12px 9px;border:1px solid #bdd5e8;border-radius:7px;background:#e9f3fc;min-width:0}
.dispatch-status-summary small{font-size:11px;color:#42617c}.dispatch-status-summary strong{font-size:12px;color:#173d60;overflow-wrap:anywhere}
#modal:has(.dispatch-hub)>.card{position:fixed;right:20px;top:20px;bottom:20px;margin:0;width:min(620px,calc(100vw - 40px));max-width:none;max-height:none;overflow:auto;border-radius:12px;padding:24px}
#modal:has(.dispatch-hub) #modalBody>h2{font-size:20px}
@media(max-width:800px){.dispatch-view-tools{margin:0 16px 14px}.dispatch-status-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#productionWorkspace #board{min-width:0}#productionWorkspace #board .job-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}#productionWorkspace #board .job-row>.dispatch-job-id{grid-column:1/-1;justify-content:flex-start;min-height:32px!important;background:#edf6ff!important}#productionWorkspace #board .job-row>.customer-cell{grid-column:1/-1}#productionWorkspace #board .job-row>.dispatch-row-actions{grid-column:1/-1;justify-content:flex-end}#productionWorkspace #board .dispatch-address{display:block!important}#productionWorkspace #board .dispatch-row-actions button{min-height:40px!important}#modal:has(.dispatch-hub)>.card{inset:12px;width:calc(100vw - 24px);padding:20px}.dispatch-status-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.dispatch-queues{margin:0 16px 14px}.dispatch-links{grid-template-columns:repeat(2,minmax(0,1fr))}.dispatch-permit{grid-template-columns:1fr}}
@media(max-width:700px){#productionWorkspace #board{min-width:0}#productionWorkspace #board .board-heading{display:none!important}#productionWorkspace .board-wrap{max-height:none;border:0;box-shadow:none;background:transparent;overflow:visible}#productionWorkspace #board .job-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;border:1px solid #a4bed7;border-radius:10px!important;overflow:hidden;margin-bottom:16px;box-shadow:0 4px 14px #102c4615}#productionWorkspace #board .job-row>div{display:flex!important;min-height:96px!important;border-bottom:1px solid #c7d8e7!important}#productionWorkspace #board .job-row>.customer-cell{grid-column:1/-1;border-top:3px solid #1687f7!important;padding:14px!important}#productionWorkspace #board .job-row>div:not(.customer-cell):before{content:attr(data-label);font:600 11px/1.4 system-ui;color:#42617c;text-align:center}#productionWorkspace #board .dispatch-open{min-height:40px!important}#productionWorkspace #board .job-row .dot{min-height:40px!important;width:40px!important;height:40px!important}.dispatch-links{gap:8px}}
