.mrc-react-calculator.kijo-budget-calculator .mrc-pill-input input[type="text"] {
    width: 100%;
}

.kijo-bc__section-title--needs {
    border-bottom-color: var(--e-global-color-text);
}

.kijo-bc__section-title--wants {
    border-bottom-color: var(--e-global-color-secondary);
}

.kijo-bc__section-title--savings {
    border-bottom-color: var(--kijo-color-success);
}

.kijo-bc__categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .kijo-bc__categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 30px;
    }
}

.kijo-bc__categories--income {
    max-width: 900px;
    margin: 0 auto;
}

.kijo-bc__cat-label {
    font-family: var(--e-global-typography-text-font-family), Satoshi;
    font-size: var(--e-global-typography-text-font-size, 15px);
    font-weight: var(--e-global-typography-text-font-weight);
    text-transform: var(--e-global-typography-text-text-transform);
    font-style: var(--e-global-typography-text-font-style);
    text-decoration: var(--e-global-typography-text-text-decoration);
    line-height: var(--e-global-typography-text-line-height);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.kijo-bc__info-icon {
    font-size: 13px;
    opacity: 0.5;
    cursor: help;
}

.kijo-bc__cat-label[data-tooltip] {
    cursor: help;
}

.kijo-bc__cat-label[data-tooltip]:hover::after,
.kijo-bc__cat-label[data-tooltip]:focus::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--e-global-color-text);
    color: var(--e-global-color-accent);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    max-width: 220px;
    width: max-content;
    z-index: 10;
    margin-bottom: 15px;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kijo-bc__subtotal {
    font-family: var(--e-global-typography-text-font-family), Satoshi;
    font-size: var(--e-global-typography-text-font-size, 15px);
    font-weight: var(--e-global-typography-text-font-weight);
    text-transform: var(--e-global-typography-text-text-transform);
    font-style: var(--e-global-typography-text-font-style);
    text-decoration: var(--e-global-typography-text-text-decoration);
    line-height: var(--e-global-typography-text-line-height);
    text-align: center;
    margin-top: 16px;
    font-weight: 600;
    color: var(--e-global-color-text);
}

.kijo-bc__subtotal-pct {
    font-weight: 400;
    margin-left: 4px;
}

.kijo-bc__status {
    margin: 20px 0 0;
    padding: 16px 20px;
    border-radius: 16px;
    text-align: center;
}

.kijo-bc__status-label {
    font-family: var(--e-global-typography-b7fd117-font-family), Satoshi;
    font-size: var(--e-global-typography-b7fd117-font-size);
    font-weight: var(--e-global-typography-b7fd117-font-weight);
    text-transform: var(--e-global-typography-b7fd117-text-transform);
    font-style: var(--e-global-typography-b7fd117-font-style);
    text-decoration: var(--e-global-typography-b7fd117-text-decoration);
    line-height: var(--e-global-typography-b7fd117-line-height);
}

.kijo-bc__status-message {
    font-family: var(--e-global-typography-text-font-family), Satoshi;
    font-size: var(--e-global-typography-text-font-size, 15px);
    font-weight: var(--e-global-typography-text-font-weight);
    text-transform: var(--e-global-typography-text-text-transform);
    font-style: var(--e-global-typography-text-font-style);
    text-decoration: var(--e-global-typography-text-text-decoration);
    line-height: var(--e-global-typography-text-line-height);
    margin-top: 4px;
}

.kijo-bc__status--green {
    background: var(--kijo-color-success-bg);
}
.kijo-bc__status--green .kijo-bc__status-label {
    color: var(--kijo-color-success);
}

.kijo-bc__status--amber {
    background: var(--kijo-color-warning-bg);
}
.kijo-bc__status--amber .kijo-bc__status-label {
    color: var(--kijo-color-warning);
}

.kijo-bc__status--red {
    background: var(--kijo-color-danger-bg);
}
.kijo-bc__status--red .kijo-bc__status-label {
    color: var(--kijo-color-danger);
}

.kijo-bc__status--neutral {
    background: rgba(0, 0, 0, 0.04);
}
.kijo-bc__status--neutral .kijo-bc__status-label {
    color: var(--e-global-color-text);
}

.kijo-bc__breakdown {
    margin-top: 40px;
}

.kijo-bc__breakdown .title {
    font-family: var(--e-global-typography-b7fd117-font-family), Satoshi;
    font-size: var(--e-global-typography-b7fd117-font-size);
    font-weight: var(--e-global-typography-b7fd117-font-weight);
    text-transform: var(--e-global-typography-b7fd117-text-transform);
    font-style: var(--e-global-typography-b7fd117-font-style);
    text-decoration: var(--e-global-typography-b7fd117-text-decoration);
    line-height: var(--e-global-typography-b7fd117-line-height);
    color: var(--e-global-color-text);
    margin: 0 0 16px;
    text-align: center;
}

.kijo-bc__breakdown-bar {
    display: flex;
    width: 100%;
    height: 14px;
    border-radius: 9999px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.kijo-bc__breakdown-bar-needs {
    background: var(--e-global-color-text);
    height: 100%;
    transition: width 0.2s ease;
}

.kijo-bc__breakdown-bar-wants {
    background: var(--e-global-color-secondary);
    height: 100%;
    transition: width 0.2s ease;
}

.kijo-bc__breakdown-bar-savings {
    background: var(--kijo-color-success);
    height: 100%;
    transition: width 0.2s ease;
}

.kijo-bc__legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.kijo-bc__legend-item {
    font-family: var(--e-global-typography-text-font-family), Satoshi;
    font-size: var(--e-global-typography-text-font-size, 15px);
    font-weight: var(--e-global-typography-text-font-weight);
    text-transform: var(--e-global-typography-text-text-transform);
    font-style: var(--e-global-typography-text-font-style);
    text-decoration: var(--e-global-typography-text-text-decoration);
    line-height: var(--e-global-typography-text-line-height);
    display: flex;
    align-items: center;
    gap: 6px;
}

.kijo-bc__legend-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.kijo-bc__legend-item--needs .kijo-bc__legend-swatch {
    background: var(--e-global-color-text);
}

.kijo-bc__legend-item--wants .kijo-bc__legend-swatch {
    background: var(--e-global-color-secondary);
}

.kijo-bc__legend-item--savings .kijo-bc__legend-swatch {
    background: var(--kijo-color-success);
}
