/* section rooster modal */
.oms-modal {
    height: calc(100% - var(--bs-modal-margin) * 2);
}

.oms-modal .oms-modal__panel .oms-modal__header {
    border-bottom: 1px solid var(--umbraco-body-secondary-color);
}

.oms-modal .oms-modal__panel .oms-modal__header .oms-modal__title {
    font-size: clamp(1.75rem, 2.5vw, 3rem) !important;
    font-weight: 700;
}

.oms-modal .oms-modal__panel .oms-modal__header .oms-modal__close {
    font-size: 47px;
    font-weight: 500;
}

.oms-modal .oms-modal__panel .oms-modal__body {
    max-height: 100%;
    overflow-y: auto;
}

.oms-modal .oms-modal__panel .oms-modal__body .oms-roster tbody tr {
    background-color: #ffffff;
}

.oms-modal .oms-modal__panel .oms-modal__body .oms-roster tbody tr:nth-child(even) {
    background-color: #f3f3f6;
}

.oms-modal .oms-modal__panel .oms-modal__body .oms-roster th {
    font-weight: 700;
}

.oms-modal .oms-modal__panel .oms-modal__body .oms-roster th,
.oms-modal .oms-modal__panel .oms-modal__body .oms-roster td {
    border-top: 0;
}


/* section schedule */
.oms-dot{
    border-radius: unset !important;
}

.oms-schedule-catalog {
    max-width: var(--umbraco-container-max-width) !important;
    padding-bottom: 15px;
}

.oms-schedule-catalog--top .oms-schedule-catalog__table thead th,
.oms-schedule-catalog--top .oms-schedule-catalog__table tbody td {
    font-size: var(--bs-body-font-size) !important;
}

.oms-schedule-catalog__table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #f5f5f7;
    border-radius: 16px !important;
    overflow: hidden;
    padding: 0 !important;
}

/* sorting */
.oms-schedule-catalog__table th[data-sortable] {
    cursor: pointer;
    position: relative;
    transition: all .3s;
    padding-right: 22px;
}

.oms-schedule-catalog__table th[data-sortable]::after {
    display: inline-block;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font: var(--fa-font-solid);
    font-size: 12px;
    transition: opacity .2s;
    opacity: 1;
    content: "\f078";
    color: #c8104f;
    line-height: 1;
}

.oms-schedule-catalog__table th[data-sortable].order-asc::after {
    content: "\f077";
}

.oms-schedule-catalog__table th[data-sortable].order-desc::after {
    content: "\f078";
}

.oms-schedule-catalog__table th[data-sortable].order-asc:after {
    content: "\f077";
}

.oms-schedule-catalog__table th[data-sortable].order-desc:after {
    content: "\f078";
}

.oms-schedule-catalog__table th[data-sortable]:hover,
.oms-schedule-catalog__table th[data-sortable]:focus,
.oms-schedule-catalog__table th[data-sortable].order-asc,
.oms-schedule-catalog__table th[data-sortable].order-desc {
    color: #111827;
    border-bottom-color: transparent;
}

/* header */
.oms-schedule-catalog__table thead th {
    background: transparent;
    color: #222;
    border: 0;
    font-weight: 700;
    padding: 14px 18px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.oms-schedule-catalog__table thead th.text-center {
    text-align: left !important;
}

/* body rows */
.oms-schedule-catalog__table tbody tr {
    background-color: #ffffff;
}

.oms-schedule-catalog__table tbody tr:nth-child(even) {
    background-color: #f3f3f6;
}

.oms-schedule-catalog__table tbody td {
    padding: 10px 18px;
    border: 0;
    vertical-align: middle;
    color: #333;
}

.oms-schedule-catalog__table tbody td.text-center {
    text-align: left !important;
}

/* first and last row corners */
.oms-schedule-catalog__table tbody tr:first-child td:first-child {
    border-top-left-radius: 0;
}

.oms-schedule-catalog__table tbody tr:first-child td:last-child {
    border-top-right-radius: 0;
}

.oms-schedule-catalog__table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 20px;
}

.oms-schedule-catalog__table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 20px;
}

/* widths */
.oms-schedule-catalog--top .oms-schedule-catalog__table th:nth-child(1),
.oms-schedule-catalog--top .oms-schedule-catalog__table td:nth-child(1) {
    width: 48px !important;
}

.oms-schedule-catalog__table th:nth-last-child(-n+2),
.oms-schedule-catalog__table td:nth-last-child(-n+2) {
    width: 180px;
    white-space: nowrap;
}

.oms-schedule-catalog__table td:nth-last-child(-n+2) {
    text-align: left !important;
}

/* generic primary button in table */
.oms-schedule-catalog__table tbody tr td .oms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
}

/* filled CTA = Inschrijven */
.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--primary {
    color: #fff;
    border: 1px solid #003366;
    background-color: #003366;
    transition: all .2s ease-in-out;
}

.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--primary:hover,
.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--primary:focus {
    background-color: #002A52 !important;
    border-color: #002A52 !important;
    color: #fff;
}

/* disabled CTA */
.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--primary:disabled,
.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--primary.disabled {
    background-color: #CC0033 !important;
    border-color: #CC0033 !important;
    color: #fff !important;
    opacity: 1;
    cursor: not-allowed;
}

/* outline button = Rooster */
.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--secondary,
.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--outline,
.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--ghost {
    color: #c8104f;
    border: 2px solid #c8104f;
    background-color: transparent;
    transition: all .2s ease-in-out;
}

.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--secondary:hover,
.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--outline:hover,
.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--ghost:hover,
.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--secondary:focus,
.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--outline:focus,
.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--ghost:focus {
    background-color: #c8104f;
    color: #fff;
}

/* more link */
.oms-schedule-catalog__more {
    padding-top: 10px;
}

.oms-schedule-catalog__more a::after {
    content: ">";
    padding-left: 5px;
}

/* Vol Disabled */
.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--disabled,
.oms-schedule-catalog__table tbody tr td .oms-btn:disabled {
    background-color: #CC0033;
    border-color: #CC0033;
    color: #fff; 
    cursor: not-allowed;
    opacity: 1;
}

/* Stoplicht */
/* Red */
.oms-dot--full {
    background-color: #CC0033 !important;
}

/* mobile/table-to-card */
.table > tbody > tr > td:not(.ignore-wrap):not(.options):not(.btn) {
    overflow: hidden;
    max-width: 0;
}

@media (max-width: 990px) {
    colgroup {
        display: none;
    }

    [class*="table-col-width"] {
        width: auto;
    }

    .request-dashboard-container .request-block-container .request-block-body table tbody > tr:first-child td {
        padding-top: 10px !important;
    }

    .table > tbody > tr > td:not(.ignore-wrap):not(.options):not(.btn) {
        max-width: unset;
    }

    .card-list-table {
        table-layout: fixed;
        margin-bottom: 0;
        width: 100%;
    }

    .card-list-table thead {
        display: none;
    }

    .card-list-table tbody tr {
        background-color: #f3f3f6;
        display: block;
        padding-top: 15px;
        margin: 0 0 25px 0;
        border-radius: var(--umbraco-border-radius);
    }

    .card-list-table tbody td {
        border: 0;
        display: block;
        padding: 12px 10px 5px 40%;
        position: relative;
    }

    .card-list-table tbody td:last-child {
        border: 0;
    }

    .card-list-table tbody td:first-of-type::after {
        visibility: hidden;
    }

    .card-list-table tbody td:after {
        content: '';
        width: calc(100% - 30px);
        display: block;
        margin: 0 auto;
        height: 1px;
        position: absolute;
        left: 0;
        right: 0;
        top: -6px;
    }

    .card-list-table tbody td:before {
        content: attr(data-title);
        display: table-cell;
        font-weight: 700;
        height: 100%;
        left: 15px;
        margin: auto;
        position: absolute;
        vertical-align: middle;
        white-space: nowrap;
        width: 40%;
    }

    .card-list-table thead th {
        letter-spacing: .5pt;
    }

    .card-list-table tbody td {
        padding: 12px 0 5px 50% !important;
    }

    .card-list-table td:nth-last-child(-n+2) {
        text-align: unset !important;
        width: unset;
    }

    .card-list-table .text-center {
        text-align: unset !important;
    }

    .oms-schedule-catalog__table {
        padding: 0 !important;
    }

    .oms-schedule-catalog--top .oms-schedule-catalog__table th:nth-child(4),
    .oms-schedule-catalog--top .oms-schedule-catalog__table td:nth-child(4),
    .oms-schedule-catalog--top .oms-schedule-catalog__table th:nth-child(5),
    .oms-schedule-catalog--top .oms-schedule-catalog__table td:nth-child(5) {
        width: unset !important;
    }

    .oms-btn.oms-btn--primary {
        margin-bottom: 15px;
    }
}

.oms-schedule-catalog__table th.oms-schedule-catalog__sortable-header {
    padding: 14px 18px;
}

/* Tabel links uitlijnen */
.oms-schedule-catalog__table .oms-sort--header {
    display: inline-flex !important;
    justify-content: flex-start !important;
    align-items: center;
    width: auto !important;
    gap: 8px;
}

/* oude pijl op de th verbergen */
.oms-schedule-catalog__table th[data-sortable]::after {
    display: none !important;
}

/* pijl direct naast de tekst */
.oms-schedule-catalog__table .oms-sort--header::after {
    font: var(--fa-font-solid);
    font-size: 12px;
    color: #c8104f;
    content: "\f078";
}

/* oplopend */
.oms-schedule-catalog__table th[data-sortable].order-asc .oms-sort--header::after {
    content: "\f077";
}

/* aflopend */
.oms-schedule-catalog__table th[data-sortable].order-desc .oms-sort--header::after {
    content: "\f078";
}

.oms-schedule-catalog__table .oms-sort--header {
    justify-content: flex-start !important;
    padding: 14px 18px !important;
}