.replacement-page {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding-top: 8px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 0 0 6px 18px;
}

.page-header h1 {
  margin: 0;
  color: #07132c;
  font-size: clamp(25px, 2.1vw, 34px);
  line-height: 1.08;
}

.page-header p {
  max-width: 100%;
  margin: 8px 0 0;
  color: #344054;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 244px;
  margin-right: 18px;
  color: #111827;
}

.profile-button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(16, 24, 40, 0.09);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  font-size: 17px;
  font-weight: 950;
}

.profile-details,
.profile-details strong,
.profile-details span {
  display: block;
}

.profile-details strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.profile-details span {
  color: #344054;
  font-size: 12px;
  font-weight: 650;
}

.replacement-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.list-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  padding: 18px 18px 14px;
}

.tab-row {
  display: inline-flex;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.tab-button {
  min-width: 142px;
  padding: 0 18px;
  color: #25324d;
  border-right: 1px solid rgba(16, 24, 40, 0.08);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.tab-button:last-child {
  border-right: 0;
}

.tab-button.active {
  color: var(--dept-work);
  background: #fff;
  box-shadow: inset 0 -3px 0 var(--dept-work);
}

.list-filters {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(260px, 1.35fr) auto;
  gap: 12px;
  align-items: end;
}

.filter-field,
.form-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.filter-field > span,
.form-field > span,
.radio-row legend {
  color: #101828;
  font-size: 11px;
  font-weight: 900;
}

.form-field b,
.radio-row b {
  color: var(--dept-business);
}

.input-button,
.search-box,
.filter-button,
.ghost-button,
.square-button,
.cancel-button,
.save-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #142033;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  font-size: 12px;
  font-weight: 850;
}

.input-button {
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 0 12px;
  text-align: left;
}


.select-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  width: 100%;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.select-shell select {
  width: 100%;
  min-height: 36px;
  padding: 0 34px 0 12px;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: #142033;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.select-shell .icon {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: #667085;
}

.input-button.small {
  width: auto;
  min-width: 78px;
}

.search-box {
  gap: 10px;
  width: 100%;
  padding: 0 12px;
  color: #667085;
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font: inherit;
}

.search-box input::placeholder {
  color: #667085;
  opacity: 1;
}

.filter-button,
.ghost-button,
.cancel-button,
.save-button {
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
}

.filter-button {
  min-width: 92px;
}

.ghost-button {
  min-width: 0;
  color: #25324d;
  background: rgba(248, 250, 252, 0.8);
}

.square-button {
  justify-content: center;
  width: 36px;
  padding: 0;
}

.table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.absence-list {
  min-width: 920px;
  table-layout: fixed;
}

.absence-list th {
  height: 42px;
  padding: 0 14px;
  color: #253248;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  border-bottom: 1px solid rgba(16, 24, 40, 0.09);
  background: rgba(248, 250, 252, 0.72);
  font-size: 11px;
  font-weight: 900;
}

.absence-list td {
  height: 50px;
  padding: 0 14px;
  color: #26354f;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.absence-list th:first-child,
.absence-list td:first-child {
  width: 52px;
  text-align: center;
}

.absence-list th:nth-child(2),
.absence-list td:nth-child(2) {
  width: 170px;
}

.absence-list th:nth-child(3),
.absence-list td:nth-child(3),
.absence-list th:nth-child(4),
.absence-list td:nth-child(4) {
  width: 152px;
}

.absence-list th:nth-child(5),
.absence-list td:nth-child(5) {
  width: 160px;
}

.absence-list th:nth-child(6),
.absence-list td:nth-child(6) {
  width: 126px;
}

.absence-list th:nth-child(7),
.absence-list td:nth-child(7) {
  width: 146px;
}

.absence-list th:last-child,
.absence-list td:last-child {
  width: 44px;
  padding-right: 6px;
  padding-left: 6px;
  text-align: center;
  overflow: visible;
}

.absence-list td strong,
.absence-list td span:not(.radio-dot):not(.reason-icon):not(.status-chip) {
  display: block;
}

.absence-list td strong {
  color: #07132c;
}

.absence-list td span:not(.radio-dot):not(.reason-icon):not(.status-chip) {
  margin-top: 3px;
  color: #667085;
  font-size: 10px;
  font-weight: 760;
}

.absence-list tbody tr:hover {
  background: rgba(248, 250, 252, 0.72);
}

.absence-list tbody tr.selected td {
  background: #eaf3ff;
}

.radio-dot {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 2px solid #b7c3d4;
  border-radius: 50%;
  background: #fff;
}

.radio-dot.active {
  border-color: var(--dept-design);
}

.radio-dot.active::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dept-design);
}

.reason-icon {
  display: inline-grid !important;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 8px 0 0 !important;
  border-radius: 50%;
  vertical-align: middle;
}

.reason-icon.sick {
  color: var(--dept-business);
  background: color-mix(in srgb, var(--dept-business) 12%, #fff);
}

.reason-icon.other {
  color: var(--dept-it);
  background: color-mix(in srgb, var(--dept-it) 14%, #fff);
}

.status-chip {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  margin: 0 !important;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.status-chip.done {
  color: var(--dept-work);
  background: color-mix(in srgb, var(--dept-work) 13%, #fff);
}

.status-chip.progress {
  color: #b45309;
  background: color-mix(in srgb, var(--dept-it) 16%, #fff);
}

.status-chip.muted {
  color: #475467;
  background: #eef2f7;
}

.more-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #344054;
  border-radius: 6px;
  background: transparent;
}

.more-button:hover {
  background: rgba(16, 24, 40, 0.06);
}

.replacement-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 8px;
  align-items: stretch;
}

.schedule-card,
.setup-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel-header,
.setup-header,
.subsection-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 18px 10px;
}

.panel-header h2,
.setup-header h2 {
  margin: 0;
  color: #07132c;
  font-size: 18px;
  line-height: 1.14;
}

.panel-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: #25324d;
  font-size: 12px;
  font-weight: 850;
}

.schedule-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.week-grid {
  display: grid;
  grid-template-columns: 54px repeat(5, minmax(112px, 1fr));
  gap: 6px;
  min-width: 690px;
  min-height: 288px;
  padding: 0 18px 8px;
  align-items: stretch;
}

.takeover-grid {
  grid-template-columns: 54px repeat(5, minmax(122px, 1fr));
  min-width: 760px;
}

.day-head,
.time-slot,
.time-head {
  display: grid;
  place-items: center;
  min-height: 32px;
  color: #172946;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
}

.day-head span {
  display: inline-block;
  margin-top: 3px;
  color: #52627c;
  font-size: 10px;
  font-weight: 800;
}

.time-slot {
  justify-content: end;
  padding-right: 6px;
  color: #52627c;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.35;
}

.lesson {
  position: relative;
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 54px;
  padding: 7px 8px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 6px;
  color: #101828;
  background: #fff;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.035);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.14;
  text-align: center;
  cursor: default;
}

button.lesson {
  font: inherit;
}

.lesson span,
.lesson small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson span {
  font-weight: 900;
}

.lesson small {
  color: #344054;
  font-size: 9.5px;
  font-weight: 730;
}

.lesson.blue {
  background: #edf6ff;
  border-color: #cfe4ff;
}

.lesson.pink {
  background: #fff0f5;
  border-color: #ffd3e0;
}

.lesson.yellow {
  background: #fff7df;
  border-color: #f6df99;
}

.lesson.purple {
  background: #f2ecff;
  border-color: #ded1ff;
}

.lesson.green {
  background: #eef9eb;
  border-color: #cae9c1;
}

.lesson.accepted {
  background: #eaf8ef;
  border-color: #caead6;
}

.takeover-lesson {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.takeover-lesson:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.09);
}

.takeover-lesson.is-selected {
  border-color: var(--dept-work);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dept-work) 46%, transparent), 0 7px 14px rgba(0, 110, 67, 0.12);
}

.takeover-lesson.is-not-selected {
  opacity: 0.52;
  background: rgba(248, 250, 252, 0.86);
}

.takeover-lesson.is-not-selected .icon {
  opacity: 0;
}

.lesson .icon {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 14px;
  height: 14px;
  color: var(--dept-work);
  transform: translateY(-50%);
}

.lesson.pink .icon,
.lesson.purple .icon {
  color: var(--dept-work);
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  margin-top: auto;
  padding: 10px 18px 14px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

.schedule-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #344054;
  font-size: 11px;
  font-weight: 760;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.blue {
  background: #9fcfff;
}

.dot.pink {
  background: #f7b7cc;
}

.dot.yellow {
  background: #f1cf65;
}

.dot.purple {
  background: #c7a8ff;
}

.schedule-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 242px;
  margin: 0 18px 8px;
  padding: 24px;
  color: #52627c;
  border: 1px dashed rgba(16, 24, 40, 0.18);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.72);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.setup-header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.replacement-form {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) minmax(145px, 0.8fr) auto minmax(145px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px 18px 8px;
}

.replacement-teacher {
  min-width: 0;
}

.date-arrow,
.duration-note {
  align-self: center;
  color: #52627c;
  font-size: 12px;
  font-weight: 850;
}

.duration-note {
  white-space: nowrap;
}

.radio-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.radio-row legend {
  margin-right: 2px;
  padding: 0;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #344054;
  font-size: 11px;
  font-weight: 850;
}

.radio-row input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--dept-work);
}

.subsection-title {
  align-items: end;
  min-height: 62px;
  padding-top: 8px;
}

.subsection-title h3 {
  margin: 0;
  color: #07132c;
  font-size: 14px;
  line-height: 1.1;
}

.subsection-title p {
  margin: 6px 0 0;
  color: #52627c;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding: 14px 18px 18px;
}

.cancel-button {
  min-width: 104px;
}

.save-button {
  min-width: 160px;
  color: #fff;
  border-color: transparent;
  background: var(--dept-work);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--dept-work) 22%, transparent);
}

@media (max-width: 1500px) {
  .list-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .tab-row {
    width: fit-content;
  }

  .replacement-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1240px) {
  .replacement-form {
    grid-template-columns: minmax(220px, 1fr) minmax(145px, 0.8fr) auto minmax(145px, 0.8fr) auto;
  }
}

@media (max-width: 1040px) {
  .replacement-page {
    padding-top: 0;
  }

  .page-header {
    padding-left: 0;
  }

  .profile {
    margin-right: 0;
  }

  .list-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: calc(100vw - 16px);
    overflow: hidden;
  }

  .page-header > div {
    max-width: 100%;
    min-width: 0;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .page-header p {
    max-width: 340px;
    font-size: 13px;
  }

  .profile {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
  }

  .profile-details {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .list-toolbar {
    gap: 12px;
    padding: 14px 12px 12px;
  }

  .tab-row {
    display: flex;
    width: 100%;
  }

  .tab-button {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .list-filters {
    grid-template-columns: 1fr;
  }

  .absence-list {
    min-width: 860px;
  }

  .panel-header,
  .setup-header,
  .subsection-title {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 12px 10px;
  }

  .panel-actions {
    justify-content: flex-start;
  }

  .panel-actions .ghost-button {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
  }

  .week-grid {
    grid-template-columns: 52px repeat(5, 112px);
    min-width: 612px;
    padding: 0 12px 8px;
  }

  .takeover-grid {
    grid-template-columns: 52px repeat(5, 122px);
    min-width: 662px;
  }

  .replacement-form {
    grid-template-columns: 1fr;
    padding: 14px 12px 8px;
  }

  .date-arrow,
  .duration-note {
    display: none;
  }

  .radio-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .schedule-legend,
  .form-actions {
    padding-right: 12px;
    padding-left: 12px;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .cancel-button,
  .save-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .replacement-page {
    gap: 9px;
  }

  .list-toolbar {
    padding-top: 12px;
  }

  .tab-button {
    font-size: 11px;
  }

  .absence-list {
    min-width: 820px;
  }

  .absence-list td,
  .absence-list th {
    padding-right: 10px;
    padding-left: 10px;
  }

  .panel-actions {
    width: 100%;
  }

  .panel-actions .ghost-button {
    flex: 1 1 auto;
  }

  .schedule-scroll {
    scrollbar-width: thin;
  }
}

/* Live vervangingsbeheer */
.replacement-combobox {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  min-height: 38px;
  overflow: visible;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.replacement-name-input {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #142033;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.replacement-name-input::placeholder {
  color: #667085;
  opacity: 1;
}

.replacement-suggest-button {
  display: grid;
  place-items: center;
  color: #344054;
  border-left: 1px solid rgba(16, 24, 40, 0.08);
  background: transparent;
}

.replacement-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(16, 24, 40, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15);
}

.replacement-suggestions button {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 9px 10px;
  color: #142033;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.replacement-suggestions button:hover,
.replacement-suggestions button:focus-visible {
  background: rgba(0, 110, 67, 0.08);
}

.replacement-suggestions strong {
  font-size: 12px;
  font-weight: 900;
}

.replacement-suggestions small {
  color: #667085;
  font-size: 10px;
  font-weight: 780;
}

.absence-list tr.selectable-row {
  cursor: pointer;
}

.absence-list tr.selected td {
  background: color-mix(in srgb, var(--dept-work) 7%, #fff);
}

.absence-list .radio-dot.active {
  border-color: var(--dept-work);
  box-shadow: inset 0 0 0 4px #fff;
  background: var(--dept-work);
}

.lesson-cell {
  display: grid;
  gap: 4px;
  min-height: 54px;
}

.lesson-cell.empty {
  border: 1px dashed rgba(16, 24, 40, 0.08);
  border-radius: 6px;
  background: rgba(248, 250, 252, 0.42);
}

.lesson-cell .lesson {
  min-height: 50px;
}

.lesson.task {
  background: #f8fafc;
  border-color: #dbe3ef;
}

.lesson.duty {
  background: #eef9eb;
  border-color: #cae9c1;
}

.lesson.replacement-existing {
  border-style: dashed;
  background: #f7f3ff;
  border-color: #d7c4ff;
}

/* Vervanging: weeknavigatie en selectie zonder vinkjes */
.schedule-week-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: #25324d;
  font-size: 12px;
  font-weight: 850;
}

.takeover-grid .lesson .icon {
  display: none;
}

.takeover-lesson.is-selected {
  background: #eaf8ef;
}

@media (max-width: 920px) {
  .schedule-week-actions {
    justify-content: flex-start;
  }
}

/* Vervanging: verbeterde roosterweergave en periodegebonden selectie */
.replacement-workspace {
  gap: 14px;
}

.schedule-card,
.setup-card {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.panel-header,
.setup-header,
.subsection-title {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.74));
}

.panel-header,
.setup-header {
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.panel-header h2,
.setup-header h2 {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.schedule-scroll {
  padding: 12px 0 10px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.55), rgba(255, 255, 255, 0));
}

.week-grid {
  gap: 8px;
  padding: 0 16px 12px;
}

.day-head,
.time-head {
  position: sticky;
  top: 0;
  z-index: 1;
}

.day-head {
  min-height: 42px;
  padding: 6px 6px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.035);
}

.day-head strong {
  display: block;
  color: #12203a;
  font-size: 11px;
  font-weight: 950;
}

.day-head span {
  display: inline-flex;
  justify-content: center;
  min-width: 58px;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #52627c;
  font-size: 10px;
  font-weight: 850;
}

.takeover-grid .day-head.is-template-day span {
  color: #006e43;
  background: color-mix(in srgb, var(--dept-work) 14%, #fff);
}

.takeover-grid .day-head.is-repeating-day span {
  color: #475467;
  background: #f2f4f7;
}

.day-head.out-of-period,
.lesson-cell.out-of-period {
  opacity: 0.42;
}

.time-slot {
  align-self: stretch;
  min-height: 58px;
  padding: 0 8px 0 0;
  border-right: 1px solid rgba(16, 24, 40, 0.06);
}

.lesson-cell {
  min-height: 58px;
  padding: 2px;
  border-radius: 9px;
}

.takeover-grid .lesson-cell.template-window {
  background: color-mix(in srgb, var(--dept-work) 4%, transparent);
}

.takeover-grid .lesson-cell.repeating-window {
  background: rgba(248, 250, 252, 0.62);
}

.lesson-cell.empty {
  min-height: 58px;
  border-radius: 9px;
  background: rgba(248, 250, 252, 0.56);
}

.lesson {
  align-content: start;
  min-height: 58px;
  padding: 8px 9px;
  border-radius: 9px;
  text-align: left;
}

.lesson-subject,
.lesson-classes,
.lesson-room {
  display: block;
}

.lesson-subject {
  color: #101828;
  font-size: 10.8px;
  font-weight: 950;
  line-height: 1.15;
}

.lesson-classes {
  margin-top: 3px;
  color: #25324d;
  font-size: 10px;
  font-weight: 850;
}

.lesson-room {
  margin-top: 3px;
  color: #667085;
  font-size: 9.5px;
  font-weight: 760;
}

.takeover-lesson.is-selected {
  border-color: var(--dept-work);
  background: #eaf8ef;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--dept-work) 48%, transparent), 0 7px 15px rgba(0, 110, 67, 0.1);
}

.takeover-lesson.is-not-selected {
  opacity: 0.5;
  border-color: rgba(16, 24, 40, 0.1);
  background: rgba(248, 250, 252, 0.88);
}

.takeover-lesson.is-locked {
  cursor: not-allowed;
}

.takeover-lesson.is-locked:hover {
  transform: none;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.035);
}

.takeover-lesson.is-locked.is-selected {
  opacity: 0.86;
  border-style: dashed;
}

.replacement-form {
  align-items: end;
  padding-top: 16px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
  background: rgba(255, 255, 255, 0.56);
}

.replacement-combobox,
.input-button,
.select-shell,
.search-box {
  border-radius: 9px;
}

.radio-row {
  padding: 8px 10px;
  border: 1px solid rgba(16, 24, 40, 0.07);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.78);
}

.subsection-title {
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}

.subsection-title p {
  max-width: 620px;
}

.form-actions {
  border-top: 1px solid rgba(16, 24, 40, 0.06);
  background: rgba(248, 250, 252, 0.46);
}


/* Vervanging: compacte weekselector < datum - datum > */
.week-range-control {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.week-range-label {
  min-width: 150px;
  padding: 8px 13px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
  color: #25324d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.week-range-control .square-button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .week-range-control {
    width: 100%;
    justify-content: flex-start;
  }

  .week-range-label {
    min-width: 0;
    flex: 1;
  }
}
