/* Custom styles goes here */
html {
    font-size: 14px; /* Reduce el tamaño base de fuente */
}

button, input, select, textarea {
    font-size: 0.875rem; /* Ajusta el tamaño de fuente de los controles */
    padding: 0.5em 1em; /* Reduce el padding de los botones */
}

body {
    line-height: 1.4; /* Ajusta el espaciado entre líneas */
}

/* Ajustar tamaños específicos */
h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4, h5, h6 {
    font-size: 1rem;
}

/* Ajustar tamaño de los textos en los botones */
button {
    font-size: 0.875rem;
    padding: 0.4em 0.8em;
}

.pull-right {
    right: 0;
}

.avatar-iniciales {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #5A8DEE; /* color de fondo */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: sans-serif;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: girar 1s linear infinite;
}

.mensaje-carga {
    margin-top: 20px;
    font-size: 1.2em;
}

@keyframes girar {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Fix for distorted checkbox and select elements */
input[type="checkbox"].form-check-input {
    width: 1.2em;
    height: 1.2em;
    border-radius: 0.25em;
    vertical-align: middle;
    /* Remove unwanted box-shadow or appearance */
    box-shadow: none;
    appearance: auto;
}

.documentos-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.documento-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 0.95rem;
}

.documento-card div {
    margin-bottom: 0.5rem;
}

.documento-card .acciones {
    margin-top: 0.5rem;
}

.documento-card .acciones a {
    text-decoration: none;
    color: #0d6efd;
    font-weight: 500;
}

.documento-card .acciones a:hover {
    text-decoration: underline;
}

.documento-lista .documento-item {
    border-bottom: 1px solid #dee2e6;
}

.documento-lista .documento-item:nth-child(odd) {
    background-color: #f8f9fa; /* gris claro */
}

.documento-lista .documento-item:nth-child(even) {
    background-color: #ffffff;
}
.bg-extralight {
    background-color: #f8f9fa;
}