
/* Dashboard general: compact report layout, scoped away from the three applications. */
.gd-reference .gd-reference-filters {
  height: auto !important;
  align-self: start;
}
.gd-reference .gd-chart-card > header {
  min-height: 0 !important;
  height: auto !important;
}
.gd-reference .gd-trend text {
  stroke: none !important;
  stroke-width: 0 !important;
}
.gd-reference .gd-trend polygon {
  stroke: none !important;
}

#general-dashboard.gd-reference {
  max-width: 1720px;
  padding: 25px 26px;
  background: #fff;
  min-height: calc(100dvh - 76px);
  font-family: Arial, Helvetica, sans-serif;
  color: #10243f;
}
.gd-reference-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px;
}
.gd-reference-top > button {
  padding: 4px 0;
  min-height: 32px;
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #547194;
  font-weight: 500;
}
.gd-reference-label {
  font-size: 12px !important;
  letter-spacing: 0.4px !important;
  margin: 0 0 14px !important;
  color: #6f85a3;
  font-weight: 500;
}
.gd-reference .gd-actions button {
  min-height: 32px;
  font-size: 10px;
  padding: 7px 12px;
}
.gd-reference-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  background: #f0f4f8;
  border: 1px solid #dce5f1;
  border-radius: 10px;
  margin-bottom: 14px;
}
.gd-reference-tabs :is(button,a) {
  min-height: 36px;
  border: 0 !important;
  border-radius: 7px;
  background: transparent;
  color: #1a416c;
  font-size: 10px;
  letter-spacing: 0.3px;
  padding: 9px 8px;
}
.gd-reference-tabs :is(button,a)[aria-selected="true"] {
  background: #0d2038;
  color: white;
  box-shadow: 0 3px 9px #09203e33;
}
.gd-reference-layout {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.gd-reference-filters {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  gap: 13px !important;
  position: sticky;
  top: 14px;
  background: white !important;
  color: #203a5b !important;
  border: 1px solid #dae4f0 !important;
  border-radius: 12px !important;
  padding: 13px 11px !important;
  margin: 0 !important;
  box-shadow: 0 3px 12px #14396806;
  min-height: 0 !important;
}
.gd-reference-filters h2 {
  font-size: 11px;
  letter-spacing: 1.4px;
  color: #0796dc;
  margin: 0;
}
.gd-reference-filters label {
  min-width: 0 !important;
  flex: none !important;
  display: flex !important;
  font-size: 9px !important;
  gap: 6px !important;
  color: #6a7d98 !important;
  letter-spacing: 0.2px !important;
  font-weight: 700;
}
.gd-reference-filters input,
.gd-reference-filters select {
  min-height: 34px !important;
  height: 34px !important;
  background: white !important;
  font-size: 11px !important;
  padding: 7px !important;
  border-radius: 5px !important;
  color: #38577b !important;
}
.gd-reference-filters button {
  min-height: 30px !important;
  padding: 6px !important;
  font-size: 10px !important;
  border-radius: 5px !important;
}
.gd-reference-filters #gd-clear {
  border-style: dashed;
  background: transparent;
}
.gd-reference-filters p {
  font-size: 10px;
  color: #8595ac;
  line-height: 1.6;
  margin: 0;
}
.gd-reference-main {
  min-width: 0;
}
.gd-reference-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 31px;
  margin-bottom: 9px;
}
.gd-reference-heading h2 {
  font-size: 18px;
  letter-spacing: 1.1px;
  margin: 0;
  color: #10243f;
}
.gd-reference-heading > div {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.gd-period,
.gd-updated {
  border: 1px solid #dfe7f2;
  border-radius: 25px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.4;
  white-space: normal;
  color: #6e82a0;
}
.gd-period {
  font-weight: 700;
  color: #21364f;
}
.gd-score-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.gd-score {
  position: relative;
  background: linear-gradient(120deg, white, #f8faff);
  border: 1px solid #dce5f1;
  border-radius: 10px;
  padding: 12px 10px;
  min-height: 88px;
  min-width: 0;
}
.gd-score > span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.6;
  color: #6e80a0;
  padding-right: 20px;
  min-height: 28px;
  letter-spacing: 0.3px;
}
.gd-score i {
  font-style: normal;
  position: absolute;
  right: 8px;
  top: 10px;
  color: #2563eb;
  background: #eaf0ff;
  border-radius: 7px;
  padding: 3px;
  font-size: 15px;
}
.gd-reference .gd-score .gd-value {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 5px 0 0;
  color: #2762f4;
  overflow-wrap: anywhere;
}
.gd-score[data-tone="green"] .gd-value,
.gd-score[data-tone="green"] i {
  color: #13a249;
}
.gd-score[data-tone="green"] i {
  background: #ddf8e9;
}
.gd-score[data-tone="orange"] .gd-value,
.gd-score[data-tone="orange"] i {
  color: #e78a00;
}
.gd-score[data-tone="orange"] i {
  background: #fff0ce;
}
.gd-score[data-tone="purple"] .gd-value,
.gd-score[data-tone="purple"] i {
  color: #8657ef;
}
.gd-score[data-tone="purple"] i {
  background: #f1eaff;
}
.gd-reference-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 8px;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #8293aa;
}
.gd-reference-status .gd-badge {
  padding: 4px 7px;
  font-size: 9px;
  letter-spacing: 0;
}
.gd-reference-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  align-items: stretch;
}
.gd-reference .gd-chart-card {
  padding: 16px 14px;
  border-radius: 13px;
  box-shadow: 0 3px 12px #14396805;
}
.gd-reference .gd-chart-card > header {
  margin: 0 0 16px !important;
}
.gd-reference .gd-chart-card h3 {
  font-size: 13px;
  margin: 0 0 5px;
  color: #17253a;
  line-height: 1.35;
}
.gd-reference .gd-chart-card header p {
  font-size: 10px;
  margin: 0 !important;
  line-height: 1.5;
  color: #8a9bbb;
  min-height: 30px;
}
.gd-reference .gd-donut-layout {
  min-height: 226px;
  gap: 12px;
  flex-direction: column;
  justify-content: center;
}
.gd-reference .gd-ring {
  width: 152px;
  flex: 0 0 auto;
}
.gd-reference .gd-ring b {
  font-size: 23px;
}
.gd-reference .gd-ring small {
  font-size: 10px;
}
.gd-reference .gd-legend {
  width: 100%;
  max-height: 115px;
  flex: 0 1 auto;
}
.gd-reference .gd-legend li {
  grid-template-columns: 8px minmax(0, 1fr) auto auto;
  gap: 6px;
  padding: 7px 0;
  font-size: 10px;
}
.gd-reference .gd-legend small {
  grid-column: auto;
  font-size: 9px;
}
.gd-reference .gd-ranking {
  max-height: 300px;
  overflow-y: auto;
  padding: 3px 4px 6px 0;
  scrollbar-width: thin;
  scrollbar-color: #ccd7e5 transparent;
}
.gd-reference .gd-bars {
  gap: 17px;
}
.gd-reference .gd-bar-label {
  font-size: 10px;
  gap: 9px;
  line-height: 1.5;
  margin-bottom: 5px;
  align-items: center;
}
.gd-reference .gd-bar-label b {
  font-size: 10px;
  white-space: nowrap;
  color: #132e50;
}
.gd-reference .gd-track {
  height: 6px;
  background: #edf3f8;
}
.gd-reference .gd-track i {
  background: #13aa52;
}
.gd-trend {
  padding-top: 20px;
}
.gd-trend svg {
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  display: block;
  overflow: visible;
}
.gd-trend text {
  font-family: Arial, sans-serif;
  font-size: 9px;
  fill: #788ba4;
}
.gd-trend-key {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 9px;
  color: #647e9b;
  margin-top: 12px;
}
.gd-trend-key i {
  width: 8px;
  height: 8px;
  border: 2px solid #2869ff;
  background: #edf3ff;
}
.gd-reference-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.gd-followup,
.gd-alerts {
  border: 1px solid #dce5f1;
  border-radius: 13px;
  padding: 15px 14px;
  min-width: 0;
  background: white;
  box-shadow: 0 3px 12px #14396805;
}
.gd-followup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.gd-followup h3,
.gd-alerts h3 {
  margin: 0 0 4px;
  font-size: 13px;
  color: #152842;
}
.gd-followup-head p {
  font-size: 10px;
  color: #8a9bbb;
  margin: 0;
  line-height: 1.6;
}
.gd-followup-head input {
  width: 160px;
  max-width: 48%;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  font-size: 10px;
  background: white;
  color: #294a70;
}
.gd-reference .gd-table-wrap {
  max-height: 260px;
  overflow: auto;
}
.gd-reference .gd-table {
  font-size: 11px;
}
.gd-reference .gd-table th {
  font-size: 9px;
  padding: 7px 5px;
  background: #f6f9fd;
  position: sticky;
  top: 0;
}
.gd-reference .gd-table td {
  padding: 10px 5px;
}
.gd-table-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #dce5f1;
  padding: 12px 5px 0;
  color: #294b74;
  font-size: 11px;
  font-weight: 700;
}
.gd-alert-list {
  max-height: 290px;
  overflow: auto;
  padding-top: 8px;
}
.gd-alert-list > div {
  position: relative;
  margin-bottom: 8px;
  padding: 10px 10px 10px 23px;
  background: #f8faff;
  border: 1px solid #edf2f8;
  border-radius: 8px;
}
.gd-alert-list i {
  position: absolute;
  left: 9px;
  top: 14px;
  width: 6px;
  height: 6px;
  background: #4085e2;
  border-radius: 50%;
}
.gd-alert-list [data-type="warning"] i {
  background: #f59e0b;
}
.gd-alert-list [data-type="ok"] i {
  background: #11a55a;
}
.gd-alert-list strong {
  font-size: 10px;
  font-weight: 600;
  color: #526983;
  line-height: 1.6;
  display: block;
}
.gd-alert-list p {
  margin: 4px 0 0;
  color: #8b9db3;
  font-size: 10px;
  line-height: 1.5;
}
.gd-reference .gd-note {
  font-size: 10px;
  line-height: 1.7;
  margin-top: 14px;
}
.gd-reference .gd-foot {
  border-top: 1px solid #edf2f8;
  padding-top: 14px;
  margin-top: 20px;
}
.gd-connection-state {
  min-height: 190px;
  border: 1px dashed #dce5f1;
  border-radius: 12px;
  padding: 20px;
  background: #fbfcff;
}
@media (min-width: 1450px) {
  .gd-reference .gd-donut-layout {
    flex-direction: row;
  }
  .gd-reference .gd-legend {
    max-height: 210px;
    flex: 1;
  }
  .gd-reference .gd-legend li {
    grid-template-columns: 8px minmax(0, 1fr) auto;
  }
  .gd-reference .gd-legend small {
    grid-column: 2/4;
  }
}
@media (max-width: 1150px) {
  .gd-reference-layout {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .gd-reference-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gd-reference-charts > .gd-chart-card:last-child {
    grid-column: 1/-1;
  }
  .gd-reference .gd-trend {
    max-width: 480px;
    margin: auto;
  }
  .gd-score-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .gd-reference-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .gd-reference-heading > div {
    justify-content: flex-start;
  }
}
@media (max-width: 800px) {
  #general-dashboard.gd-reference {
    padding: 18px;
  }
  .gd-reference-layout {
    grid-template-columns: 1fr;
  }
  .gd-reference-filters {
    position: static;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px !important;
  }
  .gd-reference-filters h2 {
    grid-column: 1/-1;
  }
  .gd-reference-filters p {
    grid-column: 1/-1;
  }
  .gd-reference-filters input,
  .gd-reference-filters select {
    font-size: 12px !important;
    min-height: 40px !important;
    height: 40px !important;
  }
  .gd-reference-filters button {
    min-height: 40px !important;
  }
  .gd-reference-top {
    align-items: flex-start;
  }
  .gd-reference-top .gd-actions {
    margin: 0;
  }
  .gd-reference-top > button {
    max-width: 45%;
    text-align: left;
  }
  .gd-reference .gd-reference-tabs :is(button,a) {
    font-size: 9px;
    min-height: 44px;
  }
  .gd-reference-bottom {
    grid-template-columns: 1.5fr 1fr;
  }
  .gd-reference-heading {
    flex-direction: row;
    align-items: center;
  }
  .gd-reference-heading > div {
    justify-content: flex-end;
  }
  .gd-updated {
    font-size: 9px;
    max-width: 190px;
  }
  .gd-period {
    font-size: 9px;
  }
}
@media (max-width: 550px) {
  #general-dashboard.gd-reference {
    padding: 14px 12px;
  }
  .gd-reference-charts,
  .gd-reference-bottom {
    grid-template-columns: 1fr;
  }
  .gd-reference-charts > .gd-chart-card:last-child {
    grid-column: auto;
  }
  .gd-reference .gd-donut-layout {
    flex-direction: row;
    min-height: 185px;
    gap: 18px;
  }
  .gd-reference .gd-ring {
    width: 138px;
  }
  .gd-reference .gd-legend {
    flex: 1;
    max-height: 200px;
  }
  .gd-reference .gd-legend li {
    grid-template-columns: 8px minmax(0, 1fr) auto;
  }
  .gd-reference .gd-legend small {
    grid-column: 2/4;
  }
  .gd-score-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .gd-score {
    min-height: 78px;
    padding: 10px;
  }
  .gd-reference .gd-score .gd-value {
    font-size: 22px;
  }
  .gd-reference-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gd-reference-filters label:last-of-type {
    grid-column: 1/-1;
  }
  .gd-reference-filters input,
  .gd-reference-filters select,
  .gd-followup-head input {
    font-size: 16px !important;
  }
  .gd-reference .gd-trend {
    max-width: 360px;
    padding-top: 4px;
  }
  .gd-reference-heading {
    display: block;
  }
  .gd-reference-heading h2 {
    font-size: 17px;
    margin: 7px 0 10px;
  }
  .gd-reference-heading > div {
    justify-content: flex-start;
  }
  .gd-reference-top .gd-actions {
    gap: 5px;
  }
  .gd-reference-top .gd-actions button {
    padding: 7px 8px;
  }
  .gd-reference-top > button {
    font-size: 10px;
    max-width: 42%;
  }
  .gd-reference .gd-chart-card header p {
    min-height: 0;
  }
  .gd-reference .gd-chart-card {
    padding: 16px;
  }
  .gd-reference .gd-ranking {
    max-height: 245px;
  }
  .gd-reference .gd-bar-label {
    font-size: 11px;
  }
  .gd-reference-status > span {
    font-size: 8px;
  }
}
@media (max-width: 365px) {
  .gd-reference .gd-donut-layout {
    flex-direction: column;
  }
  .gd-reference .gd-legend {
    width: 100%;
    flex: auto;
    max-height: 160px;
  }
  .gd-reference .gd-legend li {
    grid-template-columns: 8px minmax(0, 1fr) auto auto;
  }
  .gd-reference .gd-legend small {
    grid-column: auto;
  }
}
