.schedule-table .shift-wish-card:has(.shift-zone-segments):not(.shift-wish-inspection) > :is(.shift-wish-time, .shift-metainfo),
.schedule-table .shift-wish-card.shift-wish-inspection > .shift-zone-segments {
  display: none;
}

.shift-wish-card > .shift-zone-segments {
  position: absolute;
  inset: 0;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  pointer-events: none;
}

.shift-zone-segments {
  display: grid;
  gap: 1px;
  container-type: inline-size;
}

.shift-zone-segment {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 2px;
  padding: 0 3px;
  background: var(--zone-bg);
  color: var(--zone-ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.schedule-page .schedule-table .shift-zone-segment strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  line-height: 1.1;
}

.schedule-page .schedule-table .shift-zone-segment small {
  font-size: 9px;
  line-height: 1.1;
  opacity: 1;
}

.shift-segment-label {
  min-width: 0;
  margin-inline-start: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shift-segment-more {
  flex: none;
  margin-inline-start: auto;
  color: var(--text);
}

@container (max-width: 74px) {
  .shift-zone-segment .shift-segment-label { display: none; }
}

.shift-zone-details {
  display: grid;
  gap: 4px;
  margin-block: 12px;
}

.shift-zone-details .shift-zone-segment {
  padding: 6px 9px;
  gap: 10px;
  border-radius: 5px;
}

.team-table-shift .shift-zone-segment {
  min-height: 18px;
  padding-inline: 4px;
}

.team-shift-zones > summary {
  display: block;
  cursor: pointer;
}

.team-shift-zones > summary::-webkit-details-marker {
  display: none;
}

.segment-zone-field {
  margin-bottom: 12px;
}

.quick-shift-form .segment-time-fields {
  display: none;
}
