/* ============================================
   APP.CSS - ESTILOS UNIFICADOS PRODSERV S.A.
   ============================================
   Este archivo contiene todos los estilos de la aplicación.
   
   Color principal: #9EC34F (Verde Prodserv)
   ============================================ */

/* --------------------------------------------
   1. VARIABLES GLOBALES
   -------------------------------------------- */
:root {
    --verde-principal: #9EC34F;
    --verde-principal-oscuro: #87b33e;
    --verde-claro: #f0f7e6;
    --verde-muy-claro: #f8fbf2;
    --gris-900: #111827;
    --gris-800: #1f2937;
    --gris-700: #374151;
    --gris-600: #4b5563;
    --gris-500: #6b7280;
    --gris-400: #9ca3af;
    --gris-300: #d1d5db;
    --gris-200: #e5e7eb;
    --gris-100: #f3f4f6;
    --gris-50: #f9fafb;
    --danger: #dc2626;
    --success: #10b981;
    --warning: #d97706;
    --info: #3b82f6;
}

/* --------------------------------------------
   2. RESET Y BASE
   -------------------------------------------- */
body {
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 76px;
    padding-bottom: 80px;
}

#contenido {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* --------------------------------------------
   3. UTILITIES DE FONDO
   -------------------------------------------- */
.bg-verde-principal {
    background: linear-gradient(135deg, #9EC34F 0%, #87b33e 100%) !important;
}
.bg-verde-claro { background-color: var(--verde-claro) !important; }
.bg-verde-muy-claro { background-color: var(--verde-muy-claro) !important; }
.bg-gris-oscuro { background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important; }
.bg-gray-50 { background-color: #f9fafb !important; }
.bg-gray-100 { background-color: #f3f4f6 !important; }
.bg-white-20 { background: rgba(255, 255, 255, 0.2) !important; }

/* --------------------------------------------
   4. UTILITIES DE TEXTO
   -------------------------------------------- */
.text-verde-principal { color: var(--verde-principal) !important; }
.text-gray-900 { color: #111827 !important; }
.text-gray-800 { color: #1f2937 !important; }
.text-gray-700 { color: #374151 !important; }
.text-gray-600 { color: #4b5563 !important; }
.text-gray-500 { color: #6b7280 !important; }
.text-white-80 { color: rgba(255, 255, 255, 0.8) !important; }

/* --------------------------------------------
   5. UTILITIES DE BORDES
   -------------------------------------------- */
.border-verde-principal { border: 2px solid #9EC34F !important; }
.border-verde-suave { border-color: #e2f0d2 !important; }

/* --------------------------------------------
   6. ICONOS Y AVATARES
   -------------------------------------------- */
.icon-container {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dept-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.8rem;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.icon-container-sm {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------
   7. BOTONES Y ACCIONES
   -------------------------------------------- */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-verde-principal {
    background: linear-gradient(135deg, #9EC34F 0%, #87b33e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-verde-principal:hover {
    background: linear-gradient(135deg, #87b33e 0%, #6d9a2e 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 195, 79, 0.4);
}

.btn-outline-verde {
    border: 2px solid var(--verde-principal);
    color: var(--verde-principal);
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-verde:hover {
    background: var(--verde-principal);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 195, 79, 0.3);
}

.btn-outline-verde.active {
    background: var(--verde-principal);
    color: white;
    transform: translateY(-2px);
}

.btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    text-decoration: none;
}

.btn-action:hover {
    transform: translateY(-2px);
}

.btn-view {
    background: #6c757d;
    color: white;
}

.btn-view:hover {
    background: #5c636a;
    color: white;
}

.btn-options {
    background: #64748b;
    color: white;
}

.btn-options:hover {
    background: #475569;
    color: white;
}

.btn-primary {
    background-color: var(--verde-principal);
    border-color: var(--verde-principal);
}

.btn-primary:hover {
    background-color: var(--verde-principal-oscuro);
    border-color: var(--verde-principal-oscuro);
}

.btn-sm {
    transition: all 0.3s ease;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-group .btn {
    border-radius: 6px;
    margin-right: 0.25rem;
}

/* --------------------------------------------
   8. TARJETAS ESTADÍSTICAS (STATS CARDS)
   -------------------------------------------- */
.stats-card {
    min-width: 120px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------
   9. TABLA DE TICKETS
   -------------------------------------------- */
.table-tickets {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.table-tickets thead th {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.table-tickets tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #eef2ff;
}

.table-tickets tbody tr:hover {
    background: #f8fafc;
}

.table-tickets tbody td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
    font-size: 0.85rem;
    color: #334155;
}

/* Tablas generales */
.table > :not(caption) > * > * {
    padding: 1rem 0.75rem;
    border-bottom-color: #e5e7eb;
}

.table thead th {
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.table tbody tr {
    transition: all 0.2s ease;
}

/* Hover SOLO en celdas de datos, NO en acciones */
.table tbody tr td:not(:last-child):hover {
    background-color: var(--verde-muy-claro);
    transition: background-color 0.2s ease;
}

/* --------------------------------------------
   10. BADGES Y ETIQUETAS
   -------------------------------------------- */
.badge {
    font-weight: 600;
    border-radius: 20px !important;
}

/* Prioridad - solo texto */
.priority-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-high { color: #dc2626; }
.priority-medium { color: #d97706; }
.priority-low { color: #10b981; }

/* Aprobación - solo texto */
.approval-text {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.approval-approved { color: #15803d; }
.approval-pending { color: #b45309; }
.approval-rejected { color: #b91c1c; }
.approval-none { color: #475569; }

/* Approval con fondo (versión badge) */
.approval-approved-badge {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #10b981;
    border: 1px solid #bbf7d0;
}
.approval-pending-badge {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    border: 1px solid #fde68a;
}
.approval-rejected-badge {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border: 1px solid #fecaca;
}
.approval-none-badge {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7c3aed;
    border: 1px solid #d8b4fe;
}

/* --------------------------------------------
   11. SELECTOR DE ESTADO
   -------------------------------------------- */
.status-select {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    width: auto;
    min-width: 110px;
    border: 1px solid #e2e8f0;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #334155;
}

.status-select:hover:not(:disabled) {
    border-color: #9EC34F;
}

.status-select:focus:not(:disabled) {
    border-color: #9EC34F;
    outline: none;
    box-shadow: 0 0 0 2px rgba(158, 195, 79, 0.1);
}

.status-select:disabled {
    background-color: #f1f5f9;
    cursor: not-allowed;
    color: #94a3b8;
}

/* --------------------------------------------
   12. TICKET ID Y TÍTULO
   -------------------------------------------- */
.ticket-id {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.8rem;
    color: #475569;
}

.ticket-title {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.85rem;
    line-height: 1.3;
}

.ticket-date {
    font-size: 0.75rem;
    color: #64748b;
}

.ticket-time {
    font-size: 0.65rem;
    color: #94a3b8;
}

/* --------------------------------------------
   13. FORMULARIOS
   -------------------------------------------- */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-text {
    font-size: 0.85rem;
}

.form-control {
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--verde-principal);
    box-shadow: 0 0 0 0.2rem rgba(158, 195, 79, 0.25);
    outline: none;
}

.form-control:read-only {
    background-color: #f8fbf2 !important;
}

.form-control::placeholder {
    color: #9ca3af;
    opacity: 0.8;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239EC34F' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.input-group-text {
    font-weight: 600;
    background-color: #f0f7e6;
    border: 2px solid #9EC34F;
    color: #374151;
}

/* Estados de validación */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3cpath d='M6 7v2'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* --------------------------------------------
   14. TARJETAS (CARDS)
   -------------------------------------------- */
.card {
    transition: box-shadow 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 8px;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header.bg-verde-claro {
    background-color: #f0f7e6 !important;
    border-bottom: 1px solid #e2f0d2;
}

.card-departamento {
    transition: all 0.3s ease;
}

.card-departamento:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

/* --------------------------------------------
   15. MODALES
   -------------------------------------------- */
.modal-content {
    border-radius: 16px !important;
    border: none;
}

.modal-header {
    border-radius: 16px 16px 0 0 !important;
}

.modal-footer {
    border-radius: 0 0 16px 16px !important;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* --------------------------------------------
   16. PAGINACIÓN
   -------------------------------------------- */
.pagination {
    gap: 4px;
    margin-bottom: 0;
}

.pagination .page-link {
    border: 2px solid var(--gris-200);
    color: var(--gris-700);
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--verde-claro);
    border-color: var(--verde-principal);
    color: var(--verde-principal);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--verde-principal) 0%, var(--verde-principal-oscuro) 100%);
    border-color: var(--verde-principal);
    color: white;
}

.paginacion-mejorada .pagination {
    margin-bottom: 0;
}

.paginacion-mejorada .page-link {
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.paginacion-mejorada .page-link:hover {
    background-color: var(--verde-claro);
    color: var(--verde-principal);
    border-color: var(--verde-principal);
}

.paginacion-mejorada .page-item.active .page-link {
    background: linear-gradient(135deg, #9EC34F 0%, #87b33e 100%);
    border-color: var(--verde-principal);
}

/* --------------------------------------------
   17. TABS
   -------------------------------------------- */
.nav-tabs {
    border-bottom: 2px solid #e5e7eb;
}

.nav-tabs .nav-link {
    border: none;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:not(.active):hover {
    background-color: #f8fafc;
    border-color: #e5e7eb;
    transform: translateY(-2px);
}

/* --------------------------------------------
   18. TOOLTIPS
   -------------------------------------------- */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 0.6rem;
    background: #1e293b;
    color: white;
    font-size: 0.65rem;
    white-space: nowrap;
    border-radius: 6px;
    display: none;
    z-index: 1000;
    margin-bottom: 6px;
}

[data-tooltip]:hover:before {
    display: block;
}

/* --------------------------------------------
   20. VISTA MÓVIL - TABLA/GRID
   -------------------------------------------- */
@media (min-width: 768px) {
    .tickets-grid-mobile {
        display: none;
    }
    .tickets-table-desktop {
        display: block;
    }
}

@media (max-width: 767px) {
    .tickets-table-desktop {
        display: none;
    }
    .tickets-grid-mobile {
        display: block;
    }
    
    .ticket-card-mobile {
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        transition: all 0.3s ease;
        background: white;
    }
    
    .ticket-card-mobile:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }
}

/* --------------------------------------------
   21. CONTADOR DE RESULTADOS
   -------------------------------------------- */
.results-counter {
    background: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #64748b;
    border: 1px solid #e2e8f0;
    display: inline-block;
}

/* --------------------------------------------
   22. EMPTY STATE (SIN RESULTADOS)
   -------------------------------------------- */
.empty-state {
    padding: 3rem 1rem;
}

/* --------------------------------------------
   23. PROGRESS BAR
   -------------------------------------------- */
.progress {
    background-color: #e5e7eb;
    border-radius: 3px;
}

.progress-bar {
    transition: all 0.3s ease;
    border-radius: 10px;
}

/* --------------------------------------------
   24. SELECT2 PERSONALIZADO
   -------------------------------------------- */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 48px !important;
    border: 2px solid #9EC34F !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 2.5rem 0.5rem 1rem !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #9EC34F !important;
    box-shadow: 0 0 0 0.2rem rgba(158, 195, 79, 0.25) !important;
}

.select2-container--bootstrap-5 .select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
}

.select2-container--bootstrap-5 .select2-selection__arrow b {
    border-color: #9EC34F transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
}

.select2-container--bootstrap-5.select2-container--open .select2-selection__arrow b {
    border-color: transparent transparent #9EC34F transparent !important;
    border-width: 0 5px 6px 5px !important;
}

.select2-container--bootstrap-5 .select2-selection__placeholder {
    color: #6b7280 !important;
}

.select2-container--bootstrap-5 .select2-selection__clear {
    color: #dc3545 !important;
    font-size: 1.2rem !important;
    margin-right: 25px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 2px solid #9EC34F !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    margin-top: 4px !important;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border: 2px solid #e5e7eb !important;
    border-radius: 0.25rem !important;
    padding: 0.5rem !important;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus {
    border-color: #9EC34F !important;
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(158, 195, 79, 0.25) !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #f0f7e6 !important;
    color: #111827 !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected {
    background-color: #9EC34F !important;
    color: white !important;
}

/* --------------------------------------------
   25. ANIMACIONES
   -------------------------------------------- */
.animate__animated {
    animation-duration: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --------------------------------------------
   26. LOGIN ESPECÍFICO
   -------------------------------------------- */
.div-card {
    width: 100%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header-login {
    position: relative;
    background-image: url(../../public/img/login/2148128428.jpg);
    background-position: center;
    background-size: cover;
    min-height: 100px;
}

.header-login::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.header-login h4 {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding-top: 30px;
}

.rounded-top-4 {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

.rounded-bottom-4 {
    border-bottom-left-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* --------------------------------------------
   27. CÍRCULOS DE ESTADO PARA DASHBOARD
   -------------------------------------------- */
.circle-digitado {
    background: linear-gradient(135deg, #9EC34F 0%, #87b33e 100%) !important;
}
.circle-proceso {
    background: linear-gradient(135deg, #FFA726 0%, #FB8C00 100%) !important;
}
.circle-finalizado {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%) !important;
}

/* --------------------------------------------
   28. RESPONSIVE GENERAL
   -------------------------------------------- */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
    
    .container {
        padding: 1rem !important;
    }
    
    .stats-card {
        min-width: 100px;
        padding: 1rem !important;
    }
    
    .nav-tabs .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .nav-tabs .nav-link {
        width: 100%;
        text-align: center;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.8rem;
    }
    
    .pagination .page-link {
        padding: 6px 12px;
        font-size: 0.875rem;
    }
    
    .select2-container {
        width: 100% !important;
    }
    
    .modal-body {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0.75rem !important;
    }
}

/* Tablets y dispositivos medios */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* --------------------------------------------
   29. AJUSTES PARA NAVBAR Y FOOTER FIJOS
   -------------------------------------------- */
.navbar.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

footer.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #212529 !important;
}

/* Mejoras para el dropdown en móvil/tablets */
@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        background-color: #343a40;
        border: none;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item {
        color: #fff;
        padding-left: 2rem;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item:hover {
        background-color: #9EC34F;
        color: #fff;
    }
    
    .navbar-nav .dropdown-toggle::after {
        position: absolute;
        right: 15px;
        top: 18px;
    }
}

/* --------------------------------------------
   30. MISCELÁNEOS
   -------------------------------------------- */
.hover-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.line-height-normal {
    line-height: 1.6;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #e5e7eb !important;
}

.list-group-item:last-child {
    border-bottom: none !important;
}

.text-success {
    color: var(--verde-principal) !important;
}

.spinner-border.text-verde-principal {
    color: var(--verde-principal) !important;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Estilos para el canvas de firmas */
.draw-canvas {
    transition: all 0.3s ease;
}

.draw-canvas:hover {
    box-shadow: 0 4px 12px rgba(158, 195, 79, 0.2);
}

/* Evidencia de imágenes */
.evidencia-imagen {
    transition: transform 0.3s ease;
}

.evidencia-imagen:hover {
    transform: scale(1.05);
}

/* Estilos para radio buttons y checkboxes */
.form-check-input:checked {
    background-color: var(--verde-principal);
    border-color: var(--verde-principal);
}

.form-check-input:focus {
    border-color: var(--verde-principal);
    box-shadow: 0 0 0 0.2rem rgba(158, 195, 79, 0.25);
}

/* --------------------------------------------
   31. ESTADOS DE TICKET (BADGES CON FONDO)
   -------------------------------------------- */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.status-abierto {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

.status-proceso {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

.status-cerrado {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
}

/* --------------------------------------------
   32. TARJETAS DE ARCHIVOS (FILE CARDS)
   -------------------------------------------- */
.file-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.file-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.file-preview {
    height: 140px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.file-preview img:hover {
    transform: scale(1.05);
}

.file-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.file-icon.pdf {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}

.file-icon.pdf i {
    font-size: 2rem;
}

.file-icon.video {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.file-icon.video i {
    font-size: 2rem;
}

.file-icon.default {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
}

.file-icon.default i {
    font-size: 2rem;
}

.file-info {
    padding: 0.75rem;
    text-align: center;
}

.file-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-download {
    display: inline-block;
    width: 100%;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, #9EC34F 0%, #87b33e 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 195, 79, 0.3);
    color: white;
}

/* --------------------------------------------
   33. BOTONES DE ACCIÓN
   -------------------------------------------- */
.btn-return {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-return:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-edit {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #9EC34F 0%, #87b33e 100%);
    color: white;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 195, 79, 0.3);
    color: white;
}

/* --------------------------------------------
   34. DESCRIPCIÓN DE DETALLE
   -------------------------------------------- */
.description-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    line-height: 1.6;
    color: var(--gris-700);
}

.description-content p {
    margin-bottom: 0.75rem;
}

.description-content p:last-child {
    margin-bottom: 0;
}

.description-content ul, 
.description-content ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.description-content h1, 
.description-content h2, 
.description-content h3, 
.description-content h4, 
.description-content h5, 
.description-content h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--gris-800);
}

.description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.description-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.75rem;
}

.description-content th,
.description-content td {
    border: 1px solid var(--gris-200);
    padding: 0.5rem;
}

.description-content th {
    background: var(--gris-100);
    font-weight: 600;
}

/* --------------------------------------------
    35. PAGE HEADERS UNIFICADOS
    -------------------------------------------- */
.page-header-modern {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header-modern .header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header-modern .header-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--verde-principal);
    color: white;
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.page-header-modern .header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gris-900);
    margin: 0;
    line-height: 1.2;
}

.page-header-modern .header-subtitle {
    color: var(--gris-500);
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
}

.page-header-modern .header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .page-header-modern {
        flex-direction: row;
        align-items: center;
    }
}

/* --------------------------------------------
    35-A. SEARCH CARD UNIFICADO
    -------------------------------------------- */
.search-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.search-card .card-body {
    padding: 1.25rem;
}

.search-input {
    border: 2px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--verde-principal) !important;
    box-shadow: 0 0 0 0.2rem rgba(158, 195, 79, 0.25);
    outline: none;
}

/* --------------------------------------------
    35-B. TABLE TH UNIFICADO
    -------------------------------------------- */
.table-thead-green thead {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.table-thead-green thead th {
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.table-thead-light thead {
    background-color: var(--verde-claro);
}

.table-thead-light thead th {
    color: var(--gris-700);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gris-200);
}

/* --------------------------------------------
    35-C. BTN GROUP TABLE UNIFICADO
    -------------------------------------------- */
.btn-group-table .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
    margin: 0 2px;
}

/* --------------------------------------------
    35-D. SECCIÓN DE CONTENIDO UNIFICADA
    -------------------------------------------- */
.section-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* --------------------------------------------
    36. OVERRIDE PARA MÚLTIPLES FIRMAS - VERSIÓN EXTREMA
    -------------------------------------------- */

/* Resetear todos los estilos problemáticos */
.draw-canvas,
.draw-canvas *,
canvas.draw-canvas,
.draw-canvas canvas {
    pointer-events: auto !important;
    cursor: crosshair !important;
    touch-action: none !important;
    transition: none !important;
    transform: none !important;
    animation: none !important;
    scale: 1 !important;
    translate: 0 !important;
    rotate: 0 !important;
    position: relative !important;
    z-index: auto !important;
}

/* Deshabilitar hover solo en cards que contienen firmas, no en todas */
.card:has(.draw-canvas) {
    transform: none !important;
}

.card:has(.draw-canvas):hover {
    transform: none !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.card:has(.draw-canvas):hover .draw-canvas,
.card:has(.draw-canvas):hover .draw-canvas canvas {
    transform: none !important;
    scale: 1 !important;
    box-shadow: none !important;
}

/* Asegurar que cada canvas tenga su propio contexto */
.draw-canvas {
    isolation: isolate !important;
}

.draw-canvas canvas {
    display: block !important;
    width: 100% !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
}

/* --------------------------------------------
   38. ASISTENCIA TÉCNICA - INDEX
   -------------------------------------------- */

/* Botones de acción para tabla */
.btn-view-search {
    background: linear-gradient(135deg, #9EC34F 0%, #87b33e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.375rem 1rem;
    transition: all 0.3s ease;
}

.btn-view-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 195, 79, 0.3);
    color: white;
}

/* Badges de tipo de servicio */
.service-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-preventivo {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

.service-correctivo {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

.service-instalacion {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
}

.service-capacitacion {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7c3aed;
}

/* Alerta personalizada para filtros */
.alert-custom {
    background: linear-gradient(135deg, #f0f7e6 0%, #e8f4e0 100%);
    border-left: 4px solid #9EC34F;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

/* Botones de acción específicos */
.btn-action-info {
    background: #6c757d;
    color: white;
}

.btn-action-info:hover {
    background: #5c636a;
    color: white;
    transform: translateY(-2px);
}

.btn-action-edit {
    background: #9EC34F;
    color: white;
}

.btn-action-edit:hover {
    background: #87b33e;
    color: white;
    transform: translateY(-2px);
}

.btn-action-delete {
    background: #ef4444;
    color: white;
}

.btn-action-delete:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
}

/* --------------------------------------------
   39. EDITAR ASISTENCIA TÉCNICA
   -------------------------------------------- */

/* Tarjetas de equipos */
.equipo-card {
    background: white;
    border-radius: 10px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.equipo-card:hover {
    border-color: #9EC34F;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Evidencias existentes */
.evidencia-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.evidencia-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.evidencia-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0;
}

/* Botón de eliminar evidencia */
.btn-remove-evidencia {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.btn-remove-evidencia:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* --------------------------------------------
   40. VER ASISTENCIA TÉCNICA (DETALLE)
   -------------------------------------------- */

/* Cards de información */
.info-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #9EC34F;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--verde-claro);
    border-radius: 12px;
    color: var(--verde-principal);
}

/* Sección de firmas */
.signature-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.signature-img {
    max-width: 100%;
    max-height: 150px;
    background: #f8fafc;
    border-radius: 8px;
}

/* --------------------------------------------
   41. UTILITIES ADICIONALES
   -------------------------------------------- */

/* Efecto hover en tarjetas */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Border suave */
.border-soft {
    border-color: #e2e8f0 !important;
}

/* Sombra suave */
.shadow-soft {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Texto truncado */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}