:root {
    --color-primary-selected: #0078c287;
    --primaty-light: rgb(54, 143, 199); 
    --danger: rgba(199, 36, 29, 0.9);
    --danger-dark: rgba(150, 26, 21, 0.9);
    --warning: rgba(182, 117, 27, 0.83);
    --success: rgba(79, 167, 20, 0.83);
    --purple: rgba(155, 20, 167, 0.83);
}

html {
    scroll-behavior: smooth;
}

.fade { /* fade modal aberto */
    background-color: rgba(0, 0, 0, 0.45);
}

div.alert { /* notificacoes da pagina */
    z-index: 1052 !important;
    font-weight: 400;
}

/* estilos do site */
.color-primary {
    color: #187CBC !important;
}

.theme-success {
    background-color: var(--success) !important;
    color: white !important;
}

.theme-danger {
    background-color: var(--danger) !important;
    color: white !important;
}

.theme-warning {
    background-color: var(--warning) !important;
    color: white;
}

.theme-primary {
    background-color: #187CBC !important;
    color: white !important;
}

.cardh-theme-primary {
    background-color: #187CBC !important;
    color: white !important;
    width: 80%;
    margin-inline: auto;
    border-radius: 7px !important;
}


/* sidebar */
.sidebar li.nav-divider{ /* divisor de itens sidebar */
    margin-top: 15px;
    right: 15px;
    height: 1px;
    width: calc(100% - 30px);
    margin-inline: auto;
    background-color: rgba(180, 180, 180, 0.3);
}

.sidebar .nav li.active>[data-toggle=collapse] {
    background-color: hsla(0, 0%, 100%, 0.05);
}

.sidebar .nav-item .nav-link > p{ /* item principal */
    font-size: 12px;
}

.sidebar .nav-item .nav-link > span{ /* sub-itens */
    font-size: 12px;
    
}

/* seletor dinamico */
.dyn_selector_ul_container {
    position: absolute;
    width: 100%;
    height: min-content; 
    z-index: 99;
}

.dyn_selector_ul {
    list-style: none;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,.20);
    margin: 0;
    padding: 0;
}

.dyn_selector_item {
    min-width: 100%;
    background: white;
    border: 1px solid #d2d2d2;
    padding-inline: 5px;
}

.dyn_selector_item.ativo {
    background: rgb(183, 183, 252);
}

/* estilo card icon */
.card-text-icon {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

/* estilo sidebar dropdown */
li.nav-item {
    padding: 0;  
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-direction: column;
}

li.nav-item:hover > a.nav-link{
    background-color: hsla(0, 0%, 100%, 0.1) !important;
    border-bottom-left-radius: 0px; 
    border-bottom-right-radius: 0px;
}

li.nav-item:has(div.collapse.show) > a.nav-link, li.nav-item:has(div.collapsing) > a.nav-link {
    background-color: hsla(0, 0%, 100%, 0.1) !important;
    border-bottom-left-radius: 0px; 
    border-bottom-right-radius: 0px;
}

a.nav-link {
    width: 90%; 
    border-bottom-left-radius: 0px; 
    border-bottom-right-radius: 0px;
}

li.nav-item > div {
    width: 90%; 
    padding-bottom: 15px; 
    border-bottom-left-radius: 5.7px; 
    border-bottom-right-radius: 5.7px; 
    background-color: hsla(0, 0%, 100%, 0.1);
}

@keyframes load-circles {
    0% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

.load-circles div {
    left: 94px;
    top: 48px;
    position: absolute;
    animation: load-circles linear 1s infinite;
    background: #93dbe9;
    width: 12px;
    height: 24px;
    border-radius: 6px / 12px;
    transform-origin: 6px 52px;
}

.load-circles div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -0.9166666666666666s;
    background: #93dbe9;
}

.load-circles div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -0.8333333333333334s;
    background: #93dbe9;
}

.load-circles div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.75s;
    background: #93dbe9;
}

.load-circles div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.6666666666666666s;
    background: #93dbe9;
}

.load-circles div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.5833333333333334s;
    background: #93dbe9;
}

.load-circles div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.5s;
    background: #93dbe9;
}

.load-circles div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.4166666666666667s;
    background: #93dbe9;
}

.load-circles div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.3333333333333333s;
    background: #93dbe9;
}

.load-circles div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.25s;
    background: #93dbe9;
}

.load-circles div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.16666666666666666s;
    background: #93dbe9;
}

.load-circles div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.08333333333333333s;
    background: #93dbe9;
}

.load-circles div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
    background: #93dbe9;
}

.load-container {
    width: 100px;
    height: 100px;
    display: inline-block;
    overflow: hidden;
    background: #ffffff;
}

.load-circles {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(0.5);
    backface-visibility: hidden;
    transform-origin: 0 0;
}

.load-circles div {
    box-sizing: content-box;
}

/* barra suspensa */
#barra_suspensa {
    width: 50%; 
    top: 65px;
    right: 0px;
    padding-inline: 10px;
    transition: all 300ms;
    background-color: #bababa;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,.20);
    z-index: 999 !important; 
}

#barra_suspensa.onTop {
    top: 0px;
    border-top-left-radius: 0px;
}

#barra_suspensa .btn-style{
    opacity: 1;
    visibility: visible; 
    min-width: 20px;
    width: fit-content;
    transition: all 300ms;
}

#barra_suspensa .btn-style:nth-child(2) {
    margin-left: 3vw;
}

#barra_suspensa.closed {
    width: 3vw; 
}

#barra_suspensa.closed .btn-style:first-child {
    transform: rotate(180deg);
    transition: all .15s ease-in;
}

#barra_suspensa.closed .btn-style:not(:first-child){   
    opacity: 0;
    visibility: hidden; 
}

#barra_suspensa .form-group {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 5px;
    position: relative;
}

#close_barra_suspensa { /* botao de fechamento barra lateral */
    border: none;
    background: none;
    box-shadow: none;
    width: 4vw !important;
    height: 100%;
    color: white;
    cursor: pointer;   
    outline: none;
    position: absolute;
    left: -1vw;
    top: 0;
}

@media only screen and (max-width: 1140px){
    #barra_suspensa {
        width: 60%;
    }
}

@media only screen and (max-width: 960px){
    #barra_suspensa {
        width: 85%;
    }
}

@media only screen and (max-width: 600px) {
    /* barra suspensa */
    #barra_suspensa {
        width: 95%;
    }

    #barra_suspensa .form-group {
        gap: 5px;
    }

    #barra_suspensa .btn-style{
        width: fit-content;
        font-size: 10px;
        padding-block: 5px;
        padding-inline: 7.5px;
    }

    #barra_suspensa .btn-style:nth-child(2) {
        margin-left: 5vw;
    }

    #barra_suspensa .btn-style:not(#close_barra_suspensa) > i{
        display: none;
    }
}

@media only screen and (max-width: 400px) {
    #barra_suspensa .btn-style{
        width: fit-content;
        font-size: 9px;
        padding-block: 5px;
        padding-inline: 7.5px;
    }
}

div.modal .modal-content{
    background: none;
    box-shadow: none;
}

/* botao */
.btn-style{
    min-width: 20px;
    width: fit-content;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.btn-style > * {
    pointer-events: none;
}

.btn-style i{
    font-size: 16px;
}