/* =============================================
   GS Table Manager – Frontend Styles
   --gs-highlight : accent color for highlight cells
   --gs-border    : row separator color
   --gs-header    : header label color
   --gs-text      : body text color
   --gs-link      : link text color
============================================= */

.gs-table-wrap {
    --gs-highlight: #282828;
    --gs-border: #D5D5D5;
    --gs-header: #888;
    --gs-text: #282828;
    --gs-link: #282828;
    width: 100%;
}

.gs-table-wrap .gs-table-scroll-hint {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--gs-text);
}

/* --- Scroll wrapper (responsive) --- */
.gs-table-wrap.gs-table--responsive .gs-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gs-table-wrap.gs-table--responsive .gs-table-scroll::-webkit-scrollbar {
    height: 4px;
}

.gs-table-wrap.gs-table--responsive .gs-table-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* --- Table reset --- */
.gs-table-wrap .gs-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border: none;
    font-family: inherit;
    color: var(--gs-text);
    margin: 0;
}

/* --- Header --- */
.gs-table-wrap .gs-table thead th {
    font-size: 15px;
    font-weight: 400;
    color: var(--gs-header);
    padding: 0 0px 9px;
    border: none;
    border-bottom: 1px solid var(--gs-border);
    vertical-align: bottom;
    white-space: nowrap;
    background: transparent;
}

.gs-table-wrap.gs-table--uppercase .gs-table thead th {
    text-transform: uppercase;
}

/* --- Body rows --- */
.gs-table-wrap .gs-table tbody tr {
    border: none;
    background: transparent;
}

.gs-table-wrap.gs-table--bordered .gs-table tbody tr {
    border-bottom: 1px solid var(--gs-border);
}

/* --- Cells --- */
.gs-table-wrap .gs-table tbody td {
    padding: 24px 0px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--gs-text);
    vertical-align: top;
    border: none;
    background: transparent;
}
.gs-table-wrap .gs-table tbody tr td:first-child {
    font-size: 22px;
    line-height: 32px;
    font-weight: 400;
}
/* --- Cell styles --- */
.gs-table-wrap .gs-cell--bold .gs-cell-content {
    font-weight: 700;
}

.gs-table-wrap .gs-cell--highlight .gs-cell-content {
    font-weight: 700;
    color: var(--gs-highlight);
}

/* --- Cell content block --- */
.gs-table-wrap .gs-cell-content {
    display: block;
}

/* --- Cell links --- */
.gs-table-wrap .gs-cell-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-top: 10px;
}

.gs-table-wrap .gs-cell-links a {
    font-size: 13px;
    font-weight: 400;
    color: var(--gs-link);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: opacity 0.2s ease;
}

.gs-table-wrap .gs-cell-links a:hover {
    opacity: 0.6;
}

.gs-table-wrap .gs-link-arrow {
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gs-table-wrap .gs-link-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Footer --- */
.gs-table-wrap .gs-table-footer {
    padding: 28px 0 0;
}

.gs-table-wrap .gs-table-footer a {
    font-size: 15px;
    font-weight: 600;
    color: var(--gs-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s ease;
}

.gs-table-wrap .gs-table-footer a:hover {
    opacity: 0.6;
}

/* =============================================
   Responsive
============================================= */
@media (max-width: 1200px) {
    .gs-table-wrap .gs-table thead th {
        font-size: 10px;
        padding: 0 12px 12px;
    }

    .gs-table-wrap .gs-table tbody td {
        padding: 20px 12px;
        font-size: 13px;
    }

    .gs-table-wrap .gs-cell-links a {
        font-size: 11px;
    }

    .gs-table-wrap .gs-table-footer a {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .gs-table-wrap.gs-table--responsive .gs-table-scroll-hint {
        display: flex;
    }

    .gs-table-wrap .gs-table {
        min-width: 600px;
    }

    .gs-table-wrap .gs-table thead th {
        font-size: 9px;
        padding: 0 10px 10px;
        letter-spacing: 0.8px;
    }

    .gs-table-wrap .gs-table tbody td {
        padding: 16px 10px;
        font-size: 12px;
        line-height: 1.5;
    }

    .gs-table-wrap .gs-cell-links {
        gap: 2px 12px;
        margin-top: 6px;
    }

    .gs-table-wrap .gs-cell-links a {
        font-size: 10px;
    }

    .gs-table-wrap .gs-table-footer {
        padding: 20px 0 0;
    }

    .gs-table-wrap .gs-table-footer a {
        font-size: 13px;
    }
}
