/* ========================================
   COLUMNISTS PAGE LAYOUT
   columnists-layout.css
   ======================================== */

#columnists-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 28px 36px 0 36px;
    box-sizing: border-box;
}

/* ========================================
   TOOLBAR (search + count)
   ======================================== */

#columnists-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

#columnists-search {
    flex: 1;
    max-width: 320px;
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    outline: none;
    transition: border-color 0.15s;
}

#columnists-search:focus {
    border-color: #0000CC;
}

#columnists-count {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

/* ========================================
   TABLE WRAPPER
   ======================================== */

#columnists-table-wrapper {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 28px;
}

/* ========================================
   TABLE
   ======================================== */

#columnists-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#columnists-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fafafa;
}

#columnists-table thead th {
    padding: 11px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    border-bottom: 1px solid #e5e5e5;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

#columnists-table thead th:hover {
    color: #333;
    background: #f2f2f2;
}

#columnists-table thead th.sort-asc::after {
    content: ' ↑';
    color: #0000CC;
}

#columnists-table thead th.sort-desc::after {
    content: ' ↓';
    color: #0000CC;
}

#columnists-table thead th.sort-asc,
#columnists-table thead th.sort-desc {
    color: #0000CC;
}

#columnists-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.1s;
}

#columnists-table tbody tr:last-child {
    border-bottom: none;
}

#columnists-table tbody tr:hover {
    background: #f8f8f8;
}

#columnists-table tbody td {
    padding: 11px 14px;
    color: #333;
    vertical-align: middle;
}

/* Name column */
.col-name {
    font-weight: 600;
    min-width: 180px;
}

.col-name a {
    color: #0000CC;
    text-decoration: none;
}

.col-name a:hover {
    text-decoration: underline;
}

/* Count columns */
.col-count {
    text-align: right;
    font-variant-numeric: tabular-nums;
    min-width: 80px;
}

.col-count-zero {
    color: #ccc;
}

/* Date columns */
.col-date {
    white-space: nowrap;
    color: #666;
    min-width: 100px;
}

/* ========================================
   EMPTY STATE
   ======================================== */

#columnists-empty {
    padding: 48px;
    text-align: center;
    color: #aaa;
    font-size: 15px;
    font-style: italic;
}

/* ========================================
   ACTIVE NAV LINK
   ======================================== */

#menus a.active-nav {
    color: #0000CC;
    border-bottom: 2px solid #0000CC;
    padding-bottom: 2px;
}
