/* Gedeelde veldmaten voor alle portaalonderdelen. */
body:is(.portal-page, .auth-page) {
    --portaal-veldhoogte: 52px;
}
body:is(.portal-page, .auth-page) :is(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]),
    select:not([multiple]):not([size])
) {
    box-sizing: border-box !important;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: var(--portaal-veldhoogte) !important;
    min-height: var(--portaal-veldhoogte) !important;
    padding: 12px 14px !important;
    margin-top: 8px !important;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #fff;
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
}
body:is(.portal-page, .auth-page) select:not([multiple]):not([size]) {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-right: 42px !important;
    background-image: linear-gradient(45deg, transparent 50%, #35475c 50%), linear-gradient(135deg, #35475c 50%, transparent 50%) !important;
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50% !important;
    background-size: 6px 6px !important;
    background-repeat: no-repeat !important;
}
body:is(.portal-page, .auth-page) textarea {
    display: block;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto;
    min-height: 144px !important;
    margin-top: 8px !important;
    padding: 12px 14px !important;
    border-radius: 6px;
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    resize: vertical;
}
body:is(.portal-page, .auth-page) .fields {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 24px !important;
    min-width: 0;
}
body:is(.portal-page, .auth-page) .fields > label {
    display: flex !important;
    flex-direction: column;
    gap: 8px !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    overflow-wrap: anywhere;
}
body:is(.portal-page, .auth-page) .fields > .wide {
    grid-column: 1 / -1;
}
body:is(.portal-page, .auth-page) .fields > label > :is(input, select, textarea) {
    margin-top: 0 !important;
}
body:is(.portal-page, .auth-page) input[type="file"] {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: var(--portaal-veldhoogte) !important;
    height: auto !important;
    font-size: 16px !important;
}
body:is(.portal-page, .auth-page) input:is([type="checkbox"], [type="radio"]) {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 8px 0 0 !important;
    vertical-align: middle;
}
body:is(.portal-page, .auth-page) [role="search"] > label {
    min-width: 0;
}
@media (max-width: 800px) {
    body:is(.portal-page, .auth-page) .fields {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
@media (forced-colors: active) {
    body:is(.portal-page, .auth-page) select:not([multiple]):not([size]) {
        -webkit-appearance: auto !important;
        appearance: auto !important;
        background-image: none !important;
    }
}
