/* File Path: /20/acc6/public_assets/css/pages/demo-month-scenario.css */

.demo-month-hero {
    border-top: 4px solid var(--acc6-primary, #087d7b);
}

.demo-warning-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.demo-warning-card {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid #bfcfd4;
    border-right: 4px solid #1b7b84;
    background: #f8fbfc;
}

.demo-warning-card strong {
    font-size: 14px;
}

.demo-warning-card span {
    color: #42575e;
    font-size: 12px;
    line-height: 1.8;
}

.demo-warning-card.is-danger {
    border-right-color: #b4232d;
    background: #fff7f7;
}

.demo-warning-card.is-safe {
    border-right-color: #178447;
    background: #f4fbf6;
}

.demo-month-form {
    align-items: end;
}

.demo-month-run-button {
    min-height: 38px;
    font-weight: 800;
}

.demo-month-run-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.demo-validation-form {
    display: grid;
    grid-template-columns: auto minmax(240px, 430px) auto;
    align-items: end;
    gap: 10px;
}

.demo-validation-form label {
    font-weight: 700;
}

.demo-result-panel {
    border-top: 4px solid #b4232d;
}

.demo-result-panel.is-ready {
    border-top-color: #138344;
}

.demo-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.demo-result-kicker {
    color: #087d7b;
    font-size: 12px;
    font-weight: 800;
}

.demo-result-head h2 {
    margin: 3px 0;
}

.demo-result-head p {
    margin: 0;
    color: #52656b;
    font-size: 12px;
}

.demo-score {
    min-width: 130px;
    display: grid;
    place-items: center;
    padding: 10px 14px;
    border: 1px solid #b4232d;
    background: #fff5f5;
}

.demo-score.is-ok {
    border-color: #138344;
    background: #f2fbf5;
}

.demo-score strong {
    font-size: 28px;
    line-height: 1;
}

.demo-score span {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
}

.demo-summary-counters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 14px;
    border: 1px solid #c7d4d8;
}

.demo-summary-counters > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-left: 1px solid #c7d4d8;
    background: #f8fbfc;
}

.demo-summary-counters > div:last-child {
    border-left: 0;
}

.demo-summary-counters b {
    color: #087d7b;
    font-size: 19px;
}

.demo-summary-counters span {
    font-size: 12px;
    font-weight: 700;
}

.demo-financial-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.demo-financial-card {
    min-width: 0;
    padding: 10px;
    border: 1px solid #c7d4d8;
    border-top: 3px solid #0b7d7a;
    background: #fff;
}

.demo-financial-card span {
    display: block;
    color: #52656b;
    font-size: 11px;
    font-weight: 700;
}

.demo-financial-card strong {
    display: block;
    margin-top: 4px;
    color: #063f45;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.demo-equation-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #bcd2d5;
    background: #eaf7f7;
    font-size: 12px;
}

.demo-equation-row b {
    color: #0b6e6c;
}

.demo-count-strip {
    gap: 6px;
}

.demo-checks-table-wrap {
    max-height: 620px;
    overflow: auto;
}

.demo-checks-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.demo-check-row.is-danger td {
    background: #fff4f4;
}

.demo-check-row.is-warn td {
    background: #fff9e9;
}

.demo-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 3px 8px;
    border: 1px solid #c6d1d4;
    background: #eef3f4;
    font-size: 11px;
    font-weight: 800;
}

.demo-status-badge.is-ok {
    border-color: #79b890;
    color: #0f6c37;
    background: #edf9f1;
}

.demo-status-badge.is-danger {
    border-color: #d69b9f;
    color: #9c1e28;
    background: #fff0f1;
}

.demo-status-badge.is-warn {
    border-color: #d9bc68;
    color: #7a5a00;
    background: #fff8df;
}

@media (max-width: 1100px) {
    .demo-financial-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .demo-warning-grid,
    .demo-summary-counters,
    .demo-financial-grid {
        grid-template-columns: 1fr 1fr;
    }

    .demo-result-head {
        align-items: stretch;
        flex-direction: column;
    }

    .demo-validation-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .demo-warning-grid,
    .demo-summary-counters,
    .demo-financial-grid {
        grid-template-columns: 1fr;
    }

    .demo-summary-counters > div {
        border-left: 0;
        border-bottom: 1px solid #c7d4d8;
    }
}
