body { margin:0; font-family:Segoe UI, Arial, sans-serif; background:#f5f6fa; color:#333; }
.navbar { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; background:#2c3e50; color:#fff; position:sticky; top:0; z-index:1100; }
.navbar-brand-wrap { display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.navbar-brand-line { display:flex; align-items:center; }
.navbar-welcome { margin-left:150px; color:#d8e7f2; font-size:0.92rem; font-weight:500; white-space:nowrap; }
.navbar-links-wrap { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.navbar-links { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.navbar-links a { color:#ecf0f1; margin-left:0; text-decoration:none; }
.nav-link {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}
.nav-link.is-active {
    background: rgba(0, 207, 160, 0.16);
    border-color: rgba(0, 207, 160, 0.4);
    color: #6fffd1;
}
.nav-link-logout {
    background: rgba(255, 106, 106, 0.12);
    border-color: rgba(255, 106, 106, 0.25);
}
.nav-link-logout:hover {
    background: rgba(255, 106, 106, 0.22);
}
.navbar-logo-sw { max-height:32px; width:auto; object-fit:contain; }
.navbar-logo-consesum { max-height:34px; width:auto; object-fit:contain; }
.container { max-width:98%; margin:20px auto; padding:0 8px; }
.card { background:#fff; padding:12px; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,0.06); margin-bottom:16px; transition: transform 0.2s ease, border-color 0.2s ease; }
.sticky-filters { position: sticky; top: 52px; z-index: 1050; background: #fff; border-bottom: 2px solid #3498db; margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.table-card { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; border-top: none; }
.table-container { overflow: auto; max-height: calc(100vh - 220px); border: 1px solid #eee; }
.sticky-filters h2 { margin-top: 0; margin-bottom: 8px; font-size: 1.2em; color: #2c3e50; }
.filters { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom: 4px; }
input, select { padding:6px; border:1px solid #ddd; border-radius:6px; font-size: 0.9em; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
button, .btn-secondary { padding:6px 10px; border:none; border-radius:6px; background:#3498db; color:#fff; text-decoration:none; font-size: 0.9em; transition: transform 0.18s ease, filter 0.18s ease; }
.btn-secondary { background:#7f8c8d; }
button:hover, .btn-secondary:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}
table { width:100%; border-collapse:collapse; table-layout: auto; font-size: 0.85em; }
th, td { padding:6px 4px; border-bottom:1px solid #eee; text-align:left; word-wrap: break-word; overflow-wrap: break-word; }
th { background-color: #f8f9fa; font-weight: 600; white-space: nowrap; position: sticky; top: 0; z-index: 10; }
thead th { position: sticky; top: 0; background: #f8f9fa; z-index: 10; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.empty { text-align:center; padding:16px; color:#777; }
.alert { background:#ffecec; color:#c0392b; padding:8px; border-radius:6px; margin-bottom:10px; }

.column-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 1em;
    transition: background 0.2s;
    margin-bottom: 4px;
    border: 1px solid #f0f0f0;
}

.column-option:hover {
    background: #f8f9fa;
}

.column-option input {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-filter-mod {
    background: #27ae60 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.page-header h2 {
    margin: 0;
}

.page-header-subtitle {
    margin: 5px 0 0;
    color: #596c7a;
    font-size: 0.92rem;
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 10px;
}

.kpi-mini-card {
    border: 1px solid #e2e7ee;
    border-radius: 8px;
    padding: 10px;
    background: #f9fbfd;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-mini-card:hover {
    transform: translateY(-2px);
    border-color: #bfd0e1;
}

.kpi-mini-label {
    display: block;
    font-size: 0.75rem;
    color: #6d7f8f;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.kpi-mini-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #213746;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.status-chip:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.status-chip-good {
    background: #e8fbf1;
    color: #1f8f5b;
    border-color: #bfead3;
}

.status-chip-warn {
    background: #fff4df;
    color: #ab7000;
    border-color: #f5d8a4;
}

.status-chip-danger {
    background: #fde8e8;
    color: #b43636;
    border-color: #f0bdbd;
}

.status-chip-neutral {
    background: #edf1f5;
    color: #486173;
    border-color: #d4dee7;
}

.status-chip-info {
    background: #e5f3ff;
    color: #195e99;
    border-color: #b9dcf8;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    background: #eaf4fb;
    border: 1px solid #cfe5f6;
    color: #1c4a66;
    font-size: 0.78rem;
}

.table-container-tight {
    max-height: calc(100vh - 300px);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.filters-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e4eaf0;
    display: flex;
    gap: 10px;
}

.btn-primary-alt {
    padding: 6px 10px;
    border-radius: 6px;
    background: #3498db;
    color: #fff;
    border: 1px solid #3498db;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary-alt:hover {
    background: #2f89c5;
}

.filter-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 15px;
}

.filter-column-label {
    font-weight: 500;
    font-size: 1.02em;
}

.column-option-hidden {
    opacity: 0.72;
}

body.dashboard-body {
    background: #112b3c !important;
    color: #eef2f3 !important;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

body.dashboard-body .navbar {
    background: #0d202d;
    border-bottom: 1px solid #1a3c4a;
}

body.dashboard-body .container {
    max-width: 100%;
    margin: 0;
    padding: 0 18px 24px 18px;
}

.dashboard-body-content {
    min-height: calc(100vh - 65px);
}

.dashboard-header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 20px;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: 1px;
}

.dashboard-title-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.dashboard-title-logo {
    height: 230px;
    width: auto;
    object-fit: contain;
}

.dashboard-header p {
    color: #8fa1ab;
    margin-top: 10px;
    font-size: 0.95rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 280px;
    grid-template-rows: auto auto auto;
    gap: 20px;
    padding: 0 20px 40px 20px;
}

.card-kpi {
    min-height: 120px;
}

.summary-card {
    grid-column: 5;
    grid-row: 1;
}

.detail-card {
    grid-column: 1 / span 2;
}

.top-model-card {
    grid-column: 3 / span 2;
}

.table-card-grid {
    grid-column: span 2;
}

.dashboard-card {
    background: #1a3c4a;
    border-radius: 4px;
    padding: 20px;
    position: relative;
    border-left: 4px solid transparent;
}

.card-title-ribbon {
    position: absolute;
    top: -15px;
    left: 10px;
    background: #00d48a;
    color: #000;
    padding: 5px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
    z-index: 2;
}

.card-title-ribbon.blue { background: #0099ff; color: #fff; }
.card-title-ribbon.yellow { background: #ffcc00; color: #000; }

.stat-value {
    font-size: 2.8rem;
    font-weight: 700;
    display: block;
    text-align: center;
    margin-top: 15px;
}

.stat-value.yellow { color: #ffcc00; }
.stat-value.green { color: #00ff9d; }
.stat-value.blue { color: #00d4ff; }
.stat-value.red { color: #ff5c5c; }

.stat-label {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: #8fa1ab;
    margin-bottom: 5px;
}

.stat-sublabel {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.donut-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 0;
}

.donut-side {
    flex: 1;
    margin-left: 20px;
}

.donut-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#ffcc00 calc(var(--percentage) * 1%), #2c4e5e 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.donut-chart::before {
    content: "";
    position: absolute;
    width: 85px;
    height: 85px;
    background: #1a3c4a;
    border-radius: 50%;
}

.donut-chart span {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1.2rem;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #2c4e5e;
    font-size: 0.9rem;
}

.detail-item span:first-child { color: #ffcc00; }
.detail-item span:last-child { font-weight: 700; }

.summary-list {
    margin-top: 20px;
}

.top-models-wrap {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.top-model-item {
    text-align: center;
    max-width: 46%;
}

.stat-value.compact {
    font-size: 2rem;
    margin-top: 10px;
}

.stat-value.compact small {
    font-size: 0.5em;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.inventory-table th {
    background: #2c4e5e;
    color: #8fa1ab;
    font-weight: 400;
    font-size: 0.8rem;
    text-align: left;
    padding: 8px;
}

.inventory-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #2c4e5e;
    font-size: 0.9rem;
}

.inventory-table td.highlight {
    color: #ffcc00;
    font-weight: 700;
}

.danger-text {
    color: #ff5c5c !important;
}

.sidebar-summary {
    grid-column: 5;
    grid-row: 2 / span 2;
    background: #1a3c4a;
    padding: 15px;
    border-radius: 4px;
}

.sidebar-header {
    text-align: center;
    color: #8fa1ab;
    font-size: 0.9rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #2c4e5e;
    padding-bottom: 10px;
}

.sidebar-item {
    background: #00d48a;
    color: #000;
    padding: 8px 12px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.85rem;
}

.sidebar-stat {
    margin-top: 20px;
    text-align: center;
}

.sidebar-stat-val {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffcc00;
    display: block;
}

.sidebar-stat-label {
    color: #8fa1ab;
    font-size: 0.8rem;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
    padding: 0 20px;
    margin-bottom: 16px;
}

.dashboard-filters-bar {
    margin: 0 20px 16px 20px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(118, 189, 255, 0.28);
    background: linear-gradient(145deg, rgba(16, 35, 56, 0.92), rgba(13, 30, 49, 0.94));
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-item {
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-item.grow {
    flex: 1;
    min-width: 240px;
}

.filter-item label {
    font-size: 0.78rem;
    color: #a9c7df;
    letter-spacing: 0.2px;
}

.filter-item select,
.filter-item input {
    background: #0f2b42;
    border: 1px solid rgba(109, 167, 224, 0.45);
    color: #ecf5ff;
    border-radius: 8px;
    padding: 8px 9px;
    font-size: 0.9rem;
}

.filter-item select:focus,
.filter-item input:focus {
    outline: none;
    border-color: #77d0ff;
    box-shadow: 0 0 0 2px rgba(89, 192, 255, 0.25);
}

.filter-btn {
    border: 1px solid #4ca5d8;
    background: linear-gradient(135deg, #1977a9, #145f88);
    color: #edf8ff;
    border-radius: 8px;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
}

.filter-btn.secondary {
    border: 1px solid rgba(136, 173, 204, 0.45);
    background: rgba(20, 47, 71, 0.85);
}

.filter-btn:hover {
    filter: brightness(1.06);
}

.modern-kpi {
    border: 1px solid rgba(128, 184, 255, 0.22);
    border-left: 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(86, 133, 255, 0.18), transparent 38%),
        linear-gradient(140deg, rgba(15, 37, 60, 0.95), rgba(21, 49, 75, 0.95));
    border-radius: 16px;
    min-height: 132px;
    box-shadow: 0 14px 26px rgba(4, 12, 20, 0.4);
}

#kpi-card-branches-metro,
#kpi-card-branches-foraneo {
    grid-column: span 2;
    min-height: 264px;
}

.kpi-chip {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 204, 0, 0.2);
    color: #ffd85a;
    font-size: 0.72rem;
    letter-spacing: 0.4px;
    font-weight: 700;
}

.kpi-chip.success {
    color: #66ffc8;
    background: rgba(56, 255, 185, 0.16);
}

.kpi-chip.info {
    color: #78ddff;
    background: rgba(89, 192, 255, 0.18);
}

.kpi-chip.danger {
    color: #ff9a9a;
    background: rgba(255, 96, 96, 0.16);
}

.severity-good {
    box-shadow:
        0 0 0 1px rgba(86, 240, 179, 0.45),
        0 14px 26px rgba(4, 12, 20, 0.4);
}

.severity-warn {
    box-shadow:
        0 0 0 1px rgba(255, 197, 103, 0.45),
        0 14px 26px rgba(4, 12, 20, 0.4);
}

.severity-danger {
    box-shadow:
        0 0 0 1px rgba(255, 129, 129, 0.55),
        0 14px 26px rgba(4, 12, 20, 0.4);
}

.dashboard-modern-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    padding: 0 20px 36px 20px;
}

.chart-card {
    grid-column: span 6;
    border-radius: 16px;
    border: 1px solid rgba(118, 189, 255, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(98, 153, 255, 0.15), transparent 40%),
        linear-gradient(145deg, rgba(16, 35, 56, 0.95), rgba(13, 30, 49, 0.96));
    box-shadow: 0 18px 28px rgba(2, 8, 14, 0.45);
}

.card-title-inline {
    font-size: 1rem;
    font-weight: 700;
    color: #d6edff;
    margin-bottom: 6px;
}

.plotly-box {
    width: 100%;
    min-height: 270px;
}

.plotly-box.compact {
    min-height: 220px;
}

.torni-card {
    grid-column: span 4;
    border-radius: 16px;
    border: 1px solid rgba(118, 189, 255, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(98, 153, 255, 0.15), transparent 40%),
        linear-gradient(145deg, rgba(16, 35, 56, 0.95), rgba(13, 30, 49, 0.96));
    box-shadow: 0 18px 28px rgba(2, 8, 14, 0.45);
}

.torni-counters {
    margin-top: 6px;
}

.success-value {
    color: #5af5bc;
}

.panel-card {
    grid-column: span 4;
    border-radius: 16px;
    border: 1px solid rgba(118, 189, 255, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(98, 153, 255, 0.15), transparent 40%),
        linear-gradient(145deg, rgba(16, 35, 56, 0.95), rgba(13, 30, 49, 0.96));
    box-shadow: 0 18px 28px rgba(2, 8, 14, 0.45);
}

.modern-table-card {
    grid-column: span 6;
    border-radius: 16px;
    border: 1px solid rgba(118, 189, 255, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(98, 153, 255, 0.15), transparent 40%),
        linear-gradient(145deg, rgba(16, 35, 56, 0.95), rgba(13, 30, 49, 0.96));
    box-shadow: 0 18px 28px rgba(2, 8, 14, 0.45);
}

.offline-list {
    margin-top: 6px;
    display: grid;
    gap: 8px;
}

.offline-item {
    border: 1px solid rgba(91, 138, 177, 0.4);
    border-radius: 10px;
    padding: 9px 10px;
    background: rgba(9, 21, 35, 0.55);
}

.offline-main {
    color: #e4f2ff;
    font-size: 0.88rem;
    font-weight: 700;
}

.offline-time {
    color: #ffb16d;
    font-size: 0.78rem;
    margin-top: 3px;
}

.offline-empty {
    margin-top: 10px;
    color: #95adc5;
}

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

    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        padding: 0 12px;
    }

    .dashboard-filters-bar {
        margin: 0 12px 14px 12px;
    }

    .dashboard-modern-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        padding: 0 12px 22px 12px;
    }

    .chart-card,
    .modern-table-card {
        grid-column: span 3;
    }

    .torni-card,
    .panel-card {
        grid-column: span 3;
    }

    .summary-card,
    .detail-card,
    .top-model-card,
    .table-card-grid,
    .sidebar-summary {
        grid-column: auto;
        grid-row: auto;
    }
}

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

    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
        padding: 0 8px;
        gap: 12px;
    }

    #kpi-card-branches-metro,
    #kpi-card-branches-foraneo {
        grid-column: 1 / -1;
        min-height: 200px;
    }

    .dashboard-filters-bar {
        margin: 0 8px 12px 8px;
        padding: 10px;
        gap: 8px;
    }

    .filter-item,
    .filter-item.grow {
        width: 100%;
        min-width: 0;
    }

    .filter-btn {
        width: 100%;
    }

    .dashboard-modern-grid {
        grid-template-columns: 1fr;
        padding: 0 8px 18px 8px;
        gap: 12px;
    }

    .chart-card,
    .torni-card,
    .panel-card,
    .modern-table-card {
        grid-column: 1 / -1;
    }

    .dashboard-header h1 {
        font-size: 1.8rem;
    }

    .dashboard-title-wrap {
        gap: 8px;
    }

    .dashboard-title-logo {
        height: 230px;
    }

    .dashboard-grid {
        padding: 0 8px 24px 8px;
        gap: 12px;
    }

    .dashboard-card {
        padding: 14px;
    }
}

body.inventory-body {
    background: #112b3c !important;
    color: #eef2f3 !important;
}

body.inventory-body .navbar {
    background: #0d202d;
    border-bottom: 1px solid #1a3c4a;
}

body.inventory-body .nav-link:hover {
    background: rgba(118, 189, 255, 0.18);
}

body.inventory-body .nav-link.is-active {
    color: #6fffd1;
    border-color: rgba(0, 207, 160, 0.4);
    background: rgba(0, 207, 160, 0.18);
}

body.inventory-body .container {
    max-width: 100%;
    margin: 0;
    padding: 16px 18px 22px 18px;
}

body.inventory-body .card {
    background: #17384b;
    border: 1px solid #2a4d60;
    box-shadow: none;
    border-radius: 6px;
}

body.inventory-body .card:not(.sticky-filters):hover {
    transform: translateY(-2px);
    border-color: #3a7092;
}

body.inventory-body .sticky-filters {
    top: 54px;
    background: #17384b;
    border-bottom: 1px solid #2f5f78;
}

body.inventory-body .sticky-filters h2 {
    color: #eaf4fb;
}

body.inventory-body .page-header-subtitle {
    color: #9bc2d5;
}

body.inventory-body .filters {
    gap: 10px;
}

body.inventory-body input,
body.inventory-body select {
    background: #0f2c3d;
    color: #eaf4fb;
    border: 1px solid #2f5f78;
}

body.inventory-body input::placeholder {
    color: #8fb3c6;
}

body.inventory-body button,
body.inventory-body .btn-secondary {
    background: #00cfa0;
    color: #083040;
    border: 1px solid #00cfa0;
    font-weight: 600;
}

body.inventory-body .btn-secondary {
    background: #2f5f78;
    border-color: #2f5f78;
    color: #dceaf2;
}

body.inventory-body .btn-filter-mod {
    background: #00cfa0 !important;
    color: #083040 !important;
    border: 1px solid #00cfa0;
}

body.inventory-body .kpi-mini-card {
    background: #123246;
    border-color: #2f5f78;
}

body.inventory-body .kpi-mini-label {
    color: #8fb3c6;
}

body.inventory-body .kpi-mini-value {
    color: #ebf6fd;
}

body.inventory-body .status-chip-good {
    background: rgba(0, 207, 160, 0.15);
    color: #6fffd1;
    border-color: rgba(0, 207, 160, 0.38);
}

body.inventory-body .status-chip-warn {
    background: rgba(255, 184, 82, 0.16);
    color: #ffd06b;
    border-color: rgba(255, 184, 82, 0.38);
}

body.inventory-body .status-chip-danger {
    background: rgba(255, 112, 112, 0.16);
    color: #ffafaf;
    border-color: rgba(255, 112, 112, 0.38);
}

body.inventory-body .status-chip-neutral {
    background: rgba(118, 189, 255, 0.14);
    color: #b8ddf3;
    border-color: rgba(118, 189, 255, 0.32);
}

body.inventory-body .status-chip-info {
    background: rgba(77, 180, 255, 0.16);
    color: #9edbff;
    border-color: rgba(77, 180, 255, 0.35);
}

body.inventory-body .active-filter-chip {
    background: #123246;
    border-color: #2f5f78;
    color: #cbe6f5;
}

body.inventory-body .filters-actions {
    border-top-color: #2f5f78;
}

body.inventory-body .btn-primary-alt {
    background: #00cfa0;
    border-color: #00cfa0;
    color: #083040;
}

body.inventory-body .btn-primary-alt:hover {
    background: #08ddb0;
}

body.inventory-body .table-card {
    border-top: 0;
}

body.inventory-body .table-container {
    border: 1px solid #2f5f78;
    background: #133447;
}

body.inventory-body table {
    color: #eaf4fb;
}

body.inventory-body th {
    background: #103247;
    color: #00dcb0;
    border-bottom: 1px solid #2f5f78;
}

body.inventory-body thead th {
    background: #103247;
    box-shadow: none;
}

body.inventory-body td {
    border-bottom: 1px solid #2a4d60;
    transition: background-color 0.2s ease;
}

body.inventory-body .host-main {
    font-weight: 600;
    color: #eaf4fb;
}

body.inventory-body .host-telemetry-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

body.inventory-body .host-telemetry-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    line-height: 1.2;
    padding: 2px 6px;
    border-radius: 999px;
    color: #9edbff;
    border: 1px solid rgba(77, 180, 255, 0.35);
    background: rgba(77, 180, 255, 0.14);
}

body.inventory-body .host-telemetry-chip.is-warn {
    color: #ffd06b;
    border-color: rgba(255, 184, 82, 0.4);
    background: rgba(255, 184, 82, 0.18);
}

body.inventory-body .host-telemetry-chip.is-danger {
    color: #ffafaf;
    border-color: rgba(255, 112, 112, 0.4);
    background: rgba(255, 112, 112, 0.18);
}

body.inventory-body tbody tr:hover {
    background: #1d465b;
}

body.inventory-body .empty {
    color: #9bc2d5;
}

body.inventory-body .column-option {
    background: #133447;
    border: 1px solid #2f5f78;
    color: #eaf4fb;
}

body.inventory-body .column-option:hover {
    background: #1d465b;
}

@media (max-width: 980px) {
    .navbar-brand-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .navbar-welcome {
        margin-left: 0;
    }

    .kpi-row {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .container {
        margin: 14px auto;
        padding: 0 10px;
    }
}

@media (max-width: 680px) {
    .kpi-row {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 10px 10px;
        align-items: flex-start;
    }

    .navbar-brand-wrap,
    .navbar-links-wrap {
        width: 100%;
    }

    .navbar-links-wrap {
        align-items: flex-start;
        gap: 6px;
    }

    .navbar-links {
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
    }

    .nav-link {
        height: 28px;
        padding: 0 9px;
        font-size: 0.82rem;
    }

    .sticky-filters {
        top: 92px;
    }

    .table-container {
        max-height: calc(100vh - 280px);
    }

    th,
    td {
        padding: 7px 5px;
        font-size: 0.82rem;
    }

    .status-chip {
        font-size: 0.71rem;
        padding: 3px 7px;
    }

    .active-filter-chip {
        font-size: 0.74rem;
        padding: 3px 8px;
    }

    body.inventory-body .container {
        padding: 10px 8px 16px 8px;
    }

    .page-header-subtitle {
        line-height: 1.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
