/* ../../2026-10-08/in-app-browser-context-source-ambient/artifacts/hr-question-recycle-implementation/web/apps/web/src/legacy/app/modules/crm/opportunity-workspace.module.css */
.opportunity_workspace_root {
  --ink:#15233c;
  --muted:#718097;
  --line:#dfe6f0;
  --blue:#254fc8;
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  overflow-anchor: none;
  padding: 14px 18px;
  color: var(--ink);
  background: #f3f6fa;
  font-size: 10px;
}
.opportunity_workspace_root * {
  box-sizing: border-box;
}
.opportunity_workspace_hero,
.opportunity_workspace_metrics article,
.opportunity_workspace_toolbar,
.opportunity_workspace_workspace,
.opportunity_workspace_state {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 5px 18px rgb(29 50 85 / 5%);
}
.opportunity_workspace_content {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
  overflow: hidden;
}
.opportunity_workspace_metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.opportunity_workspace_metrics article {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 9px;
  min-height: 78px;
  align-items: center;
  padding: 11px;
  border-radius: 10px;
}
.opportunity_workspace_metrics article > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 9px;
  color: #315bd0;
  background: #edf2ff;
}
.opportunity_workspace_metrics svg {
  width: 17px;
}
.opportunity_workspace_metrics article > div {
  display: grid;
  min-width: 0;
}
.opportunity_workspace_metrics small,
.opportunity_workspace_metrics em {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.opportunity_workspace_metrics strong {
  color: #173b9a;
  font-size: 18px;
  line-height: 1.15;
}
.opportunity_workspace_toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 10px;
}
.opportunity_workspace_toolbar label {
  display: flex;
  width: min(320px, 48%);
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  color: #7b899b;
  background: #fbfcfe;
}
.opportunity_workspace_toolbar label svg {
  width: 14px;
}
.opportunity_workspace_toolbar input {
  width: 100%;
  height: 34px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 9px;
}
.opportunity_workspace_workspace {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(300px, 30%) minmax(0, 70%);
  overflow: hidden;
  overflow-anchor: none;
  contain: layout paint;
  border-radius: 12px;
}
.opportunity_workspace_listPane {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #f7f9fc;
}
.opportunity_workspace_listPane > header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.opportunity_workspace_listPane > header span {
  display: grid;
  gap: 2px;
}
.opportunity_workspace_listPane > header strong {
  font-size: 11px;
}
.opportunity_workspace_listPane > header small {
  color: var(--muted);
  font-size: 8px;
}
.opportunity_workspace_listPane > header em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #3153a8;
  background: #edf2ff;
  font-size: 8px;
  font-style: normal;
}
.opportunity_workspace_recordList {
  display: grid;
  min-height: 0;
  flex: 1;
  align-content: start;
  gap: 6px;
  padding: 8px;
  overflow-y: scroll;
  overflow-x: hidden;
  overscroll-behavior: contain;
  overflow-anchor: none;
  scrollbar-gutter: stable;
}
.opportunity_workspace_recordList > button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  width: 100%;
  height: 88px;
  min-height: 88px;
  padding: 9px 11px 8px 13px;
  overflow: hidden;
  border: 1px solid #e3e9f2;
  border-radius: 9px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 7px rgb(30 53 91 / 3%);
  cursor: pointer;
  transition:
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}
.opportunity_workspace_recordList > button::before {
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  content: "";
  border-radius: 0 3px 3px 0;
  background: transparent;
}
.opportunity_workspace_recordList > button:hover {
  border-color: #cfdaf0;
  background: #f9fbff;
  box-shadow: 0 5px 12px rgb(35 67 128 / 7%);
}
.opportunity_workspace_recordList > button[aria-pressed=true] {
  border-color: #aebfeb;
  background: #edf3ff;
  box-shadow: 0 6px 16px rgb(40 81 180 / 10%);
}
.opportunity_workspace_recordList > button[aria-pressed=true]::before {
  background: #315bd0;
}
.opportunity_workspace_recordList > button:focus-visible {
  outline: 2px solid #5f80dc;
  outline-offset: -2px;
}
.opportunity_workspace_recordList > button > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.opportunity_workspace_recordList b {
  color: #5570aa;
  font-size: 8px;
}
.opportunity_workspace_recordList em {
  padding: 3px 6px;
  border-radius: 999px;
  color: #39725e;
  background: #eaf7f1;
  font-size: 7px;
  font-style: normal;
}
.opportunity_workspace_recordList > button > strong {
  display: block;
  min-height: 15px;
  overflow: hidden;
  color: #24344d;
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.opportunity_workspace_recordList > button > small {
  display: flex;
  min-height: 13px;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.opportunity_workspace_recordList > button > small svg {
  width: 11px;
}
.opportunity_workspace_recordList footer {
  display: flex;
  min-height: 13px;
  align-items: center;
  gap: 6px;
  color: #697b98;
  line-height: 1.35;
}
.opportunity_workspace_recordList footer i {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 7px;
  font-style: normal;
}
.opportunity_workspace_recordList footer svg {
  width: 10px;
}
.opportunity_workspace_detailPane {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  overflow-anchor: none;
  background: #fff;
}
.opportunity_workspace_detailPane > header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 18px;
  color: #fff;
  background: #244fc6;
  border-bottom: 1px solid #1e45ae;
}
.opportunity_workspace_detailPane > header p {
  margin: 0 0 3px;
  color: #cbd8ff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .03em;
}
.opportunity_workspace_detailPane > header h2 {
  max-width: 820px;
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.opportunity_workspace_detailPane > header small {
  color: var(--muted);
  font-size: 8px;
}
.opportunity_workspace_detailPane > header small {
  color: #c8d5f8;
}
.opportunity_workspace_detailPane > header > span {
  padding: 5px 10px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 999px;
  color: #fff;
  background: rgb(255 255 255 / 13%);
  font-weight: 700;
}
.opportunity_workspace_facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.opportunity_workspace_facts > article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  min-height: 70px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid #e7ebf2;
  border-radius: 0;
  background: #fff;
}
.opportunity_workspace_facts > article:last-child {
  border-right: 0;
}
.opportunity_workspace_facts > article > svg {
  width: 15px;
  color: #315bd0;
}
.opportunity_workspace_facts > article > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.opportunity_workspace_facts small {
  color: var(--muted);
  font-size: 8px;
}
.opportunity_workspace_facts strong {
  overflow: hidden;
  color: #22334e;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.opportunity_workspace_tags {
  display: flex;
  min-width: 0;
  gap: 4px;
  overflow: hidden;
  flex-wrap: nowrap;
}
.opportunity_workspace_tags span {
  padding: 3px 6px;
  border-radius: 5px;
  color: #31549d;
  background: #eaf0ff;
  font-size: 8px;
}
.opportunity_workspace_tags i {
  color: #8a96a7;
  font-size: 8px;
  font-style: normal;
}
.opportunity_workspace_linkage {
  display: grid;
  min-height: 0;
  margin: 12px 14px 14px;
  overflow: hidden;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border: 1px solid #dfe6f0;
  border-radius: 10px;
  background: #f7f9fc;
}
.opportunity_workspace_linkage > header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid #e2e8f1;
  background: #f5f8fd;
}
.opportunity_workspace_linkage > header > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.opportunity_workspace_linkage > header svg {
  width: 15px;
  color: #315bd0;
}
.opportunity_workspace_linkage > header span {
  display: grid;
  gap: 2px;
}
.opportunity_workspace_linkage > header strong {
  font-size: 10px;
}
.opportunity_workspace_linkage > header small {
  color: var(--muted);
  font-size: 8px;
}
.opportunity_workspace_linkage > header em {
  padding: 4px 7px;
  border-radius: 999px;
  color: #31549d;
  background: #eaf0ff;
  font-size: 8px;
  font-style: normal;
}
.opportunity_workspace_flow {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid #e7ebf2;
  background: #fff;
}
.opportunity_workspace_flow > article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #dce4f0;
  border-radius: 8px;
  background: #fbfcff;
}
.opportunity_workspace_flow > article > b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #315bd0;
  font-size: 8px;
}
.opportunity_workspace_flow > article > span {
  display: grid;
  gap: 1px;
}
.opportunity_workspace_flow strong {
  font-size: 9px;
}
.opportunity_workspace_flow small {
  color: var(--muted);
  font-size: 8px;
}
.opportunity_workspace_flow > svg {
  width: 13px;
  justify-self: center;
  color: #8091b7;
}
.opportunity_workspace_linkageBody {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  overflow: hidden;
}
.opportunity_workspace_linkageBody > div {
  min-width: 0;
  min-height: 0;
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid #e4e9f1;
  border-radius: 8px;
  background: #fff;
}
.opportunity_workspace_linkageBody h4 {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 7px;
  font-size: 9px;
}
.opportunity_workspace_linkageBody h4 svg {
  width: 12px;
  color: #315bd0;
}
.opportunity_workspace_linkageBody article {
  display: grid;
  gap: 3px;
  padding: 7px 0;
  border-top: 1px solid #edf1f6;
  box-shadow: none;
}
.opportunity_workspace_linkageBody article:first-of-type {
  border-top: 0;
}
.opportunity_workspace_linkageBody article strong,
.opportunity_workspace_linkageBody article small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.opportunity_workspace_linkageBody article strong {
  font-size: 8px;
}
.opportunity_workspace_linkageBody article small,
.opportunity_workspace_linkageBody p {
  margin: 0;
  color: var(--muted);
  font-size: 7px;
}
.opportunity_workspace_linkage > footer {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 8px 10px;
  border-top: 1px solid #e2e8f1;
  background: #fff;
}
.opportunity_workspace_linkage > footer button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid #cfd9e9;
  border-radius: 7px;
  color: #31549d;
  background: #fff;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}
.opportunity_workspace_linkage > footer svg {
  width: 12px;
}
.opportunity_workspace_state {
  display: grid;
  min-height: 330px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 12px;
  color: #5e6f88;
}
.opportunity_workspace_state > svg {
  width: 30px;
  height: 30px;
  color: #315bd0;
}
.opportunity_workspace_state strong {
  color: var(--ink);
  font-size: 13px;
}
.opportunity_workspace_state button {
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #315bd0;
  cursor: pointer;
}
.opportunity_workspace_error > svg {
  color: #c94d4d;
}
.opportunity_workspace_spin {
  animation: opportunity_workspace_spin 1s linear infinite;
}
@keyframes opportunity_workspace_spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1200px) {
  .opportunity_workspace_facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .opportunity_workspace_facts > article:nth-child(2) {
    border-right: 0;
  }
  .opportunity_workspace_facts > article:nth-child(-n+2) {
    border-bottom: 1px solid #e7ebf2;
  }
}
@media (max-width: 950px) {
  .opportunity_workspace_root {
    height: auto;
    min-height: 100%;
    overflow: visible;
  }
  .opportunity_workspace_content {
    display: grid;
    overflow: visible;
  }
  .opportunity_workspace_workspace {
    height: auto;
    min-height: 600px;
    grid-template-columns: 1fr;
    contain: none;
  }
  .opportunity_workspace_listPane {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .opportunity_workspace_recordList {
    max-height: 280px;
  }
  .opportunity_workspace_detailPane {
    display: block;
    overflow: visible;
  }
  .opportunity_workspace_linkage {
    min-height: 520px;
  }
  .opportunity_workspace_linkageBody {
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .opportunity_workspace_linkageBody > div {
    min-height: 130px;
  }
}
@media (max-width: 680px) {
  .opportunity_workspace_root {
    padding: 10px;
  }
  .opportunity_workspace_metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .opportunity_workspace_toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .opportunity_workspace_toolbar label {
    width: 100%;
  }
  .opportunity_workspace_facts {
    grid-template-columns: 1fr;
  }
  .opportunity_workspace_flow {
    align-items: stretch;
    flex-direction: column;
  }
  .opportunity_workspace_flow > article {
    width: 100%;
  }
  .opportunity_workspace_flow > svg {
    align-self: center;
    transform: rotate(90deg);
  }
}

/* Customer layout: equal headings and two-line name reservation. */

.opportunity_workspace_listPane>header,.opportunity_workspace_detailPane>header { height:78px; min-height:78px; max-height:78px; box-sizing:border-box; flex-shrink:0; }
.opportunity_workspace_detailPane { grid-template-rows:78px auto minmax(0,1fr); }
.opportunity_workspace_facts { grid-auto-rows:90px; }
.opportunity_workspace_facts>article { min-height:0; overflow:hidden; }
.opportunity_workspace_facts>article:first-child .opportunity_workspace_tags { height:calc(2lh + 6px); min-height:calc(2lh + 6px); max-height:calc(2lh + 6px); }
.opportunity_workspace_facts>article:first-child .opportunity_workspace_tags>span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; min-width:0; overflow:hidden; white-space:normal; overflow-wrap:anywhere; text-overflow:ellipsis; max-height:calc(2lh + 6px); }

/* Search and metric column alignment. */

.opportunity_workspace_toolbar label { width:100%; min-width:0; }
.opportunity_workspace_metrics,.opportunity_workspace_metrics article { min-width:0; }
@media(min-width:951px) {
 .opportunity_workspace_content { grid-template-columns:minmax(300px,30%) minmax(0,70%); grid-template-rows:auto minmax(0,1fr); column-gap:0; }
 .opportunity_workspace_toolbar { grid-column:1; grid-row:1; align-self:stretch; }
 .opportunity_workspace_metrics { grid-column:2; grid-row:1; }
 .opportunity_workspace_content>.opportunity_workspace_workspace,.opportunity_workspace_content>.opportunity_workspace_state { grid-column:1 / -1; grid-row:2; }
}
@media(max-width:950px) {
 .opportunity_workspace_toolbar { grid-column:1; grid-row:1; }
 .opportunity_workspace_metrics { grid-column:1; grid-row:2; }
 .opportunity_workspace_content>.opportunity_workspace_workspace,.opportunity_workspace_content>.opportunity_workspace_state { grid-column:1; grid-row:3; }
}

.opportunity_workspace_toolbar{flex-direction:column;align-items:stretch;justify-content:center;gap:4px}
