@import ".tailwind.css";

@font-face {
    font-family: 'Muller';
    src: url('../fonts/MullerRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Muller', sans-serif !important;
}

.title-page{
    font-size: 27px;
}

.popover {
    display: none;
    position: fixed;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 90;
    min-width: 200px;
  }

.popover.active {
    display: block;
}

.dropdown-menu {
    flex-direction: column;
}

.required-field, .fake-input:has(.required-field) {
    background-image: url("/assets/icons/info_vermelho.svg");
    background-repeat: no-repeat;
    background-size: 15px 15px;
    background-position: calc(100% - 10px) center;
    /* Ajusta a posição do background */
}

.modal-bg {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: fixed;
    inset: 0px;
    z-index: 50;

    background-color: rgba(0,0,0,0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal-show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: #ffffff;
    margin: auto;
    top: -50px;
    border: 1px solid #888;
    border-radius: 15px; /* Bordas levemente arredondadas */
    height: fit-content;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.modal-overflow-content {
    max-height: 500px;
    overflow-y: scroll;
    overflow-x: hidden;
    z-index: 1;
    padding: 1rem;
    position: relative;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 90%;
    }

    .modal-overflow-content{
        padding: 0;
        height: 60vh;
    }
}

@media (max-width: 	1024px) {
    .modal-content {
        width: 90%;
    }
}

input[list] {
    background-position: calc(100% - 35px) center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* pointer-events: none; Isso desabilita a interação */
}

input[type="date"] {
    background-position: calc(100% - 35px) center;
    width: 100%;
}

/* Sumir com o icone de calendario */

/* input[type="date"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="date"] {
    position: relative;
    width: 100%;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
} */

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

input[type=number] {
    -ms-appearance: textfield;
}

.navbar{
    padding-left: 5%;
    padding-right: 10%;
}

#navbarNavDropdown{
    justify-content: space-between;
}

.nav-link.active{
    border-bottom: 2px solid black;
}

.breadcrumb-container{
    margin-left: 0;
    margin-right: 0;
}

table tr{
    text-align: center;
}
.actions-itens{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.actions-itens a, .actions-itens button {
    width: 80px;
    height: 25px;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

select {
    background-color: #fff;
}

.form-row input[readonly], .form-row input[disabled] {
    background-color: #e2dfdf;
    cursor: default;
}

input[readonly]:not(.legacy-readonly):focus, input[disabled]:not(.legacy-readonly):focus {
    border: none;
    outline: none;
} */

.alert ul{
    margin-bottom: 0;
}

.btn-edit{
    transition: background 0.4s;
    background-color: rgb(139, 139, 8);
}

.btn-delete{
    transition: background 0.4s;
    background-color: rgb(153, 15, 15);
}

.btn-status{
    transition: background 0.4s;
    background-color: rgb(31, 31, 29);
}

.btn-edit:hover{

    background-color: rgb(97, 97, 3);
}

.btn-delete:hover{
    background-color: rgb(121, 11, 11);
}

.btn-status:hover{
    background-color: rgb(77, 77, 74);
}

.btn-edit:active{
    background-color: rgb(150, 150, 30);
}

.btn-delete:active{
    background-color: rgb(158, 32, 32);
}

.btn-status:active{
    background-color: rgb(0, 0, 0);
}

.paginate{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.paginate a{
    border: 1px solid;
    border-radius: 5px;
    padding-inline: 6px;
    text-decoration: none;
}

.header-links{
    display: flex;
    justify-content: end;
}

.btn-create{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 30px;
    text-align: center;
    text-decoration: none;
    color: white;
    border-radius: 13px;
    border: none;
    background-color: rgb(78, 78, 236);
    transition: background 0.4s;
}

.btn-create:hover{
    color: white;
    background-color: rgb(13, 13, 214);
}

.btn-create:active{
    background-color: rgb(3, 3, 143);
}

.disabled-link{
    cursor:default;
    text-decoration: none;
    color: rgb(175, 176, 177);
}

.content-padding{
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1600px;
    margin: auto;
}

@media (max-width: 769px){
    .content-padding{
        padding-left: 5%;
        padding-right: 5%;
    }    
}

@media (min-width: 768px){
    *::-webkit-scrollbar {
        height: 8px;
        width: 8px;
        /* width of the entire scrollbar */
    }
    
    *::-webkit-scrollbar-track {
        background: transparent;
        border-radius: 20px;
        /* color of the tracking area */
    }
    
    *::-webkit-scrollbar-thumb {
        background-color: #CED6E0;
        /* color of the scroll thumb */
        border-radius: 20px;
        /* roundness of the scroll thumb */
        border: 3px solid #CED6E0;
    }
    
    *::-webkit-scrollbar-thumb:hover {
        background-color: #8b949e;
        border-color: #8b949e;
    }
}

/* datalist */
datalist {
    position: absolute;
    top: 100%;
    max-height: 20em;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 50;

    background-color: #fff;
    border-radius: 0 0 15px 15px;
    border: 2px #CED6E0 solid;
    border-top: none;
    box-shadow: 0px 6px 10px 0px rgba(0, 0, 0, 0.05);
}

datalist option {
    font-size: 0.8rem;
    padding: 0.5rem;
}

datalist option:hover {
    color: #000;
    background-color: #CED6E0;
    outline: 0 none;
}

datalist option:focus {
    color: #fff;
    background-color: #005CA9;
    outline: 0 none;
}

.dev-warning {
    position: fixed;
    top: 2;

    font-weight: 800;
    width: 100%;
    padding: 0.25rem;
    z-index: 90;
    
    color: #AAA;
    text-align: center;
    pointer-events: none;
}