.planning-page {
  display: grid;
  gap: 12px;
  min-width: 0;
  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 {
  margin: 8px 0 0;
  color: #52627c;
  font-size: 15px;
  font-weight: 560;
}

.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;
}

.planning-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 18px;
}

.square-button,
.date-button,
.today-button,
.roster-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  color: #142033;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

.square-button {
  width: 42px;
  padding: 0;
}

.date-button {
  position: relative;
  gap: 28px;
  min-width: 224px;
  padding: 0 38px 0 14px;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

.date-button .icon {
  position: absolute;
  top: 50%;
  right: 14px;
  margin-left: 0;
  transform: translateY(-50%);
}

.date-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.today-button {
  min-width: 74px;
  padding: 0 14px;
  color: var(--dept-design);
}

.roster-button {
  gap: 8px;
  min-width: 152px;
  padding: 0 14px;
  color: var(--dept-work);
  text-decoration: none;
}

.planning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.planner-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.planning-summary,
.supervisor-availability,
.planner-board-card,
.assignment-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.planning-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 86px;
  overflow: hidden;
}

.summary-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-content: center;
  column-gap: 12px;
  padding: 14px 18px;
  border-right: 1px solid rgba(16, 24, 40, 0.09);
}

.summary-item:last-child {
  border-right: 0;
}

.summary-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.summary-item span:not(.summary-icon) {
  color: #344054;
  font-size: 12px;
  font-weight: 650;
}

.summary-item strong {
  margin-top: 6px;
  color: #07132c;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
}

.summary-icon.blue {
  color: var(--dept-design);
  background: color-mix(in srgb, var(--dept-design) 12%, #fff);
}

.summary-icon.green {
  color: var(--dept-work);
  background: color-mix(in srgb, var(--dept-work) 12%, #fff);
}

.summary-icon.cyan {
  color: var(--dept-design);
  background: color-mix(in srgb, var(--dept-design) 13%, #fff);
}

.summary-icon.success {
  color: var(--dept-stem);
  background: color-mix(in srgb, var(--dept-stem) 14%, #fff);
}

.summary-icon.danger {
  color: var(--dept-business);
  background: color-mix(in srgb, var(--dept-business) 14%, #fff);
}

.progress-item i {
  grid-column: 2;
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #ccd7ea;
}

.progress-item b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--dept-design);
}

.supervisor-availability {
  overflow: hidden;
}

.supervisor-availability header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px 10px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.supervisor-availability header > div {
  min-width: 0;
}

.supervisor-availability h2 {
  margin: 0;
  color: #07132c;
  font-size: 15px;
  line-height: 1.1;
}

.supervisor-availability p {
  margin: 5px 0 0;
  color: #52627c;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.availability-settings-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  flex: 0 0 auto;
  color: var(--dept-design);
  border: 1px solid color-mix(in srgb, var(--dept-design) 22%, transparent);
  border-radius: 6px;
  background: #edf6ff;
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.availability-settings-link:hover {
  border-color: color-mix(in srgb, var(--dept-design) 44%, transparent);
  background: #e1f1ff;
}

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

.availability-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(108px, 1fr));
  gap: 0;
  min-width: 1040px;
  border-left: 1px solid rgba(16, 24, 40, 0.13);
}

.availability-slot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 118px;
  padding: 10px;
  border-right: 1px solid rgba(16, 24, 40, 0.13);
  background: rgba(255, 255, 255, 0.64);
}

.availability-slot:last-child {
  border-right: 0;
}

.availability-status {
  display: grid;
  place-items: center;
  min-height: 26px;
  color: #07132c;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
}

.availability-status.is-low {
  color: #b45309;
}

.availability-status.is-empty {
  color: #dc2626;
}

.supervisor-chips {
  display: grid;
  align-items: start;
  justify-items: center;
  gap: 5px;
  min-height: 54px;
}

.supervisor-person {
  display: inline-flex;
  align-items: center;
  align-self: start;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  min-height: 19px;
  padding: 2px 4px 2px 6px;
  overflow: hidden;
  color: #0b3973;
  border: 1px solid rgba(11, 114, 255, 0.1);
  border-radius: 999px;
  background: rgba(11, 114, 255, 0.08);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.supervisor-person.is-unavailable {
  color: #667085;
  border-color: rgba(102, 112, 133, 0.15);
  background: rgba(248, 250, 252, 0.95);
}

.supervisor-person b {
  min-width: 0;
  overflow: hidden;
  font: inherit;
  text-overflow: ellipsis;
}

.supervisor-person em {
  flex: 0 0 auto;
  padding: 2px 5px;
  color: #9f1239;
  border-radius: 999px;
  background: #fff1f2;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.supervisor-person.is-assigned:not(.is-sick) em {
  color: #475467;
  background: #eef2f7;
}

.supervisor-state {
  position: relative;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.82);
}

.supervisor-state.available {
  background: var(--dept-stem);
}

.supervisor-state.unavailable {
  background: #94a3b8;
}

.supervisor-chips:empty::before {
  content: "Geen geselecteerd";
  color: #7b879a;
  font-size: 10px;
  font-weight: 800;
}

.supervisor-picker {
  display: none;
}

.supervisor-picker summary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 8px;
  color: #25324d;
  border: 1px solid rgba(16, 24, 40, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.supervisor-picker summary::-webkit-details-marker {
  display: none;
}

.supervisor-picker summary::after {
  content: "+";
  margin-left: 5px;
  color: var(--dept-design);
  font-size: 12px;
  font-weight: 950;
}

.supervisor-menu {
  margin-top: 7px;
  padding: 8px;
  border: 1px solid rgba(16, 24, 40, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.supervisor-search {
  display: grid;
  gap: 5px;
}

.supervisor-search span {
  color: #52627c;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.supervisor-search input {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  color: #07132c;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 6px;
  background: rgba(248, 250, 252, 0.95);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
}

.supervisor-options {
  display: grid;
  gap: 6px;
  max-height: 154px;
  margin-top: 8px;
  overflow-y: auto;
}

.supervisor-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #25324d;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.supervisor-empty {
  margin: 0;
  color: #7b879a;
  font-size: 10px;
  font-weight: 800;
}

.supervisor-options input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--dept-design);
}

.supervisor-options input[type="checkbox"]:focus-visible,
.supervisor-search input:focus,
.supervisor-picker summary:focus {
  outline: 3px solid color-mix(in srgb, var(--dept-design) 20%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--dept-design) 52%, transparent);
}

.planner-board-card {
  overflow: hidden;
}

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

.capacity-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(9, minmax(108px, 1fr));
  background: rgba(255, 255, 255, 0.72);
}

.capacity-cell {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 54px;
  padding: 7px 10px;
  border-right: 1px solid rgba(16, 24, 40, 0.13);
  border-bottom: 1px solid rgba(16, 24, 40, 0.1);
}

.capacity-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 6px;
  align-items: center;
  min-width: 0;
  color: #172946;
  font-size: 10px;
  font-weight: 850;
}

.capacity-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capacity-line b {
  font-size: 10px;
  line-height: 1;
}

.capacity-line i {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe4ef;
}

.capacity-line em {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--dept-stem);
}

.capacity-line.bluebox em {
  background: var(--dept-design);
}

.capacity-line.cbox em {
  background: #64748b;
}

.capacity-line.is-warning b,
.capacity-line.is-warning span {
  color: #b45309;
}

.capacity-line.is-warning em {
  background: var(--dept-it);
}

.capacity-line.is-over b,
.capacity-line.is-over span {
  color: var(--dept-business);
}

.capacity-line.is-over em {
  background: var(--dept-business);
}

.planner-board {
  display: grid;
  grid-template-columns: repeat(9, minmax(108px, 1fr));
  min-width: 1040px;
  border-left: 1px solid rgba(16, 24, 40, 0.13);
}

.lesson-head,
.board-cell {
  border-right: 1px solid rgba(16, 24, 40, 0.13);
  border-bottom: 1px solid rgba(16, 24, 40, 0.1);
}

.lesson-head {
  min-height: 66px;
  background: rgba(248, 250, 252, 0.78);
}

.lesson-head {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  text-align: center;
}

.lesson-head strong {
  color: #101828;
  font-size: 12px;
  font-weight: 950;
}

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

.board-cell {
  min-height: 110px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.64);
}

.board-cell.empty {
  background: rgba(255, 255, 255, 0.36);
}

.board-cell.is-hidden {
  display: none;
}

.absence-card-plan {
  position: relative;
  display: grid;
  align-content: start;
  height: 96px;
  min-height: 96px;
  padding: 10px 10px 9px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.absence-card-plan:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.08);
}

.absence-card-plan:focus-visible {
  outline: 3px solid rgba(11, 114, 255, 0.22);
  outline-offset: 2px;
}

.absence-card-plan strong,
.absence-card-plan span,
.absence-card-plan em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.absence-card-plan strong {
  margin-bottom: 5px;
  color: #08172f;
  font-size: 11px;
  font-weight: 950;
}

.absence-card-plan.has-supervisor-assigned strong {
  color: #667085;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(102, 112, 133, 0.72);
}

.absence-card-plan span,
.absence-card-plan em {
  color: #172946;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 680;
}

.absence-card-plan .card-supervisor {
  display: block;
  min-width: 0;
  margin: -2px 0 5px;
  overflow: hidden;
  color: #047857;
  font-size: 10.5px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.absence-card-plan em {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 850;
}

.absence-card-plan .icon {
  position: absolute;
  right: 8px;
  bottom: 8px;
}

.absence-card-plan.danger {
  background: #fff0f0;
}

.absence-card-plan.is-missing-solution {
  border-color: rgba(255, 51, 85, 0.22);
}

.absence-card-plan.is-missing-supervisor {
  border-color: rgba(255, 51, 85, 0.25);
}

.absence-card-plan.is-solved {
  border-color: rgba(22, 163, 74, 0.18);
}

.absence-card-plan.selected {
  border-color: color-mix(in srgb, var(--dept-design) 44%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dept-design) 22%, transparent), 0 10px 22px color-mix(in srgb, var(--dept-design) 12%, transparent);
}

.absence-card-plan.bluebox {
  background: #edf6ff;
}

.absence-card-plan.cbox {
  background: #f8fafc;
}

.absence-card-plan.outside {
  background: #fffbeb;
}

.absence-card-plan.room {
  background: #f7efff;
}

.absence-card-plan.neutral {
  background: #f8fbfa;
}

.absence-card-plan.supervise {
  background: #fffaf0;
}

.absence-card-plan.lunch,
.absence-card-plan.early {
  background: #ecfdf5;
}

.absence-card-plan.late {
  background: #ecfdf5;
}

.absence-card-plan.supervise em {
  color: var(--dept-it);
}

.absence-card-plan.outside em {
  color: #ca8a04;
}

.absence-card-plan.lunch em,
.absence-card-plan.early em,
.absence-card-plan.late em {
  color: var(--dept-stem);
}

.absence-card-plan.cbox em {
  color: #475467;
}

.absence-card-plan .card-state-icon {
  width: 18px;
  height: 18px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.1);
  stroke-width: 2.35;
}

.absence-card-plan .card-state-icon.warning {
  color: var(--dept-business);
  background: #fff5f6;
}

.absence-card-plan .card-state-icon.success {
  color: var(--dept-stem);
  background: #effaf4;
}

.board-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  padding: 11px 18px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

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

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.blue {
  background: var(--dept-design);
}

.legend-dot.green {
  background: var(--dept-work);
}

.legend-dot.gray {
  background: #64748b;
}

.legend-dot.yellow {
  background: var(--dept-it);
}

.legend-dot.purple {
  background: var(--dept-care);
}

.legend-dot.teal {
  background: var(--dept-design);
}

.legend-dot.slate {
  background: #64748b;
}

.legend-dot.red {
  background: var(--dept-business);
}

.legend-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
}

.legend-icon.blue {
  color: var(--dept-design);
}

.legend-icon.gray {
  color: #64748b;
}

.legend-icon.orange {
  color: var(--dept-it);
}

.legend-icon.yellow {
  color: var(--dept-it);
}

.legend-icon.green {
  color: var(--dept-stem);
}

.legend-icon.red {
  color: var(--dept-business);
}

.updated-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  margin: 0;
  padding: 6px 10px 6px 8px;
  color: #52627c;
  border: 1px solid rgba(11, 114, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 760;
}

.updated-line .icon {
  width: 18px;
  height: 18px;
  padding: 3px;
  color: var(--dept-design);
  border-radius: 50%;
  background: rgba(230, 241, 255, 0.98);
  box-shadow: 0 0 0 3px rgba(230, 241, 255, 0.45);
  stroke-width: 2.6;
}

.assignment-panel {
  position: sticky;
  top: 10px;
  display: grid;
  gap: 16px;
  padding: 18px 16px;
}

.assignment-content {
  display: grid;
  gap: 16px;
}

.empty-selection {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 22px;
  color: #52627c;
  border: 1px dashed rgba(16, 24, 40, 0.16);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.72);
  text-align: center;
}

.empty-selection strong {
  color: #07132c;
  font-size: 16px;
}

.empty-selection span {
  max-width: 230px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.45;
}

.assignment-panel.is-empty .assignment-content {
  display: none;
}

.assignment-panel:not(.is-empty) .empty-selection {
  display: none;
}

.assignment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.assignment-header h2 {
  margin: 0;
  color: #07132c;
  font-size: 20px;
  line-height: 1.15;
}

.assignment-header p {
  margin: 8px 0 0;
  color: #344054;
  font-size: 13px;
  font-weight: 760;
}

.assignment-header button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #07132c;
  border-radius: 6px;
  background: transparent;
}

.detail-section h3 {
  margin: 0 0 12px;
  color: #07132c;
  font-size: 13px;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
}

.detail-list dt,
.detail-list dd {
  margin: 0;
  font-size: 12px;
  font-weight: 680;
}

.detail-list dt {
  color: #667085;
}

.detail-list dd {
  color: #101828;
}

.room-editor {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.room-editor.is-hidden {
  display: none;
}

.room-editor span {
  color: #667085;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.room-editor input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  color: #07132c;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 6px;
  background: rgba(248, 250, 252, 0.95);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.room-editor input:focus {
  outline: 3px solid color-mix(in srgb, var(--dept-design) 20%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--dept-design) 52%, transparent);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: var(--dept-business);
  border: 1px solid color-mix(in srgb, var(--dept-business) 36%, #fff);
  border-radius: 5px;
  background: #fff1f2;
  font-size: 11px;
  font-weight: 850;
}

.status-pill.status-blue {
  color: var(--dept-design);
  border-color: color-mix(in srgb, var(--dept-design) 22%, transparent);
  background: #edf6ff;
}

.status-pill.status-green {
  color: var(--dept-work);
  border-color: rgba(26, 159, 111, 0.22);
  background: #effaf4;
}

.status-pill.status-green::before {
  content: "";
  width: 6px;
  height: 10px;
  margin-right: 7px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.status-pill.status-orange {
  color: var(--dept-it);
  border-color: color-mix(in srgb, var(--dept-it) 24%, transparent);
  background: #fff7ed;
}

.status-pill.status-purple {
  color: var(--dept-care);
  border-color: color-mix(in srgb, var(--dept-care) 22%, transparent);
  background: #f8f0ff;
}

.status-pill.status-neutral {
  color: #475467;
  border-color: rgba(102, 112, 133, 0.18);
  background: #f8fafc;
}

.solution-list {
  display: grid;
  gap: 8px;
}

.solution-option {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 42px;
  padding: 12px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 6px;
  background: #f8fafc;
  cursor: pointer;
}

.solution-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.solution-option > span:first-of-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 950;
}

.solution-option small {
  color: #667085;
  font-size: 11px;
  font-weight: 650;
}

.solution-option .check {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--dept-design);
  display: none;
}

.solution-option.active .check {
  display: block;
}

.solution-option.blue {
  color: var(--dept-design);
  background: #edf6ff;
}

.solution-option.green {
  color: var(--dept-work);
  background: #effaf4;
}

.solution-option.supervise {
  color: var(--dept-it);
  background: #fff7ed;
}

.solution-option.gray {
  color: #475467;
  background: #f8fafc;
}

.solution-option.yellow {
  color: #b77900;
  background: #fffbeb;
}

.solution-option.success {
  color: var(--dept-stem);
  background: #effaf4;
}

.solution-option.muted {
  color: #667085;
}

.solution-option.active {
  border-color: color-mix(in srgb, var(--dept-design) 28%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dept-design) 15%, transparent);
}

.chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #172946;
}

.chip-row b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 760;
}

.chip-row i {
  color: #667085;
  font-style: normal;
}

.select-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 0 9px;
  color: #172946;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 700;
}

.supervisor-assignment {
  display: grid;
  gap: 10px;
}

.supervisor-assignment.is-hidden {
  display: none;
}

.room-supervisors {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 6px;
  background: rgba(248, 250, 252, 0.72);
}

.room-supervisors > span,
.panel-supervisor-search span {
  color: #667085;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.panel-chip-list b,
.panel-supervisor-options button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(11, 114, 255, 0.1);
  border-radius: 999px;
  background: rgba(11, 114, 255, 0.08);
  color: #0b3973;
  font-size: 11px;
  font-weight: 850;
}

.panel-chip-list b {
  padding-right: 4px;
}

.panel-chip-list b span {
  min-width: 0;
}

.panel-chip-remove {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  color: #45617f;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.panel-chip-remove .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.panel-chip-remove:hover {
  color: var(--dept-business);
  background: #fff1f2;
}

.panel-chip-list:empty::before,
.panel-supervisor-options:empty::before {
  content: "Geen toezichters";
  color: #7b879a;
  font-size: 11px;
  font-weight: 760;
}

.panel-supervisor-picker summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  color: var(--dept-design);
  border: 1px solid color-mix(in srgb, var(--dept-design) 18%, transparent);
  border-radius: 6px;
  background: #edf6ff;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.panel-supervisor-picker summary::-webkit-details-marker {
  display: none;
}

.panel-supervisor-menu {
  display: grid;
  gap: 9px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.panel-supervisor-search {
  display: grid;
  gap: 6px;
}

.panel-supervisor-search input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  color: #07132c;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 6px;
  background: rgba(248, 250, 252, 0.95);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
}

.panel-supervisor-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 140px;
  overflow-y: auto;
}

.panel-supervisor-options button {
  cursor: pointer;
}

.panel-supervisor-options button:hover {
  border-color: rgba(11, 114, 255, 0.24);
  background: rgba(11, 114, 255, 0.13);
}

.panel-supervisor-options.has-empty::before {
  content: attr(data-empty);
}

.notes-field {
  display: grid;
  gap: 8px;
}

.notes-field > span {
  color: #172946;
  font-size: 12px;
  font-weight: 850;
}

.notes-field small {
  color: #667085;
  font-weight: 650;
}

.notes-helper {
  display: block;
  margin-top: -3px;
  color: #52627c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.notes-field textarea {
  width: 100%;
  min-height: 82px;
  padding: 12px;
  resize: vertical;
  color: #101828;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 12px;
}

.notes-field em {
  justify-self: end;
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  color: #fff;
  border-radius: 6px;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(11, 114, 255, 0.2);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 1500px) {
  .planning-layout {
    grid-template-columns: minmax(0, 1fr) 292px;
  }

  .capacity-grid,
  .planner-board {
    grid-template-columns: repeat(9, minmax(106px, 1fr));
  }

  .summary-item {
    padding: 12px 14px;
  }

  .summary-icon {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 1240px) {
  .planning-layout {
    grid-template-columns: 1fr;
  }

  .assignment-panel {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .empty-selection,
  .assignment-content {
    grid-column: 1 / -1;
  }

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

  .assignment-header,
  .notes-field,
  .supervisor-assignment,
  .save-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1040px) {
  .page-header,
  .planning-toolbar {
    padding-left: 0;
  }

  .profile {
    margin-right: 0;
  }

  .planning-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .availability-grid,
  .capacity-grid {
    grid-template-columns: repeat(9, minmax(108px, 1fr));
    min-width: 1040px;
  }

  .summary-item:nth-child(3) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .profile {
    min-width: 0;
  }

  .planning-toolbar {
    display: grid;
    grid-template-columns: 42px 42px minmax(0, 1fr);
  }

  .square-button,
  .date-button,
  .roster-button {
    width: 100%;
  }

  .date-button {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
    gap: 10px;
    padding: 0 38px 0 12px;
    justify-content: space-between;
  }

  .planning-toolbar .square-button:first-child {
    grid-column: 1;
    grid-row: 2;
  }

  .planning-toolbar .square-button[data-date-shift="1"] {
    grid-column: 2;
    grid-row: 2;
  }

  .today-button {
    grid-column: 3;
    grid-row: 2;
  }

  .roster-button {
    grid-column: 1 / -1;
    grid-row: 3;
  }


  .planning-summary {
    grid-template-columns: 1fr;
  }

  .summary-item {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  }

  .summary-item:last-child {
    border-bottom: 0;
  }

  .assignment-panel {
    grid-template-columns: 1fr;
  }

  .assignment-content {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .profile {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(16, 24, 40, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
  }

  .profile-details {
    overflow-wrap: anywhere;
  }

  .planning-toolbar {
    gap: 8px;
  }

  .planning-summary,
  .supervisor-availability,
  .planner-board-card,
  .assignment-panel {
    border-radius: 8px;
  }

  .supervisor-availability header {
    padding: 12px;
  }

  .availability-grid {
    grid-template-columns: repeat(9, 112px);
    min-width: 1008px;
  }

  .planner-board {
    grid-template-columns: repeat(9, 112px);
    min-width: 1008px;
  }

  .board-legend {
    gap: 10px;
    padding: 12px;
  }

  .assignment-panel {
    padding: 14px;
  }
}

.planning-empty-cell {
  grid-column: 1 / span 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.planning-empty-message {
  margin: 0;
  color: var(--muted, #64748b);
  font-weight: 700;
  text-align: center;
}
