/* Occupancy portal (Branche Verein) */

/* The Bootstrap build of the core sets the backdrop opacity to "none" (invalid, so fully black). */
.modal-backdrop {
  --bs-backdrop-opacity: 0.5;
}

.portal-narrow {
  max-width: 26rem;
  margin: 2rem auto;
}

.portal-swatch {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 1px solid rgb(0 0 0 / 15%);
}

.portal-scroll-menu {
  max-height: 50vh;
  overflow-y: auto;
}

.portal-plan {
  table-layout: fixed;
  min-width: 56rem;
}

.portal-plan-object {
  width: 13rem;
  background-color: var(--bs-tertiary-bg);
}

.portal-plan-cell {
  height: 4.5rem;
  padding: 0.25rem !important;
}

.portal-free {
  cursor: copy;
}

.portal-free:hover {
  background-color: var(--bs-tertiary-bg);
}

.portal-today {
  background-color: rgba(var(--bs-primary-rgb), 0.06);
}

.portal-chip {
  --portal-color: var(--bs-secondary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 0.25rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--portal-color);
  border-radius: var(--bs-border-radius-sm);
  background-color: var(--bs-secondary-bg);
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: left;
}

button.portal-chip {
  cursor: pointer;
}

.portal-chip-own {
  font-weight: 600;
}

/* Legend below the plan: chips side by side, only as wide as their text. */
.portal-legend-chips .portal-chip {
  width: auto;
  margin-bottom: 0;
}

.portal-chip-requested {
  border-style: dashed;
  border-width: 2px;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.portal-chip-time {
  font-variant-numeric: tabular-nums;
}

.portal-chip-text {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-object-card {
  border-top: 4px solid var(--portal-color, var(--bs-primary));
}

.portal-team {
  font-size: 0.85rem;
}

.portal-team-name {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 11rem;
  background-color: var(--bs-body-bg) !important;
  white-space: nowrap;
}

.portal-team-day,
.portal-team-cell {
  min-width: 2.1rem;
  padding: 0.2rem !important;
}

.portal-team-cell {
  cursor: pointer;
}

.portal-team-cell:hover,
.portal-team-cell:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: -2px;
}

.portal-training {
  box-shadow: inset 0 3px 0 var(--bs-primary);
}

.portal-absence-vacation {
  background-color: rgba(var(--bs-info-rgb), 0.25) !important;
}

.portal-absence-sick {
  background-color: rgba(var(--bs-danger-rgb), 0.2) !important;
}

.portal-absence-other {
  background-color: rgba(var(--bs-secondary-rgb), 0.2) !important;
}

.portal-legend {
  display: inline-block;
  width: 1rem;
  height: 0.8rem;
  vertical-align: middle;
  border: 1px solid var(--bs-border-color);
}
