/* Shared styles for embeddable report areas (SimCorp BV · UAT 25.11 Cycle 2) */
:root {
  --surface-1: #ffffff;
  --surface-2: #faf9f5;
  --border: #e1e0d9;
  --text-primary: #1c1b18;
  --text-secondary: #46443d;
  --text-muted: #898781;
  --bg-warning: #fdf3e0;
  --accent: #b3550f;
  --font-voice: Georgia, "Times New Roman", serif;
  --red: #d03b3b;
  --amber: #fab219;
  --amber-text: #854f0b;
  --green: #0ca30c;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 15px;
  padding: 14px;
}

/* one self-contained card per embedded area */
.embed-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
}
.embed-head { margin-bottom: 16px; }
.embed-head .eyebrow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.embed-head h2 {
  font-family: var(--font-voice); font-weight: 600; font-size: 20px;
  margin: 4px 0 4px; display: flex; align-items: center; gap: 9px;
}
.embed-head h2 .ti { color: var(--accent); font-size: 20px; }
.embed-head .sub { color: var(--text-muted); font-size: 13px; margin: 0; }

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

/* KPIs */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.kpi .label { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.kpi .value { font-family: var(--font-voice); font-size: 30px; margin-top: 8px; }
.kpi .sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.kpi.red .value { color: var(--red); }
.kpi.amber .value { color: var(--amber-text); }
.kpi.green .value { color: var(--green); }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: none; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.tag.pass { background: #e3f4e3; color: #0a7a0a; }
.tag.fail { background: #fbe4e4; color: #b32020; }
.tag.skip { background: #f1efe8; color: #6b6961; }
.tag.open { background: #fbe4e4; color: #b32020; }
.tag.amber { background: var(--bg-warning); color: var(--amber-text); }
.sev-high { color: var(--red); font-weight: 600; }
.sev-med { color: var(--amber-text); font-weight: 600; }

/* execution bar */
.exec-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); margin-top: 4px; }
.exec-bar > div { display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; font-weight: 600; }
.exec-bar .b-pass { background: var(--green); }
.exec-bar .b-fail { background: var(--red); }
.exec-bar .b-skip { background: #b6b4ac; }
.exec-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--text-secondary); margin-top: 10px; }
.exec-legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* conditions list */
ul.conds { margin: 0; padding-left: 0; list-style: none; }
ul.conds li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
ul.conds li:last-child { border-bottom: none; }
ul.conds .ti { color: var(--accent); margin-top: 2px; }

/* warning / callout */
.callout { background: var(--bg-warning); border-radius: 8px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.callout .ti { color: var(--amber-text); font-size: 18px; margin-top: 1px; }
.callout .txt { font-size: 13px; color: #633806; line-height: 1.5; }

@media (max-width: 640px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
