.admin-today-schedule { margin:0 0 20px; padding:20px; background:var(--app-card-bg,#fff); color:var(--app-text,#203335); border:1px solid #dce7e3; border-radius:16px; box-shadow:0 4px 18px #153d2e08; }
.admin-today-schedule__header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.admin-today-schedule__eyebrow { color:#39735e; font-size:12px; font-weight:650; }
.admin-today-schedule h2 { margin:5px 0; font-size:22px; line-height:1.25; font-weight:700; }
.admin-today-schedule__header p { margin:0; color:#647575; font-size:13px; }
.admin-today-schedule__actions { display:flex; gap:8px; flex-shrink:0; }
.admin-today-schedule__actions button { min-height:42px; padding:9px 14px; border:1px solid #d4e2dc; border-radius:9px; background:transparent; color:inherit; font:inherit; font-size:13px; cursor:pointer; }
.admin-today-schedule__actions .admin-today-schedule__open { background:#18795a; border-color:#18795a; color:white; font-weight:600; }
.admin-today-schedule button:focus-visible,.admin-today-schedule__list:focus-visible { outline:3px solid #208765; outline-offset:3px; }
.admin-today-schedule button:disabled { opacity:.55; cursor:default; }
.admin-today-schedule__metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.admin-today-schedule__metric { display:flex; flex-direction:column; gap:5px; padding:13px 15px; text-align:left; border:1px solid #e0e8e5; border-radius:11px; background:#f8faf9; color:inherit; cursor:pointer; }
.admin-today-schedule__metric strong { font-size:25px; line-height:1; font-variant-numeric:tabular-nums; }
.admin-today-schedule__metric span { font-size:12px; color:#617570; }
.admin-today-schedule__metric.is-selected { border-color:#27846a; box-shadow:inset 0 0 0 1px #27846a; background:#eef8f3; }
.admin-today-schedule__metric.phase-pending strong { color:#ac4a13; }
.admin-today-schedule__metric.phase-running strong { color:#186c99; }
.admin-today-schedule__metric.phase-completed strong { color:#18795a; }
.admin-today-schedule__list { max-height:440px; overflow:auto; border:1px solid #e3ebe7; border-radius:10px; }
.admin-today-schedule__columns,.admin-today-schedule__row { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1.2fr) minmax(180px,1fr) minmax(105px,.65fr); gap:16px; align-items:center; padding:13px 15px; }
.admin-today-schedule__columns { position:sticky; top:0; background:#f5f8f6; font-size:11px; color:#60716a; font-weight:650; border-bottom:1px solid #e3ebe7; z-index:1; }
.admin-today-schedule__list ul { margin:0; padding:0; list-style:none; }
.admin-today-schedule__row + li { border-top:1px solid #edf1ee; }
.admin-today-schedule__row > div { display:flex; flex-direction:column; gap:4px; min-width:0; font-size:12px; overflow-wrap:anywhere; }
.admin-today-schedule__row strong { font-size:13px; font-weight:600; }
.admin-today-schedule__row small { display:none; }
.admin-today-schedule__row > div:first-child > span { color:#6a7c73; font-size:11px; }
.admin-today-schedule__status { padding:5px 9px; border-radius:7px; background:#f0f3f5; color:#53636f; width:fit-content; font-size:11px; font-weight:600; }
.admin-today-schedule__status.phase-running { background:#eaf4fc; color:#206792; }
.admin-today-schedule__status.phase-completed { background:#e9f6ed; color:#277046; }
.admin-today-schedule__status.phase-pending { background:#fff0e4; color:#9e4e1d; }
.admin-today-schedule__notice { margin:0; padding:22px 12px; color:#64756f; font-size:13px; text-align:center; }
.admin-today-schedule footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 18px; margin-top:12px; color:#6a7b74; font-size:11px; line-height:1.5; }
@media(max-width:900px) { .admin-today-schedule__header { align-items:flex-start; flex-wrap:wrap; } .admin-today-schedule__columns { display:none; } .admin-today-schedule__row { grid-template-columns:1fr 1fr; gap:12px; } .admin-today-schedule__row small { display:block; font-size:10px; color:#6a7b74; } }
@media(max-width:520px) { .admin-today-schedule { padding:15px; border-radius:12px; } .admin-today-schedule h2 { font-size:20px; } .admin-today-schedule__header { gap:12px; } .admin-today-schedule__actions { width:100%; } .admin-today-schedule__actions button { flex:1; padding-inline:9px; font-size:12px; } .admin-today-schedule__metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; } .admin-today-schedule__metric { padding:11px; } .admin-today-schedule__metric:first-child { grid-column:1/-1; flex-direction:row; align-items:center; gap:10px; } .admin-today-schedule__metric strong { font-size:22px; } .admin-today-schedule__row { padding:13px 11px; gap:12px 10px; } }

.admin-today-schedule__period{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:16px 0}
.admin-today-schedule__period [role=group]{display:flex;gap:6px;flex-wrap:wrap}
.admin-today-schedule__period button,.admin-today-schedule__period input{min-height:42px;padding:8px 12px;border:1px solid #b4cfc7;border-radius:8px;background:#fff;color:#23483e;font:inherit}
.admin-today-schedule__period button{cursor:pointer}
.admin-today-schedule__period button[aria-pressed=true]{background:#188565;color:#fff;border-color:#188565}
.admin-today-schedule__period label{display:grid;gap:5px;font-size:.85rem;color:#405c55}
.admin-today-schedule__period input:focus-visible,.admin-today-schedule__period button:focus-visible{outline:3px solid #216fbe;outline-offset:2px}

/* Follow the administrative palette when the user selects the dark theme. */
html[data-theme="dark"] .app-shell .admin-today-schedule {
  background:var(--admin-surface,#172033);color:var(--admin-ink,#d9e2f1);
  border-color:var(--admin-border,#2a3547);box-shadow:none;color-scheme:dark;
}
html[data-theme="dark"] .app-shell .admin-today-schedule :is(
  .admin-today-schedule__header p,.admin-today-schedule__metric span,
  .admin-today-schedule__row > div:first-child > span,.admin-today-schedule__row small,
  .admin-today-schedule__notice,.admin-today-schedule__period label,footer
) { color:var(--admin-muted,#aabbd2); }
html[data-theme="dark"] .app-shell .admin-today-schedule__eyebrow { color:var(--admin-accent,#78d9b0); }
html[data-theme="dark"] .app-shell .admin-today-schedule__metric {
  background:var(--admin-elevated,#243149);border-color:var(--admin-border,#2a3547);
}
html[data-theme="dark"] .app-shell .admin-today-schedule__metric.is-selected {
  background:#1a3a34;border-color:#78d9b0;box-shadow:inset 0 0 0 1px #78d9b0;
}
html[data-theme="dark"] .app-shell .admin-today-schedule__metric.phase-pending strong { color:#ffbd8a; }
html[data-theme="dark"] .app-shell .admin-today-schedule__metric.phase-running strong { color:#9cd8ff; }
html[data-theme="dark"] .app-shell .admin-today-schedule__metric.phase-completed strong { color:#8be0b4; }
html[data-theme="dark"] .app-shell .admin-today-schedule :is(
  .admin-today-schedule__list,.admin-today-schedule__columns,.admin-today-schedule__row + li
) { border-color:var(--admin-border,#2a3547); }
html[data-theme="dark"] .app-shell .admin-today-schedule__columns {
  background:var(--admin-elevated,#243149);color:var(--admin-muted,#aabbd2);
}
html[data-theme="dark"] .app-shell .admin-today-schedule__actions button { border-color:#43536b; }
html[data-theme="dark"] .app-shell .admin-today-schedule__actions .admin-today-schedule__open { border-color:#18795a; }
html[data-theme="dark"] .app-shell .admin-today-schedule__period :is(button,input) {
  background:var(--admin-elevated,#243149);color:var(--admin-ink,#d9e2f1);border-color:#43536b;
}
html[data-theme="dark"] .app-shell .admin-today-schedule__period input { background:var(--admin-bg,#111827);color-scheme:dark; }
html[data-theme="dark"] .app-shell .admin-today-schedule__period button[aria-pressed="true"] {
  background:#188565;border-color:#188565;color:#fff;
}
html[data-theme="dark"] .app-shell .admin-today-schedule__status {
  background:var(--admin-elevated,#243149);color:var(--admin-ink,#d9e2f1);
}
html[data-theme="dark"] .app-shell .admin-today-schedule__status.phase-running { background:#18384d;color:#9cd8ff; }
html[data-theme="dark"] .app-shell .admin-today-schedule__status.phase-completed { background:#1a3a34;color:#8be0b4; }
html[data-theme="dark"] .app-shell .admin-today-schedule__status.phase-pending { background:#493020;color:#ffbd8a; }
html[data-theme="dark"] .app-shell .admin-today-schedule :is(button,input,.admin-today-schedule__list):focus-visible {
  outline-color:var(--admin-accent,#78d9b0);
}

/* Scheduling views, including the calendar embedded in a professional profile. */
html[data-theme="dark"] .app-shell .escalas-page .escalas-weekdays { color:var(--admin-muted,#aabbd2); }
html[data-theme="dark"] .app-shell .escalas-page .escalas-day-card {
  background:var(--admin-elevated,#243149);color:var(--admin-ink,#d9e2f1);
  border-color:var(--admin-border,#2a3547);box-shadow:none;
}
html[data-theme="dark"] .app-shell .escalas-page .escalas-day-card.muted { background:#151e30;opacity:1; }
html[data-theme="dark"] .app-shell .escalas-page .escalas-day-card:hover {
  border-color:var(--admin-accent,#78d9b0);box-shadow:0 0 0 1px #78d9b0;
}
html[data-theme="dark"] .app-shell .escalas-page .escalas-day-card.today {
  border-color:var(--admin-accent,#78d9b0);box-shadow:inset 0 0 0 1px #78d9b0;
}
html[data-theme="dark"] .app-shell .escalas-page .escalas-day-card > .MuiStack-root:first-child strong {
  background:var(--admin-surface,#172033);color:var(--admin-ink,#d9e2f1);
}
html[data-theme="dark"] .app-shell .escalas-page .escalas-day-card.today > .MuiStack-root:first-child strong {
  background:#1f8a63;color:#fff;
}
html[data-theme="dark"] .app-shell .escalas-page :is(.escalas-shift-pill,.escalas-list-row) {
  background:#29364a;color:var(--admin-ink,#d9e2f1);
}
html[data-theme="dark"] .app-shell .escalas-page .escalas-list-row {
  border-top-color:var(--admin-border,#2a3547);border-right-color:var(--admin-border,#2a3547);border-bottom-color:var(--admin-border,#2a3547);
}
html[data-theme="dark"] .app-shell .escalas-page .escalas-list-row:hover { background:#314159; }
html[data-theme="dark"] .app-shell .escalas-page .escalas-shift-pill:is(.status-active,.status-in_progress) { background:#1a3a34; }
html[data-theme="dark"] .app-shell .escalas-page .escalas-shift-pill.status-completed { background:#263348; }
html[data-theme="dark"] .app-shell .escalas-page .escalas-shift-pill:is(.status-cancelled,.status-canceled) { background:#482b39; }
html[data-theme="dark"] .app-shell .escalas-page :is(.escalas-shift-pill span,.escalas-shift-pill small,.escalas-list-meta,.escalas-list-row .MuiTypography-caption) { color:#bdcbdc; }
html[data-theme="dark"] .app-shell .escalas-page :is(.escalas-shift-pill strong,.escalas-list-row .MuiTypography-body2) { color:var(--admin-ink,#d9e2f1); }
html[data-theme="dark"] .app-shell .escalas-page :is(.scale-create-day-chip,.schedule-month-chip) {
  background:var(--admin-surface,#172033);color:var(--admin-ink,#d9e2f1);
}
html[data-theme="dark"] .app-shell .escalas-page .schedule-month-chip svg { color:var(--admin-accent,#78d9b0); }
html[data-theme="dark"] .app-shell .escalas-page .escalas-controls .MuiToggleButton-root {
  color:var(--admin-ink,#d9e2f1);background:var(--admin-surface,#172033);border-color:#43536b;
}
html[data-theme="dark"] .app-shell .escalas-page .escalas-controls .MuiToggleButton-root:hover { background:var(--admin-elevated,#243149); }
html[data-theme="dark"] .app-shell .escalas-page .escalas-controls .MuiToggleButton-root.Mui-selected {
  color:#8be0b4;background:#1a3a34;border-color:#78d9b0;
}
html[data-theme="dark"] .app-shell .escalas-page :is(.escalas-day-card,.escalas-shift-pill,.escalas-list-row,.MuiToggleButton-root):focus-visible {
  outline:3px solid var(--admin-accent,#78d9b0);outline-offset:2px;
}

.admin-today-schedule__professional .MuiButton-root {
  white-space:normal;text-align:left;justify-content:flex-start;max-width:100%;min-height:34px;
  margin-top:3px;padding:5px 9px;border:1px solid currentColor;border-radius:7px;
  color:var(--admin-accent,#18795a);font-size:11px;line-height:1.35;
}
.admin-today-schedule__professional .MuiButton-root:hover { background:color-mix(in srgb,currentColor 10%,transparent); }
