/* Shift colors and availability use separate indicators. */
#month-viewport.volunteer-board {
  --shift-grid: #ded6d7;
  --shift-date: #fffcfa;
  --available-ink: #fff;
  --available-bg: #a32232;
  --available-soft: #fce7e8;
  --full-bg: #e0f2e4;
  --full-ink: #165132;
  --event-ink: #68163d;
  --event-bg: #f8e7ef;
  scrollbar-gutter: stable;
}

.volunteer-board .period-early {
  --shift-head: #f4ce65;
  --shift-ink: #392600;
  --shift-bg: #fff2ca;
  --shift-muted: #fcf8ea;
}
.volunteer-board .period-middle {
  --shift-head: #94c9ea;
  --shift-ink: #123b56;
  --shift-bg: #ebf5fc;
  --shift-muted: #f3f8fc;
}
.volunteer-board .period-late {
  --shift-head: #c4a9e5;
  --shift-ink: #31204b;
  --shift-bg: #f1e9fa;
  --shift-muted: #f8f4fc;
}

#month-viewport.volunteer-board .month-table {
  font-size: 14px;
  line-height: 1.25;
}
#month-viewport.volunteer-board .shift-date-col { width: 124px; }
#month-viewport.volunteer-board .month-table :is(th, td) { border: 1px solid var(--shift-grid); }

#month-viewport.volunteer-board .month-table thead th {
  padding: 10px 5px;
  font-size: 17px;
  font-weight: 800;
}
#month-viewport.volunteer-board .date-head {
  background: #460e28;
  color: #fff;
  border-bottom: 3px solid #460e28;
}
#month-viewport.volunteer-board .month-table .period-head {
  background: var(--shift-head);
  color: var(--shift-ink);
  border-bottom: 3px solid var(--shift-ink);
}
#month-viewport.volunteer-board .month-table .period-start {
  border-inline-start: 2px solid #c0b2bc;
}

#month-viewport.volunteer-board .month-table .shift-date-cell {
  padding: 7px 8px;
  text-align: left;
  vertical-align: middle;
  background: var(--shift-date);
  color: var(--ink);
}
.shift-date-cell time {
  display: block;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.shift-date-cell [aria-current="date"] {
  color: #87134c;
}
.shift-date-cell :is(.day-free, .day-full, .day-event, .day-closed) {
  display: table;
  max-width: 100%;
  margin-top: 4px;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.shift-date-cell .day-free {
  background: var(--available-soft);
  color: #84222c;
}
.shift-date-cell .day-full {
  background: var(--full-bg);
  color: var(--full-ink);
}
body[data-page="schichtplan"] .month-legend i:not(.legend-mine) {
  background: #fce7e8;
  border-color: #a32232;
}
.shift-date-cell .day-event {
  background: var(--event-bg);
  color: var(--event-ink);
}
.shift-date-cell .day-closed {
  background: #efeaeb;
  color: #5a4b53;
}

#month-viewport.volunteer-board .month-table td {
  text-align: center;
  vertical-align: middle;
  background: var(--shift-muted, #faf7f6);
}
#month-viewport.volunteer-board .month-table td.cell-free {
  background: var(--shift-bg);
}
#month-viewport.volunteer-board .month-table td.no-slot {
  background: #f7f4f4;
  color: #75696d;
}
#month-viewport.volunteer-board .month-table .month-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 5px 3px;
  gap: 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: inherit;
  text-align: center;
  box-shadow: none;
}
#month-viewport.volunteer-board .month-table button.month-cell:focus-visible { outline-offset: -4px; }
#month-viewport.volunteer-board .month-table .slot-status {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.1;
}
#month-viewport.volunteer-board .month-table .cell-free .slot-status {
  padding: 3px 10px 4px;
  border-radius: 12px;
  color: var(--available-ink);
  background: var(--available-bg);
  font-weight: 800;
}
#month-viewport.volunteer-board .month-table .cell-free .slot-status::before { content: none; }
#month-viewport.volunteer-board .month-table :is(.cell-taken, .cell-past) .slot-status {
  color: #685b60;
  font-weight: 650;
}
#month-viewport.volunteer-board .month-table .cell-mine .slot-status { color: #68163d; }
#month-viewport.volunteer-board .month-table .slot-time {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #584e51;
}

@media (hover: hover) {
  #month-viewport.volunteer-board .month-table button.month-cell:hover:not(:disabled) {
    box-shadow: inset 0 0 0 2px var(--shift-ink);
  }
}
@media (max-width: 600px) {
  #month-viewport.volunteer-board { scrollbar-gutter: auto; }
}