:root {
    --bg: #07151f;
    --bg-strong: #0b1725;
    --panel: rgba(15, 27, 38, 0.96);
    --panel-alt: rgba(12, 23, 32, 0.96);
    --panel-soft: rgba(17, 31, 42, 0.9);
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(148, 163, 184, 0.28);
    --text: #edf7ff;
    --muted: #9bb3c7;
    --primary: #48d1d9;
    --primary-2: #6ea8fe;
    --success: #2dcf9f;
    --warning: #f5b84c;
    --danger: #f26c64;
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: radial-gradient(circle at top left, rgba(72, 209, 217, 0.12), transparent 28%),
                linear-gradient(135deg, #06141f 0%, #0b1d2a 45%, #102535 100%);
    color: var(--text);
    font-family: Inter, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
}

button, input, select, textarea {
    font: inherit;
}

button { cursor: pointer; }

button a,
a.button-link {
    text-decoration: none;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    display: flex;
    width: 280px;
    border-right: 1px solid var(--line);
    background: rgba(8, 17, 25, 0.9);
    padding: 24px 18px 18px;
    flex-direction: column;
    gap: 24px;
    transition: width 0.25s ease, transform 0.25s ease;
}

.sidebar-shell {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 24px;
    min-height: 100%;
    width: 100%;
    transition: width 0.25s ease;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 30, 42, 0.7);
    padding: 12px 12px;
}

.brand-copy {
    min-width: 0;
}

.sidebar-toggle,
.mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(17, 29, 39, 0.9);
    color: var(--text);
    font-size: 1.1rem;
}

.logout-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(242, 108, 100, 0.4);
    background: rgba(242, 108, 100, 0.08);
    color: #ffd7d4;
    padding: 12px 14px;
    font-weight: 700;
}

.logout-icon {
    font-size: 1.05rem;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #06141f;
    font-weight: 800;
    font-size: 1.4rem;
}

.brand-name {
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.72rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-group-label {
    padding: 0 10px;
    margin-top: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(72, 209, 217, 0.08);
    border-color: rgba(72, 209, 217, 0.24);
}

.nav-icon {
    color: var(--primary);
    font-size: 1rem;
}

.sidebar-footer {
    margin-top: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(12, 23, 32, 0.9);
    padding: 16px 14px;
}

.mini-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot.online { background: var(--success); }
.dot.warning { background: var(--warning); }
.dot.cyan { background: var(--primary); }
.dot.amber { background: var(--warning); }

.main-panel {
    flex: 1;
    padding: 26px 30px 30px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.topbar h1,
.panel-head h2,
.page-header h1 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.topbar h1 {
    font-size: clamp(1.9rem, 2.3vw, 2.7rem);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(15, 28, 38, 0.8);
}

.search-box input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--muted);
    outline: none;
}

.ghost-btn,
.primary-btn,
.secondary-btn {
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 10px 14px;
    transition: transform 0.2s ease;
}

.ghost-btn {
    background: rgba(17, 29, 39, 0.9);
    color: var(--text);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #06141f;
    border: none;
    font-weight: 700;
}

.secondary-btn {
    background: rgba(72, 209, 217, 0.1);
    color: var(--text);
}

.ghost-btn:hover,
.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-1px);
}

.page-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.kpi-card {
    background: linear-gradient(180deg, rgba(18, 31, 41, 0.96), rgba(8, 19, 27, 0.96));
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.kpi-card.info {
    border-color: rgba(79, 133, 255, 0.4);
}

.kpi-card.positive {
    border-color: rgba(45, 207, 159, 0.35);
}

.kpi-card.warning {
    border-color: rgba(245, 184, 76, 0.4);
}

.kpi-card.danger {
    border-color: rgba(242, 108, 100, 0.4);
}

.kpi-card.neutral {
    border-color: rgba(148, 163, 184, 0.35);
}

.kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.kpi-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kpi-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.kpi-dot.info { background: #4f85ff; }
.kpi-dot.positive { background: var(--success); }
.kpi-dot.warning { background: var(--warning); }
.kpi-dot.danger { background: var(--danger); }
.kpi-dot.neutral { background: #94a3b8; }

.kpi-label {
    color: var(--muted);
    font-size: 0.8rem;
}

.kpi-trend {
    display: inline-flex;
    border-radius: 999px;
    font-size: 0.72rem;
    padding: 4px 8px;
    background: rgba(45, 207, 159, 0.12);
    color: var(--success);
}

.kpi-trend.down {
    background: rgba(242, 108, 100, 0.12);
    color: var(--danger);
}

.kpi-value {
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 8px;
}

.kpi-foot {
    color: var(--muted);
    font-size: 0.8rem;
}

.content-grid {
    display: grid;
    gap: 20px;
}

.top-grid {
    grid-template-columns: 1.7fr 1fr;
}

.lower-grid {
    grid-template-columns: 1.6fr 1fr;
}

.panel {
    padding: 20px;
    background: rgba(10, 23, 32, 0.92);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.station-list,
.alert-list {
    display: grid;
    gap: 14px;
}

.station-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(12, 23, 33, 0.9);
    padding: 16px 18px;
}

.station-card.warning { border-color: rgba(245, 184, 76, 0.45); }
.station-card.critical { border-color: rgba(242, 108, 100, 0.45); }

.station-top,
.station-foot,
.station-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.station-name {
    font-weight: 700;
    margin-bottom: 4px;
}

.station-location,
.station-foot,
.station-stats span,
.alert-meta,
.legend-row {
    color: var(--muted);
    font-size: 0.8rem;
}

.status-badge,
.table-status,
.filter-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
}

.status-badge.online,
.table-status.online {
    background: rgba(45, 207, 159, 0.12);
    color: var(--success);
}

.status-badge.warning,
.table-status.warning {
    background: rgba(245, 184, 76, 0.12);
    color: var(--warning);
}

.status-badge.critical,
.table-status.offline {
    background: rgba(242, 108, 100, 0.12);
    color: var(--danger);
}

.station-stats {
    margin: 16px 0 14px;
    align-items: flex-end;
}

.station-stats div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.station-stats strong {
    font-size: 1.04rem;
}

.progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}

.progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--success));
}

.station-foot {
    margin-top: 14px;
    font-size: 0.78rem;
}

.alert-item {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(12, 21, 30, 0.9);
    padding: 12px 10px;
}

.alert-item.warning .alert-dot { background: var(--warning); }
.alert-item.critical .alert-dot { background: var(--danger); }

.alert-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
}

.alert-body {
    min-width: 0;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.alert-time {
    color: var(--muted);
    font-size: 0.74rem;
}

.segment-control {
    display: inline-flex;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    padding: 6px;
}

.segment-control span {
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--muted);
    font-size: 0.74rem;
}

.segment-control span.active {
    background: rgba(72, 209, 217, 0.12);
    color: var(--text);
}

.chart-box {
    height: 230px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(6, 16, 24, 0.7);
    padding: 16px 12px 8px;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.grid-lines line {
    stroke: rgba(155, 180, 199, 0.16);
    stroke-width: 1;
}

.axis-line {
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: 1;
}

.chart-line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-line-secondary {
    stroke: #f5b84c;
}

.status-line {
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.time-label {
    fill: var(--muted);
    font-size: 10px;
    text-anchor: middle;
}

.chart-tooltip {
    position: absolute;
    right: 12px;
    top: 12px;
    min-width: 170px;
    background: linear-gradient(180deg, rgba(12, 22, 31, 0.96), rgba(9, 15, 20, 0.96));
    border: 1px solid rgba(120, 145, 168, 0.45);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(7px);
    pointer-events: none;
}

.tooltip-title {
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.tooltip-content {
    font-size: 0.8rem;
    color: var(--text);
    font-weight: 600;
}

.chart-status-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.toggle-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
    color: var(--text);
    font-size: 0.78rem;
}

.toggle-chip input {
    accent-color: var(--primary);
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.dot-cyan { background: #4ea1ff; }
.dot-amber { background: #f5b84c; }
.dot-green { background: #2dcf9f; }
.dot-red { background: #ff6b6b; }
.dot-slate { background: #94a3b8; }

.legend-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(10, 19, 30, 0.72);
    color: var(--text);
    font-size: 0.8rem;
}

.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: radial-gradient(circle at top, rgba(72, 209, 217, 0.14), transparent 30%), linear-gradient(135deg, #06141f 0%, #0b1d2a 45%, #102535 100%);
}

.login-page {
    width: min(100%, 420px);
}

.login-card {
    background: rgba(10, 22, 31, 0.96);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: var(--shadow);
}

.login-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.login-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-btn {
    width: 100%;
    padding: 12px 16px;
    font-weight: 800;
}

.login-error {
    border: 1px solid rgba(242,108,100,0.4);
    background: rgba(242,108,100,0.08);
    color: #ffd7d4;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.88rem;
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
}

.data-table th {
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.table-panel {
    overflow: hidden;
}

.station-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: rgba(7, 17, 23, 0.72);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.station-table thead th {
    background: rgba(18, 33, 43, 0.95);
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.station-table tbody td {
    padding: 16px 16px;
    border-bottom: 1px solid rgba(154, 177, 196, 0.12);
    vertical-align: top;
    line-height: 1.6;
    color: var(--text);
}

.station-table tbody tr:last-child td {
    border-bottom: none;
}

.station-table tbody tr:hover {
    background: rgba(72, 209, 217, 0.03);
}

.station-table-name {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.4;
}

.station-table small {
    color: var(--muted);
    display: block;
    line-height: 1.5;
}

.station-table .table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
}

.page-header h1 {
    font-size: clamp(1.8rem, 2vw, 2.4rem);
}

.page-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar,
.filter-grid,
.table-actions,
.metric-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-grid {
    margin-bottom: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.field label {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(15, 28, 38, 0.8);
    color: var(--text);
    padding: 10px 12px;
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.summary-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.info-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: rgba(12, 21, 29, 0.9);
}

.info-card .meta {
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1.8rem;
}

.device-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.status-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(12, 22, 31, 0.9);
    padding: 18px;
}

.status-card h3 {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-card strong {
    font-size: 1.7rem;
}

.status-card .sub {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 8px;
}

.empty-box {
    padding: 24px;
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    text-align: center;
    color: var(--muted);
}

.table-link,
.primary-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.primary-link:hover,
.table-link:hover {
    text-decoration: underline;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 12, 0.68);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    padding: 20px;
}

.modal-card {
    width: min(560px, 100%);
    background: rgba(10, 19, 28, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.modal-header,
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.modal-header {
    margin-bottom: 18px;
}

.modal-card h3 {
    margin: 0;
    font-size: 1.4rem;
}

.modal-body {
    display: grid;
    gap: 16px;
}

.modal-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.modal-toggle-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
}

.checkbox-field input {
    width: 16px;
    height: 16px;
}

.ghost-btn.danger {
    border-color: rgba(242, 108, 100, 0.4);
    color: var(--danger);
}

.compact-actions {
    white-space: nowrap;
}

.sidebar-shell.is-collapsed {
    width: 92px;
}

.sidebar-shell.is-collapsed .brand-copy,
.sidebar-shell.is-collapsed .nav-item span:last-child,
.sidebar-shell.is-collapsed .nav-group-label,
.sidebar-shell.is-collapsed .sidebar-footer,
.sidebar-shell.is-collapsed .logout-btn span:last-child {
    display: none;
}

.sidebar-shell.is-collapsed .brand-block {
    justify-content: center;
}

.sidebar-shell.is-collapsed .nav-item {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
}

.sidebar-shell.is-collapsed .logout-btn {
    padding-left: 8px;
    padding-right: 8px;
}

@media (max-width: 1100px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .kpi-grid,
    .summary-panel,
    .device-status-grid,
    .top-grid,
    .lower-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .app-shell {
        position: relative;
    }

    .sidebar-toggle,
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
        z-index: 40;
        transform: translateX(-100%);
        box-shadow: var(--shadow);
        border-right: 1px solid var(--line);
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(2, 8, 12, 0.62);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 35;
    }

    .sidebar-backdrop.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .main-panel {
        padding: 18px 16px 24px;
    }

    .topbar,
    .page-header,
    .topbar-actions,
    .page-actions,
    .topbar-leading {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-leading {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .kpi-grid,
    .summary-panel,
    .device-status-grid,
    .top-grid,
    .lower-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        min-width: 100%;
    }

    .data-table,
    .station-table {
        min-width: 720px;
    }

    .panel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
/* Style cơ bản cho Status Pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 9999px; /* Tạo dạng hình viên thuốc (pill) */
    text-transform: capitalize;
    letter-spacing: 0.025em;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* 1. Mức độ Khẩn cấp / Nguy hiểm (Critical / Danger) */
.status-pill.critical,
.status-pill.danger {
    color: #991b1b;
    background-color: #fef2f2;
    border-color: #fecaca;
}

/* 2. Mức độ Cảnh báo (Warning) */
.status-pill.warning {
    color: #9a3412;
    background-color: #fff7ed;
    border-color: #fed7aa;
}

/* 3. Mức độ Thông tin / Bình thường (Info) */
.status-pill.info {
    color: #075985;
    background-color: #f0f9ff;
    border-color: #bae6fd;
}

/* 4. Mức độ An toàn / Thành công (Success / Resolved) */
.status-pill.success {
    color: #166534;
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

/* 5. Mức độ Mặc định / Không xác định (Default / Muted) */
.status-pill.default {
    color: #374151;
    background-color: #f3f4f6;
    border-color: #e5e7eb;
}

