.schedule-shell { display: grid; gap: 14px; min-width: 0; }
.schedule-toolbar { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 8px; align-items: stretch; }
.schedule-toolbar-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.schedule-toolbar .atlas-v49-field { flex: 1 1 120px; min-width: 120px; max-width: 240px; }
.schedule-toolbar .atlas-v49-field:has([aria-label="Площадка"]) { min-width: 188px; }
.schedule-toolbar .atlas-v49-field:has([aria-label="Доска"]) { min-width: 196px; }
.schedule-toolbar .atlas-v49-field:has([aria-label="Направление"]) { min-width: 220px; max-width: 260px; }
.schedule-toolbar .atlas-v49-field:has([aria-label="Кабинеты"]) { min-width: 184px; }
.schedule-toolbar .atlas-v49-button { flex: 0 0 auto; white-space: nowrap; }
.schedule-toolbar input, .schedule-toolbar select { min-height: 44px; font-size: 16px; color: #1a2333; }
.schedule-toolbar select { padding: 0 40px 0 12px; color: #1a2333; background: #fff; }
.schedule-site-field { overflow: hidden; min-width: 0; }
.schedule-toolbar-filters > .schedule-site-field[hidden] { display: none; }
.schedule-toolbar-filters > .schedule-site-field > select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 34px;
  text-overflow: ellipsis;
  cursor: pointer;
}
.schedule-toolbar-filters > .schedule-site-field::after {
  content: "";
  position: absolute;
  inset-inline-end: 14px;
  top: calc(50% - 6px);
  width: 8px;
  height: 8px;
  border-right: 2px solid #40556e;
  border-bottom: 2px solid #40556e;
  transform: rotate(45deg);
  pointer-events: none;
}
.schedule-modes { display: flex; gap: 6px; flex-wrap: wrap; }
.schedule-modes button[aria-pressed="true"] { background: #e7f6fb; box-shadow: inset 0 0 0 1px #00b4db; }
.schedule-message { color: #a53434; margin: 0; }
.schedule-message:empty { display: none; }
.schedule-advisory { margin: 0; padding: 10px 12px; border: 1px solid #e5d1a1; border-radius: 10px; background: #fff8e9; color: #72521c; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.schedule-advisory:empty { display: none; }
.schedule-scroll { overflow: auto; max-width: 100%; border: 1px solid var(--color-card-border, #e2e8f0); border-radius: 12px; background: #fff; }
.schedule-day { display: flex; align-items: stretch; width: 100%; min-width: max-content; }
.schedule-times { flex: 0 0 46px; width: 46px; min-width: 46px; max-width: 46px; position: sticky; left: 0; z-index: 3; background: #f8fafc; border-right: 1px solid #e2e8f0; }
.schedule-times header, .schedule-column header { height: 48px; max-height: 48px; box-sizing: border-box; overflow: hidden; }
.schedule-day:has(.schedule-assign) > .schedule-times > header,
.schedule-day:has(.schedule-assign) > .schedule-column > header { height: 66px; max-height: 66px; }
.schedule-assign { display: block; margin-top: 2px; padding: 0; border: 0; background: transparent; color: #0083B0; font: 600 11px/14px Inter, system-ui, sans-serif; cursor: pointer; text-align: left; }
.schedule-times header { border-bottom: 1px solid #e2e8f0; }
.schedule-times div { height: 52px; max-height: 52px; box-sizing: border-box; padding: 2px 6px 0; font-size: 11px; color: #64748b; font-variant-numeric: tabular-nums; overflow: hidden; }
.schedule-column { flex: 1 1 200px; width: auto; min-width: 200px; max-width: 1200px; border-right: 1px solid #e8eef3; }
.schedule-column header { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 3px solid var(--accent, #e2e8f0); padding: 6px 8px; }
.schedule-column header strong, .schedule-column header small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-column header strong { font-size: 14px; line-height: 18px; }
.schedule-column header small { color: #526174; font-size: 11px; line-height: 14px; margin-top: 2px; }
.schedule-track { position: relative; height: calc(24 * 52px); background: repeating-linear-gradient(#fff, #fff 51px, #f4f7fa 51px, #f4f7fa 52px); }
.schedule-track-ten { background: repeating-linear-gradient(#fff 0 16px, #e6eef3 16px 17px, #fff 17px 33px, #e6eef3 33px 34px, #fff 34px 51px, #f4f7fa 51px 52px); }
.schedule-card { position: absolute; left: 3px; right: 3px; box-sizing: border-box; overflow: hidden; background: var(--color-card-bg, #fff); color: #0f172a; border: 1px solid #e2e8f0; border-left: 5px solid var(--accent, #94a3b8); border-radius: 8px; padding: 2px 4px 2px 6px; text-align: left; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.schedule-card-uzi { background: var(--section-tint, #fff); }
.schedule-card-uzi .schedule-card-time { color: var(--accent, #334155); font-weight: 650; }
.schedule-card-line, .schedule-card-direction, .schedule-card-time, .schedule-anesthesia { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 16px; color: #334155; }
.schedule-card-line { font-weight: 700; color: #0f172a; }
.schedule-card-time { font-variant-numeric: tabular-nums; color: #64748b; }
.schedule-duration-warn { display: block; font-size: 10px; line-height: 12px; color: #9a3412; font-weight: 700; }
.schedule-card-compact { flex-direction: row; align-items: center; gap: 4px; padding-top: 0; padding-bottom: 0; }
.schedule-card-compact .schedule-card-line { flex: 1 1 auto; font-weight: 650; }
.schedule-pill { align-self: flex-start; flex: 0 0 auto; max-width: 100%; margin-top: 1px; border-radius: 999px; padding: 0 6px; font-style: normal; font-size: 10px; font-weight: 700; line-height: 16px; color: #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-card-compact .schedule-pill { margin-top: 0; }
.schedule-card-ten { border-radius: 4px; padding: 0 4px 0 6px; }
.schedule-card-ten .schedule-card-line { font-size: 10px; line-height: 14px; }
.schedule-day-list { display: none; }
.schedule-doctor-list { display: none; }
.schedule-doctor-row { box-sizing: border-box; display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: 6px; height: 72px; max-height: 72px; min-width: 0; overflow: hidden; padding: 0 8px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.schedule-doctor-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.schedule-slot-row { box-sizing: border-box; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 6px; height: 48px; max-height: 48px; min-height: 0; min-width: 0; overflow: hidden; padding: 0 8px; border: 1px solid #e2e8f0; border-left: 5px solid transparent; border-radius: 8px; background: #f8fafc; }
.schedule-slot-row.is-busy { background: #fff; border-left-color: var(--accent, #94a3b8); }
.schedule-slot-time { font-size: 12px; font-variant-numeric: tabular-nums; color: #334155; white-space: nowrap; overflow: hidden; }
.schedule-slot-body { display: flex; align-items: center; gap: 4px; min-width: 0; height: 28px; max-height: 28px; overflow: hidden; }
.schedule-slot-free { color: #64748b; font-size: 13px; white-space: nowrap; }
.schedule-chip, .schedule-more { box-sizing: border-box; display: flex; align-items: center; height: 22px; max-height: 22px; min-width: 0; overflow: hidden; border: 1px solid #e2e8f0; border-left: 4px solid var(--accent, #94a3b8); border-radius: 5px; background: #fff; color: #0f172a; padding: 0 6px; font: 11px/20px Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; text-align: left; cursor: pointer; }
.schedule-chip-uzi { background: var(--section-tint, #fff); }
.schedule-chip-uzi .schedule-card-time { color: var(--accent, #334155); font-weight: 650; }
.schedule-chip { flex: 1 1 auto; }
.schedule-chip span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-more { flex: 0 0 auto; border-left-color: #64748b; color: #0b6f8a; font-weight: 700; background: #fff; }
.schedule-chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 0; overflow: hidden; }
.schedule-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 132px; gap: 6px; min-width: 0; }
.schedule-week-day { box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; height: 132px; max-height: 132px; min-height: 0; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 6px; }
.schedule-week-day h3 { flex: 0 0 18px; height: 18px; margin: 0; font-size: 12px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 24px repeat(var(--month-weeks, 6), minmax(0, 1fr)); gap: 4px; min-height: 0; }
.schedule-month > .booking-weekday { height: 24px; max-height: 24px; box-sizing: border-box; overflow: hidden; }
.schedule-month-day, .schedule-month > .booking-day-gap { box-sizing: border-box; height: auto; max-height: none; min-height: 0; min-width: 0; overflow: hidden; }
.schedule-month-day { display: flex; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border: 1px solid #e2e8f0; border-left: 5px solid var(--accent, #e2e8f0); border-radius: 8px; padding: 4px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.schedule-month-day strong { display: block; flex: 0 0 16px; height: 16px; font-size: 13px; line-height: 16px; }
.schedule-month-free { color: #64748b; font-size: 11px; line-height: 16px; white-space: nowrap; }
.schedule-overflow { display: grid; gap: 6px; max-height: 360px; overflow: auto; margin: 10px 0; }
.schedule-overflow-item { width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; background: #fff; border: 1px solid #d8e2ed; border-radius: 8px; color: #1e3a5f; padding: 8px 10px; cursor: pointer; }
.schedule-history { display: grid; gap: 8px; }
.schedule-history-item { display: grid; gap: 4px; padding: 8px 10px; background: #fff; border: 1px solid #d8e2ed; border-radius: 8px; color: #1e3a5f; text-align: left; }
.schedule-history-item p { margin: 0; white-space: normal; overflow: visible; text-overflow: unset; }
.schedule-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.schedule-swatch { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 8px; min-height: 44px; }
.schedule-swatch i { flex: 0 0 8px; align-self: stretch; border-radius: 3px; background: var(--accent); }
.schedule-swatch b, .schedule-swatch small { display: block; }
.schedule-swatch b { font-size: 12px; }
.schedule-swatch small { color: #64748b; font-size: 10px; }
.schedule-close-note { font-size: 12px; color: #526174; line-height: 1.45; }
.schedule-dialog { box-sizing: border-box; width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; border: 1px solid #dce8eb; border-radius: 16px; padding: 22px; color: #173440; }
.schedule-dialog[data-uzi="catalog"] { width: min(640px, calc(100% - 24px)); }
.schedule-dialog .atlas-v49-field[hidden] { display: none; }
.schedule-uzi-addons { display: grid; gap: 8px; margin: 8px 0 12px; text-align: left; }
.schedule-uzi-addons[hidden] { display: none; }
.schedule-uzi-addon { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 8px; align-items: start; justify-items: start; margin: 0; padding: 6px 8px; text-align: left; font: 400 13px/1.35 Inter, system-ui, sans-serif; background: var(--section-tint, #fff); border-left: 5px solid var(--section, transparent); }
.schedule-service-pick { display: grid; gap: 6px; max-height: 280px; margin: 0 0 8px; overflow: auto; }
.schedule-service-pick[hidden] { display: none; }
.schedule-section-head { margin: 4px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--section, #e2e8f0); color: var(--section-ink, #fff); font: 600 13px/1.3 Inter, system-ui, sans-serif; }
.schedule-service-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; margin: 0; padding: 8px 10px; border: 1px solid #e2e8f0; border-left: 5px solid var(--section, #e2e8f0); border-radius: 8px; background: var(--section-tint, #fff); color: #173440; text-align: left; font: 400 13px/1.35 Inter, system-ui, sans-serif; }
.schedule-service-name { min-width: 0; }
.schedule-service-time { color: var(--section, #173440); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule-service-row[aria-selected="true"] { outline: 2px solid #0083B0; outline-offset: 1px; }
.schedule-dialog select[aria-label="Раздел"] { border-left: 5px solid var(--section, #e2e8f0); background: #fff; color: #173440; font-family: Inter, system-ui, sans-serif; }
.schedule-dialog select[aria-label="Раздел"].is-section { background: var(--section, #e2e8f0); color: var(--section-ink, #fff); border-left-color: transparent; }
.uzi-color-sheet { display: grid; gap: 8px; }
.uzi-catalog-block { display: grid; margin: 0; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.uzi-section-head { display: grid; grid-template-columns: minmax(0, 1fr) 44px 96px; gap: 8px; align-items: center; min-height: 40px; padding: 6px 10px; font: 600 14px/1.3 Inter, system-ui, sans-serif; }
.uzi-section-head strong { min-width: 0; }
.uzi-section-head input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 28px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 4px;
  background-color: #94a3b8;
  box-sizing: border-box;
  cursor: pointer;
}
.uzi-section-head input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.uzi-section-head input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 2px; }
.uzi-section-head input[type="color"]::-moz-color-swatch { border: 0; }
.uzi-section-head input[type="text"] { width: 100%; background: #fff; color: #173440; font: 500 13px/1.2 Inter, system-ui, sans-serif; }
.uzi-service-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 10px; color: #173440; font: 400 13px/1.35 Inter, system-ui, sans-serif; }
.uzi-service-row span:first-child { min-width: 0; }
.uzi-service-time { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule-uzi-addon span { min-width: 0; overflow-wrap: anywhere; }
.schedule-dialog .schedule-uzi-addon input[type="checkbox"] { width: 16px; height: 16px; min-width: 16px; max-width: 16px; margin: 1px 0 0; padding: 0; border: 0; border-radius: 2px; background: transparent; accent-color: #0b6f8a; }
.schedule-duration-lock { margin: 0; padding: 10px; border: 1px solid #cedde3; border-radius: 8px; background: #f4f7f8; color: #173440; font-size: 14px; font-weight: 400; line-height: 1.3; }
.schedule-dialog::backdrop { background: #142c4266; }
.schedule-dialog .atlas-v49-field { margin: 10px 0; }
.schedule-dialog input, .schedule-dialog select, .schedule-dialog textarea { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; padding: 10px; border: 1px solid #cedde3; border-radius: 8px; background: #fff; color: inherit; font: inherit; }
.schedule-dialog input:not([type="checkbox"]), .schedule-dialog select { min-height: 44px; }
.schedule-dialog h2, .schedule-dialog p, .schedule-service-name { overflow-wrap: anywhere; }
.schedule-dialog button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.schedule-dialog .atlas-v49-field { min-width: 0; }
.schedule-help { font-size: 12px; color: #64748b; margin: 0; }
.schedule-desk-title { margin: 0 0 6px; font-size: 16px; }
.schedule-desk-list { display: grid; gap: 4px; margin-top: 8px; }
.schedule-desk-row, .schedule-desk-empty { margin: 0; font-size: 13px; line-height: 1.4; }
.schedule-desk-empty { color: #64748b; }
.schedule-section-tabs { margin: 0; }
.schedule-shell > .schedule-section-tabs.panel-tabs{display:flex;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%;overflow-x:auto}
.schedule-shell > .schedule-section-tabs .panel-tab{max-width:100%;overflow-wrap:anywhere;white-space:normal}
.schedule-shell > .schedule-section-tabs .panel-tab { min-height: 44px; padding: 8px 14px; font: 700 16px/1.2 Inter, system-ui, sans-serif; }
.schedule-shell > .schedule-section-tabs .panel-tab[aria-selected="true"] { color: #fff; }
.schedule-shell > .schedule-toolbar { align-items: stretch; }
.schedule-shell > .schedule-toolbar > .schedule-toolbar-filters {
  align-self: stretch;
  justify-content: flex-start;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.schedule-toolbar-filters { flex-wrap: wrap; align-items: center; }
.schedule-toolbar-filters > .atlas-v49-field { flex: 0 1 auto; min-width: 0; max-width: none; gap: 0; position: relative; }
.schedule-toolbar-filters > .atlas-v49-field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.schedule-date-field { flex: 0 0 148px; }
.schedule-site-field { flex: 1 1 180px; max-width: 240px; }
.schedule-view-field { flex: 0 0 128px; }
.schedule-step, .schedule-today, .schedule-hint, .schedule-room-move {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #c5d0dc;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font: 700 16px/1.2 Inter, system-ui, sans-serif;
  color: #1a2333;
}
.schedule-room-move:disabled { color: #334155; background: #eef2f6; cursor: default; }
.schedule-hint { width: 44px; padding: 0; }
.schedule-room-caption { display: none; margin: 0; }
.schedule-room-nav { display: none; gap: 8px; }
.schedule-detail-line { margin: 8px 0; font: 700 20px/1.35 Inter, system-ui, sans-serif; color: #1a2333; }
.schedule-dialog .atlas-v49-button, .schedule-dialog button { min-height: 44px; font-size: 16px; }
.atlas-v49-view[data-view="clinicSchedule"] .atlas-v49-subtitle { display: none; }
.atlas-v49-view[data-view="clinicSchedule"] .atlas-v49-close { min-height: 44px; font-size: 16px; }
.schedule-extra { position: relative; flex: 0 0 auto; }
.schedule-extra > summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #d8e2ed;
  border-radius: 10px;
  background: #fff;
  font: 700 16px/1 Inter, system-ui, sans-serif;
  color: #1a2333;
}
.schedule-extra > summary::-webkit-details-marker { display: none; }
.schedule-extra-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  display: grid;
  gap: 6px;
  min-width: 240px;
  padding: 8px;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(36, 50, 74, .16);
}
.schedule-extra-menu .atlas-v49-button { width: 100%; text-align: left; }
.schedule-extra-menu .atlas-v49-field { max-width: none; min-width: 0; }
.schedule-extra-menu [hidden] { display: none; }
.work-graphs { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.work-graphs-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.work-graphs-caption { margin: 0 0 8px; color: #526174; font: 400 14px/1.4 Inter, system-ui, sans-serif; }
.work-graphs-board { min-width: 0; overflow: auto; }
.work-graphs-week { display: grid; grid-template-columns: minmax(140px, 190px) repeat(7, minmax(96px, 1fr)); gap: 4px; min-width: 820px; }
.work-graphs-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.work-graphs-name, .work-graphs-day, .work-graphs-cell, .work-graphs-gap {
  box-sizing: border-box;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font: 400 13px/1.35 Inter, system-ui, sans-serif;
  color: #24324a;
  min-width: 0;
}
.work-graphs-day { font-weight: 700; background: #f7f8f6; }
.work-graphs-gap { background: transparent; border-color: transparent; }
.work-graphs-name strong, .work-graphs-shift { display: block; }
.work-graphs-name small { color: #526174; }
.work-graphs-shift { font-weight: 650; }
.work-graphs-desk { margin: 0; border: 1px solid #dfe3e8; border-radius: 12px; background: #fff; padding: 10px 12px; }
.work-graphs-desk > summary { cursor: pointer; font: 650 14px/1.3 Inter, system-ui, sans-serif; color: #1e3a5f; }
.work-graphs-desk h3 { margin: 10px 0 4px; font: 650 14px/1.3 Inter, system-ui, sans-serif; }
.schedule-fit-frame { position: relative; flex: 1; min-height: 0; min-width: 0; display: flex; }
.schedule-fit {
  overflow: auto;
  flex: 1;
  min-height: 0;
  min-width: 0;
  background-image:
    linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)),
    linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(36, 50, 74, .2), rgba(36, 50, 74, 0)),
    linear-gradient(270deg, rgba(36, 50, 74, .28), rgba(36, 50, 74, 0));
  background-position: left center, right center, left center, right center;
  background-repeat: no-repeat;
  background-size: 18px 100%, 22px 100%, 16px 100%, 22px 100%;
  background-attachment: local, local, scroll, scroll;
}
.schedule-fit-arrow {
  position: absolute;
  top: 4px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border: 1px solid #dfe3e8;
  border-radius: 999px;
  background: #fff;
  color: #24324a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  font: 700 18px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.schedule-fit-prev { left: 80px; }
.schedule-fit-next { right: 8px; }
.schedule-fit-arrow[hidden] { display: none; }
.schedule-fit-grid {
  display: flex;
  flex-direction: column;
  min-width: max-content;
  width: max-content;
  height: auto;
}
.schedule-fit-headrow, .schedule-fit-canvas { display: grid; justify-content: start; }
.schedule-fit-headrow { position: sticky; top: 0; z-index: 5; background: #fbfaf6; }
.schedule-fit-canvas { position: relative; }
.schedule-fit-rail {
  position: sticky;
  left: 0;
  z-index: 4;
  height: 100%;
  background: #f8fafc;
  border-right: 1px solid #e3e8ef;
}
.schedule-fit-mark { position: absolute; left: 0; right: 0; height: 0; pointer-events: none; }
.schedule-fit-mark strong, .schedule-fit-mark span {
  position: absolute;
  left: 8px;
  top: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.schedule-fit-mark strong { font-size: 18px; font-weight: 500; color: #64748b; }
.schedule-fit-mark span { font-size: 14px; font-weight: 500; color: #94a3b8; }
.schedule-now {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 0;
  border-top: 1px solid #e7b4ae;
  pointer-events: none;
}
.schedule-now span {
  position: absolute;
  left: 88px;
  top: -14px;
  padding: 0 6px;
  background: #fff;
  color: #9f1d14;
  font: 700 14px/1 Inter, system-ui, sans-serif;
}
.schedule-fit-head, .schedule-fit-time, .schedule-fit-cell, .schedule-fit-hour {
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}
.schedule-fit-head, .schedule-fit-time {
  display: flex;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  color: #334155;
  background: #f8fafc;
}
.schedule-fit-head {
  position: sticky;
  top: 0;
  z-index: 3;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  height: auto;
  min-height: 72px;
  padding: 6px 8px;
  border-bottom: 1px solid #e3e8ef;
  border-right: 1px solid #eef1f5;
}
.schedule-fit-head strong { font-size: 22px; font-weight: 400; line-height: 1.1; color: #1e293b; }
.schedule-fit-head small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: unset;
  white-space: normal;
  overflow-wrap: anywhere;
}
.schedule-fit-corner { left: 0; z-index: 4; }
.schedule-fit-time {
  position: sticky;
  left: 0;
  z-index: 2;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 8px;
  border-right: 1px solid #e3e8ef;
  border-bottom: 1px solid #e3e8ef;
  background: #f8fafc;
  font-variant-numeric: tabular-nums;
}
.schedule-fit-time strong { font-size: 13px; color: #24324a; }
.schedule-fit-time span { font-size: 11px; color: #6f7888; }
.schedule-fit-hour {
  position: absolute;
  left: 0;
  right: 0;
  box-sizing: border-box;
  border-right: 1px solid #e3e8ef;
  border-bottom: 1px solid #e3e8ef;
  background: #fff;
  pointer-events: auto;
}
.schedule-fit-slot { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid #eef1f5; pointer-events: none; }
.schedule-fit-lane {
  position: relative;
  z-index: 1;
  height: 100%;
  min-width: 0;
  min-height: 0;
  pointer-events: none;
}
.schedule-fit-hour .schedule-chip,
.schedule-fit-lane .schedule-chip {
  position: absolute;
  left: 3px;
  right: 3px;
  z-index: 1;
  height: auto;
  max-height: none;
  min-height: 16px;
  margin-top: 1px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 4px 6px 2px;
  overflow: hidden;
  white-space: normal;
  font: 16px/22px Inter, system-ui, sans-serif;
  color: #1a2333;
}
.schedule-fit-lane .schedule-chip { right: auto; pointer-events: auto; margin-top: 0; }
.schedule-fit-lane .schedule-fit-booking:not(.schedule-or-pair):not(.schedule-chip-uzi) {
  background: color-mix(in srgb, var(--accent, #94a3b8) 18%, #fff);
  border: 0;
  border-left: 3px solid var(--accent, #64748b);
  border-radius: 6px;
  color: #1e293b;
}
.schedule-fit-overlap-mark { display: block; font: 700 11px/14px Inter, system-ui, sans-serif; color: #9a3412; }
.schedule-fit-hour .schedule-chip.schedule-fit-short,
.schedule-fit-lane .schedule-chip.schedule-fit-short {
  justify-content: flex-start;
  padding: 2px 6px 0;
  font-size: 16px;
  line-height: 20px;
}
.schedule-fit-lane .schedule-fit-short .schedule-fit-who {
  font-size: 17px;
  line-height: 20px;
  -webkit-line-clamp: 2;
}
.schedule-fit-hour .schedule-fit-who,
.schedule-fit-hour .schedule-fit-service,
.schedule-fit-lane .schedule-fit-who,
.schedule-fit-lane .schedule-fit-service,
.schedule-fit-lane .schedule-kdc-card .schedule-fit-who,
.schedule-fit-lane .schedule-kdc-card .schedule-fit-service {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  min-width: 0;
  overflow: hidden;
  text-overflow: unset;
  white-space: normal;
  overflow-wrap: anywhere;
}
.schedule-fit-lane .schedule-fit-booking.schedule-kdc-card:not(.schedule-or-pair) {
  background: color-mix(in srgb, var(--accent, #94a3b8) 18%, #fff);
  border: 0;
  border-left: 3px solid var(--accent, #64748b);
  border-radius: 6px;
  color: #1e293b;
}
.schedule-fit-lane .schedule-kdc-card .schedule-fit-who,
.schedule-fit-lane .schedule-kdc-card .schedule-fit-service { color: #111; }
.schedule-fit-hour .schedule-fit-who,
.schedule-fit-lane .schedule-fit-who { font-size: 18px; font-weight: 700; line-height: 22px; color: #1a2333; }
.schedule-fit-hour .schedule-fit-service,
.schedule-fit-lane .schedule-fit-service { font-size: 16px; font-weight: 600; line-height: 22px; color: #24324a; }
.schedule-fit-lane .schedule-or-pair {
  right: 3px;
  width: auto;
  justify-content: flex-start;
  padding: 0;
  gap: 0;
  background: #fff;
}
.schedule-or-halves { display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; }
.schedule-or-half {
  flex: 1 1 50%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
  border: 0;
  border-left: 8px solid var(--accent, #94a3b8);
  border-radius: 0;
  background: color-mix(in srgb, var(--accent, #94a3b8) 28%, #fff);
  padding: 4px 8px;
  text-align: left;
  cursor: pointer;
  font: 16px/22px Inter, system-ui, sans-serif;
  color: #1a2333;
  overflow: hidden;
}
.schedule-or-note {
  display: block;
  flex: 0 0 auto;
  padding: 4px 8px 0;
  font: 700 16px/22px Inter, system-ui, sans-serif;
  color: #1a2333;
}
.schedule-fit-cell {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  padding: 0 2px;
}
.schedule-fit-cell .schedule-chip, .schedule-fit-cell .schedule-more {
  flex: 1 1 auto;
  height: 100%;
  max-height: 100%;
  min-width: 0;
}
.schedule-fit-cell .schedule-more { flex: 0 0 auto; min-width: 28px; padding: 0 4px; }
@media (min-width: 1100px) and (max-width: 1600px) and (max-height: 1000px) {
  body:has(.atlas-v49-view[data-view="clinicSchedule"]) { overflow: hidden; height: 100vh; }
  .atlas-v49-view[data-view="clinicSchedule"] { overflow: hidden; padding: 8px 16px 8px; display: flex; flex-direction: column; }
  .atlas-v49-view[data-view="clinicSchedule"] .atlas-v49-hero { margin: 0 0 4px; gap: 12px; }
  .atlas-v49-view[data-view="clinicSchedule"] .atlas-v49-hero h1 { font-size: 20px; margin: 0; }
  .atlas-v49-view[data-view="clinicSchedule"] .atlas-v49-eyebrow,
  .atlas-v49-view[data-view="clinicSchedule"] .atlas-v49-subtitle { display: none; }
  .atlas-v49-view[data-view="clinicSchedule"] .atlas-v49-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
  .schedule-shell { display: flex; flex-direction: column; gap: 6px; min-height: 0; flex: 1; }
  .atlas-v49-view[data-view="clinicSchedule"] .schedule-shell {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    align-self: stretch;
  }
  .schedule-shell > .schedule-section-tabs,
  .schedule-shell > .schedule-toolbar,
  .schedule-shell > .schedule-board { width: 100%; max-width: none; align-self: stretch; }
  .schedule-board { flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; padding: 6px; }
  .schedule-fit-frame { flex: 1; min-height: 0; }
  .schedule-toolbar { gap: 0; padding: 6px 8px; }
  .schedule-help { flex: 0 0 auto; }
}
@media (max-width: 760px) {
  .schedule-room-caption { display: block; padding: 4px 4px 8px; }
  .schedule-room-caption strong { font: 700 22px/28px Inter, system-ui, sans-serif; color: #1a2333; }
  .schedule-room-nav { display: flex; }
  .schedule-day { display: none; }
  .schedule-day-list { display: grid; grid-auto-rows: 48px; gap: 6px; }
  .schedule-axis-doctor .schedule-day-list { display: none; }
  .schedule-axis-doctor .schedule-doctor-list { display: grid; grid-auto-rows: 72px; gap: 6px; }
  .schedule-week { grid-auto-rows: 120px; }
  .schedule-week-day { height: 120px; max-height: 120px; }
  .schedule-month-free { display: none; }
  .schedule-shell > .schedule-toolbar { display: flex; flex-direction: column; }
  .schedule-toolbar-filters { flex-wrap: wrap; }
  :is(.schedule-shell, .work-graphs) > .schedule-section-tabs.panel-tabs {
    box-sizing: border-box;
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
    align-content: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }
  :is(.schedule-shell, .work-graphs) > .schedule-section-tabs.panel-tabs > .panel-tab {
    box-sizing: border-box;
    flex: 0 1 auto;
    width: auto;
    height: auto;
    min-height: 44px;
    min-width: 0;
    max-width: 100%;
    padding: 8px 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .work-graphs-week { min-width: 720px; }
  .work-graphs-board { max-width: 100%; overflow-x: auto; }
}
.schedule-span { display: flex; gap: 8px; align-items: center; }
.schedule-span[hidden] { display: none; }
.schedule-span-btn, .schedule-back-month {
  box-sizing: border-box;
  min-width: 88px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #c5d0dc;
  border-radius: 10px;
  background: #fff;
  color: #1a2333;
  cursor: pointer;
  font: 700 18px/1.2 Inter, system-ui, sans-serif;
}
.schedule-span-btn[aria-pressed="true"] { background: #163f34; color: #fff; border-color: #163f34; }
.schedule-back-month { align-self: flex-start; margin: 0 0 8px; }
.schedule-load-title { margin: 0 0 8px; font: 700 22px/28px Inter, system-ui, sans-serif; color: #1a2333; text-transform: none; }
.schedule-load-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.schedule-load-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #c5d0dc;
  border-radius: 10px;
  background: #fff;
  color: #1a2333;
  font: 700 16px/22px Inter, system-ui, sans-serif;
}
.schedule-load-key::before { content: ""; width: 18px; height: 18px; border-radius: 4px; background: var(--accent, #94a3b8); }
.schedule-load-key-off::before { background: #5b6b82; }
.schedule-load-key-holiday::before { background: #9a3412; }
.schedule-load-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: 28px repeat(var(--month-weeks, 6), minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  min-height: 0;
}
.schedule-load-month > .booking-weekday {
  box-sizing: border-box;
  height: 28px;
  max-height: 28px;
  overflow: hidden;
  text-align: center;
  color: #1a2333;
  font: 700 16px/28px Inter, system-ui, sans-serif;
}
.schedule-load-day, .schedule-load-month > .booking-day-gap {
  box-sizing: border-box;
  height: auto;
  max-height: none;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.schedule-load-month > .booking-day-gap { border-radius: 8px; background: #f4f7f8; }
.schedule-load-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  container-type: size;
  margin: 0;
  padding: 4px 6px 6px;
  border: 1px solid #e3e8ef;
  border-left: 1px solid #e3e8ef;
  box-shadow: none;
  border-radius: 8px;
  background: #fff;
  color: #1a2333;
  text-align: left;
  cursor: pointer;
  font: 16px/22px Inter, system-ui, sans-serif;
}
.schedule-load-num {
  position: absolute;
  top: 4px;
  left: 6px;
  z-index: 1;
  display: block;
  color: #1a2333;
  font: 700 20px/24px Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.schedule-load-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  margin-top: 26px;
  padding: 2px 8px 4px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent, #2d7776) 42%, #fff);
}
.schedule-load-count {
  display: block;
  color: #1a2333;
  font: 700 28px/32px Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.schedule-load-caption {
  display: block;
  color: #1a2333;
  font: 700 16px/20px Inter, system-ui, sans-serif;
}
.schedule-load-day[aria-current="date"] { outline: 2px solid #93c5fd; outline-offset: -2px; box-shadow: none; }
.schedule-load-weekend { background: #f4f7fb; box-shadow: none; }
.schedule-load-holiday { background: #f4f7fb; box-shadow: none; }
.schedule-load-mark { display: block; color: #1a2333; font: 700 16px/18px Inter, system-ui, sans-serif; }
.schedule-load-day > .schedule-load-mark { margin-top: 26px; }
.schedule-load-day:has(.schedule-load-badge) > .schedule-load-mark,
.schedule-load-day:has(.schedule-load-halves) > .schedule-load-mark { margin-top: 0; }
.schedule-kdc-month .schedule-load-num { font-size: 22px; line-height: 24px; }
.schedule-kdc-month .schedule-kdc-badge {
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  background: color-mix(in srgb, var(--color-accent-blue, #0083b0) 26%, #fff);
}
.schedule-kdc-off {
  display: block;
  margin-top: 26px;
  max-width: 100%;
  color: #1a2333;
  font: 700 16px/18px Inter, system-ui, sans-serif;
  white-space: nowrap;
}
.schedule-kdc-off-short { display: none; }
.schedule-load-mark-short { display: none; }
@container (max-height: 100px) {
  .schedule-load-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .schedule-kdc-month .schedule-load-caption { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .schedule-load-mark-long { display: none; }
  .schedule-load-mark-short { display: inline; }
}
.schedule-load-split { padding: 4px 0 0; background: #fff; }
.schedule-load-halves { display: flex; flex: 1 1 auto; min-height: 0; min-width: 0; margin-top: 26px; }
.schedule-load-half {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 4px;
  background: color-mix(in srgb, var(--accent, #94a3b8) 32%, #fff);
}
.schedule-load-half .schedule-load-badge {
  margin-top: 0;
  padding: 0;
  background: transparent;
}
@media (min-width: 1280px) {
  .schedule-toolbar-filters { flex-wrap: nowrap; }
  .schedule-site-field { flex: 1 1 120px; min-width: 0; max-width: 200px; }
}
.atlas-v49-view:has(.schedule-load-month),
.atlas-v49-view:has(.schedule-month) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.atlas-v49-view:has(.schedule-load-month) > .atlas-v49-hero,
.atlas-v49-view:has(.schedule-month) > .atlas-v49-hero {
  flex: 0 0 auto;
  margin-bottom: 8px;
}
.atlas-v49-view:has(.schedule-load-month) > .atlas-v49-body,
.atlas-v49-view:has(.schedule-month) > .atlas-v49-body,
.schedule-shell:has(.schedule-load-month),
.schedule-shell:has(.schedule-month) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
body.has-anesthesia-dock .atlas-v49-view:has(.schedule-load-month),
body.has-anesthesia-dock .atlas-v49-view:has(.schedule-month) {
  padding-bottom: 8px;
}
.schedule-step-short { display: none; }
@media (max-width: 1100px) {
  .schedule-shell:has(.schedule-load-month) .schedule-step-long,
  .schedule-shell:has(.schedule-month) .schedule-step-long { display: none; }
  .schedule-shell:has(.schedule-load-month) .schedule-step-short,
  .schedule-shell:has(.schedule-month) .schedule-step-short { display: inline; }
  .schedule-shell:has(.schedule-load-month) .schedule-toolbar-filters,
  .schedule-shell:has(.schedule-month) .schedule-toolbar-filters {
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
  }
  .schedule-shell:has(.schedule-load-month) .schedule-step,
  .schedule-shell:has(.schedule-month) .schedule-step,
  .schedule-shell:has(.schedule-load-month) .schedule-today,
  .schedule-shell:has(.schedule-month) .schedule-today,
  .schedule-shell:has(.schedule-load-month) .schedule-span-btn,
  .schedule-shell:has(.schedule-month) .schedule-span-btn {
    flex: 0 1 auto;
    min-width: 0;
    padding: 0 10px;
  }
  .schedule-shell:has(.schedule-load-month) .schedule-site-field,
  .schedule-shell:has(.schedule-month) .schedule-site-field,
  .schedule-shell:has(.schedule-load-month) .schedule-date-field,
  .schedule-shell:has(.schedule-month) .schedule-date-field {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 168px;
  }
}
.schedule-shell:has(.schedule-load-month) > .schedule-toolbar,
.schedule-shell:has(.schedule-month) > .schedule-toolbar,
.schedule-board:has(.schedule-load-month) > .schedule-load-title,
.schedule-board:has(.schedule-load-month) > .schedule-load-legend {
  flex: 0 0 auto;
}
.schedule-shell:has(.schedule-load-month) > .schedule-toolbar,
.schedule-shell:has(.schedule-month) > .schedule-toolbar,
.schedule-board:has(.schedule-load-month),
.schedule-board:has(.schedule-month) {
  padding: 6px 8px;
}
.atlas-v49-view:has(.schedule-load-month),
.atlas-v49-view:has(.schedule-month) {
  padding-top: 8px;
  padding-bottom: 8px;
}
.schedule-board:has(.schedule-load-month),
.schedule-board:has(.schedule-month) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.schedule-load-legend {
  flex-wrap: nowrap;
  overflow-x: auto;
  max-height: 48px;
}
.schedule-load-month,
.schedule-month {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
@media (max-height: 900px) {
  .atlas-v49-view:has(.schedule-load-month) .atlas-v49-eyebrow,
  .atlas-v49-view:has(.schedule-load-month) .atlas-v49-subtitle,
  .atlas-v49-view:has(.schedule-month) .atlas-v49-eyebrow,
  .atlas-v49-view:has(.schedule-month) .atlas-v49-subtitle { display: none; }
  .atlas-v49-view:has(.schedule-load-month) .atlas-v49-hero h1,
  .atlas-v49-view:has(.schedule-month) .atlas-v49-hero h1 { font-size: 22px; }
}
@media (max-height: 820px) {
  .atlas-v49-view:has(.schedule-load-month) > .atlas-v49-hero,
  .atlas-v49-view:has(.schedule-month) > .atlas-v49-hero { margin-bottom: 2px; }
  .atlas-v49-view:has(.schedule-load-month) .atlas-v49-close,
  .atlas-v49-view:has(.schedule-month) .atlas-v49-close { min-height: 36px; padding: 4px 10px; }
  .schedule-board:has(.schedule-load-month) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
  }
  .schedule-board:has(.schedule-load-month) > .schedule-load-title { margin: 0; grid-column: 1; grid-row: 1; }
  .schedule-board:has(.schedule-load-month) > .schedule-load-legend { margin: 0; grid-column: 2; grid-row: 1; max-height: 40px; }
  .schedule-board:has(.schedule-load-month) > .schedule-load-month { grid-column: 1 / -1; grid-row: 2; align-self: stretch; }
  .schedule-load-day { padding: 2px 4px 2px; gap: 2px; }
  .schedule-load-badge { padding: 1px 6px 2px; }
  .schedule-load-month { gap: 4px; }
}
@media (max-width: 760px) {
  .atlas-v49-view:has(.schedule-load-month),
  .atlas-v49-view:has(.schedule-month) {
    padding: 6px 8px 8px;
  }
  .atlas-v49-view:has(.schedule-load-month) > .atlas-v49-hero,
  .atlas-v49-view:has(.schedule-month) > .atlas-v49-hero {
    margin-bottom: 2px;
  }
  .atlas-v49-view:has(.schedule-load-month) .atlas-v49-hero h1,
  .atlas-v49-view:has(.schedule-month) .atlas-v49-hero h1 {
    font-size: 20px;
    line-height: 24px;
  }
  .schedule-shell:has(.schedule-load-month) > .schedule-section-tabs,
  .schedule-shell:has(.schedule-month) > .schedule-section-tabs { margin: 0; }
  .schedule-shell:has(.schedule-load-month) > .schedule-toolbar,
  .schedule-shell:has(.schedule-month) > .schedule-toolbar,
  .schedule-board:has(.schedule-load-month),
  .schedule-board:has(.schedule-month) { padding: 4px 6px; }
  .schedule-board:has(.schedule-load-month) > .schedule-load-title { margin: 0 0 2px; font-size: 18px; line-height: 22px; }
  .schedule-load-legend { max-height: 36px; margin: 0 0 2px; gap: 4px; }
  .schedule-shell:has(.schedule-load-month) .schedule-load-key { min-height: 32px; padding: 0 8px; }
  .schedule-shell:has(.schedule-load-month) .schedule-date-field { max-width: 132px; }
  .schedule-span { flex: 0 1 auto; }
  .schedule-span-btn { flex: 0 1 auto; }
  .schedule-load-month { gap: 3px; }
  .schedule-load-day, .schedule-load-month > .booking-day-gap { padding: 2px 2px 4px; }
  .schedule-load-mark-long { display: none; }
  .schedule-load-mark-short { display: inline; }
  .schedule-load-num { font-size: 20px; line-height: 22px; }
  .schedule-kdc-month .schedule-load-num { font-size: 20px; line-height: 22px; }
  .schedule-load-count { font-size: 24px; line-height: 28px; }
  .schedule-load-caption { font-size: 14px; line-height: 16px; }
  .schedule-kdc-off { margin-top: 20px; font-size: 16px; line-height: 18px; }
}
@media (max-width: 820px) {
  .schedule-kdc-month .schedule-load-caption { display: none; }
  .schedule-kdc-month .schedule-kdc-badge {
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
    padding: 0 3px 1px;
  }
  .schedule-kdc-month .schedule-kdc-off-long { display: none; }
  .schedule-kdc-month .schedule-kdc-off-short { display: inline; }
  .schedule-kdc-month .schedule-kdc-off {
    margin-top: 20px;
    font-size: 16px;
    line-height: 18px;
    white-space: nowrap;
    overflow-wrap: normal;
  }
}
.schedule-kdc-month {
  width: min(100%, 840px);
  gap: 4px;
}
.schedule-kdc-month .schedule-load-day {
  padding: 2px 4px 4px;
  gap: 2px;
}
.schedule-kdc-month .schedule-kdc-badge {
  margin-top: 22px;
  padding: 1px 4px 2px;
}
.schedule-kdc-month .schedule-load-count {
  font-size: 24px;
  line-height: 26px;
}
@media (max-width: 820px) {
  .schedule-kdc-month .schedule-load-day {
    overflow: hidden;
    min-width: 0;
  }
  .schedule-kdc-month .schedule-kdc-badge {
    position: absolute;
    top: auto;
    right: 2px;
    bottom: 2px;
    left: 2px;
    width: auto;
    max-width: calc(100% - 4px);
    margin: 0;
    padding: 0 3px;
    align-self: auto;
  }
  .schedule-kdc-month .schedule-load-count {
    font-size: 13px;
    line-height: 15px;
  }
}
@media (min-width: 1100px) {
  body.schedule-kdc-day .atlas-v49-view {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 6px;
    padding-bottom: 4px;
  }
  body.schedule-kdc-day .atlas-v49-hero { margin-bottom: 4px; }
  body.schedule-kdc-day .atlas-v49-subtitle { display: none; }
  body.schedule-kdc-day .atlas-v49-hero h1 { font-size: 22px; line-height: 1.1; margin: 0; }
  body.schedule-kdc-day .schedule-shell { gap: 4px; }
  body.schedule-kdc-day .schedule-toolbar { padding: 4px 8px; }
}
.schedule-kdc-fit .schedule-fit-grid { min-width: 0; width: 100%; }
.schedule-kdc-fit .schedule-fit { overflow: hidden; border: 0; }
.schedule-kdc-fit .schedule-fit-head { min-height: 76px; height: 76px; padding: 4px; gap: 2px; }
.schedule-kdc-fit .schedule-fit-head .schedule-room-doctors{font-size:11px;line-height:13px;color:#344b60;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.schedule-kdc-fit .schedule-fit-corner { overflow: visible; padding-left: 6px; padding-right: 2px; }
.schedule-kdc-fit .schedule-fit-corner span {
  display: block;
  font-size: 13px;
  line-height: 16px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.schedule-kdc-fit .schedule-fit-mark strong,
.schedule-kdc-fit .schedule-fit-mark span { left: 4px; }
.schedule-kdc-fit .schedule-fit-head strong { font-size: 14px; line-height: 16px; font-weight: 400; color: #1e293b; }
.schedule-kdc-fit .schedule-fit-head small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  line-height: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
}
.schedule-kdc-fit .schedule-fit-mark strong { font-size: 18px; line-height: 18px; font-weight: 500; color: #64748b; }
.schedule-kdc-fit .schedule-fit-mark span { font-size: 14px; line-height: 14px; font-weight: 500; color: #94a3b8; }
.schedule-kdc-fit .schedule-fit-lane .schedule-fit-booking.schedule-kdc-card {
  flex-direction: row;
  align-items: center;
  padding: 0 4px;
  white-space: nowrap;
  font-size: 16px;
  line-height: 20px;
}
.schedule-kdc-fit .schedule-fit-lane .schedule-kdc-card .schedule-fit-who {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 17px;
  line-height: 20px;
  -webkit-line-clamp: 1;
}
.schedule-kdc-fit .schedule-kdc-card .schedule-fit-service { display: none; }
.schedule-kdc-fit .schedule-fit-packed {
  gap: 4px;
  overflow: hidden;
}
.schedule-kdc-fit .schedule-fit-packed .schedule-fit-who {
  flex: 1 1 auto;
  min-width: 0;
}
.schedule-fit-more {
  flex: 0 0 auto;
  padding: 0 4px;
  border-radius: 999px;
  background: #e8eef5;
  color: #334155;
  font: 600 12px/16px Inter, system-ui, sans-serif;
}
.schedule-or-half {
  background: color-mix(in srgb, var(--accent, #94a3b8) 18%, #fff);
  border-left-width: 3px;
}
/* Only the two clinical month boards grow for their complete anesthesia count.
   The hybrid mobile theme has fixed 72px !important tracks: override those
   narrowly, without changing KDC, ultrasound or any day-view geometry. */
.schedule-board:has(> .schedule-load-month.schedule-anesthesia-month) {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.schedule-load-month.schedule-anesthesia-month {
  flex: 1 0 auto !important;
  width: 100% !important;
  height: max-content !important;
  min-height: max-content !important;
  max-height: none !important;
  align-self: start !important;
  grid-template-rows: 28px repeat(var(--month-weeks, 6), minmax(108px, max-content)) !important;
  overflow: visible !important;
}
.schedule-load-month.schedule-anesthesia-month > :is(.schedule-load-day, .booking-day-gap) {
  height: auto !important;
  min-height: 108px !important;
  max-height: none !important;
  overflow: visible !important;
}
.schedule-load-month.schedule-anesthesia-month > .schedule-load-day {
  container-type: inline-size;
}
.schedule-load-month.schedule-anesthesia-month > .schedule-operation-dots {
  padding-top: 39px;
}
.schedule-load-month.schedule-anesthesia-month > .schedule-operation-dots > .schedule-hybrid-tabs {
  position: static;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin-bottom: 0;
}
.schedule-load-month.schedule-anesthesia-month > .schedule-load-day > .schedule-closure-flag {
  position: static;
  order: 1;
  flex: 0 0 auto;
  align-self: stretch;
  margin-top: 6px;
}
.schedule-anesthesia-stars {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  order: 2;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding-top: 12px;
  box-sizing: border-box;
  line-height: 0;
  color: #8a5c13;
  pointer-events: none;
}
.schedule-anesthesia-star {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  fill: currentColor;
}
.schedule-anesthesia-key::before { display: none; }
.schedule-anesthesia-key > .schedule-anesthesia-star { color: #8a5c13; }
.schedule-colors-dialog .schedule-anesthesia-key { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .schedule-load-month.schedule-anesthesia-month {
    grid-template-rows: 24px repeat(var(--month-weeks, 6), minmax(114px, max-content)) !important;
  }
  .schedule-load-month.schedule-anesthesia-month > :is(.schedule-load-day, .booking-day-gap) {
    min-height: 114px !important;
  }
}
@media print {
  .schedule-card, .schedule-pill, .schedule-swatch b { color: #000 !important; background: #fff !important; }
  .schedule-pill::after { content: ""; }
}

/* A day is one viewport with one vertical timetable, not nested page scrollers. */
@media screen {
  body:has(.schedule-clinical-day) { overflow: hidden; height: 100dvh; }
  .atlas-v49-view[data-view="clinicSchedule"]:has(.schedule-clinical-day) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .atlas-v49-view[data-view="clinicSchedule"]:has(.schedule-clinical-day) > .atlas-v49-hero {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    margin: 0 0 8px;
    padding: 0 !important;
    min-height: 44px;
    align-items: center;
  }
  .atlas-v49-view:has(.schedule-clinical-day) > .atlas-v49-hero h1 { margin: 0; }
  .atlas-v49-view:has(.schedule-clinical-day) > .atlas-v49-hero .atlas-v49-eyebrow { display: none; }
  .atlas-v49-view[data-view="clinicSchedule"] > .schedule-shell.schedule-clinical-day {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px !important;
    min-height: 0;
    min-width: 0;
    width: 100%;
    overflow: visible;
  }
  .schedule-shell.schedule-clinical-day > :not(.schedule-board) { flex: 0 0 auto; }
  .schedule-shell.schedule-clinical-day > .schedule-section-tabs.panel-tabs {
    min-height: 48px;
    box-sizing: border-box;
    padding: 2px 0;
    margin: 0;
    align-items: stretch;
    gap: 8px;
  }
  .schedule-shell.schedule-clinical-day > .schedule-toolbar {
    padding: 6px 8px;
    margin: 0;
    min-width: 0;
  }
  .schedule-shell.schedule-clinical-day .schedule-context-caption {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    color: #526174;
    overflow-wrap: anywhere;
  }
  .schedule-shell > :is(.schedule-message,.schedule-advisory):empty { display: none; }
  .schedule-shell.schedule-clinical-day > .schedule-work-roster {
    box-sizing: border-box;
    margin: 0;
    padding: 0 10px;
  }
  .schedule-clinical-day .schedule-work-details > summary {
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 0;
    line-height: 22px;
  }
  .schedule-clinical-day .schedule-work-intervals {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 8px;
    align-items: stretch;
  }
  .schedule-clinical-day .schedule-work-interval {
    box-sizing: border-box;
    flex: 0 0 220px;
    max-width: 100%;
  }
  .schedule-shell.schedule-clinical-day > .schedule-board {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 6px;
    overflow: hidden;
  }
  .schedule-clinical-day .schedule-day-heading {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    min-width: 0;
  }
  .schedule-clinical-day .schedule-day-heading > .schedule-back-month {
    flex: 0 0 auto;
    margin: 0;
    min-height: 44px;
  }
  .schedule-clinical-day .schedule-day-heading > .schedule-anesthesia-demand {
    display: flex;
    box-sizing: border-box;
    flex: 1 1 320px;
    flex-wrap: wrap;
    min-width: 0;
    align-items: center;
    gap: 4px 10px;
    margin: 0;
    padding: 4px 10px;
    border-radius: 10px;
  }
  .schedule-clinical-day .schedule-day-heading .schedule-anesthesia-demand strong { font-size: 13px !important; line-height: 18px; }
  .schedule-clinical-day .schedule-day-heading .schedule-anesthesia-demand small { font-size: 11px !important; line-height: 16px; }
  .schedule-clinical-day .schedule-day-heading .schedule-anesthesia-demand button { min-height: 44px !important; margin: 0; }
  .schedule-clinical-day .schedule-fit-frame { flex: 1 1 auto; min-height: 0; }
  .schedule-clinical-day .schedule-fit { overscroll-behavior: contain; scrollbar-gutter: stable; }
}
/* At short heights the visible mobile account header leaves too little room
   for a usable inner timetable. Keep one outer scroll, with a full-height grid. */
@media screen and (max-height: 600px) {
  .atlas-v49-view[data-view="clinicSchedule"]:has(.schedule-clinical-day) { display: block; overflow-y: auto; }
  .atlas-v49-view[data-view="clinicSchedule"] > .schedule-shell.schedule-clinical-day { flex: none; min-height: auto; }
  .atlas-v49-view[data-view="clinicSchedule"] .schedule-clinical-day > .schedule-board { flex: 0 0 auto; min-height: 360px; overflow: visible; }
  .atlas-v49-view[data-view="clinicSchedule"] .schedule-clinical-day .schedule-fit-frame { flex: 0 0 auto; min-height: 320px; }
}
/* Extra tab rows must not consume the only scrollable space. On phones the
   panel can scroll to the day grid; the grid keeps its own room scrolling. */
@media screen and (max-width: 760px) {
  .atlas-v49-view[data-view="clinicSchedule"]:has(.schedule-clinical-day) {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .atlas-v49-view[data-view="clinicSchedule"] > .schedule-shell.schedule-clinical-day {
    flex: none;
    min-height: auto;
  }
  .atlas-v49-view[data-view="clinicSchedule"] .schedule-clinical-day > .schedule-board {
    flex: 0 0 auto;
    overflow: visible;
  }
  .atlas-v49-view[data-view="clinicSchedule"] .schedule-clinical-day .schedule-fit-frame {
    flex: 0 0 auto;
    height: clamp(320px, 55dvh, 560px);
    min-height: 320px;
  }
  .atlas-v49-view[data-view="clinicSchedule"] .schedule-kdc-fit .schedule-fit { overflow: auto; }
}
