/*
|--------------------------------------------------------------------------
| Behoeftepagina
|--------------------------------------------------------------------------
*/

.snooc-behoefte-page {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
    padding: 18px;
}

/*
|--------------------------------------------------------------------------
| Paginaheader
|--------------------------------------------------------------------------
*/

.snooc-behoefte-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    padding: 23px 25px;

    border: 1px solid var(--sn-border);
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fff8fa 100%
        );

    box-shadow:
        0 12px 30px rgba(79, 13, 27, 0.07);
}

.snooc-behoefte-heading {
    display: flex;
    align-items: center;
    gap: 17px;

    min-width: 0;
}

.snooc-behoefte-heading-icon {
    display: flex;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    border: 1px solid #efd7dc;
    border-radius: 18px;

    background: var(--sn-red-soft);
    color: var(--sn-red);

    font-size: 21px;
}

.snooc-behoefte-eyebrow {
    margin: 0 0 4px;

    color: var(--sn-red);

    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.snooc-behoefte-header h1 {
    margin: 0;

    color: var(--sn-text);

    font-size: clamp(22px, 3vw, 30px);
    font-weight: 850;
    line-height: 1.2;
}

.snooc-behoefte-header p:last-child {
    margin: 6px 0 0;

    color: var(--sn-muted);

    font-size: 12px;
    line-height: 1.5;
}

.snooc-behoefte-total,
.snooc-behoefte-result-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    min-height: 36px;

    padding: 8px 12px;

    border-radius: 999px;

    background: var(--sn-red-soft);
    color: var(--sn-red);

    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Foutmelding
|--------------------------------------------------------------------------
*/

.snooc-behoefte-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 18px;
    padding: 14px 16px;

    border: 1px solid #fecdd3;
    border-radius: 14px;

    background: #fff1f2;
    color: #be123c;
}

.snooc-behoefte-error > span {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 9px;

    background: #ffe4e6;
}

.snooc-behoefte-error strong {
    display: block;

    margin-bottom: 4px;

    font-size: 12px;
    font-weight: 850;
}

.snooc-behoefte-error ul {
    margin: 0;
    padding-left: 18px;

    font-size: 11px;
    line-height: 1.55;
}

/*
|--------------------------------------------------------------------------
| Layout
|--------------------------------------------------------------------------
*/

.snooc-behoefte-layout {
    display: grid;
    gap: 18px;

    margin-top: 18px;
}

.snooc-behoefte-card {
    min-width: 0;

    padding: 20px;

    border: 1px solid var(--sn-border);
    border-radius: 17px;

    background: #ffffff;

    box-shadow:
        0 10px 26px rgba(79, 13, 27, 0.06);
}

.snooc-behoefte-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 18px;
    padding-bottom: 16px;

    border-bottom: 1px solid #f0e6e8;
}

.snooc-behoefte-card-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: var(--sn-red);

    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.snooc-behoefte-card-header h2 {
    margin: 0;

    color: var(--sn-text);

    font-size: 18px;
    font-weight: 850;
}

.snooc-behoefte-card-header p {
    margin: 5px 0 0;

    color: var(--sn-muted);

    font-size: 11px;
    line-height: 1.5;
}

.snooc-behoefte-card-icon {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border-radius: 12px;

    background: var(--sn-red-soft);
    color: var(--sn-red);
}

/*
|--------------------------------------------------------------------------
| Formulier
|--------------------------------------------------------------------------
*/

.snooc-behoefte-form {
    display: grid;
    gap: 18px;
}

.snooc-behoefte-form-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.snooc-behoefte-field {
    min-width: 0;
}

.snooc-behoefte-field-wide {
    grid-column: 1 / -1;
}

.snooc-behoefte-field label {
    display: block;

    margin: 0 0 7px;

    color: #453439;

    font-size: 11px;
    font-weight: 800;
}

.snooc-behoefte-field label span {
    color: var(--sn-red);
}

/*
|--------------------------------------------------------------------------
| Inputs
|--------------------------------------------------------------------------
*/

.snooc-behoefte-input-wrap {
    position: relative;

    display: grid;
    grid-template-columns:
        44px
        minmax(0, 1fr);
    align-items: center;

    min-height: 46px;

    overflow: hidden;

    border: 1px solid var(--sn-border-strong);
    border-radius: 12px;

    background: #ffffff;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.snooc-behoefte-input-wrap:hover {
    border-color: #d3a5b0;
}

.snooc-behoefte-input-wrap:focus-within {
    border-color: var(--sn-red);

    box-shadow:
        0 0 0 3px rgba(159, 29, 53, 0.10);
}

.snooc-behoefte-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    color: #a77884;

    pointer-events: none;
}

.snooc-behoefte-input-wrap input,
.snooc-behoefte-input-wrap select {
    position: static !important;

    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;

    margin: 0 !important;
    padding: 0 12px 0 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;

    background: transparent !important;
    color: var(--sn-text) !important;

    font-size: 12px !important;
    font-weight: 600 !important;

    box-shadow: none !important;
}

.snooc-behoefte-input-wrap select {
    padding-right: 34px !important;

    cursor: pointer;
}

.snooc-behoefte-input-wrap input::placeholder {
    color: #9b898e;

    font-weight: 500;

    opacity: 1;
}

/*
|--------------------------------------------------------------------------
| Tekstgebied
|--------------------------------------------------------------------------
*/

.snooc-behoefte-textarea-wrap {
    position: relative;
}

.snooc-behoefte-textarea-wrap textarea {
    display: block;

    width: 100%;
    min-height: 125px;

    margin: 0;
    padding:
        14px
        14px
        14px
        45px !important;

    resize: vertical;
}

.snooc-behoefte-textarea-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;

    color: #a77884;

    pointer-events: none;
}

.snooc-behoefte-field-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: 6px;
}

.snooc-behoefte-field-footer small,
.snooc-behoefte-character-count {
    color: var(--sn-muted);

    font-size: 10px;
}

.snooc-behoefte-character-count.is-near-limit {
    color: #b45309;
}

.snooc-behoefte-character-count.is-at-limit {
    color: #be123c;

    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| Formulieracties
|--------------------------------------------------------------------------
*/

.snooc-behoefte-form-actions {
    display: flex;
    justify-content: flex-end;
}

.snooc-behoefte-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;

    padding: 10px 17px;

    border: 1px solid var(--sn-red) !important;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--sn-red),
            var(--sn-red-dark)
        ) !important;

    color: #ffffff !important;

    font-size: 12px;
    font-weight: 850;

    cursor: pointer;

    box-shadow:
        0 9px 22px rgba(159, 29, 53, 0.20);
}

.snooc-behoefte-submit:hover,
.snooc-behoefte-submit:focus-visible {
    border-color: var(--sn-red-dark) !important;
    outline: 0;

    transform: translateY(-1px);
}

/*
|--------------------------------------------------------------------------
| Werkbalk
|--------------------------------------------------------------------------
*/

.snooc-behoefte-toolbar {
    display: grid;
    grid-template-columns:
        minmax(240px, 1fr)
        minmax(190px, 260px)
        auto;
    align-items: end;
    gap: 12px;

    margin-bottom: 16px;
}

.snooc-behoefte-search {
    position: relative;

    display: block;
}

.snooc-behoefte-search > span {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;

    color: #9b747e;

    transform: translateY(-50%);

    pointer-events: none;
}

.snooc-behoefte-search input {
    width: 100%;

    padding-left: 42px !important;
}

.snooc-behoefte-filter {
    display: grid;
    gap: 5px;
}

.snooc-behoefte-filter > span {
    color: #735d64;

    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.snooc-behoefte-filter select {
    width: 100%;
}

/*
|--------------------------------------------------------------------------
| Tabel
|--------------------------------------------------------------------------
*/

.snooc-behoefte-table-wrap {
    width: 100%;

    overflow-x: auto;

    border: 1px solid var(--sn-border);
    border-radius: 14px;

    background: #ffffff;
}

.snooc-behoefte-table {
    width: 100% !important;
    min-width: 900px;

    border: 0 !important;
    border-radius: 0 !important;

    table-layout: fixed;
}

.snooc-behoefte-table th:nth-child(1) {
    width: 125px;
}

.snooc-behoefte-table th:nth-child(2) {
    width: 115px;
}

.snooc-behoefte-table th:nth-child(3) {
    width: 220px;
}

.snooc-behoefte-table th:nth-child(4) {
    width: 220px;
}

.snooc-behoefte-table th:nth-child(5) {
    width: auto;
}

.snooc-behoefte-table th,
.snooc-behoefte-table td {
    vertical-align: top;
}

.snooc-behoefte-sortable {
    cursor: pointer;
    user-select: none;
}

.snooc-behoefte-sortable:hover,
.snooc-behoefte-sortable:focus-visible {
    outline: 0;

    background: #f4dfe4 !important;
}

.snooc-behoefte-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #6f5b61;

    font-size: 11px;
    white-space: nowrap;
}

.snooc-behoefte-date i {
    color: #9b747e;
}

.snooc-behoefte-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;

    padding: 5px 9px;

    border-radius: 999px;

    background: var(--sn-red-soft);
    color: var(--sn-red-dark);

    font-size: 10px;
    font-weight: 850;
}

.snooc-behoefte-description {
    display: block;

    color: #66535a;

    font-size: 11px;
    line-height: 1.55;

    overflow-wrap: anywhere;
}

/*
|--------------------------------------------------------------------------
| Lege staat
|--------------------------------------------------------------------------
*/

.snooc-behoefte-page [hidden] {
    display: none !important;
}

.snooc-behoefte-empty,
.snooc-behoefte-no-results {
    align-items: center;
    justify-content: center;
    flex-direction: column;

    min-height: 210px;

    padding: 28px;

    color: var(--sn-muted);

    text-align: center;
}

.snooc-behoefte-empty {
    display: flex;
}

.snooc-behoefte-no-results:not([hidden]) {
    display: flex;
}

.snooc-behoefte-empty > span,
.snooc-behoefte-no-results > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 13px;

    border-radius: 17px;

    background: var(--sn-red-soft);
    color: var(--sn-red);

    font-size: 21px;
}

.snooc-behoefte-empty h3,
.snooc-behoefte-no-results strong {
    margin: 0;

    color: var(--sn-text);

    font-size: 15px;
    font-weight: 850;
}

.snooc-behoefte-empty p,
.snooc-behoefte-no-results p {
    margin: 6px 0 0;

    font-size: 11px;
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {
    .snooc-behoefte-form-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .snooc-behoefte-field-wide {
        grid-column: 1 / -1;
    }

    .snooc-behoefte-toolbar {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(180px, 230px);
    }

    .snooc-behoefte-result-count {
        justify-self: start;
    }
}

/*
|--------------------------------------------------------------------------
| Mobiele tabel
|--------------------------------------------------------------------------
*/

@media (max-width: 760px) {
    .snooc-behoefte-page {
        padding: 12px;
    }

    .snooc-behoefte-header {
        align-items: flex-start;
        flex-direction: column;

        padding: 18px;
    }

    .snooc-behoefte-heading {
        align-items: flex-start;
    }

    .snooc-behoefte-heading-icon {
        flex-basis: 54px;

        width: 54px;
        height: 54px;

        border-radius: 15px;
    }

    .snooc-behoefte-card {
        padding: 15px;
    }

    .snooc-behoefte-form-grid {
        grid-template-columns: 1fr;
    }

    .snooc-behoefte-field-wide {
        grid-column: auto;
    }

    .snooc-behoefte-form-actions,
    .snooc-behoefte-submit {
        width: 100%;
    }

    .snooc-behoefte-toolbar {
        grid-template-columns: 1fr;
    }

    .snooc-behoefte-result-count {
        justify-self: start;
    }

    .snooc-behoefte-table-wrap {
        overflow: visible;

        border: 0;
        border-radius: 0;

        background: transparent;
    }

    .snooc-behoefte-table,
    .snooc-behoefte-table tbody,
    .snooc-behoefte-table tr,
    .snooc-behoefte-table td {
        display: block;

        width: 100% !important;
        min-width: 0;
    }

    .snooc-behoefte-table {
        border: 0 !important;

        background: transparent !important;
    }

    .snooc-behoefte-table thead {
        display: none;
    }

    .snooc-behoefte-table tbody {
        display: grid;
        gap: 12px;
    }

    .snooc-behoefte-table tbody tr {
        margin: 0;
        padding: 8px 12px;

        overflow: hidden;

        border: 1px solid var(--sn-border);
        border-radius: 14px;

        background: #ffffff;

        box-shadow:
            0 7px 20px rgba(79, 13, 27, 0.05);
    }

    .snooc-behoefte-table tbody tr[hidden] {
        display: none !important;
    }

    .snooc-behoefte-table td {
        display: grid !important;
        grid-template-columns:
            minmax(105px, 34%)
            minmax(0, 1fr);
        align-items: start;
        gap: 10px;

        padding: 10px 3px !important;

        border: 0 !important;
        border-bottom:
            1px solid #f1e6e8 !important;
    }

    .snooc-behoefte-table td:last-child {
        border-bottom: 0 !important;
    }

    .snooc-behoefte-table td::before {
        content: attr(data-label);

        color: #826f75;

        font-size: 9px;
        font-weight: 850;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .snooc-behoefte-description {
        font-size: 11px;
    }
}

@media (max-width: 460px) {
    .snooc-behoefte-heading {
        gap: 12px;
    }

    .snooc-behoefte-card-header {
        gap: 10px;
    }

    .snooc-behoefte-field-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .snooc-behoefte-table td {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/*
|--------------------------------------------------------------------------
| Behoeftetabel met inline beheer
|--------------------------------------------------------------------------
*/

.snooc-behoefte-table {
    width: 100% !important;
    min-width: 1180px;

    margin: 0;

    border: 0 !important;
    border-radius: 0 !important;

    border-collapse: collapse !important;
    table-layout: fixed;
}

.snooc-behoefte-table tbody tr[hidden],
.snooc-behoefte-table tbody tr.is-filtered-out {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Kolombreedtes
|--------------------------------------------------------------------------
*/

.snooc-behoefte-table th:nth-child(1) {
    width: 125px;
}

.snooc-behoefte-table th:nth-child(2) {
    width: 125px;
}

.snooc-behoefte-table th:nth-child(3) {
    width: 235px;
}

.snooc-behoefte-table th:nth-child(4) {
    width: 235px;
}

.snooc-behoefte-table th:nth-child(5) {
    width: auto;
}

.snooc-behoefte-table th:nth-child(6) {
    width: 135px;
}

/*
|--------------------------------------------------------------------------
| Tabelheaders
|--------------------------------------------------------------------------
*/

.snooc-behoefte-table thead th {
    height: 42px;

    padding: 11px 14px !important;

    border-bottom:
        1px solid var(--sn-border) !important;

    background: #f8ecef !important;
    color: #632b39 !important;

    font-size: 11px !important;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
    vertical-align: middle;
}

/*
|--------------------------------------------------------------------------
| Tabelcellen
|--------------------------------------------------------------------------
*/

.snooc-behoefte-table tbody td {
    min-height: 64px;

    padding: 10px 14px !important;

    border-bottom:
        1px solid #f0e7e9 !important;

    background: #ffffff;
    color: #4a373d;

    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    vertical-align: middle;
}

.snooc-behoefte-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.snooc-behoefte-table tbody tr:hover td {
    background: #fffafb;
}

.snooc-behoefte-action-header,
.snooc-behoefte-action-cell {
    text-align: center !important;
}

/*
|--------------------------------------------------------------------------
| Datum
|--------------------------------------------------------------------------
*/

.snooc-behoefte-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #6f5b61;

    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.snooc-behoefte-date i {
    color: #9b747e;
}

/*
|--------------------------------------------------------------------------
| Inline velden gelijk aan beheer
|--------------------------------------------------------------------------
*/

.snooc-behoefte-inline-field {
    position: relative;

    width: 100%;
    min-width: 0;
}

.snooc-behoefte-inline-field input,
.snooc-behoefte-inline-field select,
.snooc-behoefte-inline-field textarea {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;

    border: 1px solid transparent !important;
    border-radius: 10px !important;

    background: transparent !important;
    color: var(--sn-text);

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    box-shadow: none !important;

    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.snooc-behoefte-inline-field input,
.snooc-behoefte-inline-field select {
    height: 41px;
    min-height: 41px;

    padding:
        8px
        30px
        8px
        10px !important;
}

.snooc-behoefte-inline-field textarea {
    min-height: 76px;

    padding:
        9px
        30px
        9px
        10px !important;

    line-height: 1.45;

    resize: vertical;
}

.snooc-behoefte-inline-field input:hover,
.snooc-behoefte-inline-field select:hover,
.snooc-behoefte-inline-field textarea:hover {
    border-color:
        var(--sn-border-strong) !important;

    background: #ffffff !important;
}

.snooc-behoefte-inline-field input:focus,
.snooc-behoefte-inline-field select:focus,
.snooc-behoefte-inline-field textarea:focus {
    border-color:
        var(--sn-red) !important;

    outline: none;

    background: #ffffff !important;

    box-shadow:
        0 0 0 4px
        rgba(159, 29, 53, 0.10) !important;
}

/*
|--------------------------------------------------------------------------
| Inline opslagstatus
|--------------------------------------------------------------------------
*/

.snooc-behoefte-inline-state {
    position: absolute;
    top: calc(100% + 3px);
    right: 2px;
    z-index: 3;

    display: block;

    min-height: 11px;

    color: var(--sn-muted);

    font-size: 9px;
    font-weight: 750;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.snooc-behoefte-inline-field.is-saving
.snooc-behoefte-inline-state {
    color: #b45309;
}

.snooc-behoefte-inline-field.is-saved
.snooc-behoefte-inline-state {
    color: #087f5b;
}

.snooc-behoefte-inline-field.is-error
.snooc-behoefte-inline-state {
    color: #be123c;
}

.snooc-behoefte-inline-field.is-error input,
.snooc-behoefte-inline-field.is-error select,
.snooc-behoefte-inline-field.is-error textarea {
    border-color: #e11d48 !important;

    background: #fff1f2 !important;
}

/*
|--------------------------------------------------------------------------
| Verwijderknop gelijk aan periodes
|--------------------------------------------------------------------------
*/

.snooc-behoefte-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 36px;

    margin: 0;
    padding: 7px 11px;

    border: 1px solid #fecdd3 !important;
    border-radius: 10px !important;

    outline: 0;

    background: #fff1f2 !important;
    color: #be123c !important;

    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;

    cursor: pointer;

    box-shadow: none !important;
    transform: none;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.snooc-behoefte-delete-button i {
    display: block;

    margin: 0;

    border: 0;

    font-size: 12px;
    line-height: 1;
}

.snooc-behoefte-delete-button:hover,
.snooc-behoefte-delete-button:focus-visible {
    border-color: #fda4af !important;

    outline: 0;

    background: #ffe4e6 !important;
    color: #9f1239 !important;

    box-shadow:
        0 6px 15px
        rgba(190, 18, 60, 0.12) !important;

    transform: translateY(-1px);
}

.snooc-behoefte-delete-button:disabled {
    opacity: 0.55;

    cursor: wait;

    box-shadow: none !important;
    transform: none;
}

/*
|--------------------------------------------------------------------------
| Verwijdermodal
|--------------------------------------------------------------------------
*/

body.snooc-behoefte-dialog-open {
    overflow: hidden;
}

.snooc-behoefte-dialog[hidden] {
    display: none !important;
}

.snooc-behoefte-dialog {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;
}

.snooc-behoefte-dialog-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(36, 22, 26, 0.58);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.snooc-behoefte-dialog-panel {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 440px;

    padding: 25px;

    border: 1px solid var(--sn-border);
    border-radius: 19px;

    background: #ffffff;

    text-align: center;

    box-shadow:
        0 25px 70px
        rgba(36, 22, 26, 0.28);
}

.snooc-behoefte-dialog-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    margin: 0 auto 15px;

    border-radius: 18px;

    background: #fff1f2;
    color: #be123c;

    font-size: 22px;
}

.snooc-behoefte-dialog-panel h2 {
    margin: 0;

    color: var(--sn-text);

    font-size: 19px;
    font-weight: 850;
}

.snooc-behoefte-dialog-panel p {
    margin: 9px 0 0;

    color: var(--sn-muted);

    font-size: 12px;
    line-height: 1.55;

    overflow-wrap: anywhere;
}

.snooc-behoefte-dialog-actions {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin-top: 22px;
}

.snooc-behoefte-dialog-cancel,
.snooc-behoefte-dialog-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 42px;

    padding: 9px 15px;

    border-radius: 11px !important;

    font-family: inherit;
    font-size: 11px;
    font-weight: 850;

    cursor: pointer;
}

.snooc-behoefte-dialog-cancel {
    border:
        1px solid
        var(--sn-border-strong) !important;

    background: #ffffff !important;
    color: #5d454c !important;
}

.snooc-behoefte-dialog-cancel:hover,
.snooc-behoefte-dialog-cancel:focus-visible {
    border-color: #d2a5b0 !important;

    outline: 0;

    background:
        var(--sn-red-soft) !important;
}

.snooc-behoefte-dialog-confirm {
    border:
        1px solid #be123c !important;

    background: #be123c !important;
    color: #ffffff !important;
}

.snooc-behoefte-dialog-confirm:hover,
.snooc-behoefte-dialog-confirm:focus-visible {
    border-color: #9f1239 !important;

    outline: 0;

    background: #9f1239 !important;
}

.snooc-behoefte-dialog-confirm:disabled {
    opacity: 0.65;

    cursor: wait;
}

.snooc-behoefte-dialog-confirm.is-loading i {
    animation:
        snooc-behoefte-delete-spin
        0.8s
        linear
        infinite;
}

@keyframes snooc-behoefte-delete-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/*
|--------------------------------------------------------------------------
| Mobiele behoeftetabel gelijk aan beheer
|--------------------------------------------------------------------------
*/

@media (max-width: 760px) {
    .snooc-behoefte-table-wrap {
        overflow: visible;

        border: 0;
        border-radius: 0;

        background: transparent;
    }

    .snooc-behoefte-table {
        display: block !important;

        width: 100% !important;
        min-width: 0 !important;

        border: 0 !important;

        background: transparent !important;

        table-layout: auto !important;
    }

    .snooc-behoefte-table thead {
        display: none !important;
    }

    .snooc-behoefte-table tbody {
        display: grid !important;
        gap: 13px;

        width: 100% !important;
    }

    .snooc-behoefte-table tbody tr[hidden],
    .snooc-behoefte-table tbody tr.is-filtered-out {
        display: none !important;
    }

    .snooc-behoefte-table tbody tr:not([hidden]) {
        position: relative;

        display: grid !important;
        gap: 0;

        width: 100% !important;

        margin: 0 !important;
        padding:
            17px
            15px
            14px !important;

        border:
            1px solid
            var(--sn-border) !important;

        border-radius: 16px !important;

        background: #ffffff !important;

        box-shadow:
            0 8px 22px
            rgba(79, 13, 27, 0.06);
    }

    .snooc-behoefte-table tbody tr:not([hidden]):hover {
        border-color:
            #dfbdc5 !important;

        box-shadow:
            0 12px 28px
            rgba(79, 13, 27, 0.09);
    }

    .snooc-behoefte-table tbody tr:hover td {
        background:
            transparent !important;
    }

    .snooc-behoefte-table tbody td {
        display: grid !important;

        grid-template-columns:
            minmax(106px, 34%)
            minmax(0, 1fr);

        align-items: center;
        gap: 12px;

        width: 100% !important;
        height: auto !important;
        min-height: 46px;

        margin: 0 !important;
        padding: 9px 0 !important;

        border: 0 !important;
        border-bottom:
            1px solid
            #f2e9eb !important;

        background:
            transparent !important;

        text-align: left !important;
    }

    .snooc-behoefte-table tbody td:last-child {
        border-bottom: 0 !important;
    }

    .snooc-behoefte-table tbody td::before {
        content: attr(data-label);

        display: block;

        color: #81636b;

        font-size: 10px;
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .snooc-behoefte-inline-field {
        width: 100%;
        min-width: 0;
    }

    .snooc-behoefte-inline-field input,
    .snooc-behoefte-inline-field select,
    .snooc-behoefte-inline-field textarea {
        width: 100%;

        border:
            1px solid
            var(--sn-border-strong) !important;

        background: #ffffff !important;

        font-size: 13px;
    }

    .snooc-behoefte-inline-field input,
    .snooc-behoefte-inline-field select {
        height: 42px;
        min-height: 42px;

        padding:
            8px
            10px !important;
    }

    .snooc-behoefte-inline-field textarea {
        min-height: 82px;

        padding:
            9px
            10px !important;
    }

    .snooc-behoefte-inline-state {
        position: static;

        display: block;

        min-height: 12px;
        margin-top: 3px;

        font-size: 9px;
        text-align: left;
        white-space: normal;
    }

    .snooc-behoefte-action-cell {
        text-align: left !important;
    }

    .snooc-behoefte-delete-button {
        justify-self: start;
    }
}

/*
|--------------------------------------------------------------------------
| Kleine mobiele schermen
|--------------------------------------------------------------------------
*/

@media (max-width: 480px) {
    .snooc-behoefte-table tbody tr:not([hidden]) {
        padding:
            16px
            13px
            13px !important;
    }

    .snooc-behoefte-table tbody td {
        grid-template-columns:
            96px
            minmax(0, 1fr);

        gap: 9px;

        min-height: 43px;

        padding:
            8px
            0 !important;
    }

    .snooc-behoefte-table tbody td::before {
        font-size: 9px;
    }

    .snooc-behoefte-delete-button {
        width: 100%;
    }

    .snooc-behoefte-dialog-actions {
        flex-direction: column-reverse;
    }

    .snooc-behoefte-dialog-cancel,
    .snooc-behoefte-dialog-confirm {
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| Behoefteoverzicht
|--------------------------------------------------------------------------
*/

.snooc-behoefte-overview-filter-card {
    margin-top: 18px;
}

.snooc-behoefte-overview-select-form {
    display: block;
}

.snooc-behoefte-overview-select-grid {
    display: grid;
    grid-template-columns:
        minmax(250px, 420px)
        minmax(0, 1fr);
    align-items: end;
    gap: 16px;
}

.snooc-behoefte-overview-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.snooc-behoefte-export-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;

    padding: 10px 16px;

    border: 1px solid #166534;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #15803d,
            #166534
        );

    color: #ffffff !important;

    font-size: 12px;
    font-weight: 850;
    text-decoration: none !important;

    box-shadow:
        0 9px 22px
        rgba(22, 101, 52, 0.18);
}

.snooc-behoefte-export-button:hover,
.snooc-behoefte-export-button:focus-visible {
    border-color: #14532d;
    outline: 0;

    background:
        linear-gradient(
            135deg,
            #166534,
            #14532d
        );

    color: #ffffff !important;

    transform: translateY(-1px);
}

/*
|--------------------------------------------------------------------------
| Statistieken
|--------------------------------------------------------------------------
*/

.snooc-behoefte-stat-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 14px;

    margin-top: 18px;
}

.snooc-behoefte-stat-card {
    display: flex;
    align-items: center;
    gap: 13px;

    min-width: 0;

    padding: 17px;

    border: 1px solid var(--sn-border);
    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 8px 22px
        rgba(79, 13, 27, 0.05);
}

.snooc-behoefte-stat-icon {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    border-radius: 13px;

    background: var(--sn-red-soft);
    color: var(--sn-red);

    font-size: 17px;
}

.snooc-behoefte-stat-card div {
    min-width: 0;
}

.snooc-behoefte-stat-card span:not(
    .snooc-behoefte-stat-icon
) {
    display: block;

    color: var(--sn-muted);

    font-size: 10px;
    font-weight: 750;
}

.snooc-behoefte-stat-card strong {
    display: block;

    margin-top: 3px;

    color: var(--sn-text);

    font-size: 24px;
    font-weight: 850;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Grafieken
|--------------------------------------------------------------------------
*/

.snooc-behoefte-chart-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;

    margin-top: 18px;
}

.snooc-behoefte-chart {
    width: 100%;
    height: 380px;
}

/*
|--------------------------------------------------------------------------
| Overzichtstabel
|--------------------------------------------------------------------------
*/

.snooc-behoefte-overview-page
.snooc-behoefte-list-card {
    margin-top: 18px;
}

.snooc-behoefte-overview-toolbar {
    grid-template-columns:
        minmax(260px, 1fr)
        minmax(170px, 220px)
        minmax(190px, 260px)
        auto;
}

.snooc-behoefte-overview-table {
    min-width: 1250px;

    table-layout: fixed;
}

.snooc-behoefte-overview-table th:nth-child(1) {
    width: 280px;
}

.snooc-behoefte-overview-table th:nth-child(2) {
    width: 190px;
}

.snooc-behoefte-overview-table th:nth-child(3) {
    width: 190px;
}

.snooc-behoefte-overview-table th:nth-child(4) {
    width: 100px;
}

.snooc-behoefte-overview-table th:nth-child(5) {
    width: 115px;
}

.snooc-behoefte-overview-table th:nth-child(6) {
    width: 135px;
}

.snooc-behoefte-overview-table th:nth-child(7) {
    width: 220px;
}

.snooc-behoefte-overview-description {
    display: block;

    color: #59464c;

    font-size: 12px;
    line-height: 1.55;

    overflow-wrap: anywhere;
}

/*
|--------------------------------------------------------------------------
| Overzicht responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {
    .snooc-behoefte-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .snooc-behoefte-overview-toolbar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .snooc-behoefte-result-count {
        justify-self: start;
    }
}

@media (max-width: 800px) {
    .snooc-behoefte-chart-grid {
        grid-template-columns: 1fr;
    }

    .snooc-behoefte-chart {
        height: 340px;
    }
}

@media (max-width: 760px) {
    .snooc-behoefte-overview-select-grid {
        grid-template-columns: 1fr;
    }

    .snooc-behoefte-overview-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .snooc-behoefte-overview-filter-actions
    .snooc-behoefte-submit,
    .snooc-behoefte-export-button {
        width: 100%;
    }

    .snooc-behoefte-stat-grid {
        grid-template-columns: 1fr;
    }

    .snooc-behoefte-overview-toolbar {
        grid-template-columns: 1fr;
    }

    .snooc-behoefte-overview-table {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .snooc-behoefte-chart {
        height: 300px;
    }

    .snooc-behoefte-stat-card {
        padding: 14px;
    }
}

/*
|--------------------------------------------------------------------------
| Prioriteitenpagina
|--------------------------------------------------------------------------
*/

.snooc-prioriteit-selection-form {
    display: block;
}

.snooc-prioriteit-selection-grid {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(280px, 1.4fr)
        auto;
    align-items: end;
    gap: 16px;
}

.snooc-prioriteit-selection-action {
    display: flex;
    align-items: flex-end;
}

.snooc-prioriteit-table {
    min-width: 1050px;
}

.snooc-prioriteit-table th:nth-child(1) {
    width: 125px;
}

.snooc-prioriteit-table th:nth-child(2) {
    width: 240px;
}

.snooc-prioriteit-table th:nth-child(3) {
    width: 260px;
}

.snooc-prioriteit-table th:nth-child(4) {
    width: auto;
}

.snooc-prioriteit-table th:nth-child(5) {
    width: 135px;
}

.snooc-prioriteit-table
.snooc-behoefte-inline-field textarea {
    min-height: 62px;
}

@media (max-width: 900px) {
    .snooc-prioriteit-selection-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .snooc-prioriteit-selection-action {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .snooc-prioriteit-selection-grid {
        grid-template-columns: 1fr;
    }

    .snooc-prioriteit-selection-action {
        grid-column: auto;
    }

    .snooc-prioriteit-selection-action,
    .snooc-prioriteit-selection-action
    .snooc-behoefte-submit {
        width: 100%;
    }

    .snooc-prioriteit-table {
        min-width: 0;
    }
}

/*
|--------------------------------------------------------------------------
| Overzicht nascholingsprioriteiten
|--------------------------------------------------------------------------
*/

.snooc-prioriteiten-overview-table {
    min-width: 1080px;

    table-layout: fixed;
}

.snooc-prioriteiten-overview-table th:nth-child(1) {
    width: 230px;
}

.snooc-prioriteiten-overview-table th:nth-child(2) {
    width: 250px;
}

.snooc-prioriteiten-overview-table th:nth-child(3) {
    width: 125px;
}

.snooc-prioriteiten-overview-table th:nth-child(4) {
    width: auto;
}

.snooc-prioriteiten-overview-table th:nth-child(5) {
    width: 210px;
}

@media (max-width: 760px) {
    .snooc-prioriteiten-overview-table {
        min-width: 0;
    }
}