/* IBM Guardium D&UX Review Report Styles */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1f2328;
  background: #ffffff;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* Header */
.report-header {
  background: #1c1c1c;
  color: #ffffff;
  padding: 32px 24px;
  border-bottom: 4px solid #0f62fe;
}
.report-header .inner { max-width: 960px; margin: 0 auto; }
.report-header h1 { font-size: 22px; font-weight: 600; margin: 0 0 6px; color: #ffffff; }
.report-header .subtitle { font-size: 13px; color: #a8b3c0; margin: 0; }
.badge-provisional {
  display: inline-block;
  background: #f1c21b;
  color: #1c1c1c;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 2px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections */
section { margin-top: 36px; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; }
h3 { font-size: 14px; font-weight: 600; margin: 20px 0 8px; }

/* Meta grid */
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 24px;
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 11px; font-weight: 600; color: #57606a; text-transform: uppercase; letter-spacing: 0.5px; }
.meta-value { font-size: 13px; color: #1f2328; }

/* Score cards */
.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.score-card {
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 16px;
}
.score-card.overall {
  grid-column: 1 / -1;
  background: #1c1c1c;
  color: #ffffff;
  border-color: #0f62fe;
}
.score-standard { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #57606a; margin-bottom: 4px; }
.score-card.overall .score-standard { color: #a8b3c0; }
.score-level { font-size: 20px; font-weight: 700; margin: 4px 0; }
.score-card.overall .score-level { color: #ffffff; }
.score-numeric { font-size: 12px; color: #57606a; }
.score-card.overall .score-numeric { color: #a8b3c0; }
.score-label { font-size: 10px; color: #f1c21b; font-weight: 600; text-transform: uppercase; margin-top: 4px; }
.level-minimal .score-level { color: #e07c00; }
.level-good .score-level { color: #24a148; }
.level-inadequate .score-level { color: #da1e28; }

/* Severity pills */
.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pill-high { background: #ffd7d9; color: #da1e28; }
.pill-medium { background: #fef3cd; color: #8a3800; }
.pill-low { background: #defbe6; color: #044317; }
.pill-info { background: #dde1e6; color: #393939; }

/* Finding cards */
.finding {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}
.finding-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f7f8fa;
  border-bottom: 1px solid #e5e7eb;
}
.finding-id { font-weight: 700; font-size: 12px; color: #57606a; white-space: nowrap; margin-top: 2px; }
.finding-title { font-weight: 600; font-size: 14px; flex: 1; }
.finding-body { padding: 14px 16px; }
.finding-body p { margin: 0 0 8px; font-size: 13px; }
.finding-body strong { font-weight: 600; }
.finding-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }

/* Screenshot panels */
.screenshot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.screenshot-panel {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.screenshot-panel img {
  width: 100%;
  display: block;
  border-bottom: 1px solid #e5e7eb;
}
.screenshot-caption {
  padding: 10px 12px;
  background: #f7f8fa;
}
.screenshot-caption .eid { font-size: 10px; font-weight: 700; color: #57606a; text-transform: uppercase; }
.screenshot-caption .desc { font-size: 12px; color: #1f2328; margin-top: 2px; }

/* UE mapping */
.ue-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ue-table th, .ue-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #e5e7eb; }
.ue-table th { background: #f7f8fa; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #57606a; }
.ue-table tr:last-child td { border-bottom: none; }

/* Notice */
.notice {
  background: #fef3cd;
  border: 1px solid #f1c21b;
  border-left: 4px solid #f1c21b;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 13px;
  margin-bottom: 24px;
}
.notice strong { font-weight: 700; }

/* Footer */
.report-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid #e5e7eb;
  font-size: 11px;
  color: #57606a;
  margin-top: 40px;
}

@media (max-width: 600px) {
  .score-grid { grid-template-columns: 1fr; }
  .score-card.overall { grid-column: 1; }
  .screenshot-row { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: 1fr; }
}
