

.formula-block{background:#f8f8f8;border-left:3px solid #0d8059;padding:15px 20px;margin:15px 0;border-radius:0 6px 6px 0}.formula-block .formula{font-size:16px;color:#0d8059;margin:8px 0;font-family:'Courier New',monospace}@media(max-width:600px){.bk-table th,.bk-table td{padding:6px 4px}}

.sim-wide-input {
    width: 130px;
}

.sim-unit {
    font-size: 14px;
    color: #888;
    flex-shrink: 0;
}

.calc-input-error {
    border-color: #e74c3c !important;
}

.sim-ev-note {
    font-size: 13px;
    color: #666;
    padding: 8px 0;
    min-height: 20px;
}

.sim-positive {
    background: #f0faf5;
    border: 2px solid #2ecc71;
}
.sim-positive .calc-summary-value {
    color: #1a9a5a;
}

.sim-negative {
    background: #fdf0f0;
    border: 2px solid #e74c3c;
}
.sim-negative .calc-summary-value {
    color: #c0392b;
}

.sim-bars-wrap {
    margin: 16px 0;
}

.sim-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.sim-bar-label {
    flex: 0 0 50px;
    font-size: 12px;
    color: #888;
    text-align: right;
}

.sim-bar-track {
    flex: 1;
    height: 22px;
    background: #f0f0f0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.sim-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.sim-bar-profit {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.sim-bar-loss {
    background: linear-gradient(90deg, #e67e22, #d35400);
}

.sim-bar-bankrupt {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.sim-bar-start {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
}

.sim-bar-value {
    flex: 0 0 110px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.sim-profit {
    color: #1a9a5a;
    font-weight: bold;
}

.sim-loss {
    color: #c0392b;
    font-weight: bold;
}

.sim-bankrupt-row td {
    background: #fdf0f0;
}

@media (max-width: 600px) {
    .sim-wide-input {
        width: 100px;
    }

    .sim-bar-label {
        flex: 0 0 40px;
        font-size: 11px;
    }

    .sim-bar-value {
        flex: 0 0 80px;
        font-size: 11px;
    }

    .sim-bar-track {
        height: 18px;
    }
}
