/* filepath: includes/estilospermisos.css */
/* Estilos personalizados para el sistema de permisos de recolección */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Cards personalizados */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* Botones del dashboard */
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Estadísticas */
.card.bg-success,
.card.bg-primary,
.card.bg-warning,
.card.bg-info {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* DataTables personalization */
.dataTables_wrapper {
    padding: 20px 0;
}

.table thead th {
    background-color: #495057;
    color: white;
    font-weight: 600;
    border: none;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Estados */
.badge-programada {
    background-color: #17a2b8;
    color: white;
}

.badge-en-campo {
    background-color: #ffc107;
    color: #212529;
}

.badge-finalizada {
    background-color: #28a745;
    color: white;
}

.badge-cancelada {
    background-color: #dc3545;
    color: white;
}

.badge-activo {
    background-color: #28a745;
    color: white;
}

.badge-inactivo {
    background-color: #6c757d;
    color: white;
}

/* Editor DataTables */
.DTE_Body {
    background-color: #fff;
}

.DTE_Header {
    background-color: #495057;
    color: white;
    font-weight: 600;
}

.DTE_Form_Buttons {
    text-align: right;
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .fa-2x {
        font-size: 1.5em !important;
    }
}

/* Loading spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner-border-lg {
    width: 3rem;
    height: 3rem;
}

/* Alertas personalizadas */
.alert-custom {
    border-left: 4px solid;
    border-radius: 0;
}

.alert-custom.alert-info {
    border-left-color: #17a2b8;
}

.alert-custom.alert-warning {
    border-left-color: #ffc107;
}

.alert-custom.alert-success {
    border-left-color: #28a745;
}

.alert-custom.alert-danger {
    border-left-color: #dc3545;
}


div.DTED_Lightbox_Background {
    z-index: 110;
}

div.DTED_Lightbox_Wrapper {
    z-index: 111;
    display: flex;
    justify-content: center;
    align-items: center;
}

DTED DTED_Lightbox_Wrapper {
    z-index: 110;
}
/* ============================= */
/* FIX Editor – SIN romper modal */
/* ============================= */

/* Lightbox visible */
.DTED_Lightbox_Background {
    z-index: 110;
}

.DTED_Lightbox_Wrapper {
    z-index: 111;
}

/* Contenido del formulario */
.DTE_Form_Content {
    max-width: 100%;
}

/* Inputs y selects */
.DTE_Field input,
.DTE_Field select,
.DTE_Field textarea {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* Evitar desbordamiento por texto largo */
.DTE_Field select {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
