/**
 * IP risk & Email risk tool pages — layout and risk-band theming (no inline styles).
 * Risk thresholds match customer-dashboard intelligence tooling.
 */

/* Spacing between risk score row and metric tiles / summary */
.tools-stack-gap {
  margin-top: 2rem;
}

/* Fraud / risk score card */
.tools-risk-score-card {
  border-width: 1px;
  border-style: solid;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* IP page: card sits in a grid column — no fixed min-width that stretches the column */
.tools-risk-score-card--in-grid {
  min-width: 0;
}

/* Email page: standalone card next to address — comfortable minimum */
.tools-risk-score-card:not(.tools-risk-score-card--in-grid) {
  min-width: 200px;
}

@media (max-width: 991.98px) {
  .tools-risk-score-card:not(.tools-risk-score-card--in-grid) {
    min-width: 0;
    width: 100%;
  }
}

.tools-risk-score-card .tools-risk-score-heading {
  opacity: 0.88;
}

.tools-risk-band-neutral {
  background-color: #e9ecef;
  color: #495057;
  border-color: #ced4da;
}

.tools-risk-band-low {
  background-color: #d4edda;
  color: #155724;
  border-color: #28a745;
}

.tools-risk-band-medium {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffc107;
}

.tools-risk-band-high {
  background-color: #ffe8d6;
  color: #9c4200;
  border-color: #fd7e14;
}

.tools-risk-band-critical {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #dc3545;
}

/* Metric tiles (first section grid) */
.tools-metric-tile {
  border: 1px solid #e8eef9;
  border-radius: 0.375rem;
}

.tools-metric-tile-label {
  letter-spacing: 0.04em;
}

/* Intelligence summary callout */
.tools-intelligence-summary {
  margin-top: 2rem;
  background-color: #f5f8ff;
  border: 1px solid #dce6f5;
  border-radius: 0.75rem;
}

/* Empty state before first search (no sample report yet) */
.tools-empty-state {
  margin-top: 1rem;
  border-color: #c5d4eb !important;
  background-color: #fafcff;
}
