/* Hallenplan: Tabelle, Belegung und Verwaltung. */
.hall-schedule-filters {
    margin-top: 20px;
}

.hall-schedule-pdf-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px 24px;
    margin: 20px 0 24px;
}

.hall-schedule-pdf-options {
    margin: 20px 0 24px;
}

.hall-schedule-pdf-options summary {
    color: #1d526f;
    cursor: pointer;
    font-weight: 700;
}

.hall-schedule-pdf-options .hall-schedule-pdf-filters {
    margin-bottom: 0;
}

.hall-schedule-pdf-filters .report-filters {
    min-width: 0;
    max-width: 100%;
    margin-bottom: 0;
}

.hall-schedule-filters .form-field,
.hall-schedule-filters .form-field:nth-child(2) {
    width: min(100%, 290px);
}

.hall-schedule-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.hall-schedule-heading h2 {
    margin-bottom: 4px;
}

.hall-schedule-table-wrapper {
    overflow-x: auto;
    border: 1px solid #d9e0e7;
    border-radius: 6px;
    background: #fff;
}

.hall-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.hall-schedule-table th,
.hall-schedule-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #e3e8ed;
    text-align: left;
    vertical-align: top;
}

.hall-schedule-table thead th,
.hall-schedule-table__day th {
    background: #f4f8fa;
    font-weight: 700;
}

.hall-schedule-table__day th {
    padding-top: 10px;
    padding-bottom: 10px;
}

.hall-schedule-table tbody:last-child tr:last-child td {
    border-bottom: 0;
}

.hall-schedule-table__time {
    white-space: nowrap;
}

.hall-schedule-table__note {
    overflow-wrap: anywhere;
}

.hall-schedule-table__trainer {
    overflow-wrap: anywhere;
}

.hall-schedule-table__trainer span {
    display: block;
    color: #53616f;
}

.hall-schedule-table__actions,
.hall-schedule-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hall-schedule-links {
    margin-top: 10px;
}

.hall-schedule-table__actions .text-link {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
}

.hall-schedule-empty {
    color: #63717f;
    font-size: 14px;
}

.hall-calendar-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.hall-calendar-toolbar__date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.hall-calendar-toolbar__date input {
    width: auto;
}

.hall-calendar-table td:nth-child(1),
.hall-calendar-table td:nth-child(2) {
    white-space: nowrap;
}

.hall-calendar-month {
    margin-top: 24px;
}

.hall-calendar-month h3 {
    margin: 0 0 10px;
}

.hall-calendar-month__scroll {
    overflow-x: auto;
    border: 1px solid #d9e0e7;
    border-radius: 6px;
    background: #fff;
}

.hall-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-width: 770px;
    gap: 1px;
    background: #d9e0e7;
}

.hall-calendar-grid__weekday,
.hall-calendar-grid__day {
    min-width: 0;
    background: #fff;
}

.hall-calendar-grid__weekday {
    padding: 8px;
    background: #eef3f6;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.hall-calendar-grid__day {
    min-height: 118px;
    padding: 7px;
}

.hall-calendar-grid__day--outside {
    background: #f5f7f8;
}

.hall-calendar-grid__date {
    display: inline-block;
    margin-bottom: 5px;
    color: #174f78;
    font-weight: 700;
}

.hall-calendar-grid__item {
    margin-top: 5px;
    border-left: 3px solid #187052;
    padding-left: 5px;
    font-size: 12px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.hall-calendar-grid__item span {
    display: block;
    color: #53616f;
}

.hall-calendar-grid__item strong {
    display: block;
}

.hall-calendar-grid__more,
.hall-calendar-grid__count {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.hall-calendar-grid__count {
    color: #285f48;
}

.hall-calendar-grid--compact .hall-calendar-grid__day {
    min-height: 60px;
}

.hall-schedule-management {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.hall-schedule-management h3 {
    margin-bottom: 0;
}

.hall-schedule-form-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 20px;
}

.hall-schedule-halls-heading {
    margin: 28px 0 12px;
}

.hall-schedule-form,
.hall-schedule-entry-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    margin-top: 18px;
}

.hall-schedule-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hall-schedule-form .button,
.hall-schedule-entry-form .button {
    justify-self: start;
}

.hall-schedule-publication {
    margin: 20px 0;
}

.hall-schedule-entry-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hall-schedule-entry-form__note {
    grid-column: span 2;
}

@media (max-width: 850px) {
    .hall-schedule-table {
        min-width: 860px;
    }

    .hall-schedule-management,
    .hall-schedule-entry-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .hall-schedule-management,
    .hall-schedule-form,
    .hall-schedule-entry-form {
        grid-template-columns: 1fr;
    }

    .hall-schedule-entry-form__note {
        grid-column: auto;
    }
}
