/* _content/GreenCATBlazor2/Components/QuickMathCalculator.razor.rz.scp.css */
/* Two-column layout: inputs | results */
.qm-layout[b-8a79hmu10o] {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 860px) {
    .qm-layout[b-8a79hmu10o] {
        grid-template-columns: 1fr;
    }
}

/* Panel title bar */
.qm-panel-title[b-8a79hmu10o] {
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6b6b66;
    border-bottom: 1px solid #e3e3dd;
    background: #fafaf7;
}

/* Input groups */
.qm-group[b-8a79hmu10o] {
    padding: 12px 16px 16px;
    border-bottom: 1px solid #e3e3dd;
}

.qm-group-last[b-8a79hmu10o] {
    border-bottom: 0;
}

.qm-group h3[b-8a79hmu10o] {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #1d4e89;
}

/* Label + input row */
.qm-field[b-8a79hmu10o] {
    display: grid;
    grid-template-columns: 1fr 120px;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.qm-field label[b-8a79hmu10o] {
    font-size: 13px;
}

.qm-unit[b-8a79hmu10o] {
    font-size: 11px;
    color: #a5a59f;
    margin-left: 3px;
}

/* Number input — plain input styled to match app */
.qm-number-input[b-8a79hmu10o] {
    width: 100%;
    padding: 6px 9px;
    font-size: 14px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    text-align: right;
    border: 1px solid #c9c9c2;
    border-radius: 4px;
    background: #fff;
    color: #1a1a1a;
    transition: border-color .12s, box-shadow .12s, background .12s;
    -moz-appearance: textfield;
    box-sizing: border-box;
}

.qm-number-input[b-8a79hmu10o]::-webkit-inner-spin-button,
.qm-number-input[b-8a79hmu10o]::-webkit-outer-spin-button {
    opacity: 0.4;
}

.qm-number-input:focus[b-8a79hmu10o] {
    outline: none;
    border-color: #1d4e89;
    box-shadow: 0 0 0 3px rgba(29, 78, 137, .15);
}

.qm-number-input.inp-flash[b-8a79hmu10o] {
    background: #fff8d6;
}

/* Toolbar */
.qm-toolbar[b-8a79hmu10o] {
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e3e3dd;
    background: #fafaf7;
}

.qm-btn[b-8a79hmu10o] {
    appearance: none;
    border: 1px solid #c9c9c2;
    background: white;
    color: #1a1a1a;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background .1s, border-color .1s;
}

.qm-btn:hover[b-8a79hmu10o] {
    background: #f4f4ef;
    border-color: #1d4e89;
}

.qm-btn-primary[b-8a79hmu10o] {
    background: #1d4e89;
    color: white;
    border-color: #1d4e89;
}

.qm-btn-primary:hover[b-8a79hmu10o] {
    background: #143a68;
}

/* Hint bar above results panel */
.qm-hint[b-8a79hmu10o] {
    font-size: 12px;
    color: #6b6b66;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-left: 3px solid #1d4e89;
    background: rgba(29, 78, 137, .06);
    border-radius: 4px;
}

/* Output cards grid */
.qm-results[b-8a79hmu10o] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    padding: 16px;
}

.qm-card[b-8a79hmu10o] {
    border: 1px solid #e3e3dd;
    border-radius: 6px;
    padding: 12px 14px;
    background: #fdfdfb;
    transition: background .15s, border-color .15s;
}

.qm-card.ready[b-8a79hmu10o] {
    background: #e7f3ed;
    border-color: #b9dcc8;
}

.qm-card.highlight[b-8a79hmu10o] {
    background: #e8f0fb;
    border-color: #1d4e89;
}

.qm-card-label[b-8a79hmu10o] {
    font-size: 11px;
    font-weight: 600;
    color: #6b6b66;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.qm-card-value[b-8a79hmu10o] {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 4px;
    line-height: 1.1;
}

.qm-card.pending .qm-card-value[b-8a79hmu10o] {
    color: #a5a59f;
}

.qm-card-unit[b-8a79hmu10o] {
    font-size: 12px;
    color: #6b6b66;
    font-weight: 400;
    margin-left: 4px;
    font-family: inherit;
}

/* "Needs:" missing-input section */
.qm-needs[b-8a79hmu10o] {
    margin-top: 8px;
    font-size: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.qm-needs-label[b-8a79hmu10o] {
    color: #6b6b66;
    margin-right: 2px;
    font-weight: 500;
}

.qm-chip[b-8a79hmu10o] {
    display: inline-block;
    background: #fdf3e2;
    color: #b45309;
    border: 1px solid #f0d9aa;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background .1s;
    user-select: none;
}

.qm-chip:hover[b-8a79hmu10o] {
    background: #f8e5bf;
}

/* Formula line shown on ready cards */
.qm-formula[b-8a79hmu10o] {
    margin-top: 8px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 10px;
    color: #a5a59f;
    letter-spacing: .2px;
}

.qm-card.pending .qm-formula[b-8a79hmu10o] {
    display: none;
}

/* Section divider in the grid (spans all columns) */
.qm-section-divider[b-8a79hmu10o] {
    grid-column: 1 / -1;
    padding: 6px 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6b6b66;
    border-bottom: 1px dashed #e3e3dd;
}
