.wbk_tabularForm__form {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px;
}

.wbk_tabularForm__searchContainer {
    margin-bottom: 16px;
}

.wbk_tabularForm__searchInputWrapper {
    position: relative;
}

.wbk_tabularForm__searchInputWrapper--hasClear .wbk_tabularForm__searchInput {
    padding-right: 60px;
}

.wbk_tabularForm__searchInput {
    width: 100%;
    padding: 10px 36px 10px 14px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1e1e1e;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    background-color: #fff;
    background-image: url('../../../../public/images/search-icon.png');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);

    &::placeholder {
        color: #8c8c8c;
    }
}

.wbk_tabularForm__searchClearBtn {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: #8c8c8c;

    &:hover {
        color: #1e1e1e;
    }

    &:focus-visible {
        outline: 2px solid #2271b1;
        outline-offset: 2px;
        border-radius: 4px;
    }

    img {
        width: 14px;
        height: 14px;
        display: block;
    }
}

.wbk_tabularForm__noResults {
    padding: 12px 16px;
    font-size: 13px;
    color: #666;
}

.wbk_tabularForm__searchResultsTable .wbk_tabularForm__rows {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.wbk_tabularForm__accordion {
    border-bottom: 1px solid #e5e7eb;

    &:first-child {
        border-top: 1px solid #e5e7eb;
    }
}

.wbk_tabularForm__searchContainer + .wbk_tabularForm__accordion {
    border-top: 1px solid #e5e7eb;
}

.wbk_tabularForm__accordionHeader {
    all: unset;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    cursor: pointer;
    box-sizing: border-box;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;

    &:focus-visible {
        outline: 2px solid #2271b1;
        outline-offset: 2px;
    }
}

.wbk_tabularForm__accordionTitle {
    font-size: 14px;
    font-weight: 500;
    color: #212121;
}

.wbk_tabularForm__accordionIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    color: #212121;
    transition: transform 200ms ease;
}

.wbk_tabularForm__accordionIcon--open {
    transform: rotate(0deg);
}

.wbk_tabularForm__accordionContent {
    max-height: 0;
    overflow: hidden;
    transition: max-height 200ms ease-out;
}

.wbk_tabularForm__accordionContent--open {
    max-height: 5000px;
    transition: max-height 250ms ease-in;

    .wbk_tabularForm__rows {
        border-top: 1px solid #e5e7eb;
    }
}

.wbk_tabularForm__rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

.wbk_tabularForm__tableHeaderRow {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    align-items: stretch;
    min-height: 40px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f6f6f6;
}

.wbk_tabularForm__tableHeaderCell {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #212121;
    border-right: 1px solid #e5e7eb;
    display: flex;
    align-items: center;

    &:last-child {
        border-right: none;
    }
}

.wbk_tabularForm__row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    align-items: stretch;
    min-height: 40px;
    border-bottom: 1px solid #e5e7eb;

    &:last-child {
        border-bottom: none;
    }
}

.wbk_tabularForm__label {
    font-size: 12px;
    color: #1e1e1e;
    font-weight: 400;
    padding: 12px 16px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    background-color: #f6f6f6;
}

.wbk_tabularForm__inputWrapper {
    display: flex;
    align-items: stretch;
}

.wbk_tabularForm__input {
    width: 100%;
    min-height: 40px;
    padding: 12px 16px;
    font-size: 14px;
    color: #1e1e1e;
    background-color: #fff;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
    resize: none;

    &:focus {
        outline: 2px solid #2271b1;
        outline-offset: -2px;
    }

    &:disabled {
        background-color: #f0f0f0;
        cursor: not-allowed;
    }
}
