@keyframes spinner {to{transform: rotate(1turn)}}

h1{
    font-weight: bold!important;
    font-size: 32px!important;
    margin: 20px 0px 16px 0px!important;
    padding: 0px!important;
}

.displayNone{
    display: none!important;
}

hr{
    margin: 20px 0px 20px 0px;
}

.loader-container{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.loader{
    width: 24px;
    padding: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #bb0000;
    --_m: 
      conic-gradient(#0000 10%,#000),
      linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
            mask: var(--_m);
    -webkit-mask-composite: source-out;
            mask-composite: subtract;
    animation: spinner 1s infinite linear;
}

.loader-small{
    width: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    border-right-color: rgba(255,255,255,1);
    animation: spinner 1s infinite linear;
}

tr{
    transition: 0.3s ease-in-out;
}

tr:hover{
    background-color: #eff6ff!important;
}

td{
    vertical-align: middle!important;
}

.modal-container{
    position: fixed;
    width: 100vw;
    height: 100svh;
    top: 0px;
    left: 0px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.modal{
    min-width: 450px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 24px;
    background: white;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.2);
}

.modal.preregistro{
    min-width: 750px;
    max-width: 1300px;
    gap: 20px;
}

.modal.preregistro .profile{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.modal.preregistro .profile > div{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
    justify-content: center;
    height: 180px;
    width: 100%;
    padding: 12px;
    background: #f1f1f1;
    border-radius: 12px;
}

.modal .grid{
    display: grid;
    gap: 8px 40px;
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
    background: #f1f1f1;
    border-radius: 12px;
}

.modal .grid .expand{
    grid-column: 1 / -1;
}

.modal img{
    min-width: 150px;
    max-width: 150px;
    min-height: 180px;
    max-height: 180px;
    border-radius: 12px;
    object-fit: cover;
}

.modal p{
    margin: 0px;
}

.modal p.title{
    font-weight: bold;
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 8px;
}

.modal p.text{
    font-size: 16px;
    line-height: 20px;
    color: #3e3e3e;
    padding-bottom: 8px;
    border-bottom: 1px solid #dadada;
}
.modal .grid p.text:last-of-type,
.modal.preregistro .profile > div p.text:last-of-type{
    padding-bottom: 0px;
    border-bottom: 0px;
}

.modal.preregistro p.text{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.modal p.small-text{
    font-size: 14px;
    line-height: 18px;
    color: #7d7d7d;
}

.modal .modal-buttons{
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid #d2d2d2;
}

.modal .modal-buttons > div{
    min-height: 20px;
    min-width: 100px;
}

.modal .modal-buttons .confirm-button{
    min-width: 100px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 12px;
    text-align: center;
    transition: 0.3s ease-in-out;
    color: white;
    background: #1d4ed8;
    text-transform: capitalize;
}

.modal .modal-buttons .confirm-button.aprobar{
    background: #15803d;
}

.modal .modal-buttons .confirm-button.aprobar:hover{
    background: #166534;
}

.modal .modal-buttons .confirm-button.rechazar{
    background: #b91c1c;
}

.modal .modal-buttons .confirm-button.rechazar:hover{
    background: #991b1b;
}

.modal .modal-buttons .cancel-button{
    cursor: pointer;
    font-size: 16px;
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    color: #000;
    transition: 0.3s ease-in-out;
    background: transparent;
}

.modal .modal-buttons .confirm-button:hover{
    background: #1e40af;
}

.modal .modal-buttons .cancel-button:hover{
    background: #f1f1f1;
}

.toast{
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    background: #bbf7d0;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.2);
    z-index: 9;
}

.toast.ok{
    background: #bbf7d0;
}

.toast.ko{
    background: #fecaca;
}

.toast span{
    min-width: 36px;
    max-width: 36px;
    min-height: 36px;
    max-height: 36px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.toast.ok span{
    background: #064e3b;
}

.toast.ko span{
    background: #991b1b;
}

.toast span::after{
    content: '';
    background-size: cover;
    width: 24px;
    height: 24px;
}

.toast.ok span::after{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Cpath fill='white' d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
}

.toast.ko span::after{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Cpath fill='white' d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z'/%3E%3C/svg%3E");
}

.toast p{
    color: black;
    font-size: 16px;
    margin: 0px;
}

.tabs-container{
    overflow-x: scroll;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.tabs{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.tabs > div{
    width: 100%;
    min-width: 175px;
    text-align: center;
    color: black;
    font-size: 16px;
    padding: 16px;
    background: transparent;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    white-space: nowrap;
}

.tabs > div:hover{
    background: #eee;
}

.tabs > .active{
    background: white;
    font-weight: bold;
    border-bottom: 4px solid black;
}


.status{
    text-align: center;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 200px;
    white-space: nowrap;
    transition: 0.3s ease-in-out;
}

.status.approved{
    color: #15803d;
    border: 1px solid #15803d;
    background: #bbf7d0;
}

.status.rejected{
    color: #b91c1c;
    border: 1px solid #b91c1c;
    background: #fee2e2;
}

.status.pending{
    color: #2563eb;
    border: 1px solid #2563eb;
    background: #dbeafe;
}

.status.pending-aval{
    color: #c2410c;
    border: 1px solid #c2410c;
    background: #ffedd5;
}

.btn-container{
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 8px;
}

.btn{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    text-align: center;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    transition: 0.3s ease-in-out;
    color: white;
    cursor: pointer;
}

.btn:hover{
    color: white;
}

.btn.ok{
    background: #15803d;
}

.btn::after{
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-size: cover;
    pointer-events: none;
}

.btn.ok::after{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Cpath fill='white' d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
}

.btn.ok:hover{
    background: #166534;
}

.btn.ko{
    background: #b91c1c;
}

.btn.ko::after{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Crect width='256' height='256' fill='none'/%3E%3Cpath fill='white' d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z'/%3E%3C/svg%3E");
}

.btn.ko:hover{
    background: #991b1b;
}