:root {
    --wm-bg-0: #f4f4f4;
    --wm-bg-1: #fff;
    --wm-bg-2: #fff;
    --wm-color-0: #606060;
    --wm-color-1: #787878;
    --wm-color-2: #a2a2a2;
    
    --dm-bg-0: #151515;
    --dm-bg-1: #2A2A2A;
    --dm-bg-2: #202020;
    --dm-color-0: #EEEEEE;
    --dm-color-1: #BCBCBC; 
    --dm-color-2: #8b8b8b; 

    --t-sec: 500ms;

    --neutral-opacity: 0.7
}

/* Initial style */
p, small, div, section, article, td, li{
    color: var(--wm-color-1);
    transition: var(--t-sec);
}h1, h2, h3, h4, h5, h6, th{
    color: var(--wm-color-0);
    transition: var(--t-sec);
}body{ 
    background: var(--wm-bg-0);
    transition: var(--t-sec);
    min-height: 100vh;
}header{ 
    background: var(--wm-bg-1);
    transition: var(--t-sec);
}.card{ 
    background: var(--wm-bg-2);
    transition: var(--t-sec);
    border: 0px;
    box-shadow: 0 0px 6px 5px rgba(128, 128, 128, 0.1) !important;
}.border{
    border: 1px solid var(--wm-color-1)
}.u-card{
    background: var(--wm-bg-2);
    transition: var(--t-sec);
    border: 0px;
    box-shadow: 0 0px 6px 5px rgba(128, 128, 128, 0.1) !important;
}.btn.btn-user{
    border: 2px solid var(--wm-color-2);
    color: var(--wm-color-2);
    transition: 500ms;
}.btn.btn-user:hover{
    border: 2px solid var(--wm-color-0);
    color: var(--wm-color-0);
}.with-shadow{
    box-shadow: 0 0px 6px 5px rgba(128, 128, 128, 0.1) !important;
}


/* Dark mode */
.dark-mode p,  .dark-mode small, .dark-mode div, .dark-mode section, .dark-mode article, .dark-mode td, .dark-mode li,.dark-mode textarea{
    color: var(--dm-color-1)
}.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6, .dark-mode th{
    color: var(--dm-color-0)
}.dark-mode body, body.dark-mode{ 
    background: var(--dm-bg-0);
}.dark-mode header{ 
    background: var(--dm-bg-1);
}.dark-mode .card{ 
    background: var(--dm-bg-2);
}.dark-mode .border{
    border: 1px solid var(--dm-color-1)
}.dark-mode .u-card{
    background: var(--dm-bg-2);
}.dark-mode .card{ 
    box-shadow: none !important;
}.dark-mode .btn.btn-user{
    border: 2px solid var(--dm-color-2);
    color: var(--dm-color-2);
    transition: 500ms;
}.dark-mode .btn.btn-user:hover{
    border: 2px solid var(--dm-color-0);
    color: var(--dm-color-0);
}.dark-mode .with-shadow{
    box-shadow: 0 0px 6px 5px rgba(128, 128, 128, 0.1) !important;
}.dark-mode table td, .dark-mode table th{
    background: none
}


header{
    max-height: 110px;
    height: 8vh;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header > img{
    max-height: 60%;
    cursor: pointer;
    margin-left: 10px;
}

header > a {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    border-radius: 100%;
    transition: 500ms;
}

main{
    margin: 10px;
    min-height: calc(92vh - 20px);
    border-radius: 18px;
    box-sizing: border-box;
    display: flex;
}

.oveflowded{
    overflow-y: auto;
    max-height: calc(100vh - 10vh);
}

#user-div{
    max-height: 100%;
    
}

header #user-div{
    text-align: right;
}

header #header-right{
    display: flex;
    align-items: center;
    
}

header #header-right > .form-check.form-switch{
    margin-right: 10px;
}

header #user-div *{
    text-align: left;
}

header > h1{
    font-size: 2rem;
    font-weight: bold;
}

#user-div img{
    border-radius: 100%;
    max-width: 100%;
    max-height: 100%;
    height: 5vh;
    margin-right: 20px;
}

.ui-container, .container{
    border-radius: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 10px;
}

.ui-container > .multiple-title{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ui-container > h2, .container > h2,.ui-container > .multiple-title > h2{
    margin-top: 20px;
    margin-left: 5px;
    font-weight: bold;
    margin-bottom: 20px;
}

.page{
    display: flex;
    flex-direction: column;
    width: 100%;
}

.toast{
    position: fixed;
    top: 10px;
    right: 10px;
    border-radius: 10px;
    background: white;
    padding: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.toast > i{
    padding-right:10px;
    font-size: 2rem;
}

.toast.error{
    color: rgb(177, 0, 0);
    background: rgba(255, 198, 198, 0.5);
    box-shadow: 10px 10px 10px rgb(177, 0, 0, 0.5);
    opacity: 0;
    transition: 1s;
}

.toast.warning{
    color: rgb(119, 113, 0);
    background: rgba(255, 245, 173, 0.5);
    box-shadow: 10px 10px 10px rgb(119, 113, 0, 0.5);
    opacity: 0;
    transition: 1s;
}

/* USER DIV */
#user-div > .options{
    max-height: 100%;  
    position: fixed;
    top: calc(8vh - 2px);
    right: 5px;
    padding: 15px;
    min-width: 200px;
    /* box-shadow: 0px 4px  5px 4px rgba(118, 118, 118, 0.424); */
    display: none;
    z-index: 1;
}#user-div > .options > li{
    border-bottom: 2px solid var(--color-2);
    width: 90%;
    cursor: pointer;
    transition: 200ms;
    padding-top: 5px;
    padding-bottom: 5px;
}#user-div > .options > li:hover{
    border-bottom: 2px solid var(--color-3);
    width: 100%;
    text-shadow: 0px 0px 1px var(--color-3);
}#user-div .options  li:hover, #user-div .options li:hover label{
    color: black;
}.dark-mode #user-div .options  li:hover, .dark-mode #user-div .options li:hover label{
    color: white;
}



.clickable{
    cursor: pointer;
}



/* MODAL */
.ui-modal{
    display: none;
    position: fixed;
    top:0;
    left: 0;
    height: 100vh;
    width: 100vw;
    backdrop-filter: blur(5px);
    background: rgba(0,0,0,0.2);
    justify-content: center;
    align-items: center;
}.ui-modal .content-modal{
    max-width: 100vw;
    min-width: 50%;
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    max-height: 90vh;
    overflow-x: auto;
}.ui-modal .modal-header{
    font-size: 2rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--bs-border-color)
}.ui-modal .modal-header > i{
    transition: 500ms;
}.ui-modal .modal-header > i:hover{
    color: rgba(255, 0, 0, 0.514)
}.ui-modal .modal-body{
    padding: 10px
}.ui-modal .modal-form{
    display: flex;
    flex-direction: column;
    align-items: center;
}.ui-modal .modal-form > div{
    width: 80%;
    margin: 5px auto;
}.ui-modal .modal-form > button{
    margin: 10px auto;
    width: 70%;
    transition: 600ms
}.ui-modal .modal-form > button:hover{
    margin: 10px auto;
    width: 80%
}.ui-modal .modal-footer {
    border-top: 2px solid var(--bs-border-color);
    font-size: 2rem;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.dark-mode .ui-modal .content-modal{
    background: var(--dm-bg-0)
}
.dark-mode .ui-modal input[type="text"],
.dark-mode .ui-modal input[type="email"], 
.dark-mode .ui-modal input[type="date"],
.dark-mode .ui-modal input[type="month"],
.dark-mode .ui-modal input[type="time"],
.dark-mode .ui-modal select{
    background: var(--dm-bg-2);
    color: var(--dm-color-0);
}
.dark-mode input[type="time"]::-webkit-calendar-picker-indicator {
    background-color: var(--dm-color-1); /* Altera o fundo do ícone */
    border-radius: 50%;
    padding: 5px;
    transition: 400ms;
}
.dark-mode input[type="time"]::-webkit-calendar-picker-indicator:hover{
    background-color: var(--dm-color-0);
}
.dark-mode .ui-modal button{
    border: 1px solid var(--dm-color-1);
    color: var(--dm-color-1);
}


.cards{
    display: flex;
    flex-wrap: wrap; 
}

.cards > .u-card{
    margin: 10px;
    width: calc( 25% - 20px );
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
    border-radius: 6px;
}

@media only screen and (max-width: 991px) {
    .cards > .u-card{
         width: calc(33% - 20px);
     }
}
@media only screen and (max-width: 768px) {
    .cards > .u-card{
         width: calc(50% - 20px);
     }
}
@media only screen and (max-width: 480px) {
    .cards > .u-card{
         width: 100%;
     }
}


.hovable{
    transition: var(--t-sec)
}
.hovable:hover{
    box-shadow: 0 0px 6px 5px rgba(128, 128, 128, 0.5) !important;
    cursor: pointer;
}




/* FLEX */

.flex{
    display: flex;
}.flex-row{
    flex-direction: row;
    justify-content: space-between;
    height: 100%;
}.flex-column{
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}.flex-gap{
    gap: 10px;
}
/* ALTURAS E LARGURAS */
.h-10{
    height: 10%
}.h-90{
    height:90%
}

/* UTILITIES DE TEXTO */
.centered{
    text-align: center;
}
.scrollable-x{
    overflow-x: auto;
}
.scrollable-y{
    overflow-y: auto;
}
.scrollable-x .w-50{
    flex: 0 0 calc( 50% - 10px);
    box-sizing: border-box;
}

.scrollable-x::-webkit-scrollbar {
    height: 10px;
    
}
.scrollable-x::-webkit-scrollbar-track {
    box-shadow: inset 0 0 2px grey; 
    border-radius: 10px;
}
.scrollable-x::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
    transition: 500ms;
    
}
.scrollable-x::-webkit-scrollbar-thumb:hover {
    background: #333333; 
}




/* TABLE */
table th{
    font-weight: bold;
}

.red{
    color: red !important
}


#t-card{
    overflow-y: auto;
    max-height: 68vh;
}
#t-card::-webkit-scrollbar {
    width: 6px;
    height: 8px;
}
#t-card::-webkit-scrollbar-track {
    box-shadow: inset 0 0 2px grey; 
    /* border-radius: 10px; */
}
#t-card::-webkit-scrollbar-thumb {
    background: #888;
    /* border-radius: 10px; */
    transition: 500ms;
}
#t-card::-webkit-scrollbar-thumb:hover {
    background: #333333; 
}



.navigation-buttons{
    display: flex
}

.navigation-buttons button{
    border: 1px solid black;
    background: rgba(255,255,255,0.1);
    color: black;
    width: 50px;
    transition: 500ms;
}
.navigation-buttons button:hover{
    background: rgba(200, 200, 255, 0.5);
}

.dark-mode .navigation-buttons button{
    border: 1px solid white;
    color: white;
    background: rgba(0,0,0,0.1);
}
.dark-mode .navigation-buttons button:hover{
    background: rgba(200, 200, 255, 0.5);
}



/* Botões de navegação */
.navigation-buttons{
    height: 30px;
}
.navigation-buttons .left{
    border-radius: 10px 0 0 10px;
}
.navigation-buttons .right{
    border-radius: 0 10px 10px 0;
}


/* SCALE-TABLE */
#scale-table th,
#scale-table td {
    white-space: nowrap;
    text-align: center; 
    vertical-align: middle;
}

@media (min-width: 1400px){
    .container.spandible{
        max-width: max-content !important;
    }
}


@media print {
    body * {
        visibility: hidden;
    }
    .print-element, .print-element * {
        visibility: visible;
    }
    .print-element {
        position: absolute;
        left: 0;
        top: 0;
    }
    table {
        width: 100%;
    }


    tr {
        page-break-inside: avoid;
    }


    th, td {
        page-break-inside: avoid;
        word-wrap: break-word;         
    }

    .cell {
        border: 1px solid #000 !important;
        box-shadow: inset 0 0 1px 1px rgba(0, 0, 0, 0.2) !important; 
    }

    .page-break {
        page-break-before: always;
    }

}

.outrange_day{
    color: rgb(174, 174, 1) !important;
    /* background: rgba(255, 184, 176, 0.1) !important; */
}.dark-mode .table th.hday.outrange_day:hover, .table th.hday.outrange_day:hover{
    box-shadow: inset 0 0px 6px 5px rgba(255, 221, 136, 0.2) !important;
}


.day_with_interval{
    color: rgba(255, 0, 0,0.8) !important;
    /* background: rgba(255, 184, 176, 0.1) !important; */
}.dark-mode .table th.hday.day_with_interval:hover, .table th.hday.day_with_interval:hover{
    box-shadow: inset 0 0px 6px 5px rgba(255, 136, 136, 0.2) !important;
}

.feriado{
    background: rgba(255, 173, 114, 0.2) !important
}

/* #scale-table tbody > tr:hover td{
    background: rgba(149, 255, 120, 0.1) !important
} */

#page-period{
    position: fixed;
    left: 0px;
    bottom: 0px;
    padding: 5px;
    z-index: 2;
}#page-period > input{
    background: white;
    box-shadow: 0 0 10px 2px grey;
    border: none;
    border-radius: 6px;
    padding: 6px;
    opacity: 0.35;
    transition: 300ms;
}#page-period > input:focus{
    outline: none
}#page-period > input:hover{
    opacity: 1;
}


#general-scale-button{
    position: fixed;
    bottom: 10px;
    right: 10px;
}