@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Estilos para las pestañas del formulario */
.gfn-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem 0.375rem 0 0;
}

.gfn-tab {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    margin: 0;
    cursor: pointer;
    font-size: 0.875rem;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.gfn-tab:hover {
    color: #495057;
    background-color: #e9ecef;
}

.gfn-tab.active {
    color: #007bff;
    background-color: white;
    border-bottom-color: #007bff;
    font-weight: 500;
}

.gfn-tab-content {
    background-color: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    padding: 1.5rem;
    min-height: 400px;
}

.gfn-form-section {
    margin-bottom: 2rem;
}

.gfn-form-section h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.gfn-wizard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin: 0;
    max-width: none;
}

.gfn-wizard-grid div {
    display: flex;
    flex-direction: column;
    min-height: 80px;
}

.gfn-wizard-grid label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.3;
}

.gfn-wizard-grid small {
    color: #6c757d;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-style: italic;
    line-height: 1.2;
    max-width: 100%;
}

.form-gfn {
    padding: 0.625rem 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

.form-gfn:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.gfn-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #dee2e6;
    margin-top: 1rem;
}

/* .btn-gfn ahora usa el sistema unificado más abajo */

/* Estilos para los filtros */
.gfn-dashboard-kpi-filter {
    display: flex;
    align-items: center;
}

.gfn-dashboard-kpi-year-filter {
    display: flex;
    align-items: center;
}

.form-gfn-small {
    padding: 0.75rem 1rem !important;
    border: 2px solid #17a2b8 !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    background: white !important;
    min-width: 140px !important;
    color: #17a2b8 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.1) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317a2b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding-right: 35px !important;
}

.form-gfn-small:hover {
    border-color: #138496 !important;
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.2) !important;
    background: #f8f9fa !important;
}

.form-gfn-small:focus {
    border-color: #138496 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.25) !important;
    background: white !important;
}

/* Mejorar el ancho de las tarjetas del dashboard */
.gfn-dashboard-card {
    width: 100%;
    min-width: 300px;
    max-width: 100%;
    box-sizing: border-box;
}

.gfn-dashboard-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gfn-dashboard-card-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
    width: 100%;
}

.gfn-dashboard-card-meta span {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.gfn-dashboard-card-meta b {
    color: #495057;
    font-weight: 600;
}

/* Mejorar el layout de los KPIs */
.gfn-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0 1.5rem 0;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
}

.gfn-dashboard-kpi {
    background: linear-gradient(145deg, #17a2b8, #138496) !important;
    color: white !important;
    padding: 1.5rem !important;
    border-radius: 16px !important;
    text-align: center !important;
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.2) !important;
    min-height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.gfn-dashboard-kpi:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(23, 162, 184, 0.3) !important;
    background: linear-gradient(145deg, #138496, #17a2b8) !important;
}

.gfn-dashboard-kpi-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gfn-dashboard-kpi-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gfn-dashboard-kpi-filter {
    margin-top: 0.5rem;
}

/* Hacer que el dashboard use todo el ancho disponible */
.gfn-dashboard {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1rem !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

.gfn-dashboard-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.gfn-dashboard-title-section {
    margin-bottom: 1.5rem;
}

.gfn-dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 2rem 0 0 2rem;
    text-align: left;
}

.gfn-dashboard-searchbar {
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.gfn-search-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
    justify-content: center;
}

.gfn-search-container .btn-gfn {
    margin-left: 1rem;
}

.gfn-dashboard-searchbar input {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
}

/* Forzar el uso completo del ancho */
.content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main {
    width: 100% !important;
    max-width: none !important;
}

.btn-gfn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-gfn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

/* Estilos para campos deshabilitados */
.form-gfn:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.8;
}

.form-gfn:disabled:focus {
    border-color: #ced4da;
    box-shadow: none;
}

/* Responsive design para diferentes tamaños de pantalla */
@media (max-width: 1200px) {
    .gfn-wizard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    
    .gfn-dashboard-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .gfn-wizard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gfn-wizard-grid div {
        min-height: auto;
    }
    
    .form-gfn {
        padding: 0.75rem 1rem;
    }
    
    .gfn-dashboard-list {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }
    
    .gfn-dashboard-card {
        min-width: auto;
    }
    
    .gfn-dashboard-title {
        font-size: 2rem;
        margin: 1rem 0 0 1rem;
    }
    
    .gfn-dashboard-kpis {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .gfn-wizard-grid {
        gap: 0.875rem;
    }
    
    .form-gfn {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .gfn-wizard-grid label {
        font-size: 0.9rem;
    }
}

/* Estilos para la tarjeta de resumen */
.gfn-summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 0.875rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.gfn-summary-card h4 {
    color: #495057;
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.375rem;
}

.gfn-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.gfn-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.625rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px solid #e9ecef;
    transition: all 0.15s ease-in-out;
}

.gfn-summary-item:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.gfn-summary-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.8rem;
}

.gfn-summary-value {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    text-align: right;
    min-width: 80px;
    display: inline-block;
}

/* Estilos para indicadores de incumplimiento en el resumen */
.gfn-summary-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.gfn-summary-warning:hover {
    background-color: #ffeaa7;
    transform: translateX(2px);
}

.gfn-summary-error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.gfn-summary-error:hover {
    background-color: #f5c6cb;
    transform: translateX(2px);
}



.gfn-summary-error .gfn-summary-value {
    color: #dc3545;
    font-weight: 700;
}

.gfn-summary-warning .gfn-summary-value {
    color: #856404;
    font-weight: 700;
}

/* Ajuste para que las tarjetas mantengan altura uniforme */
.gfn-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: white;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
    min-height: 3rem;
    box-sizing: border-box;
}

.gfn-summary-item:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.gfn-summary-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.875rem;
    flex: 1;
}

.gfn-summary-value {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    text-align: right;
    min-width: 80px;
    display: inline-block;
}

/* Animación de parpadeo para llamar atención */
@keyframes blink-warning {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

@keyframes blink-error {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.8; }
}

.gfn-summary-warning {
    animation: blink-warning 2s ease-in-out infinite;
}

.gfn-summary-error {
    animation: blink-error 1.5s ease-in-out infinite;
}

/* Efecto de sombra para resaltar */
.gfn-summary-warning,
.gfn-summary-error {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gfn-summary-warning:hover,
.gfn-summary-error:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsive para la tarjeta de resumen */
@media (max-width: 768px) {
    .gfn-summary-card {
        padding: 0.75rem;
    }
    
    .gfn-summary-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .gfn-summary-item {
        flex-direction: row;
        align-items: center;
        padding: 0.375rem 0.5rem;
    }
    
    .gfn-summary-label {
        font-size: 0.75rem;
    }
    
    .gfn-summary-value {
        font-size: 0.8rem;
    }
}

/* Estilos para indicadores de problemas en las tarjetas de volúmenes */
.gfn-dashboard-card-warning {
    border-left: 4px solid #ffc107 !important;
    background: linear-gradient(145deg, #fffbf0, #fff8e1) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15) !important;
}

.gfn-dashboard-card-warning:hover {
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.25) !important;
    transform: translateY(-2px) !important;
}

.gfn-warning-indicator {
    margin-left: 0.5rem;
    font-size: 1.2rem;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.gfn-validation-issues {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gfn-issue-tag {
    background: #ffc107;
    color: #856404;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #ffb300;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gfn-issue-tag:hover {
    background: #ffb300;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Estilo para KPI de advertencia */
.gfn-dashboard-kpi-warning {
    background: linear-gradient(145deg, #ffc107, #ffb300) !important;
    border: 2px solid #ff9800 !important;
    animation: pulse-warning-kpi 3s infinite;
}

@keyframes pulse-warning-kpi {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    }
}

/* Estilos para alerta de validación en formulario */
.gfn-validation-alert {
    background: linear-gradient(145deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.gfn-validation-alert h5 {
    color: #856404;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.gfn-validation-alert ul {
    margin: 0;
    padding-left: 1.5rem;
}

.gfn-validation-alert li {
    color: #856404;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.gfn-validation-alert strong {
    color: #d63384;
    font-weight: 700;
}

/* Estilos para los filtros */
.gfn-dashboard-filters {
    margin: 1rem 2rem !important;
}

.gfn-filters-container {
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
}

.gfn-filter-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    background: white !important;
    border: 2px solid #17a2b8 !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.1) !important;
    transition: all 0.2s ease !important;
    min-width: 180px !important;
    flex-direction: row !important;
}

.gfn-filter-item:hover {
    border-color: #138496 !important;
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.2) !important;
    transform: translateY(-1px) !important;
}

.gfn-filter-item label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #17a2b8 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.gfn-filter-item select {
    border: none !important;
    background: transparent !important;
    color: #495057 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    outline: none !important;
    min-width: 120px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317a2b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 14px !important;
    padding-right: 30px !important;
    padding-left: 8px !important;
}

.gfn-filter-item select:focus {
    color: #138496 !important;
}

/* Estilos para las opciones del dropdown */
.gfn-filter-item select option {
    background: white !important;
    color: #495057 !important;
    padding: 8px 12px !important;
    font-size: 0.875rem !important;
    border: none !important;
    cursor: pointer !important;
}

.gfn-filter-item select option:hover {
    background: #f8f9fa !important;
    color: #138496 !important;
}

.gfn-filter-item select option:checked {
    background: #17a2b8 !important;
    color: white !important;
}

/* Estilos para el dropdown cuando está abierto */
.gfn-filter-item select:focus {
    border-color: #138496 !important;
    box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.25) !important;
}

/* Estilos especiales para el filtro de problemas */
.gfn-filter-item:has(select option[value="with-problems"]) {
    border-color: #ffc107 !important;
    background: linear-gradient(145deg, #fffbf0, #fff8e1) !important;
}

.gfn-filter-item:has(select option[value="with-problems"]:checked) {
    border-color: #ff9800 !important;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3) !important;
}

.gfn-filter-item:has(select option[value="without-problems"]) {
    border-color: #28a745 !important;
    background: linear-gradient(145deg, #f0fff4, #e8f5e8) !important;
}

.gfn-filter-item:has(select option[value="without-problems"]:checked) {
    border-color: #20c997 !important;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3) !important;
}

/* ===== ESTILOS PARA NAVMENU ===== */
.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.25rem;
    color: #2c3e50 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #007bff !important;
}

.navbar-brand img {
    height: 32px;
    width: auto;
    margin-right: 0.75rem;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border-radius: 0.375rem;
    transition: box-shadow 0.15s ease-in-out;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.navbar-nav {
    margin-left: auto;
}

.nav-item {
    margin: 0 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem !important;
    color: #495057 !important;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    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.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.nav-link.active {
    color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.15);
    border-bottom: 2px solid #007bff;
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0.25rem;
    margin: 0 0.5rem;
}

.navbar-nav .dropdown-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
    transform: translateX(5px);
}

.navbar-nav .dropdown-item.active {
    background-color: #007bff;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
    
    .nav-link {
        padding: 1rem !important;
        border-radius: 0.5rem;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: rgba(0, 123, 255, 0.05);
        margin-top: 0;
        padding-left: 1rem;
    }
    
    .navbar-nav .dropdown-item {
        margin: 0;
        border-radius: 0;
        padding-left: 2rem;
    }
}

/* Animaciones para el menú */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-collapse.show {
    animation: slideInDown 0.3s ease-out;
}

/* Estilos para el indicador de página activa */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-link.active::after {
    width: 80%;
}

/* Estilos para información de sesión */
.session-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.session-user {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.session-time {
    color: #6c757d;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Estilos para advertencia de expiración de sesión */
.session-warning-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;
}

.session-warning-modal {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

.session-warning-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #dc3545;
}

.session-warning-header i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.session-warning-header h4 {
    margin: 0;
    color: #dc3545;
}

.session-warning-body {
    margin-bottom: 1.5rem;
}

.session-warning-body p {
    margin-bottom: 0.5rem;
    color: #495057;
}

.session-warning-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efectos hover mejorados */
.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Estilos para el logo y marca */
.navbar-brand {
    position: relative;
    overflow: hidden;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #28a745);
    transition: width 0.3s ease;
}

.navbar-brand:hover::after {
    width: 100%;
}

/* ===== ESTILOS PARA HOME PAGE CON DASHBOARD ===== */
.gfn-home-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Card Introductorio Prominente */
.gfn-intro-card {
    background: linear-gradient(135deg, #054447 0%, #0a6b6e 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(5, 68, 71, 0.3);
    color: white;
}

.gfn-intro-content {
    max-width: 900px;
}

.gfn-intro-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: white;
}

.gfn-intro-title i {
    font-size: 2.5rem;
    color: #b8e6e8;
}

.gfn-intro-description {
    font-size: 1.25rem;
    line-height: 1.8;
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.gfn-intro-subdescription {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.gfn-home-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.gfn-home-title-section {
    flex: 1;
    min-width: 300px;
}

.gfn-home-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gfn-home-title i {
    font-size: 2rem;
    color: #007bff;
    -webkit-text-fill-color: #007bff;
}

.gfn-home-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

.gfn-home-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gfn-dashboard-container {
    margin-bottom: 3rem;
}

.gfn-dashboard-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.gfn-dashboard-card-header {
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
}

.gfn-dashboard-card-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.gfn-dashboard-card-header h3 i {
    color: #007bff;
    font-size: 1.25rem;
}

.gfn-dashboard-description {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.gfn-dashboard-iframe-container {
    position: relative;
    width: 100%;
    background: #f8f9fa;
    padding: 1rem;
    min-height: 600px;
}

.gfn-dashboard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 600px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.gfn-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.gfn-loading-spinner i {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gfn-dashboard-loading p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    text-align: center;
}

/* Estilos para el contenedor de loading general */
.gfn-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    margin: 1rem 0;
}

.gfn-loading-container .gfn-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.gfn-loading-container p {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
    text-align: center;
}

.gfn-dashboard-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background: white;
    min-height: 600px;
}

.gfn-powerbi-container {
    width: 100%;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background: white;
    overflow: hidden;
}

.gfn-iframe-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.gfn-fallback-content {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}

.gfn-fallback-content i {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.gfn-fallback-content h4 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.gfn-fallback-content p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.gfn-fallback-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gfn-fallback-actions .btn-gfn,
.gfn-fallback-actions .btn-gfn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
}

.gfn-fallback-actions .btn-gfn {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.gfn-fallback-actions .btn-gfn:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.gfn-fallback-actions .btn-gfn-secondary {
    background: transparent;
    color: #6c757d;
    border-color: #6c757d;
}

.gfn-fallback-actions .btn-gfn-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.gfn-dashboard-info {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.gfn-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.gfn-info-item i {
    color: #007bff;
    font-size: 1rem;
}

.gfn-home-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gfn-feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-align: center;
}

.gfn-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

.gfn-feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
}

.gfn-feature-icon i {
    font-size: 2rem;
    color: white;
}

.gfn-feature-card h4 {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.gfn-feature-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.gfn-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #007bff;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.gfn-feature-link:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .gfn-home-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .gfn-home-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .gfn-dashboard-iframe {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .gfn-home-container {
        padding: 1rem;
    }
    
    .gfn-home-title {
        font-size: 2rem;
    }
    
    .gfn-dashboard-card-header {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .gfn-dashboard-card-header h3 {
        font-size: 1.25rem;
    }
    
    .gfn-dashboard-iframe {
        height: 400px;
    }
    
    .gfn-dashboard-info {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .gfn-home-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gfn-feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gfn-home-title {
        font-size: 1.75rem;
    }
    
    .gfn-dashboard-iframe {
        height: 350px;
    }
    
    .gfn-feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .gfn-feature-icon i {
        font-size: 1.5rem;
    }
}

/* ===== ESTILOS PARA PÁGINA DE DASHBOARD ===== */
.gfn-dashboard-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.gfn-dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gfn-dashboard-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gfn-dashboard-title i {
    font-size: 2rem;
    color: #007bff;
    -webkit-text-fill-color: #007bff;
}

.gfn-dashboard-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

.gfn-dashboard-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gfn-option-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-align: center;
}

.gfn-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

.gfn-option-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.gfn-option-card h3 i {
    color: #007bff;
    font-size: 1.1rem;
}

.gfn-option-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.gfn-embedded-dashboard {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.gfn-dashboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
}

.gfn-dashboard-controls .btn-gfn,
.gfn-dashboard-controls .btn-gfn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
}

.gfn-dashboard-controls .btn-gfn {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.gfn-dashboard-controls .btn-gfn:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.gfn-dashboard-controls .btn-gfn-secondary {
    background: transparent;
    color: #6c757d;
    border-color: #6c757d;
}

.gfn-dashboard-controls .btn-gfn-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Responsive adjustments para dashboard */
@media (max-width: 768px) {
    .gfn-dashboard-page {
        padding: 1rem;
    }
    
    .gfn-dashboard-title {
        font-size: 2rem;
    }
    
    .gfn-dashboard-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gfn-option-card {
        padding: 1.5rem;
    }
    
    .gfn-dashboard-controls {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
}

/* ===== ESTILOS PARA PÁGINA SIMPLE DE POWER BI ===== */
.gfn-powerbi-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.gfn-powerbi-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gfn-powerbi-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gfn-powerbi-title i {
    font-size: 2rem;
    color: #007bff;
    -webkit-text-fill-color: #007bff;
}

.gfn-powerbi-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

.gfn-powerbi-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.gfn-powerbi-iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.gfn-powerbi-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(5, 68, 71, 0.1);
}

.gfn-powerbi-actions-left,
.gfn-powerbi-actions-right {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gfn-powerbi-period-info {
    margin-top: 1.5rem;
}

.gfn-powerbi-period-info .gfn-card {
    border-radius: var(--gfn-radius-md);
    box-shadow: var(--gfn-shadow-sm);
}

.gfn-powerbi-actions .btn-gfn,
.gfn-powerbi-actions .btn-gfn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
}

.gfn-powerbi-actions .btn-gfn {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.gfn-powerbi-actions .btn-gfn:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.gfn-powerbi-actions .btn-gfn-secondary {
    background: transparent;
    color: #6c757d;
    border-color: #6c757d;
}

.gfn-powerbi-actions .btn-gfn-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Responsive adjustments para Power BI simple */
@media (max-width: 768px) {
    .gfn-powerbi-page {
        padding: 1rem;
    }
    
    .gfn-powerbi-title {
        font-size: 2rem;
    }
    
    .gfn-powerbi-iframe {
        height: 400px;
    }
    
    .gfn-powerbi-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .gfn-powerbi-title {
        font-size: 1.75rem;
    }
    
    .gfn-powerbi-iframe {
        height: 350px;
    }
}

/* Estilos para la nueva página de inicio */
.gfn-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gfn-stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gfn-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gfn-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gfn-stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.gfn-stat-content {
    flex: 1;
}

.gfn-stat-content h3 {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gfn-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.gfn-stat-change {
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.gfn-stat-change-label {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 400;
}

.gfn-stat-change.positive {
    color: #28a745;
}

.gfn-stat-change.negative {
    color: #dc3545;
}

.gfn-stat-change i {
    font-size: 0.625rem;
}

/* Estilos para acciones rápidas */
.gfn-quick-actions {
    margin: 3rem 0;
}

.gfn-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gfn-section-title i {
    color: #007bff;
    font-size: 1.25rem;
}

.gfn-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gfn-action-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gfn-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gfn-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gfn-action-icon i {
    font-size: 1.25rem;
    color: white;
}

.gfn-action-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.gfn-action-card p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.gfn-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.gfn-action-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.gfn-action-context {
    color: #495057;
    margin: 0.5rem 0;
    line-height: 1.6;
    font-size: 0.9rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 3px solid #0a6b6e;
}

.gfn-action-context strong {
    color: #054447;
    font-weight: 600;
}

.gfn-action-description {
    color: #6c757d;
    margin: 0.5rem 0;
    line-height: 1.5;
    font-size: 0.875rem;
}

.gfn-action-btn {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gfn-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 68, 71, 0.3);
    text-decoration: none;
}

/* Estilos para actividad reciente */
.gfn-recent-activity {
    margin: 3rem 0;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gfn-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.gfn-activity-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gfn-filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #495057;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gfn-filter-select:hover {
    border-color: #0a6b6e;
}

.gfn-filter-select:focus {
    outline: none;
    border-color: #0a6b6e;
    box-shadow: 0 0 0 3px rgba(10, 107, 110, 0.1);
}

.gfn-activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gfn-activity-item {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gfn-activity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background-color: white;
    border-color: #0a6b6e;
}

.gfn-activity-amount {
    color: #0a6b6e;
    font-weight: 600;
}

.gfn-activity-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
    gap: 1rem;
    flex-wrap: wrap;
}

.gfn-pagination-info {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

.gfn-activity-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gfn-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gfn-activity-icon i {
    font-size: 1rem;
    color: #6c757d;
}

.gfn-activity-content {
    flex: 1;
}

.gfn-activity-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.25rem 0;
}

.gfn-activity-content p {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0 0 0.25rem 0;
}

.gfn-activity-time {
    font-size: 0.625rem;
    color: #adb5bd;
    font-weight: 500;
}

/* Estilos para la nueva página Power BI */
.gfn-metrics-overview {
    margin: 2rem 0;
}

.gfn-metrics-period {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.gfn-metrics-period i {
    font-size: 1rem;
    color: #ffd700;
}

.gfn-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gfn-metric-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.gfn-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gfn-metric-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gfn-metric-header i {
    font-size: 1.25rem;
    color: #007bff;
}

.gfn-metric-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gfn-metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.gfn-visualization-options {
    margin: 3rem 0;
}

.gfn-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gfn-option-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gfn-option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gfn-option-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gfn-option-icon i {
    font-size: 1.25rem;
    color: white;
}

.gfn-option-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.gfn-option-card p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.gfn-option-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.gfn-category-analysis {
    margin: 3rem 0;
}

.gfn-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.gfn-category-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.gfn-category-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 1.5rem 0;
}

.gfn-category-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gfn-chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gfn-chart-label {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
    min-width: 120px;
}

.gfn-chart-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.gfn-chart-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.gfn-chart-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #212529;
    min-width: 50px;
    text-align: right;
}

.gfn-interactive-dashboard {
    margin: 2rem 0;
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.gfn-dashboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

/* Responsive design */
@media (max-width: 768px) {
    .gfn-stats-container {
        grid-template-columns: 1fr;
    }
    
    .gfn-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .gfn-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .gfn-options-grid {
        grid-template-columns: 1fr;
    }
    
    .gfn-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .gfn-stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .gfn-activity-item {
        flex-direction: column;
        text-align: center;
    }
    
    .gfn-option-actions {
        flex-direction: column;
    }
    
    .gfn-dashboard-controls {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .gfn-stat-number {
        font-size: 1.5rem;
    }
    
    .gfn-metric-value {
        font-size: 1.5rem;
    }
    
    .gfn-chart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .gfn-chart-label {
        min-width: auto;
    }
    
    .gfn-chart-value {
        text-align: left;
    }
}

/* Estilos para el Login */
.gfn-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f6ec;
    padding: 1rem;
}

.gfn-login-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gfn-login-header {
    background: linear-gradient(135deg, #054447, #0a6b6e); /* Teal profundo GFN */
    color: white;
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
}

.gfn-login-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: white;
    padding: 0.5rem;
}

.gfn-login-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.gfn-login-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.gfn-login-form {
    padding: 2rem;
}

.gfn-form-group {
    margin-bottom: 1.5rem;
}

.gfn-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.gfn-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.gfn-input-group i {
    position: absolute;
    left: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

.gfn-form-control {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3.5rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
    line-height: 1.5;
}

.gfn-form-control-simple {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
    line-height: 1.5;
}

.gfn-form-control-simple:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.gfn-login-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #054447, #0a6b6e); /* Teal profundo GFN */
    border: none;
    border-radius: 0.5rem;
    color: white;
    transition: all 0.3s ease;
}

.gfn-login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 68, 71, 0.4); /* Teal GFN */
}

.gfn-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.gfn-loading-spinner-small {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.gfn-login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.gfn-login-footer p {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

.gfn-login-support-link {
    color: #0a6b6e; /* Teal GFN */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.gfn-login-support-link:hover {
    color: #054447; /* Teal profundo GFN */
    border-bottom-color: #054447;
    text-decoration: none;
}

.gfn-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.gfn-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.gfn-alert i {
    font-size: 1rem;
}

@media (max-width: 480px) {
    .gfn-login-card {
        margin: 1rem;
        border-radius: 0.75rem;
    }
    
    .gfn-login-header {
        padding: 1.5rem;
    }
    
    .gfn-login-form {
        padding: 1.5rem;
    }
}

/* Estilos para el Panel de Administración */
.gfn-admin-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gfn-admin-header {
    margin-bottom: 2rem;
    text-align: center;
}

.gfn-admin-title {
    font-size: 2rem;
    font-weight: 600;
    color: #054447;
    margin-bottom: 0.5rem;
}

.gfn-admin-title i {
    margin-right: 0.5rem;
    color: #0a6b6e;
}

.gfn-admin-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.gfn-admin-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.gfn-admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.gfn-admin-section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #054447;
    margin: 0;
}

.gfn-admin-section-header h2 i {
    margin-right: 0.5rem;
    color: #0a6b6e;
}

/* Estilos para filtros de administración */
.gfn-admin-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.gfn-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.gfn-filter-group label {
    font-weight: bold;
    color: #495057;
    font-size: 0.9rem;
}

.gfn-filter-group select,
.gfn-filter-group input {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
}

.gfn-filter-group select:focus,
.gfn-filter-group input:focus {
    outline: none;
    border-color: #054447;
    box-shadow: 0 0 0 2px rgba(5, 68, 71, 0.25);
}

/* Estilos para estadísticas de administración */
.gfn-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gfn-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #054447;
    transition: all 0.3s ease;
}

.gfn-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gfn-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #054447;
    margin-bottom: 0.5rem;
}

.gfn-stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Estilos para acciones de administración */
.gfn-admin-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gfn-admin-actions .btn-gfn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.gfn-admin-actions .btn-gfn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.gfn-admin-actions .btn-gfn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-1px);
}

.gfn-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.gfn-user-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.gfn-user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.gfn-user-card.inactive {
    opacity: 0.6;
    border-color: #dc3545;
}

.gfn-user-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gfn-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #054447, #0a6b6e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.gfn-user-info {
    flex: 1;
}

.gfn-user-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.25rem 0;
}

.gfn-user-email {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0 0 0.25rem 0;
}

.gfn-user-username {
    font-size: 0.8rem;
    color: #495057;
    font-weight: 500;
    margin: 0;
}

.gfn-user-status {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gfn-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.gfn-badge-admin {
    background: #054447;
    color: white;
}

.gfn-badge-inactive {
    background: #dc3545;
    color: white;
}

.gfn-user-details {
    margin-bottom: 1rem;
}

.gfn-user-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.gfn-detail-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.875rem;
}

.gfn-detail-value {
    color: #212529;
    font-size: 0.875rem;
}

.gfn-user-actions {
    display: flex;
    gap: 0.5rem;
}

.gfn-admin-access-denied {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #054447 0%, #0a6b6e 100%);
    padding: 1rem;
}

.gfn-admin-message {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.gfn-admin-message i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.gfn-admin-message h3 {
    color: #dc3545;
    margin-bottom: 1rem;
    font-weight: 600;
}

.gfn-admin-message p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.gfn-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .gfn-admin-container {
        padding: 1rem;
    }
    
    .gfn-users-grid {
        grid-template-columns: 1fr;
    }
    
    .gfn-admin-section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .gfn-user-header {
        flex-direction: column;
        text-align: center;
    }
    
    .gfn-user-actions {
        flex-direction: column;
    }
    
    .gfn-admin-filters {
        flex-direction: column;
    }
    
    .gfn-filter-group {
        min-width: 100%;
    }
}

/* Estilos para AuthGuard */
.gfn-auth-redirect {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f6ec;
    padding: 1rem;
}

.gfn-auth-message {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.gfn-auth-message i {
    font-size: 3rem;
    color: #054447;
    margin-bottom: 1rem;
}

.gfn-auth-message h3 {
    color: #054447;
    margin-bottom: 1rem;
    font-weight: 600;
}

.gfn-auth-message p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.gfn-auth-message .btn-gfn {
    background-color: #fe876d;
    border-color: #fe876d;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gfn-auth-message .btn-gfn:hover {
    background-color: #e6765a;
    border-color: #e6765a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(254, 135, 109, 0.3);
}

.gfn-badge-warning {
    background: #ffc107;
    color: #212529;
}

.btn-gfn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn-gfn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-gfn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

.gfn-alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gfn-alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.gfn-alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.gfn-alert i {
    font-size: 1.1rem;
}

/* Estilos para modales */
.gfn-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.gfn-modal {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gfn-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.gfn-modal-header h3 {
    margin: 0;
    color: #054447;
}

.gfn-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.gfn-modal-body {
    padding: 1.5rem;
}

.gfn-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.gfn-form-group {
    margin-bottom: 1rem;
}

.gfn-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #495057;
}

.gfn-form-group input,
.gfn-form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
}

.gfn-form-group input:focus,
.gfn-form-group select:focus {
    outline: none;
    border-color: #054447;
    box-shadow: 0 0 0 2px rgba(5, 68, 71, 0.25);
}

.gfn-user-modal {
    max-width: 700px;
    width: 95%;
}

.gfn-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gfn-modal-title i {
    font-size: 1.5rem;
    color: #054447;
}

.gfn-modal-title h3 {
    margin: 0;
    color: #054447;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .gfn-user-modal {
        width: 98%;
        margin: 1rem;
    }
    
    .gfn-modal-body {
        padding: 1rem;
    }
    
    .gfn-modal-title h3 {
        font-size: 1.3rem;
    }
}

/* Estilos para actividad detallada */
.gfn-activity-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.gfn-activity-date {
    background-color: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.gfn-activity-period {
    background-color: #d1ecf1;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    color: #0c5460;
    font-weight: 500;
}

.gfn-activity-user {
    background-color: #f8d7da;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    color: #721c24;
    font-weight: 500;
}

/* Estilos mejorados para la página principal */
.gfn-home-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: #f9f6ec;
    min-height: 100vh;
}

.gfn-home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gfn-home-title-section {
    flex: 1;
}

.gfn-home-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #054447;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gfn-home-title i {
    color: #0a6b6e;
    font-size: 2.2rem;
}

.gfn-home-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
}

.gfn-home-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gfn-home-actions .btn-gfn,
.gfn-home-actions .btn-gfn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.gfn-home-actions .btn-gfn:hover,
.gfn-home-actions .btn-gfn-secondary:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* Estilos mejorados para estadísticas */
.gfn-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gfn-stat-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #054447;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.gfn-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gfn-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #054447, #0a6b6e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.gfn-stat-content {
    flex: 1;
}

.gfn-stat-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin: 0 0 0.5rem 0;
}

.gfn-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #054447;
    margin: 0 0 0.25rem 0;
    line-height: 1;
}

.gfn-stat-change {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.gfn-stat-change-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 400;
}

.gfn-stat-change.positive {
    color: #28a745;
}

.gfn-stat-change.negative {
    color: #dc3545;
}

/* Estilos mejorados para acciones rápidas */
.gfn-quick-actions {
    margin-bottom: 3rem;
}

.gfn-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #054447;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gfn-section-title i {
    color: #0a6b6e;
    font-size: 1.6rem;
}

.gfn-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gfn-action-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.gfn-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.gfn-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #054447, #0a6b6e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.gfn-action-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #054447;
    margin: 0 0 0.5rem 0;
}

.gfn-action-card p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Estilos mejorados para actividad reciente */
.gfn-recent-activity {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gfn-activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gfn-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border-left: 4px solid #054447;
}

.gfn-activity-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.gfn-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #054447;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.gfn-activity-content {
    flex: 1;
}

.gfn-activity-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.25rem 0;
}

.gfn-activity-content p {
    color: #6c757d;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.gfn-activity-time {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive design mejorado */
@media (max-width: 1200px) {
    .gfn-home-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .gfn-home-title {
        font-size: 2rem;
        justify-content: center;
    }
    
    .gfn-stats-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .gfn-home-container {
        padding: 1rem;
    }
    
    .gfn-intro-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .gfn-intro-title {
        font-size: 2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .gfn-intro-title i {
        font-size: 2rem;
    }
    
    .gfn-intro-description {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .gfn-intro-subdescription {
        font-size: 1rem;
        text-align: center;
    }
    
    .gfn-home-header {
        padding: 1.5rem;
    }
    
    .gfn-home-title {
        font-size: 1.8rem;
    }
    
    .gfn-home-subtitle {
        font-size: 1rem;
    }
    
    .gfn-stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gfn-stat-card {
        padding: 1.5rem;
    }
    
    .gfn-stat-number {
        font-size: 2rem;
    }
    
    .gfn-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .gfn-action-context {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .gfn-activity-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .gfn-activity-filters {
        width: 100%;
        flex-direction: column;
    }
    
    .gfn-filter-select {
        width: 100%;
    }
    
    .gfn-activity-pagination {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .gfn-activity-item {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .gfn-home-title {
        font-size: 1.5rem;
    }
    
    .gfn-home-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .gfn-home-actions .btn-gfn,
    .gfn-home-actions .btn-gfn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .gfn-stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .gfn-activity-item {
        flex-direction: column;
        text-align: center;
    }
    
    .gfn-activity-icon {
        align-self: center;
    }
}

/* Estilos para carga masiva */
.upload-section {
    padding: 20px 0;
}

.upload-area {
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
}

.upload-area.drag-over {
    border-color: #007bff;
    background: #f0f8ff;
    transform: scale(1.02);
}

.upload-content {
    margin-bottom: 30px;
}

.upload-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 15px;
}

.upload-content h4 {
    color: #333;
    margin-bottom: 10px;
}

.upload-content p {
    color: #666;
    margin-bottom: 20px;
}

.file-input {
    display: none;
}

.file-upload-wrapper {
    position: relative;
    display: inline-block;
}

.file-upload-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.file-upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #004085);
}

.file-upload-label:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.file-upload-label i {
    font-size: 16px;
}

.upload-info {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.upload-info h5 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.upload-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.upload-info li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.upload-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.template-download {
    text-align: center;
}

/* Resultados de procesamiento */
.results-section {
    padding: 20px 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.results-header h4 {
    margin: 0;
    color: #333;
}

.results-summary {
    display: flex;
    gap: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.summary-item.valid {
    background: #d4edda;
    color: #155724;
}

.summary-item.invalid {
    background: #f8d7da;
    color: #721c24;
}

.summary-item.total {
    background: #d1ecf1;
    color: #0c5460;
}

.summary-item i {
    font-size: 16px;
}

/* Sección de errores */
.errors-section {
    margin-bottom: 30px;
}

.errors-section h5 {
    color: #dc3545;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.errors-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.errors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gfn-warning);
}

.errors-header h5 {
    margin: 0;
    color: var(--gfn-warning);
    font-weight: 600;
}

.error-item {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--gfn-radius-md);
    border-left: 4px solid var(--gfn-danger);
    background: #fff;
    box-shadow: var(--gfn-shadow-sm);
}

.error-item:last-child {
    margin-bottom: 0;
}

.error-header {
    margin-bottom: 0.75rem;
}

.error-location {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.error-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--gfn-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.error-badge-row {
    background-color: #e3f2fd;
    color: #1976d2;
}

.error-badge-type {
    background-color: #fff3e0;
    color: #f57c00;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #ffebee;
    border-radius: var(--gfn-radius-sm);
    color: var(--gfn-danger);
}

.error-message i {
    color: var(--gfn-danger);
}

.error-data {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: var(--gfn-radius-sm);
}

.error-data ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.error-data li {
    margin-bottom: 0.25rem;
    color: #495057;
}

.error-line {
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
}

.error-type {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.error-messages {
    margin-bottom: 8px;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-bottom: 4px;
    padding-left: 15px;
    position: relative;
}

.error-message:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #dc3545;
}

.error-data {
    color: #666;
    font-size: 12px;
}

/* Sección de registros válidos */
.valid-section {
    margin-bottom: 30px;
}

.valid-section h5 {
    color: #28a745;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.valid-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.valid-summary p {
    margin-bottom: 15px;
    color: #333;
}

.valid-preview h6 {
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.valid-preview .table {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.valid-preview .table th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.valid-preview .table td {
    vertical-align: middle;
    color: #333;
}

/* Acciones */
.actions-section {
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons .btn {
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .results-summary {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .upload-area {
        padding: 20px;
    }
}

/* ============================================
   SISTEMA DE DISEÑO UNIFICADO GFN
   ============================================ */

/* Variables CSS para colores GFN (usando las de gfn-brand.css) */
:root {
    --gfn-primary: var(--gfn-dark-teal, #054447);
    --gfn-primary-light: var(--gfn-light-teal, #84c6c2);
    --gfn-secondary: var(--gfn-coral, #fe876d);
    --gfn-accent: var(--gfn-yellow, #ffbc3b);
    --gfn-background: var(--gfn-eggshell, #f9f6ec);
    --gfn-text: var(--gfn-dark-gray, #2d2d2d);
    --gfn-white: var(--gfn-white, #ffffff);
    
    /* Sombras estandarizadas */
    --gfn-shadow-sm: 0 2px 4px rgba(5, 68, 71, 0.08);
    --gfn-shadow-md: 0 4px 12px rgba(5, 68, 71, 0.12);
    --gfn-shadow-lg: 0 8px 24px rgba(5, 68, 71, 0.16);
    
    /* Transiciones estandarizadas */
    --gfn-transition-fast: 0.15s ease-in-out;
    --gfn-transition-base: 0.3s ease-in-out;
    --gfn-transition-slow: 0.5s ease-in-out;
    
    /* Bordes estandarizados */
    --gfn-border-radius-sm: 0.375rem;
    --gfn-border-radius-md: 0.5rem;
    --gfn-border-radius-lg: 0.75rem;
    --gfn-border-radius-xl: 1rem;
}

/* ============================================
   SISTEMA DE TARJETAS UNIFICADO
   ============================================ */

.gfn-card {
    background: var(--gfn-white);
    border-radius: var(--gfn-border-radius-lg);
    box-shadow: var(--gfn-shadow-md);
    border: 1px solid rgba(5, 68, 71, 0.1);
    padding: 1.5rem;
    transition: all var(--gfn-transition-base);
}

.gfn-card:hover {
    box-shadow: var(--gfn-shadow-lg);
    transform: translateY(-2px);
}

.gfn-card-interactive {
    cursor: pointer;
}

.gfn-card-interactive:hover {
    border-color: var(--gfn-primary);
}

.gfn-card-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(5, 68, 71, 0.1);
}

.gfn-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gfn-primary);
    margin: 0;
}

.gfn-card-body {
    color: var(--gfn-text);
}

.gfn-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(5, 68, 71, 0.1);
}

/* ============================================
   SISTEMA DE BOTONES UNIFICADO
   ============================================ */

.btn-gfn {
    background-color: var(--gfn-primary);
    border-color: var(--gfn-primary);
    color: var(--gfn-white);
    padding: 0.625rem 1.25rem;
    border-radius: var(--gfn-border-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--gfn-transition-base);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-gfn:hover {
    background-color: var(--gfn-primary-light);
    border-color: var(--gfn-primary-light);
    color: var(--gfn-primary);
    transform: translateY(-2px);
    box-shadow: var(--gfn-shadow-md);
    text-decoration: none;
}

.btn-gfn:active {
    transform: translateY(0);
    box-shadow: var(--gfn-shadow-sm);
}

.btn-gfn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 68, 71, 0.25);
}

.btn-gfn-secondary {
    background-color: var(--gfn-secondary);
    border-color: var(--gfn-secondary);
    color: var(--gfn-white);
}

.btn-gfn-secondary:hover {
    background-color: var(--gfn-accent);
    border-color: var(--gfn-accent);
    color: var(--gfn-primary);
}

.btn-gfn-outline {
    background-color: transparent;
    border-color: var(--gfn-primary);
    color: var(--gfn-primary);
}

.btn-gfn-outline:hover {
    background-color: var(--gfn-primary);
    color: var(--gfn-white);
}

.btn-gfn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-gfn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* ============================================
   SISTEMA DE INPUTS UNIFICADO
   ============================================ */

.form-gfn,
input.form-gfn,
select.form-gfn,
textarea.form-gfn {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--gfn-primary-light);
    border-radius: var(--gfn-border-radius-md);
    font-size: 0.875rem;
    background-color: var(--gfn-white);
    color: var(--gfn-text);
    transition: all var(--gfn-transition-fast);
    font-family: inherit;
    box-sizing: border-box;
}

.form-gfn:focus {
    outline: none;
    border-color: var(--gfn-primary);
    background-color: #f4f9f8;
    box-shadow: 0 0 0 3px rgba(5, 68, 71, 0.1);
}

.form-gfn:disabled {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
}

.form-gfn::placeholder {
    color: #adb5bd;
}

label.form-gfn-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gfn-primary);
    margin-bottom: 0.5rem;
}

.form-gfn-group {
    margin-bottom: 1.25rem;
}

.form-gfn-help {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
}

.form-gfn-error {
    font-size: 0.75rem;
    color: #dc3545;
    margin-top: 0.25rem;
    display: block;
}

.form-gfn.invalid {
    border-color: #dc3545;
}

.form-gfn.invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* ============================================
   SISTEMA TIPOGRÁFICO UNIFICADO
   ============================================ */

.gfn-text-primary {
    color: var(--gfn-primary);
}

.gfn-text-secondary {
    color: var(--gfn-text);
}

.gfn-text-muted {
    color: #6c757d;
}

.gfn-text-sm {
    font-size: 0.875rem;
}

.gfn-text-xs {
    font-size: 0.75rem;
}

.gfn-text-lg {
    font-size: 1.125rem;
}

.gfn-text-xl {
    font-size: 1.25rem;
}

.gfn-text-2xl {
    font-size: 1.5rem;
}

.gfn-text-3xl {
    font-size: 1.875rem;
}

.gfn-font-bold {
    font-weight: 700;
}

.gfn-font-semibold {
    font-weight: 600;
}

.gfn-font-medium {
    font-weight: 500;
}

.gfn-font-normal {
    font-weight: 400;
}

/* ============================================
   ANIMACIONES HOVER ESTANDARIZADAS
   ============================================ */

.gfn-hover-lift {
    transition: transform var(--gfn-transition-base), box-shadow var(--gfn-transition-base);
}

.gfn-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--gfn-shadow-lg);
}

.gfn-hover-scale {
    transition: transform var(--gfn-transition-base);
}

.gfn-hover-scale:hover {
    transform: scale(1.05);
}

.gfn-hover-fade {
    transition: opacity var(--gfn-transition-base);
}

.gfn-hover-fade:hover {
    opacity: 0.8;
}

/* ============================================
   UTILIDADES DE ESPACIADO
   ============================================ */

.gfn-mt-1 { margin-top: 0.25rem; }
.gfn-mt-2 { margin-top: 0.5rem; }
.gfn-mt-3 { margin-top: 0.75rem; }
.gfn-mt-4 { margin-top: 1rem; }
.gfn-mt-5 { margin-top: 1.5rem; }

.gfn-mb-1 { margin-bottom: 0.25rem; }
.gfn-mb-2 { margin-bottom: 0.5rem; }
.gfn-mb-3 { margin-bottom: 0.75rem; }
.gfn-mb-4 { margin-bottom: 1rem; }
.gfn-mb-5 { margin-bottom: 1.5rem; }

.gfn-p-1 { padding: 0.25rem; }
.gfn-p-2 { padding: 0.5rem; }
.gfn-p-3 { padding: 0.75rem; }
.gfn-p-4 { padding: 1rem; }
.gfn-p-5 { padding: 1.5rem; }

/* ============================================
   ESTILOS PARA LISTAS (VOLÚMENES Y DONANTES)
   ============================================ */

.gfn-list-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(5, 68, 71, 0.1);
}

.gfn-search-wrapper {
    flex: 1;
    max-width: 600px;
}

.gfn-search-input {
    width: 100%;
}

.gfn-action-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.gfn-list-filters {
    margin: 1.5rem 2rem;
    padding: 1.5rem;
    background: var(--gfn-background);
    border-radius: var(--gfn-border-radius-lg);
}

.gfn-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gfn-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gfn-filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gfn-primary);
    margin: 0;
}

.gfn-filter-select {
    width: 100%;
}

/* ============================================
   MODAL DE CONFIRMACIÓN
   ============================================ */

.gfn-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.gfn-modal {
    background: var(--gfn-white);
    border-radius: var(--gfn-border-radius-xl);
    box-shadow: var(--gfn-shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gfn-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(5, 68, 71, 0.1);
}

.gfn-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gfn-primary);
}

.gfn-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--gfn-transition-fast);
}

.gfn-modal-close:hover {
    background-color: #f8f9fa;
    color: var(--gfn-primary);
}

.gfn-modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.gfn-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(5, 68, 71, 0.1);
}

.gfn-btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.gfn-btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
}

/* Responsive para listas */
@media (max-width: 768px) {
    .gfn-list-header-actions {
        flex-direction: column;
        align-items: stretch;
        margin: 1rem;
    }
    
    .gfn-search-wrapper {
        max-width: 100%;
    }
    
    .gfn-action-buttons {
        width: 100%;
    }
    
    .gfn-action-buttons .btn-gfn {
        width: 100%;
    }
    
    .gfn-list-filters {
        margin: 1rem;
        padding: 1rem;
    }
    
    .gfn-filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gfn-modal {
        width: 95%;
        margin: 1rem;
    }
}

/* ============================================
   MEJORAS PARA WIZARD DE FORMULARIOS
   ============================================ */

.gfn-wizard-stepper-item {
    cursor: pointer;
    position: relative;
    flex-direction: column;
    width: auto;
    min-width: 60px;
    height: auto;
    padding: 0.5rem;
    border-radius: var(--gfn-border-radius-md);
    gap: 0.25rem;
}

.gfn-wizard-stepper-item:hover:not(.active) {
    background-color: rgba(5, 68, 71, 0.1);
    transform: scale(1.05);
}

.gfn-wizard-step-number {
    font-size: 1rem;
    font-weight: 700;
    display: block;
}

.gfn-wizard-step-label {
    font-size: 0.7rem;
    font-weight: 500;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gfn-wizard-stepper-item.active .gfn-wizard-step-label,
.gfn-wizard-stepper-item.done .gfn-wizard-step-label {
    color: inherit;
}

.gfn-wizard-stepper-item.error {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    animation: pulse-error 2s infinite;
}

.gfn-wizard-stepper-item.error .gfn-wizard-step-number::after {
    content: "!";
    margin-left: 0.25rem;
    color: white;
}

@keyframes pulse-error {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
}

.gfn-wizard-stepper-line.done {
    background: linear-gradient(90deg, var(--gfn-primary-light), var(--gfn-accent));
}

.gfn-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(5, 68, 71, 0.1);
    margin-top: 2rem;
}

.gfn-wizard-nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.gfn-btn-cancel {
    color: #6c757d;
    border-color: #dee2e6;
}

.gfn-btn-cancel:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.gfn-wizard-section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(5, 68, 71, 0.1);
}

.gfn-wizard-section-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gfn-primary);
}

.gfn-wizard-section-header .gfn-wizard-sub {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
}

.gfn-field-disabled {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.gfn-field-disabled:focus {
    border-color: #dee2e6 !important;
    box-shadow: none !important;
}

/* Mejorar contraste de campos de fecha */
input[type="date"].form-gfn {
    color: var(--gfn-text);
    background-color: var(--gfn-white);
    border: 1.5px solid var(--gfn-primary-light);
}

input[type="date"].form-gfn:focus {
    border-color: var(--gfn-primary);
    background-color: #f4f9f8;
    color: var(--gfn-text);
}

input[type="date"].form-gfn::-webkit-calendar-picker-indicator {
    filter: invert(0.3);
    cursor: pointer;
}

/* Responsive para wizard */
@media (max-width: 768px) {
    .gfn-wizard-stepper-item {
        min-width: 50px;
        padding: 0.4rem;
    }
    
    .gfn-wizard-step-label {
        display: none;
    }
    
    .gfn-wizard-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gfn-wizard-nav-right {
        width: 100%;
        flex-direction: column;
    }
    
    .gfn-wizard-nav-right button {
        width: 100%;
    }
    
    .gfn-btn-cancel {
        width: 100%;
    }
}
