.phsd-page{max-width:1280px;margin:0 auto;color:var(--ph-text,#0f172a)}.phsd-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:4px 0 24px}.phsd-head h2{font-size:27px!important;letter-spacing:-.03em;margin:6px 0!important}.phsd-head p,.phsd-muted{color:#64748b;font-size:13px}.phsd-eyebrow{font-size:10px;font-weight:800;letter-spacing:.09em;color:#64748b}.phsd-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;background:#fff;border:1px solid #e2e8f0;padding:16px;border-radius:14px;margin-bottom:20px}.phsd-filters label,.phsd-confirm label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#475569}.phsd-filters input,.phsd-filters select,.phsd-confirm input,.phsd-confirm select{box-sizing:border-box;width:100%;font:inherit;color:#0f172a;background:#fff;border:1px solid #cbd5e1;padding:10px 12px;border-radius:8px;min-height:42px}.phsd-grow{flex:1;min-width:220px}.phsd-tag{display:inline-flex;align-items:center;border-radius:6px;padding:4px 8px;font-size:11px;font-weight:700;background:#f1f5f9;color:#475569;line-height:1.4;white-space:normal}.phsd-tag.green{background:#dcfce7;color:#166534}.phsd-tag.blue{background:#eaf2ff;color:#1d4ed8}.phsd-tag.red{background:#fee2e2;color:#991b1b}.phsd-tag.amber{background:#fff1cc;color:#92400e}.phsd-deliveries,.phsd-users{display:grid;gap:14px}.phsd-delivery,.phsd-user{border:1px solid #e2e8f0;border-radius:14px;background:#fff;overflow:hidden}.phsd-delivery-head{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:18px 22px;background:#f8fafc;border-bottom:1px solid #eef2f7}.phsd-page h3{font-size:17px!important;margin:4px 0!important;line-height:1.35}.phsd-page small{font-size:12px;color:#64748b;overflow-wrap:anywhere}.phsd-customer{margin:18px 22px 22px 42px;border-left:3px solid #dbeafe;padding-left:20px}.phsd-page h4{font-size:18px!important;line-height:1.4;margin:6px 0!important}.phsd-customer p{margin:6px 0 12px;font-size:13px;color:#475569}.phsd-so{display:flex;gap:12px;align-items:start;background:#f8fafc;padding:10px 12px;border-radius:7px;font-size:13px;overflow-wrap:anywhere}.phsd-so strong{color:#2563eb}.phsd-note{white-space:pre-wrap}.phsd-photos{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.phsd-photo{padding:0!important;border:1px solid #e2e8f0!important;border-radius:9px!important;overflow:hidden;background:#f8fafc!important;color:#334155!important;cursor:pointer;width:128px;text-align:left;font-size:11px!important}.phsd-photo img{width:100%;height:85px;object-fit:cover;display:block}.phsd-photo span{display:block;padding:7px 9px}.phsd-photo-failed:before{content:'Foto tidak tersedia';display:grid;place-items:center;height:85px;font-size:11px}.phsd-user{padding:20px}.phsd-user-title{display:flex;align-items:center;gap:12px}.phsd-avatar{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:12px;background:#eff6ff;color:#1d4ed8;font-weight:800}.phsd-tags{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap}.phsd-statuses{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0}.phsd-user-grid{display:grid;grid-template-columns:1.3fr 1fr .6fr;gap:16px;padding:16px 0;border-top:1px solid #f1f5f9}.phsd-user-grid span,.phsd-user-grid strong,.phsd-user-grid small{display:block}.phsd-user-grid span{font-size:11px;color:#64748b;margin-bottom:7px}.phsd-user-grid strong{font-size:13px;overflow-wrap:anywhere}.phsd-user-grid small{margin-top:5px}.phsd-pending{color:#92400e!important}.phsd-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding-top:12px;border-top:1px solid #f1f5f9}.phsd-page .ph-btn,.phsd-dialog .ph-btn{font-size:12px;min-height:38px;border-radius:8px}.phsd-page button:disabled,.phsd-dialog button:disabled{opacity:.45;cursor:not-allowed;transform:none!important}.phsd-paging{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:20px 0;font-size:12px;color:#64748b}.phsd-paging>div{display:flex;gap:8px}.phsd-notice{padding:14px 16px;border:1px solid #f5d58b;background:#fffbeb;color:#854d0e;font-size:13px;border-radius:10px;margin-bottom:16px;line-height:1.65}.phsd-error{font-size:13px;color:#b91c1c;margin:12px 0;white-space:pre-wrap}.phsd-error:empty{display:none}.phsd-success{color:#166534}.phsd-dialog{box-sizing:border-box;width:min(520px,94vw);max-height:90vh;overflow:auto;border:1px solid #e2e8f0;border-radius:16px;padding:24px;background:white;color:#0f172a;font-family:Inter,system-ui,sans-serif;box-shadow:0 30px 100px #0004}.phsd-dialog::backdrop{background:rgba(15,23,42,.7)}.phsd-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.phsd-dialog header h2{font-size:20px;margin:0}.phsd-dialog p{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.phsd-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.phsd-dialog code{white-space:normal;overflow-wrap:anywhere}.phsd-lightbox{width:min(1000px,96vw);max-height:94vh}.phsd-lightbox header>div{display:flex;gap:8px}.phsd-photo-stage{height:65vh;overflow:auto;background:#0f172a;border-radius:8px}.phsd-photo-stage img{width:100%;height:auto;display:block}.phsd-page[aria-busy=true]{opacity:.7}.phsd-page :focus-visible,.phsd-dialog :focus-visible{outline:3px solid #60a5fa;outline-offset:3px}
@media(max-width:680px){.phsd-head{align-items:start}.phsd-head h2{font-size:23px!important}.phsd-head>.phsd-tag{display:none}.phsd-filters label{flex:1 1 140px}.phsd-filters .phsd-grow{flex-basis:100%}.phsd-customer{margin:16px 14px 18px 24px;padding-left:14px}.phsd-delivery-head{padding:16px}.phsd-user{padding:15px}.phsd-user-title{flex-wrap:wrap}.phsd-tags{margin-left:54px}.phsd-user-grid{grid-template-columns:1fr}.phsd-paging{align-items:start;flex-direction:column}.phsd-dialog{padding:18px}.phsd-photo{width:104px}.phsd-photo img{height:74px}}
/* V671 — dense operations workspace. */
.phsd-page{max-width:none;--sd-line:#e3e9f0;--sd-blue:#1764ce;--sd-ink:#172e49}.phsd-head{margin:0 0 18px}.phsd-head h2{font-size:25px!important}.phsd-head p{margin:5px 0}.phsd-head>.phsd-tag{border:1px solid #d6e6fa;background:#f2f7ff}.phsd-filters{box-shadow:none;border-color:var(--sd-line);padding:13px 16px;margin-bottom:14px}.phsd-summary{display:flex;flex-wrap:wrap;align-items:center;gap:22px;background:#fff;padding:12px 18px;border:1px solid var(--sd-line);border-radius:12px 12px 0 0;color:#64748b;font-size:12px}.phsd-summary b{font-size:17px;color:var(--sd-ink);margin-right:5px;font-variant-numeric:tabular-nums}.phsd-summary small{margin-left:auto}.phsd-sheet{overflow:auto;border:1px solid var(--sd-line);border-top:0;background:#fff;max-height:68vh;isolation:isolate;border-radius:0 0 12px 12px}.phsd-sheet table{border-collapse:separate;border-spacing:0;width:100%;min-width:1450px;font-size:12px;line-height:1.5;table-layout:fixed}.phsd-sheet th,.phsd-sheet td{padding:12px 13px;border-right:1px solid #edf0f4;border-bottom:1px solid #e8edf3;text-align:left;vertical-align:middle;overflow-wrap:anywhere}.phsd-sheet th{position:sticky;top:0;background:#f2f5f9;color:#52647a;font-weight:700;font-size:11px;z-index:3;white-space:nowrap}.phsd-sheet th:nth-child(1){width:44px}.phsd-sheet th:nth-child(2){width:220px}.phsd-sheet th:nth-child(3){width:120px}.phsd-sheet th:nth-child(4){width:130px}.phsd-sheet th:nth-child(5){width:150px}.phsd-sheet th:nth-child(6){width:190px}.phsd-sheet th:nth-child(7){width:190px}.phsd-sheet th:nth-child(8){width:275px}.phsd-sheet td{background:#fff;color:#334155}.phsd-sheet tr:nth-child(even) td{background:#f9fbfd}.phsd-sheet tr.phsd-nondriver td{background:#fffcf2}.phsd-sheet tbody tr:hover td{background:#eef5ff}.phsd-sheet th:nth-child(2),.phsd-sheet td:nth-child(2){position:sticky;left:0;z-index:2;border-right:2px solid #dce5f0}.phsd-sheet th:nth-child(2){z-index:4}.phsd-sheet strong{font-size:12px;color:#183b63}.phsd-sheet small{display:block;font-size:10px;margin-top:4px;color:#78889a}.phsd-rowno{color:#93a1b2!important;text-align:center!important;font-variant-numeric:tabular-nums}.phsd-cell-actions{display:flex;gap:4px;white-space:nowrap}.phsd-cell-actions .ph-btn{padding:5px 7px;font-size:10px;min-height:30px;border-radius:5px;box-shadow:none}.phsd-cell-actions [data-phsd-action=BLOCK]{color:#b42332;border-color:#f3d8de}.phsd-cell-actions [data-phsd-action=APPROVE]{color:#137659}.phsd-workbench{display:grid;grid-template-columns:175px minmax(240px,.9fr) minmax(320px,1.2fr);height:68vh;min-height:480px;max-height:800px;border:1px solid var(--sd-line);border-top:0;border-radius:0 0 12px 12px;overflow:hidden;background:#fff}.phsd-groups{background:#f8fafd;border-right:1px solid var(--sd-line);overflow:auto}.phsd-pane-label{font-size:10px;font-weight:800;letter-spacing:.1em;color:#8b98aa;padding:16px;display:flex;justify-content:space-between;border-bottom:1px solid #edf0f4;position:sticky;top:0;background:inherit;z-index:1}.phsd-month button,.phsd-days button{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;border:0;background:transparent;color:#596c82;font:inherit;font-size:11px;text-align:left;cursor:pointer;border-radius:6px;padding:10px}.phsd-month{padding:4px 7px}.phsd-month b{font-size:10px;background:#e9eef5;padding:2px 4px;border-radius:4px}.phsd-month button.selected{background:#e6f0ff;color:#1764ce}.phsd-days{padding:4px 0 4px 15px;margin-left:8px;border-left:1px solid #dce6f4}.phsd-days button{font-size:10px;margin-top:3px;padding:8px}.phsd-records{overflow:auto;border-right:1px solid var(--sd-line);background:#fff}.phsd-record{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:17px 15px;border:0;border-bottom:1px solid #edf1f6;background:#fff;color:var(--sd-ink);cursor:pointer;font:inherit;border-left:3px solid transparent}.phsd-record:hover{background:#f6f9ff}.phsd-record.selected{background:#edf4ff;border-left-color:#2675dc}.phsd-record-thumb{flex:0 0 44px;width:44px;height:52px;background:#e9eef5;border-radius:6px;overflow:hidden;display:grid;place-items:center;color:#96a6bc;font-size:23px}.phsd-record-thumb img{height:100%;width:100%;object-fit:cover}.phsd-record-copy{min-width:0;display:flex;flex-direction:column;gap:5px}.phsd-record-copy strong{font-size:12px;color:#19579f;line-height:1.4}.phsd-record-copy>span{font-size:10px;color:#627994;overflow-wrap:anywhere}.phsd-record-copy small,.phsd-record-copy time{font-size:10px;color:#8998aa}.phsd-record-chevron{margin-left:auto;color:#90a2bb;font-size:22px}.phsd-detail{overflow:auto;background:#fff;min-width:0}.phsd-detail-head{padding:23px 25px 20px;border-bottom:1px solid #eaf0f6}.phsd-detail-head h3{font-size:21px!important;color:#153d70;margin:10px 0 12px!important}.phsd-fields{margin:0;padding:8px 25px}.phsd-fields>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:18px;padding:13px 0;border-bottom:1px solid #f0f3f7;font-size:12px}.phsd-fields dt{color:#8994a4;font-size:11px;font-weight:400}.phsd-fields dd{margin:0;color:#304761;overflow-wrap:anywhere;white-space:pre-wrap}.phsd-evidence{padding:22px 25px}.phsd-evidence .phsd-photo{width:130px}.phsd-evidence .phsd-photo img{height:105px}.phsd-empty-detail{display:grid;place-items:center;min-height:340px;color:#94a3b8;font-size:13px}.phsd-pad{padding:20px}.phsd-location-layout{display:grid;grid-template-columns:290px minmax(0,1fr);border:1px solid var(--sd-line);border-top:0;border-radius:0 0 12px 12px;overflow:hidden;background:#fff}.phsd-location-list{border-right:1px solid var(--sd-line);max-height:630px;overflow:auto}.phsd-location-row{width:100%;display:flex;flex-direction:column;align-items:start;gap:7px;text-align:left;padding:18px;border:0;border-bottom:1px solid #eaf0f6;background:#fff;cursor:pointer;color:#243c59;font:inherit}.phsd-location-row strong{font-size:13px}.phsd-location-row small{font-size:10px}.phsd-location-row.selected{background:#edf4ff;box-shadow:inset 3px 0 #2675dc}.phsd-map-panel{min-width:0}.phsd-map-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:18px 22px}.phsd-map{display:block;border:0;width:100%;height:430px;background:#edf1f6}.phsd-map-meta{display:flex;flex-wrap:wrap;gap:14px;padding:16px 22px;font-size:11px;color:#64748b;line-height:1.7}.phsd-map-meta a{margin-left:auto;color:#1764ce;font-weight:700}.phsd-map-empty{min-height:460px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:20px;background:#f8fafd;color:#8091a6}.phsd-map-empty>span{font-size:48px;color:#a2b8d1}.phsd-map-empty p{font-size:12px;line-height:1.8}.phsd-paging{margin:14px 0}.phsd-page .phsd-filters input{font-size:12px}.phsd-record-thumb:has(img[style*="none"]):after{content:'▦'}
@media(max-width:1150px){.phsd-workbench{grid-template-columns:150px minmax(210px,.85fr) minmax(260px,1fr)}.phsd-fields>div{grid-template-columns:1fr;gap:5px}.phsd-fields{padding:8px 18px}.phsd-detail-head,.phsd-evidence{padding:18px}.phsd-location-layout{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:780px){.phsd-workbench{grid-template-columns:1fr;height:auto;max-height:none}.phsd-groups{max-height:170px;border-right:0;border-bottom:1px solid var(--sd-line)}.phsd-records{max-height:360px;border-right:0;border-bottom:1px solid var(--sd-line)}.phsd-detail{max-height:none;overflow:visible}.phsd-record{padding:12px}.phsd-summary{gap:12px}.phsd-summary small{width:100%;margin-left:0}.phsd-location-layout{grid-template-columns:1fr}.phsd-location-list{max-height:260px;border-right:0;border-bottom:1px solid var(--sd-line)}.phsd-map{height:340px}.phsd-map-head{align-items:start;flex-wrap:wrap}.phsd-map-empty{min-height:300px}.phsd-head h2{font-size:22px!important}.phsd-sheet{max-height:65vh}.phsd-sheet th:nth-child(2),.phsd-sheet td:nth-child(2){position:static}.phsd-sheet th:nth-child(2){position:sticky}}
/* V672: document scrolling; no nested vertical pane scrolling. */
.phsd-page{font-size:14px;line-height:1.55}.phsd-workbench{height:auto;min-height:480px;max-height:none;overflow:visible;grid-template-columns:minmax(220px,.85fr) minmax(260px,1fr) minmax(340px,1.35fr);align-items:stretch}.phsd-groups,.phsd-records,.phsd-detail,.phsd-location-list{height:auto;max-height:none;overflow:visible}.phsd-sheet{height:auto;max-height:none;overflow-x:auto}.phsd-pane-label{position:static;font-size:11px;letter-spacing:.06em}.phsd-month button,.phsd-days button{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.phsd-drivers{margin-left:14px;padding-left:12px;border-left:2px solid #dce6f4}.phsd-drivers button{align-items:start}.phsd-drivers button span{flex:1;min-width:0}.phsd-month b,.phsd-days small{font-size:11px;flex-shrink:0}.phsd-record-copy strong{font-size:14px}.phsd-record-copy>span,.phsd-record-copy small,.phsd-record-copy time{font-size:12px;color:#64748b}.phsd-fields{padding:6px 20px}.phsd-fields>div{grid-template-columns:minmax(110px,.85fr) minmax(0,1.2fr);gap:14px;font-size:14px;padding:15px 0}.phsd-fields dt{font-size:12px;font-weight:600;color:#64748b}.phsd-fields .phsd-photos{margin:0}.phsd-detail{scroll-margin-top:90px}.phsd-sheet table{font-size:13px;min-width:1520px}.phsd-sheet strong{font-size:14px}.phsd-sheet th,.phsd-sheet small{font-size:12px}.phsd-cell-actions .ph-btn{font-size:12px;min-height:34px}.phsd-sheet th:nth-child(8){width:305px}.phsd-page .phsd-filters input{font-size:14px}.phsd-records .phsd-paging,.phsd-location-list .phsd-paging{padding:14px;flex-direction:column;align-items:start}.phsd-location-row small,.phsd-map-meta{font-size:12px}.phsd-location-layout{overflow:visible}.phsd-location-list>[data-phsd-all]{width:calc(100% - 24px);margin:12px}.phsd-location-list>[data-phsd-all][aria-pressed=true]{background:#e6f0ff;border-color:#b5d0f6;color:#1764ce}.phsd-map-canvas{height:480px;width:100%;position:relative;z-index:0;background:#eef2f6}.phsd-map-panel{align-self:start}.phsd-map-meta{line-height:1.6}.phsd-map-canvas .leaflet-popup-content{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.phsd-map-canvas .leaflet-control-attribution{font-size:10px}.phsd-map-no-gps{margin:12px 20px}.phsd-photo{font-size:12px!important}.phsd-detail-head h3{font-size:20px!important}.phsd-workbench .phsd-empty-detail{padding:24px;text-align:center;color:#64748b}
@media(max-width:1050px){.phsd-workbench{grid-template-columns:minmax(190px,.75fr) minmax(220px,1fr) minmax(280px,1.2fr)}.phsd-fields>div{grid-template-columns:1fr;gap:5px}.phsd-fields{padding:6px 16px}.phsd-days{padding-left:8px}.phsd-drivers{margin-left:8px;padding-left:8px}}
@media(max-width:850px){.phsd-workbench,.phsd-location-layout{grid-template-columns:1fr;height:auto;max-height:none}.phsd-groups,.phsd-records,.phsd-detail,.phsd-location-list{height:auto;max-height:none;overflow:visible;border-right:0;border-bottom:1px solid var(--sd-line)}.phsd-map-canvas{height:360px}.phsd-sheet{max-height:none}.phsd-fields>div{grid-template-columns:minmax(110px,.7fr) minmax(0,1fr)}.phsd-drivers{margin-left:18px;padding-left:16px}.phsd-page .phsd-head h2{font-size:22px!important}}
/* V673: one title and one filter toolbar for all Scan Driver pages. */
#pertihub-root .phsd-shell .ph-topbar{height:52px!important;min-height:52px;padding:0 16px!important;gap:12px}
#pertihub-root .phsd-shell .ph-topbar .ph-page-title h1{font-size:21px!important;line-height:1.2!important}
#pertihub-root .phsd-shell .ph-topbar .ph-page-title p{display:none}
#pertihub-root .phsd-shell .ph-content{padding:12px 16px!important}
.phsd-shell .phsd-filters{padding:10px 12px;gap:10px;margin:0 0 10px;border-radius:10px}
.phsd-shell .phsd-filters label{gap:4px;font-size:12px}
.phsd-shell .phsd-filters input,.phsd-shell .phsd-filters select{min-height:38px;height:38px;padding:7px 10px;font-size:13px}
.phsd-shell .phsd-filters .ph-btn{min-height:38px;margin:0}
.phsd-shell .phsd-filters>.phsd-muted{font-size:12px;align-self:center;max-width:190px;line-height:1.4}
.phsd-shell .phsd-summary{padding:9px 14px;gap:18px;font-size:12px}
.phsd-shell .phsd-summary b{font-size:16px}
.phsd-shell .phsd-pane-label{padding:12px 14px}
.phsd-shell .phsd-record{padding:12px}
.phsd-shell .phsd-detail-head{padding:14px 18px}
.phsd-shell .phsd-detail-head h3{margin:6px 0 0!important;font-size:18px!important}
.phsd-scope-label{padding:8px 14px;color:#52647a;background:#f8fafd;border-bottom:1px solid #edf0f4;font-size:12px;overflow-wrap:anywhere}
.phsd-groups>[data-phsd-scope-all]{margin:10px;width:calc(100% - 20px);white-space:normal}
.phsd-groups>[data-phsd-scope-all][aria-pressed=true]{color:#1764ce;border-color:#b5d0f6;background:#e6f0ff}
@media(max-width:680px){#pertihub-root .phsd-shell .ph-topbar{height:50px!important;min-height:50px;padding:0 12px!important}#pertihub-root .phsd-shell .ph-topbar .ph-page-title h1{font-size:19px!important}#pertihub-root .phsd-shell .ph-content{padding:10px!important}.phsd-shell .phsd-filters{gap:8px}.phsd-shell .phsd-filters input,.phsd-shell .phsd-filters select,.phsd-shell .phsd-filters .ph-btn{height:42px;min-height:42px}.phsd-shell .phsd-filters>.phsd-muted{max-width:none}.phsd-shell .phsd-summary{gap:10px}}
/* V674: independent work panes, reference-map pins, fullscreen evidence. */
.phsd-page[data-phsd-mode=history] .phsd-workbench{height:var(--phsd-pane-height,calc(100dvh - 220px));min-height:320px;max-height:none;overflow:hidden}
.phsd-page[data-phsd-mode=history] .phsd-groups,.phsd-page[data-phsd-mode=history] .phsd-records,.phsd-page[data-phsd-mode=history] .phsd-detail{min-height:0;height:100%;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.phsd-page .phsd-pane-label{position:sticky;top:0;z-index:2;background:#f8fafd}
.phsd-list-end{padding:12px;text-align:center;font-size:12px;color:#64748b;background:#f8fafd;border-top:1px solid #e3e9f0}
.phsd-location-layout{height:var(--phsd-pane-height,calc(100dvh - 220px));min-height:360px;overflow:hidden;grid-template-columns:280px minmax(0,1fr)}
.phsd-location-list{height:100%;max-height:none;overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}
.phsd-location-list>[data-phsd-all]{position:sticky;top:8px;z-index:2;background:#fff;box-shadow:0 2px 8px #153d7012}
.phsd-map-panel{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;align-self:stretch}
.phsd-map-canvas{height:100%;min-height:0}.phsd-map-head{padding:12px 16px}.phsd-map-meta{padding:10px 16px;font-size:12px}
.phsd-map-no-gps{position:absolute;z-index:3;bottom:40px;left:10px;right:10px;pointer-events:none}.phsd-map-panel{position:relative}
.phsd-pin-icon{background:transparent;border:0;overflow:visible!important}.phsd-pin{display:block;position:relative;width:40px;height:48px;--pin:#168365;filter:drop-shadow(0 4px 5px #0f172a50)}.phsd-pin.stale{--pin:#c77917}.phsd-pin b{position:absolute;top:4px;left:7px;width:26px;height:26px;box-sizing:border-box;background:var(--pin);border:3px solid white;border-radius:50% 50% 50% 0;transform:rotate(-45deg)}.phsd-pin b:after{content:'';position:absolute;inset:6px;border-radius:50%;background:white}.phsd-pin i{position:absolute;top:5px;left:8px;width:24px;height:24px;border-radius:50%;background:var(--pin)}.phsd-pin.recent i{animation:phsd-pulse 1.75s ease-out infinite}.phsd-pin.stale i{display:none}@keyframes phsd-pulse{0%{opacity:.55;transform:scale(.75)}75%,100%{opacity:0;transform:scale(2.4)}}
.phsd-map-canvas .leaflet-tooltip.phsd-driver-label{padding:5px 9px;border:1px solid #cddcec;border-radius:7px;background:#fffffff5;color:#17385e;font-family:inherit;font-size:12px;font-weight:700;box-shadow:0 3px 12px #0f172a22}
.phsd-bottom-scroll{position:fixed;bottom:6px;height:20px;overflow-x:scroll;overflow-y:hidden;z-index:20;background:#f1f5f9;border:1px solid #b8c7d9;border-radius:5px;box-shadow:0 -3px 14px #0f172a18;scrollbar-color:#6c89ae #e7eef7}.phsd-bottom-scroll>div{height:1px}.phsd-bottom-scroll[hidden]{display:none}
.phsd-stamp img{object-fit:contain;background:#fff}
.phsd-fullscreen{position:fixed!important;inset:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;background:#08111e!important;color:#fff!important;overflow:hidden!important;box-sizing:border-box;z-index:2147483647}
.phsd-fullscreen[open]{display:flex;flex-direction:column}.phsd-fullscreen>header{flex:0 0 auto;margin:0;padding:10px 16px;background:#101d30;gap:10px}.phsd-fullscreen>header h2{font-size:16px;line-height:1.4;color:#fff;overflow-wrap:anywhere}.phsd-fullscreen>header>div{display:flex;gap:6px;flex-wrap:wrap}.phsd-fullscreen .ph-btn{background:#21354e;border:1px solid #385470;color:#fff;font-size:16px;min-width:42px;min-height:42px;padding:6px 10px}.phsd-full-stage{flex:1 1 0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;user-select:none;cursor:grab;position:relative}.phsd-full-stage:active{cursor:grabbing}.phsd-full-stage img{max-width:none!important;max-height:none!important;object-fit:contain;flex-shrink:0;pointer-events:none;transform-origin:center;will-change:transform}.phsd-image-state{position:absolute;inset:45% 10%;text-align:center;color:#dce7f8}.phsd-image-state[hidden]{display:none}.phsd-fullscreen>footer{display:flex;justify-content:space-between;gap:12px;padding:8px 16px;margin:0;color:#bfcee3;font-size:12px;background:#101d30}
@media(prefers-reduced-motion:reduce){.phsd-pin.recent i{animation:none}}
@media(max-width:850px){.phsd-page[data-phsd-mode=history] .phsd-workbench{grid-template-columns:190px 250px minmax(300px,1fr);overflow-x:auto}.phsd-location-layout{grid-template-columns:230px minmax(320px,1fr);overflow-x:auto}.phsd-fullscreen>header{flex-wrap:wrap;padding:8px}.phsd-fullscreen>header h2{font-size:14px;margin:0}.phsd-fullscreen>footer{font-size:11px}.phsd-fullscreen .ph-btn{min-height:42px}}

/* V681: the complete right-hand detail alone determines history height.
   Size containment removes list length from the grid row's intrinsic sizing.
   Left and middle stretch to that row and scroll independently; right remains natural. */
.phsd-page[data-phsd-mode=history] .phsd-workbench{height:auto;min-height:0;max-height:none;overflow:visible;box-sizing:border-box;grid-template-rows:auto;align-items:stretch}
.phsd-page[data-phsd-mode=history] .phsd-groups,.phsd-page[data-phsd-mode=history] .phsd-records{contain:size;align-self:stretch;height:auto;min-height:0;max-height:none;overflow:auto;box-sizing:border-box;padding-bottom:24px;scroll-padding-bottom:24px;overscroll-behavior:contain;scrollbar-gutter:stable}
.phsd-page[data-phsd-mode=history] .phsd-detail{contain:none;align-self:start;height:auto;min-height:0;max-height:none;overflow:visible;box-sizing:border-box;padding-bottom:24px;overscroll-behavior:auto;scrollbar-gutter:auto}
@media(max-width:850px){.phsd-page[data-phsd-mode=history] .phsd-workbench{overflow-x:auto;height:auto;max-height:none}}

/* V682: controls live in the left lane, freeing vertical space above the other lanes. */
.phsd-page[data-phsd-mode=history] .phsd-groups .phsd-filters-left{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 8px;align-items:end;margin:0 0 8px;padding:12px;border:0;border-bottom:1px solid #e2e8f0;border-radius:0;background:#fff}
.phsd-page[data-phsd-mode=history] .phsd-filters-left label{min-width:0;width:auto;font-size:12px}
.phsd-page[data-phsd-mode=history] .phsd-filters-left .phsd-grow{grid-column:1/-1;min-width:0}
.phsd-page[data-phsd-mode=history] .phsd-filters-left input{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.phsd-page[data-phsd-mode=history] .phsd-filters-left>.ph-btn{width:100%;min-width:0;margin:0;justify-content:center}
.phsd-page[data-phsd-mode=history] .phsd-drivers [data-phsd-driver]>span{font-weight:600;color:#254565;line-height:1.5}
.phsd-page[data-phsd-mode=history] .phsd-drivers [data-phsd-driver][aria-pressed=true]>span{font-weight:700;color:#1764ce}
.phsd-page[data-phsd-mode=history] .phsd-drivers [data-phsd-driver]>small{font-weight:500}
@media(max-width:850px){.phsd-page[data-phsd-mode=history] .phsd-groups .phsd-filters-left{grid-template-columns:minmax(0,1fr)}}

.phsd-cache-controls{padding:0 12px 12px;border-bottom:1px solid var(--border,#e2e8f0)}.phsd-cache-controls small{display:block;color:#64748b;line-height:1.5;font-size:11px}.phsd-cache-controls>div{display:flex;gap:6px;margin-top:6px;flex-wrap:wrap}.phsd-cache-controls .ph-btn{font-size:11px;padding:5px 8px}

/* V686: keep controls in the left rail and give the map the remaining width/height. */
.phsd-page[data-phsd-mode=locations] .phsd-location-layout{grid-template-columns:240px minmax(0,1fr)}
.phsd-location-sidebar{display:grid;grid-template-rows:auto auto minmax(0,1fr);height:100%;min-height:0;min-width:0;overflow:hidden;border-right:1px solid var(--sd-line,#e3e9f0);background:#fff}
.phsd-shell .phsd-location-sidebar .phsd-location-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:12px;margin:0;border:0;border-bottom:1px solid var(--sd-line,#e3e9f0);border-radius:0;background:#f8fafd;min-width:0}
.phsd-location-sidebar .phsd-location-filters .phsd-grow{grid-column:1/-1;min-width:0;width:100%}
.phsd-location-sidebar .phsd-location-filters input{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.phsd-location-sidebar .phsd-location-filters .ph-btn{width:100%;min-width:0;padding:7px 6px;justify-content:center}
.phsd-shell .phsd-location-sidebar .phsd-location-filters>.phsd-muted{grid-column:1/-1;max-width:none;font-size:11px;line-height:1.45}
.phsd-location-sidebar>[data-phsd-all]{position:static;width:calc(100% - 24px);margin:10px 12px;min-width:0}
.phsd-location-sidebar>[data-phsd-all][aria-pressed=true]{background:#e6f0ff;border-color:#b5d0f6;color:#1764ce}
.phsd-location-sidebar .phsd-location-list{height:100%;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;border:0;overscroll-behavior:contain;scrollbar-gutter:stable}
.phsd-location-sidebar .phsd-location-list>.phsd-muted{font-size:11px;line-height:1.5;padding:10px 12px;margin:0}
.phsd-location-sidebar .phsd-location-row{padding:14px 12px;overflow-wrap:anywhere;min-width:0}
.phsd-location-sidebar .phsd-paging{padding:12px;min-width:0}
.phsd-location-sidebar .phsd-paging>div{flex-wrap:wrap}
.phsd-page[data-phsd-mode=locations] .phsd-map-head{padding:12px 16px}
.phsd-page[data-phsd-mode=locations] .phsd-map-meta{padding:10px 16px}
@media(max-width:850px){.phsd-page[data-phsd-mode=locations] .phsd-location-layout{grid-template-columns:210px minmax(320px,1fr);overflow-x:auto}}

/* v687: current route from EXIT GATE; preserve the wide-map layout. */
.phsd-current-trayek{display:grid;gap:4px;margin-top:9px;padding:9px 10px;border-radius:9px;background:#eef5ff;border-left:3px solid #2563eb;color:#183b68;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.45}
.phsd-current-trayek>span{font-size:9px;font-weight:700;letter-spacing:.07em;opacity:.75}
.phsd-current-trayek>strong{display:block;font-size:12px!important;font-weight:600;line-height:1.45}
.phsd-current-trayek>small{font-size:10px!important;color:inherit!important;margin:0!important}
.phsd-current-trayek.empty{background:#f4f6f8;border-left-color:#cbd5e1;color:#64748b}
.phsd-map-head .phsd-current-trayek{max-width:760px}
.leaflet-popup-content .phsd-current-trayek{margin-bottom:10px}

/* Yesterday fallback is explicit and visually distinct. */
.phsd-current-trayek.yesterday{background:#fff7e6;border-left-color:#d97706;color:#854d0e}

/* V696: reference layout, labels left and compact media right. */
.phsd-page .phsd-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px}
.phsd-page .phsd-detail-head h3{margin:3px 0 0!important;font-size:18px!important;line-height:1.25}
.phsd-detail-head>.ph-btn{flex-shrink:0;padding:6px 9px;font-size:12px}
.phsd-detail-body,.phsd-detail-info{display:block;min-width:0}
.phsd-page .phsd-fields,.phsd-page .phsd-evidence-grid{margin:0;padding:0 14px;display:block}
.phsd-page .phsd-fields>div,.phsd-page .phsd-evidence-card{display:grid;grid-template-columns:minmax(100px,.65fr) minmax(0,1.6fr);gap:10px;padding:9px 0;border:0;border-bottom:1px solid #f0f3f7;border-radius:0;background:transparent;min-width:0;align-items:start}
.phsd-page .phsd-fields dt,.phsd-page .phsd-evidence-card>dt{color:#798491;font-size:12px;line-height:1.4;font-weight:400;margin:0}
.phsd-page .phsd-fields dd,.phsd-page .phsd-evidence-card>dd{margin:0;min-width:0;font-size:13px;line-height:1.4;color:#304761;overflow-wrap:anywhere}
.phsd-page .phsd-evidence-card .phsd-photos{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:0}
.phsd-page .phsd-evidence-card .phsd-photo{display:block;width:fit-content;max-width:100%;min-width:0;padding:0;margin:0;border:0;background:transparent;border-radius:3px;overflow:hidden;text-align:left}
.phsd-page .phsd-evidence-card .phsd-photo img{display:block;width:auto;height:auto;max-width:100%;max-height:180px;object-fit:contain;object-position:left top;background:transparent}
.phsd-page .phsd-evidence-card .phsd-photo span{display:block;padding:3px 0;font-size:10px;line-height:1.2;color:#42658c}
.phsd-page[data-phsd-mode=history] .phsd-detail{padding-bottom:12px}
.phsd-delivery-map{height:100px;width:300px;max-width:100%;border:1px solid #dce5ef;border-radius:3px;isolation:isolate;z-index:0;box-sizing:border-box;white-space:normal}
.phsd-map-open{display:inline-block;margin-top:4px;font-size:11px}
.phsd-delivery-map .leaflet-control-attribution{font-size:8px}
.phsd-delivery-map .leaflet-control-zoom a{width:24px;height:24px;line-height:24px;font-size:18px}
.phsd-delivery-pin{background:transparent;border:0}
.phsd-delivery-pin>span{display:block;width:22px;height:22px;background:#1764ce;border:2px solid white;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-sizing:border-box;box-shadow:0 2px 4px #0005}
.phsd-delivery-pin>span:after{content:'';position:absolute;inset:6px;border-radius:50%;background:white}
.phsd-fit-screen{position:fixed!important;inset:0!important;margin:0!important;padding:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;background:#fff!important;box-sizing:border-box;overflow:auto!important;color:#243c59;line-height:1.4}
.phsd-fit-screen[open]{display:block}
.phsd-fit-screen .phsd-detail{height:auto!important;display:block;max-width:900px;margin:0 auto;overflow:visible!important}
.phsd-fit-screen .phsd-detail-head{background:#f3f7fc}

/* V697: independently resizable history columns, no maximum width. */
.phsd-resize-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:6px}
.phsd-page[data-phsd-mode=history] .phsd-workbench.phsd-resizable{display:grid;max-width:none;min-width:0;grid-template-rows:auto;border-right:0}
.phsd-resizable>.phsd-groups,.phsd-resizable>.phsd-records,.phsd-resizable>.phsd-detail{grid-row:1;min-width:0;max-width:none}
.phsd-resizable>.phsd-groups{grid-column:1}.phsd-resizable>.phsd-records{grid-column:3}.phsd-resizable>.phsd-detail{grid-column:5}
.phsd-resize-handle{grid-row:1;align-self:stretch;position:relative;cursor:col-resize;touch-action:none;background:#edf2f8;border-left:1px solid #dce5f0;border-right:1px solid #dce5f0;outline-offset:-2px;min-width:0}
.phsd-resize-handle:nth-child(2){grid-column:2}.phsd-resize-handle:nth-child(4){grid-column:4}.phsd-resize-handle:nth-child(6){grid-column:6}
.phsd-resize-handle:after{content:'';position:absolute;top:24px;left:3px;width:2px;height:38px;background:#8fa9c8;border-radius:2px}
.phsd-resize-handle:hover,.phsd-resize-handle:focus-visible,.phsd-resize-handle.is-dragging{background:#bed8fc;outline:2px solid #2675dc}
.phsd-resizing,.phsd-resizing *{cursor:col-resize!important;user-select:none!important}
.phsd-summary .phsd-reset-widths{font-size:11px;padding:4px 8px;min-height:28px;flex-shrink:0}
.phsd-page .phsd-detail-narrow .phsd-fields>div,.phsd-page .phsd-detail-narrow .phsd-evidence-card{grid-template-columns:minmax(0,1fr);gap:4px}
.phsd-page .phsd-detail-narrow .phsd-detail-head{flex-wrap:wrap}

/* V698: two internal dividers, fixed outer edge and no detached right panel. */
.phsd-resize-scroll{overflow-x:hidden;padding-bottom:0}
.phsd-page[data-phsd-mode=history] .phsd-workbench.phsd-resizable{width:100%;max-width:100%;border-right:1px solid var(--sd-line);box-sizing:border-box}
.phsd-resizable>.phsd-detail{overflow:hidden!important;overflow-wrap:anywhere}
