:root {
    /* #region Colors */
    --brb-background-light-blue: #323F4F;
    --brb-background-dark-blue: #242d39;
    --brb-link-blue: #0088cc;
    --brb-link-azure: #8ed8f5;
    --brb-link-gray-white: #e0e5eb;
    --brb-link-gray: #91a3ba;
    --brb-link-dark-gray: #4b5e78;
    --brb-text-gray: #4b5e78;
    --brb-text-light-gray: #91a3ba;
    --brb-text-gray-white: #EEE;
    --brb-divider-gray: #e5e5e5;
    /* #endregion */
    /* #region Sizes */
    --brb-header-height: 118px;
    --brb-header-outer-margin: 2rem;
    --brb-image-preview-size: 200px;
    /* #endregion */
}

/* #region Base Page*/

body {
    font-family: ProximaNova, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--brb-text-gray);
}

/* #endregion */

/* #region Page Layout */

.top-header {
    background-color: var(--brb-background-dark-blue);
    color: var(--brb-text-gray-white);
}

.main-header {
    background-color: var(--brb-background-light-blue);
    color: white
}

    .main-header .dropdown-item.active {
        background-color: var(--brb-background-light-blue);
    }

        .main-header .dropdown-item.active:hover {
            background-color: white;
            color: var(--brb-text-gray);
        }

.main-footer {
    background-color: var(--brb-background-dark-blue);
    color: var(--brb-text-light-gray);
}

.main-content {
    min-height: calc(100vh - var(--brb-header-height));
}

.brb-card {
    color: var(--brb-text-gray);
}

.brb-tabs .nav-link {
    color: var(--brb-link-blue)
}

    .brb-tabs .nav-link.active {
        color: var(--brb-link-dark-gray)
    }

.brb-preline {
    white-space: pre-line;
}

/* #endregion */

/* #region Interactive */

a {
    color: var(--brb-link-blue);
}

    a:hover, a:focus {
        color: var(--brb-link-azure);
    }

.brb-dropdown-menu {
    background-color: var(--brb-background-dark-blue);
    overflow-x: auto;
    overflow-y: auto;
    max-height: 50vh;
    max-width: calc(100vw - var(--brb-header-outer-margin));
}

.brb-dropdown-divider {
    background-color: var(--brb-divider-gray);
}

.btn-primary.brb-button {
    background-color: var(--brb-background-light-blue);
    border-color: var(--brb-background-light-blue);
}

.btn-outline-primary.brb-button {
    border-color: var(--brb-background-light-blue);
    color: var(--brb-background-light-blue);
}

    .btn-outline-primary.brb-button:hover, .btn-primary.brb-button:hover {
        background-color: var(--brb-link-blue);
        border-color: var(--brb-link-blue);
    }


.brb-light-gray-link {
    color: var(--brb-link-gray-white);
}

.brb-gray-link {
    color: var(--brb-link-gray);
}

.brb-quarter-height {
    max-height: 25vh;
}

/* #endregion */

/* #region Data Tables*/

.dt-paging-button .page-link {
    color: var(--brb-text-gray);
}

.dt-paging-button.active .page-link {
    background-color: var(--brb-background-light-blue);
    border-color: var(--brb-background-light-blue);
    color: var(--brb-text-gray-white);
}

.brb-border {
    border-color: var(--brb-text-gray) !important;
}

.brb-table td, .brb-table th {
    color: var(--brb-text-gray);
}

.brb-table .dt-processing div {
    --dt-row-selected: 50, 63, 79; /* --brb-background-dark-blue in RGB to override internal variable */
}

.brb-table .row:first-child {
    margin-top: 0 !important;
}

.brb-table .dt-layout-full:first-child {
    margin-top: 0 !important;
}

/* #endregion */

/* #region Select2 */

.select2.select2-container {
    /* Force auto resize based on bootstrap settings */
    width: 100% !important;
}

.select2-search__field {
    /* Force auto resize based on bootstrap settings */
    width: 100% !important;
}

.select2-container .select2-selection--multiple {
    /* Force consistent vertical size */
    overflow-y: auto;
    max-height: 80px;
}

/* #endregion */

/* #region Inputs */

.brb-image-preview {
    max-width: var(--brb-image-preview-size);
    max-height: var(--brb-image-preview-size);
}

/* #endregion */

/* #region Tooltip */

.tooltip .tooltip-inner {
    white-space: pre-line;
}

/* #endregion */

/* #region Badges */

.circle-badge {
    display: inline-block;
    margin-right: 2px;
    height: 12px;
    width: 12px;
    border-radius: 50%;
}

.product-badge {
    display: flex;
    align-items: center;
}

.total-charge-badge {
    background-color: #005638;
}

/* #endregion */

/* #region Skeleton Loaders */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Applies shimmer effect for skeleton elements */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 4s infinite linear;
}

.skeleton-img {
    height: 200px;
    width: 100%;
}

.skeleton-header {
    height: 2rem;
    width: 100%;
}

.skeleton-title {
    height: 1.5rem;
    width: 8rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 3rem;
    width: 100%;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.skeleton-button {
    height: 2.5rem;
    border-radius: 0.375rem;
    width: 6rem;
}

.skeleton-badge {
    height: 1.5rem;
    border-radius: 1rem;
    width: 4rem;
}

/* #endregion */

/* #region Toast */

.toast-message {
    white-space: pre-line;
}

/* #endregion */

/* #region Spinners */

.spinner-h1 {
    height: calc(1.375rem + 1.74vw);
    width: calc(1.375rem + 1.74vw);
}

@media (min-width: 1200px) {
    .spinner-h1 {
        height: 2.7rem;
        width: 2.7rem;
    }
}

/* #endregion */