/* ==========================================================================
   DASHBOARD HUB (Executive SCADA & Energy Operations Center)
   Fully Responsive & Compact Styling
   ========================================================================== */

:root {
    --dh-bg-card: #ffffff;
    --dh-border-card: #e2e8f0;
    --dh-text-main: #0f172a;
    --dh-text-muted: #64748b;
    --dh-primary: #0284c7;
    --dh-primary-rgb: 2, 132, 199;
    --dh-success: #10b981;
    --dh-success-rgb: 16, 185, 129;
    --dh-warning: #f59e0b;
    --dh-warning-rgb: 245, 158, 11;
    --dh-danger: #ef4444;
    --dh-danger-rgb: 239, 68, 68;
    --dh-card-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    --dh-card-hover-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.08), 0 3px 5px -2px rgba(0, 0, 0, 0.04);
    --dh-radius: 10px;
}

/* Base Container */
.dh-container {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* 1. Quick Actions Bar */
.dh-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: var(--dh-bg-card);
    border: 1px solid var(--dh-border-card);
    border-radius: var(--dh-radius);
    box-shadow: var(--dh-card-shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dh-quick-actions::-webkit-scrollbar {
    display: none;
}

.dh-quick-actions-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.4rem;
    flex-shrink: 0;
}

.dh-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.dh-action-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dh-action-btn.dh-action-primary {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.dh-action-btn.dh-action-primary:hover {
    background: #0369a1;
    border-color: #0369a1;
}

.dh-action-btn.dh-action-refresh {
    margin-left: auto;
    color: var(--dh-text-muted);
}

.dh-action-btn.dh-action-refresh:hover {
    color: var(--dh-primary);
}

/* 2. Hero KPI Grid */
.dh-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.85rem;
}

.dh-kpi-card {
    background: var(--dh-bg-card);
    border: 1px solid var(--dh-border-card);
    border-radius: var(--dh-radius);
    padding: 0.85rem 1rem;
    box-shadow: var(--dh-card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.dh-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #cbd5e1;
    transition: background 0.2s ease;
}

.dh-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dh-card-hover-shadow);
}

.dh-kpi-card.dh-kpi-boilers::before { background: var(--dh-success); }
.dh-kpi-card.dh-kpi-power::before { background: #f97316; }
.dh-kpi-card.dh-kpi-fuel::before { background: #8b5cf6; }
.dh-kpi-card.dh-kpi-energy::before { background: #0284c7; }
.dh-kpi-card.dh-kpi-alarms::before { background: var(--dh-danger); }

.dh-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.dh-kpi-title {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--dh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dh-kpi-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.dh-kpi-boilers .dh-kpi-icon { background: rgba(16, 185, 129, 0.12); color: var(--dh-success); }
.dh-kpi-power .dh-kpi-icon { background: rgba(249, 115, 22, 0.12); color: #f97316; }
.dh-kpi-fuel .dh-kpi-icon { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.dh-kpi-energy .dh-kpi-icon { background: rgba(2, 132, 199, 0.12); color: var(--dh-primary); }
.dh-kpi-alarms .dh-kpi-icon { background: rgba(239, 68, 68, 0.12); color: var(--dh-danger); }

.dh-kpi-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--dh-text-main);
    line-height: 1.15;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    white-space: nowrap;
}

.dh-kpi-value .dh-kpi-unit {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dh-text-muted);
}

.dh-kpi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--dh-text-muted);
    gap: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
}

.dh-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.45rem;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.dh-badge-success { background: rgba(16, 185, 129, 0.12); color: #047857; }
.dh-badge-warning { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.dh-badge-danger { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.dh-badge-info { background: rgba(2, 132, 199, 0.12); color: #0369a1; }

.dh-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.dh-pulse-dot.dot-green {
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGreen 2s infinite;
}

.dh-pulse-dot.dot-red {
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulseRed 1.5s infinite;
}

.dh-pulse-dot.dot-amber {
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: pulseAmber 2s infinite;
}

@keyframes pulseGreen {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulseRed {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes pulseAmber {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* 3. Alert Hub Banner */
.dh-alert-hub {
    background: #ffffff;
    border: 1px solid var(--dh-border-card);
    border-radius: var(--dh-radius);
    padding: 0.75rem 1rem;
    box-shadow: var(--dh-card-shadow);
    transition: all 0.2s ease;
}

.dh-alert-hub.has-alarms {
    background: #fef2f2;
    border-color: #fca5a5;
}

.dh-alert-hub.all-ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.dh-alert-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dh-alert-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dh-alert-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.dh-alert-hub.has-alarms .dh-alert-icon {
    background: #fee2e2;
    color: #dc2626;
}

.dh-alert-hub.all-ok .dh-alert-icon {
    background: #dcfce7;
    color: #16a34a;
}

.dh-alert-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dh-text-main);
    margin-bottom: 0.1rem;
}

.dh-alert-desc {
    font-size: 0.78rem;
    color: var(--dh-text-muted);
}

.dh-alert-action-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #dc2626;
    color: white;
    transition: background 0.2s;
    white-space: nowrap;
}

.dh-alert-action-btn:hover {
    background: #b91c1c;
}

/* 4. Section Wrapper */
.dh-section {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dh-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dh-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dh-text-main);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.dh-section-title i {
    color: var(--dh-primary);
}

.dh-section-badge {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--dh-text-muted);
}

/* 5. Compact Fleet Grid */
.dh-fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.dh-boiler-card.dh-card-compact {
    background: var(--dh-bg-card);
    border: 1px solid var(--dh-border-card);
    border-radius: var(--dh-radius);
    padding: 0.75rem 0.85rem;
    box-shadow: var(--dh-card-shadow);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 98px;
    position: relative;
    box-sizing: border-box;
}

.dh-boiler-card.dh-card-compact.dh-has-schematic {
    cursor: pointer;
}

.dh-boiler-card.dh-card-compact.dh-has-schematic:hover {
    transform: translateY(-2px);
    box-shadow: var(--dh-card-hover-shadow);
    border-color: #0284c7;
}

.dh-boiler-card.dh-card-compact.dh-no-schematic {
    cursor: default;
    background: #fafafa;
    opacity: 0.95;
}

.dh-boiler-card.dh-card-compact.dh-no-schematic:hover {
    transform: none;
    box-shadow: var(--dh-card-shadow);
    border-color: var(--dh-border-card);
}

.dh-bc-no-schematic-badge {
    font-size: 0.65rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.dh-bc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
    min-height: 2.3rem;
}

.dh-bc-title {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--dh-text-main);
    flex: 1;
    min-width: 0;
}

.dh-bc-title i {
    margin-top: 2px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.dh-bc-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    word-break: break-word;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
}

.dh-bc-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 1px;
}

.dh-bc-status.status-online {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.dh-bc-status.status-offline {
    background: rgba(148, 163, 184, 0.2);
    color: #475569;
}

.dh-bc-body {
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding: 0.2rem 0;
}

.dh-bc-temp {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.dh-bc-temp span.dh-deg {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
}

.dh-bc-temp span.dh-no-conn {
    font-size: 0.78rem;
    font-weight: 600;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dh-bc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--dh-text-muted);
    border-top: 1px solid #f8fafc;
    padding-top: 0.25rem;
    margin-top: 0.15rem;
}

.dh-bc-loc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dh-bc-arrow {
    color: #cbd5e1;
    font-size: 0.65rem;
    transition: transform 0.2s, color 0.2s;
}

.dh-boiler-card.dh-card-compact:hover .dh-bc-arrow {
    transform: translateX(2px);
    color: #0284c7;
}

/* 6. Two-column Operations Grid */
.dh-two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dh-card {
    background: var(--dh-bg-card);
    border: 1px solid var(--dh-border-card);
    border-radius: var(--dh-radius);
    padding: 1rem;
    box-shadow: var(--dh-card-shadow);
    display: flex;
    flex-direction: column;
}

.dh-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.dh-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--dh-text-main);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* Fuel Stock List & Progress Bars */
.dh-fuel-stock-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.dh-fuel-stock-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.dh-fuel-stock-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.dh-stock-boiler-name {
    font-weight: 700;
    color: var(--dh-text-main);
}

.dh-stock-amount-text {
    font-weight: 700;
    color: #1e293b;
}

.dh-stock-bar-track {
    width: 100%;
    height: 7px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.dh-stock-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.dh-stock-bar-fill.fill-green { background: #10b981; }
.dh-stock-bar-fill.fill-yellow { background: #f59e0b; }
.dh-stock-bar-fill.fill-red { background: #ef4444; }

.dh-stock-footer-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--dh-text-muted);
}

.dh-stock-days {
    font-weight: 600;
}

.dh-stock-days.days-critical { color: #dc2626; }
.dh-stock-days.days-ok { color: #059669; }

/* Active Transports Mini Bar */
.dh-active-transports-box {
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #e2e8f0;
}

.dh-transports-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dh-text-muted);
    margin-bottom: 0.4rem;
}

.dh-transport-mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dh-transport-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.55rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.76rem;
}

/* Energy & Weather Card */
.dh-energy-subblock {
    margin-bottom: 0.85rem;
}

.dh-nordpool-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.dh-nordpool-current {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0284c7;
    line-height: 1.1;
}

.dh-nordpool-bars-container {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 52px;
    padding: 4px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.dh-np-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    position: relative;
    min-width: 0;
}

.dh-np-bar {
    width: 100%;
    border-radius: 2px 2px 0 0;
    min-height: 3px;
    transition: height 0.3s ease;
}

.dh-np-bar.np-green { background: #10b981; }
.dh-np-bar.np-yellow { background: #f59e0b; }
.dh-np-bar.np-red { background: #ef4444; }

.dh-np-bar-col.is-now .dh-np-bar {
    outline: 2px solid #0284c7;
    outline-offset: 1px;
}

.dh-np-bar-tooltip {
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    font-size: 0.65rem;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 10;
}

.dh-np-bar-col:hover .dh-np-bar-tooltip {
    opacity: 1;
}

.dh-weather-insight-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.8rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}

.dh-weather-insight-icon {
    font-size: 1.35rem;
    color: #f59e0b;
}

.dh-weather-insight-text {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--dh-text-main);
}

.dh-weather-insight-text strong {
    color: #0284c7;
}

/* 7. Detailed Analytics Accordion */
.dh-analytics-accordion {
    background: var(--dh-bg-card);
    border: 1px solid var(--dh-border-card);
    border-radius: var(--dh-radius);
    overflow: hidden;
    box-shadow: var(--dh-card-shadow);
}

.dh-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--dh-border-card);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.dh-accordion-header:hover {
    background: #f1f5f9;
}

.dh-accordion-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--dh-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dh-accordion-chevron {
    font-size: 0.85rem;
    color: var(--dh-text-muted);
    transition: transform 0.25s ease;
}

.dh-analytics-accordion.collapsed .dh-accordion-chevron {
    transform: rotate(-90deg);
}

.dh-analytics-accordion.collapsed .dh-accordion-body {
    display: none;
}

.dh-accordion-body {
    padding: 1rem;
}

/* ==========================================================================
   RESPONSIVENESS & BREAKPOINTS
   ========================================================================== */

/* Large Desktop (>= 1200px) */
@media (min-width: 1200px) {
    .dh-kpi-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.85rem;
    }
    .dh-fleet-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 0.75rem;
    }
}

/* Medium Desktop / Small Laptop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .dh-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    .dh-fleet-grid {
        grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
        gap: 0.65rem;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .dh-two-col-grid {
        grid-template-columns: 1fr;
    }
    .dh-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
    }
    .dh-fleet-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.6rem;
    }
    .dh-quick-actions-title {
        display: none;
    }
}

/* Small Tablet & Large Mobile (540px - 767px) */
@media (max-width: 767px) and (min-width: 540px) {
    .dh-two-col-grid {
        grid-template-columns: 1fr;
    }
    .dh-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .dh-fleet-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 0.55rem;
    }
    .dh-quick-actions-title {
        display: none;
    }
    .dh-boiler-card.dh-card-compact {
        padding: 0.6rem 0.7rem;
    }
    .dh-bc-temp {
        font-size: 1.35rem;
    }
}

/* Mobile (< 540px) */
@media (max-width: 539px) {
    .dh-container {
        gap: 0.85rem;
    }
    .dh-quick-actions {
        padding: 0.5rem 0.6rem;
        gap: 0.4rem;
    }
    .dh-quick-actions-title {
        display: none;
    }
    .dh-action-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.76rem;
    }
    .dh-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
    }
    .dh-kpi-card {
        padding: 0.7rem 0.75rem;
    }
    .dh-kpi-title {
        font-size: 0.68rem;
    }
    .dh-kpi-value {
        font-size: 1.25rem;
    }
    .dh-kpi-footer {
        font-size: 0.68rem;
    }
    .dh-alert-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .dh-alert-action-btn {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }
    .dh-fleet-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
    }
    .dh-boiler-card.dh-card-compact {
        padding: 0.5rem 0.6rem;
        min-height: 78px;
    }
    .dh-bc-title {
        font-size: 0.76rem;
    }
    .dh-bc-temp {
        font-size: 1.3rem;
    }
    .dh-two-col-grid {
        grid-template-columns: 1fr;
    }
    .dh-card {
        padding: 0.85rem;
    }
}

/* Extra small mobile (< 360px) */
@media (max-width: 359px) {
    .dh-kpi-grid {
        grid-template-columns: 1fr;
    }
    .dh-fleet-grid {
        grid-template-columns: 1fr;
    }
}

/* Skeleton Loaders */
.dh-card-skeleton {
    cursor: default !important;
    background: #ffffff !important;
    border-color: #f1f5f9 !important;
    box-shadow: none !important;
}

.dh-sk-line {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: dhShimmer 1.5s infinite;
    border-radius: 4px;
}

.dh-sk-pill {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: dhShimmer 1.5s infinite;
    border-radius: 10px;
}

@keyframes dhShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

