/* Owner dashboard (Overview). Uses the Labwolf OS panel look (.panel, .dash-sales, .dash-range from
   labwolf-os.css); everything new is prefixed dz-. Palette: ink #111210, grey #5f605b, lines #e8e8e4,
   accent #2563eb. */
.dz { display: grid; gap: 18px; min-width: 0; }
.dz > *, .dz-top > *, .dz-lower > * { min-width: 0; }
.dz .panel, .dz .dash-sales { margin: 0; }
.dz .eyebrow { display: block; margin: 0 0 5px; font-size: 10px; letter-spacing: .13em; color: #5f605b; }
.dz .panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.dz .panel-heading h2 { margin: 0; font-size: 15px; font-weight: 650; color: #111210; }
.dz .panel-heading > a { font-size: 12px; color: #2563eb; font-weight: 550; white-space: nowrap; }
.dz .panel-heading > a:hover { text-decoration: underline; }
.dz-foot { margin: 12px 0 0; font-size: 12px; color: #5f605b; line-height: 1.5; }
.dz-none { margin: 4px 0 0; font-size: 13px; color: #5f605b; line-height: 1.6; }
.dz-pad { padding: 0 20px 16px; }
.dz-pad.dz-none { padding: 16px 20px 18px; margin: 0; }
[aria-busy="true"] { opacity: .55; transition: opacity .15s; }
.dz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }

/* greeting + quick actions: one tidy row */
.dz .dz-head { margin: 0; min-height: 0; align-items: center; gap: 16px; flex-wrap: nowrap; }
.dz-head h1 { margin: 0; }
.dz-head p { margin: 4px 0 0; }
.dz-quick { display: flex; flex-wrap: nowrap; gap: 6px; }
.dz-quick .button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; font-size: 12.5px; white-space: nowrap; }
.dz-quick .button svg { width: 15px; height: 15px; flex: none; }
.dz-quick-phone { display: none; }

/* top row: needs attention (about 38%) beside sales performance */
.dz-top { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); gap: 18px; align-items: stretch; }
.dz-attention { display: flex; flex-direction: column; }
.dz-attention .dz-more { margin-top: auto; }
.dz-attention .dz-calm { flex: 1; }
.dz-top.single { grid-template-columns: minmax(0, 1fr); }

/* needs attention: one line per item */
.dz-attention .panel-heading { align-items: center; padding: 14px 18px; }
.dz-badge { min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 99px; background: #111210; color: #fff; font-size: 11px; font-weight: 650; }
.dz-attn-list { list-style: none; margin: 0; padding: 4px 0; }
.dz-attn { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 11px; align-items: center; width: 100%; min-height: 42px; padding: 8px 18px; margin: 0; border: 0; background: none; font: inherit; color: #111210; text-align: left; cursor: pointer; }
.dz-attn:hover { background: #f8f8f6; }
.dz-attn:hover .dz-attn-go { text-decoration: underline; }
.dz-dot { width: 8px; height: 8px; border-radius: 50%; background: #9a9b95; }
.dz-attn.bad .dz-dot { background: #b42318; }
.dz-attn.warn .dz-dot { background: #d48a0b; }
.dz-attn.info .dz-dot { background: #2563eb; }
.dz-attn-text { font-size: 13px; line-height: 1.4; }
.dz-attn-go { font-size: 12.5px; font-weight: 600; color: #2563eb; white-space: nowrap; }
.dz-more { display: block; width: 100%; min-height: 40px; border: 0; border-top: 1px solid #ededea; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: #2563eb; cursor: pointer; border-radius: 0 0 14px 14px; }
.dz-more:hover { background: #f8f8f6; }
.dz-attn-ok { margin: auto 0 0; padding: 12px 18px; border-top: 1px solid #ededea; font-size: 12.5px; color: #157347; font-weight: 550; }
.dz-calm { display: flex; gap: 12px; align-items: center; padding: 16px 18px 18px; }
.dz-calm-mark { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e3f4e9; color: #157347; }
.dz-calm-mark svg { width: 17px; height: 17px; }
.dz-calm strong { font-size: 14px; color: #111210; }
.dz-calm p { margin: 2px 0 0; font-size: 12.5px; color: #5f605b; line-height: 1.5; }

/* sales performance */
.dz .dz-perf { padding: 18px 22px 16px; }
.dz-perf-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.dz-perf-head h2 { margin: 0; font-size: 16px; font-weight: 650; color: #111210; }
.dz-perf .dash-range button { min-height: 34px; padding: 6px 12px; }
.dz-perf-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: center; padding: 16px 0 4px; margin-top: 14px; border-top: 1px solid #e8e8e4; }
.dz-feature { display: grid; justify-items: start; gap: 6px; }
.dz-feature > span { font-size: 12.5px; color: #5f605b; }
.dz-feature strong { font-size: 40px; line-height: 1.05; font-weight: 690; letter-spacing: -.045em; color: #2563eb; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dz-change { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #f1f1ee; color: #40413e; line-height: 1.4; }
.dz-change.up { background: #e3f4e9; color: #0b6f49; }
.dz-change.down { background: #fde7e5; color: #b42318; }
.dz-change-vs { font-weight: 450; }
.dz-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; }
.dz-stats > div { padding: 8px 14px; border-left: 1px solid #e8e8e4; }
.dz-stats > div:nth-child(n+3) { border-top: 1px solid #e8e8e4; }
.dz-stats dt { font-size: 12px; color: #5f605b; }
.dz-stats dd { margin: 3px 0 0; font-size: 18px; font-weight: 650; color: #111210; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dz-stats dd a { color: #2563eb; }
.dz-stats dd a:hover { text-decoration: underline; }
.dz-perf .dz-foot { margin-top: 6px; }

/* chart */
.dz-chart { position: relative; padding-top: 10px; }
.dz-chart-svg { position: relative; width: 100%; min-height: 170px; }
.dz-chart-svg > svg { display: block; overflow: visible; touch-action: pan-y; }
.dz-chart-svg > svg:focus-visible { outline: 2px solid #2563eb; outline-offset: 4px; border-radius: 4px; }
.dz-grid { stroke: #e8e8e4; stroke-width: 1; shape-rendering: crispEdges; }
.dz-grid.base { stroke: #cfd0ca; }
.dz-ylab, .dz-xlab { font-size: 11px; fill: #5f605b; font-variant-numeric: tabular-nums; }
.dz-bar { fill: #2563eb; transition: fill .12s; }
.dz-bar.on { fill: #1a46b8; }
.dz-stub { fill: #d9dad4; }
.dz-hit { fill: transparent; cursor: pointer; }
.dz-cursor { stroke: #9a9b95; stroke-width: 1; stroke-dasharray: 3 3; }
.dz-chart-empty { position: absolute; left: 52px; right: 0; top: 34%; text-align: center; color: #5f605b; font-size: 13px; padding: 0 12px; pointer-events: none; }
.dz-tip { position: absolute; z-index: 2; pointer-events: none; display: grid; gap: 2px; min-width: 120px; padding: 9px 12px; background: #111210; color: #fff; border-radius: 9px; box-shadow: 0 10px 28px #11121033; font-size: 12px; white-space: nowrap; }
.dz-tip span { color: #c9cac4; font-size: 11px; }
.dz-tip strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.dz-tip small { color: #c9cac4; font-size: 11px; }

/* lower row: coming up, money in, top categories */
.dz-lower { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.dz-lower.dz-n1 { grid-template-columns: minmax(0, 1fr); }
.dz-lower.dz-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dz-panel-body { padding: 14px 20px 16px; }
.dz-total { font-size: 17px; font-weight: 650; color: #111210; font-variant-numeric: tabular-nums; }

/* horizontal bar list */
.dz-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dz-bar-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.dz-bar-top span { font-size: 13px; color: #111210; font-weight: 550; }
.dz-bar-top strong { font-size: 13px; font-weight: 650; color: #111210; font-variant-numeric: tabular-nums; }
.dz-bar-top strong.neg { color: #b42318; }
.dz-bar-track { height: 7px; margin-top: 6px; border-radius: 99px; background: #efefec; overflow: hidden; }
.dz-bar-track i { display: block; height: 100%; border-radius: 99px; background: #2563eb; }
.dz-bars small { display: block; margin-top: 4px; font-size: 11px; color: #5f605b; }

/* coming up */
.dz-soon, .dz-act { list-style: none; margin: 0; padding: 0; }
.dz-soon li + li { border-top: 1px solid #ededea; }
.dz-soon a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 20px; min-height: 56px; }
.dz-soon a:hover, .dz-act a:hover { background: #f8f8f6; }
.dz-date { display: grid; justify-items: center; align-content: center; width: 40px; height: 40px; border: 1px solid #e0e0db; border-radius: 9px; background: #fff; line-height: 1; }
.dz-date b { font-size: 15px; font-weight: 650; color: #111210; }
.dz-date i { font-style: normal; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: #5f605b; margin-top: 3px; }
.dz-soon-text, .dz-act-text { display: grid; gap: 2px; min-width: 0; }
.dz-soon-text strong, .dz-act-text strong { font-size: 13px; font-weight: 600; color: #111210; line-height: 1.4; }
.dz-soon-text small, .dz-act-text small { font-size: 12px; color: #5f605b; line-height: 1.4; }

/* recent activity: two columns of rows on wide screens */
.dz-act { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dz-act li { border-top: 1px solid #ededea; min-width: 0; }
.dz-act li:nth-child(-n+2) { border-top: 0; }
.dz-act li:nth-child(odd) { border-right: 1px solid #ededea; }
.dz-act a, .dz-act li > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 20px; height: 100%; }
.dz-act-ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #f1f1ee; color: #40413e; }
.dz-act-ico svg { width: 15px; height: 15px; }
.dz-act-text strong { font-weight: 500; overflow-wrap: anywhere; }

@media (max-width: 1280px) {
  .dz .dz-head { flex-wrap: wrap; }
}
@media (max-width: 1180px) {
  .dz-top { grid-template-columns: minmax(0, 1fr); }
  .dz-lower, .dz-lower.dz-n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dz-lower.dz-n3 > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .dz-lower, .dz-lower.dz-n2, .dz-lower.dz-n3 { grid-template-columns: minmax(0, 1fr); }
  .dz-act { grid-template-columns: minmax(0, 1fr); }
  .dz-act li:nth-child(2) { border-top: 1px solid #ededea; }
  .dz-act li:nth-child(odd) { border-right: 0; }
}
@media (max-width: 760px) {
  .dz { gap: 14px; }
  .dz .page-heading h1 { font-size: 22px; }
  .dz-head p { margin-top: 2px; font-size: 13px; }
  .dz-attention .panel-heading { padding: 11px 16px; }
  .dz-attn-list { padding: 2px 0; }
  .dz .dz-head { min-height: 0; }
  .dz-head .dz-quick { display: none; }
  .dz-quick-phone { display: block; }
  .dz-quick-phone .dz-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .dz-quick-phone .button { justify-content: center; min-height: 44px; padding: 0 8px; font-size: 13px; }
  .dz-top { gap: 14px; }
  .dz .panel-heading { padding: 14px 16px; }
  .dz-attn { padding: 8px 16px; min-height: 44px; }
  .dz .dz-perf { padding: 14px 16px; }
  .dz-perf .dash-range { width: 100%; justify-content: space-between; }
  .dz-perf .dash-range button { flex: 1; padding-inline: 4px; min-height: 38px; }
  .dz .dz-perf { display: flex; flex-direction: column; }
  .dz-perf-body { display: contents; }
  .dz-perf-head { order: 0; gap: 10px; }
  .dz-perf-head .eyebrow { display: none; }
  .dz-feature { order: 1; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e8e8e4; gap: 4px; }
  .dz-perf .dz-chart { order: 2; }
  .dz-stats { order: 3; margin-top: 10px; }
  .dz-perf .dz-foot { order: 4; }
  .dz-feature strong { font-size: 34px; }
  .dz-stats > div { padding: 10px 12px 10px 0; border-left: 0; border-top: 1px solid #e8e8e4; }
  .dz-stats > div:nth-child(even) { padding-left: 12px; border-left: 1px solid #e8e8e4; }
  .dz-stats dd { font-size: 17px; }
  .dz-panel-body { padding: 12px 16px 14px; }
  .dz-pad { padding: 0 16px 14px; }
  .dz-pad.dz-none { padding: 14px 16px; }
  .dz-soon a { padding: 10px 16px; }
  .dz-act a, .dz-act li > div { padding: 11px 16px; }
  .dz-chart-empty { left: 40px; }
}
