html.mcdash-scroll-locked,
html.mcdash-scroll-locked body {
  height: 100%;
  overflow: hidden;
}

.mcdash-page {
  --mcdash-bg: #f7faf8;
  --mcdash-surface: #ffffff;
  --mcdash-border: #e2ebe5;
  --mcdash-border-soft: #eef3ef;
  --mcdash-text: #19221d;
  --mcdash-text-mid: #5d6b63;
  --mcdash-text-muted: #66736b;
  --mcdash-green: #1f9c45;
  --mcdash-green-dark: #187d38;
  --mcdash-green-soft: #e9f6ed;
  --mcdash-blue: #0969da;
  --mcdash-blue-soft: #edf5ff;
  --mcdash-red: #d92d20;
  --mcdash-red-soft: #fff0ef;
  --mcdash-amber: #b76e00;
  --mcdash-amber-soft: #fffbeb;
  height: calc(100dvh - var(--navbar-h, 40px) - var(--content-top-gap, 5px));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.5rem;
  background: var(--mcdash-bg);
  color: var(--mcdash-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mcdash-page *,
.mcdash-page *::before,
.mcdash-page *::after {
  box-sizing: border-box;
}

.mcdash-date-toolbar {
  display: flex;
  width: min(100%, 1280px);
  min-height: 2.65rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin: 0 auto 0.55rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--mcdash-border);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 8px 18px rgba(25, 45, 32, 0.05);
}

.mcdash-date-toolbar form,
.mcdash-date-toolbar a {
  display: inline-flex;
  align-items: center;
}

.mcdash-date-toolbar form {
  min-height: 1.9rem;
  gap: 0.4rem;
  padding: 0 0.55rem;
  border: 1px solid var(--mcdash-border);
  border-radius: 0.4rem;
}

.mcdash-date-toolbar input {
  position: relative;
  width: 8.2rem;
  padding: 0 0.15rem;
  border: 0;
  background: transparent;
  color: var(--mcdash-text);
  direction: rtl;
  font: 700 0.7rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  outline: none;
  text-align: left;
}

.mcdash-date-toolbar input::-webkit-datetime-edit {
  direction: ltr;
}

.mcdash-date-toolbar input::-webkit-calendar-picker-indicator {
  display: block;
  width: 1rem;
  height: 1rem;
  margin: 0 0.35rem 0 0;
  cursor: pointer;
  opacity: 0.72;
}

.mcdash-date-field {
  display: inline-flex;
  align-items: center;
}

.mcdash-date-preset {
  position: relative;
  display: grid;
  width: 1.75rem;
  height: 1.45rem;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0.4rem;
  background: var(--mcdash-green-soft);
  color: var(--mcdash-green-dark);
  cursor: pointer;
}

.mcdash-date-preset::after {
  position: absolute;
  top: calc(100% + 0.42rem);
  right: 50%;
  z-index: 60;
  padding: 0.32rem 0.48rem;
  border-radius: 0.3rem;
  background: #24302a;
  color: #fff;
  content: attr(data-tooltip);
  font-size: 0.6rem;
  font-weight: 750;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(50%);
}

.mcdash-date-preset:hover::after,
.mcdash-date-preset:focus-visible::after {
  opacity: 1;
}

.mcdash-date-preset:hover,
.mcdash-date-preset:focus-visible {
  background: var(--mcdash-green-soft);
  color: var(--mcdash-green-dark);
  box-shadow: 0 0 0 3px rgba(31, 156, 69, 0.12);
}

.mcdash-date-preset .material-symbols-outlined {
  font-size: 1rem;
}

.mcdash-date-toolbar form > button[type="submit"] {
  min-height: 1.45rem;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 0.3rem;
  background: var(--mcdash-green-soft);
  color: var(--mcdash-green-dark);
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 800;
}

.mcdash-date-toolbar > i {
  width: 1px;
  height: 1.25rem;
  background: var(--mcdash-border);
}

.mcdash-date-toolbar a {
  min-height: 1.9rem;
  gap: 0.3rem;
  color: var(--mcdash-green-dark);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.mcdash-date-toolbar a .material-symbols-outlined {
  font-size: 1rem;
}

.mcdash-shell {
  flex: 1 1 auto;
  width: min(100%, 1280px);
  min-height: 0;
  margin: 0 auto;
  background: transparent;
}

.mcdash-content {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: 8.6rem minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 0.55rem;
  padding: 0;
  scroll-margin-top: 1rem;
}

.mcdash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.mcdash-kpi {
  position: relative;
  display: grid;
  min-height: 8.6rem;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  grid-template-rows: 1rem 2.55rem auto auto auto;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--mcdash-border);
  border-radius: 0.5rem;
  background: var(--mcdash-surface);
  box-shadow: 0 10px 22px rgba(25, 45, 32, 0.05);
}

.mcdash-kpi-icon {
  position: relative;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 999px;
  grid-column: 1;
  grid-row: 1 / 3;
}

.mcdash-kpi-icon[data-tooltip] {
  cursor: help;
  outline: none;
}

.mcdash-kpi-icon[data-tooltip]::before,
.mcdash-kpi-icon[data-tooltip]::after {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.mcdash-kpi-icon[data-tooltip]::before {
  top: calc(100% + 0.45rem);
  left: 0.9rem;
  width: 0.65rem;
  height: 0.65rem;
  background: #24302a;
  content: "";
  transform: translate(-50%, -0.35rem) rotate(45deg);
}

.mcdash-kpi-icon[data-tooltip]::after {
  top: calc(100% + 0.65rem);
  left: 0;
  width: max-content;
  max-width: min(16rem, 70vw);
  padding: 0.65rem 0.75rem;
  border-radius: 0.45rem;
  background: #24302a;
  box-shadow: 0 8px 20px rgba(25, 45, 32, 0.18);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.4;
  transform: translateY(-0.35rem);
}

.mcdash-kpi-icon[data-tooltip]:hover::before,
.mcdash-kpi-icon[data-tooltip]:hover::after,
.mcdash-kpi-icon[data-tooltip]:focus-visible::before,
.mcdash-kpi-icon[data-tooltip]:focus-visible::after {
  opacity: 1;
}

.mcdash-kpi-icon[data-tooltip]:hover::before,
.mcdash-kpi-icon[data-tooltip]:focus-visible::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.mcdash-kpi-icon[data-tooltip]:hover::after,
.mcdash-kpi-icon[data-tooltip]:focus-visible::after {
  transform: translateY(0);
}

.mcdash-kpi-icon[data-tooltip]:focus-visible {
  box-shadow: 0 0 0 3px rgba(31, 156, 69, 0.22);
}

.mcdash-kpi-icon .material-symbols-outlined {
  font-size: 1.45rem;
}

.mcdash-kpi--green .mcdash-kpi-icon {
  background: var(--mcdash-green-soft);
  color: var(--mcdash-green);
}

.mcdash-kpi--blue .mcdash-kpi-icon {
  background: var(--mcdash-blue-soft);
  color: var(--mcdash-blue);
}

.mcdash-kpi--red .mcdash-kpi-icon {
  background: var(--mcdash-red-soft);
  box-shadow: inset 0 0 0 1px rgba(217, 45, 32, 0.08);
  color: var(--mcdash-red);
}

.mcdash-kpi-copy {
  display: contents;
}

.mcdash-kpi-label,
.mcdash-kpi-value,
.mcdash-kpi-delta,
.mcdash-kpi-context,
.mcdash-kpi-note {
  margin: 0;
}

.mcdash-kpi-label {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  color: var(--mcdash-text-mid);
  font-size: 0.73rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcdash-kpi-value {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0.15rem;
  color: var(--mcdash-text);
  font-size: clamp(1.7rem, 2.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.mcdash-kpi--green .mcdash-kpi-value {
  color: var(--mcdash-green-dark);
}

.mcdash-kpi--blue:nth-child(2) .mcdash-kpi-value {
  color: var(--mcdash-blue);
}

.mcdash-kpi--red .mcdash-kpi-value {
  color: var(--mcdash-red);
}

.mcdash-kpi-value span {
  margin-left: 0.1em;
  font-size: 0.62em;
}

.mcdash-kpi-delta,
.mcdash-kpi-context {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.42rem;
  color: var(--mcdash-text-muted);
  font-size: 0.69rem;
  font-weight: 700;
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: start;
  text-align: left;
}

.mcdash-kpi-delta .material-symbols-outlined,
.mcdash-kpi-context .material-symbols-outlined {
  font-size: 0.85rem;
}

.mcdash-kpi-delta {
  white-space: nowrap;
}

.mcdash-kpi-delta small {
  margin-left: 0.2rem;
  color: var(--mcdash-text-muted);
  font-size: 0.61rem;
  font-weight: 650;
}

.mcdash-kpi-delta.is-positive {
  color: var(--mcdash-green);
}

.mcdash-kpi-delta.is-negative,
.mcdash-kpi-context.is-critical {
  color: var(--mcdash-red);
}

.mcdash-kpi-context.is-critical {
  background: transparent;
}

.mcdash-kpi-note {
  grid-column: 1 / -1;
  grid-row: 4;
  justify-self: start;
  margin-top: 0.15rem;
  color: var(--mcdash-text-muted);
  font-size: 0.62rem;
}

.mcdash-kpi-more {
  position: absolute;
  bottom: 0.65rem;
  left: 0.75rem;
  margin: 0;
}

.mcdash-kpi-more[open] {
  z-index: 40;
}

.mcdash-kpi-more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  color: var(--mcdash-green-dark);
  cursor: pointer;
  font-size: 0.63rem;
  font-weight: 800;
  list-style: none;
  user-select: none;
}

.mcdash-kpi-more summary::-webkit-details-marker {
  display: none;
}

.mcdash-kpi-more summary .material-symbols-outlined {
  font-size: 0.9rem;
  transition: transform 0.16s ease;
}

.mcdash-kpi-more[open] summary .material-symbols-outlined {
  transform: rotate(45deg);
}

.mcdash-kpi-more summary:focus-visible {
  border-radius: 0.25rem;
  outline: 3px solid rgba(31, 156, 69, 0.22);
  outline-offset: 2px;
}

.mcdash-kpi-breakdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  display: grid;
  width: min(21rem, calc(100vw - 2rem));
  height: 13.25rem;
  overflow-y: auto;
  padding: 0.55rem;
  border: 1px solid var(--mcdash-border);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 14px 32px rgba(25, 45, 32, 0.16);
}

.mcdash-kpi-breakdown > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.12rem 0.75rem;
  padding: 0.55rem;
  border-bottom: 1px solid var(--mcdash-border-soft);
}

.mcdash-kpi-breakdown > div:last-child {
  border-bottom: 0;
}

.mcdash-kpi-breakdown span,
.mcdash-kpi-breakdown strong,
.mcdash-kpi-breakdown small {
  margin: 0;
}

.mcdash-kpi-breakdown span {
  color: var(--mcdash-text);
  font-size: 0.7rem;
  font-weight: 750;
}

.mcdash-kpi-breakdown strong {
  grid-row: span 2;
  color: var(--mcdash-green-dark);
  font-size: 0.88rem;
}

.mcdash-kpi-breakdown small {
  color: var(--mcdash-text-muted);
  font-size: 0.59rem;
}

.mcdash-primary-grid,
.mcdash-secondary-grid {
  display: grid;
  min-height: 0;
  gap: 0.55rem;
  margin-top: 0;
}

.mcdash-primary-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(24rem, 0.95fr);
}

.mcdash-secondary-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) minmax(0, 1fr);
}

.mcdash-card {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--mcdash-border);
  border-radius: 0.5rem;
  background: var(--mcdash-surface);
  box-shadow: 0 10px 22px rgba(25, 45, 32, 0.05);
  scroll-margin-top: 1rem;
}

.mcdash-trend-card,
.mcdash-office-card,
.mcdash-funnel-card,
.mcdash-reasons-card,
.mcdash-operations-card {
  display: flex;
  flex-direction: column;
}

.mcdash-card-header {
  flex: 0 0 auto;
  display: flex;
  min-height: 3.35rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem 0.45rem;
}

.mcdash-card-header h2,
.mcdash-card-header p {
  margin: 0;
}

.mcdash-card-header h2 {
  color: var(--mcdash-text-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mcdash-card-header p {
  margin-top: 0.18rem;
  color: var(--mcdash-text-muted);
  font-size: 0.66rem;
}

.mcdash-card-base {
  color: var(--mcdash-text-muted);
  font-size: 0.65rem;
  white-space: nowrap;
}

.mcdash-legend {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--mcdash-text-mid);
  font-size: 0.66rem;
  font-weight: 700;
}

.mcdash-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.mcdash-legend i {
  width: 0.9rem;
  height: 0.18rem;
  border-radius: 999px;
}

.mcdash-legend i.is-green {
  background: var(--mcdash-green);
}

.mcdash-legend i.is-blue {
  background: var(--mcdash-blue);
}

.mcdash-legend i.is-red {
  background: var(--mcdash-red);
}

.mcdash-trend {
  flex: 1 1 auto;
  display: grid;
  min-height: 11.5rem;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  padding: 0.2rem 0.8rem 0.55rem;
}

.mcdash-trend-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0.3rem 1.75rem 0;
  color: var(--mcdash-text-muted);
  font-size: 0.6rem;
  text-align: right;
}

.mcdash-trend-plot {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.mcdash-trend-plot svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  overflow: visible;
}

.mcdash-trend-plot line {
  stroke: var(--mcdash-border-soft);
  stroke-dasharray: 4 5;
  stroke-width: 1;
}

.mcdash-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.25;
  vector-effect: non-scaling-stroke;
}

.mcdash-line--csat {
  stroke: var(--mcdash-green);
}

.mcdash-line--dissatisfaction {
  stroke: var(--mcdash-red);
}

.mcdash-chart-marker {
  pointer-events: none;
  stroke: #fff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.mcdash-chart-marker.is-csat {
  fill: var(--mcdash-green);
}

.mcdash-chart-marker.is-dissatisfaction {
  fill: var(--mcdash-red);
}

.mcdash-chart-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2;
  cursor: crosshair;
  outline: none;
  vector-effect: non-scaling-stroke;
}

.mcdash-chart-hit.is-csat:hover,
.mcdash-chart-hit.is-csat:focus-visible {
  fill: rgba(31, 156, 69, 0.16);
  stroke: var(--mcdash-green);
}

.mcdash-chart-hit.is-dissatisfaction:hover,
.mcdash-chart-hit.is-dissatisfaction:focus-visible {
  fill: rgba(217, 45, 32, 0.14);
  stroke: var(--mcdash-red);
}

.mcdash-chart-tooltip {
  position: absolute;
  z-index: 30;
  display: grid;
  width: 12rem;
  gap: 0.28rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.5rem;
  background: #24302a;
  box-shadow: 0 12px 26px rgba(25, 45, 32, 0.24);
  color: #fff;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 0.7rem));
}

.mcdash-chart-tooltip.is-below {
  transform: translate(-50%, 0.7rem);
}

.mcdash-chart-tooltip[hidden] {
  display: none;
}

.mcdash-chart-tooltip strong {
  font-size: 0.72rem;
}

.mcdash-chart-tooltip span {
  display: grid;
  grid-template-columns: 0.55rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
}

.mcdash-chart-tooltip span i {
  width: 0.5rem;
  height: 0.18rem;
  border-radius: 999px;
}

.mcdash-chart-tooltip span i.is-green {
  background: var(--mcdash-green);
}

.mcdash-chart-tooltip span i.is-red {
  background: var(--mcdash-red);
}

.mcdash-chart-tooltip span b {
  font-size: 0.68rem;
}

.mcdash-chart-tooltip small {
  padding-top: 0.28rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #d7e0da;
  font-size: 0.6rem;
}

.mcdash-trend-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0.5rem 0.15rem 0;
  color: var(--mcdash-text-muted);
  font-size: 0.56rem;
}

.mcdash-trend-labels span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcdash-office-list {
  flex: 1 1 auto;
  display: grid;
  align-content: space-evenly;
  gap: 0.82rem;
  padding: 0.75rem 1rem 0.35rem;
}

.mcdash-office-row {
  display: grid;
  grid-template-columns: 1rem minmax(7.5rem, 1fr) minmax(8rem, 2.2fr) 2.8rem 3.3rem;
  align-items: center;
  gap: 0.55rem;
  color: var(--mcdash-text-mid);
  font-size: 0.7rem;
}

.mcdash-office-rank {
  color: var(--mcdash-text);
  font-weight: 700;
}

.mcdash-office-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcdash-office-track,
.mcdash-reason-track {
  display: block;
  height: 1.8rem;
  overflow: hidden;
  border-left: 1px solid #cad4e0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 24.5%, #eef2f6 25%, transparent 25.5%);
}

.mcdash-office-track i,
.mcdash-reason-track i {
  display: block;
  width: var(--mcdash-bar-width);
  height: 100%;
  border-radius: 0 0.22rem 0.22rem 0;
  background: linear-gradient(90deg, #55b96f, var(--mcdash-green));
}

.mcdash-office-track i {
  background: linear-gradient(90deg, #ef776d, var(--mcdash-red));
}

.mcdash-office-row strong {
  color: var(--mcdash-text);
  font-size: 0.82rem;
}

.mcdash-office-row small {
  color: var(--mcdash-text-muted);
  font-size: 0.6rem;
  text-align: right;
}

.mcdash-scale {
  display: flex;
  justify-content: space-between;
  margin: 0 5.3rem 0 10.35rem;
  padding: 0.45rem 0 0.85rem;
  border-top: 1px solid var(--mcdash-border-soft);
  color: var(--mcdash-text-muted);
  font-size: 0.57rem;
}

.mcdash-funnel {
  flex: 1 1 auto;
  display: grid;
  min-height: 11.8rem;
  grid-template-columns: minmax(8rem, 1fr) minmax(8.5rem, 1.12fr);
  gap: 1rem;
  align-items: center;
  padding: 0.2rem 0.8rem 0.55rem;
}

.mcdash-funnel-shapes,
.mcdash-funnel-labels {
  display: grid;
  height: 100%;
  min-height: 9rem;
  grid-template-rows: repeat(4, 1fr);
  align-items: center;
}

.mcdash-funnel-shape {
  display: block;
  width: var(--mcdash-funnel-width);
  height: 2.15rem;
  margin: 0 auto;
  border-radius: 0.18rem;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
}

.mcdash-funnel-shape.is-emerald {
  background: #078b63;
}

.mcdash-funnel-shape.is-green {
  background: #74c99c;
}

.mcdash-funnel-shape.is-blue {
  background: #6d9fe3;
}

.mcdash-funnel-shape--split {
  display: grid;
  overflow: visible;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0;
  clip-path: none;
  background: transparent;
}

.mcdash-funnel-shape--split > i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.18rem;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
}

.mcdash-funnel-shape--split > i.is-blue {
  background: #397fd6;
}

.mcdash-funnel-shape--split > i.is-blue-light {
  background: #8eb9ee;
}

.mcdash-funnel-shape--split > i.is-red {
  background: #dc3f45;
}

.mcdash-funnel-shape--split > i.is-red-light {
  background: #f58b8e;
}

.mcdash-funnel-shape.is-red {
  background: #f46666;
}

.mcdash-funnel-labels > div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.mcdash-funnel-labels span {
  color: var(--mcdash-text-mid);
  font-size: 0.72rem;
}

.mcdash-funnel-labels strong {
  font-size: 1.08rem;
  line-height: 1.1;
}

.mcdash-funnel-labels .mcdash-funnel-rate {
  margin-top: 0.08rem;
  color: var(--mcdash-text-muted);
  font-size: 0.62rem;
  font-weight: 650;
}

.mcdash-funnel-labels .mcdash-funnel-segments {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.16rem;
}

.mcdash-funnel-labels .mcdash-funnel-segments span {
  display: grid;
  min-width: 0;
  grid-template-columns: auto auto;
  gap: 0 0.2rem;
  color: #397fd6;
  font-size: 0.62rem;
  font-weight: 750;
  white-space: nowrap;
}

.mcdash-funnel-labels .mcdash-funnel-segments b,
.mcdash-funnel-labels .mcdash-funnel-segments strong,
.mcdash-funnel-labels .mcdash-funnel-segments em {
  overflow: hidden;
  margin: 0;
  font: inherit;
  text-overflow: ellipsis;
}

.mcdash-funnel-labels .mcdash-funnel-segments strong {
  justify-self: end;
}

.mcdash-funnel-labels .mcdash-funnel-segments em {
  grid-column: 1 / -1;
  color: var(--mcdash-text-muted);
  font-size: 0.56rem;
  font-style: normal;
}

.mcdash-funnel-labels .mcdash-funnel-segments span.is-blue-light {
  color: #568bc8;
}

.mcdash-funnel-labels .mcdash-funnel-segments span.is-red {
  color: #c9333a;
}

.mcdash-funnel-labels .mcdash-funnel-segments span.is-red-light {
  color: #d85f64;
}

.mcdash-funnel-labels strong.is-emerald,
.mcdash-funnel-labels strong.is-green {
  color: var(--mcdash-green);
}

.mcdash-funnel-labels strong.is-blue {
  color: var(--mcdash-blue);
}

.mcdash-funnel-labels strong.is-red {
  color: var(--mcdash-red);
}

.mcdash-funnel-labels .material-symbols-outlined {
  position: absolute;
  right: 0.5rem;
  bottom: -0.48rem;
  color: var(--mcdash-text-muted);
  font-size: 0.8rem;
}

.mcdash-reason-list {
  flex: 1 1 auto;
  display: grid;
  align-content: space-evenly;
  gap: 0.75rem;
  padding: 0.55rem 1rem 1.2rem;
}

.mcdash-reason-row {
  display: grid;
  grid-template-columns: 1rem minmax(8rem, 1.15fr) minmax(8rem, 1.8fr) 2rem;
  align-items: center;
  gap: 0.6rem;
  color: var(--mcdash-text-mid);
  font-size: 0.68rem;
}

.mcdash-reason-rank {
  color: var(--mcdash-text);
  font-weight: 700;
}

.mcdash-reason-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcdash-reason-track {
  height: 1.2rem;
  background: none;
}

.mcdash-reason-track i {
  background: #258b49;
}

.mcdash-reason-row strong {
  color: var(--mcdash-text);
  font-size: 0.75rem;
}

.mcdash-side-stack {
  display: grid;
  height: 100%;
  min-width: 0;
  min-height: 0;
  gap: 0.85rem;
  grid-template-rows: auto minmax(0, 1fr);
}

.mcdash-alert-card {
  display: grid;
  min-height: 4.2rem;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border: 1px solid #f5c66f;
  border-radius: 0.5rem;
  background: linear-gradient(100deg, var(--mcdash-amber-soft), #fffdf8);
  box-shadow: 0 10px 22px rgba(25, 45, 32, 0.05);
}

.mcdash-alert-card > .material-symbols-outlined {
  color: var(--mcdash-amber);
  font-size: 2.4rem;
}

.mcdash-alert-card strong {
  color: var(--mcdash-amber);
  font-size: 1.8rem;
  font-weight: 800;
}

.mcdash-alert-card p {
  margin: 0;
  color: #6f4a0b;
  font-size: 0.75rem;
}

.mcdash-alert-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--mcdash-text);
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.mcdash-alert-card a .material-symbols-outlined {
  font-size: 0.9rem;
}

.mcdash-operation-grid {
  flex: 1 1 auto;
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.25rem 0.75rem 0.8rem;
}

.mcdash-operation {
  min-width: 0;
  padding: 0.75rem 0.65rem;
  border: 1px solid var(--mcdash-border);
  border-radius: 0.45rem;
  background: #fcfefd;
}

.mcdash-operation p,
.mcdash-operation strong,
.mcdash-operation small {
  margin: 0;
}

.mcdash-operation p {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
  color: var(--mcdash-text-mid);
  font-size: 0.58rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcdash-operation p .material-symbols-outlined {
  color: var(--mcdash-green);
  font-size: 0.85rem;
}

.mcdash-operation strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--mcdash-green-dark);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.mcdash-operation small {
  display: block;
  margin-top: 0.25rem;
  color: var(--mcdash-text-muted);
  font-size: 0.53rem;
}

.mcdash-empty {
  margin: 1rem;
  color: var(--mcdash-text-muted);
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  html.mcdash-scroll-locked,
  html.mcdash-scroll-locked body {
    height: auto;
    overflow: auto;
  }

  .mcdash-page {
    height: auto;
    min-height: calc(100dvh - var(--navbar-h, 40px) - var(--content-top-gap, 5px));
    overflow: visible;
  }

  .mcdash-shell,
  .mcdash-content {
    height: auto;
  }

  .mcdash-content {
    grid-template-rows: auto;
  }

  .mcdash-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mcdash-primary-grid,
  .mcdash-secondary-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }

  .mcdash-side-stack {
    grid-column: 1 / -1;
    grid-template-columns: minmax(18rem, 0.65fr) minmax(30rem, 1.35fr);
    grid-template-rows: auto;
  }
}

@media (max-width: 860px) {
  .mcdash-page {
    padding: 0.5rem;
  }

  .mcdash-primary-grid,
  .mcdash-secondary-grid,
  .mcdash-side-stack {
    grid-template-columns: 1fr;
  }

  .mcdash-side-stack {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .mcdash-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mcdash-kpi {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    padding: 0.8rem;
  }

  .mcdash-kpi-icon {
    width: 2.2rem;
    height: 2.2rem;
  }

  .mcdash-kpi-value {
    font-size: 1.55rem;
  }

  .mcdash-card-header {
    flex-direction: column;
  }

  .mcdash-office-row {
    grid-template-columns: 1rem minmax(6.5rem, 1fr) minmax(5rem, 1fr) 2.5rem;
  }

  .mcdash-office-row small {
    display: none;
  }

  .mcdash-scale {
    display: none;
  }

  .mcdash-reason-row {
    grid-template-columns: 1rem minmax(7rem, 1fr) minmax(5rem, 1fr) 1.8rem;
  }

  .mcdash-alert-card {
    grid-template-columns: auto auto 1fr;
  }

  .mcdash-alert-card a {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .mcdash-operation-grid {
    grid-template-columns: 1fr;
  }
}
