/* Embed views (Coupa panels, iFrames, dashboard preview). */
:root {
  --ce-bg: #ffffff; --ce-fg: #1f2933; --ce-muted: #616e7c; --ce-line: #e4e7eb; --ce-soft: #f5f7fa;
  --ce-ok: #1b7f4b; --ce-ok-bg: #e6f4ec; --ce-warn: #9a5b00; --ce-warn-bg: #fdf3e1; --ce-err: #b42318; --ce-err-bg: #fdecea;
  --ce-accent: #2f5fa7; --ce-accent-soft: #c9d8ef;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ce-bg: #16191d; --ce-fg: #e4e7eb; --ce-muted: #9aa5b1; --ce-line: #2c3238; --ce-soft: #1e2328;
    --ce-ok: #5fcf8f; --ce-ok-bg: #173325; --ce-warn: #f0b552; --ce-warn-bg: #3a2c12; --ce-err: #f2867c; --ce-err-bg: #3d1c19;
    --ce-accent: #7aa7e6; --ce-accent-soft: #2b3d57;
  }
}
.ce-root { font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ce-fg); }
.ce-card { background: var(--ce-bg); border: 1px solid var(--ce-line); border-radius: 10px; padding: 14px 16px; }
.ce-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ce-head h2 { font-size: 15px; margin: 0; font-weight: 600; }
.ce-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 3px 10px 3px 8px; border-radius: 999px; }
.ce-status svg, .ce-results svg { width: 16px; height: 16px; flex: none; }
.ce-ok { color: var(--ce-ok); } .ce-status.ce-ok { background: var(--ce-ok-bg); }
.ce-warning { color: var(--ce-warn); } .ce-status.ce-warning { background: var(--ce-warn-bg); }
.ce-error, .ce-failed { color: var(--ce-err); } .ce-status.ce-error, .ce-status.ce-failed { background: var(--ce-err-bg); }
.ce-results { list-style: none; margin: 0; padding: 0; }
.ce-results li { display: flex; gap: 8px; padding: 7px 0; border-top: 1px solid var(--ce-line); }
.ce-results li:first-child { border-top: 0; }
.ce-results li span { color: var(--ce-fg); }
.ce-results li small { color: var(--ce-muted); font-weight: 400; }
.ce-results.ce-compact li { padding: 4px 0; border: 0; font-size: 13px; }
.ce-fields { margin: 4px 0 0; display: grid; gap: 0; }
.ce-fields div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--ce-line); }
.ce-fields div:first-child { border-top: 0; }
.ce-fields dt { color: var(--ce-muted); }
.ce-fields dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.ce-chart { width: 100%; height: auto; display: block; margin-top: 4px; }
.ce-grid { stroke: var(--ce-line); stroke-width: 1; }
.ce-tick { fill: var(--ce-muted); font-size: 11px; }
.ce-val { fill: var(--ce-fg); font-size: 11px; font-variant-numeric: tabular-nums; }
.ce-bar { fill: var(--ce-accent); }
.ce-line { fill: none; stroke: var(--ce-accent); stroke-width: 2; }
.ce-dot { fill: var(--ce-accent); }
.ce-changes { margin-top: 10px; font-size: 13px; }
.ce-changes summary { cursor: pointer; color: var(--ce-muted); }
.ce-changes table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.ce-changes td { padding: 4px 0; border-top: 1px solid var(--ce-line); }
.ce-changes td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ce-decision { margin: 10px 0 0; font-size: 13px; font-weight: 500; }
.ce-muted { color: var(--ce-muted); }
