/* Reset Elementor widget default spacing */
.elementor-widget-supporting_metrics {
    padding: 0 !important;
    margin: 0 !important;
}

.elementor-widget-supporting_metrics .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

.smew-table-container {
    --bg-dark: #050A0D;
    --bg-light: #12171B;
    --text: #F5F3EF;
    --green: #00C5BC;
    --border: rgba(255, 255, 255, 0.2);
    --border-sub: rgba(255, 255, 255, 0.1);
    --header-line: rgba(255, 255, 255, 0.3);
    --line: #FFFFFF;
    
    position: relative;
    background: var(--bg-dark);
    border-radius: 0;
    font-family: 'Poppins', sans-serif;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

/* Column headers container */
.smew-column-headers {
    display: flex;
    height: 91px;
    align-items: center;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--header-line);
    position: relative;
    z-index: 1;
}

.smew-column-header {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Both columns have same padding structure */
.smew-column-header {
    padding: 0 27px;
}

.smew-column-header .smew-metric-label,
.smew-column-header .smew-improvement-label {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: -0.03em;
}

.smew-column-header .smew-metric-label {
    color: var(--text);
    flex: 1;
    text-align: left;
}

.smew-column-header .smew-improvement-label {
    color: var(--green);
    text-align: right;
    width: 140px;
    flex-shrink: 0;
}

.smew-vertical-divider {
    position: absolute;
    left: 50%;
    top: 91px;               /* starts below header */
    bottom: 0;
    width: 1px;
    background: var(--border-sub);
    transform: translateX(-50%);
}

.smew-row {
    display: flex;
    align-items: center;
    height: 91px;
}

.smew-row:nth-child(odd)  { background: var(--bg-dark); }
.smew-row:nth-child(even) { background: var(--bg-light); }

.smew-half {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto 140px; /* Metric | Connector | Value */
    align-items: center;
    height: 100%;
    padding: 0 27px;
}

.smew-metric {
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: -0.03em;
    color: var(--text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smew-connector {
    width: 38px; /* Match SVG width */
    height: 1px; /* Match SVG height */
    flex-shrink: 0;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smew-connector-icon {
    width: 100%;
    height: 100%;
    color: var(--line); /* This will control the stroke color */
    stroke: currentColor; /* Apply the currentColor to stroke */
}

/* For mobile responsiveness */
@media (max-width: 767px) {
    .smew-connector {
        width: 30px; /* Smaller on mobile */
    }
}

@media (max-width: 480px) {
    .smew-connector {
        width: 40px; /* Even smaller on very small screens */
    }
}

.smew-value {
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: -0.03em;
    color: var(--green);
    text-align: right;
    width: 140px;
    flex-shrink: 0;
}

/* Mobile rows - hidden on desktop by default */
.smew-mobile-row {
    display: none;
}

/* ────────────────────────────────────────
   MOBILE
──────────────────────────────────────── */
@media (max-width: 767px) {
    /* Hide the second column header on mobile */
    .smew-column-headers .smew-column-header:last-child {
        display: none;
    }
    
    /* Adjust the first column header to take full width on mobile */
    .smew-column-headers {
        justify-content: center;
    }
    
    .smew-column-header:first-child {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    .smew-vertical-divider {
        display: none;
    }
    
    /* Hide desktop rows on mobile */
    .smew-row {
        display: none;
    }
    
    /* Show mobile rows on mobile */
    .smew-mobile-row {
        display: grid;
        grid-template-columns: 1fr auto 140px;
        align-items: center;
        padding: 0 24px;
        height: 91px;
    }
    
    /* Apply the same alternating backgrounds */
    .smew-mobile-row:nth-child(odd) {
        background: var(--bg-dark);
    }
    
    .smew-mobile-row:nth-child(even) {
        background: var(--bg-light);
    }
    
    /* Mobile specific connector alignment */
    .smew-mobile-row .smew-connector {
        justify-self: center;
    }
}

@media (max-width: 480px) {
    .smew-mobile-row { 
        padding: 0 20px;
        grid-template-columns: 1fr auto 100px; /* Smaller value column on mobile */
    }
    .smew-mobile-row .smew-value {
        width: 100px;
    }
    .smew-column-header:first-child { 
        padding: 0 20px; 
    }
}