.sst-table-wrap {
    width: 100%;
    margin: 1.5rem 0;
}

.sst-search-label {
    display: block;
    max-width: 320px;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.sst-search {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid #b8c0cc;
    border-radius: 4px;
}

.sst-scroll {
    width: 100%;
    overflow-x: auto;
}

.sst-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.sst-table th,
.sst-table td {
    padding: 0.75rem;
    border: 1px solid #d7dce3;
    text-align: left;
    vertical-align: top;
}

.sst-table th {
    background: #f4f6f8;
}

.sst-table th button {
    display: inline-flex;
    width: 100%;
    min-height: 32px;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.sst-table th button::after {
    content: "↕";
    margin-left: 0.5rem;
    color: #667085;
    font-size: 0.8em;
}

.sst-table th.is-asc button::after {
    content: "↑";
}

.sst-table th.is-desc button::after {
    content: "↓";
}

.sst-empty {
    padding: 1rem;
    border: 1px solid #d7dce3;
    background: #f8fafc;
}

@media (max-width: 640px) {
    .sst-scroll {
        overflow: visible;
    }

    .sst-table,
    .sst-table thead,
    .sst-table tbody,
    .sst-table tr,
    .sst-table th,
    .sst-table td {
        display: block;
    }

    .sst-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .sst-table tr {
        margin-bottom: 0.85rem;
        border: 1px solid #d7dce3;
    }

    .sst-table td {
        display: grid;
        grid-template-columns: minmax(120px, 38%) 1fr;
        gap: 0.75rem;
        border: 0;
        border-bottom: 1px solid #e6e9ee;
    }

    .sst-table td::before {
        content: attr(data-label);
        font-weight: 700;
    }
}
