.employee-roster{color:#f5f7fa;background:#111418;border:1px solid #48515e;border-radius:16px;width:min(1440px,96vw);max-width:96vw;height:92dvh;max-height:92dvh;padding:0;font:15px/1.5 "Segoe UI",Arial,sans-serif}.employee-roster::backdrop{background:#000b}.roster-shell{padding:24px}.roster-shell header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.roster-shell h2{font-size:28px;margin:0}.roster-eyebrow{color:#ff9a61;text-transform:uppercase;letter-spacing:.1em;font-size:12px;margin:0}.roster-shell p{margin:8px 0 14px}.roster-body{border:0;padding:0;margin:0;min-width:0}.roster-toolbar,.roster-actions,.roster-summary{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0}.roster-summary{justify-content:space-between}.roster-shell button{background:#252c35;color:#fff;border:1px solid #536171;border-radius:8px;padding:9px 13px;min-height:42px;cursor:pointer;font:inherit}.roster-shell .roster-primary{background:#ef6a28;border-color:#ef6a28;color:#130b06;font-weight:700}.roster-shell button:disabled{opacity:.45;cursor:default}.roster-shell input,.roster-shell select,.roster-shell textarea{box-sizing:border-box;background:#0b0e12;color:#fff;border:1px solid #5d6978;border-radius:7px;padding:9px;font:inherit;min-width:0;width:100%;margin:5px 0}.roster-shell input[type=checkbox]{width:20px;height:20px;margin:0;accent-color:#ef6a28;flex:0 0 20px}.roster-shell label{display:flex;flex-direction:column;gap:3px}.roster-shell .roster-check{display:flex;flex-direction:row;align-items:center;gap:8px;margin:10px 0}.roster-filters,.roster-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.roster-fields fieldset{border:1px solid #5d6978;border-radius:8px;max-height:250px;overflow:auto}.roster-table-wrap{overflow:auto;border:1px solid #394552;border-radius:10px}.roster-shell table{border-collapse:collapse;width:100%;min-width:760px}.roster-shell th{text-align:left;color:#b8c3d1;background:#1e252e;padding:12px;white-space:nowrap}.roster-shell td{padding:12px;border-top:1px solid #343d48;vertical-align:top}.roster-shell td small,.roster-person small{display:block;color:#b8c3d1;margin-top:4px}.roster-shell td .roster-actions{margin:0;flex-wrap:nowrap}.roster-shell td button{font-size:13px;padding:5px 9px;min-height:36px}.roster-tag{background:#583d1a;color:#ffdda9;border-radius:10px;padding:4px 8px;white-space:nowrap}.roster-muted{color:#b1bece;font-size:13px}.roster-editor{border:1px solid #c86b36;border-radius:12px;background:#1a222c;padding:20px;margin:18px 0}.roster-editor h3{margin-top:0}.roster-error{color:#ffd0bf;background:#3c201a;padding:12px;border-radius:8px}.roster-message:empty{display:none}.roster-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.roster-column{background:#181f28;border:1px solid #48515e;padding:14px;border-radius:12px;min-height:150px}.roster-column h3{display:flex;justify-content:space-between;margin:0 0 14px}.roster-person{border:1px solid #4d5967;background:#0e1319;border-radius:8px;margin:8px 0;padding:12px;cursor:grab}.roster-person label{flex-direction:row;align-items:center;gap:8px}.roster-person button{margin-top:6px}.roster-shell :focus-visible{outline:3px solid #ff9d64;outline-offset:3px}.roster-shell li{margin:10px 0}.roster-shell details{margin:12px 0}.roster-shell summary{cursor:pointer}@media(max-width:650px){.roster-shell{padding:14px}.roster-shell header h2{font-size:24px}.roster-filters,.roster-fields{grid-template-columns:1fr}.roster-toolbar button{flex:1 1 45%}.employee-roster{height:96dvh;max-height:96dvh}.roster-shell header{position:sticky;top:-14px;background:#111418;z-index:1;padding:12px 0}.roster-board{grid-template-columns:1fr}}

.roster-shell header{position:sticky;top:-24px;background:#111418;padding:12px 0;z-index:3}.roster-column{max-height:62dvh;overflow-y:auto;align-self:start}.roster-column h3{position:sticky;top:-14px;background:#181f28;padding:8px 0;z-index:1}@media(max-width:650px){.roster-shell header{top:-14px}}

.roster-toolbar button[aria-pressed=true]{background:#a74719;border-color:#ff9d64;font-weight:700}.roster-destination{border-bottom:1px solid #48515e;padding:6px 0}.roster-destination:last-child{border:0}.roster-destination>label:last-child{padding-left:28px}.roster-map-view{border:1px solid #48515e;border-radius:12px;background:#151c24;padding:16px;margin-top:16px}.roster-map-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:18px;align-items:start}.roster-map-canvas svg{width:100%;height:auto;display:block;border-radius:12px}.roster-map-bg{fill:#0d1722}.roster-map-inset{fill:#142331;stroke:#486175;stroke-width:1.5}.roster-state{fill:#294354;stroke:#a9c3d0;stroke-width:1.2;fill-rule:evenodd}.roster-map-inset-label{fill:#c9d8e3;font-size:12px}.roster-marker-leader{stroke:#ffbb70;stroke-width:2;stroke-dasharray:3 3;pointer-events:none}.roster-marker{cursor:pointer}.roster-marker circle{fill:#f26722;stroke:#fff;stroke-width:3}.roster-marker text{fill:#111;font-size:14px;font-weight:800;text-anchor:middle;pointer-events:none}.roster-marker:hover circle,.roster-marker.is-selected circle{fill:#ffbe63;stroke:#111;stroke-width:4}.roster-marker:focus-visible{outline:none}.roster-marker:focus-visible circle{stroke:#ffeb9d;stroke-width:5}.roster-site-list{display:flex;gap:8px;flex-wrap:wrap}.roster-site-choice{font-size:13px!important;min-height:36px!important}.roster-site-choice.is-selected{border-color:#ff9d64;background:#5d2d16}.roster-map-detail{border:1px solid #536171;background:#101820;border-radius:10px;padding:16px;max-height:66dvh;overflow:auto}.roster-map-detail h3{margin:0;font-size:22px}.roster-map-detail-heading{display:flex;justify-content:space-between;gap:10px;align-items:start}.roster-map-detail-heading button{font-size:13px;white-space:nowrap}.roster-map-people{display:grid;gap:8px}.roster-map-people>div{padding:10px;border:1px solid #43515f;border-radius:8px;display:grid;grid-template-columns:1fr auto;gap:2px 12px}.roster-map-people span{color:#d0dae2;font-size:13px}.roster-map-people button{grid-column:2;grid-row:1/3;font-size:12px;padding:5px 8px;min-height:34px}@media(max-width:900px){.roster-map-layout{grid-template-columns:1fr}.roster-map-detail{max-height:none}.roster-map-people>div{grid-template-columns:1fr}.roster-map-people button{grid-column:auto;grid-row:auto}}
.roster-location-lookup{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 16px}.roster-location-lookup span{color:#d0dae2;font-size:13px;line-height:1.4}.roster-map-detail-heading>div{min-width:0}.roster-map-detail-heading p{overflow-wrap:anywhere}.roster-map-detail-heading a{color:#ffb879;display:inline-block;margin-bottom:12px}

.roster-contact{min-width:180px;overflow-wrap:anywhere}
.roster-toolbar .roster-import-label{border:1px solid #536171;border-radius:8px;padding:5px 10px;background:#252c35;cursor:pointer;font-weight:600;max-width:230px}.roster-toolbar .roster-import-label input{font-size:12px;margin:0;padding:2px;width:100%}.roster-editor .roster-table-wrap{max-height:34dvh}.roster-editor .roster-table-wrap table{min-width:560px}

/* Crew planning map */
.roster-map-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}
.roster-map-intro h3{font-size:22px;margin:0}.roster-map-intro p{margin:2px 0 0;color:#c3ced9}
.roster-map-metrics{display:flex;flex-direction:column;align-items:flex-end;white-space:nowrap;color:#c3ced9}
.roster-map-metrics strong{color:#ffb378;font-size:20px}
.roster-route-planner{display:grid;grid-template-columns:minmax(150px,1.1fr) repeat(2,minmax(160px,1fr)) minmax(150px,.8fr);gap:10px 14px;align-items:end;background:#101820;border:1px solid #536171;border-radius:12px;padding:14px;margin:14px 0}
.roster-route-planner h4{font-size:17px;margin:0}.roster-route-planner p{font-size:12px;color:#b9c6d2;margin:2px 0 0}
.roster-route-planner label{font-weight:600;font-size:13px}.roster-route-planner select{margin:2px 0 0}
.roster-route-result{min-height:42px;display:flex;flex-direction:column;justify-content:center;color:#cad6e0;font-size:13px}
.roster-route-result strong{font-size:24px;line-height:1.1;color:#ffb378}
.roster-route-actions{grid-column:1/-1;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.roster-route-actions button{min-height:34px;padding:5px 10px;font-size:13px}
.roster-route-actions a{display:inline-flex;align-items:center;min-height:34px;padding:5px 10px;border:1px solid #ff9d64;border-radius:8px;color:#ffbe90;text-decoration:none;font-weight:700;font-size:13px}
.roster-map-layout{grid-template-columns:minmax(0,2fr) minmax(280px,.8fr)}
.roster-map-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#c9d4de;font-size:13px;margin-bottom:8px}
.roster-map-tools button{min-height:34px;font-size:13px;padding:5px 10px}
.roster-leaflet-map{width:100%;height:clamp(360px,55dvh,680px);background:#dbe4e8;border:1px solid #69808d;border-radius:10px;overflow:hidden;touch-action:pan-x pan-y}
.roster-leaflet-map .leaflet-control-attribution{font-size:11px!important;color:#202a33!important}
.roster-leaflet-map .leaflet-control-attribution a{color:#145f88!important}
.roster-leaflet-map .leaflet-control a{color:#20313d}
.roster-map-pin{border-radius:50%;background:#f26722;border:3px solid #fff;color:#111;box-shadow:0 2px 8px #0009;display:grid;place-items:center;font-size:14px;font-weight:800;cursor:pointer}
.roster-map-pin.is-selected{background:#ffcb81;border-color:#111}
.roster-map-pin.is-start{box-shadow:0 0 0 4px #4fa97e,0 2px 8px #0009}
.roster-map-pin.is-end{box-shadow:0 0 0 4px #367be2,0 2px 8px #0009}
.roster-map-pin span{pointer-events:none}
.roster-site-choice{display:flex;gap:4px;align-items:center}
.roster-site-choice span{font-size:11px;color:#b8c8d4}
.roster-map-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 18px}
.roster-map-detail-actions button{font-size:13px;min-height:34px}
.roster-map-detail h4{margin:14px 0 8px}
@media(max-width:1100px){.roster-route-planner{grid-template-columns:repeat(2,minmax(0,1fr))}.roster-route-planner>div:first-child{grid-column:1/-1}}
@media(max-width:700px){.roster-map-intro{flex-direction:column}.roster-map-metrics{align-items:flex-start}.roster-route-planner{grid-template-columns:1fr}.roster-route-planner>div:first-child,.roster-route-actions{grid-column:1}.roster-leaflet-map{height:48dvh;min-height:340px}.roster-map-tools{flex-wrap:wrap}.roster-site-list{max-height:160px;overflow:auto}}

.roster-map-options,.roster-map-location-picker{margin:10px 0;border:1px solid #43515f;border-radius:8px;padding:10px}.roster-map-options>summary,.roster-map-location-picker>summary{cursor:pointer;font-weight:600}.roster-map-options[open]>summary,.roster-map-location-picker[open]>summary{margin-bottom:12px}.roster-map-detail nav{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.roster-map-detail nav h4{flex-basis:100%;margin:0}.roster-map-detail nav button[aria-pressed=true]{border-color:#ff9d64;background:#5d2d16}

.roster-map-assign{display:grid;gap:.5rem;margin-top:1rem;font-weight:600}.roster-map-assign select{width:100%;min-width:0;max-width:100%}

.roster-map-move-tools{border:1px solid #586a7b;border-radius:10px;padding:12px;margin-bottom:12px;background:#172632}.roster-map-move-tools label{display:grid;gap:5px}.roster-map-move-tools select{max-width:100%;width:100%}.roster-map-move-tools p{font-size:13px;color:#c9d8e3}.roster-map-people [data-map-person][draggable=true]{cursor:grab}.roster-map-people [data-map-person]:active{cursor:grabbing}.roster-map-pin.is-drop-target{outline:5px solid #4dd7a4;outline-offset:4px}.roster-map-move-tools [role=status]{padding:8px;background:#294252;border-radius:6px}

.employee-roster .roster-map-off{margin-top:16px;padding:16px;border:2px dashed #8fa6bd;border-radius:12px;background:#f3f7fb;color:#15324c}.employee-roster .roster-map-off.is-drop-target{border-color:#0077c8;background:#d9efff}.employee-roster .roster-map-off .roster-map-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}

.roster-map-stage{position:relative}.employee-roster .roster-map-stage .roster-map-off{position:absolute;z-index:450;right:10px;top:10px;width:245px;max-width:calc(100% - 60px);max-height:65%;overflow:auto;margin:0;padding:12px;border:3px dashed #297fc1;box-shadow:0 3px 14px #0005}.roster-map-off h3{font-size:16px;margin:0 0 8px}.roster-off-drop-prompt{font-size:18px;font-weight:800;padding:12px 6px;background:#dcefff;border-radius:8px;text-align:center}.roster-map-off p,.roster-map-off summary{font-size:12px}.employee-roster .roster-map-off .roster-map-people{display:block;max-height:125px;overflow:auto}.roster-map-off .roster-map-people>div{margin-top:8px}.roster-drag-chip{display:inline-block;cursor:grab;padding:10px;border:2px solid #74d6ff;border-radius:8px;background:#143b55;color:#fff;font-weight:700}.roster-drag-name{cursor:grab}.roster-drag-name small{font-size:11px;font-weight:400;border:1px solid currentColor;border-radius:4px;padding:2px 5px;margin-left:4px}.roster-map-off .roster-map-people>div{background:#fff;color:#15324c}.roster-map-off.is-drop-target .roster-off-drop-prompt{background:#b4f0d2}.employee-roster .roster-map-stage .roster-map-off.is-drop-target{border-style:solid;border-color:#007548}

@media(max-width:700px){.employee-roster .roster-map-stage .roster-map-off{position:relative;top:auto;right:auto;width:auto;max-width:none;max-height:none;margin-top:10px}.employee-roster .roster-map-off .roster-map-people{max-height:150px}}

@media(min-width:701px){.roster-map-stage{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:10px}.employee-roster .roster-map-stage .roster-map-off{position:relative;top:auto;right:auto;max-width:none;width:auto;max-height:470px;align-self:start}}

.employee-roster .roster-map-off .roster-off-person{display:flex;flex-direction:column;gap:8px;text-align:left;width:100%;margin-top:8px;padding:12px;border:2px solid #497ba3;background:#fff;color:#15324c;cursor:grab;touch-action:manipulation}.roster-off-person strong{font-size:15px}.roster-off-person small{font-size:11px;line-height:1.4}.roster-map-pin.is-drop-ready{outline:3px dashed #21a86a;outline-offset:5px}.roster-map-pin.is-drop-target{outline-style:solid}

.roster-map-pin .roster-pin-label{position:absolute;top:43px;left:50%;transform:translateX(-50%);display:block;white-space:nowrap;max-width:150px;overflow:hidden;text-overflow:ellipsis;padding:5px 8px;border:1px solid #476879;border-radius:6px;background:#fff;color:#123047;font-size:12px;font-weight:700;line-height:1.2;box-shadow:0 1px 4px #0004;pointer-events:auto}.roster-map-pin.is-drop-ready .roster-pin-label{border:2px solid #16895b;background:#e6fff0}

.roster-shell header{flex-wrap:wrap}.roster-save-status{flex-basis:100%;min-width:0}.roster-save-status .roster-message{margin:2px 0}.roster-save-status small{color:#9ce2bf}.roster-save-status .roster-error{margin:4px 0;padding:8px}.roster-save-status .roster-error p{margin:0 0 6px}

.roster-shell header>div:first-child>p:not(.roster-eyebrow){display:none}.roster-shell header h2{font-size:24px}.roster-shell header{padding:6px 0;row-gap:4px}.roster-map-detail-heading p{margin:3px 0}.roster-map-detail h4{margin:8px 0}.roster-map-people.roster-compact-crew{display:flex;flex-direction:column;gap:4px;max-height:42dvh;overflow:auto;padding:2px}.employee-roster .roster-compact-crew .roster-crew-card{display:flex;flex-direction:column;align-items:stretch;gap:2px;text-align:left;width:100%;min-height:48px;padding:6px 9px;flex-shrink:0;border:1px solid #52667a;cursor:grab}.roster-crew-card strong{font-size:14px;line-height:1.35;overflow-wrap:anywhere}.roster-crew-card small{display:block;font-size:11px;color:#c6d7e3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.roster-crew-card[aria-pressed=true]{border-color:#7bdfff;background:#163b51}

.roster-availability-panels{display:flex;flex-direction:column;gap:10px;min-width:0}.employee-roster .roster-availability-panels .roster-map-off{margin:0;max-height:330px;padding:10px}.employee-roster .roster-availability-panels .roster-map-people{max-height:135px}.employee-roster .roster-explicit-off{border-color:#b46c2d;background:#fff3e5}.roster-explicit-off .roster-off-drop-prompt{background:#ffe1bb}.roster-inactive-person{display:flex;flex-direction:column;gap:3px;padding:8px;background:#e5e9ee;color:#405060;border-radius:6px;margin-top:5px}.roster-inactive-person small{font-size:11px}.roster-availability-panels .roster-off-drop-prompt{font-size:15px;padding:7px}.roster-availability-panels details{margin:6px 0 0}

.roster-map-view-switch{display:flex;gap:8px;margin-bottom:10px}.roster-map-view-switch button[aria-pressed=true]{background:#a74719;border-color:#ff9d64}.roster-location-panels{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));max-height:60dvh;overflow:auto;align-content:start}.roster-shell .roster-location-drop{display:flex;flex-direction:column;gap:6px;align-items:stretch;text-align:left;min-height:120px}.roster-location-drop small{font-size:12px;color:#c7d7e3}.roster-location-drop.is-selected{border:2px solid #ffb46a}.roster-location-drop.is-drop-ready{outline:2px dashed #5ddda2;outline-offset:-4px}.roster-location-drop.is-drop-target{background:#164938;border-color:#8bffb2}

.roster-availability-panels .roster-off-person{border-radius:8px;min-height:52px;box-sizing:border-box;user-select:none}.roster-off-person[aria-disabled=true]{opacity:.5}

.roster-drag-ghost{position:fixed;z-index:9999;pointer-events:none;background:#102e43;color:#fff;border:2px solid #7bdfff;border-radius:8px;padding:8px 12px;font-weight:700;box-shadow:0 4px 16px #0007;max-width:240px}

.roster-hidden-assignments{border:1px solid #b88936;border-radius:8px;padding:10px;margin:8px 0;background:#332b1d;color:#fff4d9}.roster-hidden-assignments p{font-size:13px;margin:6px 0}.roster-hidden-assignments summary{cursor:pointer}

.roster-map-metrics{white-space:normal;min-width:0;overflow-wrap:anywhere}.roster-availability-panels h3{overflow-wrap:anywhere}

.roster-future-move{display:block;margin-top:4px;padding:4px 6px;border-left:4px solid #936400;background:#fff1c2;color:#533600;font-size:12px;white-space:normal}.roster-inline-job{padding:4px 8px 10px;border-bottom:1px solid #d2dde5}.roster-inline-job summary{cursor:pointer;font-size:12px}.roster-inline-job input{max-width:100%;width:100%}.roster-inline-job small{display:block}

.roster-map-pin.has-future-move{outline:3px solid #936400;outline-offset:3px}.roster-map-pin.has-future-move .roster-pin-label{border:2px solid #936400}

/* Controls span both columns; the crew panel starts level with the map/panels. */
.roster-map-controls{grid-column:1/-1;min-width:0}.roster-map-canvas{min-width:0}.roster-project-targets{padding:8px 10px;border:1px solid #587082;border-radius:8px}.roster-project-targets p{font-size:12px;margin:3px 0 6px}.roster-project-targets>div{display:flex;flex-wrap:wrap;gap:6px;max-height:112px;overflow:auto}.employee-roster .roster-project-drop{min-height:44px;padding:8px 14px;font-size:14px;border:2px solid #66869a}.roster-project-drop.is-drop-ready{background:#153f32;border-color:#37ba82}.roster-project-drop.is-drop-target,[data-roster-map-exact].is-drop-target{outline:4px solid #4dd7a4;outline-offset:1px}.roster-map-pin .roster-pin-label{top:52px;max-width:190px;min-height:30px;padding:7px 10px}.roster-map-detail{align-self:start;margin-top:0}.roster-map-layout{column-gap:18px;row-gap:10px}@media(max-width:900px){.roster-map-controls{grid-column:1}.roster-project-targets>div{max-height:104px}}
