/**
 * Bricks Styled Table — base styles
 * These are enqueued by the plugin; colour overrides come from
 * the inline <style> block Bricks generates from the colour controls.
 */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.bst-table-wrap {
    width: 100%;
    overflow-x: auto;           /* mobile-safe horizontal scroll */
    font-family: inherit;
    line-height: 1.4;
}

/* ── Main header bar ──────────────────────────────────────────────────────── */
.bst-header {
    background-color: #6d2b8f; /* fallback — overridden by colour control */
    padding: 18px 24px;
    border-radius: 4px 4px 0 0;
}

.bst-header-title {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 2em;
    font-weight: 700;
    line-height: 1.2;
}

/* ── Table layout ─────────────────────────────────────────────────────────── */
.bst-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #cccccc;
    border-top: none;
}

/* ── Rows ─────────────────────────────────────────────────────────────────── */
.bst-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.bst-row:last-child {
    border-bottom: none;
}

/* ── Cells ────────────────────────────────────────────────────────────────── */
.bst-cell {
    flex: 1 1 0;
    padding: 7px 12px;
    border-right: 1px solid rgba(0,0,0,0.10);
    word-break: break-word;
    display: flex;
    align-items: center;
}

.bst-cell:last-child {
    border-right: none;
}

/* ── Column header row ────────────────────────────────────────────────────── */
.bst-col-header-row {
    background-color: #333333; /* overridden via colour control */
}

.bst-col-header-cell {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9em;
    text-transform: none;
}

/* ── Group / section heading rows ─────────────────────────────────────────── */
.bst-group-row {
    background-color: #f5f5f5;
}

.bst-group-cell {
    flex: 1 1 100%;
    font-weight: 700;
    font-size: 0.9em;
    padding: 6px 12px;
    border-right: none;
}

/* ── VERKOCHT badge ───────────────────────────────────────────────────────── */
.bst-badge-verkocht {
    font-weight: 700;
    letter-spacing: 0.03em;
    justify-content: flex-end;
}

/* ── Responsive — stack cells on very small screens ──────────────────────── */
@media (max-width: 520px) {
    .bst-row {
        flex-direction: column;
    }

    .bst-cell {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        padding: 5px 10px;
    }

    .bst-cell:last-child {
        border-bottom: none;
    }
}
