:root {
	--gradient-bg-color1: #243c6d;
    --gradient-bg-color2: #34569b;
    --gradient-bg-color3: #4470ca;
    --gradient-bg-color4: #538af8;
    --primary-color: #004985;
    --secondary-color: #8babd8;
    --terciary-color: #2a62b0;

    --content-background: #f5f5f5;

    --alert-info-background     : #d9edf7;
    --alert-info-color          : #31708f;
    --alert-warning-background  : #fcf8e3;
    --alert-warning-color       : #8a6d3b;
    --alert-error-background   : #f2dede;
    --alert-error-color        : #a94442;
    --alert-success-background  : #dff0d8;
    --alert-success-color       : #3c763d;

    --bs-primary: #004985;
    --bs-primary-rgb: 138, 43, 226;
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
}

/* bootstrap theme */
.btn-primary {
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
}
.btn-primary.input-group-addon {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
}

.form-check-input:checked {
    background-color: var(--terciary-color);
    border-color: var(--terciary-color);
}

.list-group-item.active {
    background-color: var(--terciary-color);
    border-color: var(--terciary-color);
}

.nav-pills {
    --bs-nav-pills-link-active-bg: var(--terciary-color);
}
.nav {
    --bs-nav-link-color: var(--terciary-color);
    --bs-nav-link-hover-color: var(--terciary-color);
}

.page-link {
    color: var(--terciary-color);
}
.active>.page-link, .page-link.active {
    background-color: var(--terciary-color) !important;
    border-color: var(--terciary-color) !important;
}


/* Alerts */
.alert.flash-message i {
    float: right;
    margin-top: 0px;
    font-size: 20px;
    cursor: pointer;
}
.alert.alert-info {
    background-color: var(--alert-info-background);
    border-color: var(--alert-info-background);
    color: var(--alert-info-color);
}
.alert.alert-warning {
    background-color: var(--alert-warning-background);
    border-color: var(--alert-warning-background);
    color: var(--alert-warning-color);
}
.alert.alert-error {
    background-color: var(--alert-error-background);
    border-color: var(--alert-error-background);
    color: var(--alert-error-color);
}
.alert.alert-success {
    background-color: var(--alert-success-background);
    border-color: var(--alert-success-background);
    color: var(--alert-success-color);
}


.main-body {
    display: flex;
}

#content {
    width: 100%;
    padding: 5px;
    margin-top: 4px;
    height: calc(100% - 50px);
    position: fixed;
    overflow: auto;
}

.bem-brasil-header {
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    padding: 15px;
}

.side-tools-div {
    width: 250px;
    height: 100%;
    position: fixed;
    overflow: hidden;
    z-index: 10;
    transition: width 300ms ease-in-out;
}
.side-tools-div.side-tools-hidden {
    width: 0px;
}
.side-tools-div .side-tools-header {
    height: 50px;
    padding-right: 2.26px;
    justify-content: center;
    /* background: linear-gradient(90deg, var(--gradient-bg-color1) 25%, var(--gradient-bg-color2) 100%); */
    background: var(--primary-color);
    box-shadow: 1px 3px 0 1px var(--secondary-color);
    margin-bottom: 4px;
}

.side-tools-div .side-tools-header .logo-div {
    width: 100%;
    display: flex;
}
.side-tools-div .side-tools-header .logo-div span {
    font-size: 24px;
    font-family: 'Baloo Bhaijaan';
    width: calc(100% - 35px);
    text-align: center;
}

.side-tools-div .side-tools {
    background-color: var(--bs-body-bg);
    height: calc(100% - 50px);
    overflow: auto;
}

.content-div {
    width: 100%;
    position: fixed;
    height: 100%;
    background-color: var(--content-background);
}
.content-div .content-header {
    height: 50px;
    box-shadow: 1px 3px 0 1px var(--secondary-color);
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 0;
    /* background: linear-gradient(90deg, rgba(52,86,155,1) 50%, rgba(83,138,248,1) 100%); */
    background: var(--primary-color);

}
.content-div .content-header .bem-brasil-logo-div {
    display: flex;
    align-items: center;
    position: absolute;
    left: calc(50% - 90px);
    height: 50px;
}
.content-div .content-header .bem-brasil-logo-div span {
    font-size: 24px;
    text-align: center;
    margin: 0px 5px;
}

.content-div .content-header .pages-div-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.content-div .content-header .pages-div-header .page-group {
    display: flex;
}
.content-div .content-header .pages-div-header .page-group .page {
    width: 110px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    color: white;
    text-decoration: none;
}
.content-div .content-header .pages-div-header .page-group .page i{
    font-size: 25px;
}
.content-div .content-header .pages-div-header .page-group .page span{
    font-size: 13px;
    font-weight: bold;
}
#profile_page.profile-selected, #producer_page.producer-selected, #batch_page.batch-selected, #dashboard_page.dashboard-selected {
    background-color: var(--secondary-color);
}

.hide-tools{
    font-size: 18px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    visibility: visible;
    align-items: center;
    justify-content: center;
    transition: width 300ms ease-in-out;
}

.tool-box {
    padding: 10px;
    font-size: 13px;
    height: 250px;
}
.tool-box span {
    display: block;
}
.tool-box .tool-box-inner {
    box-shadow: inset 0px 0px 0px 1px #00000012;
    height: calc(100% - 18.56px);
    overflow: auto;
    padding: 5px;
    font-size: 12px;
}


.btn-danger.input-group-addon {
    color: #fff;
    background-color: #d9534f;
    border-color: #d43f3a;
}
.btn-danger.input-group-addon:hover {
    color: #fff;
    background-color: #c9302c;
    border-color: #ac2925;
}

.btn-primary.input-group-addon {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}
.btn-primary.input-group-addon:hover {
    color: #fff;
    background-color: #286090;
    border-color: #204d74;
}

.btn-warning.input-group-addon {
    color: #fff;
    background-color: #f0ad4e;
    border-color: #eea236;
}
.btn-warning.input-group-addon:hover {
    color: #fff;
    background-color: #ec971f;
    border-color: #d58512;
}

.jstree-default .jstree-clicked {
    background: var(--secondary-color);
    color: white;
    box-shadow: inset 0 0 1px black;
}

.fa-ul {
    padding-left: 25px;
}
.fa-ul li.fa-li {
    width: 100%;
    text-align: left;
}

.sub-page {
    height: 50px;
    display: flex;
    align-items: center;
    border-left: 5px solid #b4b4b4;
    color: #333333;
    text-decoration: none;
    margin-right: 5px;
}
.sub-page i {
    font-size: 20px;
    display: flex;
    justify-content: center;
    width: 45px;
}
.sub-page:hover {
    color: #333333;
    text-decoration: none;
    background-color: #d5d5d5;
    border-color: #d5d5d5;
}
.sub-page:focus {
    color: #333333;
    text-decoration: none;
}
.sub-page.selected {
    background-color: #d5d5d5;
    border-color: #d5d5d5;
}

#spy_logout {
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.switch-div {
    display: flex;
    padding: 0;
    align-items: center;
    margin-bottom: 10px;
}
.switch-div span {
    margin-left: 10px;
}

.control-switch {
    width: 50px;
    height: 25px;
    display: flex;
    background: grey;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}
.control-switch.small {
    width: 30px;
    height: 15px;
}
.control-switch .control-switch-background {
    width: 25px;
    height: 100%;
    background: var(--gradient-bg-color3);
    box-shadow: 0 0 0 24px var(--gradient-bg-color3);
    transition: width ease-in-out 300ms, box-shadow ease-in-out 300ms;
}
.control-switch.small .control-switch-background {
    width: 15px;
}
.control-switch.off .control-switch-background {
    width: 0;
    box-shadow: none;
}
.control-switch .control-switch-handle {
    width: 21px;
    height: 21px;
    margin: 2px;
    background: white;
    border-radius: 100%;
}
.control-switch.small .control-switch-handle {
    width: 11px;
    height: 11px;
}

.q__logo {
    width: 48px;
    padding: 4px;
}

.form-spacer {
    margin: 25px 0;
    width: 100%;
    display: inline-block;
    background-image: -webkit-linear-gradient(left, transparent, #00000045, transparent);
    border: 0;
    height: 1px;
}


@media only screen and (max-width: 1024px){
    .content-div .content-header .pages-div-header .page-group .page {
        width: 100px;
    }
    .content-div .content-header .pages-div-header .page-group .page span{
        font-size: 11px;
    }
    .side-tools-div + .content-div .content-header .bem-brasil-logo-div {
        display: none;
    }
    .side-tools-div.side-tools-hidden + .content-div .content-header .bem-brasil-logo-div {
        display: flex;
    }
}


@media only screen and (min-width: 768px){
    .content-div {
        width: calc(100% - 250px);
        right: 0;
        transition: width 300ms ease-in-out;
    }
    #content {
        width: calc(100% - 250px);
        transition: width 300ms ease-in-out;
    }
    .content-div .content-header .hide-tools {
        width: 0;
    }
    .content-div .content-header .hide-tools i {
        display: none;
    }

    .content-div.side-tools-hidden {
        width: 100%;
    }
    #content.side-tools-hidden {
        width: 100%;
    }
    .content-div.side-tools-hidden .content-header .hide-tools {
        width: 50px;
    }
    .content-div.side-tools-hidden .content-header .hide-tools i {
        display: inherit;
    }

    .side-tools-div {
        width: 250px;
    }
}

@media only screen and (max-width: 767px){
    .content-div .content-header .pages-div-header .page-group .page {
        width: 50px;
    }
    .content-div .content-header .pages-div-header .page-group .page i{
        font-size: 20px;
    }
    .content-div .content-header .pages-div-header .page-group .page span{
        font-size: 0;
    }
    .content-div .content-header .bem-brasil-logo-div {
        display: none !important;
    }
}
