﻿@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700;800;900&display=swap');

/* ── CSS VARIABLES ── */
:root {
    --teal: #11b7b7;
    --teal-dark: #0d9a9a;
    --teal-glow: rgba(17, 183, 183, 0.22);
    --teal-light: rgba(17, 183, 183, 0.08);
    --dark: #111;
    --panel-bg: rgba(255,255,255,0.95);
}

/* ── PAGE ── */
.gfrp-page {
    font-family: "Source Sans 3", Arial, sans-serif !important;
    margin: 20px auto 60px auto;
    padding: 40px 20px;
    position: relative;
/*    background-image: url('/images/gfrp-bg.png');
*/    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    border-radius: 12px;
    max-width: 1100px !important;
    margin: 0 auto !important;
}

    /* Force font on all inputs inside the page */
    .gfrp-page input,
    .gfrp-page select,
    .gfrp-page textarea {
        font-family: "Source Sans 3", Arial, sans-serif !important;
    }

/* ── BACKGROUND LAYER ──────────────────────────────────────────────────────────
   Separate div with a fixed height so the background image never stretches
   when panels are added dynamically below it.
   Adjust height to taste — panels do not affect it.
────────────────────────────────────────────────────────────────────────────── */
.gfrp-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 780px;
}

/* ── OUTER WRAPPER ── */
.gfrp-outer {
    max-width: 1000px;
    margin: 20px auto 60px auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    isolation: isolate; /* creates a stacking context so z-index works correctly */
}

/* All panels, buttons and header must sit above the background layer */
.gfrp-header,
.gfrp-panel,
.gfrp-actions {
    position: relative;
    z-index: 1;
}

/* ── VALIDATION MESSAGES ── */
.gfrp-msg {
    font-size: 0.85rem;
    line-height: 1.2;
    min-height: 2.4em;
    margin-top: 8px;
    text-align: center;
}

/* Spans full row width when inside an input row grid */
.gfrp-inputrow .gfrp-msg {
    grid-column: 1 / -1;
    justify-self: center;
}

.gfrp-msg.is-green {
    color: #2e7d32;
}

.gfrp-msg.is-yellow {
    color: #a06b00;
}

.gfrp-msg.is-red {
    color: #b00020;
}

/* ── HEADER ── */
.gfrp-header {
    padding: 20px 0;
    text-align: center;
}

.gfrp-title {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
    /* Strong shadow to keep text readable over the background image */
    text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 2px 14px rgba(0,0,0,0.7);
}

/* ── PANELS ── */
.gfrp-panel {
    margin: 20px 0;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.89);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: box-shadow 0.3s ease;
}

/* Extra bottom padding on results panel to make room for the verdict badge */
#ResultsPanel {
    padding-bottom: 80px;
}

.gfrp-panel-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── PROJECT INFO GRID ── */
.gfrp-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.gfrp-row-2 {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 15px;
    align-items: center;
}

.gfrp-label {
    font-weight: 700;
    color: #444;
}

/* ── TEXT INPUTS & SELECTS ── */
.gfrp-input,
.gfrp-select {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 2px solid rgba(0,0,0,0.1);
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

    .gfrp-input:focus,
    .gfrp-select:focus {
        border-color: var(--teal);
        outline: none;
        box-shadow: 0 0 0 4px var(--teal-glow);
    }

/* ── RANGE SLIDER ── */
input[type="range"] {
    width: 100%;
    margin: 8px 0 2px 0;
    display: block;
    accent-color: var(--teal);
}

.gfrp-area-range {
    font-size: 0.72rem;
    color: #999;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── FIELD WRAPPER ── */
.gfrp-field {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── UNIT SELECTION / RADIO BUTTONS ── */
.gfrp-unitline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 8px 0;
}

.gfrp-unitlabel {
    font-weight: 800;
    color: #333;
}

.gfrp-radio {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-weight: 700;
    cursor: pointer;
}

    .gfrp-radio input[type="radio"] {
        accent-color: var(--teal);
        width: 15px;
        height: 15px;
        cursor: pointer;
    }

/* ── INPUT TABLE ── */
.gfrp-inputtable {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Each input row: number | label | field | unit | traffic lights */
.gfrp-inputrow {
    display: grid;
    grid-template-columns: 40px 1.5fr 2fr 80px 100px;
    gap: 15px;
    align-items: center;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(0,0,0,0.04);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

    /* Highlight active row when its input is focused */
    .gfrp-inputrow.is-focused {
        background: rgba(17, 183, 183, 0.07);
        box-shadow: 0 0 0 2px rgba(17, 183, 183, 0.2);
    }

.gfrp-num {
    font-weight: 900;
    color: #999;
    font-size: 18px;
}

.gfrp-unit {
    font-weight: 800;
    color: #666;
}

/* ── TRAFFIC LIGHTS ── */
.gfrp-lights {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.gfrp-light {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: #e0e0e0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

    .gfrp-light.is-off {
        background: #e0e0e0;
    }

    .gfrp-light.is-green {
        background: #18c964;
        box-shadow: 0 0 8px rgba(24,201,100,0.4);
    }

    .gfrp-light.is-yellow {
        background: #f5c542;
        box-shadow: 0 0 8px rgba(245,197,66,0.4);
    }

    .gfrp-light.is-red {
        background: #ff3b30;
        box-shadow: 0 0 8px rgba(255,59,48,0.4);
    }

/* ── ACTION BUTTONS ── */
.gfrp-actions {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.gfrp-btn {
    width: fit-content;
    padding: 12px 24px;
    border-radius: 50px;
    border: 3px solid var(--teal);
    background: #000;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Source Sans 3", Arial, sans-serif;
}

    /* Disabled state — applied by JS when any input has a red traffic light */
    .gfrp-btn:disabled,
    .gfrp-btn.is-disabled {
        background: #bfbfbf !important;
        color: #666 !important;
        border-color: #bfbfbf !important;
        cursor: not-allowed;
        opacity: 0.65;
    }

    .gfrp-btn:hover:not(:disabled):not(.is-disabled) {
        background: var(--teal);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px var(--teal-glow);
    }

    .gfrp-btn:active {
        transform: translateY(-1px);
    }

    .gfrp-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px var(--teal-glow);
    }

/* ── RESULTS GRID ── */
.gfrp-results {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.gfrp-resultcard {
    border-radius: 16px;
    padding: 20px;
    background: rgba(17, 183, 183, 0.08);
    border: 1px solid rgba(17, 183, 183, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

    /* Final result card gets a stronger teal highlight */
    .gfrp-resultcard.is-final {
        background: rgba(17, 183, 183, 0.18);
        border: 2px solid var(--teal);
        box-shadow: 0 4px 16px var(--teal-glow);
    }

.gfrp-resultvalue {
    font-size: 42px;
    font-weight: 900;
    color: var(--teal);
    margin: 5px 0;
}

.gfrp-resulttitle {
    font-weight: 700;
    color: #555;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gfrp-resultunit {
    font-weight: 600;
    color: #888;
    font-size: 13px;
}

/* Pulse animation on the results panel after calculation */
@keyframes resultPulse {
    0% {
        box-shadow: 0 0 0 0 var(--teal-glow);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(17,183,183,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(17,183,183,0);
    }
}

#ResultsPanel {
    position: relative;
    padding-bottom: 75px;
}

    #ResultsPanel.result-pulse {
        animation: resultPulse 0.7s ease-out;
    }

/* ── DESIGN ILLUSTRATION ── */

/* Slide-in animation triggered by JS after calculation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.illustration-slide-in {
    animation: slideInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.illustration-drawings-row {
    display: flex;
    flex-direction: row;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
    padding: 12px 0;
    flex-wrap: nowrap;
}

.illustration-drawing-col {
    flex: 1;
    max-width: 48%;
    text-align: center;
}

.drawing-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

/* ── PREVIEW BUTTON ── */
.preview-btn-row {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 6px;
}

.preview-btn {
    display: inline-flex !important;
    width: auto !important;
    align-items: center;
    gap: 8px;
    padding: 11px 32px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: background 0.2s ease, transform 0.2s ease;
    font-family: "Source Sans 3", Arial, sans-serif;
}

    .preview-btn:hover {
        background: var(--teal-dark);
        transform: translateY(-2px);
    }

/* ── IMAGE MODAL ── */
.img-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    /* JS adds .open class to show the modal */
    .img-modal-overlay.open {
        display: flex;
    }

.img-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    max-width: 94vw;
    max-height: 92vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    text-align: center;
    position: relative;
    min-width: 320px;
}

    .img-modal-box img {
        max-width: 100%;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
    }

.img-modal-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.img-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    line-height: 32px;
    text-align: center;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

    .img-modal-close:hover {
        background: var(--teal);
        color: #fff;
    }

.img-modal-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.img-modal-dl {
    padding: 9px 28px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
    font-family: "Source Sans 3", Arial, sans-serif;
}

    .img-modal-dl:hover {
        background: var(--teal-dark);
    }

/* ── REFERENCE TABLE ── */
.t3-wrap {
    margin: 2.5rem auto;
    max-width: 1000px;
    font-family: 'Source Sans 3', Arial, sans-serif;
    font-size: 0.83rem;
    padding: 0 20px 40px;
}

.t3-section-label {
    display: inline-block;
    background: #111;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 4px 4px 0 0;
    border: 2px solid var(--teal);
    border-bottom: none;
}

.t3-card {
    border: 2px solid var(--teal);
    border-radius: 0 6px 6px 6px;
    overflow: visible;
    box-shadow: 0 4px 20px var(--teal-glow);
}

.t3-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.81rem;
}

    /* Header rows */
    .t3-table thead tr.t3-group th {
        background: #111;
        color: #fff;
        padding: 10px 12px;
        text-align: center;
        font-weight: 600;
        font-size: 0.79rem;
        vertical-align: bottom;
        border-right: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(17,183,183,0.3);
    }

    .t3-table thead tr.t3-sub th {
        background: #1a1a1a;
        color: var(--teal);
        padding: 8px 12px;
        text-align: center;
        font-weight: 600;
        font-size: 0.76rem;
        vertical-align: bottom;
        border-right: 1px solid rgba(255,255,255,0.08);
        border-bottom: 3px solid var(--teal);
        white-space: nowrap;
    }

    .t3-table th.t3-left {
        text-align: left;
        padding-left: 18px;
    }

    /* Body cells */
    .t3-table tbody tr td {
        padding: 9px 12px;
        text-align: center;
        vertical-align: middle;
        border-right: 1px solid #e8f2fb;
        border-bottom: 1px solid #e8f2fb;
        color: #1a2a3a;
        white-space: nowrap;
        background: #fff;
        transition: background 0.15s;
    }

        /* First column (bar designation) gets a teal left border and bold text */
        .t3-table tbody tr td:first-child {
            text-align: left;
            padding-left: 18px;
            font-weight: 700;
            color: #111;
            background: #f0fafa !important;
            border-right: 3px solid var(--teal);
        }

        .t3-table tbody tr td:last-child,
        .t3-table thead tr th:last-child {
            border-right: none;
        }

    .t3-table tbody tr:nth-child(even) td {
        background: #f7fefe;
    }

    .t3-table tbody tr:hover td {
        background: #d0f5f7 !important;
    }

    /* Active row — highlighted by JS when the selected bar size matches */
    .t3-table tbody tr.t3-row-active td {
        background: #b2ecec !important;
        font-weight: 700;
        overflow: visible;
        white-space: nowrap;
    }

        .t3-table tbody tr.t3-row-active td:first-child {
            background: #7ddede !important;
            color: #006b6b;
            overflow: visible;
            white-space: nowrap;
        }

    /* .t3-div adds a teal left border to visually separate column groups */
    .t3-table td.t3-div,
    .t3-table th.t3-div {
        border-left: 2px solid var(--teal);
    }

.t3-footnote {
    font-size: 0.78rem;
    color: #1a3a4a;
    margin-top: 10px;
    padding: 12px 16px;
    font-style: italic;
    background: #ffffff;
    border-radius: 6px;
    line-height: 1.6;
    border: 1px solid rgba(17,183,183,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── TOOLTIPS ── */
/* CSS-only tooltips using data-tooltip attribute — no JS needed */
[data-tooltip] {
    position: relative;
}

    [data-tooltip]::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 130%;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--teal);
        color: #fff;
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 12px;
        white-space: normal;
        width: 220px;
        text-align: center;
        box-shadow: 0 4px 12px rgba(17,183,183,0.3);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        z-index: 9999;
        pointer-events: none;
        line-height: 1.5;
    }

    /* Tooltip arrow */
    [data-tooltip]::before {
        content: '';
        position: absolute;
        bottom: 115%;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: var(--teal);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        z-index: 9999;
    }

    [data-tooltip]:hover::after,
    [data-tooltip]:hover::before {
        opacity: 1;
        visibility: visible;
    }

/* ── RESPONSIVE ── */
@media (max-width: 850px) {

    /* Stack input rows vertically on small screens */
    .gfrp-inputrow {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gfrp-num {
        display: none;
    }

    .gfrp-lights {
        justify-content: center;
    }

    /* Stack result cards vertically */
    .gfrp-results {
        grid-template-columns: 1fr;
    }

    .gfrp-row-2 {
        grid-template-columns: 1fr;
    }

    /* Stack illustration drawings vertically */
    .illustration-drawings-row {
        flex-direction: column;
    }

    .illustration-drawing-col {
        max-width: 100%;
    }

    /* Allow table to scroll horizontally on small screens */
    .t3-wrap {
        max-width: 100%;
        overflow-x: auto;
    }
}

/* ── ILLUSTRATION ANIMATIONS ── */

/* Panel appear animation — triggered by JS after calculate */
@keyframes panelAppear {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.illustration-appear {
    animation: panelAppear 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Bar draw-in animation — each bar fades in with a JS-applied stagger delay */
@keyframes barFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.gfrp-bar {
    cursor: pointer;
    transition: stroke 0.2s ease, stroke-width 0.2s ease;
    animation: barFadeIn 0.4s ease both;
}

    /* Hover state — orange highlight */
    .gfrp-bar:hover {
        stroke: #ff9500 !important;
        stroke-width: 8 !important;
    }

    /* Click-toggled highlight state */
    .gfrp-bar.is-highlighted {
        stroke: #e63946 !important;
        stroke-width: 9 !important;
    }

/* Floating tooltip that follows the cursor over bar elements */
.bar-tooltip {
    position: fixed;
    background: #111;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
    z-index: 10000;
    display: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ── CUSTOM DROPDOWN (Bar Size) ── */

/* Hide native select — replaced by the custom div-based dropdown built in JS */
.gfrp-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2311b7b7' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border: 1.5px solid #dde2ea;
    border-radius: 10px;
    padding: 8px 36px 8px 12px;
    font-size: 13px;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    height: 40px;
    outline: none;
    width: 100%;
}

    .gfrp-select:hover {
        border-color: #11b7b7;
    }

    .gfrp-select:focus {
        border-color: #11b7b7;
        box-shadow: 0 0 0 3px rgba(17, 183, 183, 0.15);
    }

/* Wrapper — JS inserts this around the native select */
.gfrp-custom-select {
    position: relative;
    width: 100%;
}

    /* Native select hidden inside the wrapper */
    .gfrp-custom-select select {
        display: none;
    }

/* Visible trigger button */
.gfrp-custom-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #ffffff;
    border: 1.5px solid #dde2ea;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    min-height: 40px;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: "Source Sans 3", Arial, sans-serif;
    user-select: none;
}

    .gfrp-custom-trigger:hover,
    .gfrp-custom-select.is-open .gfrp-custom-trigger {
        border-color: #11b7b7;
        box-shadow: 0 0 0 3px rgba(17,183,183,0.15);
    }

    .gfrp-custom-trigger svg {
        flex-shrink: 0;
        transition: transform 0.2s;
    }

/* Rotate arrow icon when dropdown is open */
.gfrp-custom-select.is-open .gfrp-custom-trigger svg {
    transform: rotate(180deg);
}

/* Floating options list — appended to body by JS to avoid overflow clipping */
.gfrp-custom-options {
    display: none;
    position: fixed;
    background: #ffffff;
    border: 1.5px solid #11b7b7;
    border-radius: 10px;
    overflow-y: auto;
    max-height: 280px;
    z-index: 99999;
    min-width: 220px;
    max-width: calc(100vw - 24px);
    box-shadow: 0 8px 24px rgba(17,183,183,0.18);
}

.gfrp-custom-select.is-open .gfrp-custom-options {
    display: block;
}

.gfrp-custom-option {
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    font-family: "Source Sans 3", Arial, sans-serif;
    transition: background 0.12s, color 0.12s;
}

    .gfrp-custom-option:hover {
        background: #e6fafa;
        color: #11b7b7;
    }

    .gfrp-custom-option.is-selected {
        background: #11b7b7;
        color: #ffffff;
    }

/* ── ELASTIC BUCKLING COLUMN ANIMATION ── */
/* Reused here even though it belongs to Elastic Buckling — kept in this file for now */
@keyframes ebColumnAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eb-column-animate {
    animation: ebColumnAppear 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (max-width: 900px) {
    .t3-wrap {
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 0 20px !important;
    }

    .t3-card {
        min-width: unset !important;
        width: 100% !important;
    }

    /* Turn table into block layout */
    .t3-table,
    .t3-table thead,
    .t3-table tbody,
    .t3-table tr,
    .t3-table th,
    .t3-table td {
        display: block !important;
        width: 100% !important;
    }

        /* Hide the original header row */
        .t3-table thead {
            display: none !important;
        }

        /* Each row becomes a card */
        .t3-table tbody tr {
            background: #fff !important;
            border: 1px solid rgba(17,183,183,0.2) !important;
            border-radius: 10px !important;
            margin-bottom: 10px !important;
            padding: 10px 14px !important;
            display: grid !important;
            grid-template-columns: 1fr 1fr !important;
            gap: 6px 12px !important;
            width: 100% !important;
            box-sizing: border-box !important;
        }

            .t3-table tbody tr.t3-row-active {
                border-color: var(--teal) !important;
                border-width: 2px !important;
            }

            /* Each cell — show label from data-label attribute */
            .t3-table tbody tr td {
                background: transparent !important;
                border: none !important;
                padding: 4px 0 !important;
                text-align: left !important;
                font-size: 12px !important;
                display: flex !important;
                flex-direction: column !important;
                width: auto !important;
            }

                .t3-table tbody tr td::before {
                    content: attr(data-label) !important;
                    font-size: 9px !important;
                    font-weight: 700 !important;