/* Scoped to the actual opportunities route; business analytics stays intact. */
.opportunity-board-page { --board-column-width: 296px; --board-column-gap: 20px; 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, .opportunity-board-page .opportunity-board-head-scroll { width: 100%; max-width: 100%; min-width: 0; height: auto; max-height: none; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: auto; scrollbar-color: #a9b5c5 #e7edf4; }
.opportunity-board-page .opportunity-board-scroll::-webkit-scrollbar, .opportunity-board-page .opportunity-board-head-scroll::-webkit-scrollbar { height: 12px; }
.opportunity-board-page .opportunity-board-scroll::-webkit-scrollbar-track, .opportunity-board-page .opportunity-board-head-scroll::-webkit-scrollbar-track { background: #e7edf4; border-radius: 8px; }
.opportunity-board-page .opportunity-board-scroll::-webkit-scrollbar-thumb, .opportunity-board-page .opportunity-board-head-scroll::-webkit-scrollbar-thumb { background: #a9b5c5; border: 2px solid #e7edf4; border-radius: 8px; }
.opportunity-board-page .opportunity-board-sticky-head { position: sticky; top: 0; z-index: 3; padding-top: 8px; padding-bottom: 8px; background: var(--paper,#f4f6f8); }
.opportunity-board-page .opportunity-board-scroll:focus-visible, .opportunity-board-page .opportunity-board-head-scroll:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
/* Both scroll panes must have identical geometry. Intrinsic 1fr sizing let
   longer card/empty-state text widen only the body, so the top thumb ended early. */
.opportunity-board-page .opportunity-board-track { display: grid; grid-template-columns: repeat(5,var(--board-column-width)); align-items: start; gap: var(--board-column-gap); width: max-content; min-width: 100%; padding: 0 0 12px; }
.opportunity-board-page .opportunity-board-head-scroll .opportunity-board-track { padding-bottom: 4px; }
.opportunity-board-page .opportunity-column, .opportunity-board-page .opportunity-column-head { box-sizing: border-box; width: var(--board-column-width); min-width: 0; max-width: var(--board-column-width); }
.opportunity-board-page .opportunity-column { min-height: 240px; background: #f8fafc; border: 1px solid #edf0f4; border-radius: 12px; }
.opportunity-board-page .opportunity-column-head { display: block; padding: 12px 16px; 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: 16px; min-width: 0; margin: 0; 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; 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: 16px; min-width: 0; padding: 16px; }
.opportunity-board-page .opportunity-card { min-width: 0; width: 262px; 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: 24px; 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; align-items: baseline; justify-content: space-between; gap: 12px; 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; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 16px; 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; white-space: nowrap; }
.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-width: 280px; --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 { width: 246px; }
 .opportunity-board-page .opportunity-card-actions { opacity: 1; pointer-events: auto; }
 .opportunity-board-page .opportunity-card-actions .text-button { min-height: 44px; }
}
