.pitch-plan-filters .form-select {
  min-width: 8.5rem;
}

.pitch-plan-period-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.pitch-plan-period-nav__btn {
  flex: 0 0 2.35rem;
  width: 2.35rem;
  min-width: 2.35rem;
  padding-left: 0;
  padding-right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pitch-plan-period-nav__label {
  flex: 0 0 16.5rem;
  width: 16.5rem;
  max-width: calc(100vw - 7rem);
  margin: 0;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pitch-plan-period-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.pitch-plan-period-bar__today {
  flex-shrink: 0;
}

.pitch-plan-period-bar__hint {
  flex-shrink: 0;
}

.pitch-plan-day {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.pitch-plan-day__head {
  background: var(--ua-blue, #0a4ea3);
  color: #fff;
  padding: 0.65rem 1rem;
  font-weight: 600;
}

.pitch-plan-schedule {
  display: grid;
  grid-template-columns: 3.2rem 1fr 1fr;
  column-gap: 0.5rem;
  align-items: start;
  padding: 0.75rem;
  background: #f8faf8;
}

.pitch-plan-schedule__hours {
  position: relative;
  align-self: start;
  height: 8.5rem;
  min-height: 8.5rem;
}

.pitch-plan-schedule__column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.pitch-plan-schedule__graph {
  min-width: 0;
}

.pitch-plan-schedule__graph-hours {
  display: none;
}

.pitch-plan-schedule__graph-label {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pitch-plan-schedule__column.pitch-theme--nebenfeld .pitch-plan-schedule__graph-label {
  color: #1f6b3a;
}

.pitch-plan-schedule__column.pitch-theme--hauptfeld .pitch-plan-schedule__graph-label {
  color: #0a4ea3;
}

.pitch-plan-schedule__canvas {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 100% 25%;
  overflow: hidden;
  min-height: 8.5rem;
}

.pitch-plan-schedule__canvas.pitch-theme--nebenfeld {
  border-color: rgba(25, 135, 84, 0.22);
  background-color: rgba(25, 135, 84, 0.05);
}

.pitch-plan-schedule__canvas.pitch-theme--hauptfeld {
  border-color: rgba(10, 78, 163, 0.22);
  background-color: rgba(10, 78, 163, 0.05);
}

.pitch-plan-schedule__lane {
  min-height: 3.5rem;
  padding: 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
}

.pitch-plan-schedule__column.pitch-theme--nebenfeld .pitch-plan-schedule__lane {
  background: rgba(25, 135, 84, 0.05);
  border-color: rgba(25, 135, 84, 0.22);
}

.pitch-plan-schedule__column.pitch-theme--hauptfeld .pitch-plan-schedule__lane {
  background: rgba(10, 78, 163, 0.05);
  border-color: rgba(10, 78, 163, 0.22);
}

.pitch-plan-lane__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.pitch-plan-lane.pitch-theme--nebenfeld .pitch-plan-lane__title {
  color: #1f6b3a;
}

.pitch-plan-lane.pitch-theme--hauptfeld .pitch-plan-lane__title {
  color: #0a4ea3;
}

.pitch-plan-booking {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid #1f6b3a;
  border-radius: 0.5rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.5rem;
  background: #fff;
}

.pitch-plan-booking--conflict,
.pitch-graph-block--conflict {
  border-color: #dc3545 !important;
  background: #fff5f5 !important;
}

.pitch-plan-booking--training,
.pitch-graph-block.pitch-plan-booking--training {
  border-left-color: #198754;
  background: rgba(25, 135, 84, 0.16);
}

.pitch-plan-booking--game,
.pitch-graph-block.pitch-plan-booking--game {
  border-left-color: var(--ua-blue, #0a4ea3);
  background: rgba(10, 78, 163, 0.18);
}

.pitch-plan-booking--event,
.pitch-graph-block.pitch-plan-booking--event {
  border-left-color: var(--ua-accent, #f0a500);
  background: rgba(240, 165, 0, 0.2);
}

.pitch-plan-booking--manual,
.pitch-graph-block.pitch-plan-booking--manual {
  border-left-color: #fd7e14;
  background: rgba(253, 126, 20, 0.1);
}

.pitch-plan-booking__time,
.pitch-graph-block__time {
  font-size: 0.78rem;
  color: #6c757d;
}

.pitch-plan-booking__title,
.pitch-graph-block__title {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
}

.pitch-plan-booking__meta {
  font-size: 0.75rem;
  color: #6c757d;
}

.pitch-plan-booking__actions {
  margin-top: 0.5rem;
}

.pitch-plan-booking__main {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.pitch-plan-booking__content {
  flex: 1 1 auto;
  min-width: 0;
}

.pitch-booking-zone-icon {
  flex: 0 0 auto;
  display: inline-flex;
  margin-top: 0.05rem;
}

.pitch-field-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.pitch-field-card__head .pitch-field-card__title {
  margin-bottom: 0;
}

.pitch-field-card__zone-icons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
}

.pitch-field-zone-panel__title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.pitch-booking-zone-icon.pitch-theme--nebenfeld .pitch-zone-option-icon__active {
  fill: #2e7d32;
  opacity: 0.35;
  stroke: rgba(46, 125, 50, 0.55);
  stroke-width: 0.8;
}

.pitch-booking-zone-icon.pitch-theme--nebenfeld .pitch-zone-option-icon__inactive {
  fill: rgba(46, 125, 50, 0.07);
  stroke: rgba(46, 125, 50, 0.25);
  stroke-width: 0.8;
}

.pitch-booking-zone-icon.pitch-theme--hauptfeld .pitch-zone-option-icon__active {
  fill: #1565c0;
  opacity: 0.33;
  stroke: rgba(21, 101, 192, 0.55);
  stroke-width: 0.8;
}

.pitch-booking-zone-icon.pitch-theme--hauptfeld .pitch-zone-option-icon__inactive {
  fill: rgba(21, 101, 192, 0.07);
  stroke: rgba(21, 101, 192, 0.25);
  stroke-width: 0.8;
}

.pitch-plan-edit-btn {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}

.pitch-plan-edit-btn .bi {
  margin-right: 0.15rem;
}

.pitch-plan-source-link {
  text-decoration: none;
}

.pitch-plan-move-form {
  margin-top: 0.45rem;
}

.pitch-plan-move-select {
  max-width: 11rem;
}

.pitch-plan-empty {
  color: #adb5bd;
  font-size: 0.85rem;
  font-style: italic;
}

.pitch-graph {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.5rem;
}

.pitch-graph--mini .pitch-graph__canvas {
  min-height: 8.5rem;
}

.pitch-graph__hours {
  position: relative;
  min-height: 100%;
}

.pitch-graph-hour {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  font-size: 0.68rem;
  color: #6c757d;
  white-space: nowrap;
}

.pitch-graph__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.pitch-graph__field-label {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pitch-graph__field.pitch-theme--nebenfeld .pitch-graph__field-label {
  color: #1f6b3a;
}

.pitch-graph__field.pitch-theme--hauptfeld .pitch-graph__field-label {
  color: #0a4ea3;
}

.pitch-graph__field.pitch-theme--nebenfeld .pitch-graph__canvas {
  border-color: rgba(25, 135, 84, 0.22);
  background-color: rgba(25, 135, 84, 0.05);
}

.pitch-graph__field.pitch-theme--hauptfeld .pitch-graph__canvas {
  border-color: rgba(10, 78, 163, 0.22);
  background-color: rgba(10, 78, 163, 0.05);
}

.pitch-graph__canvas {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 100% 25%;
  overflow: hidden;
}

.pitch-graph-block {
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left-width: 3px;
  padding: 0.15rem 0.3rem;
  overflow: hidden;
  min-height: 1.4rem;
}

.pitch-graph--mini .pitch-graph-block__title {
  display: none;
}

.pitch-print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pitch-print-table th,
.pitch-print-table td {
  border: 1px solid #ccc;
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.pitch-print-table th {
  background: #f0f4f0;
}

.pitch-print-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ddd;
}

.pitch-print-header__text {
  flex: 1;
  min-width: 0;
}

.pitch-print-logo {
  width: 52px;
  height: auto;
  flex-shrink: 0;
}

.pitch-print-header h1 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.pitch-print-meta,
.pitch-print-footer {
  color: #666;
  font-size: 0.85rem;
}

@media print {
  .pitch-print-logo {
    width: 52px;
    max-width: 52px;
  }

  .pitch-print-footer a {
    display: none;
  }
}

.pitch-plan-zone-select {
  max-width: 10rem;
}

.pitch-plan-legend-dot--manual { background: #fd7e14; }
.pitch-plan-legend-dot--nebenfeld { background: #7cb87c; }
.pitch-plan-legend-dot--hauptfeld { background: #7aa8d4; }
.pitch-plan-legend-dot--conflict { background: #dc3545; }
.pitch-plan-legend-dot--zone-free { background: #b8ddb8; }
.pitch-plan-legend-dot--zone-busy { background: #7cb87c; }

.pitch-plan-legend-sep {
  color: #adb5bd;
}

.pitch-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  background: #f8faf8;
}

@media (min-width: 992px) {
  .pitch-field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pitch-field-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.pitch-field-card.pitch-theme--nebenfeld {
  border-color: rgba(25, 135, 84, 0.28);
  background: rgba(25, 135, 84, 0.04);
}

.pitch-field-card.pitch-theme--hauptfeld {
  border-color: rgba(10, 78, 163, 0.28);
  background: rgba(10, 78, 163, 0.04);
}

.pitch-field-card__title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pitch-field-card.pitch-theme--nebenfeld .pitch-field-card__title {
  color: #1f6b3a;
}

.pitch-field-card.pitch-theme--hauptfeld .pitch-field-card__title {
  color: #0a4ea3;
}

.pitch-field-card__legend {
  margin-top: 0.35rem;
}

.pitch-field-svg {
  width: 100%;
  height: auto;
  display: block;
}

.pitch-field-grass {
  fill: #7cb87c;
}

.pitch-field-card.pitch-theme--hauptfeld .pitch-field-grass {
  fill: #7aa8d4;
}

.pitch-field-line {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.5;
}

.pitch-field-zone__hit {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1;
}

.pitch-field-zone--free .pitch-field-zone__hit {
  fill: rgba(255, 255, 255, 0.08);
}

.pitch-field-zone--busy .pitch-field-zone__hit {
  fill: rgba(31, 107, 58, 0.35);
}

.pitch-field-card.pitch-theme--hauptfeld .pitch-field-zone--busy .pitch-field-zone__hit {
  fill: rgba(10, 78, 163, 0.38);
}

.pitch-field-zone--conflict .pitch-field-zone__hit {
  fill: rgba(220, 53, 69, 0.45);
}

.pitch-field-zone {
  cursor: pointer;
}

.pitch-field-zone__label,
.pitch-field-zone__count {
  fill: #fff;
  font-size: 5px;
  font-weight: 700;
  pointer-events: none;
}

.pitch-field-zone-panel {
  margin: 0 1rem 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  background: #fff;
}

.pitch-field-zone-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.pitch-field-day-list {
  padding: 1rem;
}

.pitch-field-booking-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid #1f6b3a;
  border-radius: 0.5rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.5rem;
  background: #fff;
}

.pitch-field-booking-item--panel {
  margin-bottom: 0.35rem;
}

@media (max-width: 767.98px) {
  .pitch-plan-schedule {
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
    padding: 0.65rem;
  }

  .pitch-plan-schedule__hours {
    display: none;
  }

  .pitch-plan-schedule__column {
    gap: 0.45rem;
    padding: 0.55rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.65rem;
    background: #fff;
  }

  .pitch-plan-schedule__column.pitch-theme--nebenfeld {
    border-color: rgba(25, 135, 84, 0.22);
    background: rgba(25, 135, 84, 0.04);
  }

  .pitch-plan-schedule__column.pitch-theme--hauptfeld {
    border-color: rgba(10, 78, 163, 0.22);
    background: rgba(10, 78, 163, 0.04);
  }

  .pitch-plan-schedule__graph {
    display: grid;
    grid-template-columns: 2.35rem 1fr;
    column-gap: 0.35rem;
    align-items: stretch;
  }

  .pitch-plan-schedule__graph-hours {
    display: block;
    position: relative;
    align-self: stretch;
    height: 8.5rem;
    min-height: 8.5rem;
  }

  .pitch-plan-schedule__lane {
    min-height: auto;
    padding: 0.55rem;
  }

  .pitch-plan-schedule__column.pitch-theme--nebenfeld .pitch-plan-schedule__lane {
    background: rgba(255, 255, 255, 0.82);
  }

  .pitch-plan-schedule__column.pitch-theme--hauptfeld .pitch-plan-schedule__lane {
    background: rgba(255, 255, 255, 0.82);
  }

  .pitch-graph__fields {
    grid-template-columns: 1fr;
  }
}

.pitch-plan-month-chip--manual {
  background: rgba(253, 126, 20, 0.18);
  color: #9a4d00;
}

.pitch-plan-month-chip--nebenfeld {
  border-left: 3px solid #7cb87c;
}

.pitch-plan-month-chip--hauptfeld {
  border-left: 3px solid #7aa8d4;
}

.pitch-plan-month-chip--conflict {
  box-shadow: inset 0 0 0 1px rgba(220, 53, 69, 0.55);
}

.pitch-plan-month-day--conflict .month-cal-day-num {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.45);
}

.pitch-plan-month-detail-list .pitch-plan-booking + .pitch-plan-booking {
  margin-top: .5rem;
}

.pitch-week-matrix__table {
  --pitch-matrix-time-width: 3.6rem;
  font-size: 0.78rem;
  background: #fff;
  margin-bottom: 0;
}

.pitch-week-matrix__time-head,
.pitch-week-matrix__hour {
  width: var(--pitch-matrix-time-width);
  min-width: var(--pitch-matrix-time-width);
  white-space: nowrap;
  background: #f8faf8;
  font-weight: 600;
}

.pitch-week-matrix__day-long {
  display: inline;
}

.pitch-week-matrix__day-short {
  display: none;
}

.pitch-week-matrix__scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.pitch-week-matrix__scroll-hint {
  margin: 0;
  padding: 0.4rem 0.65rem;
  font-size: 0.72rem;
  color: #6c757d;
  background: linear-gradient(90deg, #f8faf8 0%, #fff 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pitch-week-matrix__sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f8faf8;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.pitch-week-matrix__time-head.pitch-week-matrix__sticky-col {
  z-index: 4;
  background: #f8faf8;
}

.pitch-week-matrix__day-head {
  text-align: center;
  background: var(--ua-blue, #0a4ea3);
  color: #fff;
  font-weight: 600;
  font-size: 0.72rem;
  white-space: nowrap;
}

.pitch-week-matrix__sticky-col--sub {
  z-index: 4;
  background: #fff;
}

.pitch-week-matrix__pitch-head {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.pitch-week-matrix__pitch-head.pitch-theme--nebenfeld {
  color: #1f6b3a;
  background: rgba(25, 135, 84, 0.08);
}

.pitch-week-matrix__pitch-head.pitch-theme--hauptfeld {
  color: #0a4ea3;
  background: rgba(10, 78, 163, 0.08);
}

.pitch-week-matrix__cell {
  text-align: center;
  vertical-align: middle;
  padding: 0.32rem 0.15rem;
  cursor: pointer;
  user-select: none;
  min-width: 2.4rem;
  border-color: rgba(0, 0, 0, 0.06) !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pitch-week-matrix__cell:hover {
  filter: brightness(0.97);
}

.pitch-week-matrix__cell:focus-visible {
  outline: 2px solid var(--ua-blue, #0a4ea3);
  outline-offset: -2px;
}

.pitch-week-matrix__label {
  display: inline-block;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  font-size: 0.72rem;
}

.pitch-week-matrix__cell.pitch-theme--nebenfeld {
  background: rgba(25, 135, 84, 0.1);
  color: #1f6b3a;
}

.pitch-week-matrix__cell.pitch-theme--hauptfeld {
  background: rgba(10, 78, 163, 0.1);
  color: #0a4ea3;
}

.pitch-week-matrix__cell--free.pitch-theme--nebenfeld {
  background: rgba(25, 135, 84, 0.14);
  color: #2e7d32;
}

.pitch-week-matrix__cell--free.pitch-theme--hauptfeld {
  background: rgba(10, 78, 163, 0.14);
  color: #1565c0;
}

.pitch-week-matrix__cell--free .pitch-week-matrix__label {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.pitch-week-matrix__cell--partial.pitch-theme--nebenfeld {
  background: rgba(25, 135, 84, 0.32);
  color: #145c32;
}

.pitch-week-matrix__cell--partial.pitch-theme--hauptfeld {
  background: rgba(10, 78, 163, 0.3);
  color: #0d47a1;
}

.pitch-week-matrix__cell--full.pitch-theme--nebenfeld {
  background: #2e7d32;
  color: #fff;
}

.pitch-week-matrix__cell--full.pitch-theme--hauptfeld {
  background: #1565c0;
  color: #fff;
}

.pitch-week-matrix__cell--conflict {
  box-shadow: inset 0 0 0 3px #dc3545;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(220, 53, 69, 0.14),
    rgba(220, 53, 69, 0.14) 4px,
    transparent 4px,
    transparent 8px
  );
}

.pitch-week-matrix__cell--conflict .pitch-week-matrix__label {
  color: #b02a37;
  font-weight: 700;
}

.pitch-week-matrix__cell--conflict.pitch-week-matrix__cell--full .pitch-week-matrix__label {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.pitch-week-matrix__cell--conflict.pitch-week-matrix__cell--full.pitch-theme--nebenfeld,
.pitch-week-matrix__cell--conflict.pitch-week-matrix__cell--full.pitch-theme--hauptfeld {
  box-shadow: inset 0 0 0 3px #ffeb3b, inset 0 0 0 5px #dc3545;
}

.pitch-week-matrix__cell--conflict.pitch-week-matrix__cell--free.pitch-theme--nebenfeld {
  background: rgba(25, 135, 84, 0.1);
}

.pitch-week-matrix__cell--conflict.pitch-week-matrix__cell--free.pitch-theme--hauptfeld {
  background: rgba(10, 78, 163, 0.1);
}

.pitch-week-matrix__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.pitch-week-matrix__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pitch-week-matrix__legend-swatch {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.2rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.pitch-week-matrix__legend-swatch--free-nf {
  background: rgba(25, 135, 84, 0.14);
}

.pitch-week-matrix__legend-swatch--free-hf {
  background: rgba(10, 78, 163, 0.14);
}

.pitch-week-matrix__legend-swatch--partial-nf {
  background: rgba(25, 135, 84, 0.32);
}

.pitch-week-matrix__legend-swatch--partial-hf {
  background: rgba(10, 78, 163, 0.3);
}

.pitch-week-matrix__legend-swatch--full-nf {
  background: #2e7d32;
}

.pitch-week-matrix__legend-swatch--full-hf {
  background: #1565c0;
}

.pitch-week-matrix__legend-swatch--conflict {
  background: #fff;
  box-shadow: inset 0 0 0 2px #dc3545;
}

.pitch-zone-picker {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: #f8faf8;
}

.pitch-zone-picker__pitch + .pitch-zone-picker__pitch {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.pitch-zone-picker__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.pitch-zone-picker__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pitch-zone-picker__presets .btn {
  white-space: nowrap;
}

.pitch-zone-preset-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: center;
}

.pitch-zone-preset-btn .pitch-zone-option-icon {
  width: 20px;
  height: 20px;
}

.pitch-zone-preset__label--short {
  display: none;
}

.pitch-zone-picker__help {
  margin-top: 0.5rem;
  line-height: 1.45;
}

.pitch-zone-select-picker {
  position: relative;
}

.pitch-zone-select-picker__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.pitch-zone-select-trigger {
  width: 100%;
  min-height: calc(1.5em + 0.75rem + 2px);
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  text-align: left;
  color: #212529;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.pitch-zone-select-trigger:focus-visible {
  outline: 0;
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

.pitch-zone-select-trigger__icon {
  flex: 0 0 auto;
  display: inline-flex;
}

.pitch-zone-select-trigger__text {
  flex: 1 1 auto;
  min-width: 0;
}

.pitch-zone-select-trigger__chevron {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: #6c757d;
  transition: transform 0.18s ease;
}

.pitch-zone-select-picker.is-open .pitch-zone-select-trigger__chevron {
  transform: translateY(-50%) rotate(180deg);
}

.pitch-zone-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  display: none;
  max-height: min(24rem, 70vh);
  overflow: auto;
}

.pitch-zone-select-picker.is-open .pitch-zone-select-menu {
  display: block;
}

.pitch-zone-select-menu__group + .pitch-zone-select-menu__group {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pitch-zone-select-menu__group-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6c757d;
  padding: 0.35rem 0.45rem 0.25rem;
}

.pitch-zone-select-menu__option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 0.65rem;
  padding: 0.55rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  color: #212529;
}

.pitch-zone-select-menu__option:hover,
.pitch-zone-select-menu__option:focus-visible {
  background: rgba(10, 78, 163, 0.08);
  outline: 0;
}

.pitch-zone-select-menu__option.is-selected {
  background: rgba(10, 78, 163, 0.12);
  font-weight: 600;
}

.pitch-zone-select-menu__option-icon {
  flex: 0 0 auto;
  display: inline-flex;
}

.pitch-zone-select-menu__option-label {
  flex: 1 1 auto;
}

.pitch-zone-option-icon {
  display: block;
}

.pitch-zone-option-icon__field {
  fill: #e8f5e9;
  stroke: #6b9b6e;
  stroke-width: 1;
}

.pitch-zone-option-icon__line {
  stroke: #6b9b6e;
  stroke-width: 0.5;
  opacity: 0.65;
}

.pitch-zone-option-icon__active {
  fill: #2e7d32;
  opacity: 0.62;
}

.pitch-zone-select-picker--hf .pitch-zone-option-icon__field {
  fill: #e3f2fd;
  stroke: #5b8fc9;
}

.pitch-zone-select-picker--hf .pitch-zone-option-icon__line {
  stroke: #5b8fc9;
}

.pitch-zone-select-picker--hf .pitch-zone-option-icon__active {
  fill: #1565c0;
}

.pitch-zone-select-picker--nf .pitch-zone-option-icon__field {
  fill: #e8f5e9;
  stroke: #6b9b6e;
}

.pitch-zone-select-picker--nf .pitch-zone-option-icon__active {
  fill: #2e7d32;
}

.pitch-zone-picker__pitch.pitch-theme--nebenfeld .pitch-zone-picker__head strong {
  color: #1f6b3a;
}

.pitch-zone-picker__pitch.pitch-theme--hauptfeld .pitch-zone-picker__head strong {
  color: #0a4ea3;
}

.pitch-zone-picker__zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.35rem 0.75rem;
}

.pitch-zone-picker__switch .form-check-label {
  font-size: 0.82rem;
  cursor: help;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pitch-zone-option-label-text {
  line-height: 1.15;
}

.pitch-zone-option-icon {
  flex: 0 0 auto;
}

.pitch-zone-option-icon__inactive {
  fill: rgba(0, 0, 0, 0.035);
  stroke: rgba(0, 0, 0, 0.15);
  stroke-width: 0.8;
}

.pitch-zone-picker__pitch.pitch-theme--nebenfeld .pitch-zone-option-icon__active {
  fill: #2e7d32;
  opacity: 0.35;
  stroke: rgba(46, 125, 50, 0.55);
  stroke-width: 0.8;
}

.pitch-zone-picker__pitch.pitch-theme--nebenfeld .pitch-zone-option-icon__inactive {
  fill: rgba(46, 125, 50, 0.07);
  stroke: rgba(46, 125, 50, 0.25);
  stroke-width: 0.8;
}

.pitch-zone-picker__pitch.pitch-theme--hauptfeld .pitch-zone-option-icon__active {
  fill: #1565c0;
  opacity: 0.33;
  stroke: rgba(21, 101, 192, 0.55);
  stroke-width: 0.8;
}

.pitch-zone-picker__pitch.pitch-theme--hauptfeld .pitch-zone-option-icon__inactive {
  fill: rgba(21, 101, 192, 0.07);
  stroke: rgba(21, 101, 192, 0.25);
  stroke-width: 0.8;
}

.pitch-zone-picker__switch .form-check-input:checked + .form-check-label .pitch-zone-option-icon__active,
.pitch-zone-preset-btn.is-active .pitch-zone-option-icon__active {
  opacity: 0.78;
}

.pitch-zone-picker__global-presets {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.pitch-plan-move-form .pitch-zone-picker {
  flex: 1 1 100%;
}

@media (max-width: 767.98px) {
  .pitch-plan-period-bar {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.55rem;
  }

  .pitch-plan-period-nav {
    display: grid;
    grid-template-columns: 3rem 1fr 3rem;
    align-items: center;
    width: 100%;
    gap: 0.25rem;
    max-width: none;
  }

  .pitch-plan-period-nav__btn {
    width: 3rem;
    min-width: 3rem;
    height: 2.5rem;
    flex: none;
  }

  .pitch-plan-period-nav__btn:first-child {
    justify-self: start;
  }

  .pitch-plan-period-nav__btn:last-child {
    justify-self: end;
  }

  .pitch-plan-period-nav__label {
    grid-column: 2;
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    font-size: 0.84rem;
    padding: 0 0.15rem;
  }

  .pitch-plan-period-bar__today,
  .pitch-plan-period-bar__hint {
    margin-left: 0;
    align-self: center;
  }

  .pitch-week-matrix__day-long {
    display: none;
  }

  .pitch-week-matrix__day-short {
    display: inline;
  }

  .pitch-week-matrix__label {
    font-size: 0.64rem;
  }

  .pitch-week-matrix__cell--free .pitch-week-matrix__label {
    font-size: 0.6rem;
  }

  .pitch-week-matrix__table {
    --pitch-matrix-time-width: 2.85rem;
    font-size: 0.68rem;
    width: max-content;
    min-width: 100%;
  }

  .pitch-week-matrix__day-head {
    font-size: 0.62rem;
    padding: 0.3rem 0.2rem;
  }

  .pitch-week-matrix__pitch-head {
    font-size: 0.62rem;
    padding: 0.25rem 0.15rem;
    min-width: 2.15rem;
  }

  .pitch-week-matrix__cell {
    min-width: 2.15rem;
    padding: 0.28rem 0.12rem;
  }

  .pitch-week-matrix__legend {
    gap: 0.45rem 0.65rem;
    font-size: 0.72rem;
  }

  .pitch-zone-picker__head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .pitch-zone-select-menu {
    left: -0.15rem;
    right: -0.15rem;
    padding: 0.45rem;
  }

  .pitch-zone-select-menu__option {
    padding: 0.6rem 0.5rem;
    gap: 0.6rem;
  }

  .pitch-zone-picker__presets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.4rem;
  }

  .pitch-zone-picker__presets > .btn:first-child {
    grid-column: 1 / -1;
  }

  .pitch-zone-picker__presets .btn {
    width: 100%;
    min-height: 2.35rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.45rem;
    line-height: 1.2;
  }

  .pitch-zone-preset__label--long {
    display: none;
  }

  .pitch-zone-preset__label--short {
    display: inline;
  }

  .pitch-zone-picker__help {
    font-size: 0.78rem;
  }

  .pitch-zone-picker__global-presets {
    flex-direction: column;
    align-items: stretch;
  }

  .pitch-zone-picker__global-presets .btn-group {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.35rem;
  }

  .pitch-zone-picker__global-presets .btn-group .btn {
    width: 100%;
    border-radius: var(--bs-border-radius-sm) !important;
  }
}
