.opportunity-page { padding-bottom: 48px; }
.opportunity-page > .customer-card { max-width: 1160px; margin-right: auto; margin-left: auto; }
.opportunity-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.opportunity-search-heading h2 { margin: 0 0 7px; color: #17243b; font-size: 17px; }
.opportunity-search-heading p { margin: 0; color: #738196; font-size: 12px; line-height: 1.6; }
.opportunity-free-badge { flex: none; padding: 9px 12px; border-radius: 20px; color: #087454; background: #e9f8f1; font-size: 10px; font-weight: 600; }
.opportunity-search-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: start; gap: 14px; }
.opportunity-field-label { display: block; margin-bottom: 8px; color: #394960; font-size: 11px; font-weight: 600; }
.opportunity-combobox { position: relative; min-width: 0; }
.opportunity-search-control { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 13px; border: 1px solid #dce3eb; border-radius: 9px; background: #fff; }
.opportunity-search-control:focus-within { border-color: #0a66ff; box-shadow: 0 0 0 3px rgba(10,102,255,.08); }
.opportunity-search-control svg { width: 18px; height: 18px; flex: none; color: #7d8ca3; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.opportunity-search-control input { width: 100%; min-width: 0; height: 44px; padding: 0; border: 0; background: transparent; outline: none; color: #18263a; font: 12px Inter, sans-serif; }
.opportunity-search-control input::placeholder { color: #8996a8; }
.opportunity-field-hint { display: block; margin-top: 8px; color: #7b8799; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.opportunity-submit { min-height: 46px; margin-top: 21px; padding: 0 20px; border-radius: 9px; font: 600 12px Inter, sans-serif; cursor: pointer; }
.opportunity-page button:disabled { opacity: .55; cursor: wait; }
.opportunity-suggestions { position: absolute; top: 72px; left: 0; right: 0; z-index: 20; max-height: 290px; margin: 0; padding: 5px; overflow-y: auto; list-style: none; border: 1px solid #cfdbee; border-radius: 9px; background: #fff; box-shadow: 0 12px 35px rgba(25,45,70,.15); }
.opportunity-suggestions li { padding: 11px 10px; border-radius: 6px; color: #394960; font-size: 11px; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.opportunity-suggestions li:hover, .opportunity-suggestions li.is-active { color: #075be2; background: #eef5ff; }
.opportunity-search-actions { display: flex; gap: 10px; margin-top: 18px; }
.opportunity-search-actions button { min-height: 34px; padding: 0 12px; }
.opportunity-error { padding: 13px; border: 1px solid #f2c8c8; border-radius: 8px; background: #fff3f3; color: #ab3232; font-size: 12px; line-height: 1.6; }
.opportunity-search-count { margin: 22px 0 12px; color: #6e7b8e; font-size: 11px; line-height: 1.6; }
.opportunity-customer-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.opportunity-lead { min-width: 0; padding: 20px; border: 1px solid #e0e7f1; border-radius: 11px; background: #fff; overflow-wrap: anywhere; }
.opportunity-lead-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.opportunity-lead-heading > div { min-width: 0; }
.opportunity-lead h3 { margin: 0 0 7px; color: #17243b; font-size: 14px; line-height: 1.5; }
.opportunity-legal-name { margin: 0; color: #718096; font-size: 10px; line-height: 1.6; }
.opportunity-status { flex: none; max-width: 105px; padding: 5px 7px; border-radius: 6px; background: #f1f3f6; color: #64748b; font-size: 9px; }
.opportunity-status.is-active { color: #087454; background: #e9f8f1; }
.opportunity-lead-data { display: grid; gap: 7px; margin: 18px 0; color: #526179; font-size: 11px; line-height: 1.7; }
.opportunity-lead-data p { margin: 0; }
.opportunity-lead-contacts { display: flex; flex-wrap: wrap; gap: 8px 15px; padding-top: 14px; border-top: 1px solid #edf0f5; color: #8894a6; font-size: 11px; line-height: 1.6; }
.opportunity-lead-contacts a { color: #075be2; text-decoration: none; }
.opportunity-lead-contacts a:hover, .opportunity-source a:hover { text-decoration: underline; }
.opportunity-lead-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.opportunity-select-customer, .opportunity-whatsapp { display: inline-flex; align-items: center; justify-content: center; min-height: 35px; padding: 0 12px; border: 1px solid #c5d9fc; border-radius: 7px; background: #fff; color: #0a66ff; font: 600 10px Inter, sans-serif; text-decoration: none; cursor: pointer; }
.opportunity-select-customer:hover { background: #eff5ff; }
.opportunity-whatsapp { color: #087454; border-color: #bce1d1; background: #f5fcf8; }
.opportunity-lead-actions small { width: 100%; color: #8894a6; font-size: 9px; }
.opportunity-page button:focus-visible, .opportunity-page a:focus-visible { outline: 3px solid #87b5ff; outline-offset: 3px; }
.opportunity-search-empty { padding: 44px 20px; border: 1px dashed #dae3ee; border-radius: 10px; text-align: center; background: #fafcff; }
.opportunity-search-empty > svg { width: 32px; height: 32px; margin-bottom: 13px; color: #8ca4c7; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.opportunity-search-empty h3 { margin: 0 0 8px; color: #394960; font-size: 14px; }
.opportunity-search-empty p { margin: 0; color: #7b8799; font-size: 12px; line-height: 1.7; }
.opportunity-load-more { display: block; margin: 18px auto 0; }
.opportunity-source { margin: 24px 0 0; color: #8793a6; font-size: 10px; line-height: 1.8; }
.opportunity-source a { color: #526f9d; }
.opportunity-selected-customer { border-color: #c9ddfc; scroll-margin-top: 25px; }
.opportunity-search-heading .opportunity-selected-label { margin-bottom: 8px; color: #0a66ff; font-size: 11px; font-weight: 600; }
.opportunity-customer-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin: 0; }
.opportunity-customer-details dt { margin-bottom: 7px; color: #7b8799; font-size: 10px; }
.opportunity-customer-details dd { margin: 0; color: #263950; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.opportunity-page [hidden] { display: none !important; }
.opportunity-whatsapp-origin { width: 100%; color: #087454; font-size: 10px; }
@media (max-width: 1100px) {
  .opportunity-search-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .opportunity-submit { grid-column: 1 / -1; justify-self: start; margin-top: 0; }
  .opportunity-customer-results { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .opportunity-page { padding: 22px 16px 36px; }
  .opportunity-page > .customer-card { padding: 20px 16px; }
  .opportunity-page .customer-page-head { align-items: flex-start; gap: 16px; }
  .opportunity-page .customer-page-head h1 { font-size: 22px; }
  .opportunity-page .customer-page-head > button { flex: none; padding: 0 10px; }
  .opportunity-search-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .opportunity-search-form { grid-template-columns: 1fr; }
  .opportunity-submit { width: 100%; }
  .opportunity-lead { padding: 16px 13px; }
  .opportunity-customer-details { grid-template-columns: 1fr; gap: 17px; }
}
