/* ════════════════════════════════════════════════════════════
   enkelvoudig.css — Noise filter, resultaten tabel, detail,
                     badges, NLP bars, scores, rapport stijlen
   ════════════════════════════════════════════════════════════ */

/* ── Noise Filter (collapsible — enkelvoudig) ── */
.noise-collapse {
    border: 1px solid var(--border2);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.noise-collapse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px;
    cursor: pointer;
    background: var(--white);
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    user-select: none;
    transition: background 0.15s;
}
.noise-collapse-header:hover { background: var(--bg); }
.noise-collapse-body { background: var(--white); }
.noise-section {
    padding: 12px 14px;
    border-top: 1px solid var(--border);
}
.noise-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.noise-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.noise-tab {
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--border2);
    background: var(--white);
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.noise-tab.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}
/* Batch noise-tab gebruikt .actief */
.noise-tab.actief {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.noise-tab-badge {
    display: inline-block;
    background: var(--orange);
    color: white;
    border-radius: 10px;
    font-size: 9px;
    padding: 0 5px;
    margin-left: 3px;
    font-weight: 700;
    vertical-align: middle;
}
.noise-words { display: flex; flex-wrap: wrap; gap: 5px; }
.noise-word {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border2);
    background: var(--white);
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
    user-select: none;
}
.noise-word:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-bg); }
.noise-word.actief {
    background: var(--orange-bg);
    border-color: var(--orange);
    color: var(--orange);
    font-weight: 700;
    text-decoration: line-through;
}
#noise-btn-badge {
    display: none;
    background: var(--orange);
    color: white;
    border-radius: 10px;
    font-size: 9px;
    padding: 1px 5px;
    margin-left: 4px;
    font-weight: 700;
    vertical-align: middle;
}

/* ── Results table (enkelvoudig) ── */
.results-table {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.results-table table { width: 100%; border-collapse: collapse; }
.results-table thead tr {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.results-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--muted);
    text-transform: uppercase;
    white-space: nowrap;
}
.results-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.results-table tr:last-child td { border-bottom: none; }
.results-table tbody tr:hover { background: #fafbfc; }
.results-table tr.vessel-separator td { padding: 6px 14px; }
.results-table tr.vessel-separator:hover { background: var(--bg); cursor: default; }

/* ── Detail row (enkelvoudig) ── */
.detail-row { background: var(--bg); }
.detail-row td { padding: 0; border-bottom: 1px solid var(--border); }
.detail-inner {
    padding: 14px 14px 14px 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.detail-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 3px;
}
.detail-field span { font-size: 12px; color: var(--text); }

/* ── NLP bars ── */
.nlp-bars { grid-column: 1 / -1; }
.nlp-bars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
}
.bar-item { display: flex; flex-direction: column; gap: 3px; }
.bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted);
}
.bar-header span:last-child { font-weight: 600; color: var(--text); }
.bar-track { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 2px; background: var(--accent); transition: width 0.4s ease; }

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-type       { background: var(--accent-bg); color: var(--accent); }
.badge-exact      { background: var(--green-bg);  color: var(--green); border: 1px solid #a7f3d0; }
.badge-name-match { background: var(--green-bg);  color: var(--green); border: 1px solid #a7f3d0; }
.badge-alias      { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 2px; }
.match-via { font-size: 11px; color: var(--muted); margin-left: 4px; }
.badge-program { background: var(--bg); color: var(--muted); border: 1px solid var(--border2); }
.badge-FULL_BLOCK          { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.badge-SECTORAL            { background: #fef3c7; color: #d97706; border: 1px solid #fcd34d; }
.badge-EXPORT_CONTROL      { background: #ede9fe; color: #7c3aed; border: 1px solid #c4b5fd; }
.badge-INVESTMENT_BAN      { background: #fce7f3; color: #be185d; border: 1px solid #f9a8d4; }
.badge-DENIED_PARTY        { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.badge-UNVERIFIED          { background: #fef9c3; color: #92400e; border: 1px solid #fde68a; }
.badge-MILITARY_END_USER   { background: #f1f5f9; color: #334155; border: 1px solid #94a3b8; }
.badge-BANKING_RESTRICTION { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }
.badge-DEBARMENT           { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }
.badge-VESSEL_SANCTION     { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.badge-AIRCRAFT_SANCTION   { background: #f0f9ff; color: #0284c7; border: 1px solid #7dd3fc; }
.badge-trust-hoog { background: var(--green-bg);  color: var(--green); }
.badge-trust-mid  { background: var(--orange-bg); color: var(--orange); }
.badge-trust-laag { background: var(--red-bg);    color: var(--red); }

.score-cell { font-size: 14px; font-weight: 700; }
.score-cell.high { color: var(--green); }
.score-cell.mid  { color: var(--orange); }
.score-cell.low  { color: var(--red); }
