:root {
    /* Colours */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-light-grey: #f2f2f2;
    --color-greige: #e6dcd5;
    --color-peach: #fcd4c5;
    --color-light-pink: #ffd6dc;
    --color-light-orange: #ff6d33;
    --color-pink: #ff9eb0;
    --color-bright-orange: #e74300;
    --color-dark-red: #992020;
    --color-light-yellow: #ffe4b3;
    --color-light-green: #e0f5dc;
    --color-light-blue: #dcedf5;
    --color-light-purple: #eddbff;
    --color-yellow: #ffbc39;
    --color-sea-green: #76d6c6;
    --color-blue: #9dddfa;
    --color-purple: #8e60bd;
    --color-brown: #433a28;
    --color-dark-green: #2a543f;
    --color-dark-blue: #064361;
    --color-dark-purple: #443254;
    /* Font Families */
    --font-primary: "General Sans", "Arial", sans-serif;
    --font-secondary: 'Inclusive Sans', "Arial", sans-serif;
    /* Integers */
    --integer-400: 400;
}

@font-face {
    font-family: 'General Sans';
    src: url('/fonts/GeneralSans-Semibold.woff2') format('woff2'), url('/fonts/GeneralSans-Semibold.woff') format('woff'), url('/fonts/GeneralSans-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inclusive Sans';
    src: url('/fonts/InclusiveSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inclusive Sans';
    src: url('/fonts/InclusiveSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

html,
body {
    font-family: var(--font-secondary);
    font-weight: var(--integer-400);
    font-size: 18px;
    height: 100%;
    margin: 0px;
    overflow-x: hidden;
    color: var(--color-black);
    background-color: var(--color-light-blue);
}

h1, h2, h3, h4, h5, h6, label {
    font-family: var(--font-primary) !important;
}

h1, .title {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 32px;
}

.text-center {
    text-align: center;
}

.subtext {
    font-size: 20px;
}


.index-container {
    padding-top: 60px;
    background-color: var(--color-light-blue);
    padding-bottom: 60px;
}

.index-container-2 {
    padding-top: 60px;
    background-color: var(--color-white);
    padding-bottom: 60px;
}

.index-left {
    margin-bottom: 30px;
}

.index-right {
    background-color: var(--color-white);
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.index-item {
    margin-bottom: 30px
}

.index-item-2 {
    background-color: var(--color-peach);
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.icon {
    display: block;
    width: 50px;
    border-radius: 8px;
    background-color: var(--color-light-orange);
    padding: 15px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.sub_icon {
    display: inline-block;
    width: 50px;
    border-radius: 8px;
    background-color: var(--color-light-orange);
    padding: 15px;
    text-align: center;
    float: left;
}

.inline {
    display: inline-block;
    padding-left: 30px;
    float: right;
    width: calc(100% - 50px);
}

.icon .bi {
    font-weight: bold;
}

.btn-t2u-primary {
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    padding-left: 25px;
    padding-right: 25px;
    border: 2px solid var(--color-dark-blue);
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .btn-t2u-primary:hover,
    .btn-t2u-primary:active {
        background-color: var(--color-white);
        color: var(--color-dark-blue);
        border: 2px solid var(--color-dark-blue);
    }

.btn-secondary {
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    padding-left: 25px;
    padding-right: 25px;
    border: 2px solid var(--color-dark-blue);
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .btn-secondary:hover,
    .btn-secondary:active {
        background-color: var(--color-dark-blue);
        color: var(--color-white);
        border: 2px solid var(--color-dark-blue);
    }

    .btn-secondary i {
        color: var(--color-dark-blue);
        transition: color 0.3s ease;
    }

    .btn-secondary:hover i,
    .btn-secondary:active i {
        color: var(--color-white);
    }

.dropdown {
    display: inline-block;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    display: inline-block;
    font-size: 30px;
    margin-bottom: 0;
    font-weight: bold;
}

.btn-right {
    float: right;
}

/*-- validate --*/
.field-validation-error {
    color: #b10000;
    font-size: smaller;
}

.field-validation-valid {
    display: none;
}

.input-validation-error {
    border: 2px ridge #ff0000;
}

.validation-summary-valid {
    display: none;
}

.validation-summary-errors ul {
    margin-bottom: 0;
}

/*-- Sidebar --*/
#todoSidebar {
    width: 340px;
}

    #todoSidebar p {
        margin-bottom: 2px;
    }

/*-- Section --*/
.card, .card .card-header {
    border-radius: 8px;
    border: none;
}

    .card .card-header, .card .card-footer {
        background-color: var(--color-white);
        border: 0;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .card .card-body {
        background-color: var(--color-white);
        border-radius: 8px;
        border: 0;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .card .card-header .section-header {
        font-family: var(--font-primary);
        font-weight: 600;
        font-size: 20px;
        margin-bottom: 0;
    }

.card-primary {
    background-color: var(--color-dark-blue);
    box-shadow: none;
}

    .card-primary .card-header {
        background-color: var(--color-dark-blue);
        color: var(--color-white);
    }

.modal-header, .modal-footer {
    border: none;
}

.modal-body {
    padding-top: 0;
    padding-bottom: 0;
}

/*-- nav tabs --*/
.nav-tabs .nav-link {
    border: none;
    color: var(--color-black)
}

    .nav-tabs .nav-link.active {
        position: relative;
        z-index: 1;
    }

.nav-tabs {
    border: none;
}

.filter-icon {
    padding: 6.75px 25px 6.75px 25px;
    color: #000;
    margin: 2px;
    display: inline-block;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    padding-left: 25px;
    padding-right: 25px;
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    border: 2px solid var(--color-dark-blue);
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .filter-icon:hover {
        background-color: var(--color-white);
        color: var(--color-dark-blue);
        border: 2px solid var(--color-dark-blue);
        text-decoration: underline;
    }

.filter-icon-active {
    padding: 6.75px 25px 6.75px 25px;
    color: #000;
    margin: 2px;
    display: inline-block;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    padding-left: 25px;
    padding-right: 25px;
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    border: 2px solid var(--color-dark-blue);
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .filter-icon-active:hover {
        background-color: var(--color-white);
        color: var(--color-dark-blue);
        border: 2px solid var(--color-dark-blue);
        text-decoration: underline;
    }


/* Pagination styling */
.pagination {
    gap: 8px;
}

    .pagination .page-item {
        margin: 0;
    }

a.page-link {
    font-family: var(--font-secondary);
    font-weight: 600;
}

.pagination .page-link {
    color: var(--color-black);
    background-color: transparent;
    border: none;
    border-radius: 50% !important;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

    /* Number pages - hover with underline */
    .pagination .page-link:hover {
        text-decoration: underline;
        text-decoration-color: var(--color-black);
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
    }

    .pagination .page-link:focus {
        box-shadow: none !important;
        background-color: transparent;
        color: var(--color-black);
        outline: none;
    }

/* Active page link - light orange background and border */
.pagination .page-item.active .page-link {
    border: 2px solid var(--color-light-orange);
    background-color: var(--color-light-orange);
    color: var(--color-black);
    cursor: default;
}

    .pagination .page-item.active .page-link:hover {
        text-decoration: none;
    }

/* Navigation arrow buttons (<<, <, >, >>) */
.pagination .page-nav-arrow:hover {
    text-decoration: none !important;
}

/* Disabled state for navigation arrows */
.pagination .page-item.disabled .page-nav-arrow {
    cursor: not-allowed;
}

/* Environment Alert Sticky */
.env-alert-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.env-alert {
    max-width: 600px;
    margin: 0.5rem;
    pointer-events: auto;
}




.list-icon {
    margin: 0 5px;
    color: var(--color-black);
    cursor: pointer;
    text-decoration: none;
}

    .list-icon:hover {
        color: var(--color-dark-blue)
    }

.admin-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

    .admin-link:hover {
        color: var(--color-dark-blue);
        text-decoration: underline;
    }



.dt-processing div, div.dt-processing > div:last-child {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background-color: transparent !important;
    margin: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.dataTables_processing .highcharts-loading {
    display: block;
}

.highcharts-loading {
    opacity: 1 !important;
    top: 0px !important;
    left: 0px !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #fff !important;
}

.highcharts-loading-inner {
    display: block;
}

    .highcharts-loading-inner, .highcharts-loading-inner:before, .highcharts-loading-inner:after {
        background: #dfdfdf;
        -webkit-animation: loader 1s infinite ease-in-out;
        animation: loader 1s infinite ease-in-out;
        width: 1em;
        height: 4em;
    }

.highcharts-loading-inner {
    color: #dfdfdf;
    text-indent: -9999em;
    margin: 0 auto;
    top: 50% !important;
    position: relative;
    font-size: 11px;
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
    opacity: 0.5;
}

    .highcharts-loading-inner:before, .highcharts-loading-inner:after {
        position: absolute;
        top: 0;
        content: '';
    }

    .highcharts-loading-inner:before {
        left: -1.5em;
        -webkit-animation-delay: -0.32s;
        animation-delay: -0.32s;
    }

    .highcharts-loading-inner:after {
        left: 1.5em;
    }

@keyframes loader {
    0%, 80%, 100% {
        box-shadow: 0 0;
        height: 0;
    }

    40% {
        box-shadow: 0 -20px;
        height: 20px;
    }
}

.form-field-black {
    border: 1px solid #000;
    padding: 0.75rem;
}

.tool-checkbox:checked {
    background-color: var(--color-dark-blue);
    border-color: var(--color-dark-blue);
}

.dropdown-item.active, .dropdown-item:active, .dropdown-item:focus, .dropdown-item:hover {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
}

.form-label {
    font-family: var(--font-primary);
    font-weight: 600;
}

.tool-checkbox {
    margin-top: 0;
    margin-right: 10px;
}



.btn-checkbox {
    border: solid 1px #828282;
    padding: 10px;
    border-radius: 0;
    width: 90%;
    margin-bottom: 14px;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

    .btn-checkbox:hover, .btn-check + .btn:hover {
        background-color: #E74300;
        border: solid 1px #E74300;
        color: #000;
        font-weight: bold;
    }

.btn-check:checked + .btn {
    background-color: #E74300;
    border: solid 1px #E74300;
    color: #000;
}




/* Metrics Cards */
.section-totals .card {
    background-color: var(--color-dark-blue);
    margin-bottom: 5px;
    height: calc(100% - 5px);
}

    .section-totals .card .card-body {
        background-color: var(--color-dark-blue);
    }

    .section-totals .card .card-body {
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .section-totals .card .card-body .nav-text {
            flex-grow: 1;
        }

.card-subtitle, .card-title {
    color: var(--color-white);
}

.section-totals .card .card-body .nav-text small {
    color: rgba(255, 255, 255, 0.7);
}

.section-totals .card .card-body .nav-icon {
    flex-shrink: 0;
}

    .section-totals .card .card-body .nav-icon .badge {
        background-color: var(--color-light-blue);
        color: var(--color-dark-blue);
        display: inline-block;
        padding-top: 8px;
        padding-bottom: 8px;
    }

.section-totals .status-badges {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.tl-no-rad {
    border-top-left-radius: 0;
}


.pre-wrap {
    white-space: pre-wrap;
    word-break: break-word;
}

.title-error {
    font-size: 25px;
    margin-bottom: 30px;
}

.scroll-table {
    display: block;
    overflow-y: hidden;
    box-sizing: border-box;
    float: left;
    height: 100%;
    width: 100%;
}

    .scroll-table tbody, .scroll-table thead, .scroll-table tfoot {
        flex-direction: column;
        display: flex;
    }

    .scroll-table tbody {
        max-height: 340px;
        overflow: auto;
    }

    .scroll-table tr {
        display: flex;
    }

    .scroll-table tbody tr:first-child td {
        border-top: none;
    }

    .scroll-table td, .scroll-table th {
        flex: 1;
    }

    .scroll-table tbody td:last-child, .scroll-table thead th:last-child, .scroll-table tfoot td:last-child {
        text-align: center;
    }


.size70 {
    width: 70px;
    height: 70px;
}

.general {
    font-family: var(--font-primary);
    font-size: 20px;
}




/* =========================================
   Responsive - col-md (min-width: 768px)
   ========================================= */
@media (max-width: 768px) {
    html, body {
        font-size: 16px;
    }

    h1, .title {
        font-size: 24px;
    }

    .subtext {
        font-size: 18px;
    }

    .index-container {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .index-container-2 {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .index-left {
        margin-bottom: 15px;
    }

    .index-item {
        margin-bottom: 15px
    }

    .index-item-2 {
        height: auto;
    }

    /* =========================================
   Responsive - col-sm (min-width: 576px)
   ========================================= */
    @media (max-width: 576px) {
        .btn-t2u-primary {
            margin-top: 15px;
            margin-bottom: 15px;
            width: 100%;
        }

        .btn-right {
            float: initial;
        }
    }
}

/* Captcha */
.hidden {
    display: none;
}

.btn-pause,
.btn-play,
.btn-reload {
    cursor: pointer;
    border: none;
    width: 24px;
    height: 24px;
    color: transparent;
    font-size: 0;
    background-color: transparent;
}

.btn-pause {
    background: url('/img/pause-button.png') no-repeat center;
}

.btn-play {
    background: url('/img/play-button.png') no-repeat center;
}

.btn-reload {
    background: url('/img/reload-button.png') no-repeat center;
}
