/* Labor Allocator styles (corti-forms #374). The shared module
   (labor-allocator-module.js) renders the controls these rules style. The host page
   supplies the color variables (--navy, --orange, --green, --line, ...) and its own chrome.
   Every rule is anchored to the module's root (.labor-allocator) or its popups
   (.labor-allocator-pop, .labor-allocator-mask), so this file never styles the host's own
   elements. :where() keeps each rule's specificity what it was before the anchor. */
.labor-allocator{max-width:none;margin:0 auto;padding:16px 20px 70px;}
:where(.labor-allocator,.labor-allocator-pop) .bar{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin:6px 2px 12px;}
:where(.labor-allocator,.labor-allocator-pop) .weektabs{display:flex;gap:5px;flex:1 1 360px;}
:where(.labor-allocator,.labor-allocator-pop) .weektab{flex:1;min-width:98px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--navy);padding:7px 9px;font:800 12px/1.15 Arial,Helvetica,sans-serif;cursor:pointer;}
:where(.labor-allocator,.labor-allocator-pop) .weektab small{display:block;margin-top:2px;color:var(--grey);font-size:10px;font-weight:700;}
:where(.labor-allocator,.labor-allocator-pop) .weektab.on{border-color:var(--navy);background:var(--navy);color:#fff;}:where(.labor-allocator,.labor-allocator-pop) .weektab.on small{color:#dbeaf3;}
:where(.labor-allocator,.labor-allocator-pop) .ctrl{font-size:13px;font-weight:700;color:var(--navy);display:flex;align-items:center;gap:6px;}
:where(.labor-allocator,.labor-allocator-pop) .ctrl select{font-size:14px;padding:7px 9px;border:1px solid var(--line);border-radius:8px;font-family:inherit;}
:where(.labor-allocator,.labor-allocator-pop) .spacer{flex:1;} :where(.labor-allocator,.labor-allocator-pop) .save{font-size:12px;font-weight:700;color:var(--grey);}
:where(.labor-allocator,.labor-allocator-pop) .btn{background:var(--orange);color:var(--navy);border:none;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:800;cursor:pointer;}
:where(.labor-allocator,.labor-allocator-pop) .btn.sec{background:var(--card);color:var(--navy);border:1.5px solid var(--line);}
:where(.labor-allocator,.labor-allocator-pop) .btn:disabled{opacity:.5;cursor:default;}
:where(.labor-allocator,.labor-allocator-pop) .publine{font-size:12.5px;font-weight:700;margin:0 2px 12px;}
:where(.labor-allocator,.labor-allocator-pop) .publine .dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--grey);margin-right:6px;vertical-align:middle;}
:where(.labor-allocator,.labor-allocator-pop) .publine.on .dot{background:var(--green);}
:where(.labor-allocator,.labor-allocator-pop) .editlog{margin:0 2px 12px;font-size:12.5px;border:1px solid var(--line);border-radius:8px;background:var(--card);}
:where(.labor-allocator,.labor-allocator-pop) .editlog summary{cursor:pointer;padding:8px 12px;font-weight:700;}
:where(.labor-allocator,.labor-allocator-pop) .editlog summary .bad{color:var(--red);}
:where(.labor-allocator,.labor-allocator-pop) .editlog ol{list-style:none;margin:0;padding:0 12px 8px;max-height:260px;overflow:auto;}
:where(.labor-allocator,.labor-allocator-pop) .editlog li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;padding:6px 0;border-top:1px solid var(--line);align-items:baseline;}
:where(.labor-allocator,.labor-allocator-pop) .editlog time{color:var(--grey);font-variant-numeric:tabular-nums;white-space:nowrap;}
:where(.labor-allocator,.labor-allocator-pop) .editlog .what small{color:var(--grey);font-weight:400;}
:where(.labor-allocator,.labor-allocator-pop) .editlog .why{display:block;color:#a22923;font-weight:400;margin-top:2px;}
:where(.labor-allocator,.labor-allocator-pop) .editlog .st{font-weight:700;white-space:nowrap;border-radius:999px;padding:2px 8px;font-size:11.5px;}
:where(.labor-allocator,.labor-allocator-pop) .editlog .st.saved{background:var(--green-bg);color:var(--green);}
:where(.labor-allocator,.labor-allocator-pop) .editlog .st.pending{background:var(--amber-bg);color:var(--amber);}
:where(.labor-allocator,.labor-allocator-pop) .editlog .st.failed{background:#fde8e7;color:#a22923;}
:where(.labor-allocator,.labor-allocator-pop) .editlog .empty-log{display:block;padding:6px 0;color:var(--grey);}
:where(.labor-allocator,.labor-allocator-pop) .btn .badge{display:inline-block;min-width:18px;padding:0 6px;margin-left:6px;border-radius:999px;font-size:11px;line-height:18px;text-align:center;background:var(--amber-bg);color:var(--amber);vertical-align:middle;}
:where(.labor-allocator,.labor-allocator-pop) .btn .badge.bad{background:#fde8e7;color:#a22923;}
:where(.labor-allocator,.labor-allocator-pop) .editlog .st.pending.hang{background:#fde8e7;color:#a22923;}
:where(.labor-allocator,.labor-allocator-pop) .editlog .clr{font:inherit;font-size:12px;background:none;border:0;color:var(--navy);cursor:pointer;padding:0;text-decoration:underline;}
:where(.labor-allocator,.labor-allocator-pop) .shifttray{display:flex;flex-wrap:wrap;align-items:center;gap:6px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:8px 10px;margin:0 0 10px;}
:where(.labor-allocator,.labor-allocator-pop) .traylabel{font-size:12px;font-weight:800;color:var(--navy);}:where(.labor-allocator,.labor-allocator-pop) .trayitems{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
:where(.labor-allocator,.labor-allocator-pop) .trayhint,:where(.labor-allocator,.labor-allocator-pop) .trayempty{font-size:11px;color:var(--grey);}:where(.labor-allocator,.labor-allocator-pop) .trayhint{margin-left:auto}:where(.labor-allocator,.labor-allocator-pop) .shifttray .btn{padding:5px 9px;font-size:11.5px;}
:where(.labor-allocator,.labor-allocator-pop) .shiftchip{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;color:var(--navy);background:var(--card);border:1px solid var(--navy);border-left:4px solid var(--orange);border-radius:14px;padding:3px 9px;cursor:grab;}
:where(.labor-allocator,.labor-allocator-pop) .shiftchip.jobchip{border-left-color:var(--navy);}
:where(.labor-allocator,.labor-allocator-pop) .shiftchip.offchip{border-color:var(--amber);border-left-color:var(--amber);color:var(--amber);cursor:pointer;}
:where(.labor-allocator,.labor-allocator-pop) .shiftchip.offchip.on{background:var(--amber);color:#fff;}
:where(.labor-allocator,.labor-allocator-pop) .needs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px 10px;margin:0 0 10px;}
:where(.labor-allocator,.labor-allocator-pop) .nlbl{font-size:11.5px;font-weight:800;color:var(--navy);}
:where(.labor-allocator,.labor-allocator-pop) .nchip{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:var(--navy);background:var(--card);border:1px solid var(--navy);border-left:4px solid var(--amber);border-radius:14px;padding:3px 9px;cursor:grab;}
:where(.labor-allocator,.labor-allocator-pop) .nchip.on{background:var(--navy);color:#fff}
:where(.labor-allocator,.labor-allocator-pop) .ncnt{font-size:10px;font-weight:800;background:var(--amber-bg);color:var(--amber);border-radius:8px;padding:1px 5px;}
:where(.labor-allocator,.labor-allocator-pop) .nchip.on .ncnt{background:rgba(255,255,255,.2);color:#fff}
:where(.labor-allocator,.labor-allocator-pop) .blockneeds{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 8px;}
:where(.labor-allocator,.labor-allocator-pop) .blockneeds:empty{display:none}
:where(.labor-allocator,.labor-allocator-pop) .needs .hint,:where(.labor-allocator,.labor-allocator-pop) .blockneeds .hint{font-size:11px;color:var(--grey);}
:where(.labor-allocator,.labor-allocator-pop) .shiftchip.on{background:var(--navy);color:#fff}:where(.labor-allocator,.labor-allocator-pop) .chiptime{font-size:10px;opacity:.75;}
:where(.labor-allocator,.labor-allocator-pop) .sec{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:10px 0;}
:where(.labor-allocator,.labor-allocator-pop) .sec h3{margin:0 0 8px;color:var(--navy);font-size:15px;display:flex;align-items:center;gap:8px;}
:where(.labor-allocator,.labor-allocator-pop) .sec h3 .need{margin-left:auto;font-size:12px;font-weight:700;color:var(--grey);}
:where(.labor-allocator,.labor-allocator-pop) .sec h3 .need b{color:var(--navy);} :where(.labor-allocator,.labor-allocator-pop) .sec h3 .need.short b{color:var(--red);}
:where(.labor-allocator,.labor-allocator-pop) .tw{overflow-x:auto;}
:where(.labor-allocator,.labor-allocator-pop) table.grid{border-collapse:collapse;min-width:1450px;width:100%;font-size:14px;table-layout:fixed;}
:where(.labor-allocator,.labor-allocator-pop) table.grid th{background:var(--bg);color:var(--navy);font-size:13px;text-transform:uppercase;letter-spacing:.03em;padding:9px 8px;text-align:center;white-space:nowrap;}
:where(.labor-allocator,.labor-allocator-pop) table.grid th:first-child{text-align:left;position:sticky;left:0;z-index:4;width:220px;box-shadow:2px 0 0 rgba(10,77,119,.12);}
:where(.labor-allocator,.labor-allocator-pop) table.grid th:nth-last-child(2){width:64px;}
:where(.labor-allocator,.labor-allocator-pop) table.grid th:last-child{width:260px;}
:where(.labor-allocator,.labor-allocator-pop) table.grid th.holiday{background:var(--amber-bg);color:var(--amber);}
:where(.labor-allocator,.labor-allocator-pop) table.grid th.holiday.blocked{background:#fde8e7;color:var(--red);}
:where(.labor-allocator,.labor-allocator-pop) table.grid td{border-top:1px solid var(--bg);padding:6px 6px;vertical-align:middle;}
:where(.labor-allocator,.labor-allocator-pop) table.grid td:first-child{position:sticky;left:0;z-index:2;background:var(--card);box-shadow:2px 0 0 rgba(10,77,119,.12);}
:where(.labor-allocator,.labor-allocator-pop) .pname{display:flex;align-items:center;gap:8px;min-width:200px;}
:where(.labor-allocator,.labor-allocator-pop) .empnum{font:800 11px/1.2 Consolas,monospace;color:var(--navy);background:#edf5fa;border:1px solid #b9d0df;border-radius:7px;padding:2px 6px;white-space:nowrap;}
:where(.labor-allocator,.labor-allocator-pop) .pname select{font-size:13px;border:1px solid var(--line);border-radius:6px;padding:5px 6px;color:var(--grey);}
:where(.labor-allocator,.labor-allocator-pop) .sharestate{font-size:11px;font-weight:800;border-radius:9px;padding:2px 6px;white-space:nowrap;background:#eef1f4;color:var(--grey);}
:where(.labor-allocator,.labor-allocator-pop) .sharestate.on{background:#e9f7ef;color:var(--green);}
:where(.labor-allocator,.labor-allocator-pop) .cell{width:100%;min-width:120px;min-height:72px;border:1px dashed var(--line);border-radius:8px;background:#fff;color:var(--navy);
  font-weight:700;font-size:16px;cursor:pointer;text-align:center;padding:8px 6px;display:flex;flex-direction:column;justify-content:center;gap:4px;}
:where(.labor-allocator,.labor-allocator-pop) .cell.set{border-style:solid;border-color:var(--navy);background:#f2f7fb;}
:where(.labor-allocator,.labor-allocator-pop) .cell.other{border-style:solid;border-color:#9aabb7;background:#f7f9fb;color:#405466;}
:where(.labor-allocator,.labor-allocator-pop) .cell.other .othertag{color:var(--amber);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.02em;}
:where(.labor-allocator,.labor-allocator-pop) .cell.drop{outline:3px solid var(--orange);outline-offset:1px;background:#fff6e6;}
:where(.labor-allocator,.labor-allocator-pop) .cell.out{border-style:solid;border-color:var(--amber);background:var(--amber-bg);color:var(--amber);cursor:not-allowed;}
:where(.labor-allocator,.labor-allocator-pop) .cell.out.allocator-off{cursor:pointer;}
:where(.labor-allocator,.labor-allocator-pop) .cell.holiday{border-style:solid;border-color:var(--amber);background:var(--amber-bg);}
:where(.labor-allocator,.labor-allocator-pop) .cell.holiday::after{content:'H';display:inline-block;margin-left:3px;font-size:8px;color:var(--amber);vertical-align:top;}
:where(.labor-allocator,.labor-allocator-pop) .cell.holiday.blocked{border-color:var(--red);background:#fde8e7;color:var(--red);cursor:not-allowed;font-size:12px;line-height:1.3;}
:where(.labor-allocator,.labor-allocator-pop) .cell.holiday.blocked::after{display:none;}
:where(.labor-allocator,.labor-allocator-pop) .cell.holiday.invalid{outline:2px solid var(--red);cursor:pointer;}
:where(.labor-allocator,.labor-allocator-pop) .cell .nt{color:var(--orange);}
:where(.labor-allocator,.labor-allocator-pop) .cellmeta{display:block;color:var(--grey);font-size:13px;font-weight:700;white-space:nowrap;}
:where(.labor-allocator,.labor-allocator-pop) .linehint{font-size:12px;color:var(--grey);font-weight:700;white-space:nowrap;}
:where(.labor-allocator,.labor-allocator-pop) .hourscol{min-width:64px;text-align:center;font-weight:800;font-size:15px;color:var(--navy);white-space:nowrap;}
:where(.labor-allocator,.labor-allocator-pop) tr.person-total td{border-top:1px solid var(--line);background:#f7f9fb;padding:6px 6px;color:var(--navy);font-size:13px;font-weight:800;text-align:center;}
:where(.labor-allocator,.labor-allocator-pop) tr.person-total td:first-child{text-align:right;color:var(--grey);background:#f7f9fb;}
:where(.labor-allocator,.labor-allocator-pop) tr.person-extra td{background:#fbfcfd;}
:where(.labor-allocator,.labor-allocator-pop) tr.person-extra td:first-child{background:#fbfcfd;}
:where(.labor-allocator,.labor-allocator-pop) .rmp{background:none;border:none;color:var(--grey);font-size:15px;cursor:pointer;}
:where(.labor-allocator,.labor-allocator-pop) .rowacts{display:flex;align-items:center;justify-content:flex-end;gap:2px;white-space:nowrap;}
:where(.labor-allocator,.labor-allocator-pop) .cwk{font-size:12px;font-weight:800;color:var(--navy);border:1px solid var(--line);border-radius:6px;padding:4px 6px;}
:where(.labor-allocator,.labor-allocator-pop) .cwk:hover{background:var(--bg);}
:where(.labor-allocator,.labor-allocator-pop) .personshare{font-size:12px;font-weight:800;border:1px solid var(--line);border-radius:6px;padding:4px 6px;}
:where(.labor-allocator,.labor-allocator-pop) .personshare.share{color:var(--navy);background:#f2f7fb;}
:where(.labor-allocator,.labor-allocator-pop) .personshare.unshare{color:var(--red);background:#fff7f6;}
:where(.labor-allocator,.labor-allocator-pop) .personshare:hover{filter:brightness(.97);}:where(.labor-allocator,.labor-allocator-pop) .personshare:disabled{opacity:.45;cursor:default;}
/* Fit week is a responsive table layout, not visual scaling. Click targets and popovers
   keep their real coordinates while the columns recalculate with the available width. */
body.fit-week .labor-allocator{padding-left:8px;padding-right:8px;}
body.fit-week :where(.labor-allocator,.labor-allocator-pop) table.grid{min-width:0;table-layout:fixed;width:100%;}
body.fit-week :where(.labor-allocator,.labor-allocator-pop) table.grid th,body.fit-week :where(.labor-allocator,.labor-allocator-pop) table.grid td{padding-left:3px;padding-right:3px;}
body.fit-week :where(.labor-allocator,.labor-allocator-pop) table.grid th:first-child{width:16%;}
body.fit-week :where(.labor-allocator,.labor-allocator-pop) table.grid th:nth-last-child(2){width:5%;}
body.fit-week :where(.labor-allocator,.labor-allocator-pop) table.grid th:last-child{width:16%;}
body.fit-week :where(.labor-allocator,.labor-allocator-pop) .cell{min-width:0;padding:6px 2px;font-size:clamp(11px,1vw,15px);overflow-wrap:anywhere;}
body.fit-week :where(.labor-allocator,.labor-allocator-pop) .cellmeta{font-size:10.5px;white-space:normal;}
body.fit-week :where(.labor-allocator,.labor-allocator-pop) .pname{min-width:0;flex-wrap:wrap;gap:4px;overflow-wrap:anywhere;}
body.fit-week :where(.labor-allocator,.labor-allocator-pop) .pname select{max-width:100%;min-width:0;}
body.fit-week :where(.labor-allocator,.labor-allocator-pop) .rowacts{white-space:normal;flex-wrap:wrap;justify-content:center;}
body.fit-week :where(.labor-allocator,.labor-allocator-pop) .cwk,body.fit-week :where(.labor-allocator,.labor-allocator-pop) .personshare{font-size:10px;padding:3px 4px;}
@media (max-width:800px){body.fit-week :where(.labor-allocator,.labor-allocator-pop) table.grid{min-width:780px;}}
:where(.labor-allocator,.labor-allocator-pop) .addp{margin-top:8px;} :where(.labor-allocator,.labor-allocator-pop) .addp .btn{padding:6px 12px;font-size:12.5px;}
:where(.labor-allocator,.labor-allocator-pop) .empty{color:var(--grey);font-size:13px;padding:24px 4px;text-align:center;}
/* popovers */
.labor-allocator-pop{position:absolute;z-index:60;background:var(--card);border:1px solid var(--line);border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);width:270px;padding:10px;}
.labor-allocator-pop input[type=text]{width:100%;font-size:14px;padding:8px 9px;border:1px solid var(--line);border-radius:8px;}
.labor-allocator-pop .list{max-height:200px;overflow:auto;margin:8px 0;}
.labor-allocator-pop .list div{padding:7px 8px;font-size:13px;cursor:pointer;border-radius:6px;} .labor-allocator-pop .list div:hover{background:var(--bg);}
.labor-allocator-pop .row{display:flex;gap:6px;margin-top:6px;} .labor-allocator-pop .row .btn{flex:1;padding:7px;font-size:12px;}
.labor-allocator-pop .sel{font-size:12.5px;font-weight:700;color:var(--navy);margin:2px 0;}
.labor-allocator-pop input[type=number]{min-width:0;width:100%;font-size:13px;padding:7px 8px;border:1px solid var(--line);border-radius:8px;font-family:inherit;}
.labor-allocator-pop .daypick{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:8px;}
.labor-allocator-pop .daypick button{min-width:0;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--grey);padding:7px 1px;font-size:11px;font-weight:800;cursor:pointer;}
.labor-allocator-pop .daypick button.on{border-color:var(--orange);background:var(--orange);color:var(--navy);}
.labor-allocator-pop .daypick button{position:relative;}
.labor-allocator-pop .daypick .jd-other{position:absolute;top:2px;right:3px;font-size:7px;line-height:1;color:var(--orange);}
.labor-allocator-pop .daypick button.on .jd-other{color:var(--navy);}
.labor-allocator-pop .timepick{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:6px;margin-top:8px;}
.labor-allocator-pop .timepick label,.labor-allocator-pop .timepick .tp-start{display:flex;flex-direction:column;gap:3px;font-size:11px;font-weight:800;color:var(--grey);}
.labor-allocator-pop .timepick .tp-start{grid-column:1/-1;}
.labor-allocator-pop .hhpick{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px;}
.labor-allocator-pop .hh-hours{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;}
.labor-allocator-pop .hh-side{display:grid;grid-template-rows:1fr 1fr;gap:3px;}
.labor-allocator-pop .hhpick button{min-width:0;border:1px solid var(--line);border-radius:6px;background:var(--card);color:var(--navy);padding:6px 2px;font:800 12px/1 Arial,Helvetica,sans-serif;cursor:pointer;font-variant-numeric:tabular-nums;}
.labor-allocator-pop .hh-side button{padding:6px 8px;}
.labor-allocator-pop .hhpick button.on{border-color:var(--orange);background:var(--orange);color:var(--navy);}
.labor-allocator-pop .overnight{font-size:10.5px;color:var(--grey);margin:4px 1px 0;}
.labor-allocator-pop .overnight.on{color:var(--orange);font-weight:800;}
:where(.labor-allocator,.labor-allocator-pop) .cellmeta .flag{margin-left:4px;font-size:10px;}
:where(.labor-allocator,.labor-allocator-pop) .cellmeta .flag.alt{padding:0 3px;border-radius:3px;background:var(--orange);color:#fff;font-weight:800;}
.labor-allocator-pop .shiftflags{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin-top:6px;font-size:12px;}
.labor-allocator-pop .shiftflags label{display:inline-flex;align-items:center;gap:4px;}
.labor-allocator-pop.shifteditor{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(860px,calc(100vw - 32px));max-height:calc(100vh - 24px);overflow:auto;overscroll-behavior:contain;}
.shifteditor:where(.labor-allocator-pop) .pophead{display:flex;align-items:center;gap:10px;margin:0 0 10px;position:sticky;top:-10px;z-index:3;background:var(--card);padding:10px 0 7px;border-bottom:1px solid var(--line);}
.shifteditor:where(.labor-allocator-pop) .pophead h3{flex:1;margin:0;color:var(--navy);font-size:16px;line-height:1.25;}
.shifteditor:where(.labor-allocator-pop) .popclose{border:0;background:var(--bg);color:var(--navy);border-radius:50%;width:32px;height:32px;padding:0;font-size:22px;line-height:1;cursor:pointer;}
.shifteditor:where(.labor-allocator-pop) .popclose:hover{background:var(--line);}
:where(.labor-allocator,.labor-allocator-pop) .shifteditor-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);gap:16px;align-items:start;}
:where(.labor-allocator,.labor-allocator-pop) .shifteditor-main,:where(.labor-allocator,.labor-allocator-pop) .shifteditor-details{min-width:0;}
:where(.labor-allocator,.labor-allocator-pop) .shifteditor-main>.list{max-height:250px;}
:where(.labor-allocator,.labor-allocator-pop) .shifteditor-details{border-left:1px solid var(--line);padding-left:16px;}
@supports (height:100dvh){.labor-allocator-pop.shifteditor{max-height:calc(100dvh - 24px);}}
@media (max-width:720px){.labor-allocator-pop.shifteditor{width:calc(100vw - 20px);}:where(.labor-allocator,.labor-allocator-pop) .shifteditor-grid{grid-template-columns:1fr;}:where(.labor-allocator,.labor-allocator-pop) .shifteditor-details{border-left:0;border-top:1px solid var(--line);padding:12px 0 0;}}
:where(.labor-allocator,.labor-allocator-pop) .holidayack{margin:8px 0 2px;padding:8px;border:1px solid var(--amber);border-radius:8px;background:var(--amber-bg);color:#65430a;font-size:12px;line-height:1.35;}
:where(.labor-allocator,.labor-allocator-pop) .holidayack label{display:flex;align-items:flex-start;gap:7px;cursor:pointer;font-weight:700;}
:where(.labor-allocator,.labor-allocator-pop) .holidayack input{width:17px;height:17px;flex:none;margin:0;}
.labor-allocator-pop.custom{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(360px,92vw);}
.labor-allocator-pop.custom h3{margin:0 0 10px;color:var(--navy);font-size:16px;}.labor-allocator-pop .field{display:flex;flex-direction:column;gap:4px;margin-top:7px;font-size:11px;font-weight:800;color:var(--grey);}
.labor-allocator-mask{position:fixed;inset:0;z-index:55;background:rgba(16,42,60,.28);}
:where(.labor-allocator,.labor-allocator-pop) .ltag{font-size:10px;font-weight:800;color:var(--grey);background:var(--bg);border:1px solid var(--line);border-radius:5px;padding:1px 4px;}
:where(.labor-allocator,.labor-allocator-pop) .teamsub{font-size:11px;color:var(--grey);font-weight:400;}
:where(.labor-allocator,.labor-allocator-pop) .editlog .discarded{color:var(--grey);}
:where(.labor-allocator,.labor-allocator-pop) .teamsort{display:flex;gap:3px;margin-left:6px;}
:where(.labor-allocator,.labor-allocator-pop) .teamsort .btn{padding:2px 7px;font-size:11px;line-height:1.2;}
.teameditor:where(.labor-allocator-pop){position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(480px,92vw);max-height:86vh;overflow:auto;}
.importreview:where(.labor-allocator-pop){position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(780px,96vw);max-height:88vh;overflow:auto;}
.importreview:where(.labor-allocator-pop) table{width:100%;border-collapse:collapse;font-size:12.5px;margin-top:10px;}
.importreview:where(.labor-allocator-pop) th,.importreview:where(.labor-allocator-pop) td{text-align:left;padding:7px 6px;border-top:1px solid var(--bg);vertical-align:top;}
.importreview:where(.labor-allocator-pop) th{color:var(--navy);font-size:11px;text-transform:uppercase;letter-spacing:.03em;}
.importreview:where(.labor-allocator-pop) select{max-width:210px;font-size:12px;padding:5px;border:1px solid var(--line);border-radius:6px;background:var(--card);}
:where(.labor-allocator,.labor-allocator-pop) .importmeta{font-size:11.5px;color:var(--grey);line-height:1.35;}
:where(.labor-allocator,.labor-allocator-pop) .importflags{margin-top:12px;border-top:1px solid var(--line);padding-top:9px;}
:where(.labor-allocator,.labor-allocator-pop) .importflags summary{cursor:pointer;color:var(--navy);font-size:12.5px;font-weight:800;}
:where(.labor-allocator,.labor-allocator-pop) .importflag{display:inline-block;border-radius:10px;padding:2px 7px;font-size:10px;font-weight:800;text-transform:uppercase;white-space:nowrap;}
:where(.labor-allocator,.labor-allocator-pop) .importflag.conflict{background:#fde8e7;color:#a22923;}:where(.labor-allocator,.labor-allocator-pop) .importflag.duplicate{background:#fff2d9;color:#895c00;}:where(.labor-allocator,.labor-allocator-pop) .importflag.timeoff{background:#e9eef3;color:#405466;}:where(.labor-allocator,.labor-allocator-pop) .importflag.holiday{background:var(--amber-bg);color:var(--amber);}
:where(.labor-allocator,.labor-allocator-pop) .teamlist{margin-top:4px;}
:where(.labor-allocator,.labor-allocator-pop) .teamrow{display:flex;align-items:flex-start;gap:8px;padding:9px 0;border-top:1px solid var(--bg);}
:where(.labor-allocator,.labor-allocator-pop) .teamrow input[type=text]{flex:0 0 132px;font-size:13px;padding:7px 8px;border:1px solid var(--line);border-radius:7px;}
:where(.labor-allocator,.labor-allocator-pop) .teamrow .chips{flex:1;display:flex;flex-wrap:wrap;gap:5px;align-items:center;}
:where(.labor-allocator,.labor-allocator-pop) .teamrow .chips select{font-size:12px;padding:5px 6px;border:1px solid var(--line);border-radius:6px;color:var(--grey);background:var(--card);}
:where(.labor-allocator,.labor-allocator-pop) .chip-l{display:inline-flex;align-items:center;gap:3px;font-size:12px;font-weight:700;color:var(--navy);background:#f2f7fb;border:1px solid var(--line);border-radius:14px;padding:3px 4px 3px 9px;}
:where(.labor-allocator,.labor-allocator-pop) .chip-l button{border:none;background:none;color:var(--grey);cursor:pointer;font-size:12px;padding:0 2px;line-height:1;}
.labor-allocator-pop.copyweek{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(430px,94vw);max-height:84vh;overflow:auto;}
.labor-allocator-pop.copyweek h3{margin:0 0 6px;color:var(--navy);font-size:16px;}
.labor-allocator-pop.copyweek .msg{font-size:12.5px;line-height:1.45;margin:0 0 9px;}
:where(.labor-allocator,.labor-allocator-pop) .copyall{display:flex;align-items:center;gap:7px;font-size:13.5px;color:var(--navy);padding:8px 2px;border-bottom:1px solid var(--bg);cursor:pointer;}
:where(.labor-allocator,.labor-allocator-pop) .copycount{color:var(--grey);font-weight:700;font-size:12px;}
:where(.labor-allocator,.labor-allocator-pop) .copylist{max-height:44vh;overflow:auto;margin:4px 0;display:flex;flex-direction:column;gap:2px;}
:where(.labor-allocator,.labor-allocator-pop) .copycheck{display:flex;align-items:center;gap:8px;font-size:13.5px;padding:6px;border-radius:6px;cursor:pointer;}
:where(.labor-allocator,.labor-allocator-pop) .copycheck:hover{background:var(--bg);}:where(.labor-allocator,.labor-allocator-pop) .copycheck input,:where(.labor-allocator,.labor-allocator-pop) .copyall input{width:16px;height:16px;flex:none;}
:where(.labor-allocator,.labor-allocator-pop) .copycheck small{display:block;color:var(--grey);font-size:10.5px;margin-top:1px;}

:where(.labor-allocator,.labor-allocator-pop) .sharestate.changed{background:#fff3cd;color:#805500;}
