/* Table Container */
.at-9e984061-container {
    width: 100%;
    font-family: inherit;
    line-height: 0; /* Fixes stray text nodes causing spacing */
    margin: 0;
    padding: 0;
}

.at-9e984061-toolbar {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
    line-height: normal; /* Reset line height for text */
}

.at-9e984061-search {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 100%;
    max-width: 250px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.at-9e984061-search:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.at-9e984061-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 200px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    background: #fff;
    border: 1px solid #e2e8f0;
    margin: 0 !important;
    padding: 0 !important;
    display: flex; /* Prevent inline-block bottom spacing */
    flex-direction: column;
}

.at-9e984061-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    text-align: left;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal; /* Reset line height for text inside table */
}

.at-9e984061-table tbody {
    margin: 0;
    padding: 0;
}

.at-9e984061-table th,
.at-9e984061-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.at-9e984061-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
    position: relative;
    user-select: none;
}

.at-9e984061-table th.is-sortable {
    cursor: pointer;
    padding-right: 30px;
}

.at-9e984061-table th.is-sortable:hover {
    background-color: #f1f5f9;
}

.at-9e984061-sort-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #94a3b8;
    opacity: 0.3;
}

th.asc .at-9e984061-sort-icon {
    opacity: 1;
    border-bottom: 4px solid #334155;
    border-top: none;
}

th.desc .at-9e984061-sort-icon {
    opacity: 1;
    border-top: 4px solid #334155;
    border-bottom: none;
}

.at-9e984061-table td {
    color: #334155;
    font-size: 15px;
    transition: background-color 0.2s ease;
}

.at-9e984061-table tr:last-child td {
    border-bottom: none;
}

/* Mobile Stacked (Card) View */
@media screen and (max-width: 767px) {
    .at-9e984061-mobile-stack .at-9e984061-table thead {
        display: none;
    }
    
    .at-9e984061-mobile-stack .at-9e984061-table,
    .at-9e984061-mobile-stack .at-9e984061-table tbody,
    .at-9e984061-mobile-stack .at-9e984061-table tr,
    .at-9e984061-mobile-stack .at-9e984061-table td {
        display: block;
        width: 100%;
    }
    
    .at-9e984061-mobile-stack .at-9e984061-table tr {
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 200px;
        overflow: hidden;
    }
    
    .at-9e984061-mobile-stack .at-9e984061-table tr:last-child {
        margin-bottom: 0;
    }
    
    .at-9e984061-mobile-stack .at-9e984061-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .at-9e984061-mobile-stack .at-9e984061-table td:last-child {
        border-bottom: none;
    }
    
    .at-9e984061-mobile-stack .at-9e984061-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: #64748b;
        font-size: 13px;
        text-transform: uppercase;
    }
}