/* ================================================
   NIVELES DE ACCESO - ESTILOS ESPECÍFICOS
   ================================================ */

/* Grid de permisos */
.permisos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.permiso-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s;
}

.permiso-item:hover {
    border-color: #30586B;
    background: #fff;
    box-shadow: 0 2px 8px rgba(48, 88, 107, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    width: 100%;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.permiso-info {
    flex: 1;
}

.permiso-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.permiso-header i {
    color: #30586B;
}

.permiso-info small {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Modal grande para permisos */
.modal.large {
    max-width: 900px;
    width: 90%;
}

/* Vista de detalle */
.detail-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-row label {
    font-weight: 600;
    color: #495057;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-section {
    margin-top: 1rem;
}

.detail-section h4 {
    color: #30586B;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Grid de permisos en vista de detalle */
.permisos-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.permiso-view-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .permisos-grid {
        grid-template-columns: 1fr;
    }
    
    .permisos-view-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .modal.large {
        width: 95%;
    }
}

/* Badges específicos */
.badge.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge.badge-secondary {
    background-color: #6c757d;
    color: white;
}

/* Actions column spacing */
.data-table .actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
