.iideenreich-directory-filters {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.iideenreich-filter-label {
    font-weight: 600;
    margin-right: 6px;
}

.iideenreich-letter-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.iideenreich-directory-filters .iideenreich-letter-filter .iideenreich-letter-btn,
.iideenreich-letter-btn.iideenreich-letter-btn {
    font-size: 18px !important;
    color: #d2d3d7 !important;
    cursor: pointer;
    user-select: none;
    line-height: 1;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    display: inline !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.iideenreich-directory-filters .iideenreich-letter-filter .iideenreich-letter-btn:hover,
.iideenreich-letter-btn.iideenreich-letter-btn:hover {
    color: #0366d6 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.iideenreich-directory-filters .iideenreich-letter-filter .iideenreich-letter-btn.active,
.iideenreich-letter-btn.iideenreich-letter-btn.active {
    color: #0366d6 !important;
    font-weight: 600;
    background: transparent !important;
    background-color: transparent !important;
}

.iideenreich-dropdown-filter {
    width: 100%;
}

.iideenreich-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.iideenreich-dropdown-display {
    display: block;
    width: 100%;
    background-color: #eaebef;
    border: none;
    border-radius: 12px;
    padding: 15px 40px 15px 60px;
    font-size: 17px;
    color: #3371ec;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%233371ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    pointer-events: none;
    text-transform: uppercase;
}

.iideenreich-dropdown-filter select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 14px;
}

.iideenreich-dropdown-filter select option {
    font-weight: 700;
    color: #3371ec;
}

.iideenreich-directory-table-wrapper {
    background: transparent;
    border: none !important;
}

.iideenreich-directory-table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
}

.iideenreich-directory-table thead {
    background: transparent;
    border: none !important;
}

.iideenreich-directory-table thead tr {
    border: none !important;
}

.iideenreich-directory-table th {
    padding: 50px 12px;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    font-size: 15px;
    font-weight: 400;
    color: #9ca3af;
    text-align: left;
}

.iideenreich-directory-table td {
    padding: 18px 12px;
    border: none;
    font-size: 16px;
    color: #1e2a4a;
    background-color: transparent !important;
}

.iideenreich-directory-table tbody tr:nth-child(odd) td,
.iideenreich-directory-table tbody tr:nth-child(odd) th {
    background-color: transparent !important;
}

.iideenreich-directory-table tbody tr:nth-child(even) td,
.iideenreich-directory-table tbody tr:nth-child(even) th {
    background-color: transparent !important;
}

.iideenreich-directory-table tbody tr {
    border-bottom: 1px solid #e1e4e8;
}

.iideenreich-directory-table tbody tr.iideenreich-main-row {
    cursor: pointer;
}

.iideenreich-directory-table tbody tr.iideenreich-main-row:hover {
    background: transparent;
}

.iideenreich-directory-table tbody tr.iideenreich-main-row:hover td {
    color: #3371ec;
}

.iideenreich-expanded-row {
    display: none;
    background: #e8eaef;
}

.iideenreich-expanded-row td {
    background-color: #e8eaef !important;
}

.iideenreich-expanded-row td:first-child {
    border-radius: 12px 0 0 12px;
}

.iideenreich-expanded-row td:last-child {
    border-radius: 0 12px 12px 0;
}

.iideenreich-expanded-cell {
    padding: 20px 12px !important;
    vertical-align: middle;
}

.iideenreich-expanded-cell-first {
    padding: 0 !important;
    position: relative;
}

.iideenreich-expanded-image {
    width: 200px;
    min-height: 120px;
    background: #c8ccd4;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 12px 0 0 0 !important;
    flex-direction: column;
}

.iideenreich-expanded-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px 0 0 0 !important;
}

.iideenreich-expanded-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 160px;
    background: #c8ccd4;
    border-radius: 12px 0 0 0;
}

.iideenreich-expanded-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.iideenreich-expanded-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
}

.iideenreich-expanded-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.iideenreich-expanded-value {
    font-weight: 600;
    font-size: 16px;
    color: #1e2a4a;
}

.iideenreich-expanded-close {
    position: relative;
    background: #4a7ae8;
    color: #fff;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.iideenreich-expanded-close:hover {
    background: #3a68d8;
}

.iideenreich-expanded-close-arrow {
    display: flex;
    align-items: center;
}

.iideenreich-main-row {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.iideenreich-main-row.iideenreich-open {
    display: none;
}

.iideenreich-expanded-row {
    overflow: hidden;
}

.iideenreich-expanded-row.iideenreich-visible {
    display: table-row;
}

.iideenreich-expanded-inner {
    transition: opacity 0.3s ease;
}

.iideenreich-expanded-row td {
    position: relative;
}

.iideenreich-image {
    max-width: 60px;
    border-radius: 50%;
}


.iideenreich-letter-divider {
    color: #d2d3d7;
    font-size: 13px;
    margin: 0 3px;
}

@media (max-width: 768px) {
    .iideenreich-directory-table th,
    .iideenreich-directory-table td {
        font-size: 13px;
        padding: 8px 6px;
    }

    .iideenreich-expanded-inner {
        flex-direction: column;
    }
}

/* Upcoming Birthdays List */
.iideenreich-upcoming-birthdays {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iideenreich-birthday-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.iideenreich-birthday-date {
    font-size: 15px;
    color: #1e2a4a;
    font-weight: 700;
}

.iideenreich-birthday-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}

.iideenreich-birthday-item {
    font-size: 14px;
    color: #1e2a4a;
}

.iideenreich-birthday-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Table Link Toggles */
.iideenreich-table-link {
    cursor: pointer;
    text-decoration: none;
}

.iideenreich-table-link.active {
    font-weight: 700;
}

.iideenreich-directory-table-wrapper[data-table-slug],
.iideenreich-directory-filters[data-table-slug] {
    display: none;
}
