/* ============================================================
   TradeRail PR377 — TRai Estimating Partner styles
   Build marker: TRai Estimating CSS 2026-06-21 (pr377-v2.0)

   Brand colors: #FF6B00 (primary) / #1A1A2E (ink).
   No emoji. Tenant-neutral. Advisory surfaces only.
   ============================================================ */

.trai-est-panel {
  border: 1px solid #e3e3ea;
  border-radius: 10px;
  background: #ffffff;
  color: #1A1A2E;
  padding: 16px;
  font-family: "Barlow", system-ui, sans-serif;
}

.trai-est-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid #FF6B00;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.trai-est-panel__title {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #1A1A2E;
}

.trai-advisory-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1A1A2E;
  background: #fff2e8;
  border: 1px solid #FF6B00;
  border-radius: 999px;
  padding: 2px 10px;
}

/* ---- Bid risk badge — always visible, colored by level ---- */
.trai-risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #ffffff;
  border-radius: 6px;
  padding: 4px 10px;
}

.trai-risk-badge--low { background: #1E8E3E; }
.trai-risk-badge--medium { background: #FF6B00; }
.trai-risk-badge--high { background: #C5221F; }

.trai-risk-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

/* ---- Stage rail ---- */
.trai-stage-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}

.trai-stage-pill {
  font-size: 12px;
  font-weight: 600;
  color: #1A1A2E;
  background: #f4f4f7;
  border: 1px solid #d8d8e0;
  border-radius: 999px;
  padding: 4px 12px;
}

.trai-stage-pill--active {
  color: #ffffff;
  background: #1A1A2E;
  border-color: #1A1A2E;
}

/* ---- Confidence label ---- */
.trai-confidence {
  font-size: 12px;
  font-style: italic;
  color: #555566;
}

/* ---- Tabs on Projects: Scope of Work + Internal Pricing ---- */
.trai-project-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e3e3ea;
  margin-bottom: 12px;
}

.trai-project-tab {
  font-size: 13px;
  font-weight: 600;
  color: #555566;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 12px;
  cursor: pointer;
}

.trai-project-tab--active {
  color: #FF6B00;
  border-bottom-color: #FF6B00;
}

/* ---- Takeoff estimate label ---- */
.trai-takeoff-label {
  font-size: 11px;
  font-weight: 600;
  color: #FF6B00;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---- Outlier flag in bid leveling ---- */
.trai-outlier {
  color: #C5221F;
  font-weight: 700;
}
