
.gd-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 16px;
  flex-wrap: wrap;
}
.gd-detail-toolbar[hidden] {
  display: none;
}
.gd-detail-toolbar > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gd-detail-toolbar button {
  border: 1px solid #d5e2ef;
  background: #fff;
  color: #36516c;
  padding: 10px 14px;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.gd-detail-toolbar [aria-pressed="true"] {
  background: #e9f1ff;
  border-color: #8ab4f8;
  color: #174db1;
}
.gd-chart-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.gd-chart-card {
  min-width: 0;
  border: 1px solid #e2e9f1;
  border-radius: 14px;
  background: #fff;
  padding: 22px;
}
.gd-chart-card > header {
  display: block !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  margin-bottom: 18px;
}
.gd-chart-card h3 {
  font-size: 17px;
  margin: 0 0 7px;
  color: #19334d;
}
.gd-chart-card header p {
  font-size: 12px;
  line-height: 1.6;
  color: #667c90;
  margin: 0 0 24px;
}
.gd-donut-layout {
  display: flex;
  gap: 24px;
  align-items: center;
  min-height: 220px;
}
.gd-ring {
  position: relative;
  width: 174px;
  flex: 0 0 174px;
}
.gd-ring svg {
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  display: block;
  overflow: visible;
}
.gd-ring > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
}
.gd-ring b {
  font-size: 25px;
  color: #153b57;
  max-width: 115px;
  overflow-wrap: anywhere;
  text-align: center;
}
.gd-ring small {
  font-size: 10px;
  color: #71869a;
}
.gd-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
  flex: 1;
  min-width: 0;
}
.gd-legend li {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
  font-size: 12px;
  color: #405a70;
}
.gd-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.gd-legend span {
  overflow-wrap: anywhere;
}
.gd-legend small {
  grid-column: 2/4;
  color: #7a8fa2;
  font-size: 11px;
}
.gd-column-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-top: 18px;
}
.gd-columns {
  display: grid;
  grid-template-columns: repeat(var(--gd-count), minmax(68px, 1fr));
  gap: 12px;
  min-width: 100%;
  width: max-content;
}
.gd-column {
  min-width: 68px;
  max-width: 125px;
  text-align: center;
}
.gd-column-track {
  height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 1px solid #b8cadd;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 44px,
    #edf2f7 44px,
    #edf2f7 45px
  );
}
.gd-column-track > div {
  position: relative;
  min-height: 0;
  width: 32px;
  border-radius: 5px 5px 0 0;
}
.gd-column-track b {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #274459;
  padding-bottom: 7px;
  white-space: nowrap;
}
.gd-column > span {
  display: block;
  font-size: 11px;
  color: #526d83;
  padding: 12px 2px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.gd-chart-unit {
  font-size: 11px;
  color: #8293a3;
  margin: 8px 0 0;
}
.gd-detail .gd-panel {
  padding: 22px !important;
}
.gd-chart-pair + .gd-note {
  margin-top: 18px;
}
@media (max-width: 1100px) {
  .gd-donut-layout {
    flex-direction: column;
    gap: 12px;
  }
  .gd-legend {
    width: 100%;
    max-height: 180px;
  }
}
@media (max-width: 650px) {
  .gd-chart-pair {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .gd-chart-card {
    padding: 18px;
  }
  .gd-detail .gd-panel {
    padding: 14px !important;
  }
  .gd-donut-layout {
    flex-direction: row;
    gap: 14px;
  }
  .gd-ring {
    width: 125px;
    flex-basis: 125px;
  }
  .gd-ring b {
    font-size: 20px;
    max-width: 85px;
  }
  .gd-legend {
    max-height: 220px;
  }
  .gd-detail-toolbar > div {
    width: 100%;
  }
  .gd-detail-toolbar > div button {
    flex: 1;
    padding: 10px 8px;
    font-size: 11px;
  }
  .gd-detail-toolbar {
    margin-top: 20px;
  }
  .gd-chart-card header p {
    margin-bottom: 18px;
  }
}
@media (max-width: 400px) {
  .gd-donut-layout {
    flex-direction: column;
  }
  .gd-legend {
    width: 100%;
  }
  .gd-ring {
    width: 145px;
    flex-basis: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gd-chart-card * {
    animation: none !important;
    transition: none !important;
  }
}
