.nps-overview-source-hidden {
  display: none !important;
}

#nps-overview-root[hidden] {
  display: none !important;
}

.nps-overview-page {
  --nps-blue: #1464f4;
  --nps-navy: #061d43;
  --nps-green: #0b9f4a;
  --nps-gold: #f39a08;
  --nps-red: #ed172d;
  --nps-kpi-number-size: clamp(34px, 2.2vw, 40px);
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 20px 24px 28px;
}

.nps-overview-page.is-dragging::after {
  content: "Thả file Excel để cập nhật dữ liệu NPS";
  position: fixed;
  z-index: 120;
  inset: 84px 24px 24px;
  display: grid;
  place-items: center;
  color: var(--nps-blue);
  font-size: 18px;
  font-weight: 800;
  background: rgb(238 244 255 / 94%);
  border: 2px dashed #5681ff;
  border-radius: 22px;
  backdrop-filter: blur(8px);
}

.nps-ov-intro {
  margin-bottom: 14px;
}

.nps-ov-intro h1 {
  color: #10213d;
}

.nps-ov-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgb(22 45 82 / 7%);
}

.nps-ov-filter-group,
.nps-ov-date-group {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.nps-ov-field {
  display: grid;
  gap: 5px;
}

.nps-ov-field > span {
  color: #6f7f94;
  font-size: 10px;
  font-weight: 750;
}

.nps-ov-field select,
.nps-ov-field input,
.nps-ov-controls select,
.nps-ov-axis-metric select {
  height: 38px;
  color: #18375f;
  background: #fff;
  border: 1px solid #d4dfec;
  border-radius: 8px;
  outline: none;
  padding: 6px 34px 6px 10px;
  font-size: 11px;
  font-weight: 650;
}

.nps-ov-field select {
  min-width: 170px;
}

.nps-ov-field input {
  min-width: 136px;
  padding-right: 8px;
}

.nps-ov-field select:focus,
.nps-ov-field input:focus,
.nps-ov-controls select:focus,
.nps-ov-axis-metric select:focus {
  border-color: #6f99ff;
  box-shadow: 0 0 0 3px rgb(20 100 244 / 10%);
}

.nps-ov-date-arrow {
  align-self: center;
  color: #94a3b8;
  margin-top: 16px;
}

.nps-ov-updated {
  display: grid;
  gap: 2px;
  margin-left: auto;
  padding: 0 4px 4px;
  color: #8190a3;
  text-align: right;
  font-size: 9px;
}

.nps-ov-updated strong {
  color: #18375f;
  font-size: 10px;
}

.nps-ov-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(560px, 1fr);
  grid-template-rows: 150px 286px 340px;
  grid-template-areas:
    "kpis region"
    "trend region"
    "bars branch";
  align-items: stretch;
  gap: 10px;
}

.nps-ov-card,
.nps-ov-kpi {
  min-width: 0;
  background: #fff;
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgb(18 45 84 / 6%);
  overflow: hidden;
}

.nps-ov-kpi-grid {
  grid-area: kpis;
  display: grid;
  grid-template-columns: 1.55fr repeat(3, minmax(0, 1fr));
  gap: 8px;
  height: 150px;
}

.nps-ov-kpi {
  position: relative;
  height: 150px;
  min-height: 0;
  padding: 10px 11px 43px;
}

.nps-ov-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: currentColor;
}

.nps-ov-kpi.promoter {
  color: var(--nps-green);
}

.nps-ov-kpi.passive {
  color: var(--nps-gold);
}

.nps-ov-kpi.detractor {
  color: var(--nps-red);
}

.nps-score-card {
  color: var(--nps-blue);
  padding: 8px 9px;
}

.nps-ov-score-content {
  display: grid;
  grid-template-columns: clamp(116px, 7vw, 126px) minmax(0, 1fr);
  align-items: center;
  height: 100%;
  gap: 8px;
}

.nps-ov-donut {
  position: relative;
  width: clamp(116px, 7vw, 126px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#1371f6 calc(var(--nps-progress) * 1%), #9fcbff 0);
  transform: rotate(-90deg);
}

.nps-ov-donut::before {
  content: "";
  position: absolute;
  inset: 9px;
  background: #fff;
  border-radius: 50%;
}

.nps-ov-donut span,
.nps-ov-kpi-value {
  font-family: inherit;
  font-size: var(--nps-kpi-number-size);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.nps-ov-donut span {
  position: relative;
  color: #115ee8;
  transform: rotate(90deg);
}

.nps-ov-formula {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  height: 100%;
  min-width: 0;
}

.nps-ov-formula h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 1px 0 0;
  color: #06154b;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 750;
  line-height: 1.1;
}

.nps-ov-formula h2 span {
  font-size: clamp(11px, 0.8vw, 14px);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nps-ov-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  color: #1c2e4b;
}

.nps-ov-equation > span {
  display: grid;
  place-items: center;
  min-width: 0;
  text-align: center;
  white-space: normal;
  font-size: clamp(11px, 0.8vw, 14px);
  font-weight: 600;
  line-height: 1.22;
}

.nps-ov-equation b {
  font-size: inherit;
  font-weight: 650;
}

.nps-ov-equation i {
  color: #0a1737;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.nps-ov-kpi-heading {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nps-ov-kpi-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: none;
  place-items: center;
  color: currentColor;
  background: color-mix(in srgb, currentColor 10%, white);
  border-radius: 6px;
}

.nps-ov-kpi-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nps-score-card .nps-ov-kpi-icon {
  color: var(--nps-blue);
  background: #e9f2ff;
}

.nps-ov-kpi-heading h2 {
  margin: 0;
  color: currentColor;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 750;
  line-height: 1.1;
}

.nps-ov-kpi-heading p {
  margin: 0;
  color: #111827;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.nps-ov-kpi-value {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin-top: 0;
  color: currentColor;
  transform: translateY(6px);
}

.nps-metric-card.blue .nps-card-heading h2 {
  font-size: clamp(12px, 0.9vw, 14px);
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.evaluation-menu {
  contain: layout paint;
  transform: translateZ(0);
  will-change: top, left;
}

.nps-ov-kpi-volume {
  position: absolute;
  inset: auto 8px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 6px 9px;
  color: #15243d;
  background: color-mix(in srgb, currentColor 8%, white);
  border-radius: 8px;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 650;
}

.nps-score-card .nps-ov-kpi-volume {
  position: static;
  inset: auto;
  width: 100%;
  min-width: 0;
}

.nps-ov-kpi-volume b {
  color: currentColor;
  font-size: 16px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.nps-ov-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 8px 14px;
  border-bottom: 1px solid #e1e8f1;
}

.nps-ov-section-heading h2,
.nps-ov-table-card > h2 {
  margin: 0;
  color: #07194b;
  letter-spacing: 0.01em;
  font-size: 14px;
  font-weight: 840;
}

.nps-ov-chart-scroll {
  min-height: 235px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.nps-ov-bars-svg {
  display: block;
  width: 100%;
  min-width: 740px;
  height: 292px;
}

.nps-ov-chart-value,
.nps-ov-chart-label,
.nps-ov-bar-value,
.nps-ov-bar-label {
  text-anchor: middle;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 5px;
  stroke-linejoin: round;
  font-variant-numeric: tabular-nums;
}

.nps-ov-chart-value,
.nps-ov-bar-value {
  fill: #0a1740;
  font-size: 10.5px;
  font-weight: 700;
}

.nps-ov-chart-label,
.nps-ov-bar-label {
  fill: #0a1740;
  stroke-width: 3px;
  font-size: 12px;
  font-weight: 700;
}

.nps-ov-bars-heading {
  grid-area: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: center;
}

.nps-ov-axis-metric select {
  width: 100%;
  height: 34px;
  min-height: 34px;
  font-size: 11px;
}

.nps-ov-bars-scroll {
  height: 292px;
  min-height: 0;
}

#nps-overview-root .nps-ov-trend-card {
  grid-area: trend;
  width: 100%;
  height: 286px;
  min-height: 0;
  margin: 0;
}

.nps-ov-trend-card .overview-trends-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 8px 14px;
}

.nps-ov-trend-card .overview-trend-controls {
  display: grid;
  grid-template-columns: 94px 170px;
  gap: 6px;
  width: 270px;
}

.nps-ov-trend-card .overview-trend-controls select {
  height: 34px;
  min-height: 34px;
}

.nps-ov-trend-card .overview-trend-card,
.nps-ov-trend-card .overview-trend-plot {
  height: 238px;
  min-height: 0;
}

.nps-ov-trend-card .overview-trend-plot {
  padding: 0;
}

.nps-ov-trend-card .overview-trend-plot svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

#nps-overview-root .nps-ov-trend-card .overview-point-value,
#nps-overview-root .nps-ov-trend-card .overview-month-label {
  font-size: clamp(9px, 0.625vw, 12px);
}

.nps-ov-bars-card {
  grid-area: bars;
  height: 340px;
}

.nps-ov-zero-line {
  stroke: #d9e2ed;
  stroke-width: 1;
}

.nps-ov-bar-no-data {
  fill: #cbd5e1;
}

.nps-ov-table-card {
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
}

.nps-ov-table-card.region {
  grid-area: region;
  height: 446px;
}

.nps-ov-table-card.branch {
  grid-area: branch;
  height: 340px;
}

.nps-ov-table-card > h2 {
  padding: 12px 12px 8px;
  font-size: 14px;
}

.nps-ov-table-scroll {
  min-height: 0;
  padding-left: 8px;
  overflow: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.nps-ov-table-card.region .nps-ov-table-scroll {
  overflow-x: auto;
  overflow-y: auto;
}

.nps-ov-table-card table {
  width: 100%;
  min-width: 520px;
  table-layout: fixed;
  color: #0d1d3b;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11.5px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.nps-ov-table-card col.nps-ov-table-axis {
  width: 14%;
}

.nps-ov-table-card col.nps-ov-table-metric {
  width: 10.75%;
}

.nps-ov-table-card th,
.nps-ov-table-card td {
  height: 25px;
  padding: 3px 4px;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
  background: #fff;
  border-right: 1px solid #e0e7f0;
  border-bottom: 1px solid #e0e7f0;
}

.nps-ov-table-card thead th {
  position: sticky;
  z-index: 3;
  top: 0;
  color: #fff;
  text-align: center;
  background: #082653;
  font-size: 10px;
  font-weight: 750;
}

.nps-ov-sort-button {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.nps-ov-sort-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nps-ov-sort-button:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
}

.nps-ov-sort-indicator {
  flex: 0 0 auto;
  font-size: 8px;
  line-height: 1;
  opacity: 0.6;
}

.nps-ov-sort-button.is-active .nps-ov-sort-indicator {
  color: #93c5fd;
  opacity: 1;
}

.nps-ov-table-card tbody th {
  position: sticky;
  z-index: 2;
  left: 0;
  width: 68px;
  max-width: 68px;
  overflow: hidden;
  color: #0c1c3e;
  text-align: left;
  text-overflow: ellipsis;
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}

.nps-ov-table-card tbody tr.no-data th,
.nps-ov-table-card tbody tr.no-data td {
  color: #64748b;
  background: #fbfcfe;
}

.nps-ov-table-card thead th:first-child {
  z-index: 5;
  left: 0;
}

.nps-ov-table-card tbody tr:hover th,
.nps-ov-table-card tbody tr:hover td {
  background: #f4f7fc;
}

.nps-ov-table-card tbody tr:last-child th,
.nps-ov-table-card tbody tr:last-child td {
  border-bottom: 0;
}

.nps-ov-table-card th:last-child,
.nps-ov-table-card td:last-child {
  border-right: 0;
}

.nps-ov-table-card .nps-cell {
  color: #075ae8;
  font-weight: 750;
}

.nps-ov-table-card .detractor-cell {
  color: var(--nps-red);
  font-weight: 760;
}

.nps-ov-table-card .passive-cell {
  color: var(--nps-gold);
  font-weight: 760;
}

.nps-ov-table-card .promoter-cell {
  color: var(--nps-green);
  font-weight: 760;
}

.nps-ov-table-empty,
.nps-ov-empty-chart {
  color: #7e8c9e;
  text-align: center !important;
}

.nps-ov-empty-chart {
  display: grid;
  place-items: center;
  min-height: 235px;
  font-size: 12px;
}

.nps-ov-loading {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 40px;
  text-align: center;
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgb(22 45 82 / 7%);
}

.nps-ov-loading strong {
  color: #10213d;
  font-size: 18px;
}

.nps-ov-loading p {
  margin: -140px 0 0;
  color: #758398;
  font-size: 12px;
}

.nps-ov-loading .button {
  margin-top: -230px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1500px) {
  .nps-ov-dashboard {
    grid-template-columns: minmax(0, 1.5fr) minmax(540px, 1fr);
  }

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

  .nps-ov-score-content {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 8px;
  }

  .nps-ov-donut {
    width: 116px;
  }

}

@media (max-width: 1260px) {
  .nps-ov-dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: 150px 286px 340px 446px 340px;
    grid-template-areas:
      "kpis"
      "trend"
      "bars"
      "region"
      "branch";
  }
}

@media (max-width: 940px) {
  .nps-ov-dashboard {
    grid-template-rows: auto 286px 340px 446px 340px;
  }

  .nps-ov-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
  }

  .nps-score-card {
    grid-column: 1 / -1;
  }

  .nps-ov-score-content {
    grid-template-columns: 126px minmax(0, 1fr);
  }

  .nps-ov-donut {
    width: 126px;
  }

}

@media (max-width: 760px) {
  .nps-overview-page {
    padding-inline: 11px;
  }

  .nps-ov-kpi-grid {
    grid-template-columns: 1fr;
  }

  .nps-score-card {
    grid-column: auto;
  }

  .nps-ov-bars-heading {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .nps-ov-axis-metric {
    width: 100%;
  }

  .nps-ov-trend-card .overview-trends-header {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .nps-ov-trend-card .overview-trend-controls {
    grid-template-columns: minmax(86px, 0.7fr) minmax(150px, 1fr);
    width: 100%;
  }
}

@media (max-width: 520px) {
  .nps-overview-page {
    --nps-kpi-number-size: 32px;
  }

  .nps-ov-score-content {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .nps-ov-donut {
    width: 108px;
  }

  .nps-ov-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

}
