﻿@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700;800;900&display=swap');

:root {
    --teal: #11b7b7;
    --teal-dark: #0d9a9a;
    --teal-glow: rgba(17, 183, 183, 0.22);
    --panel-bg: rgba(255,255,255,0.85);
}

.gfrp-outer {
    max-width: 100%;
    margin: 20px 0 60px 0;
    position: relative;
    border-radius: 20px;
    /*background-image: url('/images/elastic-buck-bg.png');*/
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
/* Reserve SVG space so background doesn't jump when drawing renders */
#ColumnSvg {
    min-height: 440px;
    display: block;
}

.gfrp-page {
    font-family: "Source Sans 3", Arial, sans-serif !important;
    padding: 30px 16px 50px;
    position: relative;
    background-image: none;
}

    .gfrp-page input,
    .gfrp-page select,
    .gfrp-page textarea {
        font-family: "Source Sans 3", Arial, sans-serif !important;
    }

.gfrp-header {
    padding: 16px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.gfrp-title {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 2px 14px rgba(0,0,0,0.7);
}

.gfrp-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 4px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 2px 14px rgba(0,0,0,0.7);
}

.gfrp-panel {
    margin: 16px 0;
    padding: 18px;
    border-radius: 14px;
    background: var(--panel-bg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

.gfrp-panel-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gfrp-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.gfrp-row-2 {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px;
    align-items: center;
}

.gfrp-label {
    font-weight: 700;
    color: #444;
    font-size: 13px;
}

.gfrp-input, .gfrp-select {
    width: 100%;
    height: 38px;
    border-radius: 8px;
    border: 2px solid rgba(0,0,0,0.1);
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    min-width: 0;
}

    .gfrp-input:focus, .gfrp-select:focus {
        border-color: var(--teal);
        outline: none;
        box-shadow: 0 0 0 3px var(--teal-glow);
    }

.gfrp-unitline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
}

.gfrp-unitlabel {
    font-weight: 800;
    color: #333;
    font-size: 13px;
}

.gfrp-radio {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

    .gfrp-radio input[type="radio"] {
        accent-color: var(--teal);
        width: 14px;
        height: 14px;
        cursor: pointer;
    }

/* ── SINGLE ROW — full width ── */
.gfrp-inputtable {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.gfrp-inputrow {
    display: grid;
    grid-template-columns: 26px 1fr 110px 36px 58px;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0,0,0,0.04);
    transition: background 0.2s ease;
}

    .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: #bbb;
    font-size: 13px;
}

.gfrp-unit {
    font-weight: 800;
    color: #888;
    font-size: 11px;
}

.gfrp-msg {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    line-height: 1.2;
    min-height: 16px;
    height: 16px;
}

    .gfrp-msg.is-red {
        color: #b00020;
    }

    .gfrp-msg.is-yellow {
        color: #a06b00;
    }

/* ── PAIR ROW — 2 inputs side by side ── */
.eb-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.eb-cell {
    display: grid;
    grid-template-columns: 24px 1fr 80px 30px 46px;
    gap: 5px;
    align-items: center;
    padding: 10px 8px;
    border-radius: 10px;
    background: rgba(0,0,0,0.04);
    transition: background 0.2s ease;
    min-height: 50px;
}

    .eb-cell.is-focused {
        background: rgba(17,183,183,0.07);
        box-shadow: 0 0 0 2px rgba(17,183,183,0.2);
    }

    .eb-cell > .gfrp-num {
        font-size: 15px;
        color: var(--teal);
        font-weight: 900;
    }

    .eb-cell > .gfrp-label {
        font-size: 13px;
        font-weight: 700;
        color: #333;
        line-height: 1.3;
    }

    .eb-cell > .gfrp-input,
    .eb-cell > .gfrp-select {
        height: 34px;
        font-size: 12px;
    }

    .eb-cell > .gfrp-unit {
        font-size: 10px;
        font-weight: 800;
        color: #888;
    }

    .eb-cell > .gfrp-lights {
        display: flex;
        gap: 3px;
        justify-content: flex-end;
        grid-column: 5;
        align-self: center;
    }

    .eb-cell > .gfrp-msg {
        grid-column: 1 / -1;
        font-size: 0.72rem;
        min-height: 16px;
        height: 16px;
    }

/* ── IMG ROW (far end support) ── */
.gfrp-imgrow {
    display: grid;
    grid-template-columns: 26px 1fr 110px 55px;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0,0,0,0.04);
}

.gfrp-support-img {
    max-height: 40px;
}

/* ── TRAFFIC LIGHTS ── */
.gfrp-lights {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.gfrp-light {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

    .gfrp-light.is-green {
        background: #18c964;
        box-shadow: 0 0 6px rgba(24,201,100,0.5);
    }

    .gfrp-light.is-yellow {
        background: #f5c542;
        box-shadow: 0 0 6px rgba(245,197,66,0.5);
    }

    .gfrp-light.is-red {
        background: #ff3b30;
        box-shadow: 0 0 6px rgba(255,59,48,0.5);
    }

    .gfrp-light.is-off {
        background: #e0e0e0;
    }

/* Reserve results table space */
#ResultsPanel {
    min-height: 220px;
}

#resultsTbody {
    min-height: 120px;
}
/* ── SUBHEADING ── */
.eb-subheading {
    font-weight: 800;
    color: var(--teal);
    font-size: 12px;
    padding: 6px 0 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eb-note {
    font-size: 11px;
    color: #888;
    font-style: italic;
    padding: 8px 0 2px;
    line-height: 1.5;
}

/* ── COLUMN SVG ── */
.eb-column-img {
    text-align: center;
    padding: 6px 0;
}

/* ── BUTTONS ── */
.gfrp-actions {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.gfrp-btn {
    width: fit-content;
    padding: 10px 22px;
    border-radius: 50px;
    border: 3px solid var(--teal);
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Source Sans 3", Arial, sans-serif;
}

    .gfrp-btn:hover {
        background: var(--teal);
        transform: translateY(-2px);
        box-shadow: 0 8px 18px var(--teal-glow);
    }

/* ── RESULTS TABLE ── */
.eb-results-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 13px;
}

    .eb-results-table thead tr th {
        background: #111;
        color: #fff;
        padding: 10px 12px;
        text-align: center;
        font-weight: 700;
        border-right: 1px solid rgba(255,255,255,0.1);
    }

        .eb-results-table thead tr th:last-child {
            border-right: none;
        }

    .eb-results-table tbody tr td {
        padding: 10px 12px;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        font-weight: 600;
        color: #222;
    }

        .eb-results-table tbody tr td:first-child {
            font-weight: 900;
            color: var(--teal);
            font-size: 15px;
        }

    .eb-results-table tbody tr:nth-child(even) td {
        background: rgba(17,183,183,0.04);
    }

    .eb-results-table tbody tr:hover td {
        background: rgba(17,183,183,0.1);
    }

.eb-results-empty {
    text-align: center;
    color: #aaa;
    font-style: italic;
    padding: 20px;
    font-size: 13px;
}

@keyframes resultPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(17,183,183,0.22);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(17,183,183,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(17,183,183,0);
    }
}

#ResultsPanel.result-pulse {
    animation: resultPulse 0.7s ease-out;
}
/* ── Fix far-end condition dropdown cards — prevent height jump ── */
#msg_11, #msg_15, #msg_19, #msg_23 {
    min-height: 17px;
}
.eb-beams-row {
    min-height: 0;
}

.eb-cell:has(#inp11),
.eb-cell:has(#inp15),
.eb-cell:has(#inp19),
.eb-cell:has(#inp23) {
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    align-items: start !important;
    padding-top: 14px !important;
}

/* ── Frosted glass panels — match PCI Flex theme ── */
.gfrp-outer .gfrp-panel {
    background: rgba(250, 250, 248, 0.88) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* ── Note text — make it more visible ── */
.eb-note {
    font-size: 12px;
    color: #555 !important;
    font-style: italic;
    font-weight: 600;
}
/* ── Match GFRP font size and weight ── */
.eb-cell > .gfrp-label {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #222 !important;
}

.eb-cell > .gfrp-num {
    font-size: 17px !important;
}

.eb-cell > .gfrp-input,
.eb-cell > .gfrp-select {
    font-size: 14px !important;
    height: 38px !important;
}

.eb-cell > .gfrp-unit {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #666 !important;
}

.gfrp-inputrow .gfrp-label {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #222 !important;
}

.gfrp-inputrow .gfrp-num {
    font-size: 17px !important;
    color: var(--teal) !important;
}
@media (max-width: 900px) {
    .eb-pair {
        grid-template-columns: 1fr !important;
    }

    .gfrp-inputrow,
    .eb-cell {
        display: grid !important;
        grid-template-columns: 20px 1fr auto !important;
        grid-template-rows: auto auto auto !important;
        gap: 4px 8px !important;
        padding: 12px 10px !important;
        min-height: unset !important;
        height: auto !important;
        max-height: none !important;
        align-items: start !important;
    }

        .gfrp-inputrow .gfrp-num,
        .eb-cell > .gfrp-num {
            grid-column: 1 !important;
            grid-row: 1 !important;
            font-size: 13px !important;
            align-self: start !important;
            padding-top: 2px !important;
        }

        .gfrp-inputrow .gfrp-label,
        .eb-cell > .gfrp-label {
            grid-column: 2 / 3 !important;
            grid-row: 1 !important;
            font-size: 13px !important;
            font-weight: 700 !important;
            line-height: 1.3 !important;
            color: #222 !important;
        }

        .gfrp-inputrow .gfrp-lights,
        .eb-cell > .gfrp-lights {
            grid-column: 3 !important;
            grid-row: 1 !important;
            align-self: start !important;
            justify-content: flex-end !important;
            padding-top: 2px !important;
        }

        .gfrp-inputrow .gfrp-input,
        .gfrp-inputrow .gfrp-select,
        .gfrp-inputrow .gfrp-custom-select,
        .eb-cell > .gfrp-input,
        .eb-cell > .gfrp-select,
        .eb-cell > .gfrp-custom-select {
            grid-column: 2 !important;
            grid-row: 2 !important;
            height: 36px !important;
            font-size: 13px !important;
            width: 100% !important;
            max-width: none !important;
            min-width: 0 !important;
        }

        .gfrp-inputrow .gfrp-unit,
        .eb-cell > .gfrp-unit {
            grid-column: 3 !important;
            grid-row: 2 !important;
            font-size: 11px !important;
            align-self: center !important;
            white-space: nowrap !important;
        }

        .gfrp-inputrow .gfrp-msg,
        .eb-cell > .gfrp-msg {
            grid-column: 1 / -1 !important;
            grid-row: 3 !important;
            font-size: 11px !important;
            min-height: 0 !important;
            height: auto !important;
        }

        .eb-cell:has(#inp11),
        .eb-cell:has(#inp15),
        .eb-cell:has(#inp19),
        .eb-cell:has(#inp23) {
            height: auto !important;
            min-height: unset !important;
            max-height: none !important;
        }
}
@media (max-width: 900px) {
    .eb-cell {
        min-height: 110px !important;
    }

        .eb-cell .gfrp-msg {
            grid-column: 1 / -1 !important;
            grid-row: 3 !important;
            min-height: 32px !important;
            height: 32px !important;
            overflow: hidden !important;
            display: block !important;
            font-size: 11px !important;
            visibility: visible !important;
            line-height: 1.3 !important;
        }

            .eb-cell .gfrp-msg.is-red {
                color: #b00020 !important;
            }

            .eb-cell .gfrp-msg.is-yellow {
                color: #a06b00 !important;
            }

            .eb-cell .gfrp-msg.is-green {
                color: #2e7d32 !important;
            }
}