.xd-gv {
  position: relative;
  z-index: 35;
  width: 100%;
  max-width: 250px;
}

.xd-gv__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid #d8e6e1;
  border-radius: 5px;
  color: #24443d;
  background: #f1f7f4;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.15;
  cursor: pointer;
}

.xd-gv__toggle:hover,
.xd-gv__toggle[aria-expanded="true"] {
  border-color: #83b8a5;
  background: #e5f2ec;
}

.xd-gv__toggle-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xd-gv__toggle-count {
  flex: 0 0 auto;
  color: #63766f;
  font-weight: 600;
}

.xd-gv__toggle-chevron {
  flex: 0 0 auto;
  transition: transform .16s ease;
}

.xd-gv__toggle[aria-expanded="true"] .xd-gv__toggle-chevron {
  transform: rotate(180deg);
}

.xd-gv__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(340px, calc(100vw - 24px));
  padding: 13px;
  border: 1px solid #dce7e3;
  border-radius: 7px;
  color: #17352f;
  background: #fff;
  box-shadow: 0 12px 30px rgba(19, 49, 42, .18);
}

.xd-gv__panel[hidden],
.xd-gv__view[hidden] {
  display: none !important;
}

.xd-gv__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.xd-gv__heading {
  margin: 0;
  color: #17352f;
  font-size: 13px;
  font-weight: 800;
}

.xd-gv__date {
  display: block;
  margin-top: 3px;
  color: #667a73;
  font-size: 10px;
}

.xd-gv__refresh {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #e0e9e5;
  border-radius: 5px;
  color: #31584e;
  background: #f7faf8;
  cursor: pointer;
}

.xd-gv__refresh:disabled {
  cursor: wait;
  opacity: .55;
}

.xd-gv__tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 0 0 11px;
  padding: 3px;
  border-radius: 5px;
  background: #edf3f0;
}

.xd-gv__tab {
  position: relative;
  z-index: 2;
  min-height: 30px;
  border: 0;
  border-radius: 4px;
  color: #4c635b;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
}

.xd-gv [data-gv-content] {
  pointer-events: none;
}

.xd-gv [data-gv-content] .xd-gv__tab {
  pointer-events: auto !important;
}

.xd-gv__tab[aria-pressed="true"] {
  color: #115c4c;
  background: #fff;
  box-shadow: 0 1px 3px rgba(23, 53, 47, .12);
}

.xd-gv__totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.xd-gv__total {
  min-width: 0;
  padding: 9px;
  border-radius: 5px;
  background: #f5f8f6;
}

.xd-gv__total-label,
.xd-gv__total-value {
  display: block;
}

.xd-gv__total-label {
  color: #687b74;
  font-size: 10px;
}

.xd-gv__total-value {
  margin-top: 4px;
  color: #17352f;
  font-size: 15px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.xd-gv__rows {
  display: grid;
  gap: 0;
}

.xd-gv__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 10px;
  padding: 8px 1px;
  border-top: 1px solid #edf1ef;
  font-size: 11px;
}

.xd-gv__row-label {
  color: #405950;
}

.xd-gv__row-count {
  color: #74837d;
  font-variant-numeric: tabular-nums;
}

.xd-gv__row-value {
  min-width: 68px;
  color: #17352f;
  font-weight: 750;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.xd-gv__note,
.xd-gv__state {
  margin: 9px 0 0;
  color: #6b7d76;
  font-size: 10px;
  line-height: 1.4;
}

.xd-gv__state[data-state="error"] {
  color: #9c3027;
}

.xd-gv__locked {
  padding: 11px;
  border-left: 3px solid #d7913f;
  color: #704216;
  background: #fff8ed;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .xd-gv {
    max-width: min(240px, 68vw);
  }

  .xd-gv__panel {
    left: 0;
    width: min(330px, calc(100vw - 24px));
  }
}