/**
 * AgudApp — Custom CSS
 * Estilos globales del proyecto que sobreescriben el template NiceAdmin.
 */

/* DataTables Responsive: ocultar el control default siempre */
table.dataTable.dtr-inline tbody td.dtr-control:before {
    content: '' !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

/* Mostrar "+" solo cuando la tabla tiene columnas ocultas (clase collapsed) */
table.dataTable.dtr-inline.collapsed tbody td.dtr-control:before {
    content: '+' !important;
    color: #3b5998 !important;
    font-weight: bold;
    font-size: 18px;
    width: auto !important;
    height: auto !important;
    margin-right: 6px !important;
}

/* Fila expandida: "−" rojo */
table.dataTable.dtr-inline.collapsed tbody tr.parent td.dtr-control:before {
    content: '\2212' !important;
    color: #dc3545 !important;
}

/* FullCalendar: forzar visibilidad de iconos de navegación */
.fc .fc-icon {
    font-family: "fcicons" !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
}
.fc .fc-button .fc-icon {
    font-size: 1.2em;
    vertical-align: middle;
}

/* Highlight para filas resaltadas (tareas, cumpleaños, navegación entre módulos) */
.agud-highlight {
    background-color: #fff3cd !important;
    outline: 3px solid #ff0000;
    outline-offset: -3px;
    box-shadow: inset 4px 0 0 #3b5998;
    animation: agud-glow 1.5s ease-in-out infinite;
}
@keyframes agud-glow {
    0%, 100% { outline-color: #ff0000; box-shadow: inset 4px 0 0 #3b5998, 0 0 6px 0 rgba(255,0,0,0.3); }
    50%      { outline-color: #ff4444; box-shadow: inset 4px 0 0 #3b5998, 0 0 14px 2px rgba(255,0,0,0.5); }
}
.agud-highlight-fade {
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    animation: none;
    transition: background-color 2s ease;
}

/* Timeline de historial de tareas */
.task-timeline {
    position: relative;
    padding-left: 30px;
}
.task-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}
.task-timeline-item {
    position: relative;
    margin-bottom: 16px;
}
.task-timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #dee2e6;
}
.task-timeline-item.tl-created::before { background: #3b5998; box-shadow: 0 0 0 2px #3b5998; }
.task-timeline-item.tl-activity::before { background: #3b5998; box-shadow: 0 0 0 2px #3b5998; }
.task-timeline-item.tl-closing::before { background: #198754; box-shadow: 0 0 0 2px #198754; }
.task-timeline-item.tl-completed::before { background: #0d6839; box-shadow: 0 0 0 2px #0d6839; }
.task-timeline-item.tl-reopened::before { background: #fd7e14; box-shadow: 0 0 0 2px #fd7e14; }
.task-timeline-item.tl-archived::before { background: #6c757d; box-shadow: 0 0 0 2px #6c757d; }

/* Evitar que .table-responsive corte dropdowns dentro de acordeones */
.accordion-body .table-responsive {
    overflow: visible;
}

/* DataTables: checkboxes de selección — tamaño mínimo para mobile */
.customer-checkbox, .task-checkbox,
#selectAllCustomers, #selectAllTasks {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
