﻿.dashboard-card {
    border-radius: 12px;
    transition: 0.2s;
}

    .dashboard-card:hover {
        transform: translateY(-3px);
    }

.dashboard-number {
    font-size: 42px;
    font-weight: bold;
}

.status-online {
    color: green;
    font-weight: bold;
}

.status-warning {
    color: orange;
    font-weight: bold;
}


/* ==========================================================
   Dashboard v2 - header, stat tiles, pipeline, status list
   ========================================================== */

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.dash-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Alert banner */

.alert-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.45);
    color: #fca5a5;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
}

.alert-banner-icon {
    font-size: 1.1rem;
}

/* Stat tiles */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}

.stat-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: 0.15s ease;
}

    .stat-tile:hover {
        border-color: #4b5563;
        transform: translateY(-2px);
        color: inherit;
    }

.stat-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #111827;
    font-size: 20px;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f9fafb;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-top: 2px;
}

/* Ticket pipeline */

.pipeline-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pipeline-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 150px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #e5e7eb;
    transition: 0.15s ease;
}

    .pipeline-item:hover {
        border-color: #4b5563;
        color: #fff;
    }

.pipeline-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 9px;
}

.dot-danger { background: #ef4444; }
.dot-primary { background: #38bdf8; }
.dot-warning { background: #f59e0b; }
.dot-success { background: #22c55e; }

.pipeline-label {
    font-size: 0.85rem;
    color: #d1d5db;
    flex: 1;
}

.pipeline-count {
    font-weight: 700;
    color: #f9fafb;
}

/* Status list (Monitoring & Status card) */

.status-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .status-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 9px 0;
        border-bottom: 1px solid #374151;
        font-size: 0.92rem;
        color: #d1d5db;
    }

    .status-list li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }


/* ==========================================================
   Fix: prevent long unbroken table content (e.g. OS strings)
   from forcing the whole page wider than the viewport.
   ========================================================== */

.table-fixed {
    table-layout: fixed;
    width: 100%;
}

    .table-fixed td,
    .table-fixed th {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.table-responsive {
    max-width: 100%;
}

/* Slightly brighter status-list values for readability */
.status-list li span:first-child {
    color: #cbd5e1;
}


/* Clickable values inside the status list (Devices Online/Offline) */
.status-list .status-link {
    text-decoration: none;
    cursor: pointer;
}

    .status-list .status-link:hover {
        text-decoration: underline;
    }
