/*
================================================================================
                                MORENI HNOS SRL - STYLE.CSS
================================================================================

Este archivo contiene todos los estilos CSS para la aplicación web de
Moreni Hnos SRL - Gestión de actividades productivas.

ESTRUCTURA DEL ARCHIVO:
1. RESET Y ESTILOS BASE
2. VARIABLES Y CONSTANTES CSS
3. COMPONENTES UI (Botones, Modales, Formularios)
4. LAYOUT (Sidebar, Grids, Responsive)
5. UTILIDADES (Helpers, Print Styles)
6. MÓDULOS ESPECÍFICOS (Reportes, PDF, etc.)

================================================================================
*/

/* ======================================================================= */
/* 1. RESET Y ESTILOS BASE                                                */
/* ======================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================================================================= */
/* 2. VARIABLES Y CONSTANTES CSS                                           */
/* ======================================================================= */
/* NOTA: Las variables CSS están definidas en base.css (style-modular.css) */
/* Este archivo usa las variables definidas allí para mantener consistencia */

/* ======================================================================= */
/* 3. COMPONENTES UI (Botones, Modales, Formularios)                       */
/* ======================================================================= */

/* === ICONOS DE ESTADO VACÍO === */
.empty-state-icon {
    color: #ccc;
    margin-bottom: 10px;
}

/* === UTILIDADES DE VISIBILIDAD === */
.hidden {
    display: none;
}

.visible {
    display: block;
}

/* === UTILIDADES DE DISPLAY === */
.inline-form {
    display: inline;
}

.flex-gap {
    display: flex;
    gap: 0.5rem;
}

.select-auto-width {
    width: auto;
    display: inline-block;
}

/* === CONTENEDORES CON SCROLL === */
.scrollable-table {
    max-height: 400px;
    overflow-y: auto;
}

/* === ANCHOS MÍNIMOS PARA COLUMNAS DE TABLA === */
.th-min-50 {
    min-width: 50px;
}

.th-min-60 {
    min-width: 60px;
}

.th-min-70 {
    min-width: 70px;
}

.th-min-80 {
    min-width: 80px;
}

.th-min-120 {
    min-width: 120px;
}

/* === UTILIDADES DE MARGEN === */
.mt-15 {
    margin-top: 15px;
}

/* === ESTILOS PARA REPORTE DE BALSAS === */
/* === SECCIONES MEJORADAS === */
.section-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.section-button {
    flex: 1;
    min-width: 280px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    color: #495057;
}

.section-button:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    color: #007bff;
}

.section-button i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    color: #007bff;
}

.section-button h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.section-button p {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #6c757d;
}

/* === MODAL SECTIONS === */
.modal-section {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background: white;
    margin: 0 auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 25px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal de tamaño mediano */
.modal-content-md {
    max-width: 700px;
}

/* Modal de tamaño grande */
.modal-content-lg {
    max-width: 1000px;
}

/* Modal de nueva balsa - estilos específicos para scroll */
#modal-nueva-balsa {
    overflow-y: auto;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px 20px;
}

#modal-nueva-balsa .modal-content {
    margin: 0 auto;
    max-height: none;
    position: relative;
}

#modal-nueva-balsa .modal-body {
    padding: 25px;
    max-height: none;
    overflow: visible;
}

/* Asegurar que el contenido del modal tenga margen inferior para los botones */
#modal-nueva-balsa .modal-actions {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin: 0 -25px -25px -25px;
    border-radius: 0 0 10px 10px;
}

.modal-info-text {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #1565c0;
    font-size: 14px;
}

.modal-info-text i {
    margin-right: 8px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

/* === CONTENEDOR SELECT CON BOTÓN AGREGAR === */
.balsa-select-container {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.balsa-select-container select {
    flex: 1;
}

.btn-agregar-balsa {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
}

.btn-agregar-balsa:hover {
    background: linear-gradient(135deg, #218838, #1c6f2e);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

.btn-agregar-balsa:active {
    transform: translateY(0);
}

.btn-agregar-balsa i {
    font-size: 14px;
}

/* Checkbox container para modal */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-container label {
    cursor: pointer;
    user-select: none;
}

/* === SECCIONES DE FORMULARIO EN MODAL === */
.modal-form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
}

.modal-form-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.modal-form-section-header i {
    color: #007bff;
    font-size: 18px;
}

.modal-form-section-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.modal-form-section-content {
    padding: 0;
}

.modal-form-section-content .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.modal-form-section-content .form-row:last-child {
    margin-bottom: 0;
}

.modal-form-section-content .form-col {
    flex: 1;
    min-width: 200px;
}

.modal-form-section-content .form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 13px;
}

.modal-form-section-content .form-label i {
    color: #6c757d;
    font-size: 12px;
}

.modal-form-section-content .form-label.required::after {
    content: " *";
    color: #dc3545;
}

/* Secciones ocultas en modal */
.modal-form-section .hidden-section,
#modal_nueva_marca_group {
    display: none !important;
}

.modal-form-section .hidden-section.visible,
#modal_nueva_marca_group.visible {
    display: flex !important;
}

/* === BOTONES MEJORADOS PARA REPORTES === */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 12px 28px;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border: none;
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: none;
    color: #212529;
}

/* === RESPONSIVE PARA REPORTES === */
@media (max-width: 768px) {
    .section-buttons {
        flex-direction: column;
    }

    .section-button {
        min-width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 1% auto;
    }

    /* === Z-INDEX PARA PESTAÑAS DE REPORTES === */
    #reporte-tabContent .tab-pane.active {
        position: relative;
        z-index: 1300;
        background: white;
        padding: 20px;
        min-height: 200px;
    }

    .dashboard-layout .main-content {
        margin-left: 280px;
        position: relative;
        z-index: 1000;
    }


}


/* Botones */
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.button-primary {
    background: #3b82f6;
    color: white;
}

.button-primary:hover {
    background: #2563eb;
}

.button-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.button-secondary:hover {
    background: #e5e7eb;
}

/* Mensajes */
.message {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 6px;
    position: relative;
    padding-right: 40px;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.message-close:hover {
    opacity: 1;
}

/* Header */
.page-header {
    margin-bottom: 24px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    color: #1f2937;
}

.status-tag {
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 16px;
    background: #3b82f6;
    color: white;
    font-weight: normal;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-subtitle {
    color: #6b7280;
    font-size: 14px;
}

/* Estilos para pÃ¡gina de ediciÃ³n de reportes */
.page-header {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 25px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.header-title {
    font-size: 24px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-title i {
    color: #4a5568;
}

.header-title .badge {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    margin-left: 12px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-subtitle {
    color: #718096;
    font-size: 15px;
}

/* Estilos para las pestaÃ±as de navegaciÃ³n */
.tabs-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
}

.nav-pills .nav-item {
    flex: 1;
    min-width: 200px;
    max-width: calc(33.333% - 8px);
}

@media (max-width: 768px) {
    .nav-pills .nav-item {
        min-width: calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}


@media (max-width: 576px) {
    .nav-pills .nav-item {
        min-width: 100%;
        max-width: 100%;
    }
}


.nav-pills .nav-link {
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: white;
    height: 100%;
    width: 100%;
}

/* Contenedor de pestaÃ±as */
.tab-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-top: 20px;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

/* Mejoras para campos de formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-section-title {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Layout de campos en columnas */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
    min-width: 250px;
}

@media (max-width: 768px) {
    .form-col {
        min-width: 100%;
    }
}


.nav-pills .nav-link:hover {
    background: #ebf4ff;
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    background: #4299e1;
    color: white;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.nav-pills .nav-link i {
    font-size: 20px;
    margin-bottom: 4px;
}

.tab-label {
    font-weight: 600;
    font-size: 14px;
}

.tab-description {
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
}

/* Estilos para las tarjetas de informaciÃ³n */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header-primary {
    background: var(--primary-color);
    color: var(--white);
}

.card.card-header-primary .card-title,
.card-header.card-header-primary .card-title {
    color: white;
}

/* Table utility classes */
.table-font-small {
    font-size: 0.95rem;
}

.table-font-smaller {
    font-size: 0.9rem;
}

.table-font-smallest {
    font-size: 0.8rem;
}

.form-col-narrow {
    max-width: 300px;
}

.form-col-wide {
    flex: 2;
}

/* Table column width utilities */
.min-width-50 {
    min-width: 50px;
}

.min-width-60 {
    min-width: 60px;
}

.min-width-70 {
    min-width: 70px;
}

.min-width-80 {
    min-width: 80px;
}

.min-width-120 {
    min-width: 120px;
}

/* Table column percentage width utilities */
.width-5 {
    width: 5%;
}

.width-10 {
    width: 10%;
}

.width-15 {
    width: 15%;
}

.width-20 {
    width: 20%;
}

.width-30 {
    width: 30%;
}

.width-35 {
    width: 35%;
}

/* Gap utilities */
.gap-sm {
    gap: 0.5rem;
}

/* Display utilities */
.hidden-section {
    display: none;
}

/* ===== NUEVO SISTEMA DE PESTAÑAS REDISEÑADO ===== */
/* Sistema optimizado para reportes de servicio */

.reporte-tabs-system {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 20px;
    z-index: 1000;
}

.tabs-progress-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    padding: 20px 24px;
    color: white;
    position: relative;
}

.tabs-progress-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-track {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, #ffffff 0%, #f1f5f9 100%);
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    position: relative;
    width: 14.28%;
    /* 1/7 para la primera pestaña */
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

.progress-text {
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.tabs-nav-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: #e5e7eb;
    padding: 0;
}

.tab-nav-btn {
    background: #ffffff;
    border: none;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #6b7280;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 100px;
    justify-content: center;
}

.tab-nav-btn:hover {
    background: #f8fafc;
    color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.tab-nav-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    z-index: 3;
}

.tab-nav-btn.active:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.tab-nav-btn i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.tab-nav-btn:hover i,
.tab-nav-btn.active i {
    transform: scale(1.1);
}

.tab-nav-label {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.tab-nav-desc {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.2;
    margin: 0;
    transition: all 0.3s ease;
}

.tab-nav-btn.active .tab-nav-desc {
    opacity: 0.9;
}

/* Contenido de pestañas */
.reporte-tab-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    min-height: 600px;
    position: relative;
}

.reporte-tab-panel {
    display: none;
    padding: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 500px;
}

.reporte-tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejorar las secciones de formulario */
.reporte-tab-panel .form-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    position: relative;
    z-index: auto;
}

.reporte-tab-panel .form-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.reporte-tab-panel .form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.reporte-tab-panel .form-section-title i {
    color: #3b82f6;
    font-size: 20px;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .tabs-nav-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }

    .tab-nav-btn {
        padding: 16px 12px;
        min-height: 80px;
    }

    .tab-nav-label {
        font-size: 12px;
    }

    .tab-nav-desc {
        font-size: 10px;
    }

    .reporte-tab-panel {
        padding: 20px;
    }

    .reporte-tabs-system {
        position: relative;
        top: 0;
    }

    .tabs-progress-header {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .tabs-nav-container {
        grid-template-columns: 1fr;
    }

    .tab-nav-btn {
        padding: 14px 12px;
        min-height: 70px;
    }

    .tab-nav-desc {
        display: none;
    }

    .reporte-tab-panel {
        padding: 16px;
    }

    .reporte-tab-panel .form-section {
        padding: 20px;
        margin-bottom: 20px;
    }
}

/* === ESTILOS PARA INSPECCIONES === */
.inspection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px 0;
}

.inspection-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.inspection-item label {
    font-weight: 500;
    font-size: 14px;
    color: #495057;
    margin-bottom: 5px;
}

.inspection-item select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.inspection-item select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.inspection-item select[value="OK"] {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.inspection-item select[value="NOK"] {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Responsive para inspecciones */
@media (min-width: 768px) {
    .inspection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .inspection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card-header h6 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header i {
    color: #4a5568;
}

.card-body {
    padding: 20px;
}

/* Sistema de Popups */
.popup-overlay {
    position: fixed;
    top: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
}

.modal-info p {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.modal-info p:last-child {
    border-bottom: none;
}

.modal-info strong {
    color: #4a5568;
    min-width: 120px;
    display: inline-block;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}

.popup-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background-color: #e9ecef;
    color: #495057;
}

.popup-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}

.popup-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.popup-message i {
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.popup-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.popup-message.success i {
    color: #28a745;
}

.popup-message.error i {
    color: #dc3545;
}

.popup-message.warning i {
    color: #ffc107;
}

.popup-message.info i {
    color: #17a2b8;
}

.popup-content.popup-success .popup-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.popup-content.popup-error .popup-header {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

.popup-content.popup-warning .popup-header {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    color: #333;
}

.popup-content.popup-info .popup-header {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    color: white;
}

.popup-content.popup-success .popup-title,
.popup-content.popup-error .popup-title,
.popup-content.popup-info .popup-title {
    color: white;
}

.popup-content.popup-warning .popup-title {
    color: #333;
}

.popup-content.popup-success .popup-close,
.popup-content.popup-error .popup-close,
.popup-content.popup-info .popup-close {
    color: rgba(255, 255, 255, 0.8);
}

.popup-content.popup-success .popup-close:hover,
.popup-content.popup-error .popup-close:hover,
.popup-content.popup-info .popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.popup-content.popup-warning .popup-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Responsive para popups */
@media (max-width: 768px) {
    .popup-content {
        width: 95% !important;
        margin: 10px;
    }

    .popup-header {
        padding: 15px 20px;
    }

    .popup-body {
        padding: 20px;
    }

    .popup-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .popup-footer .btn {
        width: 100%;
        margin-bottom: 5px;
    }

    .popup-message {
        flex-direction: column;
        text-align: center;
    }

    .popup-message i {
        margin-bottom: 10px;
    }
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Estilos para formularios en popup CRUD */
.popup-form-container form.popup-form {
    display: block;
}

.popup-form .form-group,
.popup-form .pedido-form-group {
    margin-bottom: 16px;
}

.popup-form .form-label,
.popup-form .pedido-form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.popup-form .form-control,
.popup-form .form-select,
.popup-form .pedido-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    transition: all 0.25s ease;
}

.popup-form .form-control:focus,
.popup-form .form-select:focus,
.popup-form .pedido-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.popup-form .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.popup-form .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

/* Estilos para el formulario de reporte */
.report-form {
    max-width: 1400px;
    margin: 0 auto;
}

/* Sistema de pestaÃ±as personalizado */
.tabs-container {
    width: 100%;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.tabs {
    width: 100%;
    position: relative;
}

.tabs input[type="radio"] {
    display: none;
}

.tabs ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #e2e8f0;
}

.tabs li {
    flex: 1;
    min-width: 200px;
}

.tabs label {
    width: 100%;
    padding: 15px;
    background: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    color: #64748b;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tabs label i {
    font-size: 20px;
    margin-bottom: 5px;
}

.tabs label .tab-label {
    font-weight: 600;
    font-size: 14px;
}

.tabs label .tab-description {
    font-size: 12px;
    opacity: 0.7;
}

.tabs label:hover {
    color: #3b82f6;
    background: #f8fafc;
}

/* Estilos para pestaÃ±as activas */
.tabs input[type="radio"]:checked+label {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: #f8fafc;
}

/* Contenido de las pestaÃ±as */
.tab-content {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 0 0 10px 10px;
}

#tab1:checked~#content1,
#tab2:checked~#content2,
#tab3:checked~#content3,
#tab4:checked~#content4,
#tab5:checked~#content5,
#tab6:checked~#content6 {
    display: block;
}

/* Responsividad */
@media (max-width: 768px) {
    .tabs ul {
        flex-direction: column;
    }

    .tabs li {
        width: 100%;
    }

    .tabs label {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 15px;
    }

    .tabs label .tab-description {
        display: none;
    }
}


.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    color: #3b82f6;
    border-bottom-color: #93c5fd;
}

.nav-tabs .nav-link.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: transparent;
}

.nav-tabs .nav-link .tab-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.nav-tabs .nav-link i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.nav-tabs .nav-link .tab-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-tabs .nav-link .tab-description {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
}

.tab-content>.tab-pane {
    display: none;
}

.tab-content>.active {
    display: block;
}

.progress-nav .progress {
    margin-bottom: 12px;
    background-color: #e2e8f0;
}

.progress-nav .progress-bar {
    background: linear-gradient(to right, #4299e1, #667eea);
    transition: width 0.3s ease;
}

.nav-pills .nav-link {
    position: relative;
    padding: 12px 15px;
    margin: 0 5px;
    border: none;
    background: #f7fafc;
    color: #4a5568;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background: #4299e1;
    color: white;
    transform: translateY(-2px);
}

.nav-pills .nav-link .step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #cbd5e0;
    color: #4a5568;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-pills .nav-link.active .step-number {
    background: #2b6cb0;
    color: white;
}

/* Contenido de pestaÃ±as */
.tab-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    padding: 25px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Secciones de formulario */
.form-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-section-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grid de campos */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .nav-pills {
        flex-direction: column;
    }

    .nav-pills .nav-link {
        margin: 5px 0;
    }
}


.nav-pills .nav-link:hover {
    background: #ebf4ff;
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    background: #4299e1;
    color: white;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.nav-pills .nav-link i {
    font-size: 20px;
    margin-bottom: 4px;
}

.tab-label {
    font-weight: 600;
    font-size: 14px;
}

.tab-description {
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
}

/* Estilos para las tarjetas de informaciÃ³n */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header-primary {
    background: var(--primary-color);
    color: var(--white);
}

.card.card-header-primary .card-title,
.card-header.card-header-primary .card-title {
    color: white;
}

/* Table utility classes */
.table-font-small {
    font-size: 0.95rem;
}

.table-font-smaller {
    font-size: 0.9rem;
}

.table-font-smallest {
    font-size: 0.8rem;
}

.form-col-narrow {
    max-width: 300px;
}

.form-col-wide {
    flex: 2;
}

/* Table column width utilities */
.min-width-50 {
    min-width: 50px;
}

.min-width-60 {
    min-width: 60px;
}

.min-width-70 {
    min-width: 70px;
}

.min-width-80 {
    min-width: 80px;
}

.min-width-120 {
    min-width: 120px;
}

/* Table column percentage width utilities */
.width-5 {
    width: 5%;
}

.width-10 {
    width: 10%;
}

.width-15 {
    width: 15%;
}

.width-20 {
    width: 20%;
}

.width-30 {
    width: 30%;
}

.width-35 {
    width: 35%;
}

/* Gap utilities */
.gap-sm {
    gap: 0.5rem;
}

/* Display utilities */
.hidden-section {
    display: none;
}

/* ===== NUEVO SISTEMA DE PESTAÑAS REDISEÑADO ===== */
/* Sistema optimizado para reportes de servicio */

.reporte-tabs-system {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 20px;
    z-index: 1000;
}

.tabs-progress-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    padding: 20px 24px;
    color: white;
    position: relative;
}

.tabs-progress-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-track {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, #ffffff 0%, #f1f5f9 100%);
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    position: relative;
    width: 14.28%;
    /* 1/7 para la primera pestaña */
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

.progress-text {
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.tabs-nav-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: #e5e7eb;
    padding: 0;
}

.tab-nav-btn {
    background: #ffffff;
    border: none;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #6b7280;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 100px;
    justify-content: center;
}

.tab-nav-btn:hover {
    background: #f8fafc;
    color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.tab-nav-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    z-index: 3;
}

.tab-nav-btn.active:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.tab-nav-btn i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.tab-nav-btn:hover i,
.tab-nav-btn.active i {
    transform: scale(1.1);
}

.tab-nav-label {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.tab-nav-desc {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.2;
    margin: 0;
    transition: all 0.3s ease;
}

.tab-nav-btn.active .tab-nav-desc {
    opacity: 0.9;
}

/* Contenido de pestañas */
.reporte-tab-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    min-height: 600px;
    position: relative;
}

.reporte-tab-panel {
    display: none;
    padding: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 500px;
}

.reporte-tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejorar las secciones de formulario */
.reporte-tab-panel .form-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    position: relative;
    z-index: auto;
}

.reporte-tab-panel .form-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.reporte-tab-panel .form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.reporte-tab-panel .form-section-title i {
    color: #3b82f6;
    font-size: 20px;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .tabs-nav-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }

    .tab-nav-btn {
        padding: 16px 12px;
        min-height: 80px;
    }

    .tab-nav-label {
        font-size: 12px;
    }

    .tab-nav-desc {
        font-size: 10px;
    }

    .reporte-tab-panel {
        padding: 20px;
    }

    .reporte-tabs-system {
        position: relative;
        top: 0;
    }

    .tabs-progress-header {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .tabs-nav-container {
        grid-template-columns: 1fr;
    }

    .tab-nav-btn {
        padding: 14px 12px;
        min-height: 70px;
    }

    .tab-nav-desc {
        display: none;
    }

    .reporte-tab-panel {
        padding: 16px;
    }

    .reporte-tab-panel .form-section {
        padding: 20px;
        margin-bottom: 20px;
    }
}

/* === ESTILOS PARA INSPECCIONES === */
.inspection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px 0;
}

.inspection-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.inspection-item label {
    font-weight: 500;
    font-size: 14px;
    color: #495057;
    margin-bottom: 5px;
}

.inspection-item select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.inspection-item select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.inspection-item select[value="OK"] {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.inspection-item select[value="NOK"] {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Responsive para inspecciones */
@media (min-width: 768px) {
    .inspection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .inspection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card-header h6 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header i {
    color: #4a5568;
}

.card-body {
    padding: 20px;
}

/* Sistema de Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 95%;
    max-height: 95vh;
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}


.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    background: #4a5568;
    color: white;
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
}

.modal-info p {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.modal-info p:last-child {
    border-bottom: none;
}

.modal-info strong {
    color: #4a5568;
    min-width: 120px;
    display: inline-block;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}

.popup-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background-color: #e9ecef;
    color: #495057;
}

.popup-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}

.popup-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.popup-message i {
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.popup-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.popup-message.success i {
    color: #28a745;
}

.popup-message.error i {
    color: #dc3545;
}

.popup-message.warning i {
    color: #ffc107;
}

.popup-message.info i {
    color: #17a2b8;
}

.popup-content.popup-success .popup-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.popup-content.popup-error .popup-header {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

.popup-content.popup-info .popup-header {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    color: white;
}

.popup-content.popup-success .popup-title,
.popup-content.popup-error .popup-title,
.popup-content.popup-info .popup-title {
    color: white;
}

.popup-content.popup-warning .popup-title {
    color: #333;
}

.popup-content.popup-success .popup-close,
.popup-content.popup-error .popup-close,
.popup-content.popup-info .popup-close {
    color: rgba(255, 255, 255, 0.8);
}

.popup-content.popup-success .popup-close:hover,
.popup-content.popup-error .popup-close:hover,
.popup-content.popup-info .popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.popup-content.popup-warning .popup-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Responsive para popups */
@media (max-width: 768px) {
    .popup-content {
        width: 95% !important;
        margin: 10px;
    }

    .popup-header {
        padding: 15px 20px;
    }

    .popup-body {
        padding: 20px;
    }

    .popup-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .popup-footer .btn {
        width: 100%;
        margin-bottom: 5px;
    }

    .popup-message {
        flex-direction: column;
        text-align: center;
    }

    .popup-message i {
        margin-bottom: 10px;
    }
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Estilos para formularios en popup CRUD */
.popup-form-container form.popup-form {
    display: block;
}

.popup-form .form-group,
.popup-form .pedido-form-group {
    margin-bottom: 16px;
}

.popup-form .form-label,
.popup-form .pedido-form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.popup-form .form-control,
.popup-form .form-select,
.popup-form .pedido-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    transition: all 0.25s ease;
}

.popup-form .form-control:focus,
.popup-form .form-select:focus,
.popup-form .pedido-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.popup-form .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.popup-form .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

/* Estilos para el formulario de reporte */
.report-form {
    max-width: 1400px;
    margin: 0 auto;
}

/* Sistema de pestaÃ±as personalizado */
.tabs-container {
    width: 100%;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.tabs {
    width: 100%;
    position: relative;
}

.tabs input[type="radio"] {
    display: none;
}

.tabs ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #e2e8f0;
}

.tabs li {
    flex: 1;
    min-width: 200px;
}

.tabs label {
    width: 100%;
    padding: 15px;
    background: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    color: #64748b;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tabs label i {
    font-size: 20px;
    margin-bottom: 5px;
}

.tabs label .tab-label {
    font-weight: 600;
    font-size: 14px;
}

.tabs label .tab-description {
    font-size: 12px;
    opacity: 0.7;
}

.tabs label:hover {
    color: #3b82f6;
    background: #f8fafc;
}

/* Estilos para pestaÃ±as activas */
.tabs input[type="radio"]:checked+label {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: #f8fafc;
}

/* Contenido de las pestaÃ±as */
.tab-content {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 0 0 10px 10px;
}

#tab1:checked~#content1,
#tab2:checked~#content2,
#tab3:checked~#content3,
#tab4:checked~#content4,
#tab5:checked~#content5,
#tab6:checked~#content6 {
    display: block;
}

/* Responsividad */
@media (max-width: 768px) {
    .tabs ul {
        flex-direction: column;
    }

    .tabs li {
        width: 100%;
    }

    .tabs label {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 15px;
    }

    .tabs label .tab-description {
        display: none;
    }
}


.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    color: #3b82f6;
    border-bottom-color: #93c5fd;
}

.nav-tabs .nav-link.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: transparent;
}

.nav-tabs .nav-link .tab-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.nav-tabs .nav-link i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.nav-tabs .nav-link .tab-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-tabs .nav-link .tab-description {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
}

.tab-content>.tab-pane {
    display: none;
}

.tab-content>.active {
    display: block;
}

.progress-nav .progress {
    margin-bottom: 12px;
    background-color: #e2e8f0;
}

.progress-nav .progress-bar {
    background: linear-gradient(to right, #4299e1, #667eea);
    transition: width 0.3s ease;
}

.nav-pills .nav-link {
    position: relative;
    padding: 12px 15px;
    margin: 0 5px;
    border: none;
    background: #f7fafc;
    color: #4a5568;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background: #4299e1;
    color: white;
    transform: translateY(-2px);
}

.nav-pills .nav-link .step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #cbd5e0;
    color: #4a5568;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-pills .nav-link.active .step-number {
    background: #2b6cb0;
    color: white;
}

/* Contenido de pestaÃ±as */
.tab-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    padding: 25px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Secciones de formulario */
.form-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-section-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grid de campos */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .nav-pills {
        flex-direction: column;
    }

    .nav-pills .nav-link {
        margin: 5px 0;
    }
}


/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Elementos de formulario */
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    /* Evitar doble sombra global; la pantalla de reportes puede definir su foco */
    box-shadow: none;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.form-select {
    /* Mostrar una sola flecha en selects globales */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-right: 36px;
}

/* Tarjetas */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.card-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 20px;
}

/* Grid y layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col {
    flex: 1;
    padding: 10px;
    min-width: 200px;
}

/* Layout principal */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* CorrecciÃ³n para el contenido principal */
.dashboard-layout .main-content {
    flex: 1;
    margin-left: 280px;
    padding: 20px;
    background-color: #f5f7fa;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Asegurar que el primer elemento del contenido principal tenga el estilo correcto */
.dashboard-layout .main-content>div:first-child {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    min-height: calc(100vh - 40px);
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Asegurar que el contenido principal sea visible */
.dashboard-layout .main-content>div {
    display: block !important;
}

/* Corregir el posicionamiento del contenido */
.dashboard-layout .main-content>div:first-child {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    min-height: calc(100vh - 40px);
    margin: 0;
    overflow: visible;
}

/* Asegurar que el sidebar estÃ© siempre visible */
.sidebar {
    position: fixed;
    z-index: 1002;
    height: 100vh;
    overflow-y: auto;
}

/* Asegurar que el contenido principal no tape el sidebar */
.dashboard-layout .main-content {
    margin-left: 280px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 20px;
    background-color: #f5f7fa;
}

/* Corregir el posicionamiento del contenido */
.dashboard-layout .main-content>div:first-child {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    min-height: calc(100vh - 40px);
    margin: 0;
    overflow: visible;
}

/* Eliminar cualquier espacio en blanco innecesario */
.dashboard-layout .main-content>div:first-child:before,
.dashboard-layout .main-content>div:first-child:after {
    display: none !important;
    content: none !important;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1002;
    top: 0;
    left: 0;
}

/* Header del sidebar */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* NavegaciÃ³n del sidebar */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-section {
    margin-bottom: 25px;
}

.nav-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    padding: 0 20px 10px 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #fff;
    transform: translateX(5px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: #fff;
}

.nav-link i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
    text-align: center;
}

.nav-link span {
    flex: 1;
}

/* SubmenÃºs del sidebar */
.nav-item.has-submenu>.nav-link {
    justify-content: flex-start;
    gap: 8px;
}

.nav-item .toggle-icon {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 12px;
    display: none;
}

.submenu.open {
    display: block;
}

.submenu li {
    margin: 0;
}

.submenu .nav-link {
    padding: 10px 20px 10px 44px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    border-left-color: transparent;
}

.submenu .nav-link i {
    width: 18px;
    font-size: 14px;
    margin-right: 10px;
}

.submenu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

/* Footer del sidebar */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
}

.user-info i {
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.user-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.user-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.logout-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(3px);
}

.logout-link i {
    margin-right: 8px;
    font-size: 14px;
}

/* Contenido principal - Mantener solo content-wrapper */
.content-wrapper {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    min-height: calc(100vh - 40px);
}

/* Botón hamburguesa para móviles */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 8px;
    left: 10px;
    z-index: 9999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-direction: row;
    pointer-events: auto !important;
}

.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle i {
    display: block;
}

/* Overlay para móviles */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {

    /* Mostrar botón hamburguesa en tablets y móviles */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Ocultar sidebar por defecto en móviles */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
        max-width: 85vw;
        z-index: 1002 !important;
    }

    /* Mostrar sidebar cuando está activo */
    .sidebar.active {
        transform: translateX(0);
    }

    /* Ajustar contenido principal */
    .main-content {
        margin-left: 0 !important;
        padding-top: 70px;
    }

    .content-wrapper {
        padding: 20px;
        margin: 10px;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: 100vw;
        z-index: 1002 !important;
    }

    .main-content {
        padding-top: 70px;
    }

    .content-wrapper {
        padding: 15px;
        margin: 5px;
        border-radius: 8px;
        min-height: auto;
    }

    .dashboard-layout {
        flex-direction: column;
    }

    /* Ajustar padding del sidebar en móviles */
    .sidebar-header {
        padding: 15px;
    }

    .sidebar-nav {
        padding: 15px 0;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }

    .submenu .nav-link {
        padding: 10px 15px 10px 40px;
    }
}

@media (max-width: 576px) {
    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
        font-size: 16px;
        top: 6px;
        left: 8px;
    }

    .main-content {
        padding-top: 60px;
    }

    .content-wrapper {
        padding: 12px;
        margin: 5px;
    }

    .sidebar-header {
        padding: 12px;
    }

    .logo img {
        max-width: 120px;
    }

    .nav-section-title {
        font-size: 11px;
        padding: 0 15px 8px 15px;
    }

    .nav-link {
        padding: 10px 15px;
        font-size: 13px;
    }

    .nav-link i {
        width: 18px;
        font-size: 15px;
        margin-right: 10px;
    }
}


/* CorrecciÃ³n especÃ­fica para el problema del recuadro blanco y posicionamiento */
.dashboard-layout .main-content>div:first-child {
    position: relative !important;
    z-index: 2 !important;
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    overflow: visible !important;
    display: block !important;
    top: 0 !important;
}

/* Asegurar que el sidebar estÃ© siempre por encima */
.sidebar {
    position: fixed !important;
    z-index: 1002 !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    width: 280px !important;
}

/* Asegurar que el contenido principal no tape el sidebar */
.dashboard-layout .main-content {
    margin-left: 280px !important;
    position: relative !important;
    z-index: 1 !important;
    min-height: 100vh !important;
    padding: 0 !important;
    background-color: #f5f7fa !important;
    top: 0 !important;
}

/* Asegurar que el contenido principal sea visible */
.dashboard-layout .main-content>div:first-child {
    display: block !important;
    min-height: auto !important;
}

/* Eliminar mÃ¡rgenes y padding innecesarios */
.dashboard-layout .main-content>div:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
}

/* Asegurar que el contenido estÃ© en la parte superior */
.dashboard-layout .main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
}

/* Corregir el posicionamiento del contenido */
.dashboard-layout .main-content>div:first-child>*:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Asegurar que las tablas estÃ©n correctamente posicionadas */
.table-container {
    position: relative;
    z-index: 2;
    margin: 0 !important;
    padding: 20px !important;
    top: 0 !important;
}

/* Corregir el header de la tabla */
.table-header {
    margin: 0 !important;
    padding: 20px 20px 15px 20px !important;
    border-bottom: 2px solid #e9ecef;
    background: white;
    border-radius: 10px 10px 0 0;
}

/* Corregir el espaciado del header de la tabla */
.table-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    margin-top: 0;
    padding-top: 0;
}

/* Asegurar que el contenido de la tabla estÃ© visible */
.table-responsive {
    position: relative;
    z-index: 3;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* Asegurar que el contenido principal sea visible */
.dashboard-layout .main-content>div:first-child {
    display: block !important;
    min-height: auto !important;
}

/* Asegurar que el contenido estÃ© en la posiciÃ³n correcta */
.dashboard-layout .main-content>div:first-child {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    min-height: auto;
    margin: 0;
    overflow: visible;
}

/* Corregir el posicionamiento del contenido principal */
.dashboard-layout .main-content {
    margin-left: 280px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 20px;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
}

/* Asegurar que el contenido estÃ© visible y no tape el sidebar */
.dashboard-layout .main-content>* {
    position: relative;
    z-index: 2;
}

/* Estilos adicionales para mejorar la apariencia */
.nav-link:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Asegurar que las tablas estÃ©n en la posiciÃ³n correcta */
.table-header {
    margin-top: 0;
    margin-bottom: 20px;
}

.table-container {
    margin-top: 0;
    position: relative;
    z-index: 2;
}

/* Eliminar cualquier elemento que cause el recuadro blanco - MODIFICADO para incluir formularios, calendario y dashboard */
.dashboard-layout .main-content>div:first-child:not(:has(.table-header, .table-container, .card-body, .table-responsive, .pagination-container, .form-header, .form-container, .detail-header, .detail-container, .calendar-container, .calendario-page, .pedido-form-container, .chat-container, .home-container, .dashboard-page)) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Asegurar que el contenido principal sea visible y estÃ© correctamente posicionado */
.dashboard-layout .main-content>div:first-child {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 30px !important;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    overflow: visible;
    min-height: auto;
}

/* AnimaciÃ³n suave para los enlaces */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

/* Mejoras para el logo */
.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Scrollbar personalizado para el sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===== ESTILOS PARA TABLAS Y CRUD ===== */

/* Header de la tabla */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.table-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.table-actions {
    display: flex;
    gap: 10px;
}

/* Botones de acción en tablas */
.action-buttons-group {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    min-width: 220px;
    max-width: 240px;
}

.action-buttons-group .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 60px;
    padding: 4px 6px;
    font-size: 10px;
    text-align: center;
}

.action-buttons-group .btn i {
    margin-right: 2px;
}

/* Asegurar que la columna de acciones tenga suficiente ancho */
.table th:last-child,
.table td:last-child {
    min-width: 220px;
    width: 220px;
    max-width: 240px;
}

/* Optimizar ancho de otras columnas */
.table th:nth-child(1),
.table td:nth-child(1) {
    width: 120px;
    min-width: 120px;
}

.table th:nth-child(2),
.table td:nth-child(2) {
    width: 100px;
    min-width: 100px;
}

.table th:nth-child(3),
.table td:nth-child(3) {
    width: 100px;
    min-width: 100px;
}

.table th:nth-child(4),
.table td:nth-child(4) {
    width: 80px;
    min-width: 80px;
}

.table th:nth-child(5),
.table td:nth-child(5) {
    width: 150px;
    min-width: 150px;
}

.table th:nth-child(6),
.table td:nth-child(6) {
    width: 80px;
    min-width: 80px;
}

/* Responsive para botones de acción */
@media (max-width: 768px) {
    .action-buttons-group {
        flex-direction: column;
        gap: 4px;
        min-width: 80px;
        max-width: 100px;
    }

    .action-buttons-group .btn {
        min-width: 60px;
        padding: 4px 6px;
        font-size: 10px;
    }

    .table th:last-child,
    .table td:last-child {
        min-width: 100px;
        width: 100px;
    }
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    color: white;
    text-decoration: none;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    color: #212529;
    text-decoration: none;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    color: white;
    text-decoration: none;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
    color: white;
    text-decoration: none;
}

/* Botones de acción mejorados para formularios */
.btn-save {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-save:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.btn-cancel {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    color: white;
    text-decoration: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Contenedor de filtros */
.card-body {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}


.mb-6 {
    margin-bottom: 1.5rem;
}

/* Controles de formulario */
.form-control,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Tabla responsiva */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table td {
    padding: 16px 12px;
    vertical-align: middle;
    font-size: 14px;
    color: #495057;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-pendiente {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border-left: 3px solid #9b2c2c;
}

.badge-finalizado {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border-left: 3px solid #2f855a;
}

/* Estilos para filas de pedidos con colores según estado */
.pedido-row-pendiente {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.35) 0%, rgba(197, 48, 48, 0.25) 100%);
    border-left: 4px solid #e53e3e;
}

.pedido-row-pendiente:hover {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.45) 0%, rgba(197, 48, 48, 0.35) 100%);
}

.pedido-row-finalizado {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.35) 0%, rgba(56, 161, 105, 0.25) 100%);
    border-left: 4px solid #48bb78;
}

.pedido-row-finalizado:hover {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.45) 0%, rgba(56, 161, 105, 0.35) 100%);
}

/* Flex utilities */
.flex {
    display: flex;
}

/* Utilidades de separaciÃ³n/gap reutilizables */
.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

/* Utilidades de flex comunes */
.flex-1 {
    flex: 1 1 0%;
}

.items-end {
    align-items: flex-end;
}

/* Text utilities */
.text-center {
    text-align: center;
}

/* === Reportes de Servicio de Extintores === */
.filter-section {
    margin-top: var(--spacing-md);
}

.filter-form {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    min-width: 220px;
}

#tabla-reportes-extintores {
    width: 100%;
    table-layout: fixed;
}

#tabla-reportes-extintores thead th,
#tabla-reportes-extintores tbody td {
    width: calc(100% / 6);
    vertical-align: middle;
}

#tabla-reportes-extintores tbody td {
    text-align: left;
    word-break: break-word;
}

#tabla-reportes-extintores tbody td.actions-cell {
    text-align: center;
}

.actions-cell .flex {
    justify-content: center;
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
}

/* Utilidades de separación específicas */
.gap-6 {
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Layout y componentes para reportes de servicio de extintores */
.reporte-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.detail-info-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-info-table td {
    padding: 12px 0;
    font-size: 0.95rem;
    color: #4a5568;
}

.detail-info-table td:first-child {
    font-weight: 600;
    color: #2d3748;
    width: 45%;
}

.detail-info-table td:last-child {
    text-align: right;
}

.detail-info-table .badge {
    font-size: 0.85rem;
}

.detail-note {
    background: #f8fafc;
    border-left: 4px solid #667eea;
}

.detail-note p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

.extintores-section {
    margin-top: var(--spacing-lg);
}

.extintores-wrapper {
    display: none;
    margin-top: var(--spacing-md);
}

.extintores-wrapper.is-visible {
    display: block;
}

.extintor-select-checkbox,
.extintor-option-checkbox {
    width: 20px;
    height: 20px;
}

.extintor-expanded-row {
    display: none;
    background: #f9f9f9;
}

.extintor-expanded-row.is-open {
    display: table-row;
}

.extintor-expanded-content {
    padding: var(--spacing-md);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    border-radius: var(--border-radius-md);
}

.extintor-expanded-grid,
.extintor-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
}

.extintor-info-list,
.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.extintor-info-list li,
.extintor-detail-grid p,
.extintor-detail-grid li {
    margin: 0;
    color: #4a5568;
    font-size: 0.9rem;
}

.extintor-detail-grid strong {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: #2d3748;
}

.extintor-detail-grid small {
    color: #718096;
}

.extintor-toggle-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.extintor-toggle-button.is-active {
    background: linear-gradient(135deg, #38b2ac, #319795);
    border: none;
    color: var(--white);
}

.extintor-toggle-button.is-active i {
    transform: rotate(180deg);
}

.extintor-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
}

.extintor-observaciones-field {
    grid-column: 1 / -1;
}

.extintor-expanded-grid .form-group {
    margin-bottom: 0;
}

.form-note {
    margin-top: var(--spacing-lg);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.close {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 300;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close:hover {
    color: #343a40;
}

.modal-body {
    padding: 25px;
    color: #495057;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

/* Responsive para tablas */
@media (max-width: 768px) {
    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .table-actions {
        width: 100%;
    }

    .btn {
        flex: 1;
        justify-content: center;
    }

    .table th,
    .table td {
        padding: 12px 8px;
        font-size: 12px;
    }

    .btn-sm {
        padding: 4px 8px;
        font-size: 11px;
    }
}


/* ===== ESTILOS PARA PAGINACIÃ“N ===== */

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 20px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-item {
    margin: 0 2px;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.pagination-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.pagination-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pagination-link.disabled {
    color: #adb5bd;
    border-color: #e9ecef;
    background: #f8f9fa;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-link.disabled:hover {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    transform: none;
    box-shadow: none;
}

.pagination-info {
    margin: 0 20px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pagination-select option {
    padding: 8px;
}

/* Responsive para paginaciÃ³n */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-link {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .pagination-info {
        text-align: center;
        margin: 10px 0;
    }

    .pagination-controls {
        flex-direction: column;
        gap: 8px;
    }
}


/* AnimaciÃ³n para transiciones de pÃ¡gina */
.table-container {
    transition: opacity 0.3s ease;
}

.table-container.loading {
    opacity: 0.6;
}

/* ======================================================================= */
/* RESPONSIVIDAD MEJORADA PARA TODO EL PROYECTO                            */
/* ======================================================================= */

/* Mejoras para formularios que se cortan */
.form-container {
    max-width: 100%;
    overflow-x: auto;
    padding: var(--spacing-lg);
    margin: 0 auto;
}

.form-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid #e9ecef;
}

/* Mejoras para tablas responsivas */
.table-responsive {
    overflow-x: auto;
    /* Restauramos el scroll horizontal para legibilidad */
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
}

.table {
    width: 100%;
    min-width: 600px;
    /* Ancho mínimo para evitar que se comprima demasiado */
    margin-bottom: 0;
}

/* Mejoras para el grid de formularios */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    width: 100%;
    max-width: 100%;
}

/* Responsive breakpoints mejorados */
@media (max-width: 1400px) {
    .form-container {
        padding: var(--spacing-md);
    }

    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 1200px) {
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }

    .table {
        min-width: 500px;
    }
}

@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-section {
        padding: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .form-container {
        padding: var(--spacing-sm);
    }

    .form-section {
        padding: var(--spacing-sm);
    }

    .table {
        min-width: 400px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .form-container {
        padding: var(--spacing-xs);
    }

    .form-section {
        padding: var(--spacing-xs);
    }

    .table {
        min-width: 350px;
        font-size: 0.8rem;
    }
}

/* ======================================================================= */
/* TABLA MATRIZ PARA CHALECOS - FORMATO COMPARACIÓN                       */
/* ======================================================================= */

/* Contenedor de la tabla matriz */
.matrix-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    margin: var(--spacing-lg) 0;
    padding: 0;
}

/* Tabla matriz principal */
.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: white;
    min-width: fit-content;
}

/* Header de la tabla */
.matrix-table thead th {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #2d3748;
    font-weight: 600;
    text-align: center;
    padding: var(--spacing-md);
    border: 1px solid #DDD;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Header de control (primera columna) */
.control-header {
    background: #673AB7 !important;
    color: white !important;
    min-width: 150px;
    text-align: left !important;
    font-size: 1rem;
    font-weight: 700;
    border-top-left-radius: 8px;
}

/* Header de chalecos */
.chaleco-header {
    min-width: 120px;
    text-align: center;
    vertical-align: top;
    padding: var(--spacing-sm) !important;
    border: 2px solid #cbd5e0 !important;
}

.chaleco-info {
    margin-bottom: var(--spacing-sm);
}

.chaleco-marca {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.chaleco-modelo {
    font-size: 0.8rem;
    color: #4a5568;
    margin-bottom: 2px;
}

.chaleco-numero {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 500;
}

.chaleco-actions {
    margin-top: var(--spacing-xs);
}

/* Header de trajes (matriz) */
.traje-header {
    min-width: 130px;
    text-align: center;
    vertical-align: top;
    padding: var(--spacing-sm) !important;
    border: 1px solid #DDD !important;
    background: #F5F5F5 !important;
    color: #2d3748 !important;
}

.traje-header:first-of-type {
    border-top-right-radius: 8px;
}

.traje-info {
    margin-bottom: var(--spacing-sm);
}

.traje-marca {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.traje-modelo {
    font-size: 0.8rem;
    color: #4a5568;
    margin-bottom: 2px;
}

.traje-numero {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 500;
}

.traje-actions {
    margin-top: var(--spacing-xs);
}

/* Botón de eliminar traje - icono rojo */
.matrix-table .traje-actions .btn-danger {
    background-color: #F44336 !important;
    border-color: #F44336 !important;
    color: white !important;
    padding: 4px 8px;
    font-size: 0.85rem;
}

.matrix-table .traje-actions .btn-danger:hover {
    background-color: #d32f2f !important;
    border-color: #d32f2f !important;
}

/* SOLUCION: Estilos específicos para .traje-header en contexto de tabla matriz */
/* Esto sobrescribe el display: flex de modules.css */
.matrix-table th.traje-header {
    display: table-cell !important;
}

/* Filas de control */
.control-row {
    transition: background-color var(--transition-fast);
}

.control-row:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.control-row:nth-child(even) {
    background-color: rgba(248, 249, 250, 0.5);
}

/* Labels de control (primera columna) */
.control-label {
    background: white;
    color: #2d3748;
    font-weight: 600;
    padding: var(--spacing-md);
    border: 1px solid #DDD;
    border-right: 1px solid #DDD;
    text-align: left;
    min-width: 150px;
    font-size: 0.9rem;
}

/* Celdas de control */
.control-cell {
    padding: var(--spacing-sm);
    border: 1px solid #DDD;
    text-align: center;
    vertical-align: middle;
    background: white;
    transition: background-color var(--transition-fast);
}

.control-cell:hover {
    background-color: rgba(102, 126, 234, 0.02);
}

/* Filas con checkboxes - fondo blanco */
.matrix-table .control-row:has(.checkbox-wrapper) .control-label {
    background: white;
}

.matrix-table .control-row:has(.checkbox-wrapper) .control-cell {
    background: white;
}

/* Filas con select OK - fondo verde completo */
.matrix-table .control-row.row-status-ok .control-label,
.matrix-table .control-row:has(.status-select.status-ok) .control-label {
    background: #4CAF50;
    color: white;
    font-weight: 700;
}

.matrix-table .control-row.row-status-ok .control-cell,
.matrix-table .control-row:has(.status-select.status-ok) .control-cell {
    background: #4CAF50;
}

.matrix-table .control-row.row-status-ok .control-cell .status-select.status-ok,
.matrix-table .control-row:has(.status-select.status-ok) .control-cell .status-select.status-ok {
    background-color: #4CAF50 !important;
    color: white !important;
    font-weight: 700 !important;
    border-color: #4CAF50 !important;
}

/* Texto blanco en filas OK */
.matrix-table .control-row.row-status-ok td,
.matrix-table .control-row:has(.status-select.status-ok) td {
    color: white;
}

/* Controles de formulario en la matriz */
.matrix-table .form-control {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #cbd5e0;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    background: white;
}

.matrix-table .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.15rem rgba(102, 126, 234, 0.25);
    outline: none;
}

/* Colores para los estados en la matriz */
.matrix-table .status-select option[value="OK"] {
    background-color: #d4edda;
    color: #155724;
}

.matrix-table .status-select option[value="REP"] {
    background-color: #fff3cd;
    color: #856404;
}

.matrix-table .status-select option[value="REC"] {
    background-color: #f8d7da;
    color: #721c24;
}

/* Indicadores visuales dinámicos en la matriz */
.matrix-table .status-select.status-ok {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
    font-weight: 700;
}

/* Estilos para celdas que contienen "OK" */
.matrix-table .control-cell:has(.status-select.status-ok) {
    background-color: #4CAF50;
}

.matrix-table .status-select.status-ok {
    background-color: #4CAF50 !important;
    color: white !important;
    font-weight: 700 !important;
    border-color: #4CAF50 !important;
}

/* Cuando el select tiene valor OK, toda la fila debe ser verde */
.matrix-table tbody tr.control-row.row-status-ok td,
.matrix-table tbody tr.control-row:has(.status-select.status-ok) td {
    background-color: #4CAF50;
    color: white;
}

.matrix-table tbody tr.control-row.row-status-ok td.control-label,
.matrix-table tbody tr.control-row:has(.status-select.status-ok) td.control-label {
    background-color: #4CAF50;
    color: white;
    font-weight: 700;
}

.matrix-table .status-select.status-ok option:not([value="OK"]) {
    background-color: white;
    color: #2d3748;
}

.matrix-table .status-select.status-rep {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.matrix-table .status-select.status-rec {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Líneas y bordes mejorados */
.matrix-table {
    border: 1px solid #DDD;
    border-radius: 8px;
    overflow: hidden;
}

.matrix-table thead th {
    border-bottom: 1px solid #DDD;
}

.matrix-table tbody td {
    border: 1px solid #DDD;
}

.matrix-table thead th:first-child {
    border-top-left-radius: 8px;
}

.matrix-table tbody tr:last-child td {
    border-bottom: 1px solid #DDD;
}

/* Responsive para la tabla matriz */
@media (max-width: 1200px) {
    .matrix-table {
        font-size: 0.8rem;
    }

    .control-label {
        font-size: 0.8rem;
        padding: var(--spacing-sm);
    }

    .matrix-table .form-control {
        font-size: 0.8rem;
        padding: 4px 6px;
    }
}

@media (max-width: 992px) {
    .matrix-table-container {
        overflow-x: auto;
    }

    .matrix-table {
        min-width: 800px;
    }

    .chaleco-header {
        min-width: 100px;
    }

    .control-label {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .matrix-table {
        font-size: 0.75rem;
        min-width: 700px;
    }

    .control-label {
        font-size: 0.75rem;
        padding: var(--spacing-xs);
        min-width: 100px;
    }

    .matrix-table .form-control {
        font-size: 0.75rem;
        padding: 3px 5px;
    }

    .chaleco-marca {
        font-size: 0.8rem;
    }

    .chaleco-modelo {
        font-size: 0.7rem;
    }

    .chaleco-numero {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .matrix-table {
        min-width: 600px;
    }

    .control-label {
        min-width: 80px;
        font-size: 0.7rem;
    }

    .matrix-table .form-control {
        font-size: 0.7rem;
        padding: 2px 4px;
    }
}

/* ======================================================================= */
/* TABLA MATRIZ TRANSPUESTA - CHALECOS EN FILAS, TAREAS EN COLUMNAS       */
/* ======================================================================= */

/* Contenedor de tabla transpuesta */
.matrix-table-container.matrix-transposed {
    max-height: calc(100vh - 350px);
    min-height: 400px;
    padding: 0;
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 380px);
    min-height: 350px;
    position: relative;
}

/* Tabla transpuesta principal */
.matrix-table.matrix-table-transposed {
    width: max-content;
    min-width: 1400px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.82rem;
    overflow: visible !important;
}

/* Header de la tabla transpuesta */
.matrix-table-transposed thead {
    position: sticky;
    top: 0;
    z-index: 20;
}

.matrix-table-transposed thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 8px 6px;
    border: 1px solid #5a67d8;
    white-space: nowrap;
    font-size: 0.75rem;
    line-height: 1.2;
    position: sticky;
    top: 0;
    z-index: 15;
}

/* Columna sticky del chaleco - CRITICAL: debe estar antes de overflow-x del wrapper */
.matrix-table-transposed th.sticky-col,
.matrix-table-transposed td.sticky-col {
    position: -webkit-sticky !important;
    position: sticky !important;
    left: 0 !important;
    z-index: 100;
    background-color: #673AB7 !important;
    color: white !important;
    min-width: 140px;
    width: 140px;
    max-width: 160px;
    box-shadow: 3px 0 6px rgba(0, 0, 0, 0.25);
}

.matrix-table-transposed thead th.sticky-col {
    z-index: 120 !important;
    background-color: #512da8 !important;
}

.matrix-table-transposed tbody td.sticky-col {
    background-color: #673AB7 !important;
}

/* Asegurar que chaleco-info-cell también sea sticky */
.matrix-table-transposed .chaleco-info-cell {
    position: -webkit-sticky !important;
    position: sticky !important;
    left: 0 !important;
    background-color: #673AB7 !important;
}

/* Header de columna chaleco */
.chaleco-col-header {
    font-weight: 700;
    font-size: 0.8rem !important;
}

/* Headers de tareas */
.task-header {
    min-width: 70px;
    width: 70px;
    max-width: 80px;
    white-space: nowrap;
}

.task-header.task-checkbox {
    min-width: 55px;
    width: 55px;
    max-width: 60px;
}

.task-header.task-date {
    min-width: 115px;
    width: 115px;
    max-width: 120px;
}

.task-header.task-code {
    min-width: 65px;
    width: 65px;
    max-width: 70px;
}

.task-header.task-result {
    min-width: 95px;
    width: 95px;
    max-width: 100px;
}

.task-header.task-actions {
    min-width: 45px;
    width: 45px;
    max-width: 50px;
}

/* Filas de chaleco */
.chaleco-row {
    transition: background-color 0.15s ease;
}

.chaleco-row:nth-child(even) {
    background-color: rgba(248, 249, 250, 0.5);
}

.chaleco-row:hover {
    background-color: rgba(102, 126, 234, 0.08);
}

/* Celda de información del chaleco */
.chaleco-info-cell {
    padding: 6px 8px;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.chaleco-info-compact {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

.chaleco-info-compact .chaleco-marca {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
}

.chaleco-info-compact .chaleco-modelo {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
}

.chaleco-info-compact .chaleco-numero {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* Celdas de tareas */
.task-cell {
    padding: 4px 5px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    background: white;
    min-width: 70px;
    width: 70px;
}

.task-cell.task-checkbox {
    padding: 4px 3px;
    min-width: 55px;
    width: 55px;
}

.task-cell.task-date {
    padding: 3px 4px;
    min-width: 115px;
    width: 115px;
}

.task-cell.task-code {
    padding: 3px 4px;
    min-width: 65px;
    width: 65px;
}

.task-cell.task-result {
    padding: 3px 4px;
    min-width: 95px;
    width: 95px;
}

.task-cell.task-actions {
    padding: 4px;
    min-width: 45px;
    width: 45px;
}

/* Controles en tabla transpuesta */
.matrix-table-transposed .form-control {
    padding: 4px 6px;
    font-size: 0.78rem;
    border-radius: 3px;
}

.matrix-table-transposed .form-control-sm {
    padding: 3px 5px;
    font-size: 0.75rem;
    height: auto;
}

.matrix-table-transposed .status-select {
    padding: 3px 4px;
    font-size: 0.75rem;
    min-width: 55px;
    cursor: pointer;
}

/* Checkbox en tabla transpuesta */
.matrix-table-transposed .checkbox-wrapper {
    justify-content: center;
    margin: 0;
}

.matrix-table-transposed .checkbox-wrapper .checkbox-label {
    font-size: 0.72rem;
}

/* Input de fecha compacto */
.matrix-table-transposed input[type="date"] {
    width: 100%;
    min-width: 100px;
    font-size: 0.72rem;
    padding: 3px 4px;
}

/* Botón eliminar compacto */
.btn-xs {
    padding: 3px 6px;
    font-size: 0.7rem;
    line-height: 1;
    border-radius: 3px;
}

.matrix-table-transposed .btn-remove-chaleco {
    padding: 4px 7px;
}

/* ======================================================================= */
/* ESTILOS PARA TABLA TRANSPUESTA DE TRAJES (reutiliza estructura chalecos)*/
/* ======================================================================= */

/* Header de columna traje */
.traje-col-header {
    font-weight: 700;
    font-size: 0.8rem !important;
}

/* Filas de traje */
.traje-row {
    transition: background-color 0.15s ease;
}

.traje-row:nth-child(even) {
    background-color: rgba(248, 249, 250, 0.5);
}

.traje-row:hover {
    background-color: rgba(102, 126, 234, 0.08);
}

/* Celda de información del traje */
.traje-info-cell {
    padding: 6px 8px;
    border: 1px solid #ddd;
    vertical-align: middle;
}

/* Asegurar que traje-info-cell también sea sticky */
.matrix-table-transposed .traje-info-cell {
    position: -webkit-sticky !important;
    position: sticky !important;
    left: 0 !important;
    background-color: #673AB7 !important;
}

.traje-info-compact {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

.traje-info-compact .traje-marca {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
}

.traje-info-compact .traje-modelo {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
}

.traje-info-compact .traje-numero {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.matrix-table-transposed .btn-remove-traje {
    padding: 4px 7px;
}

.btn-remove-traje {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-remove-traje:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Estados de colores en celdas */
.matrix-table-transposed .task-cell:has(.status-select.status-ok) {
    background-color: #4CAF50;
}

.matrix-table-transposed .task-cell:has(.status-select.status-rep) {
    background-color: #fff3cd;
}

.matrix-table-transposed .task-cell:has(.status-select.status-rec) {
    background-color: #f8d7da;
}

/* Responsive tabla transpuesta */
@media (max-width: 1400px) {
    .matrix-table-transposed {
        font-size: 0.78rem;
        min-width: 1300px;
    }
    
    .matrix-table-transposed thead th {
        padding: 6px 4px;
        font-size: 0.7rem;
    }
    
    .task-header,
    .task-cell {
        min-width: 60px;
        width: 60px;
    }
    
    .matrix-table-transposed .sticky-col {
        min-width: 120px;
        width: 120px;
        max-width: 140px;
    }
}

@media (max-width: 1200px) {
    .matrix-table-container.matrix-transposed {
        max-height: calc(100vh - 300px);
    }
    
    .table-scroll-wrapper {
        max-height: calc(100vh - 330px);
    }
    
    .matrix-table-transposed {
        font-size: 0.75rem;
        min-width: 1200px;
    }
    
    .matrix-table-transposed thead th {
        font-size: 0.68rem;
        padding: 5px 3px;
    }
    
    .task-header,
    .task-cell {
        min-width: 55px;
        width: 55px;
    }
    
    .task-header.task-date,
    .task-cell.task-date {
        min-width: 100px;
        width: 100px;
    }
}

@media (max-width: 992px) {
    .matrix-table-transposed {
        min-width: 1100px;
    }
    
    .matrix-table-transposed .sticky-col {
        min-width: 110px;
        width: 110px;
        max-width: 120px;
    }
    
    .chaleco-info-compact .chaleco-marca {
        font-size: 0.72rem;
    }
    
    .chaleco-info-compact .chaleco-modelo,
    .chaleco-info-compact .chaleco-numero {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .matrix-table-container.matrix-transposed {
        max-height: calc(100vh - 250px);
        min-height: 300px;
    }
    
    .table-scroll-wrapper {
        max-height: calc(100vh - 280px);
        min-height: 280px;
    }
    
    .matrix-table-transposed {
        font-size: 0.7rem;
        min-width: 1000px;
    }
    
    .matrix-table-transposed .sticky-col {
        min-width: 100px;
        width: 100px;
    }
    
    .task-header,
    .task-cell {
        min-width: 50px;
        width: 50px;
    }
    
    .task-header.task-date,
    .task-cell.task-date {
        min-width: 90px;
        width: 90px;
    }
}

.table-editable thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 8px 4px;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Anchos específicos para cada columna */
.table-editable th:nth-child(1) {
    width: 15%;
}

/* Chaleco */
.table-editable th:nth-child(2) {
    width: 8%;
}

/* Prueba Inflado */
.table-editable th:nth-child(3) {
    width: 8%;
}

/* Boquilla y Tapa */
.table-editable th:nth-child(4) {
    width: 6%;
}

/* Cabezal */
.table-editable th:nth-child(5) {
    width: 6%;
}

/* Cápsula */
.table-editable th:nth-child(6) {
    width: 7%;
}

/* Estado Luz */
.table-editable th:nth-child(7) {
    width: 8%;
}

/* Vencimiento Luz */
.table-editable th:nth-child(8) {
    width: 6%;
}

/* Cilindro 1 */
.table-editable th:nth-child(9) {
    width: 6%;
}

/* Cilindro 2 */
.table-editable th:nth-child(10) {
    width: 6%;
}

/* Pin Seguridad */
.table-editable th:nth-child(11) {
    width: 6%;
}

/* Línea Sujeción */
.table-editable th:nth-child(12) {
    width: 6%;
}

/* Hebillas */
.table-editable th:nth-child(13) {
    width: 6%;
}

/* Funda Arnés */
.table-editable th:nth-child(14) {
    width: 6%;
}

/* Tiras Reflectivas */
.table-editable th:nth-child(15) {
    width: 6%;
}

/* Silbato */
.table-editable th:nth-child(16) {
    width: 8%;
}

/* Códigos Servicios */
.table-editable th:nth-child(17) {
    width: 8%;
}

/* Resultado */
.table-editable th:nth-child(18) {
    width: 5%;
}

/* Acciones */

.table-editable .sticky-column {
    position: sticky;
    left: 0;
    z-index: 15;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    width: 15% !important;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.table-editable tbody td {
    padding: 4px 2px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-editable tbody td.sticky-column {
    position: sticky;
    left: 0;
    z-index: 5;
    background: #fafbfc !important;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    text-align: left;
    width: 15% !important;
}

.chaleco-info {
    padding: 4px 0;
}

.chaleco-marca {
    font-size: 11px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 2px;
}

.chaleco-modelo {
    font-size: 10px;
    color: #6c757d;
}

.table-editable tr:hover {
    background-color: rgba(102, 126, 234, 0.05) !important;
}

.table-editable tr:hover td.sticky-column {
    background-color: rgba(102, 126, 234, 0.1) !important;
}

/* Estilos para los controles de formulario en tabla */
.form-control-sm {
    font-size: 9px;
    padding: 2px 4px;
    height: 24px;
    border: 1px solid #e1e5e9;
    border-radius: 3px;
    transition: all 0.2s ease-in-out;
    width: 100%;
    max-width: 100%;
}

.form-control-sm:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.1rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.status-select {
    min-width: 40px;
    max-width: 100%;
}

/* Colores para los estados */
.status-select option[value="OK"] {
    background-color: #d4edda;
    color: #155724;
}

.status-select option[value="REP"] {
    background-color: #fff3cd;
    color: #856404;
}

.status-select option[value="REC"] {
    background-color: #f8d7da;
    color: #721c24;
}

/* Indicadores visuales dinámicos */
.status-select.status-ok {
    background-color: #d4edda !important;
    color: #155724 !important;
    border-color: #c3e6cb !important;
    font-weight: 600;
}

.status-select.status-rep {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffeeba !important;
    font-weight: 600;
}

.status-select.status-rec {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
    font-weight: 600;
}

/* Estilos para vencimiento próximo (menos de 1 año) */
.vencimiento-proximo {
    background-color: #ffebee !important;
    color: #c62828 !important;
    border-color: #ef5350 !important;
    border-width: 2px !important;
    font-weight: 600;
}

.vencimiento-proximo:focus {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 0.2rem rgba(244, 67, 54, 0.25) !important;
}

/* Estilos para el badge de cantidad */
.badge {
    background: #673AB7;
    color: white;
    font-size: 0.8em;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

/* Estilos para el header de sección */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Botón "+ Agregar Traje" con estilo púrpura */
.section-header .btn-primary {
    background: #673AB7;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.section-header .btn-primary:hover {
    background: #5e35b1;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(103, 58, 183, 0.3);
    color: white;
}

/* Estilos para botones de acción */
.btn-remove-chaleco {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-remove-chaleco:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

@media (max-width: 1200px) {
    .table-editable {
        font-size: 10px;
        min-width: 1200px;
    }

    .table-editable thead th {
        font-size: 9px;
        padding: 6px 3px;
    }

    .form-control-sm {
        font-size: 8px;
        padding: 2px 4px;
        height: 22px;
    }

    .status-select {
        min-width: 35px;
    }
}

@media (max-width: 992px) {
    .table-editable {
        font-size: 9px;
        min-width: 1000px;
    }

    .table-editable thead th {
        font-size: 8px;
        padding: 5px 2px;
    }

    .table-editable tbody td {
        font-size: 8px;
        padding: 2px;
    }

    .form-control-sm {
        font-size: 7px;
        padding: 1px 2px;
        height: 20px;
    }

    .status-select {
        min-width: 30px;
    }
}

@media (max-width: 768px) {
    .table-editable {
        font-size: 8px;
        min-width: 800px;
    }

    .table-editable thead th {
        font-size: 7px;
        padding: 4px 2px;
    }

    .table-editable tbody td {
        font-size: 7px;
        padding: 1px;
    }

    .form-control-sm {
        font-size: 6px;
        padding: 1px;
        height: 18px;
    }

    .status-select {
        min-width: 25px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Estilos para indicador de carga */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
    color: #667eea;
}

.loading-spinner.show {
    display: block;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Estilos para formularios */
.form-container {
    margin-top: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.form-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Responsive para formularios */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}


/* Modal de Ã©xito personalizado */
.success-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

/* ======================================================================= */
/* MODAL PERSONALIZADO PARA AGREGAR CHALECOS                                */
/* ======================================================================= */

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.custom-modal-dialog {
    position: relative;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.3s ease-out;
}

.custom-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.custom-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.custom-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.custom-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.custom-modal-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    max-height: 60vh;
}

.custom-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tabla dentro del modal con scroll */
.custom-modal-body .table-responsive {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.custom-modal-body .table {
    margin-bottom: 0;
}

.custom-modal-body .table thead th {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    z-index: 10;
    border: none;
    padding: 12px 15px;
    font-weight: 600;
}

.custom-modal-body .table tbody tr:hover {
    background-color: #f8f9fa;
}

.custom-modal-body .table tbody td {
    padding: 12px 15px;
    border-top: 1px solid #e2e8f0;
    vertical-align: middle;
}

.custom-modal-body .table tbody tr:first-child td {
    border-top: none;
}

/* Scrollbar personalizado para la tabla */
.custom-modal-body .table-responsive::-webkit-scrollbar {
    width: 8px;
}

.custom-modal-body .table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-modal-body .table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.custom-modal-body .table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653b8e 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .custom-modal-dialog {
        width: 95%;
        margin: 10px auto;
    }

    .custom-modal-header {
        padding: 15px 20px;
    }

    .custom-modal-title {
        font-size: 18px;
    }

    .custom-modal-body {
        padding: 20px;
        max-height: 50vh;
    }

    .custom-modal-body .table-responsive {
        max-height: 300px;
    }

    .custom-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .custom-modal-footer .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

.success-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    transform: scale(0.7);
    opacity: 0;
    animation: slideIn 0.3s ease-out forwards;
}

.success-modal-header {
    padding: 20px 25px 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.success-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-modal-title i {
    font-size: 20px;
}

.success-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.success-modal-close:hover {
    background-color: #f8f9fa;
    color: #666;
}

.success-modal-body {
    padding: 20px 25px;
    text-align: center;
}

.success-modal-message {
    font-size: 16px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

.success-modal-footer {
    padding: 0 25px 25px 25px;
    display: flex;
    justify-content: center;
}

.success-modal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.success-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes slideIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* Responsive para el modal */
@media (max-width: 768px) {
    .success-modal-content {
        width: 95%;
        margin: 20px;
    }

    .success-modal-header {
        padding: 15px 20px 0 20px;
    }

    .success-modal-body {
        padding: 15px 20px;
    }

    .success-modal-footer {
        padding: 0 20px 20px 20px;
    }
}


/* Estilos para alertas */
.alert {
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger,
.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-dismissible {
    padding-right: 40px;
}

.alert .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 12px 20px;
    color: inherit;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}

.alert .close:hover {
    opacity: 0.7;
}

.alert.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.alert.fade.show {
    opacity: 1;
}

/* Estilos para filas de tabla con alertas de vencimiento */
.alert-danger {
    background-color: rgba(248, 215, 218, 0.3) !important;
    border-left: 4px solid #dc3545 !important;
}

.alert-danger:hover {
    background-color: rgba(248, 215, 218, 0.5) !important;
}

/* Estilos para badges de vencimiento de luz */
.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

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

/* Estilos para iconos en badges */
.badge i {
    margin-left: 4px;
    font-size: 0.8em;
}

/* Estilos para la informaciÃ³n del sistema de alertas */
.alert-info h6 {
    color: #0c5460;
    margin-bottom: 8px;
}

.alert-info p {
    font-size: 0.9em;
    margin-bottom: 4px;
}

.alert-info p:last-child {
    margin-bottom: 0;
}

/* Estilos para el modal de cliente */
.cliente-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cliente-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cliente-modal-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90%;
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.cliente-modal-overlay.show .cliente-modal-container {
    transform: scale(1);
}

.cliente-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.cliente-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cliente-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cliente-modal-close:hover {
    background-color: #e9ecef;
    color: #495057;
}

.cliente-modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.cliente-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

/* Estilos para el grupo de cliente */
.cliente-input-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.cliente-input-group select {
    flex: 1;
}

.btn-refresh-cliente {
    padding: 8px 12px;
    font-size: 14px;
    background-color: transparent;
    border: 1px solid var(--gray-400);
    color: var(--gray-600);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh-cliente:hover {
    background-color: var(--gray-100);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-refresh-cliente:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-refresh-cliente i {
    transition: transform 0.3s ease;
}

.btn-refresh-cliente:hover i {
    transform: rotate(180deg);
}

.btn-add-cliente {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 14px;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .cliente-modal-container {
        width: 95%;
        margin: 10px;
    }

    .cliente-modal-header {
        padding: 15px 20px;
    }

    .cliente-modal-body {
        padding: 20px;
    }

    .cliente-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .cliente-modal-footer .btn {
        width: 100%;
        margin-bottom: 5px;
    }

    .cliente-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-add-cliente {
        margin-top: 10px;
    }
}


/* ============================================================================
   AUTO-SUGGEST PARA PRODUCTOS
   ============================================================================ */

.producto-autocomplete-container {
    position: relative;
}

.producto-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.producto-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.producto-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    font-size: 14px;
    line-height: 1.4;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item.selected {
    background-color: #007bff;
    color: white;
}

.suggestion-item.no-results {
    color: #6c757d;
    font-style: italic;
    cursor: default;
}

.suggestion-item.no-results:hover {
    background-color: transparent;
}

.suggestion-item strong {
    font-weight: 600;
}

/* Scrollbar personalizado para las sugerencias */
.producto-suggestions::-webkit-scrollbar {
    width: 6px;
}

.producto-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.producto-suggestions::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.producto-suggestions::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Indicador de carga para bÃºsqueda de productos */
.producto-suggestions .loading {
    padding: 10px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.producto-suggestions .loading:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive para mÃ³viles */
@media (max-width: 768px) {
    .producto-suggestions {
        max-height: 150px;
    }

    .suggestion-item {
        padding: 12px 16px;
        font-size: 16px;
    }
}


/* ============================================================================
   ESTILOS ESPECÃFICOS PARA FORMULARIOS DE PEDIDOS
   ============================================================================ */

/* Contenedor principal del formulario de pedidos */
.pedido-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Tarjeta del formulario */
.pedido-form-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    overflow: hidden;
}

.pedido-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-bottom: 1px solid #e1e5e9;
}

.pedido-form-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pedido-form-title i {
    font-size: 28px;
}

.pedido-form-body {
    padding: 30px;
}

/* Secciones del formulario */
.pedido-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.pedido-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pedido-section-title i {
    color: #667eea;
    font-size: 20px;
}

/* Grid responsivo mejorado */
.pedido-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .pedido-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (min-width: 1024px) {
    .pedido-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Campos de formulario mejorados */
.pedido-form-group {
    margin-bottom: 20px;
}

.pedido-form-label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.pedido-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.pedido-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pedido-form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Contenedores de productos y servicios */
.items-container {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.item-row:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-row:last-child {
    margin-bottom: 0;
}

.item-input-group {
    flex: 1;
    position: relative;
}

.item-quantity {
    width: 120px;
    min-width: 120px;
}

.item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Botones mejorados */
.pedido-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.pedido-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pedido-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.pedido-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.pedido-btn-danger {
    background: #dc3545;
    color: white;
}

.pedido-btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.pedido-btn-success {
    background: #28a745;
    color: white;
}

.pedido-btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
}

.pedido-btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.pedido-btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Botones de agregar elementos */
.add-item-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.add-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* Contenedor de acciones del formulario */
.pedido-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
    gap: 15px;
}

.pedido-form-actions .btn-group {
    display: flex;
    gap: 10px;
}

/* Estados de los elementos */
.item-row.empty {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.item-row.error {
    background: #f8d7da;
    border-color: #f5c6cb;
}

/* Indicadores de estado */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-indicator.success {
    background: #d4edda;
    color: #155724;
}

.status-indicator.warning {
    background: #fff3cd;
    color: #856404;
}

.status-indicator.error {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive design */
@media (max-width: 768px) {
    .pedido-form-container {
        padding: 10px;
    }

    .pedido-form-body {
        padding: 20px;
    }

    .pedido-section {
        padding: 20px;
        margin-bottom: 25px;
    }

    .item-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .item-quantity {
        width: 100%;
        min-width: auto;
    }

    .item-actions {
        justify-content: center;
    }

    .pedido-form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .pedido-form-actions .btn-group {
        width: 100%;
        justify-content: center;
    }
}


/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.item-row {
    animation: slideInUp 0.3s ease;
}

/* Estilos para el modo de ediciÃ³n */
.pedido-form-edit-mode .pedido-form-control:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* ===== ARREGLO CRÃTICO PARA VISIBILIDAD DE PESTAÃ‘AS ===== */

/* Forzar visibilidad de pestaÃ±as activas */
#reporte-tabContent .tab-pane.show.active,
#create-tabContent .tab-pane.show.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#reporte-tabContent .tab-pane,
#create-tabContent .tab-pane {
    display: none;
}

#reporte-tabContent .tab-pane.active,
#create-tabContent .tab-pane.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Asegurar que el contenido del formulario sea visible */
.form-section {
    display: block !important;
    visibility: visible !important;
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-row {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
    min-width: 250px;
}

/* Responsive para form-col */
@media (max-width: 768px) {
    .form-col {
        min-width: 100% !important;
        flex: none !important;
    }
}


.pedido-form-edit-mode .item-row {
    opacity: 0.7;
}

.pedido-form-edit-mode .item-row:hover {
    opacity: 1;
}

/* Estilos para autocompletado mejorado */
.producto-autocomplete-container {
    position: relative;
    width: 100%;
}

.producto-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.producto-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.producto-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #667eea;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item.selected {
    background-color: #667eea;
    color: white;
}

.suggestion-item:last-child {
    border-bottom: none;
}


/* Estilos adicionales para elementos especÃ­ficos */
.form-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #667eea;
    cursor: pointer;
}

.form-checkbox:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* Estilos para checkboxes SI/NO en reportes de trajes */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
}

.checkbox-si-no {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4CAF50;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    user-select: none;
}

.checkbox-si-no:checked+.checkbox-label {
    color: #2d3748;
    font-weight: 500;
}

/* Estilos para checkboxes en celdas de tabla */
td .checkbox-wrapper {
    display: inline-flex;
    vertical-align: middle;
}

.matrix-table td .checkbox-wrapper {
    justify-content: center;
}

/* Estilos para campos de fecha */
input[type="date"] {
    font-family: inherit;
    font-size: 14px;
}

/* Estilos para textareas */
textarea.pedido-form-control {
    resize: vertical;
    min-height: 80px;
}

/* Estilos para campos de observaciones */
.observaciones-field {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
}

/* Estilos para estados de electrÃ³nica */
.electronica-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.electronica-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.electronica-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
}

.electronica-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.electronica-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #495057;
}

.electronica-item-header i {
    color: #667eea;
    font-size: 16px;
}

.electronica-checkbox {
    margin-right: 8px;
}

.electronica-observaciones {
    margin-top: 10px;
}

.electronica-observaciones textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

/* Estilos para indicadores de estado */
.estado-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estado-indicator.pendiente {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.estado-indicator.en-proceso {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.estado-indicator.terminado {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.estado-indicator.cancelado {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Estilos para tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Estilos para campos requeridos */
.pedido-form-label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Estilos para campos con error */
.pedido-form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.pedido-form-control.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Estilos para mensajes de error */
.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-message i {
    font-size: 14px;
}

/* Estilos para campos de Ã©xito */
.pedido-form-control.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Estilos para loading states */
.pedido-form-control.loading {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    animation: spin 1s linear infinite;
}

/* Estilos para campos deshabilitados */
.pedido-form-control:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.pedido-form-control:disabled:focus {
    border-color: #e9ecef;
    box-shadow: none;
}

/* Estilos para campos de solo lectura */
.pedido-form-control[readonly] {
    background-color: #f8f9fa;
    color: #495057;
    cursor: default;
}

/* Estilos para campos con placeholder */
.pedido-form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Estilos para campos con autocompletado */
.pedido-form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset;
    -webkit-text-fill-color: #495057;
}

/* Estilos para campos de bÃºsqueda */
.search-field {
    position: relative;
}

.search-field .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
}

.search-field .pedido-form-control {
    padding-left: 40px;
}

/* Estilos para campos de cantidad */
.cantidad-field {
    text-align: center;
    font-weight: 500;
}

.cantidad-field .pedido-form-control {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

/* Estilos para campos de precio */
.precio-field {
    text-align: right;
}

.precio-field .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #28a745;
}

/* Estilos para campos de descripciÃ³n */
.descripcion-field .pedido-form-control {
    font-style: italic;
    color: #6c757d;
}

/* Estilos para campos de cÃ³digo */
.codigo-field .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

/* Estilos para campos de fecha especiales */
.fecha-importante .pedido-form-control {
    border-color: #ffc107;
    background-color: #fff3cd;
}

.fecha-importante .pedido-form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

/* Estilos para campos de prioridad */
.prioridad-alta .pedido-form-control {
    border-color: #dc3545;
    background-color: #f8d7da;
}

.prioridad-media .pedido-form-control {
    border-color: #ffc107;
    background-color: #fff3cd;
}

.prioridad-baja .pedido-form-control {
    border-color: #28a745;
    background-color: #d4edda;
}

/* Estilos para campos de estado */
.estado-pendiente .pedido-form-control {
    border-color: #6c757d;
    background-color: #f8f9fa;
}

.estado-en-proceso .pedido-form-control {
    border-color: #007bff;
    background-color: #d1ecf1;
}

.estado-terminado .pedido-form-control {
    border-color: #28a745;
    background-color: #d4edda;
}

/* Estilos para campos de cliente */
.cliente-field .pedido-form-control {
    font-weight: 500;
    color: #495057;
}

/* Estilos para campos de barco */
.barco-field .pedido-form-control {
    font-weight: 500;
    color: #495057;
}

/* Estilos para campos de personal */
.personal-field .pedido-form-control {
    font-weight: 500;
    color: #495057;
}

/* Estilos para campos de observaciones */
.observaciones-field .pedido-form-control {
    font-style: italic;
    color: #6c757d;
    background-color: #f8f9fa;
}

/* Estilos para campos de logÃ­stica */
.logistica-field .pedido-form-control {
    font-weight: 500;
    color: #495057;
    background-color: #e9ecef;
}

/* Estilos para campos administrativos */
.admin-field .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

/* Estilos para campos de facturaciÃ³n */
.facturacion-field .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #28a745;
    background-color: #d4edda;
}

/* Estilos para campos de remitos */
.remitos-field .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #007bff;
    background-color: #d1ecf1;
}

/* Estilos para campos de presupuesto */
.presupuesto-field .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #6f42c1;
    background-color: #e2d9f3;
}

/* Estilos para campos de fechas especiales */
.fecha-envio .pedido-form-control {
    border-color: #17a2b8;
    background-color: #d1ecf1;
}

.fecha-cobro .pedido-form-control {
    border-color: #28a745;
    background-color: #d4edda;
}

.fecha-terminado .pedido-form-control {
    border-color: #6c757d;
    background-color: #f8f9fa;
}

/* ===== MODAL DE VENCIMIENTOS MÃšLTIPLES - FIX Z-INDEX ===== */

/* Asegurar que los modales de Bootstrap estÃ©n por encima de todo */
.modal {
    z-index: 2000 !important;
}

.modal-backdrop {
    z-index: 1999 !important;
}

/* Modal especÃ­fico de vencimientos mÃºltiples - VersiÃ³n simplificada */
#modalVencimientosMultiples {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    display: none !important;
    pointer-events: auto !important;
}

#modalVencimientosMultiples.show {
    display: block !important;
}

/* Hacer el modal mÃ¡s grande */
#modalVencimientosMultiples .modal-dialog {
    max-width: 95% !important;
    width: 95% !important;
    margin: 20px auto !important;
}

#modalVencimientosMultiples .modal-content {
    height: calc(100vh - 40px) !important;
    max-height: calc(100vh - 40px) !important;
}

#modalVencimientosMultiples .modal-body {
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
    padding: 20px !important;
}

/* Mejorar legibilidad de las filas de vencimientos */
#modalVencimientosMultiples .vencimiento-fila {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #dee2e6;
}

#modalVencimientosMultiples .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

#modalVencimientosMultiples .form-control {
    font-size: 0.95rem;
    padding: 8px 12px;
}

#modalVencimientosMultiples .form-check {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 38px;
}

#modalVencimientosMultiples .form-check-input {
    transform: scale(1.2);
}

#modalVencimientosMultiples .badge {
    font-size: 0.8rem;
    padding: 6px 10px;
    min-width: 60px;
    text-align: center;
}

#modalVencimientosMultiples .modal-dialog {
    z-index: 2002 !important;
    position: relative;
}

#modalVencimientosMultiples .modal-content {
    z-index: 2003 !important;
    position: relative;
}

/* Asegurar que los elementos dentro del modal estÃ©n correctamente posicionados */
.vencimiento-fila {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: auto;
}

/* ===== CORRECCIÃ“N MODAL BLOQUEADO ===== */

/* Asegurar que los elementos del modal sean interactivos */
#modalVencimientosMultiples .modal-dialog {
    margin: 1.75rem auto !important;
    pointer-events: auto !important;
}

#modalVencimientosMultiples .modal-content {
    pointer-events: auto !important;
}

#modalVencimientosMultiples .modal-header,
#modalVencimientosMultiples .modal-body,
#modalVencimientosMultiples .modal-footer {
    pointer-events: auto !important;
    position: relative !important;
}

#modalVencimientosMultiples input,
#modalVencimientosMultiples button,
#modalVencimientosMultiples select,
#modalVencimientosMultiples .btn,
#modalVencimientosMultiples .form-control {
    pointer-events: auto !important;
    position: relative !important;
}

/* Asegurar que el backdrop no interfiera */
.modal-backdrop.show {
    opacity: 0.5 !important;
}

/* Estilos para campos de observaciones de terminado */
.observaciones-terminado .pedido-form-control {
    font-style: italic;
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #6c757d;
}

/* Estilos para campos de electrÃ³nica */
.electronica-field .pedido-form-control {
    font-weight: 500;
    color: #495057;
    background-color: #f8f9fa;
}

/* Estilos para campos de observaciones de electrÃ³nica */
.observaciones-electronica .pedido-form-control {
    font-style: italic;
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #6c757d;
}

/* Estilos para campos de servicios */
.servicio-field .pedido-form-control {
    font-weight: 500;
    color: #495057;
}

/* Estilos para campos de productos */
.producto-field .pedido-form-control {
    font-weight: 500;
    color: #495057;
}

/* Estilos para campos de cantidad de servicios */
.cantidad-servicio .pedido-form-control {
    text-align: center;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

/* Estilos para campos de cantidad de productos */
.cantidad-producto .pedido-form-control {
    text-align: center;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

/* Estilos para campos de descripciÃ³n de productos */
.descripcion-producto .pedido-form-control {
    font-style: italic;
    color: #6c757d;
    background-color: #f8f9fa;
}

/* Estilos para campos de cÃ³digo de productos */
.codigo-producto .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

/* Estilos para campos de descripciÃ³n de servicios */
.descripcion-servicio .pedido-form-control {
    font-style: italic;
    color: #6c757d;
    background-color: #f8f9fa;
}

/* Estilos para campos de cÃ³digo de servicios */
.codigo-servicio .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

/* Estilos para campos de precio de servicios */
.precio-servicio .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #28a745;
    background-color: #d4edda;
}

/* Estilos para campos de precio de productos */
.precio-producto .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #28a745;
    background-color: #d4edda;
}

/* Estilos para campos de total */
.total-field .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #28a745;
    background-color: #d4edda;
    font-size: 18px;
}

/* Estilos para campos de subtotal */
.subtotal-field .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

/* Estilos para campos de impuestos */
.impuestos-field .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #dc3545;
    background-color: #f8d7da;
}

/* Estilos para campos de descuento */
.descuento-field .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento porcentual */
.descuento-porcentual .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento fijo */
.descuento-fijo .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por cantidad */
.descuento-cantidad .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por cliente */
.descuento-cliente .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por barco */
.descuento-barco .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por personal */
.descuento-personal .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por fecha */
.descuento-fecha .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por prioridad */
.descuento-prioridad .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por estado */
.descuento-estado .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por servicio */
.descuento-servicio .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por producto */
.descuento-producto .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por electrónica */
.descuento-electronica .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por logística */
.descuento-logistica .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por administración */
.descuento-administracion .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por facturación */
.descuento-facturacion .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por remitos */
.descuento-remitos .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por presupuesto */
.descuento-presupuesto .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por fechas */
.descuento-fechas .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones */
.descuento-observaciones .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por terminado */
.descuento-terminado .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de terminado */
.descuento-observaciones-terminado .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por electrónica de emergencia */
.descuento-electronica-emergencia .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de electrónica */
.descuento-observaciones-electronica .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por VHF */
.descuento-vhf .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por SART */
.descuento-sart .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por EPIRB */
.descuento-epirb .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de VHF */
.descuento-observaciones-vhf .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de SART */
.descuento-observaciones-sart .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de EPIRB */
.descuento-observaciones-epirb .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por equipo VHF */
.descuento-equipo-vhf .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por antena VHF */
.descuento-antena-vhf .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por batería de emergencia VHF */
.descuento-bateria-emergencia-vhf .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por batería de recarga VHF */
.descuento-bateria-recarga-vhf .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por cargador VHF */
.descuento-cargador-vhf .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por caja VHF */
.descuento-caja-vhf .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por equipo SART */
.descuento-equipo-sart .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por bastón de izaje SART */
.descuento-baston-izaje-sart .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por caja SART */
.descuento-caja-sart .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por equipo EPIRB */
.descuento-equipo-epirb .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por HRU EPIRB */
.descuento-hru-epirb .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por bracket superior EPIRB */
.descuento-bracket-superior-epirb .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por bracket inferior EPIRB */
.descuento-bracket-inferior-epirb .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de equipo VHF */
.descuento-observaciones-equipo-vhf .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de antena VHF */
.descuento-observaciones-antena-vhf .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de batería de emergencia VHF */
.descuento-observaciones-bateria-emergencia-vhf .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de batería de recarga VHF */
.descuento-observaciones-bateria-recarga-vhf .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de cargador VHF */
.descuento-observaciones-cargador-vhf .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de caja VHF */
.descuento-observaciones-caja-vhf .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de equipo SART */
.descuento-observaciones-equipo-sart .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de bastón de izaje SART */
.descuento-observaciones-baston-izaje-sart .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de caja SART */
.descuento-observaciones-caja-sart .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de equipo EPIRB */
.descuento-observaciones-equipo-epirb .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de HRU EPIRB */
.descuento-observaciones-hru-epirb .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de bracket superior EPIRB */
.descuento-observaciones-bracket-superior-epirb .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* Estilos para campos de descuento por observaciones de bracket inferior EPIRB */
.descuento-observaciones-bracket-inferior-epirb .pedido-form-control {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffc107;
    background-color: #fff3cd;
}

/* ============================================================================
   ESTILOS PARA BOTONES DE ACCIÓN EN TABLAS
   ============================================================================ */

/* Botón de descarga PDF */
.btn-pdf {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-pdf:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

.btn-pdf:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-pdf i {
    font-size: 14px;
}

/* Botón de descarga PDF pequeño */
.btn-pdf.btn-sm {
    padding: 4px 8px;
    font-size: 11px;
}

.btn-pdf.btn-sm i {
    font-size: 12px;
}

/* Animación para el botón PDF */
/* Pestañas de navegación - Optimizadas */
.reportes-nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 12px;
    /* Reducido de 20px */
    margin-top: 0;
    flex-wrap: wrap;
    gap: 3px;
}

.reportes-nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 8px 12px;
    /* Reducido de 12px 16px */
    border-radius: 6px 6px 0 0;
    margin-right: 2px;
    margin-bottom: 3px;
    transition: all 0.25s ease;
    font-size: 13px;
    /* Reducido de 14px */
    white-space: nowrap;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.reportes-nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #007bff;
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

.reportes-nav-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: transparent;
    border-radius: 6px;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
}

.reportes-nav-tabs .nav-link i {
    margin-right: 6px;
    /* Reducido de 8px */
    font-size: 14px;
    /* Reducido de 16px */
}

/* Secciones del formulario - Compactas */
.reportes-section-header {
    background-color: #f8f9fa;
    padding: 8px 12px;
    /* Reducido de 12px 16px */
    border-left: 3px solid #007bff;
    /* Reducido de 4px */
    margin-bottom: 10px;
    /* Reducido de 15px */
    margin-top: 0;
    border-radius: 4px;
}

.reportes-section-header h6 {
    margin: 0;
    color: #007bff;
    font-weight: 600;
    font-size: 14px;
    /* Reducido de 16px */
    line-height: 1.3;
}

.reportes-section-header small {
    color: #6c757d;
    display: block;
    margin-top: 3px;
    /* Reducido de 4px */
    font-size: 12px;
}

/* Campos de formulario - Optimizados */
.reportes-form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    /* Reducido de 6px */
    font-size: 13px;
    /* Reducido de 14px */
    line-height: 1.3;
}

.reportes-form-control,
.reportes-form-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    /* Reducido de 6px */
    padding: 8px 10px;
    /* Reducido de 10px 12px */
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 13px;
    /* Reducido de 14px */
    line-height: 1.4;
}

.reportes-form-control:focus,
.reportes-form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.2);
    outline: none;
}

/* Tablas - Compactas */
.reportes-table {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}

.reportes-table th {
    background-color: #007bff;
    color: white;
    border: none;
    font-weight: 600;
    text-align: center;
    padding: 8px 6px;
    /* Reducido de 12px 8px */
    font-size: 12px;
    /* Reducido de 14px */
    line-height: 1.3;
}

.reportes-table td {
    border-color: #dee2e6;
    vertical-align: middle;
    text-align: center;
    padding: 6px 4px;
    /* Reducido de 10px 8px */
    font-size: 12px;
    /* Reducido de 13px */
    line-height: 1.3;
}

.reportes-table td input,
.reportes-table td select {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 4px 6px;
    /* Reducido de 6px 8px */
    font-size: 12px;
    /* Reducido de 13px */
    width: 100%;
    min-height: 28px;
}

/* Secciones especiales */
.reportes-calculation-section {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.reportes-result-section {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.reportes-readonly-field {
    background-color: #f8f9fa !important;
    cursor: not-allowed;
}

/* ===== ARREGLO CRÍTICO PARA VISIBILIDAD DE PESTAÑAS ===== */
/* Forzar visibilidad de pestañas activas */
#reporte-tabContent .tab-pane.show.active,
#create-tabContent .tab-pane.show.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#reporte-tabContent .tab-pane,
#create-tabContent .tab-pane {
    display: none;
}

#reporte-tabContent .tab-pane.active,
#create-tabContent .tab-pane.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Asegurar que el contenido del formulario sea visible */
.form-section {
    display: block !important;
    visibility: visible !important;
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-row {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
    min-width: 250px;
}

/* Responsive para form-col */
@media (max-width: 768px) {
    .form-col {
        min-width: 100% !important;
        flex: none !important;
    }
}


/* Estados y badges */
.reportes-badge-success {
    background-color: #28a745 !important;
    color: white !important;
}

.reportes-badge-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.reportes-badge-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

.reportes-badge-info {
    background-color: #17a2b8 !important;
    color: white !important;
}

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

/* Hover effects */
.reportes-table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.reportes-input-group-text {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.reportes-test-section {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.reportes-test-section:hover {
    border-left-color: #007bff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Resultados de pruebas WP */
#wp_resultado_prueba.reportes-resultado-ok {
    background-color: #e8f5e8 !important;
    color: #2e7d32 !important;
    border-color: #4caf50 !important;
}

#wp_resultado_prueba.reportes-resultado-condenada {
    background-color: #ffebee !important;
    color: #d32f2f !important;
    border-color: #f44336 !important;
}

#wp_resultado_prueba.reportes-resultado-vacio {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
}

/* Alertas de vencimiento */
.reportes-alert-vencido {
    background-color: #f8d7da !important;
    border: 2px solid #dc3545 !important;
    color: #721c24 !important;
    border-radius: 6px;
    padding: 8px 12px;
}

.reportes-alert-proximo-vencer {
    background-color: #f8d7da !important;
    border: 2px solid #dc3545 !important;
    color: #721c24 !important;
    border-radius: 6px;
    padding: 8px 12px;
}

.reportes-alert-ok {
    background-color: #d4edda !important;
    border: 2px solid #28a745 !important;
    color: #155724 !important;
    border-radius: 6px;
    padding: 8px 12px;
}

/* Iconos de alerta */
.reportes-icono-alerta {
    margin-left: 5px;
    font-size: 16px;
}

.reportes-icono-vencido {
    color: #dc3545;
}

.reportes-icono-proximo {
    color: #dc3545;
}

.reportes-icono-ok {
    color: #28a745;
}

/* Estados de vencimiento */
.reportes-estado-vencimiento {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* Estilos para estados de vencimiento (con y sin prefijo reportes-) */
.reportes-estado-vencido,
.estado-vencido {
    background-color: #dc3545;
    color: white;
}

.reportes-estado-proximo,
.estado-proximo {
    background-color: #dc3545;
    color: white;
}

.reportes-estado-ok,
.estado-ok {
    background-color: #28a745;
    color: white;
}

/* Estado recambiado - elemento vencido que fue actualizado */
.reportes-estado-recambiado,
.estado-recambiado {
    background-color: #17a2b8;
    color: white;
}

/* Selector de estado para elementos perecederos */
.estado-select {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    border: 2px solid;
    cursor: pointer;
    min-width: 100px;
    text-align: center;
    transition: all 0.2s ease;
}

.estado-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Colores según el valor seleccionado */
.estado-select.estado-ok,
.estado-select[data-estado-valor="OK"] {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.estado-select.estado-vencido,
.estado-select[data-estado-valor="VENCIDO"] {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.estado-select.estado-recambiado,
.estado-select[data-estado-valor="RECAMBIADO"] {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

/* Indicador de estado automático vs manual */
.estado-cell {
    position: relative;
}

.estado-cell .estado-auto-indicator {
    font-size: 9px;
    color: #6c757d;
    display: block;
    margin-top: 2px;
}

.estado-cell .estado-auto-indicator.modificado {
    color: #fd7e14;
    font-weight: 600;
}

/* Filas de equipo */
.reportes-equipo-row {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
}

/* Estilos para filas de equipo (con y sin prefijo reportes-) */
.reportes-equipo-row.vencido,
.equipo-row.vencido {
    background-color: #f8d7da !important;
    border-color: #dc3545;
}

.reportes-equipo-row.proximo-vencer,
.equipo-row.proximo-vencer {
    background-color: #f8d7da !important;
    border-color: #dc3545;
}

/* Fila de elemento recambiado - sin sombreado rojo */
.reportes-equipo-row.recambiado,
.equipo-row.recambiado {
    background-color: #d1ecf1 !important;
    border-color: #17a2b8;
}

.reportes-equipo-row.ok,
.equipo-row.ok {
    background-color: #d4edda !important;
    border-color: #28a745;
}

.reportes-equipo-row .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.reportes-equipo-row .row {
    margin-bottom: 8px;
}

.reportes-equipo-row .col-md-4 {
    padding: 0 4px;
}

.reportes-equipo-row .form-control {
    font-size: 13px;
    padding: 6px 8px;
}

/* Campos específicos de equipo */
.reportes-equipo-campo-cantidad {
    font-size: 13px;
    text-align: center;
}

.reportes-equipo-campo-marca {
    font-size: 12px;
}

.reportes-equipo-campo-vencimiento {
    font-family: monospace;
    font-size: 12px;
    text-align: center;
}

.reportes-vencimiento-campo {
    font-family: monospace;
    font-size: 13px;
}

/* Estilos para campos de vencimiento (con y sin prefijo reportes-) */
.reportes-vencimiento-campo.vencido,
.vencimiento-campo.vencido {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
    color: #721c24 !important;
    font-weight: bold;
}

.reportes-vencimiento-campo.proximo-vencer,
.vencimiento-campo.proximo-vencer {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
    color: #721c24 !important;
    font-weight: bold;
}

.reportes-vencimiento-campo.ok,
.vencimiento-campo.ok {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
    color: #155724 !important;
    font-weight: bold;
}

.reportes-marca-select {
    min-width: 150px;
}

/* Botones */
.reportes-btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
}

.reportes-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    color: white;
}

.reportes-btn-secondary {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
}

/* Form checks */
.reportes-form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* Estilos adicionales para optimización de espacio */
.reportes-main-content .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
}

.reportes-main-content .d-flex.justify-content-between {
    margin-bottom: 10px;
    /* Reducido de 15px */
}

.tab-content {
    padding-top: 10px;
    /* Reducido de 15px */
}

.tab-pane {
    padding: 0;
    margin-top: 0;
}

/* Optimización de filas y columnas */
.reportes-main-content .row {
    margin-bottom: 12px;
    /* Estandarizado para menos espacio */
}

.reportes-main-content .row.mb-4 {
    margin-bottom: 15px !important;
    /* Reducido del Bootstrap mb-4 */
}

.reportes-main-content .col-md-3,
.reportes-main-content .col-md-4,
.reportes-main-content .col-md-6,
.reportes-main-content .col-md-12 {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 8px;
}

/* Títulos y headers más compactos */
.reportes-main-content h2 {
    font-size: 20px;
    /* Reducido */
    margin-bottom: 5px;
}

/* Responsive para pestañas - Actualizado */
@media (max-width: 768px) {
    .reportes-nav-tabs {
        flex-direction: column;
        gap: 2px;
    }

    .reportes-nav-tabs .nav-link {
        margin-right: 0;
        margin-bottom: 3px;
        text-align: center;
        padding: 8px 10px;
        font-size: 12px;
        min-height: 34px;
    }

    .reportes-section-header h6 {
        font-size: 13px;
    }

    .reportes-form-control,
    .reportes-form-select {
        font-size: 16px;
        /* Evita zoom en móviles */
        padding: 6px 8px;
    }

    .reportes-table {
        font-size: 11px;
    }

    .reportes-table th,
    .reportes-table td {
        padding: 6px 3px;
    }

    .reportes-equipo-row {
        padding: 6px;
        margin-bottom: 10px;
    }

    .reportes-main-card .card-body {
        padding: 10px;
    }
}


@media (max-width: 992px) {
    .reportes-nav-tabs .nav-link {
        padding: 8px 12px;
        /* Reducido */
        font-size: 12px;
        /* Reducido */
    }

    .reportes-nav-tabs .nav-link i {
        margin-right: 5px;
        /* Reducido */
        font-size: 13px;
        /* Reducido */
    }
}


/* ============================================================================
   ESTILOS ESPECÍFICOS PARA EQUIPOS DE EMERGENCIA - COMPACTOS
   ============================================================================ */

/* Filas de equipo optimizadas */
.reportes-equipo-row {
    background-color: #f8f9fa;
    border-radius: 4px;
    /* Reducido de 6px */
    padding: 8px;
    /* Reducido de 12px */
    margin-bottom: 10px;
    /* Reducido de 16px */
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.reportes-equipo-row:hover {
    background-color: #f0f0f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos para filas de equipo (con y sin prefijo reportes-) */
.reportes-equipo-row.vencido,
.equipo-row.vencido {
    background-color: #f8d7da !important;
    border-color: #dc3545;
}

.reportes-equipo-row.proximo-vencer,
.equipo-row.proximo-vencer {
    background-color: #f8d7da !important;
    border-color: #dc3545;
}

.reportes-equipo-row.ok,
.equipo-row.ok {
    background-color: #d4edda !important;
    border-color: #28a745;
}

.reportes-equipo-row .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    /* Reducido de 8px */
    font-size: 12px;
    /* Reducido de 14px */
    line-height: 1.3;
}

.reportes-equipo-row .row {
    margin-bottom: 4px;
    /* Reducido de 8px */
}

.reportes-equipo-row .col-md-4 {
    padding: 0 3px;
    /* Reducido de 0 4px */
}

.reportes-equipo-row .form-control {
    font-size: 12px;
    /* Reducido de 13px */
    padding: 4px 6px;
    /* Reducido de 6px 8px */
    min-height: 28px;
    line-height: 1.3;
}

/* Campos especÃ­ficos de equipo optimizados */
.reportes-equipo-campo-cantidad {
    font-size: 12px;
    /* Reducido */
    text-align: center;
    font-weight: 600;
}

.reportes-equipo-campo-marca {
    font-size: 11px;
    /* Reducido */
}

.reportes-equipo-campo-vencimiento {
    font-family: monospace;
    font-size: 11px;
    /* Reducido */
    text-align: center;
}

.reportes-vencimiento-campo {
    font-family: monospace;
    font-size: 12px;
    /* Reducido */
}

/* Estilos para campos de vencimiento (con y sin prefijo reportes-) */
.reportes-vencimiento-campo.vencido,
.vencimiento-campo.vencido {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
    color: #721c24 !important;
    font-weight: bold;
}

.reportes-vencimiento-campo.proximo-vencer,
.vencimiento-campo.proximo-vencer {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
    color: #721c24 !important;
    font-weight: bold;
}

.reportes-vencimiento-campo.ok,
.vencimiento-campo.ok {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
    color: #155724 !important;
    font-weight: bold;
}

.reportes-marca-select {
    min-width: 120px;
    /* Reducido de 150px */
    font-size: 12px;
}

/* Secciones especiales compactas */
.reportes-calculation-section {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    /* Reducido */
    padding: 10px;
    /* Reducido de 16px */
    margin: 10px 0;
    /* Reducido de 16px */
}

.reportes-result-section {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    /* Reducido */
    padding: 10px;
    /* Reducido de 16px */
    margin: 10px 0;
    /* Reducido de 16px */
}

/* Estados y badges compactos */
.reportes-badge-success,
.reportes-badge-warning,
.reportes-badge-danger,
.reportes-badge-info,
.reportes-badge-secondary {
    font-size: 11px;
    /* Reducido */
    padding: 2px 6px;
    /* Reducido */
    border-radius: 3px;
    font-weight: 600;
}

/* Iconos de alerta optimizados */
.reportes-icono-alerta {
    margin-left: 3px;
    /* Reducido de 5px */
    font-size: 14px;
    /* Reducido de 16px */
}

/* Estados de vencimiento compactos */
.reportes-estado-vencimiento {
    font-weight: bold;
    padding: 1px 4px;
    /* Reducido */
    border-radius: 2px;
    font-size: 10px;
    /* Reducido */
}

/* Test sections optimizadas */
.reportes-test-section {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    /* Reducido */
    padding: 10px;
    /* Reducido de 16px */
    margin-bottom: 10px;
    /* Reducido de 16px */
    border-radius: 4px;
    background-color: #f8f9fa;
}

.reportes-test-section:hover {
    border-left-color: #007bff;
    transform: translateX(3px);
    /* Reducido de 5px */
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

/* Botones compactos */
.reportes-btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 6px;
    /* Reducido */
    padding: 8px 16px;
    /* Reducido de 12px 24px */
    font-weight: 600;
    transition: all 0.25s;
    color: white;
    font-size: 13px;
    /* Reducido */
}

.reportes-btn-primary:hover {
    transform: translateY(-1px);
    /* Reducido */
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    color: white;
}

.reportes-btn-secondary {
    border-radius: 6px;
    /* Reducido */
    padding: 8px 16px;
    /* Reducido de 12px 24px */
    font-weight: 600;
    font-size: 13px;
    /* Reducido */
}

/* Estilos adicionales para mejorar mÃ¡rgenes */
.reportes-main-content .container-fluid {
    padding-top: 0;
    margin-top: 0;
}

.reportes-main-content .container-fluid .row {
    margin-top: 0;
}

.reportes-main-content .d-flex.justify-content-between {
    margin-bottom: 12px;
}

/* Tab content */
.tab-content {
    padding-top: 15px;
}

.tab-pane {
    padding: 0;
    margin-top: 0;
}

/* NUEVO SISTEMA DE PESTAÃAS PARA REPORTES */
.reporte-tabs-container {
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.reporte-tabs-nav {
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reporte-tabs-nav::-webkit-scrollbar {
    display: none;
}

.reporte-tab-btn {
    flex: 1;
    min-width: 180px;
    padding: 20px 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.reporte-tab-btn:last-child {
    border-right: none;
}

.reporte-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.reporte-tab-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.reporte-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: white;
}

.tab-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.tab-content-wrapper {
    text-align: center;
}

.tab-title {
    font-weight: 600;
    font-size: 14px;
    display: block;
    line-height: 1.2;
}

.tab-description {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.2;
    margin-top: 2px;
    display: block;
}

.reporte-tab-content {
    background: #f8fafc;
    min-height: 400px;
}

/* ===== SOLUCIÓN DEFINITIVA AL PROBLEMA DE Z-INDEX ===== */


#reporte-tabContent .tab-pane.active {
    position: relative !important;
    z-index: 1300 !important;
    background: white !important;
    padding: 20px !important;
    min-height: 200px !important;
}

/* Asegurar que el main-content tenga el margen correcto */
.dashboard-layout .main-content {
    margin-left: 280px !important;
    position: relative !important;
    z-index: 1000 !important;
}

.reporte-tab-panel {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.reporte-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive para pestañas */
@media (max-width: 768px) {
    .reporte-tabs-nav {
        flex-direction: column;
    }

    .reporte-tab-btn {
        min-width: auto;
        flex-direction: row;
        text-align: left;
        padding: 15px 20px;
        gap: 15px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .reporte-tab-btn:last-child {
        border-bottom: none;
    }

    .tab-icon {
        font-size: 20px;
        margin-bottom: 0;
    }

    .tab-content-wrapper {
        text-align: left;
        flex: 1;
    }

    .tab-description {
        display: none;
    }

    .reporte-tab-panel {
        padding: 20px;
    }
}


/* ======================================================================= */
/* ESTILOS PARA REPORTE PDF DE BALSA SALVAVIDAS                            */
/* ======================================================================= */

body.pedido-pdf {
    background: #ffffff;
    color: #222222;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 9.2px;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.reporte-title h1 {
    font-size: 13px;
}

.reporte-info {
    font-size: 8px;
}

.tabla-hoja {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 8px;
}

.tabla-hoja th,
.tabla-hoja td {
    border: 0.4px solid #2f2f2f;
    padding: 2.2px 3.2px;
    text-align: center;
    vertical-align: middle;
    word-break: break-word;
}

.tabla-hoja .fila-seccion th {
    background: #dcdcdc;
    font-size: 8.4px;
    font-weight: 700;
    text-transform: uppercase;
}

.tabla-sub {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 7.8px;
}

.tabla-sub th,
.tabla-sub td {
    border: 0.4px solid #2f2f2f;
    padding: 1.8px 2.4px;
    text-align: center;
    vertical-align: middle;
}

.checkbox {
    width: 10px;
    height: 10px;
    font-size: 7.2px;
}

.campo-texto {
    min-height: 46px;
    padding: 4px 5px;
}

.firma-linea {
    min-height: 18px;
    padding-top: 4px;
    font-size: 7.4px;
}

/* ======================================================================= */
/* ESTILOS PARA TRAJES DE INMERSIÓN                                        */
/* ======================================================================= */

/* Estadísticas */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filtros */
.filters-section {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.filters-form {
    width: 100%;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

.filter-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: end;
}

/* Formularios de trajes */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid #e9ecef;
}

.form-container {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.traje-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

.form-label.required::after {
    content: " *";
    color: var(--danger-color);
}

.form-text {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: var(--spacing-xs);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    padding-top: var(--spacing-lg);
    border-top: 1px solid #e9ecef;
}

/* Detalles de trajes */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid #e9ecef;
}

.detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

.detail-card {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
}

.detail-section {
    margin-bottom: var(--spacing-xl);
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid #e9ecef;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

/* ======================================================================= */
/* ESTILOS PARA TARJETAS DE TRAJES                                        */
/* ======================================================================= */

.trajes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.traje-card {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.traje-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.traje-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid #e9ecef;
}

.traje-header h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.traje-info {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.traje-info .marca {
    font-weight: 500;
    color: var(--dark-color);
}

.traje-info .modelo {
    font-style: italic;
}

.traje-details {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid #f8f9fa;
}

.traje-details .detail-item {
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

.traje-details .detail-item label {
    font-weight: 500;
    color: var(--dark-color);
    margin-right: var(--spacing-xs);
}

.no-data {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--secondary-color);
    font-style: italic;
}

/* Responsive para tarjetas de trajes */
@media (max-width: 768px) {
    .trajes-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .traje-card {
        padding: var(--spacing-md);
    }

    .traje-info {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* ============================================================================
   ESTILOS PARA SISTEMA DE AUTENTICACIÓN Y GESTIÓN DE USUARIOS
   ============================================================================ */

/* Página de Login */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    animation: slideInUp 0.5s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header h1 i {
    color: #667eea;
    margin-right: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.login-form .form-label i {
    color: #667eea;
    margin-right: 8px;
}

.login-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-form .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.login-form .form-check-input {
    margin-right: 8px;
}

.login-form .btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Estilos para módulos de permisos */
.permiso-module {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.permiso-module h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
}

.permiso-module h6 i {
    color: #667eea;
    margin-right: 8px;
}

.permiso-module .form-check {
    margin-bottom: 10px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.permiso-module .form-check:hover {
    background: #f0f0f0;
}

.permiso-module-section {
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.permiso-module-section h4 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.permiso-module-section h4 i {
    color: #667eea;
    margin-right: 10px;
}

/* Estilos para badges de roles y permisos */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #333;
}

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

/* Estilos para formularios de usuarios/roles */
.certificado-edit-form .form-sections-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .certificado-edit-form .form-sections-container {
        grid-template-columns: 1fr;
    }
}

.certificado-edit-form .form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.certificado-edit-form .form-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.certificado-edit-form .form-section-header i {
    color: #667eea;
    font-size: 18px;
    margin-right: 10px;
}

.certificado-edit-form .form-section-header h5 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.certificado-edit-form .form-section-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.certificado-edit-form .form-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.certificado-edit-form .form-label i {
    color: #667eea;
    margin-right: 8px;
    width: 18px;
}

.certificado-edit-form .form-label.required::after {
    content: '*';
    color: #dc3545;
    margin-left: 5px;
}

.certificado-edit-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.certificado-edit-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.certificado-edit-form .form-check {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.certificado-edit-form .form-check:hover {
    background: #f0f0f0;
}

.certificado-edit-form .form-check-input {
    margin-top: 4px;
    margin-right: 10px;
}

.certificado-edit-form .form-check-label {
    flex: 1;
    cursor: pointer;
}

.certificado-edit-form .form-check-label small {
    display: block;
    margin-top: 4px;
}

.certificado-edit-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-save {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Filtros de auditoría */
.filters-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filters-form .row {
    margin: 0;
}

.filters-form .form-group {
    margin-bottom: 0;
}

.filters-form label {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 5px;
    color: #333;
}

.filters-form .form-control,
.filters-form select,
.filters-form input[type="date"],
.filter-select {
    background-color: #eaf4ff;
    border: 1px solid #4a6cf7;
    color: #1f2a44;
}

/* Responsive para login */
@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 24px;
    }
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE MEJORADO PARA REPORTES DE SERVICIO BALSAS
   Template: edit.html - Reportes de Servicio Balsas
   ============================================ */

/* Responsivo para tablets (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Sistema de pestañas - Grid 2x4 en tablet */
    .reporte-tabs-system {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }

    .reporte-tabs-system .tabs-nav-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
        background: #e5e7eb;
    }

    .reporte-tabs-system .tab-nav-btn {
        padding: 16px 12px;
        min-height: 95px;
        gap: 6px;
    }

    .reporte-tabs-system .tab-nav-btn i {
        font-size: 18px;
    }

    .reporte-tabs-system .tab-nav-label {
        font-size: 11px;
        line-height: 1.3;
    }

    .reporte-tabs-system .tab-nav-desc {
        font-size: 9px;
        line-height: 1.2;
    }

    /* Progress header */
    .tabs-progress-header {
        padding: 16px 20px;
    }

    .progress-text {
        font-size: 13px;
    }

    .progress-track {
        height: 7px;
    }

    /* Paneles de pestañas */
    .reporte-tab-panel {
        padding: 24px 20px;
        min-height: auto;
    }

    .reporte-tab-panel .form-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .reporte-tab-panel .form-section-title {
        font-size: 17px;
        padding-bottom: 14px;
        margin-bottom: 18px;
    }

    .reporte-tab-panel .form-section-title i {
        font-size: 18px;
    }

    /* Formularios - 2 columnas en tablet, con mejor espaciado */
    .report-form .form-row {
        gap: 16px;
        margin-bottom: 18px;
    }

    .report-form .form-col {
        min-width: calc(50% - 8px);
        flex: 0 0 calc(50% - 8px);
    }

    .report-form .form-col-wide {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .report-form .form-col-narrow {
        min-width: calc(50% - 8px);
        flex: 0 0 calc(50% - 8px);
    }

    /* Card header responsive */
    .card-header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 20px;
    }

    .card-header .card-title {
        flex: 1 1 100%;
        margin-bottom: 8px;
        font-size: 20px;
    }

    .header-actions {
        width: 100%;
        display: flex;
        gap: 10px;
        justify-content: flex-start;
    }

    .header-actions .button {
        flex: 0 1 auto;
        min-width: 140px;
        padding: 10px 16px;
        font-size: 14px;
    }

    /* Botones de navegación */
    .d-flex.justify-content-between {
        flex-direction: row;
        gap: 12px;
    }

    .d-flex.justify-content-between .btn {
        flex: 1;
        min-width: 0;
    }

    /* Tablas responsive con mejor scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px;
        padding: 0 20px;
    }

    .table-responsive table {
        min-width: 650px;
        font-size: 0.875rem;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 8px 10px;
        white-space: nowrap;
    }

    /* Alertas */
    .alert {
        padding: 14px 18px;
        font-size: 0.9rem;
    }

    .alert h6 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .alert ul {
        padding-left: 22px;
        margin: 10px 0;
    }

    /* Modales responsive */
    .modal-dialog {
        max-width: 90%;
        margin: 20px auto;
    }
}

/* Mejoras adicionales para móviles (hasta 768px) */
@media (max-width: 768px) {

    /* Sistema de pestañas - Grid 2x4 en mobile */
    .reporte-tabs-system {
        position: relative;
        top: 0;
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .reporte-tabs-system .tabs-nav-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }

    .reporte-tabs-system .tab-nav-btn {
        padding: 14px 10px;
        min-height: 85px;
        gap: 5px;
    }

    .reporte-tabs-system .tab-nav-btn i {
        font-size: 16px;
    }

    .reporte-tabs-system .tab-nav-label {
        font-size: 11px;
        line-height: 1.2;
    }

    .reporte-tabs-system .tab-nav-desc {
        font-size: 9px;
        line-height: 1.1;
    }

    /* Progress header */
    .tabs-progress-header {
        padding: 14px 16px;
    }

    .progress-text {
        font-size: 12px;
    }

    .progress-track {
        height: 6px;
        margin-bottom: 10px;
    }

    /* Paneles de pestañas */
    .reporte-tab-panel {
        padding: 18px 16px;
        min-height: auto;
    }

    .reporte-tab-panel .form-section {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .reporte-tab-panel .form-section-title {
        font-size: 16px;
        padding-bottom: 12px;
        margin-bottom: 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .reporte-tab-panel .form-section-title i {
        font-size: 16px;
    }

    /* Formularios - 1 columna en móvil */
    .report-form .form-row {
        gap: 14px;
        margin-bottom: 16px;
    }

    .report-form .form-col {
        min-width: 100% !important;
        flex: none !important;
    }

    .report-form .form-col-wide {
        min-width: 100% !important;
        flex: none !important;
    }

    .report-form .form-col-narrow {
        min-width: 100% !important;
        flex: none !important;
    }

    /* Card header apilado */
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    .card-header .card-title {
        width: 100%;
        margin-bottom: 0;
        font-size: 18px;
    }

    .header-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .header-actions .button {
        width: 100%;
        flex: none;
        text-align: center;
        padding: 12px 16px;
        font-size: 14px;
    }

    /* Botones de navegación apilados */
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }

    .d-flex.justify-content-between .btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    /* Tablas con scroll horizontal mejorado */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
        border-radius: 0;
    }

    .table-responsive table {
        min-width: 550px;
        font-size: 0.8rem;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 6px 8px;
        white-space: nowrap;
    }

    .table-responsive th {
        font-size: 0.75rem;
    }

    /* Alertas más compactas */
    .alert {
        padding: 12px 14px;
        font-size: 0.875rem;
        border-radius: 6px;
    }

    .alert h6 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .alert ul {
        padding-left: 20px;
        margin: 8px 0;
        font-size: 0.85rem;
    }

    .alert ul li {
        margin-bottom: 4px;
    }

    /* Form controls */
    .form-control {
        font-size: 14px;
        padding: 10px 12px;
    }

    .form-label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    /* Modales responsive */
    .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }

    .modal-content {
        border-radius: 8px;
    }

    .modal-header {
        padding: 14px 16px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

/* Mejoras adicionales para móviles pequeños (hasta 480px) */
@media (max-width: 480px) {

    /* Sistema de pestañas - 1 columna en mobile pequeño */
    .reporte-tabs-system .tabs-nav-container {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .reporte-tabs-system .tab-nav-btn {
        padding: 12px 10px;
        min-height: 75px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 12px;
    }

    .reporte-tabs-system .tab-nav-btn i {
        font-size: 18px;
        flex-shrink: 0;
    }

    .reporte-tabs-system .tab-nav-label {
        font-size: 13px;
        flex: 1;
    }

    .reporte-tabs-system .tab-nav-desc {
        display: none;
    }

    /* Progress header más compacto */
    .tabs-progress-header {
        padding: 12px 14px;
    }

    .progress-text {
        font-size: 11px;
    }

    .progress-track {
        height: 5px;
        margin-bottom: 8px;
    }

    /* Paneles más compactos */
    .reporte-tab-panel {
        padding: 14px 12px;
    }

    .reporte-tab-panel .form-section {
        padding: 14px;
        margin-bottom: 14px;
    }

    .reporte-tab-panel .form-section-title {
        font-size: 15px;
        padding-bottom: 10px;
        margin-bottom: 14px;
    }

    .reporte-tab-panel .form-section-title i {
        font-size: 15px;
    }

    /* Formularios más compactos */
    .report-form .form-row {
        gap: 12px;
        margin-bottom: 14px;
    }

    /* Card header más compacto */
    .card-header {
        padding: 12px 14px;
    }

    .card-header .card-title {
        font-size: 16px;
    }

    .header-actions .button {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Tablas más compactas */
    .table-responsive {
        margin: 0 -12px;
        padding: 0 12px;
    }

    .table-responsive table {
        min-width: 480px;
        font-size: 0.75rem;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 5px 6px;
    }

    .table-responsive th {
        font-size: 0.7rem;
    }

    /* Alertas más compactas */
    .alert {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .alert h6 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .alert ul {
        padding-left: 18px;
        margin: 6px 0;
        font-size: 0.8rem;
    }

    /* Botones más compactos */
    .btn {
        padding: 10px 14px;
        font-size: 0.875rem;
    }

    .btn i {
        font-size: 0.875rem;
    }

    .d-flex.justify-content-between .btn {
        padding: 10px 14px;
    }

    /* Form controls más compactos */
    .form-control {
        font-size: 13px;
        padding: 8px 10px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 5px;
    }

    /* Modales más compactos */
    .modal-dialog {
        max-width: 98%;
        margin: 5px auto;
    }

    .modal-header {
        padding: 12px 14px;
    }

    .modal-body {
        padding: 14px;
    }

    .modal-footer {
        padding: 10px 14px;
    }
}

/* ============================================
   ESTILOS RESPONSIVE ADICIONALES PARA ELEMENTOS BOOTSTRAP
   ============================================ */

/* Responsive para elementos Bootstrap row/col en reportes */
@media (max-width: 1024px) {

    /* Modales grandes en tablet */
    .modal-xl {
        max-width: 95%;
    }

    .modal-lg {
        max-width: 90%;
    }
}

@media (max-width: 768px) {

    /* Filas de Bootstrap - apilar columnas en mobile */
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }

    .row>[class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
        margin-bottom: 12px;
    }

    /* Columnas Bootstrap - full width en mobile */
    .col-md-1,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9,
    .col-md-10,
    .col-md-11,
    .col-md-12 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Modales */
    .modal-xl {
        max-width: 98%;
    }

    .modal-lg {
        max-width: 98%;
    }

    .modal-dialog {
        margin: 10px auto;
    }

    /* Botones pequeños en mobile */
    .btn-sm {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Espaciado mb-3 en mobile */
    .mb-3 {
        margin-bottom: 1rem !important;
    }

    /* Texto centrado en mobile */
    .text-center {
        text-align: center !important;
    }
}

@media (max-width: 480px) {

    /* Modales extra pequeños */
    .modal-xl {
        max-width: 100%;
        margin: 0;
    }

    .modal-lg {
        max-width: 100%;
        margin: 0;
    }

    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }

    .modal-content {
        height: 100%;
        border-radius: 0;
    }

    .modal-body {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    /* Filas más compactas */
    .row {
        margin-left: -6px;
        margin-right: -6px;
    }

    .row>[class*="col-"] {
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 10px;
    }

    /* Botones más pequeños */
    .btn-sm {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    /* Espaciado reducido */
    .mb-3 {
        margin-bottom: 0.75rem !important;
    }
}

/* ============================================================================
   TARJETAS DE CILINDROS CO2 - DISEÑO MODERNO
   ============================================================================ */

/* Contenedor principal de tarjetas */
.cilindros-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

/* Placeholder cuando no hay cilindros */
.cilindros-placeholder,
.cilindros-loading,
.cilindros-error {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    text-align: center;
}

.cilindros-placeholder .placeholder-icon,
.cilindros-loading i,
.cilindros-error i {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.cilindros-loading i {
    color: #6366f1;
    animation: spin 1s linear infinite;
}

.cilindros-error i {
    color: #ef4444;
}

.cilindros-placeholder p,
.cilindros-loading p,
.cilindros-error p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

.cilindros-error p {
    color: #dc2626;
}

/* Tarjeta de cilindro */
.cilindro-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cilindro-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Estados de resultado */
.cilindro-card.resultado-ok {
    border-left: 4px solid #10b981;
}

.cilindro-card.resultado-rec {
    border-left: 4px solid #f59e0b;
}

.cilindro-card.resultado-rep {
    border-left: 4px solid #ef4444;
}

/* Encabezado de la tarjeta */
.cilindro-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cilindro-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cilindro-numero {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cilindro-numero i {
    font-size: 16px;
    opacity: 0.9;
}

.cilindro-marca {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.cilindro-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Badges de estado PH */
.cilindro-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cilindro-badge.badge-ok {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cilindro-badge.badge-proximo {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.cilindro-badge.badge-vencido {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Botón quitar cilindro */
.btn-quitar-cilindro {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-quitar-cilindro:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: scale(1.1);
}

/* Cuerpo de la tarjeta */
.cilindro-card-body {
    padding: 20px;
}

/* Grid de información técnica */
.cilindro-info-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.cilindro-info-item {
    text-align: center;
    padding: 12px 8px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.cilindro-info-item:hover {
    background: #f1f5f9;
    transform: scale(1.02);
}

.info-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.info-value.highlight-co2 {
    color: #6366f1;
}

.info-value.estado-ok {
    color: #10b981;
}

.info-value.estado-proximo {
    color: #f59e0b;
}

.info-value.estado-vencido {
    color: #ef4444;
}

/* Sección de tareas */
.cilindro-tareas {
    margin-bottom: 16px;
}

.tareas-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tareas-title i {
    color: #6366f1;
    font-size: 14px;
}

.tareas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.tarea-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tarea-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tarea-input,
.tarea-select {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.2s ease;
    width: 100%;
}

.tarea-input:focus,
.tarea-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.tarea-input::placeholder {
    color: #94a3b8;
}

.tarea-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
}

/* Select de resultado con colores */
.resultado-select option[value="OK"] {
    color: #10b981;
}

.resultado-select option[value="REC"] {
    color: #f59e0b;
}

.resultado-select option[value="REP"] {
    color: #ef4444;
}

/* Observaciones */
.cilindro-observaciones {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.observaciones-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.observaciones-label i {
    color: #6366f1;
    margin-right: 6px;
}

.observaciones-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.observaciones-input:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.observaciones-input::placeholder {
    color: #94a3b8;
}

/* Responsive para tarjetas de cilindros */
@media (max-width: 1200px) {
    .cilindros-cards-container {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 16px;
    }

    .cilindro-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tareas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cilindros-cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cilindro-card-header {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cilindro-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .cilindro-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tareas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cilindro-card-body {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .cilindro-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tareas-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tarea-input,
    .tarea-select {
        padding: 8px 10px;
        font-size: 13px;
    }

    .cilindro-numero {
        font-size: 16px;
    }

    .info-value {
        font-size: 14px;
    }
}

/* ============================================================================
   ESTILOS PARA SECCIÓN PARCHES Y LAVADO - REPORTES DE BALSAS
   ============================================================================ */

/* Contenedor principal */
.parches-lavado-container {
    max-width: 600px;
    margin: 0;
}

/* Grid principal */
.parches-lavado-grid {
    display: flex;
    gap: 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* Sección de parches */
.parches-section {
    flex: 2;
    display: flex;
    border-right: 1px solid #dee2e6;
}

/* Sección de lavado */
.lavado-section {
    flex: 1;
    display: flex;
    min-width: 160px;
}

/* Headers de sección */
.parches-section .section-header,
.lavado-section .section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    min-width: 40px;
}

/* Campos de parches */
.parches-fields {
    display: flex;
    flex: 1;
}

.parche-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dee2e6;
}

.parche-field:last-child {
    border-right: none;
}

.parche-field .field-label {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    margin: 0;
}

.parche-field input[type="number"] {
    border: none;
    border-radius: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    padding: 12px;
    height: auto;
}

.parche-field input[type="number"]:focus {
    box-shadow: inset 0 0 0 2px #667eea;
    outline: none;
}

/* Opciones de lavado */
.lavado-options {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lavado-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #dee2e6;
    margin: 0;
}

.lavado-option:last-child {
    border-bottom: none;
}

.lavado-option:hover {
    background: #f8f9fa;
}

.lavado-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
    margin: 0;
}

.lavado-option .option-label {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

.lavado-option input[type="radio"]:checked + .option-label {
    color: #667eea;
}

/* Responsive para sección parches y lavado */
@media (max-width: 768px) {
    .parches-lavado-container {
        max-width: 100%;
    }

    .parches-lavado-grid {
        flex-direction: column;
    }

    .parches-section {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .parches-section .section-header,
    .lavado-section .section-header {
        writing-mode: horizontal-tb;
        transform: none;
        min-width: auto;
        padding: 12px 16px;
    }

    .lavado-section {
        min-width: auto;
    }

    .lavado-options {
        flex-direction: row;
    }

    .lavado-option {
        border-bottom: none;
        border-right: 1px solid #dee2e6;
    }

    .lavado-option:last-child {
        border-right: none;
    }
}