/* ============================================================
   TradeRail PR379 — TRai Customer Intelligence styles
   Brand: accent #FF6B00, dark section header #1A1A2E.
   Text-only indicators — no emoji in UI.
   ============================================================ */

.trai-ci-panel {
  border: 1px solid #e3e3ea;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  margin: 12px 0;
  font-size: 14px;
}

.trai-ci-header {
  background: #1A1A2E;
  color: #ffffff;
  padding: 10px 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trai-ci-header .trai-ci-badge {
  background: #FF6B00;
  color: #ffffff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.trai-ci-body {
  padding: 12px 14px;
}

.trai-ci-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f4;
}

.trai-ci-row:last-child { border-bottom: none; }

.trai-ci-label { color: #6b6b78; }
.trai-ci-value { color: #1A1A2E; font-weight: 600; }

/* Health score — text-only color bands, no emoji */
.trai-score {
  display: inline-block;
  min-width: 44px;
  text-align: center;
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 700;
}
.trai-score-green { background: #e6f6ec; color: #0a5c48; }
.trai-score-amber { background: #fff4dc; color: #8a5c00; }
.trai-score-red   { background: #ffe8e0; color: #8a2a13; }

/* Low-score advisory — inline two-tap confirm (no bare confirm()) */
.trai-advisory {
  border: 1px solid #FF6B00;
  border-left-width: 4px;
  background: #fff7f0;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 10px 0;
  color: #1A1A2E;
}
.trai-advisory-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.trai-advisory-actions button {
  border: 1px solid #FF6B00;
  background: #ffffff;
  color: #FF6B00;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
}
.trai-advisory-actions button.trai-confirm-armed {
  background: #FF6B00;
  color: #ffffff;
}

/* Referral pattern — possible connection framing */
.trai-referral-card {
  border: 1px solid #e3e3ea;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 8px 0;
}
.trai-referral-confidence {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #FF6B00;
}

/* Equipment register table */
.trai-eq-table { width: 100%; border-collapse: collapse; }
.trai-eq-table th {
  text-align: left;
  background: #1A1A2E;
  color: #ffffff;
  padding: 6px 8px;
  font-size: 12px;
}
.trai-eq-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f0f0f4;
}
.trai-eq-aging-flag {
  color: #8a2a13;
  font-weight: 700;
}

/* Collections card */
.trai-collections-card {
  border: 1px solid #e3e3ea;
  border-top: 3px solid #FF6B00;
  border-radius: 6px;
  padding: 12px 14px;
  margin: 10px 0;
}
.trai-collections-card .trai-ci-header { margin: -12px -14px 10px; }
