/****Nhsuk overrides***--------------------*/
.nhsuk-main-wrapper {
    min-height: 70vh;
}

.nhsuk-label--s {
    margin-bottom: 16px;
}

.nhsuk-input__wrapper {
    display: inline-flex;
}

.nhsuk-tag--grey {
    color: #738999;
    border: 1px solid #738999;
}

@media (min-width: 48.0625em) {
    .nhsuk-width-container-fluid {
        margin: 0 100px !important;
        max-width: 100% !important;
    }
}
/*-----------------------------------------*/


/*Spinner-------------------------------*/
.spinner-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
}

.spinner {
    height: 120px;
    width: 120px;
    position: absolute;
    border-top: 10px solid #007f3b;
    border-left: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid transparent;
    border-radius: 100%;
    animation: rotation 1.2s infinite ease-in-out;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}
/*-----------------------------------------*/



/*---Time Slots Page*-----------------------*/
.col {
    width: 200px !important;
}

    .col:not(:first-child) {
        border-left: 2px solid #738999;
    }

.data-col {
    display: flex;
    align-items: center;
}

.header-col {
    min-width: 120px !important;
    align-content: center;
    border-bottom: 2px solid #738999;
}

    .header-col:not(:first-child) {
        border-left: 2px solid #738999;
    }

.header-label {
    font: bold 16px Frutiger W01;
}

.tag {
    width: 28px;
    text-align: center;
    vertical-align: middle;
    line-height: 40px;
}

.blue-tag {
    border: 1px solid #013b73;
}

.timeslot-checkbox {
    display: none;
}

    .timeslot-checkbox + label {
        cursor: pointer;
        height: 50px;
        width: 100px;
    }

        .timeslot-checkbox + label::after {
            content: attr(data-text);
        }

    .timeslot-checkbox:checked + label {
        content: "Available";
        background-color: #007f3b;
        color: white;
        border: 1px solid #004520;
    }

        .timeslot-checkbox:checked + label::after {
            content: "Available";
        }

        .timeslot-checkbox:checked + label:hover {
            background-color: #006831;
        }

    .timeslot-checkbox:not(:checked) + label {
        content: "Unavailable";
        background-color: #dbe0e3;
        color: #354550;
        border: 1px solid #738999;
    }

        .timeslot-checkbox:not(:checked) + label::after {
            content: "Closed";
        }

        .timeslot-checkbox:not(:checked) + label:hover {
            background-color: #c7cbce;
        }
/*-----------------------------------------*/

/*-----------NHSUK-MULTI SELECT-----------*/
.nhsuk-multi-select {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 120px;
    padding: 4px;
    border: 2px solid #4c6272;
    appearance: none;
    outline: none;
    border-radius: 0;
}

    .nhsuk-multi-select:focus {
        border: 2px solid #212b32;
        box-shadow: inset 0 0 0 2px;
        outline: 4px solid #ffeb3b;
        outline-offset: 0;
    }

    /* Individual options */
    .nhsuk-multi-select option {
        padding: 6px;
        font-size: 17.5px;
    }

        /* Selected options */
        .nhsuk-multi-select option:checked {
            background-color: #005eb8;
            color: #ffffff;
        }
/*-----------------------------------------*/
/*-----Custom Styling-----------------------*/
.hidden-elem {
    display: none !important;
}

.small-hint {
    color: #4c6272;
    font-size: .75rem;
}

.search-btn {
    padding: 2px 8px;
    font-size: 19px;
}

.search-refresh:visited {
    color: #005eb8
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
    position: relative;
}


.table {
    margin-bottom: 1.5rem;
}

    .table th:first-child,
    .table td:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        background-color: #f0f4f5;
    }

.tabbed-btn {
    padding: 2px 8px;
    font-size: 16px;
}

.table-search {
    margin-top: 2rem;
}

.inline-label {
    display: unset !important;
    margin-right: 0.5rem;
}

.pagination {
    display: inline-flex;
    align-items: baseline;
}

.page-list {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0 10px;
}

    .page-list li {
        text-align: center;
        margin: 0 10px;
    }

        .page-list li a, .page-list li a:visited {
            text-decoration: none;
            color: #4c6272;
        }

.curr-page, .curr-page:visited {
    color: #007f3b !important;
    font-weight: 700;
}

.select-width {
    width: 200px
}

.flex-width {
    min-width: unset;
}
/*-----------------------------------------*/


/**Utility---------------------------------*/
.mt-3 {
    margin-top: 1rem;
}
.fs-6 {
    font-size: 1rem !important;
}
.mb-0 {
    margin-bottom: 0 !important;
}
.mb-3 {
    margin-bottom: 1rem;
}

.mx-3 {
    margin-right: 0.1rem;
}
/*-----------------------------------------*/