/* Basiselementen en kleuren */
.hjp-fust,
.hjp-fust * {
    box-sizing: border-box;
}

.hjp-fust {
    --hjp-blue: #064b91;
    --hjp-deep: #062f63;
    --hjp-pale: #eef3fa;

    width: 100%;
    max-width: 1180px;
    min-width: 0;
    margin: 0 auto;
    padding: 22px;
    overflow: hidden;
    border: 1px solid #d9e2ed;
    border-radius: 14px;
    background: #fff;
    color: #17283b;
    font: inherit;
    font-size: 14px;
    box-shadow: none;
}

/* Titel en introductie */
.hjp-fust__header {
    margin-bottom: 18px;
}

.hjp-fust__eyebrow {
    color: var(--hjp-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.hjp-fust__header h2 {
    margin: 6px 0;
    color: var(--hjp-deep);
    font-size: 30px;
    line-height: 1.2;
}

.hjp-fust__header p {
    margin: 6px 0 0;
    color: #53677d;
    font-size: 14px;
}

/* Zoekveld */
.hjp-fust__search {
    margin-bottom: 20px;
    padding: 9px 12px;
    border: 1px solid #d3dfed;
    border-radius: 10px;
    background: var(--hjp-pale);
}

.hjp-fust__search > label {
    display: block;
    margin: 0 0 6px;
    color: var(--hjp-deep);
    font-size: 13px;
    font-weight: 700;
}

.hjp-fust__search-field {
    position: relative;
    min-width: 0;
}

.hjp-fust__search input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 7px 40px 7px 12px !important;
    border: 1px solid #c6d4e5 !important;
    border-radius: 6px;
    background: #fff !important;
    color: #203247;
    font: inherit;
    box-shadow: none !important;
}

.hjp-fust__search button {
    position: absolute;
    top: 2px;
    right: 6px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hjp-blue);
    font-size: 22px;
    cursor: pointer;
}

/* Koppelingstypefilters en resultaten */
.hjp-fust__layout {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.hjp-fust__sidebar {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e0e8f1;
    border-radius: 10px;
    background: #f7fafd;
}

.hjp-fust__sidebar h3 {
    margin: 0 0 8px;
    color: var(--hjp-deep);
    font-size: 14px;
}

.hjp-fust__filters {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.hjp-fust__filters button {
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid #d8e4f0;
    border-radius: 7px;
    background: #e6eef7;
    color: #142b45;
    font: inherit;
    font-size: 13px;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.hjp-fust__filters button:hover {
    background: #d6e5f4;
    color: var(--hjp-deep);
}

.hjp-fust__filters button.is-active {
    border-color: var(--hjp-deep);
    background: var(--hjp-deep);
    color: #fff;
    font-weight: 700;
}

/* Resultaatgroepen en tabellen */
.hjp-fust__group {
    min-width: 0;
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid #dbe5ef;
    border-radius: 10px;
}

.hjp-fust__group-title {
    padding: 8px 11px;
    background: var(--hjp-blue);
    color: #fff;
}

.hjp-fust__group-title h3 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

.hjp-fust__group-title p {
    margin: 2px 0 0;
    color: #e5eff9;
    font-size: 12px;
}

.hjp-fust__table-wrap {
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.hjp-fust table {
    display: table !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

.hjp-fust th,
.hjp-fust td {
    padding: 7px 9px;
    border: 0;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.hjp-fust th:first-child,
.hjp-fust td:first-child {
    width: 40%;
}

.hjp-fust th:last-child,
.hjp-fust td:last-child {
    width: 60%;
}

.hjp-fust th {
    background: #e1ebf6;
    color: var(--hjp-deep);
    font-size: 13px;
    font-weight: 700;
}

.hjp-fust__result-count {
    margin: 0 0 8px;
    color: #53677d;
    font-size: 12px;
    text-align: right;
}

.hjp-fust tbody tr:nth-child(odd) {
    background: #fff;
}

.hjp-fust tbody tr:nth-child(even) {
    background: #eaf0f7;
}

/* Literbadges blijven samen op één regel */
.hjp-fust__sizes {
    display: block;
    overflow: visible;
    white-space: nowrap;
}

.hjp-fust__badge {
    display: inline-block;
    padding: 3px 8px;
    border: 0;
	border-radius: 10px;
    background: var(--hjp-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
	margin-right: 10px;
}

/* Meldingen */
.hjp-fust__empty,
.hjp-fust__status {
    padding: 12px;
    border-radius: 7px;
    background: var(--hjp-pale);
    color: #354c65;
    font-size: 14px;
}

.hjp-fust__empty {
    margin: 0;
}

/* Mobiele weergave */
@media (max-width: 700px) {
    .hjp-fust {
        padding: 16px 12px;
        border-radius: 12px;
    }

    .hjp-fust__header h2 {
        font-size: 24px;
    }

    .hjp-fust__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .hjp-fust__filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .hjp-fust__filters button {
        height: 100%;
        padding: 9px 7px;
        font-size: 12px;
        text-align: center;
    }

    .hjp-fust__table-wrap {
        overflow: visible;
    }

    .hjp-fust th,
    .hjp-fust td {
        padding: 7px 6px;
        font-size: 13px;
    }

    .hjp-fust__badge {
        padding: 3px 6px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .hjp-fust__filters {
        grid-template-columns: 1fr;
    }

    .hjp-fust__filters button {
        text-align: left;
    }
}
