/* blocked-requests.css — Page-specific styles for Blocked Requests viewer
 *
 * Replaces inline styles to comply with CSP (no inline style attributes).
 * Uses CSS custom properties from theme.css for consistency.
 */

/* ─── Score input (filter bar) ────────────────────────────── */
.br-score-input { width: 70px; }

/* ─── Filter bar layout ──────────────────────────────────── */
.br-filter-actions { padding-bottom: 2px; }

/* ─── Table row ──────────────────────────────────────────── */
.br-clickable-row { cursor: pointer; }

/* ─── Score coloring ─────────────────────────────────────── */
.br-score-muted { color: var(--text-muted); }
.br-score-warning { color: var(--warning); }
.br-score-danger { color: var(--danger); }

/* ─── Status: dismissed ──────────────────────────────────── */
.br-status-dismissed {
    text-decoration: line-through;
    opacity: 0.7;
}

/* ─── Detail panel ───────────────────────────────────────── */
.br-detail-pad { padding: 8px 0; }

.br-detail-cell {
    background: var(--bg-tertiary);
    padding: 12px 14px;
}

/* ─── Detail field label ─────────────────────────────────── */
.br-detail-label {
    min-width: 120px;
    color: var(--text-muted);
}

.br-detail-value { word-break: break-all; }

/* ─── FP indicator dot ───────────────────────────────────── */
.br-fp-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: help;
}

.br-fp-green { background: var(--success); }
.br-fp-yellow { background: var(--warning); }
.br-fp-red { background: var(--danger); }

/* ─── Resolve modal ──────────────────────────────────────── */
.br-modal-resolve {
    max-width: 700px;
    width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.br-modal-body-scroll {
    overflow-y: auto;
    flex: 1;
}

/* ─── FP factor list ─────────────────────────────────────── */
.br-factor-list {
    margin: 0 0 16px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.br-factor-item { margin-bottom: 4px; }

/* ─── Modal form fields ──────────────────────────────────── */
.br-form-label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.br-textarea-reason {
    width: 100%;
    min-height: 60px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.85rem;
}

/* ─── Select and input sizing (filter bar) ───────────────── */
.br-select-sm { font-size: 0.82rem; }

.br-input-filter {
    font-size: 0.82rem;
    width: 130px;
}

.br-input-full {
    width: 100%;
    font-size: 0.85rem;
}

/* ─── Match detail section ──────────────────────────────── */
.br-match-section { margin-top: 12px; }

.br-match-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-primary);
}

.br-match-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: var(--bg-secondary);
}

.br-match-header {
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.br-match-rule-id {
    font-family: var(--font-mono, monospace);
    color: var(--primary);
}

.br-match-severity-critical { color: var(--danger); }
.br-match-severity-error    { color: var(--danger); }
.br-match-severity-warning  { color: var(--warning); }
.br-match-severity-notice   { color: var(--text-muted); }

.br-match-msg {
    color: var(--text-secondary);
    margin-top: 4px;
    font-size: 12px;
}

.br-match-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 12px;
    margin-top: 6px;
    font-size: 12px;
}

.br-match-meta dt {
    color: var(--text-muted);
    white-space: nowrap;
}

.br-match-meta dd {
    margin: 0;
    word-break: break-all;
}

.br-match-data {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 3px;
    max-height: 80px;
    overflow-y: auto;
}

/* ─── Loading overlay card ───────────────────────────────── */
.br-loading-card { padding: 32px 48px; }

.br-loading-spinner {
    margin: 0 auto 16px;
}
