/* Executive dashboard pieces (Localization / Saudization dashboards): summary banner, ring-gauge cards, status chips.
   Presentation only. body:not(#_) so older page CSS cannot out-rank it. */

body:not(#_) { --lx-ok: #10b981; --lx-warn: #f59e0b; --lx-bad: #ef4444; --lx-mute: #94a3b8; --lx-ink: #141a35; --lx-sub: #6b7393; }

/* status chips */
body:not(#_) .lx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 800 11px/1.2 Inter, system-ui, sans-serif; letter-spacing: .02em; white-space: nowrap; }
body:not(#_) .lx-chip--compliant { color: #047857; background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .32); }
body:not(#_) .lx-chip--warning { color: #b45309; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); }
body:not(#_) .lx-chip--critical { color: #b91c1c; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .32); }
body:not(#_) .lx-chip--no-data, body:not(#_) .lx-chip--below-threshold { color: #475569; background: rgba(148, 163, 184, .14); border: 1px solid rgba(148, 163, 184, .35); }

/* summary banner */
body:not(#_) .lx-sum { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.35fr); gap: 18px; align-items: start; margin: 18px 0 8px; padding: 20px;
  border-radius: 20px; background: radial-gradient(600px 200px at 0% 0%, rgba(34, 211, 238, .12), transparent 60%), rgba(255, 255, 255, .86);
  border: 1px solid rgba(99, 102, 241, .16); box-shadow: 0 14px 34px rgba(15, 23, 42, .07); }
body:not(#_) .lx-sum__kicker { display: inline-flex; gap: 7px; align-items: center; font: 800 10.5px/1 Inter, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #0891b2; }
body:not(#_) .lx-sum h3 { margin: 10px 0 14px !important; font: 700 19px/1.45 Inter, system-ui, sans-serif !important; color: var(--lx-ink) !important; letter-spacing: -.01em; }
body:not(#_) .lx-sum h3 b { font-weight: 900; color: #4338ca; }
body:not(#_) .lx-sum h3 .lx-bad { color: var(--lx-bad); }
body:not(#_) .lx-sum h3 .lx-ok { color: #047857; }
body:not(#_) .lx-sum__chips { display: flex; flex-wrap: wrap; gap: 6px; }
body:not(#_) .lx-sum__ct { margin: 0 0 4px !important; font: 800 11px/1 Inter, system-ui, sans-serif !important; letter-spacing: .08em; text-transform: uppercase; color: var(--lx-sub) !important; }
@media (max-width: 1100px) { body:not(#_) .lx-sum { grid-template-columns: 1fr; } }

/* classification card */
body:not(#_) .lx-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 12px; border-radius: 18px; cursor: pointer; overflow: hidden;
  background: rgba(255, 255, 255, .9); border: 1px solid #e6e9f5; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); transition: transform .18s, box-shadow .18s, border-color .18s; }
body:not(#_) .lx-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--k, #6366f1); box-shadow: 0 0 14px var(--k, #6366f1); }
body:not(#_) .lx-card--compliant { --k: var(--lx-ok); }
body:not(#_) .lx-card--warning { --k: var(--lx-warn); }
body:not(#_) .lx-card--critical { --k: var(--lx-bad); }
body:not(#_) .lx-card--no-data, body:not(#_) .lx-card--below-threshold { --k: var(--lx-mute); }
body:not(#_) .lx-card:hover, body:not(#_) .lx-card:focus-visible { transform: translateY(-2px); border-color: rgba(99, 102, 241, .35); box-shadow: 0 16px 34px rgba(99, 102, 241, .14); outline: none; }
body:not(#_) .lx-card__hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
body:not(#_) .lx-card__names h4 { margin: 0 !important; font: 800 14.5px/1.3 Inter, system-ui, sans-serif !important; color: var(--lx-ink) !important; }
body:not(#_) .lx-card__names p { margin: 3px 0 0 !important; font-size: 12.5px !important; color: var(--lx-sub) !important; text-align: left; }
body:not(#_) .lx-card__body { display: flex; gap: 16px; align-items: center; }

/* ring gauge: --p current %, --t target % (both 0-100) */
body:not(#_) .lx-ring { --c: var(--k, #6366f1); position: relative; flex: 0 0 104px; height: 104px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(min(var(--p), 100) * 1%), rgba(99, 102, 241, .1) 0); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 30%, transparent); }
body:not(#_) .lx-ring__in { position: absolute; inset: 11px; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; box-shadow: inset 0 0 0 1px #eef0f8; }
body:not(#_) .lx-ring__in b { font: 900 19px/1 Inter, system-ui, sans-serif; color: var(--lx-ink); font-variant-numeric: tabular-nums; }
body:not(#_) .lx-ring__in small { margin-top: 4px; font: 700 9.5px/1 Inter, system-ui, sans-serif; color: var(--lx-sub); text-transform: uppercase; letter-spacing: .04em; }
body:not(#_) .lx-ring__mark { position: absolute; left: 50%; top: 0; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 2px; background: var(--lx-ink);
  transform-origin: 50% 52px; transform: rotate(calc(min(var(--t), 100) * 3.6deg)); box-shadow: 0 0 0 2px #fff; }
body:not(#_) .lx-card__say { flex: 1 1 auto; min-width: 0; }
body:not(#_) .lx-say { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px !important; font: 600 13.5px/1.45 Inter, system-ui, sans-serif !important; color: var(--lx-ink) !important; }
body:not(#_) .lx-say i { margin-top: 3px; }
body:not(#_) .lx-say--ok i { color: var(--lx-ok); }
body:not(#_) .lx-say--bad i { color: var(--lx-bad); }
body:not(#_) .lx-say--bad b { color: var(--lx-bad); font-weight: 900; }
body:not(#_) .lx-say--muted { color: var(--lx-sub) !important; }
body:not(#_) .lx-say--muted i { color: var(--lx-mute); }
body:not(#_) .lx-facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 !important; padding: 0 !important; }
body:not(#_) .lx-facts li { padding: 6px 8px; border-radius: 10px; background: #f6f7fc; border: 1px solid #edf0f8; }
body:not(#_) .lx-facts span { display: block; font: 700 9.5px/1.2 Inter, system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--lx-sub); }
body:not(#_) .lx-facts b { display: block; margin-top: 2px; font: 800 15px/1.2 Inter, system-ui, sans-serif; color: var(--lx-ink); font-variant-numeric: tabular-nums; }
body:not(#_) .lx-card__ft { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 10px; border-top: 1px dashed #e6e9f5; font: 600 11.5px/1.3 Inter, system-ui, sans-serif; color: var(--lx-sub); }
body:not(#_) .lx-more { margin-left: auto; color: #4f46e5; font-weight: 800; }
@media (max-width: 520px) { body:not(#_) .lx-card__body { flex-direction: column; align-items: flex-start; } }
body:not(#_) .lx-say { display: block; }
body:not(#_) .lx-say i { margin-right: 6px; }

/* Saudization band board */
body:not(#_) .sx-sum h3 { font-size: 17px !important; }
body:not(#_) .sx-line { font-size: 14.5px; font-weight: 600; color: #2d3348; }
body:not(#_) .sx-h { margin: 18px 0 10px !important; font: 800 15px/1.2 Inter, system-ui, sans-serif !important; color: #141a35 !important; text-align: left !important; }
body:not(#_) .sx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
body:not(#_) .sx-card { cursor: default; }
body:not(#_) .sx-band { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font: 900 12px/1 Inter, system-ui, sans-serif; color: #fff;
  background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent), 0 6px 18px color-mix(in srgb, var(--c) 40%, transparent); }
body:not(#_) .sx-band small { font-weight: 700; opacity: .85; }
body:not(#_) .sx-years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 10px; border-top: 1px dashed #e6e9f5; }
body:not(#_) .sx-year { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 10px; border: 1px solid #edf0f8; border-left: 4px solid var(--c); background: #fafbff; }
body:not(#_) .sx-year small { font: 800 10px/1 Inter, system-ui, sans-serif; color: #6b7393; letter-spacing: .06em; }
body:not(#_) .sx-year b { font: 800 12.5px/1.2 Inter, system-ui, sans-serif; color: #141a35; }
body:not(#_) .sx-year.is-none b { color: #94a3b8; font-weight: 700; }
body:not(#_) .sx-note { margin: 12px 2px 0 !important; font-size: 12px !important; color: #6b7393 !important; }

/* page tabs (Saudization: Overview / Heatmap / Insights) - same chips as the HR dashboard */
body:not(#_) .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(99, 102, 241, .14); width: fit-content; }
body:not(#_) .tabs a { text-decoration: none; }
body:not(#_) .tabs a button { all: unset; cursor: pointer; display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: 11px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; font: 700 13px/1 Inter, system-ui, sans-serif; color: #4b5378 !important; transition: background .15s, color .15s; }
body:not(#_) .tabs a button:hover { background: rgba(99, 102, 241, .08); color: #3730a3; }
body:not(#_) .tabs a button.active { color: #fff !important; background: linear-gradient(135deg, #6366f1, #8b5cf6 60%, #22d3ee) !important; box-shadow: 0 6px 18px rgba(99, 102, 241, .35) !important; }

/* ═════ Executive kit (x3-*) - shared by the rebuilt Reports & Dashboards pages ═════ */
body:not(#_) .x3 { --x3-ink: #0b1030; --x3-sub: #6b7393; --x3-cy: #22d3ee; --x3-vi: #8b5cf6; --x3-in: #6366f1; --x3-ok: #10b981; --x3-warn: #f59e0b; --x3-bad: #ef4444;
  display: flex; flex-direction: column; gap: 16px; font-family: Inter, system-ui, sans-serif; color: var(--x3-ink); }
body:not(#_) .x3 * { box-sizing: border-box; }

/* brief: headline + findings on a holographic panel */
body:not(#_) .x3-brief { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; padding: 22px 24px; border-radius: 22px; color: #e6ebff;
  background: radial-gradient(520px 240px at 100% 0%, rgba(34, 211, 238, .25), transparent 60%), radial-gradient(520px 260px at 0% 120%, rgba(139, 92, 246, .35), transparent 60%), linear-gradient(135deg, #060a1c, #101845);
  border: 1px solid rgba(34, 211, 238, .28); box-shadow: 0 18px 44px rgba(6, 10, 28, .28); }
body:not(#_) .x3-brief::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: linear-gradient(rgba(148, 163, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 255, .14) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%); }
body:not(#_) .x3-kicker { display: inline-flex; gap: 8px; align-items: center; font: 800 10.5px/1 Inter, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--x3-cy); }
body:not(#_) .x3-brief .x3-head { margin: 10px 0 0 !important; font: 700 21px/1.4 Inter, system-ui, sans-serif !important; color: #fff !important; letter-spacing: -.01em; text-align: left !important; text-shadow: 0 0 22px rgba(34, 211, 238, .2); }
body:not(#_) .x3-brief .x3-head b { color: var(--x3-cy); font-weight: 900; }
body:not(#_) .x3-brief .x3-head .x3-hot { color: #fda4af; }
body:not(#_) .x3-find { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 8px; counter-reset: f; }
body:not(#_) .x3-find li { position: relative; display: block; padding: 9px 12px 9px 40px; border-radius: 12px; font-size: 13px; line-height: 1.45; color: #d6dcff;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(148, 163, 255, .18); counter-increment: f; }
body:not(#_) .x3-find li::before { content: counter(f); position: absolute; left: 10px; top: 9px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font: 800 11px/1 Inter, system-ui, sans-serif; color: #060a1c; background: conic-gradient(from 210deg, var(--x3-cy), var(--x3-in), var(--x3-vi), var(--x3-cy)); }
body:not(#_) .x3-find li b { color: #fff; }
body:not(#_) .x3-find li.is-bad b { color: #fda4af; }
body:not(#_) .x3-find li.is-ok b { color: #6ee7b7; }
@media (max-width: 1000px) { body:not(#_) .x3-brief { grid-template-columns: 1fr; } }

/* KPI tiles */
body:not(#_) .x3-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
body:not(#_) .x3-kpi { position: relative; overflow: hidden; padding: 16px 16px 14px; border-radius: 18px; background: rgba(255, 255, 255, .9); border: 1px solid #e6e9f5; box-shadow: 0 10px 26px rgba(15, 23, 42, .05); }
body:not(#_) .x3-kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--k, #6366f1), var(--x3-cy)); box-shadow: 0 0 12px var(--k, #6366f1); }
body:not(#_) .x3-kpi__l { display: flex; justify-content: space-between; gap: 8px; font: 800 10.5px/1.2 Inter, system-ui, sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--x3-sub); }
body:not(#_) .x3-kpi__l i { color: var(--k, #6366f1); font-size: 14px; }
body:not(#_) .x3-kpi__v { margin-top: 8px; font: 900 30px/1 Inter, system-ui, sans-serif; color: var(--x3-ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
body:not(#_) .x3-kpi__v small { font-size: 15px; font-weight: 800; color: var(--x3-sub); margin-left: 3px; }
body:not(#_) .x3-kpi__s { margin-top: 6px; font-size: 12px; color: var(--x3-sub); }
body:not(#_) .x3-meter { height: 6px; margin-top: 10px; border-radius: 99px; background: #eef0f8; overflow: hidden; }
body:not(#_) .x3-meter i { display: block; height: 100%; width: calc(var(--v, 0) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--k, #6366f1), var(--x3-cy)); }

/* chart / list cards */
body:not(#_) .x3-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
body:not(#_) .x3-card { min-width: 0; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .92); border: 1px solid #e6e9f5; box-shadow: 0 12px 30px rgba(15, 23, 42, .05); }
body:not(#_) .x3-card__t { display: flex; align-items: center; gap: 10px; margin: 0 !important; font: 800 15px/1.3 Inter, system-ui, sans-serif !important; color: var(--x3-ink) !important; text-align: left !important; }
body:not(#_) .x3-card__t i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--x3-in), var(--x3-vi) 60%, var(--x3-cy)); }
body:not(#_) .x3-card__d { margin: 6px 0 10px 40px !important; font-size: 12.5px !important; color: var(--x3-sub) !important; }
body:not(#_) .x3-chart { height: 340px; }
body:not(#_) .x3-list { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 6px; }
body:not(#_) .x3-list li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; font-size: 13px; background: #f7f8fd; overflow: hidden; }
body:not(#_) .x3-list li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v, 0) * 1%); background: linear-gradient(90deg, rgba(99, 102, 241, .14), rgba(34, 211, 238, .08)); }
body:not(#_) .x3-list li > * { position: relative; }
body:not(#_) .x3-list b { font-variant-numeric: tabular-nums; }
body:not(#_) .x3-empty { padding: 18px; text-align: center; color: var(--x3-sub); font-size: 13px; border-radius: 12px; background: #f7f8fd; }

/* related reports */
body:not(#_) .x3-links { display: flex; flex-wrap: wrap; gap: 8px; }
body:not(#_) .x3-links a { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 11px; text-decoration: none; font: 700 12.5px/1 Inter, system-ui, sans-serif;
  color: #3730a3; background: rgba(255, 255, 255, .85); border: 1px solid rgba(99, 102, 241, .2); transition: border-color .15s, box-shadow .15s, transform .15s; }
body:not(#_) .x3-links a:hover { border-color: var(--x3-cy); box-shadow: 0 0 16px rgba(34, 211, 238, .3); transform: translateY(-1px); }
body:not(#_) .x3-links a.is-on { color: #fff; background: linear-gradient(135deg, var(--x3-in), var(--x3-vi) 60%, var(--x3-cy)); border-color: transparent; }
body:not(#_) .x3-brief.x3-auto { margin: 0 0 16px; }
body:not(#_) .x3-sub { margin: 10px 0 0 !important; font-size: 12px !important; color: #9aa4d6 !important; }
body:not(#_) .x3-ft { color: #8be9ff; font-weight: 800; }
body:not(#_) .lx-sum--solo { grid-template-columns: 1fr; }
