/*
 Page structure & header
*/

.page-container {
    padding: 16px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.page-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.page-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.page-actions {
    display: flex;
    gap: 8px;
}

.back-link {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/**
 Toolbar (search + filters row)
*/

.table-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/*
.table-search-input {
    flex: 1;
    max-width: 360px;

    height: 32px;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 240px;
}
*/

.table-search-input {
    flex: 1;
    max-width: 360px;
    height: 32px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;

}

.filters-panel {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.filter-toggle .chevron {
    font-size: 10px;
}

/*
 Table wrapper & table
*/
.table-wrapper {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead {
    background: #2f2f2f;
}


.in-group {
    opacity: 0.55;
}

.tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 10px;
    border: 1px solid #bbb;
    color: #333;
    background: #f2f2f2;
}


.admin-table th,
.admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    white-space: nowrap;
    text-align: center;
}

.admin-table th {
    font-weight: 600;
    color: #444;
    cursor: pointer;
    color: #ffffff;
}

.admin-table tbody tr:hover {
    background: #fafafa;
}


/* Name column (2nd column): left aligned */
.admin-table th:nth-child(2),
.admin-table td:nth-child(2) {
    text-align: left;
}

/*
 Sorting indicators
 */
.admin-table th.sorted-asc::after {
    content: " ▲";
    font-size: 10px;
}

.admin-table th.sorted-desc::after {
    content: " ▼";
    font-size: 10px;
}

/*
 Pagination bar
 */

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.pagination-bar button {
    margin-left: 4px;
}

#paginationInfo{
    font-size: 13px;
}

/*
 Footer actions
 */
.page-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.selection-info {
    font-size: 13px;
    color: #555;
}

/*
 Empty state + utility
 */
.empty-state {
    padding: 16px;
    text-align: center;
    color: #555;
}

.hidden {
    display: none !important;
}


/* ==========================================================
   Buttons
   ========================================================== */
.page-arrow {
    font-size: 18px;
    padding: 0 8px;
    cursor: pointer;
    color: #333;
    user-select: none;
}

.page-arrow:hover {
    color: #000;
}

.page-arrow.disabled {
    opacity: 0.3;
    cursor: default;
}


.primary-btn,
.secondary-btn {
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Primary (default light button) */
.primary-btn {
    background: #ffffff;
    border: 1px solid #ccc;
    color: #222;
}

.primary-btn:not(:disabled):hover {
    background: #f6f7f8;
    border-color: #999;
}

/* Secondary (same visual weight, used for filters, cancel, pagination) */
.secondary-btn {
    background: #ffffff;
    border: 1px solid #ccc;
    color: #222;
}

.secondary-btn:not(:disabled):hover {
    background: #f6f7f8;
    border-color: #999;
}

.primary-btn:disabled,
.secondary-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ==========================================================
   Inputs & selects
   ========================================================== */

select {
    height: 32px;
    min-width: 150px;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #ffffff;
    color: #222;
}

select:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #999;
}


/* ==========================================================
   Table checkboxes
   ========================================================== */

.admin-table input[type="checkbox"] {
    cursor: pointer;
}