/* section rooster model */
.oms-modal {
    height: calc(100% - var(--bs-modal-margin) * 2);
    .oms-modal__panel{
        .oms-modal__header {
            border-bottom: 1px solid var(--umbraco-body-secondery-color);
            .oms-modal__title {
                font-size: clamp(1.75rem, 2.5vw, 3rem) !important;
                font-weight: 700;
            }
            .oms-modal__close {
                font-size: 47px;
                font-weight: 500;
            }
        }
        .oms-modal__body {
            max-height: 100%;
            overflow-y: auto;
            .oms-roster {
                tbody tr {
                        /* color: #757576 !important; */
                        background-color: rgba(252, 252, 252, 1);

                        &:nth-child(even) {
                            background-color: #F2F2F7;
                        }
                }
            }
            .oms-roster th{
                font-weight: 700;
                color: #000;
            }
            .oms-roster th, .oms-roster td {
                border-top: 0;
                
            }
        }
    }
}

/* section schedule */
.oms-schedule-catalog {
    max-width: var(--umbraco-container-max-width) !important;
    padding-bottom: 15px;
}

.oms-schedule-catalog--top .oms-schedule-catalog__table thead th {
    font-size: var(--bs-body-font-size) !important;
}

.oms-schedule-catalog--top .oms-schedule-catalog__table tbody td {
    font-size: var(--bs-body-font-size) !important;
}


.oms-schedule-catalog__table {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    background-color: var(--umbraco-body-tertiary-color);
    padding: 25px !important;
    border-radius: 20px !important;
}

.oms-schedule-catalog__table thead th:nth-child(2) .oms-sort--header {
    justify-content: flex-start;
}

.oms-schedule-catalog__sortable-header {
    position: relative;
}

.oms-schedule-catalog__sortable-header .oms-sort--header {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: auto;
    padding: 12px 10px;
}

.oms-schedule-catalog__sortable-header::after {
    position: static;
    display: inline-block;
    margin-left: 6px;
    content: "\f078";
    font: var(--fa-font-solid);
    opacity: 0;
}

.oms-schedule-catalog__sortable-header.order-asc::after {
    content: "\f077";
    opacity: 1;
}

.oms-schedule-catalog__sortable-header.order-desc::after {
    content: "\f078";
    opacity: 1;
}

.oms-schedule-catalog__sortable-header:hover::after {
    opacity: 1;
}

    th[data-sortable]:hover, th[data-sortable]:focus {
        border-bottom-color: var(--umbraco-body-secondery-color);
        color: var(--umbraco-body-secondery-color);
    }

    th[data-sortable].order-asc, th[data-sortable].order-desc {
        border-bottom-color: var(--umbraco-body-secondery-color);
        color: var(--umbraco-body-secondery-color);
    }

    th[data-sortable] {
        cursor: pointer;
        position: relative;
        transition: all .3s;
    }

    tbody tr {
        /* color: #757576 !important; */
        background-color: rgba(252, 252, 252, 1);

        &:nth-child(even) {
            background-color: #F2F2F7;
        }

        td {
            &.text-center {
                text-align: start !important;
            }
                
            .oms-btn.oms-btn--primary {
                border-radius: var(--umbraco-input-border-radius);
                display: inline-block;
                color: #fff;
                text-align: center;
                text-decoration: none;
                vertical-align: middle;
                cursor: pointer;
                -webkit-user-select: none;
                -moz-user-select: none;
                user-select: none;
                border: 1px solid var(--umbraco-body-primary-color);
                background-color: var(--umbraco-body-primary-color);
                transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
                font-weight: 800;

                &:disabled,
                &:hover {
                    background-color: var(--umbraco-body-tertiary-color) !important;
                    border-color: var(--umbraco-body-secondary-color) !important;
                }
            }
        }
    }

    td:first-child {
        border-top-left-radius: 15px !important;
        border-bottom-left-radius: 15px !important;
    }

    td:last-child {
        border-top-right-radius: 15px !important;
        border-bottom-right-radius: 15px !important;
    }
    td:nth-last-child(-n+2){
        text-align: start !important;
        width: 170px;
    }

    thead th {
        color: #f9fafb;
        border-left: none;
        cursor: auto;
        font-style: none;
        font-weight: 700;
        padding: .92857143em .78571429em;
        text-align: inherit;
        text-transform: none;
        vertical-align: inherit;

        &.text-center {
            text-align: start !important;
        }
    }



.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: unset !important;
}



.oms-schedule-catalog__more {
    padding-top: 10px;

    a::after {
        content: ">";
        padding-left: 5px;
    }
}
/* section schedule to card */
/*
$screen-sm-min: 768px;
$shadow: 0 2px 3px rgba(0, 0, 0, .2);
$gray-border: darken(#f8f8f8, 10%);
$gray-light: rgba(0, 0, 0, .35);
*/
.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) {
        /*overflow: unset;*/
        max-width: unset;
    }

    .card-list-table {
        table-layout: fixed;
        margin-bottom: 0;
        width: 100%;


        thead {
            display: none;
        }

        tbody tr {
            background-color: #F2F2F7;
            display: block;
            padding-top: 15px;
            margin: 0 0 25px 0;
            border-radius: var(--umbraco-border-radius)
        }

        tbody td {
            border: 0;
            display: block;
            padding: 12px 10px 5px 40%;
            position: relative;

            &:last-child {
                border: 0;
            }

            &:first-of-type::after {
                visibility: hidden;
            }

            &:after {
                content: '';
                width: calc(100% - 30px);
                display: block;
                margin: 0 auto;
                height: 1px;
                position: absolute;
                left: 0;
                right: 0;
                top: -6px
            }

            &: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%;
            }
        }

        thead th {
            letter-spacing: .5pt;
        }
    }
}

.oms-schedule-catalog__table .oms-btn--primary {
    background: var(--umbraco-body-secondary-color);
    border: 2px solid var(--umbraco-body-primary-color);
    color: #fff;
    border-radius: var(--umbraco-input-border-radius);
    padding: 10px 16px;
}

.oms-schedule-catalog__table .oms-btn--outline {
    background: transparent;
    border: 2px solid var(--umbraco-body-secondary-color);
    color: var(--umbraco-body-secondary-color);
    border-radius: var(--umbraco-input-border-radius);
    padding: 10px 16px;
}

.oms-schedule-catalog__table .oms-btn--outline:hover {
    background: var(--umbraco-body-primary-color);
    border-color: var(--umbraco-body-primary-color);
    color: #fff;
}

@media (max-width: 990px) {
    .card-list-table {
        tbody td {
            padding: 12px 0px 5px 50% !important;
        }
            td:nth-last-child(-n+2) {
            text-align: unset !important;
                width: unset;
            }
        .text-center {
            text-align: unset !important;
        }
    }

    .oms-schedule-catalog__table {
        padding: 25px !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 tbody tr {
    background-color: rgba(252, 252, 252, 1);
}

.oms-schedule-catalog__table tbody tr:nth-child(even) {
    background-color: #F2F2F7;
}

.oms-schedule-catalog__table tbody tr td.text-center {
    text-align: start !important;
}

.oms-schedule-catalog__table tbody tr td .oms-btn.oms-btn--primary {
    border-radius: var(--umbraco-input-border-radius);
    display: inline-block;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: 1px solid var(--umbraco-body-primary-color);
    background-color: var(--umbraco-body-primary-color);
    transition: color .15s ease-in-out,
                background-color .15s ease-in-out,
                border-color .15s ease-in-out,
                box-shadow .15s ease-in-out;
    font-weight: 800;
}

.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:hover {
    background-color: var(--umbraco-body-tertiary-color) !important;
    border-color: var(--umbraco-body-secondary-color) !important;
}

.oms-schedule-catalog__table td:first-child {
    border-top-left-radius: 15px !important;
    border-bottom-left-radius: 15px !important;
}

.oms-schedule-catalog__table td:last-child {
    border-top-right-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
}

.oms-schedule-catalog__table td:nth-last-child(-n+2) {
    text-align: start !important;
    width: 170px;
}

.oms-schedule-catalog__table thead th {
    color: #f9fafb;
    border-left: none;
    cursor: auto;
    font-style: normal;
    font-weight: 700;
    padding: .92857143em .78571429em;
    text-align: inherit;
    text-transform: none;
    vertical-align: inherit;
}

.oms-schedule-catalog__table thead th.text-center {
    text-align: start !important;
}

.oms-schedule-catalog__more a::after {
    content: ">";
    padding-left: 5px;
}
