/* ============================================================
   NETSENSE IOT - COMPLEMENTO APP-V2.CSS
   Clases específicas para la aplicación actual
   Este archivo complementa app-v2.css sin reemplazarlo
   ============================================================ */

/* ==================== LAYOUT FIXES ==================== */

.container {
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
}

.page-content {
    padding: var(--space-6);
}

/* ==================== STATS GRID ==================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

/* Mejorar stat-cards existentes */
.stats-grid .stat-card {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: var(--space-6);
    border: 1px solid var(--border-primary);
    transition: all 0.2s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stats-grid .stat-card:hover {
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stats-grid .stat-label {
    font-size: var(--text-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.stats-grid .stat-value {
    font-size: 48px !important;
    font-weight: 700;
    line-height: 1.1;
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin: var(--space-2) 0;
}

/* Color variants for stat-value */
.stat-value.neutral {
    color: var(--primary);
}

.stat-value.success {
    color: var(--success);
}

.stat-value.warning {
    color: var(--warning);
}

.stat-value.danger {
    color: var(--danger);
}

/* ==================== TABLE IMPROVEMENTS ==================== */

.table-container {
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.table-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-secondary);
}

.table-title {
    font-size: var(--text-h3);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

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

.table-container thead {
    background: var(--bg-secondary);
}

.table-container th {
    padding: var(--space-4);
    text-align: left;
    font-size: var(--text-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-primary);
}

.table-container td {
    padding: var(--space-4);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
    font-size: var(--text-body);
}

.table-container tbody tr:last-child td {
    border-bottom: none;
}

.table-container tbody tr {
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.table-container tbody tr:hover {
    background: var(--bg-hover);
}

/* ==================== SIDEBAR IMPROVEMENTS ==================== */

.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-primary);
}

.sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-primary);
}

.sidebar-logo {
    font-size: var(--text-h4);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: var(--space-1);
}

.sidebar-subtitle {
    font-size: var(--text-caption);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.sidebar-user {
    padding: var(--space-4);
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-primary);
}

.user-name {
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.user-id {
    font-size: var(--text-caption);
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.sidebar-nav {
    padding: var(--space-4);
}

.sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border-primary);
    margin-top: auto;
}

/* ==================== NAV ITEMS ==================== */

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-1);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: var(--text-body);
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

.nav-item span:first-child {
    font-size: 8px;
}

/* ==================== BUTTONS ==================== */

.btn-logout {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: var(--text-body);
    font-weight: 500;
}

.btn-logout:hover {
    background: var(--bg-hover);
    border-color: var(--border-secondary);
    color: var(--danger);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: var(--text-body);
    font-weight: 500;
    transition: all 0.15s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: var(--text-body);
    font-weight: 500;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-secondary);
    color: var(--text-primary);
}

/* ==================== PAGE HEADER ==================== */

.page-header {
    margin-bottom: var(--space-6);
}

.page-title {
    font-size: var(--text-h1);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    margin-bottom: var(--space-2);
}

.page-subtitle {
    font-size: var(--text-body);
    color: var(--text-muted);
    margin: 0;
}

/* ==================== MODAL FIXES ==================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal.hidden {
    display: none !important;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    background: var(--bg-elevated);
    border-radius: 12px;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border-secondary);
    display: flex;
    flex-direction: column;
    z-index: 2;
    overflow: hidden;
}

.modal-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
}

.modal-title {
    font-size: var(--text-h2);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--space-6);
    max-height: calc(85vh - 140px);
}

/* Chart container fix */
.modal-body canvas {
    max-height: 400px !important;
    width: 100% !important;
    margin: 20px 0;
}

/* Analytics section - more space */
#analyticsContent {
    min-height: 200px;
    margin-bottom: 24px;
}

/* Historical chart container */
#assetChartContainer {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

/* Custom scrollbar for modals */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==================== MONITORING CARDS ==================== */

.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
}

.monitoring-card {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: var(--space-6);
    border: 1px solid var(--border-primary);
    transition: all 0.2s ease;
}

.monitoring-card:hover {
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    cursor: pointer;
}

/* ==================== ASSETS TOOLBAR ==================== */

.assets-toolbar {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

/* ==================== LOGIN IMPROVEMENTS ==================== */

.login-container {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.login-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-xl);
}

.login-logo {
    color: var(--primary);
    font-size: var(--text-body);
    font-weight: 600;
    letter-spacing: 2px;
}

.login-title {
    font-size: var(--text-h2);
    color: var(--text-primary);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .monitoring-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-card {
        max-height: 90vh;
    }
}

@media (max-width: 640px) {
    .table-container {
        overflow-x: auto;
    }
    
    .page-title {
        font-size: var(--text-h2);
    }
    
    .stats-grid .stat-value {
        font-size: 36px !important;
    }
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal.active .modal-backdrop {
    animation: fadeIn 0.3s ease;
}

.modal.active .modal-card {
    animation: slideUp 0.3s ease;
}

/* ==================== UTILITY OVERRIDES ==================== */

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.p-4 {
    padding: var(--space-4);
}

/* ==================== END COMPLEMENTO ==================== */
/* ========================================
   ASSET DETAIL MODAL - REDESIGN
   ======================================== */

.modal-content-wide {
    max-width: 1200px !important;
    width: 95vw !important;
}

.asset-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-primary);
}

.asset-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.asset-modal-body {
    padding: 24px;
    max-height: 75vh;
    overflow-y: auto;
}

/* Top section - 3 columns */
.asset-top-section {
    display: grid;
    grid-template-columns: 140px 220px 1fr;
    gap: 20px;
    margin-bottom: 24px;
    align-items: stretch;
}

.asset-tank-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 8px;
}

.asset-basic-info {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.asset-analytics-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
}

.asset-analytics-card {
    background: var(--bg-tertiary);
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.asset-analytics-card-title {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.asset-analytics-card-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.asset-health-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.asset-health-circle.ok {
    border-color: var(--success);
    color: var(--success);
    background: var(--success-light);
}

.asset-health-circle.warning {
    border-color: var(--warning);
    color: var(--warning);
    background: var(--warning-light);
}

.asset-health-circle.critical {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-light);
}

.asset-analytics-detail {
    flex: 1;
}

.asset-analytics-detail h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.asset-analytics-detail p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.asset-runout-value {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    line-height: 1;
    flex-shrink: 0;
    text-align: center;
}

.asset-runout-unit {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
/* Tank visual column */
.asset-tank-visual {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tank-container-compact {
    width: 80px;
    height: 120px;
    position: relative;
    background: var(--bg-secondary);
    border-radius: 8px 8px 12px 12px;
    overflow: hidden;
    box-shadow: inset 0 0 0 3px #06b6d4;
}

/* Top cap - tapa del tanque */
.tank-container-compact::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 8px;
    background: var(--bg-tertiary);
    border: 3px solid #06b6d4;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    z-index: 10;
}

/* Líneas de nivel horizontales */
.tank-container-compact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            transparent 0px,
            transparent 29px,
            var(--border-primary) 29px,
            var(--border-primary) 30px);
    pointer-events: none;
    z-index: 5;
}

.tank-fill-compact {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transition: height 0.8s ease-out;
    border-radius: 0 0 10px 10px;
}

.tank-percentage-compact {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    z-index: 10;
    font-family: var(--font-mono);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.asset-volume-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.asset-volume-display {
    text-align: center;
}

.asset-volume-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}


.asset-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.asset-info-item {
    display: flex;
    flex-direction: column;
}

.asset-info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.asset-info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}



.asset-analytics-card-title {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.asset-analytics-card-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}
.asset-health-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.asset-health-circle.ok {
    border-color: var(--success);
    color: var(--success);
    background: var(--success-light);
}

.asset-health-circle.warning {
    border-color: var(--warning);
    color: var(--warning);
    background: var(--warning-light);
}

.asset-health-circle.critical {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-light);
}

.asset-analytics-detail {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.asset-runout-value {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    line-height: 1;
    flex-shrink: 0;
    text-align: center;
}

.asset-runout-unit {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Chart section */
.asset-chart-section {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 8px;
}

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

.asset-chart-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asset-chart-container {
    position: relative;
    height: 260px;
}

.asset-chart-container canvas {
    max-height: 300px !important;
}

#chartLoading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}



/* ==================== CHART TOGGLES ==================== */

.chart-toggle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.chart-toggle-item:hover {
    background: var(--bg-hover);
}

.chart-toggle-item input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-secondary);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

/* Checkbox para Nivel (%) - Cyan */
#togglePct {
    border-color: rgb(6, 182, 212);
}

#togglePct:checked {
    background: rgb(6, 182, 212);
    border-color: rgb(6, 182, 212);
}

/* Checkbox para Volumen (L) - Violet */
#toggleLiters {
    border-color: rgb(139, 92, 246);
}

#toggleLiters:checked {
    background: rgb(139, 92, 246);
    border-color: rgb(139, 92, 246);
}

.chart-toggle-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.toggle-label {
    font-size: 12px;
    font-weight: 400;
    font-family: var(--font-sans);
    cursor: pointer;
}

/* Color badges en los labels */
label[for="togglePct"] .toggle-label::before,
#togglePct+.toggle-label::before {
    background: rgb(6, 182, 212);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

label[for="toggleLiters"] .toggle-label::before,
#toggleLiters+.toggle-label::before {
    background: rgb(139, 92, 246);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}
/* Reset Zoom Button */
.btn-reset-zoom {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-reset-zoom:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-reset-zoom span {
    font-size: 16px;
}

.tank-svg-wrapper {
    width: 100px;
    height: 140px;
    margin: 0 auto;
}

.tank-svg-wrapper svg{width:100%;height:100%;display:block;}
.tank-fluid-compact{text-align:center;font-size:11px;color:var(--text-muted);margin-top:4px;}

/* Contenedor: no mover el bloque completo */
.asset-tank-visual .asset-volume-display {
    margin-top: 0;
    /* importante: neutraliza el corrimiento global */
}

/* Mover SOLO el valor (%) */
.asset-tank-visual .asset-volume-value {
    position: relative;
    top: -16px;
    /* sube el número */
}

/* Mover SOLO el texto "Nivel actual" */
.asset-tank-visual .asset-volume-label {
    position: relative;
    top: -20px;
    /* sube el label (ajustable) */
}
/* ========================================
   ASSETS MONITORING - HEALTH MINI BADGE
   ======================================== */

.asset-health-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.asset-health-mini.healthy {
    border-color: var(--success);
    color: var(--success);
    background: var(--success-light, rgba(16, 185, 129, 0.1));
}

.asset-health-mini.warning {
    border-color: var(--warning);
    color: var(--warning);
    background: var(--warning-light, rgba(245, 158, 11, 0.1));
}

.asset-health-mini.critical {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-light, rgba(239, 68, 68, 0.1));
}

.asset-health-mini.neutral,
.asset-health-mini.unknown {
    border-color: var(--text-muted);
    color: var(--text-muted);
    background: transparent;
}

/* ========================================
   STATUS BADGE - VARIANTES ADICIONALES
   ======================================== */

.status-badge.status-healthy {
    background: var(--success-light, rgba(16, 185, 129, 0.1));
    color: var(--success);
    border-color: transparent;
}

.status-badge.status-warning {
    background: var(--warning-light, rgba(245, 158, 11, 0.1));
    color: var(--warning);
    border-color: transparent;
}

.status-badge.status-critical {
    background: var(--danger-light, rgba(239, 68, 68, 0.1));
    color: var(--danger);
    border-color: transparent;
}

.status-badge.status-unknown {
    background: var(--bg-secondary);
    color: var(--text-muted);
    border-color: transparent;
}

/* ========================================
   ALERTS PAGE
   ======================================== */

.alerts-summary-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 16px 20px;
}

.alert-summary-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.alert-summary-pill.critical {
    background: var(--danger-light, rgba(239, 68, 68, 0.1));
    color: var(--danger);
}

.alert-summary-pill.warning {
    background: var(--warning-light, rgba(245, 158, 11, 0.1));
    color: var(--warning);
}

.alert-summary-pill.info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info, #06b6d4);
}

.alert-summary-count {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-mono);
    line-height: 1;
}

.alert-summary-label {
    font-size: 12px;
    opacity: 0.8;
}
/* ========================================
   DASHBOARD - LAYOUT NUEVO
   ======================================== */

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 900px) {
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-panel {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    overflow: hidden;
}

.dashboard-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-primary);
}

.dashboard-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.dashboard-panel-link {
    font-size: 12px;
    color: var(--accent, #06b6d4);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.dashboard-panel-link:hover {
    opacity: 1;
}

.dashboard-empty-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    gap: 4px;
}

/* ========================================
   DASHBOARD - ATTENTION LIST
   ======================================== */

.dashboard-attention-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-primary);
    cursor: pointer;
    transition: background 0.15s;
}

.dashboard-attention-item:last-child {
    border-bottom: none;
}

.dashboard-attention-item:hover {
    background: var(--bg-secondary);
}

.dashboard-attention-indicator {
    width: 3px;
    height: 36px;
    border-radius: 2px;
    flex-shrink: 0;
}

.dashboard-attention-info {
    flex: 1;
    min-width: 0;
}

.dashboard-attention-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-attention-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.dashboard-attention-metrics {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.dashboard-metric-chip {
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 10px;
    font-family: var(--font-mono);
    white-space: nowrap;
}

.dashboard-health-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
}

/* ========================================
   DASHBOARD - ACTIVITY LIST
   ======================================== */

.dashboard-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-primary);
}

.dashboard-activity-item:last-child {
    border-bottom: none;
}

.dashboard-activity-info {
    flex: 1;
    min-width: 0;
}

.dashboard-activity-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-activity-msg {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-activity-time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 2px;
}
/* ========================================
   DASHBOARD - SPARKLINES TABLE
   ======================================== */

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

.sparklines-table thead tr {
    border-bottom: 1px solid var(--border-primary);
}

.sparklines-table th {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    text-align: left;
}

.sparklines-table td {
    padding: 12px 20px;
    vertical-align: middle;
}

.sparkline-row {
    border-bottom: 1px solid var(--border-primary);
    transition: background 0.15s;
}

.sparkline-row:last-child {
    border-bottom: none;
}

.sparkline-row:hover {
    background: var(--bg-secondary);
}

/* ========================================
   KPI - kpi-danger variant
   ======================================== */

.kpi-card.kpi-danger {
    border-left: 3px solid var(--danger);
}

.kpi-card.kpi-danger .kpi-icon {
    background: var(--danger-light, rgba(239, 68, 68, 0.1));
    color: var(--danger);
}
/* ========================================
   MODAL ASSET - NUEVO LAYOUT CONTRATO
   ======================================== */

.asset-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.asset-status-block {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 12px 14px;
    border-left: 3px solid var(--warning);
}

.asset-status-block.ops {
    border-left-color: var(--warning);
}

/* Health circle en modal */
.asset-health-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.asset-health-circle.healthy {
    border-color: var(--success);
    color: var(--success);
    background: var(--success-light, rgba(16, 185, 129, 0.08));
}

.asset-health-circle.warning {
    border-color: var(--warning);
    color: var(--warning);
    background: var(--warning-light, rgba(245, 158, 11, 0.08));
}

.asset-health-circle.critical {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-light, rgba(239, 68, 68, 0.08));
}

.asset-health-circle.neutral {
    border-color: var(--text-muted);
    color: var(--text-muted);
    background: transparent;
}

/* Fila técnica */
/* Fila técnica */
.asset-tech-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-around !important;
    gap: 0 !important;
    padding: 8px 16px !important;
    flex-wrap: nowrap !important;
}

.asset-tech-row .asset-tech-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 12px;
    border-right: 1px solid var(--border-primary);
}

.asset-tech-row .asset-tech-item:first-child {
    padding-left: 0;
}

.asset-tech-row .asset-tech-item:last-child {
    border-right: none;
    padding-right: 0;
}

.asset-tech-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 80px;
}

.asset-tech-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.asset-tech-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.asset-tech-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}
.asset-toggle-btn.toggle-on {
    color: var(--success);
}

.asset-toggle-btn.toggle-on {
    color: var(--success);
}

.asset-toggle-btn.toggle-off {
    color: var(--text-muted);
    opacity: 0.35;
}

/* Acciones en fila horizontal */
.actions-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}
/* =====================================================
   Mi Cuenta — Account Settings
   ===================================================== */

.account-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
}

.account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.account-username {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.account-role-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent);
}

.form-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 8px;
}

.form-msg-success {
    background: color-mix(in srgb, var(--success) 15%, transparent);
    color: var(--success);
    border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
}

.form-msg-error {
    background: color-mix(in srgb, var(--danger) 15%, transparent);
    color: var(--danger);
    border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
}
/* =====================================================
   Notification Rules Grid
   ===================================================== */

.rules-grid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rules-grid-table thead th {
    padding: 12px 16px;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-primary);
    background: var(--bg-tertiary);
}

.rules-grid-table thead th svg {
    display: block;
    margin: 0 auto 4px auto;
}

.rules-grid-table thead th:first-child {
    text-align: left;
    border-top-left-radius: 8px; }

.rules-grid-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-primary);
    text-align: center;
}

.rules-grid-table tbody td:first-child {
    text-align: left;
}

.rules-grid-table tbody tr:hover {
    background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.alert-type-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-primary);
}
.alert-type-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px; }

.rules-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.rules-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.rules-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-primary);
    border-radius: 4px;
    background: var(--bg-primary);
    transition: all 0.2s;
}

.rules-checkbox:hover .checkmark {
    border-color: var(--accent);
}

.rules-checkbox input:checked~.checkmark {
    background: var(--accent);
    border-color: var(--accent);
    position: relative;
}

.rules-checkbox input:checked~.checkmark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #248baa;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg); }

    /* =====================================================
    Thresholds Configuration
    ===================================================== */

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

    .threshold-item {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .threshold-item .form-label {
        font-weight: 500;
        color: var(--text-primary);
        margin-bottom: 2px;
    }

    .threshold-item .form-help {
        font-size: 12px;
        color: var(--text-muted);
        margin-top: 2px;
    }

    .threshold-item .form-input {
        width: 100%;
    }
    /* =====================================================
    Thresholds Table
    ===================================================== */

        .thresholds-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }

        .thresholds-table thead th {
            padding: 10px 12px;
            text-align: left;
            font-weight: 600;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--text-secondary);
            background: var(--bg-tertiary);
            border-bottom: 2px solid var(--border-primary);
            white-space: nowrap;
        }

        .thresholds-table thead th.th-critical {
            color: var(--danger);
        }

        .thresholds-table thead th.th-warning {
            color: var(--warning);
        }

        .thresholds-table tbody td {
            padding: 10px 12px;
            border-bottom: 1px solid var(--border-primary);
            vertical-align: middle;
        }

        .thresholds-table tbody tr:hover {
            background: color-mix(in srgb, var(--accent) 4%, transparent);
        }

        .thresholds-table tbody tr:last-child td {
            border-bottom: none;
        }

        .threshold-input {
            width: 72px;
            padding: 5px 8px;
            border: 1px solid var(--border-primary);
            border-radius: 6px;
            background: var(--bg-primary);
            color: var(--text-primary);
            font-size: 13px;
            text-align: center;
        }

        .threshold-input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .threshold-input::placeholder {
            color: var(--text-muted);
            font-size: 11px;
        }

        .threshold-asset-name {
            font-weight: 500;
            color: var(--text-primary);
        }

        .threshold-asset-id {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .threshold-label-critical {
            color: var(--danger) !important;
        }

        .threshold-label-warning {
            color: var(--warning) !important;
        }

        .btn-reset-thresholds {
            font-size: 11px;
            padding: 4px 8px;
            border-radius: 4px;
            border: 1px solid var(--border-primary);
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            white-space: nowrap;
        }

        .btn-reset-thresholds:hover {
            border-color: var(--danger);
            color: var(--danger);
        }
/* ─── DATA FRESHNESS INDICATOR ───────────────────── */
.data-freshness-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px 10px;
    border-top: 1px solid var(--border-primary);
}

.freshness-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.freshness-label {
    font-size: 11px;
    color: var(--text-muted);
}

.freshness-ok .freshness-dot,
.freshness-dot.freshness-ok {
    background: var(--success);
    box-shadow: 0 0 4px var(--success);
}

.freshness-warn .freshness-dot,
.freshness-dot.freshness-warn {
    background: var(--warning);
    box-shadow: 0 0 4px var(--warning);
}

.freshness-old .freshness-dot,
.freshness-dot.freshness-old {
    background: var(--danger);
    box-shadow: 0 0 4px var(--danger);
}

.freshness-no-data .freshness-dot,
.freshness-dot.freshness-no-data {
    background: var(--text-muted);
}

/* ─── CHART TABS ──────────────────────────────────── */
.chart-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
}

.chart-tab {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Inter', system-ui, sans-serif;
}

.chart-tab:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.chart-tab.active {
    color: var(--text-primary);
    background: var(--bg-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);                               }

/* === MODAL ASSET - ESTADO UNIFICADO === */
.asset-status-unified {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
}

.asset-status-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.asset-health-circle-compact {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.asset-health-circle-compact.healthy {
    border-color: var(--success);
    color: var(--success);
    background: var(--success-light);
}

.asset-health-circle-compact.warning {
    border-color: var(--warning);
    color: var(--warning);
    background: var(--warning-light);
}

.asset-health-circle-compact.critical {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-light);
}

.asset-health-circle-compact.neutral {
    border-color: var(--text-muted);
    color: var(--text-muted);
    background: var(--bg-tertiary);
}

.asset-status-details {
    flex: 1;
}

.asset-health-reason {
    font-size: 13px;
    font-weight: 600;
    color: var(--warning);
    margin-top: 4px;
}

.asset-health-contributors {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Fila técnica compacta */
.asset-tech-row-compact {
    display: flex;
    justify-content: space-around;
    padding: 12px 16px;
    gap: 8px;
}

.asset-tech-item-compact {
    display: flex;
    align-items: center;
    gap: 6px;
}

.asset-tech-icon-sm {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.asset-tech-item-compact .asset-tech-value {
    font-size: 12px;
    color: var(--text-secondary);                                                                   
}

.asset-tech-item-compact .asset-tech-value {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Badge sensor LoRaWAN */
.sensor-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 4px;
    margin-right: 8px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .sensor-badge {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 2px 4px rgba(29, 78, 216, 0.3);
}

/* Extra info en tarjeta de health */

/* Extra info en tarjeta de health */
.asset-status-extra {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-primary);
}

.asset-status-extra-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.asset-status-extra-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asset-status-extra-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
/* Lista de info en Col 2 */
.asset-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.asset-info-item-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 12px;
}

.asset-info-item-row .asset-info-label {
    font-size: 12px;
    color: var(--text-muted);
}

.asset-info-item-row .asset-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

/* ═══ HEALTH DOUGHNUT ═══ */
.health-doughnut-container {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.health-doughnut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.health-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.health-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.health-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.health-doughnut-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
}

/* ═══ ASSET STATUS CARD - 4 COLUMNAS ═══ */
.asset-status-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.5fr 0.8fr;
    gap: 20px;
    background: var(--bg-secondary, #111827);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.asset-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Col 1: Nivel */
.asset-col-level {
    align-items: center;
    text-align: center;
    border-right: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    padding-right: 16px;
}

.asset-col-level .tank-svg-wrapper {
    max-height: 100px;
}

.asset-col-level .asset-volume-display {
    margin-top: 4px;
}

.asset-col-level .asset-volume-value {
    font-size: 22px;
    font-weight: 700;
}

.asset-col-level .asset-volume-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Col 2: Info */
.asset-col-info {
    border-right: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    padding-right: 16px;
}

.asset-col-info .asset-info-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.asset-col-info .asset-info-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.asset-col-info .asset-info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: none;
}

.asset-col-info .asset-info-value {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}

/* Col 3: Health */
.asset-col-health {
    border-right: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    padding-right: 16px;
}

.health-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.asset-col-health .health-doughnut-container {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.asset-col-health .health-doughnut-center {
    font-size: 20px;
}

.health-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.health-extra {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
}

.health-extra-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.health-extra-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.health-extra-value {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Col 4: Dispositivo */
.asset-col-tech {
    padding-left: 4px;
}

.tech-badge-row {
    min-height: 20px;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-icon {
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
    flex-shrink: 0;
}

.tech-value {
    font-size: 12px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive */
@media (max-width: 900px) {
    .asset-status-card {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .asset-col-level,
    .asset-col-info,
    .asset-col-health {
        border-right: none;
        padding-right: 0;
    }

    .asset-col-level,
    .asset-col-health {
        border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
        padding-bottom: 16px;
    }
}
/* ═══ ALERTS PAGE IMPROVEMENTS ═══ */

/* Pills clickeables */
.alert-summary-pill {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.alert-summary-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.alert-summary-pill.active {
    border-color: currentColor;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.alert-summary-pill.critical.active {
    border-color: var(--danger, #ef4444);
}

.alert-summary-pill.warning.active {
    border-color: var(--warning, #f59e0b);
}

.alert-summary-pill.info.active {
    border-color: var(--info, #06b6d4);
}

/* Botón refresh compacto */
.btn-icon-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--bg-secondary, #111827);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon-sm:hover {
    background: var(--bg-tertiary, #1a2142);
    color: var(--text-primary);
}

/* Empty state compacto */
.alerts-empty-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
    color: var(--text-secondary);
    font-size: 13px;
}

.alerts-empty-compact svg {
    color: var(--success, #10b981);
    flex-shrink: 0;
}

.alerts-empty-compact strong {
    color: var(--text-primary);
}

/* Severity dot en tabla */
.severity-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.severity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.severity-dot.critical {
    background: var(--danger, #ef4444);
}

.severity-dot.warning {
    background: var(--warning, #f59e0b);
}

.severity-dot.info {
    background: var(--info, #06b6d4);
}

/* Alert status badges */
.alert-status-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.alert-status-badge.active {
    color: var(--warning, #f59e0b);
}

.alert-status-badge.resolved {
    color: var(--success, #10b981);
}