/* --- SATURN TABLE WIDGET --- */

.sb-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--sb-radius);
    border: 1px solid #e0e0e0;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.sb-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: inherit;
}

/* Header Styling */
.sb-table thead th {
    background: #333;
    color: #fff;
    padding: 20px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.sb-table thead th:first-child { border-top-left-radius: var(--sb-radius); }
.sb-table thead th:last-child { border-top-right-radius: var(--sb-radius); }

/* Body Styling */
.sb-table tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    transition: background var(--sb-transition), color var(--sb-transition);
    vertical-align: middle;
}

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

.sb-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--sb-radius); }
.sb-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--sb-radius); }

/* Zebra Striping */
.sb-table-striped tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Hover Effect */
.sb-table-hover tbody tr:hover td {
    background: #fdfdfd;
    color: #000;
}

/* Icon & Badge Support */
.sb-table-icon {
    margin-right: 8px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    opacity: 0.8;
}

.sb-table-icon i, .sb-table-icon svg {
    width: 1em;
    height: 1em;
}

.sb-table-badge {
    padding: 5px 12px;
    border-radius: 4px; /* Professional sharp look by default */
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Alignment */
.sb-align-left { text-align: left; }
.sb-align-center { text-align: center; }
.sb-align-right { text-align: right; }

/* Responsive Indicator */
.sb-table-res-hint {
    display: none;
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 767px) {
    .sb-table-res-hint { display: block; }
}
