/*
 * Shared Device Information panel styles.
 * Used by both the tech support dashboard (BLE Tools tab, Reports viewer,
 * Database Explorer, OTA Update tab) and the customer-facing BLE pages.
 *
 * The shared JS module support/shared/device-info-render.js emits HTML that
 * relies on these classes. Keep them in sync.
 */

.viewer-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
}

.viewer-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--laqi-navy);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.device-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.device-info-grid .info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    border-left: 3px solid var(--laqi-navy);
}

.device-info-grid .info-item .info-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.device-info-grid .info-item .info-value {
    font-weight: 600;
    color: var(--laqi-navy);
    font-size: 0.95rem;
    word-break: break-word;
}

.flag-category {
    margin: 4px 0;
    line-height: 1.8;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 1px 2px;
    white-space: nowrap;
}

.badge-on {
    background: #d4edda;
    color: #155724;
}

.badge-off {
    background: #e2e3e5;
    color: #6c757d;
}

.badge-hw,
.badge-rt {
    background: #cce5ff;
    color: #004085;
}

.badge-warn {
    background: #f8d7da;
    color: #721c24;
}
