:root {
    /* #region Colors */
    --brb-background-light-blue: #323F4F;
    --brb-background-dark-blue: #242d39;
    --brb-background-hover-light-blue: #0d6efd20;
    --brb-background-active-blue: #0088cc;
    --brb-background-active-hover-blue: #2499d4;
    --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 Animation */
    --brb-transition-speed-fast: 0.1s;
    --brb-transition-speed-default: 0.3s;
    /* #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);
    transition: transform var(--brb-transition-speed-default), box-shadow var(--brb-transition-speed-default);
}

.brb-card-interactive:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.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;
}

.brb-modal-footer > * {
    margin: initial;
}

/* #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;
}

.brb-table .dataTable tbody tr td {
    transition: background-color var(--brb-transition-speed-fast), box-shadow var(--brb-transition-speed-fast);
}

.brb-table .dataTable tbody tr:hover td {
    transition: none;
    box-shadow: none !important;
    background-color: var(--brb-background-hover-light-blue);
}

.brb-table .dataTable tbody .selected td {
    background-color: var(--brb-background-active-blue);
    box-shadow: none !important;
}

.brb-table .dataTable tbody .selected td>* {
    color: #fff;
    border-color: #fff;
    transition: none;
}

.brb-table .dataTable tbody .selected:hover td {
    /*color: var(--brb-text-gray);*/
    background-color: var(--brb-background-active-hover-blue);
    box-shadow: none !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;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
    background-color: var(--brb-link-gray-white);
}

/* #endregion */

/* #region Ace Editor */

.brb-liquid-editor {
    min-height: 20em;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.1;
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.ace_scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #6A707A #282D34;
}

/* #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 Responsive Borders */

@media (max-width: 575px) {
    .border {
        border: 1px solid var(--bs-card-border-color) !important;
    }

    .border-top {
        border-top: 1px solid var(--bs-card-border-color) !important;
    }

    .border-left {
        border-left: 1px solid var(--bs-card-border-color) !important;
    }

    .border-bottom {
        border-bottom: 1px solid var(--bs-card-border-color) !important;
    }

    .border-right {
        border-right: 1px solid var(--bs-card-border-color) !important;
    }

    .border-0 {
        border: none !important;
    }

    .border-top-0 {
        border-top: none !important;
    }

    .border-left-0 {
        border-left: none !important;
    }

    .border-bottom-0 {
        border-bottom: none !important;
    }

    .border-right-0 {
        border-right: none !important;
    }
}

@media (min-width: 576px) {
    .border-sm {
        border: 1px solid var(--bs-card-border-color) !important;
    }

    .border-sm-top {
        border-top: 1px solid var(--bs-card-border-color) !important;
    }

    .border-sm-left {
        border-left: 1px solid var(--bs-card-border-color) !important;
    }

    .border-sm-bottom {
        border-bottom: 1px solid var(--bs-card-border-color) !important;
    }

    .border-sm-right {
        border-right: 1px solid var(--bs-card-border-color) !important;
    }

    .border-sm-0 {
        border: none !important;
    }

    .border-sm-top-0 {
        border-top: none !important;
    }

    .border-sm-left-0 {
        border-left: none !important;
    }

    .border-sm-bottom-0 {
        border-bottom: none !important;
    }

    .border-sm-right-0 {
        border-right: none !important;
    }
}

@media (min-width: 768px) {
    .border-md {
        border: 1px solid var(--bs-card-border-color) !important;
    }

    .border-md-top {
        border-top: 1px solid var(--bs-card-border-color) !important;
    }

    .border-md-left {
        border-left: 1px solid var(--bs-card-border-color) !important;
    }

    .border-md-bottom {
        border-bottom: 1px solid var(--bs-card-border-color) !important;
    }

    .border-md-right {
        border-right: 1px solid var(--bs-card-border-color) !important;
    }

    .border-md-0 {
        border: none !important;
    }

    .border-md-top-0 {
        border-top: none !important;
    }

    .border-md-left-0 {
        border-left: none !important;
    }

    .border-md-bottom-0 {
        border-bottom: none !important;
    }

    .border-md-right-0 {
        border-right: none !important;
    }
}

@media (min-width: 992px) {
    .border-lg {
        border: 1px solid var(--bs-card-border-color) !important;
    }

    .border-lg-top {
        border-top: 1px solid var(--bs-card-border-color) !important;
    }

    .border-lg-left {
        border-left: 1px solid var(--bs-card-border-color) !important;
    }

    .border-lg-bottom {
        border-bottom: 1px solid var(--bs-card-border-color) !important;
    }

    .border-lg-right {
        border-right: 1px solid var(--bs-card-border-color) !important;
    }

    .border-lg-0 {
        border: none !important;
    }

    .border-lg-top-0 {
        border-top: none !important;
    }

    .border-lg-left-0 {
        border-left: none !important;
    }

    .border-lg-bottom-0 {
        border-bottom: none !important;
    }

    .border-lg-right-0 {
        border-right: none !important;
    }
}

@media (min-width: 1200px) {
    .border-xl {
        border: 1px solid var(--bs-card-border-color) !important;
    }

    .border-xl-top {
        border-top: 1px solid var(--bs-card-border-color) !important;
    }

    .border-xl-left {
        border-left: 1px solid var(--bs-card-border-color) !important;
    }

    .border-xl-bottom {
        border-bottom: 1px solid var(--bs-card-border-color) !important;
    }

    .border-xl-right {
        border-right: 1px solid var(--bs-card-border-color) !important;
    }

    .border-xl-0 {
        border: none !important;
    }

    .border-xl-top-0 {
        border-top: none !important;
    }

    .border-xl-left-0 {
        border-left: none !important;
    }

    .border-xl-bottom-0 {
        border-bottom: none !important;
    }

    .border-xl-right-0 {
        border-right: none !important;
    }
}

/* #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 */
