/* Keep the native RFQ action non-interactive before the response-state check.
   Frappe sets data-path on the body before rendering the page, so this rule is
   active on the first paint and prevents a misleading Make Quotation flash. */
body[data-path^="rfq"] .page-header .btn-primary.btn-sm,
body[data-path^="rfq"] .page-header-actions .btn-primary.btn-sm,
body[data-path^="rfq"] header .btn-primary.btn-sm {
    visibility: hidden !important;
    pointer-events: none !important;
}

body[data-path^="rfq"].mo-rfq-response-allowed .page-header .btn-primary.btn-sm,
body[data-path^="rfq"].mo-rfq-response-allowed .page-header-actions .btn-primary.btn-sm,
body[data-path^="rfq"].mo-rfq-response-allowed header .btn-primary.btn-sm {
    visibility: visible !important;
    pointer-events: auto !important;
}

body.mo-rfq-response-locked .rfq-content input,
body.mo-rfq-response-locked .rfq-content textarea,
body.mo-rfq-response-locked .rfq-content select {
    background: #f3f4f6 !important;
    color: #667085 !important;
    cursor: not-allowed !important;
}

body.mo-rfq-response-locked .rfq-content {
    opacity: .88;
}
