.modal-content {
    background: #fff !important;
}

.btn-primary {
    background: #8B0000 !important;
    border-color: #8B0000 !important;
}

/*Buscador*/
.input-group input.form-control {
    border-radius: 20px 0 0 20px;
    border-right: 0;
    box-shadow: none;
}

.input-group .btn {
    border-radius: 0 20px 20px 0;
    border-left: 0;
    background: #8B0000;
    color: #fff;
    transition: background 0.2s;
}

    .input-group .btn:hover {
        background: #8B0000;

    }
/*Buscador*/



/*table*/
.table-responsive table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.table-responsive th {
    background: #22304a;
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid #4fc3f7;
}

.table-responsive tr:nth-child(even) {
    background: #f7fafd;
}

.table-responsive tr:hover {
    background: #e3f2fd;
}

.table-responsive td, .table-responsive th {
    vertical-align: middle;
    padding: 0.75rem 1rem;
}

.small-font {
    font-size: 0.875rem !important; /* 14px aproximadamente */
}

.table-sm td, .table-sm th {
    padding: 0.3rem 0.5rem; /* Padding más compacto */
}


/*table*/
.titulo-accion .btn {
    background: #4fc3f7;
    color: #fff;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    transition: background 0.2s;
}

    .titulo-accion .btn:hover {
        background: #0288d1;
    }
/* side bar*/

.sidebar {
    background: #1a2332;
    color: #fff;
    min-height: 100vh;
    width: 250px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.08);
}

.sidebar-logo {
    margin: 1rem auto;
    display: block;
}

.sidebar-brand-text {
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.sidebar-nav {
    padding: 0;
    margin-top: 2rem;
}

.sidebar-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
}

    .sidebar-header:hover,
    .sidebar-header[aria-expanded="true"] {
        background: #10141d;
        color: #fff;
    }

.sidebar-toggle-icon {
    transition: transform 0.3s;
}

.sidebar-header[aria-expanded="true"] .sidebar-toggle-icon {
    transform: rotate(180deg);
}

.sidebar-dropdown {
    background: #202a3a;
    border-left: 3px solid #8B0000;
    margin-left: 0.5rem;
}

.sidebar-item {
    margin: 0.5rem 0;
}

.sidebar-link {
    color: #b0c4de;
    padding: 0.5rem 2rem;
    display: block;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
    .sidebar-link.active {
        background: #8B0000;
        color: #fff !important;
        font-weight: 600;
    }
    .sidebar-link:hover,
    .sidebar-link:focus {
        background: #8B0000;
        color: #fff;
        font-weight: 600;
    }

.sidebar.collapsed {
    margin-left: -260px;
    transition: margin 0.3s;
}

.sidebar {
    margin-left: 0;
    transition: margin 0.3s;
}

/*Side bar*/
.pagination .page-item.active .page-link {
    background: #8B0000;
    border-color: #8B0000;
    color: #fff;
    font-weight: 600;
}

.pagination .page-link {
    color: #22304a;
    border-radius: 50%;
    margin: 0 2px;
    transition: background 0.2s, color 0.2s;
}

    .pagination .page-link:hover {
        background: #e3f2fd;
        color: #0288d1;
    }





/* Estilos para el contenedor */
.autocomplete-generico {
    width: 100% !important;
    position: relative;
    display: block;
}

    /* Estilo para el input */
    .autocomplete-generico .form-control,
    .autocomplete-generico .input-group .form-control {
        border-radius: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        border: 1px solid #dee2e6;
        display: block !important;
    }

    .autocomplete-generico .autocomplete-results {
        max-height: 200px; /* Altura máxima visible */
        overflow-y: auto; /* Scroll vertical si hay muchos resultados */
        border-radius: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border: 1px solid #bdbdbd;
        position: absolute;
        z-index: 1000;
    }

    /* Estilo para cada opción */
    .autocomplete-generico .autocomplete-item {
        padding: 0.5rem 1rem;
        cursor: pointer;
        transition: background 0.2s;
    }

        .autocomplete-generico .autocomplete-item:hover,
        .autocomplete-generico .autocomplete-item:focus {
            background: #f0f0f0;
            color: #007bff;
        }