/* THRS V14.67 | Work Schedules – Dark Mode color correction only.
   Existing geometry, original decorative SVG, timetable columns, employee
   roster, all data/API and Light Mode unchanged. Load direct and last. */
html[data-theme="dark"] body .work-schedules-pro {
 --ws40-paper:#142d40!important;
 --ws40-frost:#193648!important;
 --ws40-mist:#203d51!important;
 --ws40-ink:#edf4f8!important;
 --ws40-muted:#c0d2dd!important;
 --ws40-line:#4b697d!important;
 --ws40-gold:#d3a654!important;
 --ws40-gold-shine:#e6c278!important;
 --wse36-bg:#142f42!important;
 --wse36-soft:#1b3a4d!important;
 --wse36-tint:#203e52!important;
 --wse36-ink:#eef4f9!important;
 --wse36-muted:#bdcfdb!important;
 --wse36-line:#48687d!important;
 --wse36-gold:#d3a654!important;
 --ws22-paper:#142f42!important;
 --ws22-soft:#1a394c!important;
 --ws22-soft2:#203e52!important;
 --ws22-ink:#eef4f8!important;
 --ws22-muted:#bfd0dc!important;
 --ws22-border:#4e6c80!important;
 --ws22-gold:#d3a654!important;
 color-scheme:dark!important;
}
/* Header, SVG waves and layout remain intact; all four tab icons dark. */
html[data-theme="dark"] body .work-schedules-pro .ws-tab:not(.active){
 background:linear-gradient(155deg,#1a394d,#142e42)!important;
 border-color:#4d6a7d!important;
 color:#e9f2f7!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-tab:not(.active) .ws-tab-icon{
 background:linear-gradient(145deg,#263e46,#1b3944)!important;
 border-color:#6c745d!important;
 color:#dfb566!important;
 box-shadow:0 4px 10px rgba(0,7,17,.15)!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-tab.active .ws-tab-icon{
 background:linear-gradient(135deg,#2c4b53,#1d3b4c)!important;
 border-color:#a78b57!important;
 color:#e9bf72!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-tab.active {
 background:linear-gradient(145deg,#0e2a3f,#081f33)!important;
 border-color:#c09a56!important;
 box-shadow:0 6px 13px rgba(0,7,18,.22),0 8px 9px rgba(200,154,69,.07)!important;
}
/* Four filter controls: same native icons, dark input wells. */
html[data-theme="dark"] body .work-schedules-pro .ws-filter-card {
 background:linear-gradient(145deg,#1b3b50,#142e42)!important;
 border-color:#507086!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-filter-grid>div :is(input.ws-field,select.ws-field,.ws-dept-trigger){
 background:#1a3b50!important;
 background-image:none!important;
 color:#eef5f9!important;
 -webkit-text-fill-color:#eef5f9!important;
 border-color:#5a788c!important;
 color-scheme:dark!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-filter-grid>div input::placeholder{
 color:#b7cbd8!important;-webkit-text-fill-color:#b7cbd8!important;opacity:1!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-filter-grid>div :is(input,select,.ws-dept-trigger):focus-visible {
 outline:2px solid #d5ab62!important;outline-offset:2px!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-filter-grid>div select option{
 background:#1a3b50!important;color:#edf5fa!important;
}
/* Directory: muted gold selection, not bright yellow or copper. */
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-employee-card{
 background:linear-gradient(145deg,#19374a,#132e42)!important;
 border-color:#4c6a7d!important;
 box-shadow:0 2px 7px rgba(0,8,19,.16)!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-employee-card.active {
 background:linear-gradient(135deg,#393a36,#253643 55%,#1c3346)!important;
 border-color:#b18c50!important;
 box-shadow:inset 3px 0 0 #c7a05b,0 5px 13px rgba(0,7,18,.20)!important;
}
html[data-theme="dark"] body .work-schedules-pro[dir="rtl"] .ws-workspace .ws-employee-card.active{
 box-shadow:inset -3px 0 0 #c7a05b,0 5px 13px rgba(0,7,18,.20)!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-avatar{
 background:linear-gradient(145deg,#373c3c,#263c44)!important;
 color:#e9c480!important;
 border-color:#977f55!important;
 box-shadow:none!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-employee-card.active .ws-avatar{
 background:linear-gradient(145deg,#3e3b32,#233c49)!important;
 color:#f0ce92!important;border-color:#c1a161!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-pill.neutral{
 background:#294658!important;color:#c9d8e3!important;
 border-color:#506e80!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-pill.success{
 background:#194739!important;color:#b8e8d2!important;border-color:#4a8870!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-pill.warning{
 background:#453929!important;color:#edd29a!important;border-color:#967b4c!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-pill.danger{
 background:#482e38!important;color:#ebbac4!important;border-color:#93616b!important;
}
/* Selected schedule overview, three KPI tile wells and seven day cards. */
html[data-theme="dark"] body .work-schedules-pro .ws-workspace>.ws-panel{
 background:linear-gradient(150deg,#18384b,#112d41)!important;
 border-color:#4c6d80!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-selected-header{
 background:linear-gradient(140deg,#1b3a4e,#153145)!important;
 border-color:#a38755!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-mini-stat{
 background:linear-gradient(140deg,#1c3c50,#1a364a)!important;
 border-color:#4f6e81!important;
 box-shadow:0 3px 10px rgba(0,8,19,.15)!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-day-card{
 background:linear-gradient(145deg,#1b3a4e,#193548)!important;
 border-color:#4b6b7f!important;
 box-shadow:0 3px 10px rgba(0,8,18,.15)!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-day-card.off{
 background:linear-gradient(145deg,#1a3447,#172f42)!important;
 border-color:#49677b!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-day-card:first-child{
 border-color:#9b8d64!important;
 box-shadow:0 4px 14px rgba(0,10,20,.15)!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-day-card .ws-pill.success{
 background:#194739!important;color:#b8e8d2!important;border-color:#4a8870!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-day-card .ws-pill.neutral{
 background:#263f50!important;color:#d1dfe8!important;border-color:#4e6879!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-day-card .ws-mode{
 color:#bdd0dc!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-exceptions {
 border-top-color:#49697e!important;
}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-empty-state{
 background:#1d3e52!important;border-color:#71806c!important;
 color:#d0e0ea!important;
}
/* No layout/spacing/font-size/display changes. Original iconic SVG masks remain. */

/* Preserve all seven original SVG glyphs; replace ONLY pale icon-tile gradients. */
html[data-theme="dark"] body .work-schedules-pro .ws-filter-grid>div:nth-child(1)::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23de9b22%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.5%22%20cy%3D%2210.5%22%20r%3D%227%22%2F%3E%3Cpath%20d%3D%22m16%2016%205%205%22%2F%3E%3C%2Fsvg%3E"),linear-gradient(145deg,#263e46,#1b3944)!important;}
html[data-theme="dark"] body .work-schedules-pro .ws-filter-grid>div:nth-child(2)::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23de9b22%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%209%205-9%205-9-5%209-5Z%22%2F%3E%3Cpath%20d%3D%22m3%2012%209%205%209-5M3%2017l9%205%209-5%22%2F%3E%3C%2Fsvg%3E"),linear-gradient(145deg,#263e46,#1b3944)!important;}
html[data-theme="dark"] body .work-schedules-pro .ws-filter-grid>div:nth-child(3)::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23de9b22%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%202v6M17%202v6M3%2010h18M8%2014h2M14%2014h2M8%2018h2%22%2F%3E%3C%2Fsvg%3E"),linear-gradient(145deg,#263e46,#1b3944)!important;}
html[data-theme="dark"] body .work-schedules-pro .ws-filter-grid>div:nth-child(4)::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23de9b22%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%202v6M17%202v6M3%2010h18M8%2014h2M14%2014h2M8%2018h2%22%2F%3E%3C%2Fsvg%3E"),linear-gradient(145deg,#263e46,#1b3944)!important;}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-mini-stat:nth-child(1)::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23de9b22%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%202v6M17%202v6M3%2010h18M8%2014h2M14%2014h2M8%2018h2%22%2F%3E%3C%2Fsvg%3E"),linear-gradient(145deg,#263e46,#1b3944)!important;}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-mini-stat:nth-child(2)::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23de9b22%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%209%205-9%205-9-5%209-5Z%22%2F%3E%3Cpath%20d%3D%22m3%2012%209%205%209-5M3%2017l9%205%209-5%22%2F%3E%3C%2Fsvg%3E"),linear-gradient(145deg,#263e46,#1b3944)!important;}
html[data-theme="dark"] body .work-schedules-pro .ws-workspace .ws-mini-stat:nth-child(3)::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23de9b22%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2012v9M6%2021h12M12%2012c-1-6-5-9-10-7%204-1%207%202%208%207M12%2012c1-6%205-9%2010-7-4-1-7%202-8%207M12%2012c-6-1-8%200-9%204%203-2%206-2%209-4M12%2012c6-1%208%200%209%204-3-2-6-2-9-4%22%2F%3E%3C%2Fsvg%3E"),linear-gradient(145deg,#263e46,#1b3944)!important;}
