.theme-table-page {
    gap: 0;
}

.theme-table-content {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
}

.theme-table-toolbar,
.theme-table-filter-row,
.theme-table-panel-action-row,
.theme-table-summary-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-table-toolbar,
.theme-table-summary-row {
    justify-content: space-between;
}

.theme-table-panel-action-row {
    justify-content: flex-end;
}

.theme-table-tabs .nav-link {
    display: flex;
    align-items: center;
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
    line-height: 40px;
}

.theme-table-tab-panel {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
}

.theme-table-summary-row {
    min-height: 24px;
}

.theme-table-data-container {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 8px;
}

.theme-table-data-table {
    min-width: 760px;
    font-size: 12px;
}

.theme-table-data-table > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #DADADA;
    font-weight: 700;
    vertical-align: middle;
    white-space: nowrap;
}

.theme-table-data-table td {
    vertical-align: middle;
}

.city-meet-types-table > thead > tr > th,
.city-meet-types-table > tbody > tr > td {
    text-align: center !important;
}

.theme-table-actions-col {
    width: 88px;
    min-width: 88px;
}

.theme-table-locale-col,
.theme-table-status-col {
    width: 112px;
    min-width: 112px;
}

.theme-table-type-col,
.theme-table-title-col {
    min-width: 180px;
}

.theme-table-markup-col {
    width: 140px;
    min-width: 140px;
}

.theme-table-category-col {
    width: 160px;
    min-width: 160px;
    text-align: center;
}

.theme-table-category-label {
    margin-top: 6px;
    font-weight: 500;
}

.theme-table-category-image {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto;
    border: 1px solid #DADADA;
    border-radius: 4px;
}

.theme-table-details-col {
    min-width: 320px;
    white-space: normal;
    word-break: break-word;
}

.theme-table-text-cell {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-table-details-cell {
    max-width: 520px;
    white-space: normal;
    word-break: break-word;
}

.theme-table-locales-col {
    min-width: 600px;
}

.theme-table-locales-container {
    width: 100%;
    max-width: none;
    overflow-x: auto;
}

.theme-table-locales-table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
    font-size: 11px;
}

.theme-table-locales-table thead th {
    position: static;
    padding: 4px 6px;
    background-color: #f1f1f1;
    text-align: center;
    white-space: nowrap;
}

.theme-table-locales-table td {
    padding: 4px 6px;
    text-align: center;
    vertical-align: top;
}

.theme-table-locale-id-col {
    width: 72px;
}

.theme-table-locale-actions-col {
    width: 56px;
    text-align: center;
}

.theme-table-locale-code-col {
    width: 60px;
}

.theme-table-locale-title-col {
    width: 22%;
    white-space: normal;
    word-break: break-word;
}

.theme-table-locale-details-col {
    white-space: pre-wrap;
    word-break: break-word;
}

.theme-table-locale-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.theme-table-locale-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-table-locale-footer {
    padding: 6px !important;
    text-align: center;
    background-color: #fafafa !important;
}

.theme-table-modal-scope .form-control {
    min-height: 38px;
    overflow-wrap: anywhere;
}

.theme-table-category-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: start;
    gap: 16px;
}

.theme-table-category-preview {
    width: 200px;
}

.theme-table-category-preview img {
    display: block;
    width: 200px;
    height: auto;
    border: 1px solid #DADADA;
    border-radius: 6px;
}

.theme-table-category-preview figcaption {
    margin-top: 6px;
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;
}

#meetTypeLocaleFormDetails {
    height: 80px;
    min-height: 80px;
    max-height: 80px;
    resize: none;
}

.theme-table-action-button {
    width: 30px;
    height: 30px;
    padding: 0;
    color: #333;
}

@media (max-width: 768px) {
    .theme-table-toolbar,
    .theme-table-filter-row,
    .theme-table-panel-action-row,
    .theme-table-summary-row,
    .theme-table-filter-controls {
        align-items: stretch;
    }

    .theme-table-tabs,
    .theme-table-tabs .nav-item,
    .theme-table-tabs .nav-link,
    .theme-table-filter-row > *,
    .theme-table-panel-action-row > *,
    .theme-table-filter-controls,
    .theme-table-filter-controls > * {
        width: 100% !important;
    }

    .theme-table-filter-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .theme-table-filter-controls > * {
        margin-right: 0 !important;
    }
}
