/* Scoped to the actual opportunities route; business analytics stays intact. */
.opportunity-board-page { --board-column-gap: 16px; width: 100%; container: opportunity-board / inline-size; min-width: 0; max-width: 100%; }
.opportunity-board-page .board-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 12px; }
.opportunity-board-page .board-toolbar>div { display: grid; gap: 8px; min-width: 0; }
.opportunity-board-page .board-toolbar b { font-size: 15px; font-weight: 600; }
.opportunity-board-page .board-toolbar span { font-size: 12px; color: #64748b; }
.opportunity-board-page .board-toolbar label { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #64748b; }
.opportunity-board-page .board-toolbar select { min-height: 36px; width: 176px; border-radius: 8px; }
.opportunity-board-page .board-hint, .opportunity-board-page .board-help { margin: 0 0 20px; color: #64748b; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.opportunity-board-page .board-help { margin-top: 16px; }
.opportunity-board-page .board-clear { margin-bottom: 16px; }
.opportunity-board-page .opportunity-board-scroll { width: 100%; max-width: 100%; min-width: 0; height: auto; max-height: none; overflow-x: hidden; }
/* Each heading belongs to its cards, so wrapping cannot misalign stages. */
.opportunity-board-page .opportunity-board-track { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--board-column-gap); width: 100%; min-width: 0; }
.opportunity-board-page .opportunity-column { box-sizing: border-box; flex: 1 1 0; min-width: 0; max-width: 100%; }
.opportunity-board-page .opportunity-column { min-height: 0; background: #f8fafc; border: 1px solid #edf0f4; border-radius: 12px; }
.opportunity-board-page .opportunity-column-head { display: block; padding: 12px; min-width: 0; position: sticky; top: 0; z-index: 1; background: #f8fafc; border: 1px solid #edf0f4; border-radius: 10px; }
.opportunity-board-page .opportunity-column-head h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; line-height: 1.5; color: #334155; text-align: left; }
.opportunity-board-page .opportunity-column-head h2>span { padding: 1px 8px; flex-shrink: 0; border-radius: 999px; background: #e4e9f0; color: #64748b; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.opportunity-board-page .opportunity-column-body { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 12px; }
.opportunity-board-page .opportunity-card { min-width: 0; width: 100%; box-sizing: border-box; max-width: 100%; background: #fff; border: 1px solid #e8ecf2; border-radius: 12px; box-shadow: 0 2px 6px rgba(15,23,42,.04); }
.opportunity-board-page .opportunity-card:hover, .opportunity-board-page .opportunity-card:focus-within { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(15,23,42,.07); }
.opportunity-board-page .opportunity-card-main { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; min-width: 0; padding: 20px 16px; box-sizing: border-box; border: 0; border-radius: 12px; background: transparent; text-align: left; color: #334155; }
.opportunity-board-page .deal-store { align-self: flex-start; max-width: 100%; margin: 0 0 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.opportunity-board-page .opportunity-card h3 { min-width: 0; width: 100%; margin: 0 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; line-height: 1.5; color: #1f2937; text-align: left; }
.opportunity-board-page .opportunity-card-main>p { min-width: 0; width: 100%; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.75; color: #64748b; text-align: left; }
.opportunity-board-page .opportunity-card-value { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; margin-top: 24px; font-size: 11px; color: #64748b; }
.opportunity-board-page .opportunity-card-value>span { flex-shrink: 0; }
.opportunity-board-page .opportunity-card-value>strong { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: #334155; text-align: right; font-variant-numeric: tabular-nums; }
.opportunity-board-page .opportunity-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 12px; opacity: 0; pointer-events: none; }
.opportunity-board-page .opportunity-card:hover .opportunity-card-actions, .opportunity-board-page .opportunity-card:focus-within .opportunity-card-actions { opacity: 1; pointer-events: auto; }
.opportunity-board-page .opportunity-card-actions .text-button { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0; font-size: 11px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.opportunity-board-page button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.opportunity-board-page .opportunity-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 24px 8px; color: #64748b; overflow-wrap: anywhere; }
.opportunity-board-page .opportunity-empty>svg { color: #94a3b8; }
.opportunity-board-page .opportunity-empty h3 { margin: 0; font-size: 13px; color: #475569; line-height: 1.6; font-weight: 500; }
.opportunity-board-page .opportunity-empty p { margin: 0; font-size: 12px; line-height: 1.8; }
.opportunity-board-page .opportunity-empty .text-button { margin-top: 4px; min-height: 36px; font-size: 12px; }
@media(hover:none), (pointer:coarse) {
 .opportunity-board-page .opportunity-card-actions { opacity: 1; pointer-events: auto; }
 .opportunity-board-page .opportunity-card-actions .text-button { min-height: 44px; }
}
@media(max-width:640px) {
 .opportunity-board-page { --board-column-gap: 16px; }
 .opportunity-board-page .board-toolbar { align-items: flex-start; }
 .opportunity-board-page .board-toolbar label { width: 100%; justify-content: space-between; }
 .opportunity-board-page .board-toolbar select { min-height: 44px; }
 .opportunity-board-page .opportunity-card-actions { opacity: 1; pointer-events: auto; }
 .opportunity-board-page .opportunity-card-actions .text-button { min-height: 44px; }
}

/* Wrap whole stages together, including their own heading. Final rows fill out. */
@container opportunity-board (max-width: 1100px) {
 .opportunity-board-page .opportunity-column { flex-basis: calc(33.333333% - 10.666667px); }
}
@container opportunity-board (max-width: 760px) {
 .opportunity-board-page .opportunity-column { flex-basis: calc(50% - 8px); }
}
@container opportunity-board (max-width: 480px) {
 .opportunity-board-page .opportunity-column { flex-basis: 100%; }
}
@supports not (container-type: inline-size) {
 @media(max-width:1400px) { .opportunity-board-page .opportunity-column { flex-basis: calc(33.333333% - 10.666667px); } }
 @media(max-width:1000px) { .opportunity-board-page .opportunity-column { flex-basis: calc(50% - 8px); } }
 @media(max-width:640px) { .opportunity-board-page .opportunity-column { flex-basis: 100%; } }
}
/* Clip is not a scroll container, so stage headings can follow document scroll. */
@supports (overflow: clip) {
 .opportunity-board-page .opportunity-board-scroll { overflow: clip; }
}
