/* Project PRISM Phase 2BA — focused Sourcing contrast hotfix.
   Built on Phase 2AZ. Presentation ONLY; no JS, authorization, procurement,
   deadline, database, permissions, or audit rule changes.

   Why this is needed:
   - An older Glass override gives #sourceQuotesPanel .btn a near-white glass
     background while another rule gives it white text.
   - A blanket rule makes nested h3 headings white, but the earlier 2AR.3b
     repair covers only headings directly inside .sourceSection.
*/

/* Nested assessment headings sit in LIGHT panels. Do not recolor top-level
   dashboard or any dark modal/banner titles. */
html.prismThemeGlass #app #sourcingPage
 :is(#sourceSingleAssessmentArea,#sourceBulkAssessmentArea)
 :is(h3,h4,h5){
  color:#163b58!important;
  -webkit-text-fill-color:#163b58!important;
  text-shadow:none!important;
  opacity:1!important;
}

/* Quotations: the old #app #sourceQuotesPanel rule beats the older AZ patch.
   Override precisely these operational action buttons with a readable
   high-contrast glossy BLUE base. No other PRISM buttons are redesigned. */
html.prismThemeGlass #app #sourcingPage #sourceQuotesPanel button#sourceOpenQuote:not(:disabled),
html.prismThemeGlass #app #sourcingPage #sourceQuotesPanel #sourceQuotesList .sourceCard > button.btn.secondary:not(:disabled){
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
 background:
   linear-gradient(180deg,rgba(255,255,255,.32),transparent 34%),
   linear-gradient(117deg,#08669f 0%,#10588d 48%,#5742a6 100%)!important;
 border:1px solid #92d8ff!important;
 border-radius:13px!important;
 text-shadow:0 1px 2px rgba(4,20,51,.76)!important;
 box-shadow:inset 0 2px 1px rgba(255,255,255,.62),inset 0 -3px 5px rgba(6,18,49,.40),0 4px 12px rgba(14,49,104,.25)!important;
 opacity:1!important;
 font-size:13px!important;
 font-weight:850!important;
 line-height:1.35!important;
 min-height:43px!important;
 padding:10px 17px!important;
 cursor:pointer!important;
}
html.prismThemeGlass #app #sourcingPage #sourceQuotesPanel #sourceQuotesList .sourceCard > button.btn.secondary:not(:disabled){
 width:100%;
 text-align:center;
}
html.prismThemeGlass #app #sourcingPage #sourceQuotesPanel :is(button#sourceOpenQuote,#sourceQuotesList .sourceCard > button.btn.secondary):hover:not(:disabled){
 filter:brightness(1.1)!important;
}
html.prismThemeGlass #app #sourcingPage #sourceQuotesPanel :is(button#sourceOpenQuote,#sourceQuotesList .sourceCard > button.btn.secondary):focus-visible{
 outline:3px solid #ffca70!important;
 outline-offset:3px!important;
}
/* Continue respecting disabled buttons, so a blocked action never looks ready. */
html.prismThemeGlass #app #sourcingPage #sourceQuotesPanel button#sourceOpenQuote:disabled,
html.prismThemeGlass #app #sourcingPage #sourceQuotesPanel #sourceQuotesList .sourceCard > button.btn.secondary:disabled{
 background:#dbe5ef!important;
 color:#45617a!important;
 -webkit-text-fill-color:#45617a!important;
 text-shadow:none!important;
 border:1px solid #b5cbdc!important;
 opacity:1!important;
 cursor:not-allowed!important;
}
