html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.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;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDk...
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.home-container {
    background-color: #f5f6fa;
    padding: 1.5rem;
}

.ranking-card {
    border-radius: .75rem;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.05);
}

    .ranking-card .card-header {
        font-weight: 600;
        background-color: transparent;
        border-bottom: 1px solid #eee;
    }

.ranking-row {
    display: flex;
    align-items: center;
    padding: .6rem;
    border-radius: .5rem;
    cursor: pointer;
    transition: background-color .2s;
}

    .ranking-row:hover {
        background-color: #f1f3f5;
    }

.ranking-index {
    width: 24px;
    font-weight: bold;
    color: #6c757d;
}

.ranking-content {
    flex: 1;
    padding: 0 .5rem;
}

.ranking-value {
    font-weight: 600;
}



.json-viewer {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px;
    font-size: 0.85rem;
    max-height: 400px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
/* ===== LOGIN PAGE STYLES ===== */

.authentication {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, rgb(242,247,248) 0%, /* inicio */
    rgb(225,232,237) 50%, /* medio */
    rgb(242,247,248) 100% /* final */
    );
    --background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 20px;
}

.boxed-auth-wrap {
    width: 100%;
    max-width: 420px;
}

    .boxed-auth-wrap .card {
        border: none;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .boxed-auth-wrap .card-body {
        padding: 2.5rem;
    }

/* ===== LOGO CONTAINER - CENTRADO Y RESPONSIVE ===== */
.div-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 12px;
}

    .div-logo img {
        max-width: 100%;
        width: 80%;
        height: auto;
        object-fit: contain;
    }

/* ===== FORM STYLES ===== */
.authentication .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.authentication .form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

    .authentication .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    }

.authentication .btn-primary {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    background-color: #0d6efd;
    border: none;
    transition: all 0.2s ease;
}

    .authentication .btn-primary:hover {
        background-color: #0b5ed7;
        transform: translateY(-1px);
    }

    .authentication .btn-primary:disabled {
        background-color: #6c757d;
        cursor: not-allowed;
    }

/* Spinner dentro del botón */
.authentication .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}
.boxed-auth-wrap {
    position: relative;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
}
.bg-primary-login {
    --v-theme-overlay-multiplier: var(--v-theme-primary-overlay-multiplier);
    background-color: rgb(148,191,33);
    color: rgb(255,255,255) !important;
}

.form-control {
    border: 1px solid #0f3460; /* color primario opcional */
    border-radius: 0.375rem; /* bordes redondeados similares */
}

/* ===== HAMBURGER MENU STYLES ===== */

/* Botón del menú hamburger */
.menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    background-color: #1a1a2e;
    color: white;
    border: none;
    border-radius: 10px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: #2d2d44;
    transform: scale(1.05);
}

.menu-toggle.active {
    background-color: #e74c3c;
}

.menu-toggle .hamburger-icon {
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle .hamburger-icon i {
    font-size: 1.5rem;
}

/* Overlay oscuro cuando el menú está abierto */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    animation: fadeIn 0.3s ease forwards;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Sidebar oculto por defecto */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 1050;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Sidebar visible */
.sidebar.open {
    left: 0;
}

/* Header del sidebar con logo */
.sidebar-header {
    padding: 80px 20px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-logo {
    max-width: 160px;
    height: auto;
}

/* Navegación del sidebar */
.sidebar .nav-scrollable {
    flex: 1;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.sidebar .flex-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar .nav-item {
    margin: 0.25rem 0;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    margin: 0 0.75rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background-color: rgba(148, 191, 33, 0.2);
    color: #94bf21;
    font-weight: 600;
    border-left: 3px solid #94bf21;
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Logout link al final */
.sidebar .nav-logout {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .logout-link {
    color: #ff6b6b !important;
}

.sidebar .logout-link:hover {
    background-color: rgba(255, 107, 107, 0.15) !important;
    color: #ff4757 !important;
}

/* Ajustes del contenido principal */
.page {
    position: relative;
    min-height: 100vh;
    background-color: #f5f6fa;
}

.page main {
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    min-height: 100vh;
}

.page .content {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f2f7f8 0%, #e1e8ed 50%, #f2f7f8 100%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .menu-toggle {
        top: 10px;
        left: 10px;
        width: 44px;
        height: 44px;
    }
    
    .page main {
        padding-top: 70px;
        padding-left: 15px;
        padding-right: 15px;
    }
}


.v-card-title {
    display: block;
    flex: none;
    font-size: 1.125rem;
    font-weight: 500;
    -webkit-hyphens: auto;
    hyphens: auto;
    letter-spacing: normal;
    min-width: 0;
    overflow-wrap: normal;
    overflow: hidden;
    padding: .5rem 1rem;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
    word-break: normal;
    word-wrap: break-word;
}

.bg-primary-v {
    background-color: rgb(148, 191, 33) !important;
    color: rgb(255,255,255) !important;
}

.bg-lightprimary {
    background-color: #e3f2fd;
}

.withbg {
    border-radius: 1rem;
}

.dropdown-toggle::after {
    display: none; /* quita la flechita */
}


/* ===== EMPRESA CARD STYLES ===== */

.dashboard-container {
    padding: 1rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h4 {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.empresas-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Empresa Card */
.empresa-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid transparent;
}

.empresa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Card Color Accents */
.card-accent-blue { border-left-color: #3498db; }
.card-accent-green { border-left-color: #27ae60; }
.card-accent-purple { border-left-color: #9b59b6; }
.card-accent-orange { border-left-color: #e67e22; }
.card-accent-teal { border-left-color: #1abc9c; }

/* Card Header */
.empresa-card-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #eef2f7;
}

.empresa-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.empresa-avatar-icon {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

/* Avatar Colors */
.avatar-blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.avatar-green { background: linear-gradient(135deg, #27ae60, #1e8449); }
.avatar-purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.avatar-orange { background: linear-gradient(135deg, #e67e22, #d35400); }
.avatar-teal { background: linear-gradient(135deg, #1abc9c, #16a085); }

.empresa-info {
    flex: 1;
}

.empresa-nombre {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.empresa-badge {
    font-size: 0.75rem;
    color: #7f8c8d;
    background: #ecf0f1;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.empresa-status {
    padding-left: 1rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-active { background: #27ae60; box-shadow: 0 0 8px rgba(39, 174, 96, 0.4); }
.status-warning { background: #f39c12; box-shadow: 0 0 8px rgba(243, 156, 18, 0.4); }
.status-inactive { background: #e74c3c; box-shadow: 0 0 8px rgba(231, 76, 60, 0.4); }

/* Card Body */
.empresa-card-body {
    padding: 0.75rem 1.25rem;
}

.establecimiento-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.establecimiento-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.establecimiento-icon {
    font-size: 20px;
    color: #495057;
}

.establecimiento-details {
    display: flex;
    align-items: center;
    gap: 16px; /* separación entre nombre y versión */
    font-size: 14px;
}

.establecimiento-nombre {
    font-weight: 500;
    color: #212529;
}

.establecimiento-version {
    color: #6c757d;
}
.establecimiento-stats {
    display: flex;
    align-items: center;
}

.badge-instalaciones {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
}

.badge-active {
    background: #d5f5e3;
    color: #1e8449;
}

.badge-inactive {
    background: #fadbd8;
    color: #c0392b;
}

/* Card Footer */
.empresa-card-footer {
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid #eef2f7;
}

.footer-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #5d6d7e;
}

/* ===== RESUMEN CARD STYLES ===== */

.resumen-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.resumen-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ffffff;
    font-weight: 600;
}

.resumen-body {
    padding: 1rem;
}

.resumen-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: #f8f9fa;
}

.resumen-item:last-child {
    margin-bottom: 0;
}

.resumen-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bg-primary-light { background: rgba(52, 152, 219, 0.15); }
.bg-success-light { background: rgba(39, 174, 96, 0.15); }
.bg-info-light { background: rgba(26, 188, 156, 0.15); }

.resumen-info {
    display: flex;
    flex-direction: column;
}

.resumen-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.resumen-label {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Responsive */
@media (max-width: 992px) {
    .empresas-grid {
        margin-bottom: 1.5rem;
    }
}

.kpi-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 24px;
    border: 1px solid #e5e7eb;
}

.kpi-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kpi-icon {
    font-size: 28px;
    color: #495057;
}

.kpi-value {
    font-size: 26px;
    font-weight: 600;
    color: #212529;
    line-height: 1.2;
}

.kpi-label {
    font-size: 13px;
    color: #6c757d;
}

.kpi-divider {
    height: 40px;
    width: 1px;
    background-color: #dee2e6;
}

.kpi-warning .kpi-icon,
.kpi-warning .kpi-value {
    color: #dc3545;
}

/* Header */
.report-table thead th {
    background-color: rgb(245, 245, 247);    
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
    height: 64px;
    font-weight: bold;
    font-size: .8125rem;
    letter-spacing: .2px;
    line-height: 24px;
    text-transform: uppercase;
    color: rgb(38,43,67);
}

/* Filas */
.report-table tbody tr {
    transition: background-color 0.15s ease-in-out;
}

    /* Hover: mismo color del header */
    .report-table tbody tr:hover {
        background-color: rgb(245, 245, 247);
        cursor: pointer;
    }

/* Celdas */
.report-table td {
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Acciones */
.action-icon {
    color: #6b7280;
    margin: 0 6px;
    cursor: pointer;
}

    .action-icon:hover {
        color: #111827;
    }

/* Estados */
.badge-generado {
    background-color: #ecfdf3;
    color: #16a34a;
    border: 1px solid #22c55e;
}

.badge-incompleto {
    background-color: #fff7ed;
    color: #ea580c;
    border: 1px solid #fb923c;
}

/* ========== ESTILOS MEJORADOS PARA EMISORCARD - INSTALACIONES ========== */

/* Badges del emisor en el header */
.empresa-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.empresa-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Grid de instalaciones */
.instalaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 8px 0;
}

/* Card de instalación individual */
.instalacion-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s ease;
}

.instalacion-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.instalacion-card.instalacion-activa {
    border-left: 4px solid #198754;
    background: #f8fff9;
}

.instalacion-card.instalacion-con-retraso {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #fffbeb 0%, #fff8e1 100%);
}

.instalacion-card.instalacion-con-retraso .instalacion-header {
    border-bottom-color: #ffe69c;
}

.instalacion-card.instalacion-sin-reportar {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.instalacion-card.instalacion-sin-reportar .instalacion-header {
    border-bottom-color: #f5c2c7;
}

/* Header de la instalación */
.instalacion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.instalacion-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.instalacion-title > i {
    font-size: 1.5rem;
}

.instalacion-name {
    display: flex;
    flex-direction: column;
}

.instalacion-name .hostname {
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
}

.instalacion-name .app-name {
    font-size: 0.8rem;
    color: #6c757d;
}

.instalacion-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Detalles de la instalación */
.instalacion-details {
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #495057;
}

.detail-item i {
    font-size: 0.85rem;
}

/* Establecimientos */
.instalacion-establecimientos {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.establecimientos-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.establecimientos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.establecimiento-tag {
    background: #ffffff;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Mejoras en el body del card */
.empresa-card-body {
    padding: 16px 20px;
    background: #fafbfc;
}

/* Responsive */
@media (max-width: 768px) {
    .instalaciones-grid {
        grid-template-columns: 1fr;
    }
    
    .instalacion-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .instalacion-badges {
        align-self: flex-start;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .empresa-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .empresa-badges {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 576px) {
    .empresa-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .empresa-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.summary-card {
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .summary-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
    }

.summary-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.summary-title {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ===== PASTEL TOTALES ===== */

.primary-card {
    border-top: 3px solid #0d6efd;
}

    .primary-card .card-header {
        background: linear-gradient( 90deg, rgba(13, 110, 253, 0.12), rgba(13, 110, 253, 0.02) );
        font-weight: 600;
    }

.primary-chart {
    position: relative;
    height: 280px;
    width: 100%;
    max-width: 360px;
}

    .primary-chart canvas {
        filter: drop-shadow(0 8px 14px rgba(13, 110, 253, 0.25));
    }

/* Hover consistente */
.primary-card:hover {
    transform: translateY(-3px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.15);
}


/* ===== PASTEL SIN REPORTAR ===== */

.danger-card {
    border-top: 3px solid #dc3545;
}

    .danger-card .card-header {
        background: linear-gradient( 90deg, rgba(220, 53, 69, 0.12), rgba(220, 53, 69, 0.02) );
        font-weight: 600;
    }

.danger-chart {
    position: relative;
    height: 280px;
    width: 100%;
    max-width: 360px;
}

    .danger-chart canvas {
        filter: drop-shadow(0 8px 14px rgba(220, 53, 69, 0.25));
    }

/* Hover sutil para coherencia con summary cards */
.danger-card:hover {
    transform: translateY(-3px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(220, 53, 69, 0.15);
}

/* ========== ESTADOS DE INSTALACIONES ========== */

/* Instalación reportando (verde) */
.instalacion-card.instalacion-activa {
    border-left: 4px solid #198754;
    background: #f8fff9;
}

/* Instalación con retraso (amarillo) - entre 24h y 48h */
.instalacion-card.instalacion-con-retraso {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #fffbeb 0%, #fff8e1 100%);
}

.instalacion-card.instalacion-con-retraso .instalacion-header {
    border-bottom-color: #ffe69c;
}

/* Instalación sin reportar (rojo) - más de 48h */
.instalacion-card.instalacion-sin-reportar {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.instalacion-card.instalacion-sin-reportar .instalacion-header {
    border-bottom-color: #f5c2c7;
}

/* KPI Styles */
.kpi-item.kpi-success .kpi-icon,
.kpi-item.kpi-success .kpi-value {
    color: #198754;
}

.kpi-item.kpi-warning .kpi-icon,
.kpi-item.kpi-warning .kpi-value {
    color: #ffc107;
}

.kpi-item.kpi-danger .kpi-icon,
.kpi-item.kpi-danger .kpi-value {
    color: #dc3545;
}


/* Estilos profesionales para tabs de navegación */
.deploy-tabs {
    border-bottom: 2px solid #e5eaef;
    gap: 0.25rem;
}

    .deploy-tabs .nav-link {
        color: #707a82;
        background-color: transparent;
        border: none;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        padding: 0.75rem 1.25rem;
        font-weight: 500;
        transition: all 0.2s ease-in-out;
    }

        .deploy-tabs .nav-link:hover {
            color: #009BF6;
            background-color: #e5f3fb;
            border-bottom-color: #009BF6;
        }

        .deploy-tabs .nav-link.active {
            color: #009BF6;
            background-color: #e5f3fb;
            border-bottom: 3px solid #009BF6;
            font-weight: 600;
        }

        .deploy-tabs .nav-link i {
            opacity: 0.7;
        }

        .deploy-tabs .nav-link.active i,
        .deploy-tabs .nav-link:hover i {
            opacity: 1;
        }

    .deploy-tabs .badge-count {
        background-color: #3A4D61;
        color: white;
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        border-radius: 10px;
        margin-left: 0.5rem;
    }

    .deploy-tabs .nav-link.active .badge-count {
        background-color: #009BF6;
    }

/*Estilos para el contenido del DEPLOY*/
.alcance-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.alcance-card:hover {
    border-color: #009BF6;
    background-color: #f8f9fa;
}

.alcance-card.selected {
    border-color: #009BF6;
    background-color: #e5f3fb;
}

.alcance-card .bi {
    font-size: 1.5rem;
    color: #3A4D61;
}

.alcance-card.selected .bi {
    color: #009BF6;
}

.filtro-cascada {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}



.swal-compact {
    padding: 1rem !important;
}

    .swal-compact .swal2-title {
        font-size: 1.1rem;
    }

    .swal-compact .swal2-html-container {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }

    .swal-compact .swal2-actions {
        margin-top: 0.8rem;
    }