#table-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

#table-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    margin: 12px;
}

#table-toolbar {
    padding: 10px 24px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid #1a1a1a;
    flex-shrink: 0;
}

#table-toolbar span {
    font-size: 1rem;
    color: #555;
    margin-right: 4px;
}

#sort-btn {
    margin-left: auto;
}

.active-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 24px 10px;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 3px 6px 3px 10px;
    border-radius: 12px;
}

.active-filter-chip button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0 2px;
    opacity: 0.8;
}

.active-filter-chip button:hover {
    opacity: 1;
}

#table-wrapper {
    overflow-y: auto;
    flex: 1;
}

.phrase-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

.phrase-card {
    display: grid;
    grid-template-columns: 80% 20%;
    background: #141414;
    border: 1px solid #222;
    border-radius: 10px;
    overflow: hidden;
}

.phrase-card-main {
    padding: 10px 12px;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.phrase-hebrew {
    font-size: 0.9375rem;
    color: #e8e8e8;
    line-height: 1.4;
}

.phrase-variant {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.4;
}

.phrase-card.has-color .phrase-card-main {
    border-right-color: rgba(0,0,0,0.15);
}

.phrase-card.has-color .phrase-hebrew,
.phrase-card.has-color .phrase-variant,
.phrase-card.has-color .phrase-date {
    color: inherit;
}

.phrase-card.has-color .phrase-variant,
.phrase-card.has-color .phrase-date {
    opacity: 0.8;
}

.phrase-card-side {
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    min-width: 0;
}

.tag-badge {
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.6875rem;
    font-weight: 500;
    background: #2a2a2a;
    color: #888;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phrase-date {
    font-size: 0.6875rem;
    color: #555;
}

.phrase-card-icons {
    display: flex;
    gap: 6px;
    margin-top: 2px;
}

.phrase-card-icons button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
    padding: 2px;
}

.phrase-card-icons button:hover {
    opacity: 1;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    display: inline-block;
}

.status-badge.approved {
    background: #2a2a2a;
    color: #888;
}

.status-badge.uncategorized {
    background: #eaeaea;
    color: #1a1a1a;
}

.status-badge.clickable {
    cursor: pointer;
    user-select: none;
}

.status-badge.clickable:hover {
    filter: brightness(1.3);
}