/* ==================== CONFIGURACIÓN GLOBAL Y RESET ==================== */
/* Resetea márgenes y paddings, y establece box-sizing para todos los elementos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos base del body */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* ==================== VARIABLES CSS ==================== */
/* Define los colores y valores reutilizables del sistema */
:root {
    /* Colores principales */
    --primary-green: #28a745;
    --primary-blue: #007bff;
    --primary-red: #dc3545;
    --primary-purple: #6f42c1;
    --primary-orange: #fd7e14;

    /* Colores de fondo y texto */
    --dark-bg: #212529;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray-light: #6c757d;
    --gray-border: #dee2e6;

    /* Sombras */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Contenedor principal con layout flex */
.container {
    display: flex;
    min-height: 100vh;
}

/* ==================== BARRA LATERAL DE NAVEGACIÓN ==================== */
/* Sidebar fija con scroll vertical */
.sidebar {
    background-color: var(--dark-bg);
    color: var(--white);
    width: 280px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
    flex-shrink: 0;
}

/* Encabezado del sidebar con logo y nombre */
.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header .logo {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.sidebar-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.sidebar-header p {
    font-size: 0.9rem;
    color: var(--gray-light);
    font-weight: 300;
}

/* Menú de navegación */
.sidebar-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-green);
}

.sidebar-nav li.active a {
    background-color: var(--primary-green);
}

.sidebar-nav i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* ==================== CONTENIDO PRINCIPAL ==================== */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

.content-wrapper {
    width: 100%;
    max-width: 1400px;
    padding: 2rem;
}

/* Botón de menú móvil (oculto en desktop) */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
}

/* Overlay oscuro para menú móvil */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== ENCABEZADO SUPERIOR ==================== */
.main-header {
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.header-text p {
    font-size: 1rem;
    color: var(--gray-light);
}

/* Información del usuario */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Indicador de estado online con animación */
.status-indicator {
    width: 12px;
    height: 12px;
    background-color: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-weight: 600;
    color: var(--dark-bg);
}

/* Botón de cerrar sesión */
.btn-logout {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-logout:hover {
    color: var(--primary-red);
}

/* ==================== TARJETAS DE RESUMEN ==================== */
/* Grid responsivo para tarjetas del dashboard */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Estilos base de tarjetas */
.card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Colores de borde según tipo de tarjeta */
.card.total-cash {
    border-left-color: var(--primary-green);
}

.card.monthly-income {
    border-left-color: var(--primary-blue);
}

.card.monthly-expenses {
    border-left-color: var(--primary-orange);
}

.card.donations {
    border-left-color: var(--primary-purple);
}

/* Iconos de las tarjetas */
.card-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.card.total-cash .card-icon {
    color: var(--primary-green);
}

.card.monthly-income .card-icon {
    color: var(--primary-blue);
}

.card.monthly-expenses .card-icon {
    color: var(--primary-orange);
}

.card.donations .card-icon {
    color: var(--primary-purple);
}

/* Contenido de las tarjetas */
.card-content {
    flex: 1;
}

.card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.card .change,
.card .details {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card .change.positive {
    color: var(--primary-green);
}

.card .details {
    color: var(--gray-light);
}

/* ==================== GRÁFICOS (CHART.JS) ==================== */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

.chart-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.chart-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

canvas {
    max-width: 100%;
}

/* ==================== TABLAS ==================== */
.recent-transactions,
.list-container {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.recent-transactions h3,
.list-container h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
}

/* Contenedor con scroll horizontal para móviles */
.table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-border);
}

th {
    font-weight: 600;
    color: var(--gray-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    color: var(--dark-bg);
    vertical-align: middle;
}

/* Etiquetas de tipo de transacción */
.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tag.ingreso {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--primary-green);
}

.tag.egreso {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--primary-red);
}

.tag.donacion {
    background-color: rgba(111, 66, 193, 0.1);
    color: var(--primary-purple);
}

/* Estilos de montos */
.amount-positive {
    color: var(--primary-green);
    font-weight: 600;
}

.amount-negative {
    color: var(--primary-red);
    font-weight: 600;
}

/* Indicadores de estado */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.ingreso,
.status-dot.donacion {
    background-color: var(--primary-green);
}

.status-dot.egreso {
    background-color: var(--primary-red);
}

/* ==================== BOTONES Y ACCIONES ==================== */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Botón base */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--white);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Variantes de botones */
.btn-primary {
    background-color: var(--primary-blue);
}

.btn-secondary {
    background-color: var(--gray-light);
}

.btn-pdf {
    background-color: #e74c3c;
}

.btn-excel {
    background-color: #1D6F42;
}

.btn-success {
    background-color: var(--primary-green);
}

/* Botones deshabilitados */
button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.7;
}

button:disabled:hover {
    transform: none;
    box-shadow: var(--shadow);
}

/* Botones de icono (editar/eliminar) */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    color: var(--gray-light);
    transition: color 0.3s ease;
}

.btn-icon.btn-edit:hover {
    color: var(--primary-blue);
}

.btn-icon.btn-delete:hover {
    color: var(--primary-red);
}

/* ==================== NAVEGACIÓN ENTRE SECCIONES ==================== */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== FORMULARIOS ==================== */
.form-container,
.user-list,
.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.form-container h3,
.user-list h3,
.modal-content h2,
.modal-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-content h3 {
    font-size: 1rem;
    color: var(--gray-light);
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-light);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.form-group input[disabled] {
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}

/* Divisor de formularios */
.form-divider {
    border: 0;
    height: 1px;
    background-color: var(--gray-border);
    margin: 2rem 0;
}

/* ==================== MODALES ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from {
        background-color: rgba(0, 0, 0, 0);
    }

    to {
        background-color: rgba(0, 0, 0, 0.6);
    }
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
}

/* Botón de cerrar modal */
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

/* ==================== SECCIÓN DE REPORTES ==================== */
/* Filtros de reportes */
.report-filters {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.5rem;
}

.report-filters .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

/* Acciones del reporte (imprimir, exportar) */
.report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Placeholder cuando no hay reporte generado */
#report-placeholder {
    text-align: center;
    padding: 4rem 1rem;
    background-color: var(--white);
    border-radius: 12px;
    border: 2px dashed var(--gray-border);
    color: var(--gray-light);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ==================== SECCIÓN DE CONFIGURACIÓN ==================== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.settings-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.settings-card.full-width {
    grid-column: 1 / -1;
}

.settings-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-border);
}

.settings-card .form-group {
    margin-bottom: 1rem;
}

.settings-card .form-group:last-child {
    margin-bottom: 0;
}

.card-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Selector de tema (claro/oscuro/automático) */
.theme-switcher {
    display: flex;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    overflow: hidden;
}

.theme-switcher button {
    flex: 1;
    padding: 0.6rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-light);
    transition: all 0.2s ease;
}

.theme-switcher button:not(:last-child) {
    border-right: 1px solid var(--gray-border);
}

.theme-switcher button.active {
    background-color: var(--primary-green);
    color: var(--white);
}

.theme-switcher button:hover:not(.active) {
    background-color: #f0f0f0;
}

.card-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.settings-save-actions {
    margin-top: 2rem;
    text-align: right;
}

/* ==================== OVERLAY DE CARGA ==================== */
/* Se muestra durante exportaciones de datos */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 1.2rem;
}

#loading-overlay.visible {
    display: flex;
}

/* Spinner animado */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--primary-green);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==================== CONTRASEÑAS CON VER/OCULTAR ==================== */
.password-wrapper {
    position: relative;
}

.password-wrapper .toggle-password-visibility {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray-light);
    transition: color 0.2s ease;
}

.password-wrapper .toggle-password-visibility:hover {
    color: var(--primary-blue);
}

/* ==================== SISTEMA DE NOTIFICACIONES ==================== */
/* Contenedor de notificaciones (esquina superior derecha) */
#notification-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Notificación individual */
.notification {
    background-color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid;
}

/* Tipos de notificación */
.notification.success {
    border-left-color: var(--primary-green);
}

.notification.error {
    border-left-color: var(--primary-red);
}

/* Iconos de notificación */
.notification-icon {
    font-size: 1.5rem;
}

.notification.success .notification-icon {
    color: var(--primary-green);
}

.notification.error .notification-icon {
    color: var(--primary-red);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.9rem;
    color: var(--gray-light);
}

/* Botón cerrar notificación */
.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray-light);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: var(--dark-bg);
}

/* Animaciones de notificaciones */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification.slide-out {
    animation: slideOut 0.3s ease forwards;
}

/* ==================== TEMA OSCURO ==================== */
/* Estilos cuando el tema oscuro está activo */
body.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-theme .sidebar {
    background-color: #111;
}

body.dark-theme .header-text h2,
body.dark-theme .header-text p,
body.dark-theme .user-name {
    color: #f5f5f5;
}

body.dark-theme .card,
body.dark-theme .settings-card,
body.dark-theme .form-container,
body.dark-theme .list-container,
body.dark-theme .chart-card,
body.dark-theme .modal-content,
body.dark-theme .recent-transactions,
body.dark-theme .user-list,
body.dark-theme .report-filters,
body.dark-theme #report-placeholder {
    background-color: #2b2b2b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-theme .card h3,
body.dark-theme .settings-card h3,
body.dark-theme .chart-card h3,
body.dark-theme .recent-transactions h3,
body.dark-theme .list-container h3,
body.dark-theme th {
    color: var(--gray-light);
}

body.dark-theme .card .amount,
body.dark-theme .settings-card h3,
body.dark-theme td,
body.dark-theme .form-group label {
    color: #e0e0e0;
}

body.dark-theme th,
body.dark-theme td {
    border-bottom: 1px solid #444;
}

body.dark-theme .form-group input,
body.dark-theme .form-group select {
    background-color: #3c3c3c;
    color: #f5f5f5;
    border-color: #555;
}

body.dark-theme .form-group input[disabled] {
    background-color: #505050;
}

.btn-icon.btn-edit,
.btn-icon.btn-delete {
    color: #8e8e8e;
}

body.dark-theme .theme-switcher {
    border-color: #555;
}

body.dark-theme .theme-switcher button:not(:last-child) {
    border-right-color: #555;
}

body.dark-theme .theme-switcher button:hover:not(.active) {
    background-color: #444;
}

body.dark-theme #report-placeholder {
    color: var(--gray-light);
    border-color: #444;
}

body.dark-theme .notification {
    background-color: #2b2b2b;
}

body.dark-theme .notification-title {
    color: #e0e0e0;
}

/* ==================== DISEÑO RESPONSIVO ==================== */
/* Tablets y pantallas medianas */
@media (max-width: 992px) {

    /* Sidebar se oculta y se convierte en menú móvil */
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Muestra el botón de menú móvil */
    .mobile-menu-toggle {
        display: block;
    }

    /* Gráficos apilados verticalmente */
    .charts-section {
        grid-template-columns: 1fr;
    }

    .main-content {
        width: 100%;
        min-width: 0;
    }

    /* Configuración en una columna */
    .settings-grid,
    .card-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Móviles y pantallas pequeñas */
@media (max-width: 768px) {

    /* Ajuste de padding con espacio para botón de menú */
    .content-wrapper {
        padding: 1rem;
        padding-top: 5rem;
    }

    /* Header apilado verticalmente */
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-info {
        align-self: flex-end;
    }

    /* Tarjetas en una columna */
    .summary-cards {
        grid-template-columns: 1fr;
    }

    /* Filtros de reportes apilados */
    .report-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .report-filters .btn {
        width: 100%;
        justify-content: center;
    }

    /* Notificaciones ocupan todo el ancho */
    #notification-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .notification {
        min-width: auto;
        width: 100%;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {

    /* Tarjetas verticales con texto centrado */
    .card {
        flex-direction: column;
        text-align: center;
    }

    .card .amount {
        font-size: 1.5rem;
    }

    .header-text h2 {
        font-size: 1.5rem;
    }

    /* Botones apilados verticalmente */
    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .report-actions {
        flex-direction: column;
    }
}

/* ==================== ESTILOS PARA IMPRESIÓN ==================== */
/* Optimiza la vista al imprimir reportes */
@media print {

    /* Oculta elementos innecesarios al imprimir */
    body>.container>.sidebar,
    body>.container>.main-content .main-header,
    .page-section:not(#reportes-section),
    .report-filters,
    .report-actions,
    .modal {
        display: none !important;
    }

    /* Ajusta el contenido para impresión */
    .container,
    .main-content,
    .content-wrapper,
    #reportes-section {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    #report-content {
        display: block !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Evita que las tarjetas se corten entre páginas */
    .card {
        page-break-inside: avoid;
    }
}