/* THRS V14.40 — Approved Screenshot Implementation
   Scope: Work Schedules only, production-ready visual composition.
   All React handlers/data/permissions remain unchanged.
   The hero art is decorative SVG and cannot obstruct controls. */
html[data-theme="light"] .work-schedules-pro{
  --ws40-paper:#fff;--ws40-frost:#f8faff;--ws40-mist:#eef3fb;
  --ws40-ink:#0d2744;--ws40-muted:#4c6888;--ws40-line:#d7e2f0;
  --ws40-gold:#e5a53a;--ws40-gold-shine:#ffcc61;
  --ws40-shadow:0 7px 18px rgba(26,51,85,.055),0 23px 43px rgba(26,51,85,.085);
}
html[data-theme="dark"] .work-schedules-pro{
  --ws40-paper:#142f4a;--ws40-frost:#193953;--ws40-mist:#244661;
  --ws40-ink:#eef6ff;--ws40-muted:#b9d1e7;--ws40-line:#385a77;
  --ws40-gold:#f0bd61;--ws40-gold-shine:#ffd77a;
  --ws40-shadow:0 8px 19px rgba(0,13,28,.20),0 23px 43px rgba(0,13,28,.25);
}
html[data-theme] .work-schedules-pro{
  width:100%!important;max-width:1600px!important;
  margin-inline:auto!important;
  padding:22px 24px 35px!important;
  color:var(--ws40-ink)!important;
  background:radial-gradient(ellipse at 10% 0%,rgba(196,148,82,.065),transparent 37%)!important;
  font-feature-settings:"tnum" 1;
}
/* Hero: matches the approved composition — intro / 3D calendar / four compact KPIs */
html[data-theme] .work-schedules-pro .ws-hero{
  min-height:194px!important;padding:24px 27px!important;
  margin-bottom:23px!important;border-radius:23px!important;
  background:
    radial-gradient(ellipse at 55% 130%,rgba(26,103,159,.34),transparent 43%),
    radial-gradient(ellipse at 97% -60%,rgba(209,172,95,.12),transparent 37%),
    linear-gradient(118deg,#061b33 0%,#0b304f 48%,#081e36 100%)!important;
  border:1px solid rgba(241,195,117,.50)!important;
  box-shadow:0 14px 33px rgba(6,34,62,.22),inset 0 1px 0 rgba(255,255,255,.13)!important;
}
html[data-theme] .work-schedules-pro .ws-hero::before{
  content:""!important;position:absolute!important;
  width:630px!important;height:380px!important;
  inset-inline-start:27%!important;inset-inline-end:auto!important;
  top:auto!important;bottom:-295px!important;
  border-radius:50%!important;
  background:repeating-radial-gradient(ellipse at 50% 38%,transparent 0 13px,rgba(226,151,51,.26) 13.5px 14.5px,transparent 15px 18px)!important;
  opacity:.85!important;transform:rotate(-8deg)!important;
  pointer-events:none!important;
}
html[data-theme] .work-schedules-pro .ws-hero::after{
  content:""!important;position:absolute!important;
  width:370px!important;height:310px!important;
  inset-inline-start:auto!important;inset-inline-end:-200px!important;
  top:-227px!important;bottom:auto!important;
  border-radius:50%!important;
  background:repeating-radial-gradient(circle at 50% 50%,transparent 0 17px,rgba(220,179,102,.10) 18px 18.8px,transparent 20px 26px)!important;
  pointer-events:none!important;opacity:.85!important;
}
html[data-theme] .work-schedules-pro .ws-hero-grid{
  position:relative!important;z-index:2!important;
  display:grid!important;
  grid-template-columns:minmax(320px,1.16fr) minmax(150px,.48fr) minmax(410px,1.08fr)!important;
  align-items:center!important;gap:16px!important;
}
html[data-theme] .work-schedules-pro .ws-hero-copy{
  position:relative;min-width:0;z-index:2;
}
html[data-theme] .work-schedules-pro .ws-eyebrow{
  display:inline-flex!important;align-items:center!important;
  max-width:100%;gap:7px!important;
  padding:6px 11px!important;margin-bottom:14px!important;
  border-radius:999px!important;
  border:1px solid #e4a737!important;
  background:rgba(1,19,34,.53)!important;
  color:#ffcd64!important;
  font-size:11px!important;font-weight:870!important;
  letter-spacing:0!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
html[data-theme] .work-schedules-pro .ws-eyebrow svg{
  width:14px!important;height:14px!important;
  color:#ffbd36!important;flex:0 0 auto!important;
}
html[data-theme] .work-schedules-pro .ws-hero h1{
  color:#fff!important;
  font-size:clamp(25px,2.15vw,35px)!important;
  letter-spacing:-.04em!important;
  font-weight:950!important;line-height:1.2!important;
  text-shadow:0 1px 8px rgba(0,9,25,.17)!important;
}
html[data-theme] .work-schedules-pro .ws-hero p{
  font-size:13.5px!important;
  line-height:1.72!important;font-weight:540!important;
  color:#e5edf8!important;max-width:520px!important;
  margin-top:13px!important;
}
html[data-theme] .work-schedules-pro .ws-hero-illustration{
  position:relative;min-width:0;
  height:162px;display:grid;place-items:center;
  pointer-events:none;
}
html[data-theme] .work-schedules-pro .ws-reference-hero-art{
  display:block!important;width:230px!important;max-width:135%!important;
  height:auto!important;
  filter:drop-shadow(0 9px 14px rgba(0,11,26,.18));
  transform:translateY(-5px) rotate(-2deg);
}
html[data-theme] .work-schedules-pro .ws-kpi-grid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:stretch!important;gap:12px!important;min-width:0!important;
}
html[data-theme] .work-schedules-pro .ws-kpi{
  display:flex!important;flex-direction:column!important;
  justify-content:center!important;
  min-width:0!important;min-height:116px!important;
  padding:15px 12px!important;border-radius:17px!important;
  border:1px solid rgba(243,205,145,.70)!important;
  background:linear-gradient(140deg,rgba(255,255,255,.20),rgba(255,255,255,.065))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 7px 16px rgba(0,13,31,.11)!important;
  backdrop-filter:blur(8px);
}
html[data-theme] .work-schedules-pro .ws-kpi .icon{
  display:flex!important;align-items:center!important;
  color:#ffd16c!important;margin-bottom:6px!important;
}
html[data-theme] .work-schedules-pro .ws-kpi .icon svg{width:21px!important;height:21px!important;}
html[data-theme] .work-schedules-pro .ws-kpi .value{
  font-size:28px!important;font-weight:950!important;line-height:1.03!important;
  letter-spacing:-.04em!important;color:#fff!important;margin:0 0 5px!important;
}
html[data-theme] .work-schedules-pro .ws-kpi .label{
  color:#f2f6ff!important;font-size:11.7px!important;
  font-weight:810!important;line-height:1.25!important;
  overflow-wrap:anywhere!important;
}
/* 4 navigation tabs: same flow, ref-style active gold rim/under-glow */
html[data-theme] .work-schedules-pro .ws-tabs-card{
  margin-bottom:22px!important;
  border-radius:19px!important;
  border:1px solid rgba(221,232,243,.92)!important;
  background:linear-gradient(150deg,var(--ws40-paper),var(--ws40-frost))!important;
  box-shadow:var(--ws40-shadow)!important;
  overflow:visible!important;
}
html[data-theme] .work-schedules-pro .ws-tabs{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;padding:6px!important;
  background:transparent!important;border-radius:18px!important;
}
html[data-theme] .work-schedules-pro .ws-tab{
  position:relative!important;min-width:0!important;
  display:flex!important;align-items:center!important;gap:12px!important;
  min-height:67px!important;padding:10px 13px!important;
  border-radius:16px!important;
  border:1px solid var(--ws40-line)!important;
  background:linear-gradient(160deg,var(--ws40-paper),var(--ws40-frost))!important;
  color:var(--ws40-ink)!important;
  text-align:start!important;overflow:visible!important;
  box-shadow:0 4px 12px rgba(26,54,91,.065)!important;
  font-size:13px!important;font-weight:920!important;
}
html[data-theme] .work-schedules-pro .ws-tab>span:last-child{
  min-width:0!important;line-height:1.25!important;
}
html[data-theme] .work-schedules-pro .ws-tab small{
  display:block!important;color:var(--ws40-muted)!important;
  margin-top:5px!important;
  font-size:11px!important;font-weight:670!important;line-height:1.25!important;
}
html[data-theme] .work-schedules-pro .ws-tab-icon{
  display:grid!important;place-items:center!important;flex:0 0 44px!important;
  width:44px!important;height:44px!important;
  border-radius:14px!important;
  border:1px solid #edf1f6!important;
  color:#dc9b24!important;
  background:linear-gradient(145deg,#fff,#fff3df)!important;
  box-shadow:0 4px 11px rgba(121,83,27,.10)!important;
}
html[data-theme] .work-schedules-pro .ws-tab-icon svg{
  width:23px!important;height:23px!important;
}
html[data-theme] .work-schedules-pro .ws-tab.active{
  background:linear-gradient(145deg,#083254,#041d36)!important;
  color:#fff!important;border:1px solid #d69d3a!important;
  box-shadow:0 7px 14px rgba(8,35,63,.22),0 12px 13px rgba(232,159,23,.22)!important;
}
html[data-theme] .work-schedules-pro .ws-tab.active::after{
  content:""!important;position:absolute!important;
  bottom:-4px!important;inset-inline:13px!important;
  width:auto!important;height:7px!important;
  border-radius:0 0 10px 10px!important;
  background:linear-gradient(90deg,rgba(226,156,33,.05),#ffca4e 42%,rgba(226,156,33,.08))!important;
  filter:blur(1px);pointer-events:none!important;
}
html[data-theme] .work-schedules-pro .ws-tab.active .ws-tab-icon{
  color:#ffc35c!important;
  background:linear-gradient(145deg,#2b566c,#103952)!important;
  border:1px solid rgba(250,205,124,.35)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 5px 10px rgba(0,0,0,.18)!important;
}
html[data-theme] .work-schedules-pro .ws-tab.active small{color:#dce9f7!important;}
/* Unified filter strip with 4 icon blocks */
html[data-theme] .work-schedules-pro .ws-filter-card{
  margin-bottom:22px!important;
  border-radius:18px!important;
  border:1px solid var(--ws40-line)!important;
  background:linear-gradient(155deg,var(--ws40-paper),var(--ws40-frost))!important;
  box-shadow:var(--ws40-shadow)!important;
}
html[data-theme] .work-schedules-pro .ws-filter-card>.thrs-card-header+div,
html[data-theme] .work-schedules-pro .ws-filter-card>div:first-child{
  padding:14px 14px!important;
}
html[data-theme] .work-schedules-pro .ws-filter-grid{
  display:grid!important;grid-template-columns:minmax(250px,1.65fr) minmax(210px,1.15fr) minmax(135px,.65fr) minmax(135px,.65fr)!important;
  gap:0!important;align-items:center!important;
}
html[data-theme] .work-schedules-pro .ws-ref-filter-item{
  display:flex!important;align-items:center!important;
  gap:12px!important;padding:3px 15px!important;
  min-width:0!important;
  border-inline-end:1px solid var(--ws40-line);
}
html[data-theme] .work-schedules-pro .ws-ref-filter-item:last-child{
  border-inline-end:0!important;
}
html[data-theme] .work-schedules-pro .ws-ref-filter-icon{
  display:grid!important;place-items:center!important;flex:0 0 45px!important;
  width:45px!important;height:45px!important;
  border-radius:14px!important;
  background:linear-gradient(145deg,var(--ws40-paper),var(--ws40-frost))!important;
  color:#df9e25!important;
  box-shadow:0 3px 12px rgba(29,51,78,.10)!important;
}
html[data-theme] .work-schedules-pro .ws-ref-filter-control{
  flex:1!important;min-width:0!important;
}
html[data-theme] .work-schedules-pro .ws-ref-filter-control .ws-field-label{
  font-size:11.5px!important;color:var(--ws40-ink)!important;
  font-weight:860!important;line-height:1.2!important;
  margin-bottom:7px!important;
}
html[data-theme] .work-schedules-pro .ws-ref-filter-control .ws-field{
  height:42px!important;min-height:42px!important;
  border-radius:13px!important;border:1px solid #cddbee!important;
  background:linear-gradient(180deg,var(--ws40-paper),var(--ws40-frost))!important;
  color:var(--ws40-ink)!important;
  padding:8px 12px!important;
  font-size:13px!important;font-weight:790!important;
  box-shadow:inset 0 2px 5px rgba(17,42,74,.04),0 3px 9px rgba(14,43,75,.08)!important;
}
html[data-theme] .work-schedules-pro .ws-ref-filter-control .ws-dept-trigger{
  height:42px!important;min-height:42px!important;
  border-radius:13px!important;border:1px solid #cddbee!important;
  background:linear-gradient(180deg,var(--ws40-paper),var(--ws40-frost))!important;
  box-shadow:inset 0 2px 5px rgba(17,42,74,.04),0 3px 9px rgba(14,43,75,.08)!important;
}
html[data-theme] .work-schedules-pro .ws-ref-filter-control .ws-dept-symbol{
  display:none!important;
}
html[data-theme] .work-schedules-pro .ws-ref-filter-control .ws-field::placeholder{
  color:var(--ws40-muted)!important;opacity:.9!important;
}
html[data-theme] .work-schedules-pro .ws-ref-filter-control :is(.ws-field,.ws-dept-trigger):focus-visible{
  outline:2px solid var(--ws40-gold)!important;outline-offset:2px!important;
}
/* Employee directory + schedule: same panels, screenshot-matched proportions. */
html[data-theme] .work-schedules-pro .ws-workspace{
  display:grid!important;grid-template-columns:minmax(305px,362px) minmax(0,1fr)!important;
  align-items:start!important;gap:20px!important;min-width:0!important;
}
html[data-theme] .work-schedules-pro .ws-workspace>.ws-panel{
  min-width:0!important;border-radius:19px!important;
  background:linear-gradient(150deg,var(--ws40-paper),var(--ws40-frost))!important;
  border:1px solid var(--ws40-line)!important;
  box-shadow:var(--ws40-shadow)!important;
  overflow:hidden!important;
}
html[data-theme] .work-schedules-pro .ws-workspace>.ws-panel>.thrs-card-header{
  min-height:53px!important;padding:15px 17px!important;
  border-bottom:1px solid var(--ws40-line)!important;
  background:linear-gradient(180deg,var(--ws40-paper),var(--ws40-frost))!important;
}
html[data-theme] .work-schedules-pro .ws-workspace>.ws-panel>.thrs-card-header h3{
  font-size:15px!important;color:var(--ws40-ink)!important;
  font-weight:920!important;letter-spacing:-.02em!important;
  gap:8px!important;padding-inline-start:0!important;
}
html[data-theme] .work-schedules-pro .ws-workspace>.ws-panel>.thrs-card-header h3>span:first-child{
  display:none!important;
}
html[data-theme] .work-schedules-pro .ws-workspace>.ws-panel:first-child>.thrs-card-header h3::before{
  content:""!important;
  display:inline-block;width:21px;height:22px;flex:0 0 21px;
  background:#d8951d;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}
html[data-theme] .work-schedules-pro .ws-workspace>.ws-panel>.thrs-card-header+div{
  padding:13px!important;min-width:0!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-employee-list{
  display:flex!important;flex-direction:column!important;
  max-height:313px!important;min-height:0!important;gap:6px!important;
  padding:0 3px 3px 0!important;
  scrollbar-width:thin!important;scrollbar-color:var(--ws40-gold) transparent!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-employee-card{
  flex:0 0 auto!important;
  display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;
  align-items:center!important;gap:10px!important;
  min-height:55px!important;
  padding:7px 9px!important;
  border:1px solid var(--ws40-line)!important;
  border-radius:13px!important;
  background:linear-gradient(155deg,var(--ws40-paper),var(--ws40-frost))!important;
  box-shadow:0 3px 7px rgba(29,54,86,.055)!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-employee-card.active{
  background:linear-gradient(135deg,#fef0d7,#f8e4bf 60%,#fff4df)!important;
  border:1px solid #d99627!important;
  box-shadow:0 5px 11px rgba(178,114,27,.12)!important;
}
html[data-theme="dark"] .work-schedules-pro .ws-workspace .ws-employee-card.active{
  background:linear-gradient(140deg,#483a2b,#4a3b2b,#292f37)!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-avatar{
  display:grid!important;place-items:center!important;
  width:40px!important;height:40px!important;
  border-radius:12px!important;
  background:linear-gradient(145deg,#fff8e7,#f3e5d2)!important;
  color:#a57634!important;border:1px solid #e5d6be!important;
  box-shadow:0 3px 7px rgba(102,72,35,.10)!important;
  font-size:12px!important;font-weight:930!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-employee-card.active .ws-avatar{
  background:linear-gradient(145deg,#193f5b,#05253e)!important;
  color:#ffd476!important;border:1px solid #d8a54c!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-employee-info{min-width:0!important;}
html[data-theme] .work-schedules-pro .ws-workspace .ws-name-row{
  min-width:0!important;display:flex!important;align-items:center!important;
  gap:4px 6px!important;flex-wrap:nowrap!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-employee-name{
  display:block!important;
  flex:1 1 auto!important;min-width:0!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  color:var(--ws40-ink)!important;font-size:11.7px!important;
  font-weight:910!important;line-height:1.35!important;
}
html[data-theme="light"] .work-schedules-pro .ws-workspace .ws-employee-card.active .ws-employee-name{
  color:#0c2945!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-name-row .ws-pill{
  flex:0 0 auto!important;font-size:9px!important;line-height:1.1!important;
  white-space:nowrap!important;
  padding:5px 7px!important;border-radius:8px!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-employee-meta{
  display:block!important;
  margin-top:5px!important;min-width:0!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  color:var(--ws40-muted)!important;
  font-size:10.3px!important;font-weight:710!important;line-height:1.3!important;
}
html[data-theme="light"] .work-schedules-pro .ws-workspace .ws-employee-card.active .ws-employee-meta{
  color:#3b5e80!important;
}
/* Selected identity panel from reference. */
html[data-theme] .work-schedules-pro .ws-workspace .ws-selected-header{
  min-height:70px!important;padding:13px 15px!important;
  margin-bottom:13px!important;gap:14px!important;
  background:linear-gradient(120deg,var(--ws40-paper),var(--ws40-frost))!important;
  border:1px solid color-mix(in srgb,var(--ws40-gold) 49%,var(--ws40-line))!important;
  border-radius:14px!important;box-shadow:0 5px 13px rgba(18,44,74,.055)!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-selected-header::before{
  content:""!important;
  position:absolute!important;inset-inline-start:0!important;
  top:12px!important;bottom:12px!important;width:4px!important;height:auto!important;
  background:linear-gradient(#f8ca71,#cf8b20)!important;border-radius:0 4px 4px 0!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-selected-header::after{
  display:none!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-selected-avatar{
  width:44px!important;height:44px!important;flex:0 0 44px!important;
  border-radius:13px!important;
  color:#ffcb70!important;background:linear-gradient(135deg,#0d4161,#05243e)!important;
  border:1px solid #e0ab46!important;
  box-shadow:0 4px 11px rgba(8,43,77,.17)!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-selected-title{
  display:flex!important;align-items:baseline!important;flex-wrap:wrap!important;
  gap:5px 7px!important;
  line-height:1.3!important;
  color:var(--ws40-ink)!important;font-size:17px!important;
  font-weight:910!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-selected-title-prefix{
  font-size:12px!important;color:var(--ws40-muted)!important;font-weight:800!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-selected-person-name{
  color:var(--ws40-ink)!important;font-size:17px!important;font-weight:940!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-selected-sub{
  margin-top:4px!important;
  font-size:11px!important;color:var(--ws40-muted)!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-actions{
  gap:10px!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-actions .thrs-btn{
  min-height:39px!important;padding:9px 15px!important;
  border-radius:13px!important;
  font-size:11px!important;font-weight:890!important;
  box-shadow:0 4px 10px rgba(22,49,87,.085)!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-actions .thrs-btn-gold{
  background:linear-gradient(145deg,#0e3859,#052841)!important;
  border:1px solid #daa43c!important;color:#fff!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stats{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;margin-bottom:15px!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stat{
  display:flex!important;align-items:center!important;
  min-width:0!important;min-height:77px!important;
  gap:13px!important;padding:13px 15px!important;
  background:linear-gradient(140deg,var(--ws40-paper),var(--ws40-mist))!important;
  border:1px solid var(--ws40-line)!important;
  border-radius:16px!important;
  box-shadow:0 4px 13px rgba(26,53,87,.07)!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stat::before{
  display:none!important;
}
html[data-theme] .work-schedules-pro .ws-ref-stat-icon{
  display:grid!important;place-items:center!important;
  width:47px!important;height:47px!important;flex:0 0 47px!important;
  border-radius:14px!important;
  color:#e7a424!important;
  background:linear-gradient(150deg,#fffef9,#fff3df)!important;
  box-shadow:0 4px 12px rgba(112,79,38,.13)!important;
}
html[data-theme] .work-schedules-pro .ws-ref-stat-copy{display:flex;flex-direction:column;min-width:0;}
html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stat b{
  display:block!important;margin:0 0 3px!important;
  font-size:25px!important;font-weight:940!important;color:var(--ws40-ink)!important;line-height:1.05!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stat span:not(.ws-ref-stat-icon){
  color:var(--ws40-muted)!important;font-size:11px!important;
  font-weight:720!important;line-height:1.35!important;
}
/* Seven weekday cards in a single row at reference desktop width. */
html[data-theme] .work-schedules-pro .ws-workspace .ws-week-grid{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:9px!important;min-width:0!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-day-card{
  position:relative!important;display:flex!important;
  flex-direction:column!important;min-width:0!important;min-height:148px!important;
  padding:13px 10px!important;border-radius:14px!important;
  border:1px solid var(--ws40-line)!important;
  background:linear-gradient(145deg,var(--ws40-paper),var(--ws40-mist))!important;
  box-shadow:0 3px 10px rgba(18,47,84,.065)!important;
  opacity:1!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-day-card::before{
  width:0!important;background:none!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-day-card.off{
  background:linear-gradient(145deg,var(--ws40-frost),var(--ws40-mist))!important;
  border:1px solid var(--ws40-line)!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-day-card:first-child{
  border:2px solid #3080f9!important;
  box-shadow:0 4px 14px rgba(22,105,229,.14)!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-day-top{
  flex-direction:column!important;align-items:flex-start!important;
  gap:9px!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-day-name{
  font-size:12px!important;font-weight:920!important;line-height:1.25!important;
  color:var(--ws40-ink)!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-day-top .ws-pill{
  font-size:10px!important;padding:5px 8px!important;min-height:24px!important;
  line-height:1.12!important;border-radius:999px!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-time{
  display:flex!important;align-items:center!important;
  gap:4px!important;
  margin-top:12px!important;
  font-size:12px!important;font-weight:920!important;
  line-height:1.4!important;color:var(--ws40-ink)!important;
  white-space:nowrap!important;overflow:visible!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-time svg{
  width:14px!important;height:14px!important;color:#dca024!important;flex:0 0 14px!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-mode{
  color:var(--ws40-muted)!important;
  font-size:10px!important;font-weight:720!important;
  line-height:1.38!important;
  padding-top:10px!important;margin-top:auto!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-mode .thrs-icon-text-row{
  display:flex!important;align-items:center!important;
  gap:5px!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-mode svg{
  width:14px!important;height:14px!important;flex:0 0 14px!important;
  color:#7094b2!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-exceptions{
  padding-top:15px!important;margin-top:20px!important;
  border-top:1px solid var(--ws40-line)!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-section-title{
  font-size:13px!important;font-weight:900!important;color:var(--ws40-ink)!important;
}
/* Compact rules below desktop: no clipped cards or sideways document scrolling. */
@media(max-width:1570px){
 html[data-theme] .work-schedules-pro .ws-hero-grid{
   grid-template-columns:minmax(255px,1.3fr) 150px minmax(385px,1.13fr)!important;
   gap:10px!important;
 }
 html[data-theme] .work-schedules-pro .ws-kpi-grid{gap:7px!important;}
 html[data-theme] .work-schedules-pro .ws-kpi{padding:12px 9px!important;}
 html[data-theme] .work-schedules-pro .ws-workspace{grid-template-columns:minmax(270px,320px) minmax(0,1fr)!important;gap:14px!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-week-grid{gap:7px!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-day-card{padding:12px 8px!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-time{font-size:11px!important;gap:3px!important;}
}
@media(max-width:1280px){
 html[data-theme] .work-schedules-pro .ws-hero-grid{grid-template-columns:minmax(0,1fr) minmax(360px,.93fr)!important;}
 html[data-theme] .work-schedules-pro .ws-hero-illustration{display:none!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-week-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-time{font-size:13px!important;}
 html[data-theme] .work-schedules-pro .ws-ref-filter-icon{flex-basis:37px!important;width:37px!important;height:37px!important;}
 html[data-theme] .work-schedules-pro .ws-ref-filter-item{gap:8px!important;padding-inline:9px!important;}
}
@media(max-width:1020px){
 html[data-theme] .work-schedules-pro{padding:16px!important;}
 html[data-theme] .work-schedules-pro .ws-hero-grid{grid-template-columns:minmax(0,1fr)!important;}
 html[data-theme] .work-schedules-pro .ws-hero{padding:21px!important;}
 html[data-theme] .work-schedules-pro .ws-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
 html[data-theme] .work-schedules-pro .ws-workspace{grid-template-columns:1fr!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-week-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-employee-list{max-height:250px!important;}
 html[data-theme] .work-schedules-pro .ws-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;row-gap:9px!important;}
 html[data-theme] .work-schedules-pro .ws-ref-filter-item:nth-child(2){border-inline-end:0!important;}
 html[data-theme] .work-schedules-pro .ws-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:650px){
 html[data-theme] .work-schedules-pro .ws-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 html[data-theme] .work-schedules-pro .ws-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 html[data-theme] .work-schedules-pro .ws-tab{min-height:64px!important;padding:8px!important;gap:7px!important;}
 html[data-theme] .work-schedules-pro .ws-tab-icon{width:35px!important;height:35px!important;flex-basis:35px!important;}
 html[data-theme] .work-schedules-pro .ws-tab-icon svg{width:19px!important;height:19px!important;}
 html[data-theme] .work-schedules-pro .ws-tab small{font-size:9.5px!important;}
 html[data-theme] .work-schedules-pro .ws-filter-grid{grid-template-columns:1fr!important;}
 html[data-theme] .work-schedules-pro .ws-ref-filter-item{border-inline-end:0!important;padding:6px!important;}
 html[data-theme] .work-schedules-pro .ws-filter-card>div:first-child{padding:8px!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stat{flex-direction:column!important;align-items:flex-start!important;min-height:96px!important;padding:10px!important;gap:6px!important;}
 html[data-theme] .work-schedules-pro .ws-ref-stat-icon{width:33px!important;height:33px!important;flex-basis:33px!important;}
 html[data-theme] .work-schedules-pro .ws-ref-stat-icon svg{width:19px!important;height:19px!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stat b{font-size:19px!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-week-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-day-card{min-height:127px!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-time{font-size:12px!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-selected-header{flex-wrap:wrap!important;gap:10px!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-actions{width:100%!important;justify-content:flex-start!important;}
}
@media(max-width:360px){
 html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stat{padding:8px!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stat span:not(.ws-ref-stat-icon){font-size:9px!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-week-grid{grid-template-columns:1fr!important;}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme] .work-schedules-pro :is(.ws-tab,.ws-employee-card,.ws-day-card){transition:none!important;transform:none!important;}
}

/* V14.40 runtime-safe CSS-only adaptation: reference visuals on the CURRENT production DOM.
   No changes to the deployed JS / global CSS bundles. */
html[data-theme] .work-schedules-pro .ws-hero-grid > div:first-child{
  grid-column:1!important;grid-row:1!important;min-width:0!important;position:relative;z-index:2;
}
html[data-theme] .work-schedules-pro .ws-hero-grid::before{
  content:""!important;display:block!important;
  grid-column:2!important;grid-row:1!important;
  width:100%!important;height:165px!important;align-self:center!important;
  background-image:url("/thrs-work-schedules-hero-v14-40.svg")!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:contain!important;
  pointer-events:none!important;
  position:relative!important;z-index:2!important;
  transform:translateY(-2px) rotate(-2deg)!important;
  filter:drop-shadow(0 8px 14px rgba(0,8,24,.18))!important;
}
html[data-theme] .work-schedules-pro .ws-hero-grid > .ws-kpi-grid{
  grid-column:3!important;grid-row:1!important;
}
/* Existing four filter field wrappers become the exact icon + control rows from the reference. */
html[data-theme] .work-schedules-pro .ws-filter-grid>div{
  display:grid!important;
  grid-template-columns:45px minmax(0,1fr)!important;
  grid-template-rows:17px 42px!important;
  align-items:center!important;min-width:0!important;
  column-gap:12px!important;row-gap:3px!important;
  padding:4px 15px!important;
  border-inline-end:1px solid var(--ws40-line)!important;
}
html[data-theme] .work-schedules-pro .ws-filter-grid>div:last-child{
  border-inline-end:0!important;
}
html[data-theme] .work-schedules-pro .ws-filter-grid>div::before{
  content:""!important;
  grid-column:1!important;grid-row:1/span 2!important;
  width:45px!important;height:45px!important;
  border-radius:14px!important;
  background-size:24px 24px,auto!important;
  background-position:center,center!important;
  background-repeat:no-repeat!important;
  box-shadow:0 4px 12px rgba(29,51,78,.10)!important;
  align-self:center!important;
}
html[data-theme] .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,#fff,#f7f9fe)!important;
}
html[data-theme] .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,#fff,#f7f9fe)!important;
}
html[data-theme] .work-schedules-pro .ws-filter-grid>div:nth-child(3)::before,
html[data-theme] .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,#fff,#f7f9fe)!important;
}
html[data-theme] .work-schedules-pro .ws-filter-grid>div>label{
  grid-column:2!important;grid-row:1!important;
  margin:0!important;
  font-size:11.5px!important;color:var(--ws40-ink)!important;
  font-weight:860!important;
}
html[data-theme] .work-schedules-pro .ws-filter-grid>div>.ws-field{
  grid-column:2!important;grid-row:2!important;
  width:100%!important;height:42px!important;min-height:42px!important;
  padding:8px 12px!important;
  border-radius:13px!important;border:1px solid var(--ws40-line)!important;
  background:linear-gradient(180deg,var(--ws40-paper),var(--ws40-frost))!important;
  box-shadow:inset 0 2px 5px rgba(17,42,74,.04),0 3px 9px rgba(14,43,75,.08)!important;
}
html[data-theme] .work-schedules-pro .ws-filter-grid>div>.ws-dept-control{
  grid-column:2!important;grid-row:1/span 2!important;min-width:0!important;
}
html[data-theme] .work-schedules-pro .ws-filter-grid>div .ws-dept-trigger{
  width:100%!important;min-height:42px!important;height:42px!important;
  border-radius:13px!important;
  box-shadow:inset 0 2px 5px rgba(17,42,74,.04),0 3px 9px rgba(14,43,75,.08)!important;
}
html[data-theme] .work-schedules-pro .ws-filter-grid>div .ws-dept-symbol{display:none!important;}
/* Same three original statistics, with decorative icons injected through CSS. */
html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stat{
  display:grid!important;
  grid-template-columns:47px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  gap:2px 13px!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stat::before{
  display:block!important;content:""!important;
  grid-column:1!important;grid-row:1/span 2!important;
  position:static!important;inset:auto!important;
  width:47px!important;height:47px!important;
  border-radius:14px!important;
  background-size:25px 25px,auto!important;
  background-repeat:no-repeat!important;
  background-position:center,center!important;
  box-shadow:0 4px 12px rgba(112,79,38,.13)!important;
  align-self:center!important;
}
html[data-theme] .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(150deg,#fffef9,#fff3df)!important;
}
html[data-theme] .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(150deg,#fffef9,#fff3df)!important;
}
html[data-theme] .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(150deg,#fffef9,#fff3df)!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stat>b{
  grid-column:2!important;grid-row:1!important;align-self:end!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stat>span{
  grid-column:2!important;grid-row:2!important;align-self:start!important;
}
html[data-theme] .work-schedules-pro .ws-workspace .ws-day-card:not(.off) .ws-time::before{
  content:""!important;display:inline-block!important;
  width:14px!important;height:14px!important;flex:0 0 14px!important;
  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%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%207v5l4%202%22%2F%3E%3C%2Fsvg%3E")!important;
  background-size:contain!important;background-position:center!important;
  background-repeat:no-repeat!important;
}
@media(max-width:1570px){
 html[data-theme] .work-schedules-pro .ws-hero-grid::before{
   height:145px!important;
 }
 html[data-theme] .work-schedules-pro .ws-filter-grid>div{grid-template-columns:37px minmax(0,1fr)!important;gap:3px 8px!important;padding-inline:9px!important;}
 html[data-theme] .work-schedules-pro .ws-filter-grid>div::before{width:37px!important;height:37px!important;}
}
@media(max-width:1280px){
 html[data-theme] .work-schedules-pro .ws-hero-grid::before{display:none!important;}
 html[data-theme] .work-schedules-pro .ws-hero-grid>div:first-child{grid-column:auto!important;grid-row:auto!important;}
 html[data-theme] .work-schedules-pro .ws-hero-grid>.ws-kpi-grid{grid-column:auto!important;grid-row:auto!important;}
}
@media(max-width:1020px){
 html[data-theme] .work-schedules-pro .ws-filter-grid>div:nth-child(2){
   border-inline-end:0!important;
 }
}
@media(max-width:650px){
 html[data-theme] .work-schedules-pro .ws-filter-grid>div{
   grid-template-columns:37px minmax(0,1fr)!important;
   padding:6px!important;border-inline-end:0!important;
 }
 html[data-theme] .work-schedules-pro .ws-filter-grid>div::before{width:37px!important;height:37px!important;}
 html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stat{
   display:flex!important;flex-direction:column!important;
   align-items:flex-start!important;gap:5px!important;
 }
 html[data-theme] .work-schedules-pro .ws-workspace .ws-mini-stat::before{
   flex:0 0 33px!important;width:33px!important;height:33px!important;
   background-size:19px 19px,auto!important;
 }
}
/* Preserve chronological 09:00 → 17:00 reading order inside RTL weekday cards. */
html[data-theme] .work-schedules-pro .ws-workspace .ws-day-card:not(.off) .ws-time{
  direction:ltr!important;
  unicode-bidi:isolate!important;
}

/* V14.44: Hide the deprecated operating-system eyebrow from the work schedules hero. */
html[data-theme] .work-schedules-pro .ws-hero .ws-eyebrow { display:none!important; }
