.table-wrapper {
    display: flex;
    max-width: 100%;
    margin: 12px auto;
    padding: 0 16px;
    overflow-x: auto; flex-direction: column; 
    margin-bottom: 20px;
}

.table-header{
    margin: 0;
    margin-top: 10px ;
    margin-bottom: 10px;
    padding-left: 20px;
}

.table {
    width: 600px;
    border-collapse: separate;   
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;            
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
                0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: system-ui, Arial, sans-serif;
    font-size: 14px;
    color: #2b2b2b;
}

.table thead th {
    background: #fafafa;
    color: #6b6b6b;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid #ececec;
    white-space: nowrap;
}

.table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
    background: #ffffff;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}
.table tbody tr:hover td {
    background: #f7f9fc;
}

.table tbody td:empty::after {
    color: #c0c0c0;
}

.table tbody tr.empty td {
    text-align: center;
    color: #9a9a9a;
    padding: 32px 18px;
    font-style: italic;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.table th[data-sort] {
    cursor: pointer;
    user-select: none;
}

.table th[data-sort]:hover {
    background: #f0f3f8;
}

.table th.sorted-asc::after {
    content: " ▲";
    color: #4f7cff;
}

.table th.sorted-desc::after {
    content: " ▼";
    color: #4f7cff;
}