/* Owner Business Dashboard — every rule is scoped under .exz-bizdash so nothing else on the site changes. */
.exz-bizdash {
  --bd-bg: #f5f1e8;
  --bd-card: #fffdf8;
  --bd-text: #1f1d1a;
  --bd-muted: #6b665c;
  --bd-line: #e4ddcd;
  --bd-teal: #0f766e;
  --bd-teal-2: #14b8a6;
  --bd-teal-soft: #ccebe6;
  --bd-amber: #b45309;
  --bd-red: #b42318;
  background: var(--bd-bg);
  color: var(--bd-text);
  border-radius: 20px;
  padding: 18px 14px 22px;
  margin: 0 0 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.35;
}
.exz-bizdash * { box-sizing: border-box; }
.exz-bizdash .bd-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.exz-bizdash .bd-title { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; color: var(--bd-text); text-shadow: none; font-family: inherit; text-transform: none; }
.exz-bizdash .bd-sub { margin: 2px 0 0; font-size: 0.82rem; color: var(--bd-muted); }
.exz-bizdash .bd-seg { display: inline-flex; background: #ebe5d7; border-radius: 999px; padding: 3px; gap: 2px; }
.exz-bizdash .bd-seg button {
  appearance: none; border: 0; background: transparent; color: var(--bd-muted);
  font: inherit; font-size: 0.85rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  min-height: 0; box-shadow: none; text-transform: none; letter-spacing: 0;
}
.exz-bizdash .bd-seg button.on { background: var(--bd-card); color: var(--bd-teal); box-shadow: 0 1px 3px rgba(31, 29, 26, 0.12); }
.exz-bizdash .bd-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.exz-bizdash .bd-kpi { background: var(--bd-card); border: 1px solid var(--bd-line); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.exz-bizdash .bd-kpi .k { font-size: 0.72rem; font-weight: 600; color: var(--bd-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.exz-bizdash .bd-kpi .v { font-size: 1.45rem; font-weight: 700; margin-top: 4px; color: var(--bd-text); overflow-wrap: anywhere; }
.exz-bizdash .bd-kpi .v.sm { font-size: 1.02rem; line-height: 1.25; }
.exz-bizdash .bd-kpi .s { font-size: 0.76rem; color: var(--bd-muted); margin-top: 4px; }
.exz-bizdash .bd-kpi.accent { border-color: var(--bd-teal-soft); box-shadow: inset 4px 0 0 var(--bd-teal); }
.exz-bizdash .bd-kpi .nodata, .exz-bizdash .bd-nodata { color: var(--bd-muted); font-weight: 600; font-size: 1rem; }
.exz-bizdash .bd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.exz-bizdash .bd-card { background: var(--bd-card); border: 1px solid var(--bd-line); border-radius: 16px; padding: 14px; min-width: 0; }
.exz-bizdash .bd-card.wide { grid-column: 1 / -1; }
.exz-bizdash .bd-card h3 { margin: 0 0 2px; font-size: 0.98rem; font-weight: 700; color: var(--bd-text); text-transform: none; letter-spacing: 0; font-family: inherit; }
.exz-bizdash .bd-card .cap { margin: 0 0 10px; font-size: 0.75rem; color: var(--bd-muted); }
.exz-bizdash svg { display: block; width: 100%; height: auto; overflow: visible; }
.exz-bizdash svg text { fill: var(--bd-muted); font-size: 12px; font-family: inherit; }
.exz-bizdash .bd-legend { display: flex; gap: 14px; font-size: 0.75rem; color: var(--bd-muted); margin-top: 6px; }
.exz-bizdash .bd-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.exz-bizdash .bd-bars { list-style: none; margin: 0; padding: 0; }
.exz-bizdash .bd-bars li { margin: 0 0 9px; padding: 0; background: none; border: 0; }
.exz-bizdash .bd-bars .row { display: flex; justify-content: space-between; gap: 8px; font-size: 0.82rem; color: var(--bd-text); }
.exz-bizdash .bd-bars .row span:last-child { color: var(--bd-muted); white-space: nowrap; }
.exz-bizdash .bd-bars .track { height: 8px; background: #efe9dc; border-radius: 999px; margin-top: 4px; overflow: hidden; }
.exz-bizdash .bd-bars .fill { height: 100%; background: var(--bd-teal); border-radius: 999px; }
.exz-bizdash .bd-bars .fill.warn { background: var(--bd-amber); }
.exz-bizdash .bd-bars .fill.bad { background: var(--bd-red); }
.exz-bizdash .bd-issues { background: var(--bd-card); border: 1px solid var(--bd-line); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.exz-bizdash .bd-issues h3 { margin: 0 0 8px; font-size: 0.98rem; font-weight: 700; color: var(--bd-text); text-transform: none; letter-spacing: 0; font-family: inherit; }
.exz-bizdash .bd-issues ul { list-style: none; margin: 0; padding: 0; }
.exz-bizdash .bd-issues li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.85rem; padding: 7px 0; border: 0; border-top: 1px solid var(--bd-line); background: none; margin: 0; border-radius: 0; color: var(--bd-text); }
.exz-bizdash .bd-issues li:first-child { border-top: 0; }
.exz-bizdash .bd-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--bd-amber); }
.exz-bizdash .bd-dot.high { background: var(--bd-red); }
.exz-bizdash .bd-ok { color: var(--bd-teal); font-weight: 600; font-size: 0.88rem; }
.exz-bizdash .bd-notes { margin: 14px 2px 0; font-size: 0.74rem; color: var(--bd-muted); }
.exz-bizdash .bd-notes p { margin: 4px 0; }
.exz-bizdash .bd-err { color: var(--bd-red); font-weight: 600; }
.exz-bizdash .bd-refresh { appearance: none; border: 1px solid var(--bd-line); background: var(--bd-card); color: var(--bd-teal); font: inherit; font-size: 0.8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: 0; }

/* ================= Business Overview v2 (reference layout, brand colours) ================= */
body .exz-bizdash.bd2 {
  --bd2-bg: #F4F1FA; --bd2-card: #fff; --bd2-line: #ECE7F5; --bd2-ink: #0B0612; --bd2-muted: #6B6280;
  --bd2-up: #2F8F0B; --bd2-down: #D92D20;
  background: var(--bd2-bg) !important; color: var(--bd2-ink); border-radius: 26px; padding: 22px 22px 18px !important;
  font-family: var(--bx-font, "Plus Jakarta Sans", system-ui, sans-serif) !important; box-shadow: none !important; border: 0 !important;
}
.bd2 .bd2-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.bd2 .bd2-title { margin: 0 !important; font: 800 1.55rem/1.15 var(--bx-font, "Plus Jakarta Sans", sans-serif) !important; letter-spacing: -0.03em !important; color: var(--bd2-ink) !important; text-transform: none !important; background: none !important; -webkit-text-fill-color: currentColor !important; text-shadow: none !important; }
.bd2 .bd2-sub { margin: 3px 0 0 !important; font-size: .84rem; color: var(--bd2-muted); }
.bd2 .bd2-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bd2 .bd-picker { position: relative; }
.bd2 .bd-pill {
  appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px !important; padding: 0 14px !important;
  border-radius: 12px !important; border: 1px solid var(--bd2-line) !important; background: #fff !important; color: var(--bd2-ink) !important;
  font: 600 .86rem/1 var(--bx-font, sans-serif) !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; box-shadow: 0 1px 2px rgba(42,10,74,.06) !important; width: auto !important;
}
.bd2 .bd-pill:hover { border-color: #CDBDF0 !important; }
.bd2 .bd-export { background: var(--bd2-ink) !important; color: #fff !important; border-color: var(--bd2-ink) !important; }
.bd2 .bd-export svg { color: #9BE22D; }
.bd2 .bd-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--bd2-line); border-radius: 16px; padding: 12px; box-shadow: 0 18px 40px rgba(42,10,74,.18); width: 300px; }
.bd2 .bd-pop[hidden] { display: none; }
.bd2 .bd-seg2, .bd2 .bd2-quick { display: flex; gap: 4px; background: #EFEAF8; border-radius: 12px; padding: 4px; }
.bd2 .bd-seg2 button, .bd2 .bd2-quick button {
  appearance: none; flex: 1 1 auto; border: 0 !important; background: transparent !important; color: var(--bd2-muted) !important; min-height: 32px !important; padding: 0 10px !important;
  border-radius: 9px !important; font: 700 .8rem/1 var(--bx-font, sans-serif) !important; cursor: pointer; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important; width: auto !important;
}
.bd2 .bd-seg2 button.on, .bd2 .bd2-quick button.on { background: #9BE22D !important; color: var(--bd2-ink) !important; }
.bd2 .bd2-quick { display: inline-flex; margin: 0 0 14px; background: #fff; border: 1px solid var(--bd2-line); }
.bd2 .bd-custom { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-top: 10px; }
.bd2 .bd-custom label { display: grid; gap: 4px; font-size: .72rem; font-weight: 600; color: var(--bd2-muted); margin: 0; }
.bd2 .bd-custom input { min-height: 36px !important; padding: 4px 6px !important; border-radius: 9px !important; border: 1px solid var(--bd2-line) !important; font: inherit; font-size: .8rem !important; width: 100%; background: #fff !important; color: var(--bd2-ink) !important; }
.bd2 .bd-apply { appearance: none; min-height: 36px !important; padding: 0 12px !important; border-radius: 9px !important; border: 0 !important; background: #7B3FE4 !important; color: #fff !important; font: 700 .8rem/1 var(--bx-font, sans-serif) !important; cursor: pointer; width: auto !important; }

.bd2 .bd2-card { background: var(--bd2-card) !important; border: 1px solid var(--bd2-line) !important; border-radius: 20px !important; padding: 16px 18px !important; min-width: 0; box-shadow: 0 1px 2px rgba(42,10,74,.04) !important; margin: 0 !important; color: var(--bd2-ink) !important; }
.bd2 .bd2-card header { margin-bottom: 10px; }
.bd2 .bd2-card h3 { margin: 0 !important; font: 700 1rem/1.25 var(--bx-font, sans-serif) !important; letter-spacing: -0.01em !important; color: var(--bd2-ink) !important; text-transform: none !important; }
.bd2 .bd2-card header p { margin: 2px 0 0; font-size: .74rem; color: var(--bd2-muted); }

.bd2 .bd2-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.bd2 .bd-kpi2 { background: #fff; border: 1px solid var(--bd2-line); border-radius: 20px; padding: 16px 18px 14px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bd2 .bd-kpi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.bd2 .bd-kpi-l { font-size: .82rem; font-weight: 600; color: var(--bd2-muted); }
.bd2 .bd-chip { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--chip); color: #fff; flex: 0 0 auto; }
.bd2 .bd-chip svg { stroke: #fff; }
.bd2 .bd-kpi-v { font: 800 2rem/1.05 var(--bx-font, sans-serif); letter-spacing: -0.04em; color: var(--bd2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -4px; }
.bd2 .bd-empty-v { font-size: 1.05rem; font-weight: 700; color: var(--bd2-muted); letter-spacing: 0; }
.bd2 .bd-kpi-b { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.bd2 .bd-delta { display: inline-flex; align-items: center; gap: 3px; font-size: .84rem; font-weight: 700; }
.bd2 .bd-delta.up, .bd2 .d.up { color: var(--bd2-up); }
.bd2 .bd-delta.down, .bd2 .d.down { color: var(--bd2-down); }
.bd2 .bd-delta.flat, .bd2 .d.flat { color: var(--bd2-muted); font-weight: 600; }
.bd2 .bd-vs { font-size: .7rem; color: var(--bd2-muted); margin-top: 2px; }
.bd2 .bd-spark { width: 96px; height: 34px; flex: 0 0 auto; }

.bd2 .bd2-row2 { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.bd2 .bd2-row3 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin-bottom: 12px; }
.bd2 .bd2-card > svg, .bd2 .bd-donut > svg { display: block; width: 100%; height: auto; overflow: visible; }
.bd2 .bd-pill svg, .bd2 .bd-chip svg, .bd2 .bd-delta svg, .bd2 .bd-empty svg { flex: 0 0 auto; display: inline-block; }
.bd2 .bd-pill svg { width: 17px; height: 17px; }
.bd2 .bd-pill svg:last-child:not(:first-child) { width: 14px; height: 14px; }
.bd2 .bd-pill span { white-space: nowrap; }
.bd2 svg text { fill: #8A819C; font-size: 11px; font-family: var(--bx-font, sans-serif); }
.bd2 .bd-legend { display: flex; gap: 14px; font-size: .72rem; color: var(--bd2-muted); margin-top: 6px; }
.bd2 .bd-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.bd2 .bd-legend i.dash { width: 14px; height: 0; border-top: 2px dashed; border-radius: 0; vertical-align: 3px; }
.bd2 .bd-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 160px; text-align: center; color: var(--bd2-muted); font-size: .8rem; background: repeating-linear-gradient(0deg, transparent 0 31px, #F3EFFA 31px 32px); border-radius: 12px; padding: 12px; }
.bd2 .bd-empty svg { width: 22px; color: #B58CFF; }

.bd2 .bd-donut { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bd2 .bd-donut svg { max-width: 170px; }
.bd2 .bd-donut .bd-donut-v { font-size: 17px; font-weight: 800; fill: var(--bd2-ink); }
.bd2 .bd-dlegend { list-style: none; margin: 0; padding: 0; width: 100%; }
.bd2 .bd-dlegend li { display: grid; grid-template-columns: 12px 1fr auto auto auto; align-items: center; gap: 8px; font-size: .8rem; padding: 6px 0; border-top: 1px solid var(--bd2-line); background: none; margin: 0; }
.bd2 .bd-dlegend li:first-child { border-top: 0; }
.bd2 .bd-dlegend i { width: 10px; height: 10px; border-radius: 50%; }
.bd2 .bd-dlegend .v { font-weight: 700; }
.bd2 .bd-dlegend .pc { color: var(--bd2-muted); min-width: 34px; text-align: right; }
.bd2 .bd-dlegend .d { font-size: .74rem; font-weight: 700; min-width: 56px; text-align: right; }

.bd2 .bd-table { width: 100%; border-collapse: collapse; font-size: .82rem; background: none !important; }
.bd2 .bd-table th { text-align: left; font-weight: 600; color: var(--bd2-muted); font-size: .72rem; padding: 6px 6px; border-bottom: 1px solid var(--bd2-line); background: none !important; text-transform: none; letter-spacing: 0; }
.bd2 .bd-table td { padding: 8px 6px; border-bottom: 1px solid #F4F0FA; color: var(--bd2-ink); background: none !important; }
.bd2 .bd-table .r { text-align: right; white-space: nowrap; }
.bd2 .bd-table td.bar, .bd2 .bd-table th.bar { width: 26%; }
.bd2 .bd-table td.bar span { display: block; height: 8px; border-radius: 99px; }
.bd2 .bd-more { display: inline-flex; gap: 6px; margin-top: 10px; font-size: .8rem; font-weight: 700; color: #5A23B8 !important; text-decoration: none; }
.bd2 .bd-more:hover { text-decoration: underline; }

.bd2 .bd-heat { display: grid; grid-template-columns: 30px repeat(var(--cols), minmax(0, 1fr)); gap: 3px; align-items: center; }
.bd2 .bd-heat .hl { font-size: .6rem; color: #8A819C; text-align: center; white-space: nowrap; overflow: visible; }
.bd2 .bd-heat .dl { font-size: .68rem; color: var(--bd2-muted); font-weight: 600; }
.bd2 .bd-heat .c { aspect-ratio: 1; border-radius: 4px; background: #F1ECF9; position: relative; overflow: hidden; }
.bd2 .bd-heat .c::after { content: ""; position: absolute; inset: 0; background: #7B3FE4; opacity: var(--a); }
.bd2 .bd-sub-h { margin: 14px 0 4px !important; font: 700 .84rem/1.2 var(--bx-font, sans-serif) !important; color: var(--bd2-ink) !important; text-transform: none !important; letter-spacing: 0 !important; }
.bd2 .bd-sub-h span { font-weight: 500; color: var(--bd2-muted); font-size: .74rem; }
.bd2 .bd-staff { list-style: none; margin: 0; padding: 0; }
.bd2 .bd-staff li { display: grid; grid-template-columns: 30px 1fr auto 60px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--bd2-line); font-size: .84rem; background: none; margin: 0; }
.bd2 .bd-staff li:first-child { border-top: 0; }
.bd2 .bd-staff .av { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #2A0A4A; color: #9BE22D; font-weight: 800; font-size: .8rem; }
.bd2 .bd-staff .n small { display: block; color: var(--bd2-muted); font-size: .7rem; }
.bd2 .bd-staff .v { font-weight: 700; }
.bd2 .bd-staff .d { font-size: .76rem; font-weight: 700; text-align: right; }

.bd2 .bd2-issues .cnt { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #2A0A4A; color: #9BE22D; font-size: .72rem; margin-left: 6px; vertical-align: 1px; }
.bd2 .bd-iss { list-style: none; margin: 0; padding: 0; }
.bd2 .bd-iss li { display: flex; gap: 8px; font-size: .82rem; padding: 7px 0; border-top: 1px solid var(--bd2-line); background: none; margin: 0; color: var(--bd2-ink); }
.bd2 .bd-iss li:first-child { border-top: 0; }
.bd2 .bd-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: #F59E0B; }
.bd2 .bd-dot.high { background: #D92D20; }
.bd2 .bd-ok { color: #2F8F0B; font-weight: 700; font-size: .86rem; margin: 0; }
.bd2 .bd-notes { margin: 12px 4px 0; font-size: .72rem; color: var(--bd2-muted); }
.bd2 .bd-notes p { margin: 3px 0; }

@media (max-width: 1180px) {
  .bd2 .bd2-row2 { grid-template-columns: 1fr 1fr; }
  .bd2 .bd2-row2 > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body .exz-bizdash.bd2 { padding: 14px 10px 14px !important; border-radius: 22px; }
  .bd2 .bd2-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bd2 .bd-kpi2 { padding: 12px 12px 10px; border-radius: 18px; }
  .bd2 .bd-kpi-l { font-size: .74rem; }
  .bd2 .bd-chip { width: 32px; height: 32px; border-radius: 10px; }
  .bd2 .bd-chip svg { width: 16px; height: 16px; }
  .bd2 .bd-kpi-v { font-size: 1.45rem; }
  .bd2 .bd-kpi-b { flex-direction: column; align-items: stretch; gap: 4px; }
  .bd2 .bd-spark { width: 100%; height: 26px; }
  .bd2 .bd2-row2, .bd2 .bd2-row3 { grid-template-columns: 1fr; }
  .bd2 .bd2-actions { width: 100%; }
  .bd2 .bd-picker { flex: 1 1 auto; }
  .bd2 .bd-picker .bd-pill { width: 100% !important; justify-content: space-between; }
  .bd2 .bd-pop { left: 0; right: auto; width: min(320px, calc(100vw - 40px)); }
  .bd2 .bd2-quick { display: flex; overflow-x: auto; }
  .bd2 .bd-table th:nth-child(2), .bd2 .bd-table td:nth-child(2) { display: none; }
  .bd2 .bd2-card { padding: 14px !important; border-radius: 18px !important; }
}

body.noir .panel .bd2 h2.bd2-title { display: block !important; font-size: 1.55rem !important; margin: 0 !important; color: #0B0612 !important; letter-spacing: -0.03em !important; text-transform: none !important; font-weight: 800 !important; font-family: var(--bx-font, "Plus Jakarta Sans", sans-serif) !important; }
body.noir .panel .bd2 h2.bd2-title::after { content: none !important; display: none !important; }
@media (max-width: 760px) { body.noir .panel .bd2 h2.bd2-title { font-size: 1.3rem !important; } }
.bd2 .bd-delta svg { width: 11px !important; height: 11px !important; }
.bd2 .bd-chip svg { width: 20px; height: 20px; }
.bd2 .bd-empty svg { width: 22px; height: 22px; }
.bd2 .bd-spark { display: block; }
@media (max-width: 760px) { .bd2 .bd-chip svg { width: 16px; height: 16px; } }
