/* Management workspaces: scoped visual refresh. */
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) {
  --mgmt-ink:#15314b; --mgmt-muted:#61758b; --mgmt-line:#dce6f0;
  --mgmt-blue:#2563bd; --mgmt-soft:#edf4ff;
  color:var(--mgmt-ink); font-family:Inter,"IBM Plex Sans",system-ui,sans-serif;
}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) [hidden] { display:none!important; }
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .attendance-module-header {
  min-height:104px; padding:20px 24px; border:1px solid #31577c; border-radius:14px;
  background:radial-gradient(ellipse at 95% 0%,#336d9c66,transparent 56%),linear-gradient(115deg,#10283f,#17486b)!important;
  box-shadow:0 8px 24px #13314e13; margin-bottom:18px;
}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .attendance-module-icon {
  width:48px;height:48px;flex-basis:48px;border-radius:13px;border:1px solid #ffffff30;
  background:#ffffff13;box-shadow:none;font-size:21px;
}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .attendance-module-header h2 {font-size:21px;font-weight:750;letter-spacing:-.5px}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .attendance-module-heading p {font-size:11px;line-height:1.5;color:#d1e0ee}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .mgmt-eyebrow {display:block;font-size:8px;letter-spacing:1.5px;font-weight:800;color:#a8cae6;margin-bottom:6px}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .module-tabs {
  display:flex;flex-wrap:wrap;gap:4px;padding:5px;background:var(--surface);border:1px solid var(--mgmt-line);
  border-radius:11px;box-shadow:0 2px 5px #213c5510;max-width:100%;margin-bottom:16px;
}
#page-team-scheduling .team-planning-toolbar .module-tabs {margin-bottom:0}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .module-tab {
  padding:10px 13px;min-height:37px;font-size:11px;font-weight:700;border-radius:7px;color:#536b83;
  display:inline-flex;align-items:center;gap:7px;white-space:normal;text-align:left;
}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .module-tab.active {color:#1957a7;background:#eaf2ff;box-shadow:none}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .module-tab:hover {background:#f1f6fd;color:#1957a7}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) :is(.stat-grid,.workforce-dashboard-grid) {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
#page-kudus .stat-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .stat-card {
  position:relative;min-height:108px;padding:17px 62px 15px 18px!important;background:var(--surface);
  border:1px solid var(--mgmt-line);border-top:1px solid var(--mgmt-line);border-radius:12px;
  box-shadow:0 3px 10px #20395106;display:flex;flex-direction:column;justify-content:center;
}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .stat-card::before {display:none}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .stat-label {display:flex;gap:6px;align-items:center;font-size:9px;line-height:1.35;letter-spacing:.5px;color:var(--mgmt-muted);font-weight:750}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .stat-label i {font-size:10px;color:#6083a7}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .stat-value {margin:8px 0 3px;font-size:27px;line-height:1.1;font-weight:750;color:var(--mgmt-ink);letter-spacing:-.8px;font-variant-numeric:tabular-nums}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .stat-sub {color:var(--mgmt-muted);font-size:10px;line-height:1.4}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .mgmt-stat-icon {position:absolute;right:16px;top:20px;display:grid;place-items:center;width:35px;height:35px;border-radius:10px;color:#2867bc;background:#eaf2ff;font-size:15px}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .stat-card:nth-child(4n+2) .mgmt-stat-icon {color:#087d68;background:#e6f7f1}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .stat-card:nth-child(4n+3) .mgmt-stat-icon {color:#a06a12;background:#fff4df}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .stat-card:nth-child(4n+4) .mgmt-stat-icon {color:#7551b8;background:#f0eafd}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .stat-card:has(.mgmt-stat-icon) > .ui-stat-icon {display:none}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) :is(.table-wrap,.work-schedule-calendar-wrap) {border:1px solid var(--mgmt-line);border-radius:13px;box-shadow:0 4px 14px #1b334b07;background:var(--surface);min-width:0}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .table-bar {padding:17px 18px;gap:16px;flex-wrap:wrap;background:transparent;border-bottom:1px solid var(--mgmt-line);align-items:center}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .table-bar h3 {font-size:13px;font-weight:750;color:var(--mgmt-ink);display:flex;align-items:center;gap:9px}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .page-sub {color:var(--mgmt-muted);font-size:11px;line-height:1.6}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .ui-panel-title-icon {height:30px;width:30px;border-radius:9px;background:#edf4fe;box-shadow:none}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) :is(.btn-secondary,.btn-ghost,.btn-submit) {
  min-height:34px;border-radius:8px;padding:8px 11px;font-size:10px;font-weight:700;box-shadow:none;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;letter-spacing:0;text-transform:none;
}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) :is(.btn-secondary,.btn-ghost) {background:var(--surface);color:#315a81;border:1px solid #ccdae9}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .btn-submit {background:#266ac3;color:#fff;border:1px solid #266ac3}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) :is(.btn-secondary,.btn-ghost):hover {background:#edf4fc;border-color:#8eafd4}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) button:focus-visible {outline:3px solid #85afea;outline-offset:2px}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .attendance-module-header .btn-refresh {color:#153e65;background:#fff;border-color:#fff}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) table {font-size:11px;border-collapse:collapse;width:100%}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) th {background:#f5f8fc;color:#5b7189;padding:12px 14px;font-size:9px;font-weight:750;letter-spacing:.35px;border-bottom:1px solid var(--mgmt-line);line-height:1.5}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) th i {margin-right:5px;color:#6c8eaf}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) td {padding:14px;border-bottom:1px solid #e9eff6;line-height:1.5;font-size:11px}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) tbody tr:last-child td {border-bottom:0}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) tbody tr:hover td {background:#fafcff}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .badge {font-size:9px;font-weight:700;letter-spacing:.15px;padding:5px 8px}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .coaching-toolbar {display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;max-width:100%}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .mgmt-field {display:flex;flex-direction:column;gap:6px;margin:0;min-width:145px;max-width:100%;flex:1 1 145px;text-transform:none}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .mgmt-field .form-control {width:100%;min-width:0;max-width:100%;height:36px;font-size:11px;background:var(--surface);border:1px solid #cddbea;border-radius:7px;font-weight:500}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .mgmt-label {display:flex;align-items:center;gap:6px;font-size:9px;font-weight:750;letter-spacing:.5px;text-transform:uppercase;color:var(--mgmt-muted);line-height:1.5}
#page-team-coaching .table-bar > div:first-child {flex:1 1 400px}
#page-team-coaching .table-bar .coaching-toolbar {flex:1 1 530px}
#page-team-coaching #coaching-view-dashboard .table-bar .coaching-toolbar {flex-basis:100%;padding-top:14px;border-top:1px solid var(--mgmt-line)}
#page-team-coaching #coaching-view-dashboard .coaching-toolbar {flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;align-items:flex-end;padding-bottom:2px;overscroll-behavior-x:contain;scrollbar-width:thin}
#page-team-coaching #coaching-view-dashboard .coaching-toolbar .mgmt-field {flex:1 1 0;min-width:150px}
#page-team-coaching #coaching-view-dashboard .coaching-toolbar > button {flex:0 0 auto;width:auto;white-space:nowrap}
#page-team-coaching #coaching-view-dashboard .coaching-download-all {order:99}
#page-team-coaching #coaching-view-dashboard .coaching-toolbar > .btn-refresh {display:none}
#page-team-coaching .table-wrap td:last-child button + button {margin-left:5px}
#page-team-coaching .mgmt-coverage {display:flex;align-items:center;gap:9px}
#page-team-coaching .mgmt-coverage .mgmt-team-bar {width:66px;margin:0}
#page-team-scheduling .workforce-dashboard-panel {grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);align-items:start;gap:16px}
#page-team-scheduling .workforce-dashboard-list {padding:7px 18px 12px;gap:0}
#page-team-scheduling .mgmt-team-row {padding:16px 0;border:0;border-radius:0;border-bottom:1px solid #e9eff6;background:transparent;gap:13px}
#page-team-scheduling .mgmt-team-row:last-child {border-bottom:0}
#page-team-scheduling .mgmt-team-avatar {width:37px;height:37px;flex:0 0 37px;border-radius:10px;display:grid;place-items:center;background:#ecf3fd;color:#3f6f9e;font-size:14px}
#page-team-scheduling .mgmt-team-main {min-width:0;flex:1}
#page-team-scheduling .mgmt-team-main > strong {display:block;font-size:12px;font-weight:700}
#page-team-scheduling .mgmt-team-meta {display:block;font-size:10px;color:var(--mgmt-muted);margin-top:5px}
:is(#page-team-scheduling,#page-team-coaching) .mgmt-team-bar {display:block;width:140px;max-width:100%;height:4px;border-radius:99px;background:#eaf0f6;overflow:hidden;margin-top:8px}
:is(#page-team-scheduling,#page-team-coaching) .mgmt-team-bar > span {display:block;height:100%;background:#28a18c;border-radius:99px}
#page-team-scheduling .mgmt-team-count {min-width:51px;text-align:center;background:#f3f7fc;border-radius:9px;padding:8px}
#page-team-scheduling .mgmt-team-count > strong {display:block;font-size:18px}
#page-team-scheduling .mgmt-team-count > small {font-size:9px;color:var(--mgmt-muted)}
#page-team-scheduling .mgmt-scope-item {padding:16px 0;border-bottom:1px solid #e9eff6}
#page-team-scheduling .mgmt-scope-item:last-child {border-bottom:0}
#page-team-scheduling .mgmt-scope-item > strong {display:block;font-size:13px;margin-top:8px}
#page-team-scheduling .mgmt-scope-item > p {font-size:11px;line-height:1.65;color:var(--mgmt-ink);margin:8px 0 0}
#page-team-scheduling .om-team-assignment-panel {margin-top:0}
#page-team-scheduling .om-team-name {display:block;margin-bottom:5px;font-size:12px}
#page-team-scheduling .om-team-status {font-size:8px;padding:3px 6px;font-weight:700}
#page-team-scheduling .om-team-count {font-size:11px;font-weight:750;white-space:nowrap;background:#f0f5fc;padding:6px 10px}
#page-team-scheduling .om-team-lead {gap:7px;font-size:11px}
#page-team-scheduling .om-team-actions {flex-wrap:wrap;gap:5px}
#page-team-scheduling .work-schedule-calendar-title {padding:18px;gap:14px}
#page-team-scheduling #department-availability-title {font-size:16px;letter-spacing:-.3px;color:var(--mgmt-ink)}
#page-team-scheduling #department-availability-sub {font-size:11px;color:var(--mgmt-muted);line-height:1.6;max-width:1000px}
#page-team-scheduling .work-schedule-calendar-title .team-planning-actions {display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px;padding:0;background:none;border:0;overflow:visible}
#page-team-scheduling :is(.availability-navigation,.availability-schedule-actions,.availability-coverage-actions) {display:flex;flex:1 1 auto;flex-wrap:wrap;gap:5px;padding:10px;background:#f7f9fc;border:1px solid #e2eaf3;border-radius:9px;max-width:100%}
#page-team-scheduling .availability-group-label {flex:1 0 100%;padding:0 0 4px;font-size:8px;line-height:1.3;gap:5px}
#page-team-scheduling .team-planning-actions .icon-btn {border:1px solid #d0deed;border-radius:6px;background:#fff;color:#355b80;min-width:30px}
#page-team-scheduling #department-availability-month {flex:1 1 120px;min-width:110px;width:138px}
#page-team-scheduling .availability-calendar-scroll {max-width:100%;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain}
#page-team-scheduling :is(.department-availability-calendar,.availability-calendar-scroll .work-schedule-weekdays) {min-width:1050px}
#page-team-scheduling .work-schedule-weekdays {background:#f3f7fb;color:#5f7790;border-top:1px solid var(--mgmt-line);font-size:9px}
#page-team-scheduling .department-availability-calendar .work-schedule-day {padding:10px;min-height:187px;background:var(--surface)}
#page-team-scheduling .department-availability-calendar .work-schedule-day.is-adjacent-month {background:#f7f9fc}
#page-team-scheduling .work-schedule-date {font-size:11px;border-radius:8px;width:auto;min-width:25px;height:25px;padding:0 5px}
#page-team-scheduling .work-schedule-day.is-today {box-shadow:inset 0 3px #3c7dc9;background:#fafcff}
#page-team-scheduling .work-schedule-day.is-today .work-schedule-date {background:#2168bb;color:#fff}
#page-team-scheduling .availability-day {padding:0;border:0;background:transparent;margin-top:6px;color:#47617b;line-height:1.4}
#page-team-scheduling .availability-day-header {display:flex;align-items:center;gap:6px;justify-content:space-between;width:100%;padding:6px 7px;border:1px solid #dbe7f3;border-radius:6px;background:#f0f6fd;font-size:9px;color:#3d5c7b;cursor:pointer;font-family:inherit}
#page-team-scheduling .availability-day-header > strong {font-size:17px;line-height:1.1;color:#1c4f81}
#page-team-scheduling .availability-day-metrics {display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:7px}
#page-team-scheduling .availability-day-stat {display:flex;align-items:center;justify-content:space-between;gap:3px;background:transparent;border:0;padding:3px 0;cursor:pointer;color:#4c6580;font-size:9px;font-family:inherit;text-align:left;white-space:nowrap}
#page-team-scheduling .availability-day-stat > span {display:inline-flex;align-items:center;gap:3px}
#page-team-scheduling .availability-day-stat > strong {font-size:10px}
#page-team-scheduling .availability-day-stat.is-gap {color:#ac571e}
#page-team-scheduling .availability-day.is-risk .availability-day-header {background:#fff4e9;border-color:#f3d1ae;color:#9b5921}
#page-team-scheduling .availability-day.is-risk .availability-day-header > strong {color:#a55721}
#page-team-scheduling .availability-day-footer {margin-top:7px;border-top:1px solid #e2eaf2;padding-top:5px}
#page-team-scheduling .availability-label {font-size:9px;line-height:1.5}
#page-team-scheduling .availability-label i {margin-right:4px}
#page-team-scheduling .availability-state {color:#63758a;display:block}
#page-team-scheduling .availability-state.is-absent {color:#b36a1d}
#page-team-scheduling .availability-state.is-live {color:#128268}
#page-team-scheduling .availability-scroll-hint {display:none}
#page-team-scheduling #department-availability-calendar .btn-secondary {margin-top:6px;min-height:24px;padding:4px 6px;font-size:9px;width:100%;white-space:normal;color:#3a6090;background:#eef4fc;border:0}
#page-kudus :is(#department-notices-list,#kudus-list) {padding:6px 18px}
#page-kudus .mgmt-notice-card {display:flex;align-items:center;gap:16px;width:100%;padding:20px 0;border:0;border-bottom:1px solid #e4edf5;text-align:left;background:transparent;color:var(--mgmt-ink);font:inherit;cursor:pointer}
#page-kudus .mgmt-notice-card:last-child {border-bottom:0}
#page-kudus .mgmt-notice-card:hover {background:#f8fbff}
#page-kudus .mgmt-notice-icon {display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;align-self:flex-start;background:#edf3ff;color:#346db4;border-radius:12px;font-size:17px}
#page-kudus .mgmt-kudos-card .mgmt-notice-icon {color:#a57a1f;background:#fff4d7}
#page-kudus .mgmt-notice-body {display:grid;gap:8px;min-width:0;flex:1}
#page-kudus .mgmt-notice-body > strong {font-size:13px;font-weight:700;line-height:1.5}
#page-kudus .mgmt-notice-meta {display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--mgmt-muted);font-size:10px}
#page-kudus .mgmt-notice-meta i {margin-right:4px}
#page-kudus .mgmt-notice-preview {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--mgmt-muted);font-size:11px;line-height:1.65}
#page-kudus .mgmt-notice-actions {display:flex;align-items:center;gap:7px;color:#3269a9;flex:0 0 auto;font-size:10px;font-weight:700}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .mgmt-empty {display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:36px 20px;min-height:215px;background:transparent;color:var(--mgmt-muted);font-size:11px;line-height:1.6;text-align:center}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .mgmt-empty > i {display:grid;place-items:center;width:53px;height:53px;border-radius:16px;background:#eef4fc;color:#4976a2;font-size:23px}
#page-kudus .mgmt-empty > i {background:#fff5df;color:#b88627}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .mgmt-empty > strong {font-size:14px;color:var(--mgmt-ink);font-weight:700}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .mgmt-empty > span {max-width:430px}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .management-table-scroll {overflow:auto;max-width:100%;scrollbar-width:thin}
@media(max-width:1150px) {
 #page-team-scheduling .availability-scroll-hint {display:block;padding:7px 18px;background:#f8fafd;border-top:1px solid var(--mgmt-line);color:var(--mgmt-muted);font-size:9px}
 #page-team-scheduling .workforce-dashboard-panel {grid-template-columns:1fr}
}
@media(max-width:780px) {
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) :is(.stat-grid,.workforce-dashboard-grid) {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .attendance-module-header {padding:17px;gap:12px;min-height:110px}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .attendance-module-header h2 {font-size:18px}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .module-tabs {width:100%;gap:3px}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .module-tab {font-size:10px;padding:9px}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .table-bar {padding:15px;gap:12px}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .management-table-scroll table {min-width:800px}
 #page-team-scheduling .work-schedule-calendar-title {padding:15px}
 #page-team-scheduling .work-schedule-calendar-title .team-planning-actions {flex-direction:column}
 #page-team-scheduling :is(.availability-navigation,.availability-schedule-actions,.availability-coverage-actions) {flex-basis:auto;width:100%}
 #page-kudus .mgmt-notice-card {flex-wrap:wrap;gap:12px}
 #page-kudus .mgmt-notice-actions {margin-left:54px}
 #page-kudus .mgmt-notice-body {flex-basis:calc(100% - 60px)}
}
@media(max-width:480px) {
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .stat-card {min-height:115px;padding:13px 10px!important}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .mgmt-stat-icon {display:none}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .stat-label {font-size:8px}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .stat-value {font-size:25px}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .stat-sub {font-size:9px}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .coaching-toolbar {width:100%}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .mgmt-field {min-width:125px;flex-basis:125px}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .attendance-module-icon {height:38px;width:38px;flex-basis:38px;font-size:17px}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .mgmt-eyebrow {font-size:7px;letter-spacing:.8px}
 #page-kudus .coaching-toolbar {flex-wrap:wrap;justify-content:flex-start}
 #page-team-scheduling .team-planning-actions {flex-wrap:wrap;white-space:normal}
}
:root[data-theme="dark"] :is(#page-team-scheduling,#page-team-coaching,#page-kudus) {--mgmt-ink:#edf5ff;--mgmt-muted:#b0c3d8;--mgmt-line:#334f6b;--mgmt-soft:#193657}
:root[data-theme="dark"] :is(#page-team-scheduling,#page-team-coaching,#page-kudus) :is(.module-tabs,.table-bar,.mgmt-notice-card,.mgmt-team-row,.mgmt-empty) {background:var(--surface)!important;color:var(--mgmt-ink)!important;border-color:var(--mgmt-line)!important}
:root[data-theme="dark"] :is(#page-team-scheduling,#page-team-coaching,#page-kudus) :is(.mgmt-stat-icon,.mgmt-team-avatar,.mgmt-team-count,.mgmt-notice-icon,.mgmt-empty > i,.availability-day-header) {background:#1e4060!important;color:#c0ddfa!important;border-color:#395f83!important}
:root[data-theme="dark"] :is(#page-team-scheduling,#page-team-coaching,#page-kudus) :is(.mgmt-team-row,.mgmt-scope-item,.mgmt-notice-card,.availability-day-footer) {border-color:var(--mgmt-line)}
:root[data-theme="dark"] #page-team-scheduling :is(.availability-day,.availability-day-stat,.availability-label) {background:transparent!important;color:#bfd1e5!important}
:root[data-theme="dark"] #page-team-scheduling :is(.availability-navigation,.availability-schedule-actions,.availability-coverage-actions,.availability-scroll-hint) {background:#152b44!important;border-color:var(--mgmt-line);color:var(--mgmt-muted)}
:root[data-theme="dark"] #page-team-scheduling .availability-day.is-risk .availability-day-header {background:#533d27!important;color:#ffdcaa!important}
:root[data-theme="dark"] #page-team-scheduling .availability-day-header > strong {color:inherit}
:root[data-theme="dark"] #page-team-scheduling .availability-state.is-live {color:#75dac1!important}
:root[data-theme="dark"] #page-team-scheduling .availability-state.is-absent {color:#f2c485!important}


/* Keep existing toolbar flex rules from stretching vertically stacked labels. */
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .mgmt-field .form-control {flex:0 0 auto!important;min-height:36px;height:36px}
#page-team-scheduling .mgmt-team-count {padding:7px 8px}
#page-team-scheduling .mgmt-team-count > strong {line-height:1.15}
#page-team-scheduling .mgmt-team-count > small {display:block;margin-top:3px}
#page-team-scheduling .mgmt-team-row {padding:13px 0}
:is(#page-team-scheduling,#page-team-coaching,#page-kudus) .ui-panel-title-icon {display:inline-grid;place-items:center;flex:0 0 30px;color:#3e6ba0}
@media(max-width:780px) {
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .attendance-module-header {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-height:0}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .attendance-module-heading {padding-right:36px;align-items:flex-start;gap:10px}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .attendance-module-notifications {position:absolute;right:14px;top:16px;width:30px;height:30px}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .attendance-module-header-actions {width:auto;max-width:100%;margin-left:0;justify-content:flex-start}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .attendance-module-header-actions:empty {display:none}
 :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .attendance-module-heading p {font-size:10px}
}

/* Maintain readable secondary actions when the shared dark theme is active. */
:root[data-theme="dark"] :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .btn-refresh {background:#18344f!important;color:#eaf3ff!important;border-color:#466682!important}
:root[data-theme="dark"] :is(#page-team-scheduling,#page-team-coaching,#page-kudus) .btn-refresh :is(i,span) {color:inherit!important}
#page-team-scheduling #department-availability-calendar .split-plan-badge {display:block;width:100%;margin-top:7px;padding:5px 6px;min-height:26px;border:1px solid #dce8f5;border-radius:6px;background:#edf4fd;color:#315e91;font-size:9px;font-weight:600;white-space:normal;line-height:1.4;box-shadow:none}
:root[data-theme="dark"] #page-team-scheduling #department-availability-calendar .split-plan-badge {background:#18344f!important;color:#d2e8ff!important;border-color:#466682!important}

/* Compact availability: direct calendar with one continuous action row. */
#page-team-scheduling #team-planning-view-availability .work-schedule-calendar-title {padding:12px;gap:8px}
#page-team-scheduling #team-planning-view-availability .team-planning-actions {display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:0;padding:5px;width:100%;min-width:0;overflow-x:auto;border:1px solid var(--mgmt-line);border-radius:8px;background:var(--surface);white-space:nowrap}
#page-team-scheduling #team-planning-view-availability :is(.availability-navigation,.availability-schedule-actions,.availability-coverage-actions) {flex:0 0 auto;flex-wrap:nowrap;align-items:center;width:auto;max-width:none;gap:4px;padding:0 7px;border:0;border-right:1px solid var(--mgmt-line);border-radius:0;background:transparent}
#page-team-scheduling #team-planning-view-availability .availability-coverage-actions {border-right:0}
#page-team-scheduling #team-planning-view-availability .availability-group-label {flex:0 0 auto;padding:0 3px;font-size:9px;line-height:1;white-space:nowrap}
#page-team-scheduling #team-planning-view-availability #department-availability-month {flex:0 0 130px;width:130px;min-width:130px}
#page-team-scheduling #team-planning-view-availability #department-availability-sub {margin:3px 0 0;line-height:1.4}

/* Keep coaching date inputs and both navigation arrows within their own field. */
#page-team-coaching #coaching-view-dashboard .coaching-toolbar .coaching-date-field {flex:0 0 250px;width:250px;min-width:250px}
#page-team-coaching .coaching-date-field .date-navigation {display:flex;width:100%;box-sizing:border-box}
#page-team-coaching #coaching-view-dashboard .coaching-date-field .date-navigation>input {width:0;min-width:0!important;flex:1 1 0!important}
#page-team-coaching #coaching-view-dashboard .coaching-toolbar .coaching-agent-search {flex:1 1 230px;min-width:210px}
#page-team-coaching .coaching-agent-search input {width:100%;box-sizing:border-box}
@media(max-width:540px){#page-team-coaching #coaching-view-dashboard .coaching-toolbar .coaching-date-field {flex:1 1 250px;width:100%;min-width:0}}

#page-team-coaching .coaching-table-section:has(#tb-coaching-dashboard) th:first-child,
#page-team-coaching #tb-coaching-dashboard .coaching-log-date {width:150px;min-width:150px;white-space:normal}
#page-team-coaching #tb-coaching-dashboard .coaching-log-description {max-width:380px}
#page-team-coaching .coaching-log-preview {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}

/* Taller coaching detail view with more room for the conversation. */
#modal-coaching-case .coaching-case-modal {height:calc(100dvh - 32px);max-height:calc(100dvh - 32px)}
#modal-coaching-case .coaching-thread {max-height:max(330px,calc(100dvh - 350px))}
@media(max-width:600px){#modal-coaching-case .coaching-case-modal {height:calc(100dvh - 20px)}#modal-coaching-case .coaching-thread {max-height:55dvh}}

/* Keep the listed-log download compact at the right of its heading. */
#page-team-coaching .coaching-logs-heading {display:flex!important;align-items:center;justify-content:space-between;gap:12px;width:100%}
#page-team-coaching .coaching-logs-heading>button {width:auto!important;flex:0 0 auto!important;margin-left:auto;white-space:nowrap}

#page-team-scheduling .mgmt-team-members-button {width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;transition:background .15s}
#page-team-scheduling .mgmt-team-members-button:hover {background:var(--surface2,#f3f7fc)}
#page-team-scheduling .mgmt-team-members-button:focus-visible {outline:2px solid #397cf3;outline-offset:-2px}
#page-team-scheduling .mgmt-team-members-button > .fa-chevron-right {font-size:11px;color:var(--mgmt-muted)}
