/**
 * Finckers — generieke opmaak voor de API-output.
 * Herbruikbaar voor alle API's (css.finckers). Kleuren staan hier,
 * niet in Tailwind-utility-classes.
 *
 * BEWUST alles in px (geen rem/em): de output wordt via <script> op vreemde
 * sites geïnjecteerd. rem erft de root-font-size van díe site — is die klein
 * of groot, dan schaalt onze hele tabel mee. Met px liggen de verhoudingen
 * vast, onafhankelijk van de host. Zet daarom nieuwe waarden ook in px.
 */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Knoppen ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
}

/* Conversieknoppen (bijv. "Aanvragen") */
.btn-success { background: #16a34a; color: #ffffff; }
.btn-success:hover { background: #15803d; }

/* Overige acties (bijv. filter toepassen, reactie plaatsen) */
.btn-primary { background: #2563eb; color: #ffffff; }
.btn-primary:hover { background: #1d4ed8; }

/* ---------- Tabel ---------- */
.fnckrs-table-scroll { overflow-x: auto; }

.fnckrs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
}
.fnckrs-table thead th {
    background: #f9fafb;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}
.fnckrs-table tbody td {
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
    vertical-align: middle;
}
.fnckrs-table tbody tr:hover td { background: #f9fafb; }

.fnckrs-sortable { cursor: pointer; user-select: none; }
.fnckrs-sortable:hover { color: #2563eb; }
.fnckrs-sort { margin-left: 5px; font-size: 11px; color: #6b7280; }

/* Gekozen looptijd-kolom (deposito's) subtiel accentueren. */
.fnckrs-table thead th.fnckrs-col-active { background: #eff6ff; color: #1d4ed8; }
.fnckrs-table tbody td.fnckrs-col-active { background: #eff6ff; font-weight: 600; color: #111827; }
.fnckrs-muted { color: #9ca3af; }

.fnckrs-provider-cell { display: flex; align-items: center; gap: 12px; }
.fnckrs-provider { font-weight: 500; color: #111827; }
.fnckrs-sub { color: #6b7280; font-size: 12px; }
.fnckrs-rate { font-weight: 600; color: #111827; text-align: right; white-space: nowrap; }
.fnckrs-center { text-align: center; }
.fnckrs-empty { padding: 24px; text-align: center; color: #6b7280; }

/* Logo — vaste breedte zodat alle logo's even breed zijn */
.fnckrs-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 24px;
    flex: none;
    overflow: hidden;
}
.fnckrs-logo img { max-width: 60px; max-height: 24px; width: auto; height: auto; }

.fnckrs-flag { height: 16px; width: auto; border-radius: 2px; vertical-align: middle; }

/* Mobiel: geen logo en landvlag zodat er geen horizontale scroll nodig is. */
@media (max-width: 639px) {
    .fnckrs-logo { display: none; }
    .fnckrs-flag-cell { display: none; }
    .fnckrs-table thead th,
    .fnckrs-table tbody td { padding: 8px 6px; }
    .fnckrs-table .btn { padding: 6px 9px; font-size: 12px; }
    .fnckrs-sub { font-size: 11px; }
}

/* ---------- Formulieren (filter + reactie) ---------- */
.fnckrs-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.fnckrs-form-stack { display: flex; flex-direction: column; gap: 12px; }
.fnckrs-field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #374151; }
.fnckrs-label { font-weight: 500; }

/* Uitleg-icoon bij een filter: hover (desktop) of klik (mobiel) toont tooltip. */
.fnckrs-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: #d1d5db;
    color: #374151;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
}
.fnckrs-help:hover { background: #9ca3af; color: #ffffff; }
.fnckrs-help-text {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 210px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
    pointer-events: none;
    z-index: 30;
}
.fnckrs-help.is-open .fnckrs-help-text { opacity: 1; visibility: visible; }
.fnckrs-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
}
.fnckrs-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb; }
.fnckrs-grid-2 { display: grid; gap: 12px; }
@media (min-width: 640px) { .fnckrs-grid-2 { grid-template-columns: 1fr 1fr; } }

/* Kortingen-checkboxes (hypotheken) */
.fnckrs-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.fnckrs-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; font-weight: 400; }
.fnckrs-check input { width: 15px; height: 15px; }

/* ---------- Reacties ---------- */
.fnckrs-comments { display: flex; flex-direction: column; gap: 16px; font-size: 14px; line-height: 1.5; }
.fnckrs-count { font-size: 14px; font-weight: 600; color: #6b7280; }

.fnckrs-comment { border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; }
.fnckrs-comment--highlight { border-color: #fcd34d; background: rgba(251, 191, 36, 0.08); }
.fnckrs-comment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.fnckrs-name { font-weight: 600; color: #111827; }
.fnckrs-date { font-size: 12px; color: #9ca3af; flex: none; }
.fnckrs-body { margin: 4px 0 0; color: #374151; white-space: pre-line; }

.fnckrs-badge { display: inline-block; border-radius: 4px; padding: 1px 6px; font-size: 11px; font-weight: 600; }
.fnckrs-badge--highlight { background: #fef3c7; color: #92400e; }
.fnckrs-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.fnckrs-pill { display: inline-block; border-radius: 9999px; padding: 1px 8px; font-size: 12px; font-weight: 500; background: #f3f4f6; color: #4b5563; }

.fnckrs-reply-btn { margin-top: 8px; background: none; border: 0; padding: 0; font-size: 14px; font-weight: 500; color: #2563eb; cursor: pointer; }
.fnckrs-reply-btn:hover { color: #1d4ed8; }
.fnckrs-replies { margin-top: 16px; padding-left: 16px; border-left: 2px solid #f3f4f6; display: flex; flex-direction: column; gap: 16px; }
.fnckrs-reply-form { margin-top: 16px; border-radius: 6px; background: #f9fafb; padding: 12px; }
.fnckrs-msg { font-size: 14px; margin: 0; }
