:root {
    --bb-primary: #9fa8da;
    --bb-secondary: #1A5B8A;
    --bb-lighter: #366EFD;
    --bb-green: #2E7E32;
    --bb-error: rgba(221, 18, 2, 0.1);
    --bb-error-border: #DD1202;
    --bb-dark-grey: #6262625c;
    --bb-icon-hover: #2b2b2b27;
    --bb-icon-active-bg: #eeeeee;
    --bb-default: #2f2f2f;
    --bb-active: #aaaaaa;
    --bb-info: #366EFD;
    --bb-info-dark: #5686ff;
    --bb-success: #388e3c;
    --bb-warn: rgba(221, 18, 2, 0.88);
    --bb-text: #2b2b2b;
    --bb-label-color: #7a7a7a;
    --bb-chart-a: #fafafa;

    --bb-bg1: #4465d2;
    --bb-bg2: #447fd2;
    --bb-bg3: #01aa8c;
    --bb-bg4: #392eca;
    --bb-bg5: #ca2e31;
    --bb-bg6: #1367c9;
    --bb-bg7: #84009b;

    --table-border-width: 1px;

    --bb-html-dark-color: #fff;
    --bb-html-light-color: #000000af;

    --bb-form-submit-color-light: #eb23dd;
    --bb-form-submit-color-dark: #99028a;

    --bb-border-default: 5px dashed #0478b2a8;
}

.bb-heading {
    color: var(--bb-headline);
    font-weight: 700;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.bb-bg-1 {
    background-color: var(--bb-bg1) !important;
}

.bb-bg-2 {
    background-color: var(--bb-bg2) !important;
}

.bb-bg-3 {
    background-color: var(--bb-bg3) !important;
}    

.bb-bg-4 {
    background-color: var(--bb-bg4) !important;
}   

.bb-bg-5 {
    background-color: var(--bb-bg5) !important;
}

.bb-bg-6 {
    background-color: var(--bb-bg6) !important;
}

.bb-bg-7 {
    background-color: var(--bb-bg7) !important;
}    

@media (prefers-color-scheme: dark) {

    html.bb.no-dark-mode a.btn.form-submit {
        background-color: var(--bb-form-submit-color-light) !important;
    }

    html.bb a.btn.form-submit {
        background-color: var(--bb-form-submit-color-dark) !important;
    }


}

@media (prefers-color-scheme: light) {

    html.bb a.btn.form-submit {
        background-color: var(--bb-form-submit-color-light) !important;
    }

    html.bb.dark-mode a.btn.form-submit {
        background-color: var(--bb-form-submit-color-dark) !important;
    }

}



/* bb-dropdown menu */

span.bb-dropdown-span {
   font-size: 6px;
}

ul.bb-dropdown-content {
    min-width: 200px !important;
    font-size: 12px;
    font-weight: normal;
    color: #232323;
    clear: both;
    color: rgba(0, 0, 0, 0.87);
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding-top: 4px;
    padding-bottom: 4px;
}
ul.bb-dropdown-content li.bb-dropdown-item {
    list-style: none;
    float: left;
    width: 200px;
    max-height: 28px !important;
    margin-top: 0px;
    margin-right: -1px;
    margin-bottom: -1px;
    margin-left: 0px;
    font-size: 12px;
    text-align: left;
    line-height: 1rem !important;
    display: block;
    min-height: 28px !important;
}


ul.bb-dropdown-content li.bb-dropdown-item>a,
ul.bb-dropdown-content li>span {
    font-size: 12px;
    font-weight: normal;
    line-height: 16px !important;
    padding: 4px 4px !important;
    /* min-height: 28px !important; */
    /* line-height: 1rem !important; */
    /* width: 180px; */
}

.divider {
   padding-top: 1px !important;
   padding-bottom: 0px !important;
}



.form-submit {
    width: 100%;
}

.modal .modal-content {
    max-height: 70vh;
    overflow-y: auto;
  }

.select-dropdown {
    position: static !important;
  } 

@media (prefers-color-scheme: dark) {
    html:not(.no-dark-mode) {
        color: var(--bb-html-dark-color);
    }
}

html {
    color: var(--bb-html-light-color);
}

.clickable {
    cursor: pointer;
}

a.clickable {
    text-decoration: none;
    color: var(--bb-info);
    border-bottom: none !important;
}

.collection-link:hover {
    cursor: pointer;
    background-color: rgb(223, 222, 222);
}

.bb-pt-4 {
    padding-top: 4px;
}

.bb-pt-8 {
    padding-top: 8px;
}

.bb-pt-12 {
    padding-top: 12px;
}

.bb-pt-16 {
    padding-top: 16px;
}

.bb-pt-20 {
    padding-top: 20px;
}

.bb-pt-24 {
    padding-top: 24px;
}

.bb-pt-28 {
    padding-top: 28px;
}

.bb-pt-32 {
    padding-top: 32px;
}

.bb-pt-36 {
    padding-top: 36px;
}

.bb-pt-40 {
    padding-top: 40px;
}

.bb-pt-44 {
    padding-top: 44px;
}

.bb-pt-48 {
    padding-top: 48px;
}

.bb-pt-52 {
    padding-top: 52px;
}

.bb-pt-56 {
    padding-top: 56px;
}

.bb-pt-60 {
    padding-top: 60px;
}

.bb-pt-64 {
    padding-top: 64px;
}


.bb-round-4 {
    border-radius: 4px;
}

.bb-round-8 {
    border-radius: 8px;
}

.bb-round-12 {
    border-radius: 12px;
}

.bb-round-left-4 {
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
}

.bb-round-left-8 {
    border-bottom-left-radius: 8px;
    border-top-left-radius: 8px;
}

.bb-round-left-12 {
    border-bottom-left-radius: 12px;
    border-top-left-radius: 12px;
}


.bb-round-right-4 {
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
}

.bb-round-right-8 {
    border-bottom-right-radius: 8px;
    border-top-right-radius: 8px;
}

.bb-round-right-12 {
    border-bottom-right-radius: 12px;
    border-top-right-radius: 12px;
}

.bb-round-top-12 {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.bb-round-bottom-12 {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.bb-border-top-0 {
    border-top: 0px !important;
}

.bb-border-bottom-0 {
    border-bottom: 0px !important;
}

.bb-actionbar-default {
    margin-top: 0px;
    display: inline-block;
    width: 100%;
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
}

.bb-actionbar-square {
    margin-top: 0px;
    display: inline-block;
    width: 100%;
    border: 1px solid #dddddd;

}

.bb-actionbar-default-sm {
    margin-top: 0px;
    display: inline-block;
    width: 100%;
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
}

.bb-actionbar-square-sm {
    margin-top: 0px;
    display: inline-block;
    width: 100%;
    border: 1px solid #dddddd;
}

.bb-actionbar-square-sm .bb-shortcut-links li {
    list-style: none;
    float: left;
    width: 40px;
    height: 40px;
    padding-top: 2px;
    padding-right: 2px;
    padding-bottom: 2px;
    padding-left: 2px;
    margin-top: 0px;
    margin-right: -1px;
    margin-bottom: -1px;
    margin-left: 0px;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}


.bb-actionbar-default-sm .bb-shortcut-links li {
    list-style: none;
    float: left;
    width: 40px;
    height: 40px;
    padding-top: 2px;
    padding-right: 2px;
    padding-bottom: 2px;
    padding-left: 2px;
    margin-top: 0px;
    margin-right: -1px;
    margin-bottom: -1px;
    margin-left: 0px;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

div.icons {
    margin-top: 16px;
    display: inline-block;
    width: 100%;
}

div.bar-icons {
    margin-top: 0px;
    display: inline-block;
    width: 100%;
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
}

.bb-actionbar-default-sm ul.bb-shortcut-links {
    height: 36px;
    margin-top: 0;
    margin-bottom: 0;
}

.bb-actionbar-square-sm ul.bb-shortcut-links {
    height: 36px;
    margin-top: 0;
    margin-bottom: 0;
}

ul.bb-shortcut-links {
    height: 65px;
    margin-top: 0;
    margin-bottom: 0;
}

.bb-shortcut-links li {
    list-style: none;
    float: left;
    width: 70px;
    height: 65px;
    padding-top: 4px;
    padding-right: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    margin-top: 0px;
    margin-right: -1px;
    margin-bottom: -1px;
    margin-left: 0px;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

/* .bb-shortcut-links li:hover {
    background-color: var(--bb-icon-hover);
    cursor: pointer;
} */

.bb-shortcut-links a.icon-active li {
    background-color: var(--bb-icon-active-bg);
}

.bb-shortcut-links .far {
    display: block;
    margin-top: 5px;
    margin-right: auto;
    margin-bottom: 10px;
    margin-left: auto;
    font-size: 24px;
}

.bb-shortcut-links .fas {
    display: block;
    margin-top: 5px;
    margin-right: auto;
    margin-bottom: 10px;
    margin-left: auto;
    font-size: 24px;
}

.bb-shortcut-links .fab {
    display: block;
    margin-top: 5px;
    margin-right: auto;
    margin-bottom: 10px;
    margin-left: auto;
    font-size: 24px;
}

.bb-shortcut-links .fal {
    display: block;
    margin-top: 5px;
    margin-right: auto;
    margin-bottom: 10px;
    margin-left: auto;
    font-size: 24px;
}

a.bb-icon-default {
    color: var(--bb-default);
}

a.bb-icon-active {
    color: var(--bb-active);
}

a.bb-icon-info {
    color: var(--bb-info);
}

html.bb.dark-mode a.bb-icon-info {
    color: var(--bb-info-dark);
}


html:not(.no-dark-mode) a.bb-icon-info {
    color: var(--bb-info-dark);
}


a.bb-icon-success {
    color: var(--bb-success);
}

a.bb-icon-warn {
    color: var(--bb-warn);
}

p.bb-paragraph {
    padding-left: 10px;
}

div.row.bb-row {
    margin-top: 1px !important;
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 24px;
}

div.bb-space-top-8 {
    padding-top: 8px !important;
}

div.bb-space-bottom-8 {
    padding-bottom: 8px !important;
}

div.bb-space-top-16 {
    padding-top: 16px !important;
}

div.bb-space-bottom-16 {
    padding-bottom: 16px !important;
}

div.bb-margin-top-8 {
    margin-top: 8px !important;
}

div.bb-margin-bottom-8 {
    margin-bottom: 8px !important;
}

div.bb-margin-top-16 {
    margin-top: 16px !important;
}

div.bb-margin-bottom-16 {
    margin-bottom: 16px !important;
}

div.bb-margin-top-32 {
    margin-top: 32px !important;
}

div.bb-margin-bottom-32 {
    margin-bottom: 32px !important;
}

/*FORMS*/

.bb-label {
    color: var(--bb-label-color);
    font-size: 14px;
    font-weight: 600;
    padding-left: 10px;
    padding-top: 8px;
}

.bb-data {
    /* background-color: #252525;
    border: 1px solid #353535; */

    border-radius: 4px;
    margin-top: 2px;
    font-size: 16px;
    font-weight: 400;
    padding: 0px 10px;
    margin-bottom: 0px;
}

.bb-data textarea {
    width: 100%;
    height: 300px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: 0;
    resize: vertical !important;
    padding-top: 14px;
    padding-bottom: 14px;
}


textarea:focus {
    outline: none;
}

@media (prefers-color-scheme: dark) {

    nav a.brand-logo {
        color: #ffffff !important;
    }

    html:not(.no-dark-mode) .bb-data {
        border: 1px solid #353535 !important;
        color: var(--bb-html-dark-color);
    }

    html:is(.no-dark-mode) .bb-data {
        border: 1px solid #dfdfdf !important;
        color: var(--bb-html-light-color);
    }



    html:not(.no-dark-mode) .bb-data textarea {
        color: #fff;
    }

}

@media (prefers-color-scheme: light) {

    html:is(.dark-mode) .bb-data {
        border: 1px solid #353535 !important;
    }



    html:not(.dark-mode) .bb-data {
        border: 1px solid #dfdfdf !important;
    }

}



/* html.no-dark-mode div.bb-data {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
} */

div.bb-input input {
    border-bottom: 0px !important;
    padding-left: 15px !important;
    margin-bottom: 0px !important;
    padding-left: 0px !important;
    height: 2.5rem !important;
}

/* html:not(.no-dark-mode) nav .brand-logo {
    color: #ffffff !important;
} */





input[type="checkbox"].bb-inline-checkbox {
    position: unset !important;
    opacity: 100% !important;
    pointer-events: all !important;
    padding: 8px 8px !important;
    vertical-align: middle !important;
    width: auto !important;
}

div.bb-data-header {
    padding-top: 16px;
    font-size: 32px;
    font-weight: 800;
    /* color: var(--bb-dark-grey); */
    border-top: solid 1px;
    border-left: solid 1px;
    border-right: solid 1px;
    margin-bottom: 0px;
}



div.bb-data-form {
    margin: 0px !important;
}

.bb-data-label {
    /* color: var(--bb-label-color); */
    font-weight: 700;
    padding-top: 8px !important;
    padding-bottom: 4px !important;
}

.bb-data-value {
    /* color: var(--bb-dark-grey); */
    font-weight: 300 !important;
    padding-top: 8px !important;
    padding-bottom: 4px !important;
}

.bb-data-value input {
    /* width: calc(100% - 100px) !important; */
    display: inline !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bb-data-value select {
    width: calc(100% - 100px) !important;
    display: inline !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

.bb-data-value a {
    background-color: #efefef3b;
    padding: 0px 8px 0px 5px;
    border-radius: 2px;
    text-decoration: none;
    color: #aaaaaa !important;
    /* opacity: 0.75; */
    margin-right: 2px;
    margin-top: 2px;
    font-weight: 400;
    font-size: 12px;
    border-bottom: none !important;
}

.bb-data-value a:hover {
    background-color: rgba(175, 175, 175, 0.5);
}

input.bb-inline-edit {
    font-weight: 500 !important;
    font-size: 15px !important;
    ;
}

a.bb-inline-save-btn {
    background-color: rgb(164, 1, 1);
}

a.bb-inline-cancel-btn {
    background-color: #dddddd;
}


.bb-edit {
    background-color: #fff4c1;
}

.bb-edit select {
    background-color: #fff4c1 !important;
    border: 1px solid #636363 !important;
}

.bb-hide {
    visibility: hidden;
}



.bb-checkbox {
    visibility: hidden;
}

/* DASH CARDS */

.card-panel.card-dash.metrics-card .card-section {
    margin-bottom: 1px !important;
}

.card-panel.card-dash.metrics-card .card-label {
    font-size: 0.9em;
}

.card-value {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 8px !important;
    color: #ffffff;
}



.card-panel.card-dash.metrics-card .otp-section {
    margin-top: auto;
    font-size: x-small;
}


.chart-container {
    height: 330px;
}

/* CUSTOM TOOLTIPS */
.custom-tooltip {
    color: #333;
    padding: 10px;
    background: #fff;
    border: none;
    border-radius: 8px;
}

.custom-tooltip .marker {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 5px;
    border-radius: 50%;
}

/* page loading */

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 42, 42, 0.746);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  .spinner {
    border: 10px solid #f3f3f3;
    border-top: 10px solid #d2019b;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  