/* =========================================================
   MMX ADMIN — BLOG POSTS COMPACT TABLE
   ========================================================= */

.fi-ta-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    font-size: 0.75rem !important;
    border-collapse: collapse !important;
}

/* Column widths
   1 = Checkbox
   2 = Title
   3 = Category
   4 = Status
   5 = Type / Views
   6 = Translations
   7 = Actions
*/

.fi-ta-table th:nth-child(1),
.fi-ta-table td:nth-child(1) {
    width: 20px !important;
}

.fi-ta-table th:nth-child(2),
.fi-ta-table td:nth-child(2) {
    width: 32% !important;
}

.fi-ta-table th:nth-child(3),
.fi-ta-table td:nth-child(3) {
    width: 15% !important;
}

.fi-ta-table th:nth-child(4),
.fi-ta-table td:nth-child(4) {
    width: 7% !important;
}

.fi-ta-table th:nth-child(5),
.fi-ta-table td:nth-child(5) {
    width: 10% !important;
}

.fi-ta-table th:nth-child(6),
.fi-ta-table td:nth-child(6) {
    width: 9% !important;
}

.fi-ta-table th:last-child,
.fi-ta-table td:last-child {
    width: 22% !important;
    min-width: 170px !important;
    white-space: nowrap !important;
}

/* Compact header */
.fi-ta-table thead th {
    height: 15px !important;
    padding: 0.2rem 0.4rem !important;
    font-size: 0.7rem !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

/* Compact rows */
.fi-ta-table tbody tr {
    height: 15px !important;
}

.fi-ta-table tbody td {
    height: 15px !important;
    padding: 0.1rem 0.3rem !important;
    vertical-align: middle !important;
    line-height: 1rem !important;
}

/* Prevent overlapping content */
.fi-ta-table td,
.fi-ta-table th {
    overflow: hidden !important;
}

.fi-ta-table td > *,
.fi-ta-table td .fi-ta-text,
.fi-ta-table td .fi-ta-text-item,
.fi-ta-table td .fi-ta-text-item-label {
    min-width: 0 !important;
    max-width: 100% !important;
}

.fi-ta-table .fi-ta-text-item-label {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    line-height: 1rem !important;
}

/* Compact badges */
.fi-ta-table .fi-badge {
    font-size: 0.63rem !important;
    line-height: 0.95rem !important;
    padding: 0.02rem 0.25rem !important;
    white-space: nowrap !important;
}

/* Right-side actions */
.fi-ta-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0.15rem !important;
    white-space: nowrap !important;
}

.fi-ta-actions .fi-btn {
    min-height: 1.45rem !important;
    height: 1.45rem !important;
    padding: 0.1rem 0.3rem !important;
    font-size: 0.68rem !important;
    line-height: 1rem !important;
    white-space: nowrap !important;
}

/* Compact checkboxes */
.fi-ta-table input[type="checkbox"] {
    width: 0.8rem !important;
    height: 0.8rem !important;
}

/* Remove previous sticky-column effects */
.fi-ta-table th:last-child,
.fi-ta-table td:last-child {
    position: static !important;
    right: auto !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Desktop only */
@media (min-width: 1024px) {
    .fi-ta-content {
        overflow-x: hidden !important;
    }
}
