/* TBS Official Table Widget Styles - Design Overhaul v1.1.0 */

.tbs_official_table_wrapper.tbs_official_table_wrapper {
    /* Professional Unified Container */
    background: #ffffff;
    border: 1px solid #f0f2f5;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden; /* Clips the table content to the border-radius */
    width: 100%;
}

.tbs_official_table_scroll_area.tbs_official_table_scroll_area {
    /* Responsive X-Axis Scroll */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    
    /* Smooth Scrollbar for X-overflow */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.tbs_official_table_scroll_area.tbs_official_table_scroll_area::-webkit-scrollbar {
    height: 6px;
}

.tbs_official_table_scroll_area.tbs_official_table_scroll_area::-webkit-scrollbar-track {
    background: transparent;
}

.tbs_official_table_scroll_area.tbs_official_table_scroll_area::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.tbs_official_table_modern.tbs_official_table_modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
    text-align: left;
}

.tbs_official_table_modern.tbs_official_table_modern th {
    padding: 1.5rem 25px; /* Added gutter padding */
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #4a5568; /* Charcoal/Slate Blue tone */
    background: #f8fafc; /* Light header bg */
    border-bottom: 2px solid #edf2f7;
}

.tbs_official_table_modern.tbs_official_table_modern tbody tr {
    transition: background-color 0.2s ease;
}

.tbs_official_table_modern.tbs_official_table_modern tbody tr:hover {
    background-color: #f8fafc; /* Subtle hover effect */
}

.tbs_official_table_modern.tbs_official_table_modern td {
    padding: 1.25rem 25px; /* Consistent 25px horizontal gutter */
    border: none;
    border-bottom: 1px solid #f0f2f5; /* Subtle row separator */
    vertical-align: middle;
    color: #333333; /* High contrast body text */
    font-size: 0.95rem;
}

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

/* Typography Overrides */
.tbs_official_table_col_type.tbs_official_table_col_type {
    font-weight: 700;
    color: #1a202c;
}

/* Soft Badges */
.tbs_official_table_badge.tbs_official_table_badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 20px; /* Pill shape */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* High Risk Soft Badge */
.tbs_official_table_badge_high.tbs_official_table_badge_high {
    background-color: #fff1f0;
    color: #cf1322;
}

/* Medium Risk Soft Badge */
.tbs_official_table_badge_medium.tbs_official_table_badge_medium {
    background-color: #fffbe6;
    color: #d48806;
}

/* Low/Very Low Risk Soft Badge */
.tbs_official_table_badge_low.tbs_official_table_badge_low,
.tbs_official_table_badge_very_low.tbs_official_table_badge_very_low {
    background-color: #f6ffed;
    color: #389e0d;
}

/* Semantic Iconography Classes */
.tbs_official_table_halal_status.tbs_official_table_halal_status,
.tbs_official_table_icon_status.tbs_official_table_icon_status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tbs_official_table_icon_status.tbs_official_table_icon_status svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

.tbs_official_table_icon_yes.tbs_official_table_icon_yes {
    fill: #389e0d;
}

.tbs_official_table_icon_no.tbs_official_table_icon_no {
    fill: #a0aec0; /* Muted Gray for No/Dash */
}
