.fa-panel {
    width: 100%;
    margin: 20px 0;
    padding: 22px;
    background: #367D7E;
    border: 1px solid #367D7E;
    border-radius: 15px;
    box-sizing: border-box;
    color: #fff;
}

.fa-panel * {
    box-sizing: border-box;
}

.fa-panel [hidden] {
    display: none!important;
}

.fa-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.fa-kicker {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.fa-panel h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(17px,1.4vw,23px);
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
}

.fa-period {
    color: #fff;
    font-size: 13px;
}

.fa-tools {
    display: flex;
    gap: 9px;
    align-items: flex-end;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.fa-search-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #fff;
    font-size: 12px;
}

.fa-search {
    width: 245px;
    max-width: 100%;
    height: 39px;
    border: 1px solid #A0C6C4;
    border-radius: 7px;
    background: #fff;
    padding: 8px 11px;
    color: #002E3F;
    font: inherit;
}

.fa-btn {
    min-height: 39px;
    padding: 9px 12px;
    border: 1px solid #368486;
    border-radius: 7px;
    background: #fff;
    color: #176E71;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s,color .2s;
}

.fa-btn:hover,.fa-btn:focus-visible {
    background: #367F82;
    color: #fff;
}

.fa-btn:focus-visible,.fa-search:focus-visible,.fa-data-source tr:focus-visible,.fa-variance-row:focus-visible {
    outline: 3px solid #AD73B1;
    outline-offset: 2px;
}

.fa-insight {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 15px 0 0;
    margin-top: 16px;
    border-top: 1px solid #B8D8D6;
}

.fa-insight-title {
    min-width: 170px;
    max-width: 280px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.fa-insight-body {
    flex: 1 1 330px;
    color: #FFF;
    font-size: 13px;
    line-height: 1.5;
}

.fa-metrics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fa-metric {
    min-width: 112px;
    padding: 9px 11px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #D3E5E3;
}

.fa-metric span {
    display: block;
    margin-bottom: 4px;
    color: #467E80;
    font-size: 11px;
}

.fa-metric strong {
    display: block;
    color: #367D7E;
    font-size: 16px;
}

.fa-note {
    display: block;
    margin: 7px 0 0;
    color: #fff;
    font-size: 11px;
    line-height: 1.45;
}

.fa-status {
    font-size: 11px;
    color: #176E71;
}

.fa-search-results {
    margin-top: 16px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    font-size: 12px;
}

.fa-match-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.fa-match-buttons button {
    padding: 7px 9px;
    border: 1px solid #A0C6C4;
    border-radius: 6px;
    background: #F4FAF9;
    color: #002E3F;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.fa-match-buttons button:hover {
    background: #D8EFED;
}

.fa-data-source tbody tr.fa-selectable {
    cursor: pointer;
}

.fa-data-source tbody tr.fa-row-locked > td,.fa-data-source tbody tr.fa-row-locked > th {
    background-color: #C7E7E4!important;
}

.fa-data-source tbody tr.fa-search-match:not(.fa-row-locked) > td,.fa-data-source tbody tr.fa-search-match:not(.fa-row-locked) > th {
    background-color: #EBF8F7!important;
}

.fa-data-source tbody tr.fa-search-muted:not(.fa-row-locked) {
    opacity: .42;
}

.fa-variance {
    margin-top: 19px;
    padding-top: 16px;
    border-top: 1px solid #B8D8D6;
}

.fa-variance-heading {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fa-variance-heading strong {
    font-size: 15px;
}

.fa-table-scroll {
    overflow-x: auto;
    width: 100%;
}

.fa-variance-table {
    width: 100%;
    min-width: 650px;
    background: #fff;
    font-size: 12px;
}

.fa-variance-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    border-bottom: 1px solid #DEEAE8;
    color: #000;
}

.fa-variance-row > div {
    flex: 0 0 14%;
    padding: 10px 12px;
    text-align: right;
    white-space: nowrap;
}

.fa-variance-row > div:first-child {
    flex: 1 1 44%;
    min-width: 220px;
    text-align: left;
    white-space: normal;
}

.fa-variance-head {
    background: #367F82;
    color: #fff;
    font-weight: 700;
}

.fa-variance-row[data-fa-pick] {
    cursor: pointer;
}

.fa-variance-row[data-fa-pick]:hover {
    background: #E7F5F3;
}

.fa-variance-empty {
    padding: 14px;
}

.fa-chart-tooltip {
    padding: 5px 7px;
    color: #222;
    font-size: 12px;
    line-height: 1.65;
}

.fa-chart-tooltip strong {
    display: block;
    max-width: 240px;
    white-space: normal;
    color: #236F73;
}

@media screen and (max-width: 800px) {
    .fa-panel {
        padding:16px;
    }

    .fa-panel-head {
        flex-direction: column;
    }

    .fa-tools {
        justify-content: flex-start;
        width: 100%;
    }

    .fa-search-label {
        flex: 1 1 100%;
    }

    .fa-search {
        width: 100%;
    }

    .fa-insight-title {
        max-width: 100%;
    }

    .fa-metric {
        flex: 1 1 calc(50% - 8px);
    }
}

@media screen and (max-width: 450px) {
    .fa-panel {
        padding:12px;
        border-radius: 10px;
    }

    .fa-tools .fa-btn {
        flex: 1 1 auto;
    }
button.fa-btn.fa-toggle-variance {
    display: none;
}
    .fa-metric {
        min-width: 0;
    }

    .fa-metric strong {
        font-size: 14px;
    }
}
