body { font-size: 14px; }

.sidebar { min-width: 240px; flex-shrink: 0; }

.machine-item {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dee2e6;
    transition: background 0.15s;
    margin-bottom: 2px;
}
.machine-item:hover { background: #343a40; }
.machine-item.active { background: #0d6efd; color: #fff; }

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot.online  { background: #20c997; }
.status-dot.offline { background: #6c757d; }

.stat-card { border: 1px solid #dee2e6; }
.stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: 0.72rem; color: #6c757d; margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }

.badge-online  { background: #d1fae5; color: #065f46; }
.badge-offline { background: #f3f4f6; color: #6b7280; }

#qrResult .alert { font-size: 0.8rem; margin-bottom: 0; }

canvas { max-width: 100%; }

/* scrollbar for sidebar */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #495057; border-radius: 2px; }
