/* 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: #2e6a9f; --ce-accent-soft: #cfe0ee;
  --ce-s0: #2e6a9f; --ce-s1: #d9822b; --ce-s2: #2e8b57; --ce-s3: #8e5cc2; --ce-s4: #c2414b; --ce-s5: #1f9aa8; --ce-s6: #8a6d3b; --ce-s7: #6b7785;
}
@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: #8db8dc; --ce-accent-soft: #1c3350;
    --ce-s0: #8db8dc; --ce-s1: #f0a35e; --ce-s2: #5fcf8f; --ce-s3: #b79be6; --ce-s4: #f2867c; --ce-s5: #5cc8d4; --ce-s6: #cfae7a; --ce-s7: #9aa5b1;
  }
}
.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); }
/* Series colours (several series in one chart) */
.ce-bar.ce-s0, .ce-dot.ce-s0, .ce-legend .ce-s0 { fill: var(--ce-s0); background: var(--ce-s0); } .ce-line.ce-s0 { stroke: var(--ce-s0); }
.ce-bar.ce-s1, .ce-dot.ce-s1, .ce-legend .ce-s1 { fill: var(--ce-s1); background: var(--ce-s1); } .ce-line.ce-s1 { stroke: var(--ce-s1); }
.ce-bar.ce-s2, .ce-dot.ce-s2, .ce-legend .ce-s2 { fill: var(--ce-s2); background: var(--ce-s2); } .ce-line.ce-s2 { stroke: var(--ce-s2); }
.ce-bar.ce-s3, .ce-dot.ce-s3, .ce-legend .ce-s3 { fill: var(--ce-s3); background: var(--ce-s3); } .ce-line.ce-s3 { stroke: var(--ce-s3); }
.ce-bar.ce-s4, .ce-dot.ce-s4, .ce-legend .ce-s4 { fill: var(--ce-s4); background: var(--ce-s4); } .ce-line.ce-s4 { stroke: var(--ce-s4); }
.ce-bar.ce-s5, .ce-dot.ce-s5, .ce-legend .ce-s5 { fill: var(--ce-s5); background: var(--ce-s5); } .ce-line.ce-s5 { stroke: var(--ce-s5); }
.ce-bar.ce-s6, .ce-dot.ce-s6, .ce-legend .ce-s6 { fill: var(--ce-s6); background: var(--ce-s6); } .ce-line.ce-s6 { stroke: var(--ce-s6); }
.ce-bar.ce-s7, .ce-dot.ce-s7, .ce-legend .ce-s7 { fill: var(--ce-s7); background: var(--ce-s7); } .ce-line.ce-s7 { stroke: var(--ce-s7); }
.ce-avgline { fill: none; stroke: var(--ce-fg); stroke-width: 1.6; stroke-dasharray: 5 4; }
.ce-avgdot { fill: var(--ce-bg); stroke: var(--ce-fg); stroke-width: 1.6; }
.ce-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ce-muted); margin: 2px 0 4px; }
.ce-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ce-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.ce-legend i.ce-avg { width: 16px; height: 0; border-top: 2px dashed var(--ce-fg); border-radius: 0; background: none; }
/* Imported app results (dataset embeds) */
.ce-block { border-top: 1px solid var(--ce-line); padding-top: 10px; margin-top: 10px; }
.ce-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.ce-block h3 { font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.ce-tablewrap { overflow-x: auto; }
.ce-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ce-table th { text-align: left; font-weight: 600; color: var(--ce-muted); font-size: 12px; padding: 5px 8px; border-bottom: 1px solid var(--ce-line); white-space: nowrap; }
.ce-table td { padding: 5px 8px; border-bottom: 1px solid var(--ce-line); }
.ce-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ce-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ce-tile { border: 1px solid var(--ce-line); border-radius: 8px; padding: 8px 10px; background: var(--ce-soft); }
.ce-k { font-size: 12px; color: var(--ce-muted); }
.ce-v { font-size: 17px; font-weight: 650; margin: 2px 0; font-variant-numeric: tabular-nums; }
.ce-n { font-size: 11.5px; color: var(--ce-muted); }
.ce-table td:first-child { white-space: nowrap; }
