.demo-dashboard {
  color: var(--text, #172033);
}

.demo-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 0 18px;
}

.demo-dashboard-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: var(--muted, #637083);
  font-size: 12px;
}

.demo-dashboard-header h1 {
  margin: 0;
  color: #172033;
  font-size: 21px;
  line-height: 1.3;
}

.demo-dashboard-header p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted, #637083);
  font-size: 14px;
  line-height: 1.65;
}

.demo-dashboard-toolbar {
  display: flex;
  max-width: 670px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-dashboard-toolbar input,
.demo-dashboard-toolbar select,
.demo-dashboard-action {
  height: 38px;
  border: 1px solid var(--line, #d8e2ea);
  border-radius: 6px;
  background: #fff;
  color: #27364a;
  font: inherit;
}

.demo-dashboard-toolbar input {
  width: 190px;
  padding: 0 12px;
}

.demo-dashboard-toolbar select {
  min-width: 116px;
  padding: 0 30px 0 11px;
}

.demo-dashboard-toolbar input:focus,
.demo-dashboard-toolbar select:focus,
.demo-dashboard-action:focus-visible,
.demo-dashboard-project-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.16);
  outline-offset: 1px;
  border-color: #2563eb;
}

.demo-dashboard-mode {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #f2d7a6;
  border-radius: 6px;
  background: #fff9ed;
  color: #92550a;
  font-size: 12px;
  font-weight: 700;
}

.demo-dashboard-mode i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d97706;
}

.demo-dashboard-action {
  padding: 0 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.demo-dashboard-action:hover {
  border-color: #9fb0bf;
  background: #f7fafc;
}

.demo-dashboard-action.primary,
.demo-dashboard-export-button {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.demo-dashboard-action.primary:hover,
.demo-dashboard-export-button:hover {
  border-color: #0b5e58;
  background: #0b5e58;
}

.demo-dashboard-summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 13px;
  padding: 10px 14px;
  overflow: hidden;
  border: 1px solid var(--line, #d8e2ea);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 35, 55, 0.04);
}

.demo-dashboard-summary-counts {
  display: flex;
  align-items: center;
  gap: 17px;
}

.demo-dashboard-summary-counts > span,
.demo-dashboard-summary-meta {
  color: var(--muted, #637083);
  font-size: 12px;
}

.demo-dashboard-summary-counts strong {
  color: #27364a;
  font-size: 16px;
}

.demo-dashboard-summary .normal strong {
  color: #15803d;
}

.demo-dashboard-summary .attention strong {
  color: #b45309;
}

.demo-dashboard-summary .abnormal strong {
  color: #b91c1c;
}

.demo-dashboard-card-scroller {
  width: 100%;
  overflow: visible;
  padding: 2px 2px 14px;
}

.demo-dashboard-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.demo-dashboard-project-card {
  position: relative;
  display: flex;
  min-height: 292px;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line, #d8e2ea);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(20, 35, 55, 0.06));
  cursor: pointer;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.demo-dashboard-project-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #15803d;
  content: "";
}

.demo-dashboard-project-card.status-attention::before {
  background: #d97706;
}

.demo-dashboard-project-card.status-abnormal::before {
  background: #b91c1c;
}

.demo-dashboard-project-card:hover {
  border-color: #b9c8d4;
  box-shadow: 0 14px 32px rgba(20, 35, 55, 0.1);
  transform: translateY(-2px);
}

.demo-dashboard-project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px 11px 18px;
  border-bottom: 1px solid var(--line, #d8e2ea);
}

.demo-dashboard-project-head > div {
  min-width: 0;
}

.demo-dashboard-project-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.demo-dashboard-project-title h2 {
  min-width: 0;
}

.demo-dashboard-project-title h2 {
  margin: 0;
  color: #172033;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-dashboard-project-title span {
  padding: 0;
  border: 0;
  background: transparent;
  color: #637083;
  font-size: 14px;
  font-weight: 700;
}

.demo-dashboard-project-head p {
  margin: 3px 0 0;
  color: #7a8797;
  font-size: 16px;
}

.demo-dashboard-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 23px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
}

.demo-dashboard-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.demo-dashboard-status-normal {
  border-color: #bbebcb;
  background: #eefbf2;
  color: #15803d;
}

.demo-dashboard-status-attention {
  border-color: #f2d7a6;
  background: #fff9ed;
  color: #a15c08;
}

.demo-dashboard-status-abnormal {
  border-color: #f0c2c2;
  background: #fff2f2;
  color: #b91c1c;
}

.demo-dashboard-section {
  min-width: 0;
  margin: 0;
  padding: 0 12px;
  border-top: 0;
  border-left: 1px solid var(--line, #d8e2ea);
}

.demo-dashboard-project-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  padding: 13px 16px 11px 18px;
}

.demo-dashboard-project-body .demo-dashboard-section:first-child {
  padding-left: 0;
  border-left: 0;
}

.demo-dashboard-section-label {
  margin-bottom: 0;
  color: #637083;
  font-size: 15px;
  font-weight: 700;
}

.demo-dashboard-volume-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 6px;
}

.demo-dashboard-volume-row strong {
  color: #163b56;
  font-size: 29px;
  line-height: 1.1;
}

.demo-dashboard-volume-row.is-empty strong {
  font-size: 23px;
}

.demo-dashboard-volume-row span {
  color: #637083;
  font-size: 15px;
}

.demo-dashboard-volume-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted, #637083);
  font-size: 14px;
  line-height: 1.35;
}

.demo-dashboard-load-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  color: #6f7c8c;
  font-size: 14px;
}

.demo-dashboard-load-meta b {
  color: #31536e;
}

.demo-dashboard-load-track {
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 3px;
  background: #e8eef3;
}

.demo-dashboard-load-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
}

.demo-dashboard-load-track.is-empty span {
  width: 100% !important;
  background: repeating-linear-gradient(90deg, #dbe5eb 0 8px, #eef3f6 8px 16px);
}

.demo-dashboard-water small {
  display: block;
  margin-top: 8px;
  color: #83909e;
  font-size: 12px;
  line-height: 1.45;
}

.demo-dashboard-state-headline {
  display: block;
  margin-top: 8px;
  color: #27364a;
  font-size: 16px;
  line-height: 1.45;
}

.demo-dashboard-state-detail {
  display: -webkit-box;
  width: fit-content;
  max-width: 100%;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 4px;
  padding: 3px 6px;
  background: #eefbf2;
  color: #15803d;
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.demo-dashboard-state-detail.status-attention {
  background: #fff9ed;
  color: #a15c08;
}

.demo-dashboard-state-detail.status-abnormal {
  background: #fff2f2;
  color: #b91c1c;
}

.demo-dashboard-state-section ul,
.demo-dashboard-detail ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #586779;
  font-size: 12px;
  line-height: 1.6;
}

.demo-dashboard-business-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.demo-dashboard-business-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid #dce5ec;
  border-radius: 4px;
  background: #f7fafc;
  color: #637083;
  font-size: 12px;
}

.demo-dashboard-business-state strong {
  color: #3a4b5f;
}

.demo-dashboard-business-state.done {
  border-color: #c7ead2;
  background: #f1fbf4;
  color: #15803d;
}

.demo-dashboard-business-state.pending {
  border-color: #f0d9ad;
  background: #fffaf0;
  color: #a15c08;
}

.demo-dashboard-business-state.inactive {
  color: #67768a;
}

.demo-dashboard-project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 9px 16px 10px 18px;
  border-top: 1px solid #e7edf2;
  background: #fafcfd;
}

.demo-dashboard-link-button,
.demo-dashboard-export-button {
  min-height: 34px;
  border: 1px solid #cbd8e2;
  border-radius: 5px;
  padding: 0 9px;
  background: #fff;
  color: #31536e;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.demo-dashboard-link-button:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.demo-dashboard-export-button {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.demo-dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 2px 0;
  color: #7a8797;
  font-size: 12px;
}

.demo-dashboard-error,
.demo-dashboard-empty {
  padding: 14px 16px;
  border: 1px solid #f0c2c2;
  border-radius: 6px;
  background: #fff2f2;
  color: #9f2626;
  font-size: 13px;
}

.demo-dashboard-empty {
  min-width: 100%;
  border-color: #d8e2ea;
  background: #fff;
  color: #637083;
  text-align: center;
}

.demo-dashboard-detail-page {
  padding: 2px 0 24px;
}

.demo-dashboard-back {
  min-height: 36px;
  margin-bottom: 14px;
  border: 1px solid #cbd8e2;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: #31536e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.demo-dashboard-back:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.demo-dashboard-detail {
  width: 100%;
  border: 1px solid #cbd8e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(20, 35, 55, 0.06));
}

.demo-dashboard-detail > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 24px;
  border-bottom: 1px solid #d8e2ea;
  background: rgba(255, 255, 255, 0.97);
}

.demo-dashboard-detail h2,
.demo-dashboard-detail h3,
.demo-dashboard-detail p {
  margin: 0;
}

.demo-dashboard-detail h2 {
  font-size: 21px;
}

.demo-dashboard-detail header p {
  margin-top: 5px;
  color: #637083;
  font-size: 12px;
}

.demo-dashboard-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 24px 24px;
}

.demo-dashboard-detail-grid > section {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce5ec;
  border-radius: 7px;
  background: #fbfcfd;
}

.demo-dashboard-detail-grid > section.wide {
  grid-column: 1 / -1;
}

.demo-dashboard-detail h3 {
  margin-bottom: 11px;
  color: #27364a;
  font-size: 14px;
}

.demo-dashboard-detail-headline,
.demo-dashboard-detail section > p {
  color: #4e5d70;
  font-size: 12px;
  line-height: 1.65;
}

.demo-dashboard-detail dl {
  margin: 13px 0 0;
}

.demo-dashboard-detail dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #e5ebf0;
  color: #637083;
  font-size: 11px;
}

.demo-dashboard-detail dd {
  margin: 0;
  color: #27364a;
  font-weight: 700;
}

.demo-dashboard-metric-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.demo-dashboard-metric-list > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid #dce5ec;
  border-radius: 5px;
  background: #fff;
  color: #31536e;
  font-size: 12px;
}

.demo-dashboard-metric-list > span b {
  overflow: hidden;
  color: #637083;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-dashboard-metric-list > span.alert {
  border-color: #f0c2c2;
  background: #fff2f2;
  color: #b91c1c;
}

.demo-dashboard-detail > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid #d8e2ea;
  background: #f7fafc;
}

.demo-dashboard-detail > footer span {
  color: #637083;
  font-size: 11px;
}

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

@media (max-width: 1180px) {
  .demo-dashboard-header {
    flex-direction: column;
  }

  .demo-dashboard-toolbar {
    max-width: none;
    justify-content: flex-start;
  }

}

@media (max-width: 920px) {
  .demo-dashboard-card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .demo-dashboard-header h1 {
    font-size: 22px;
  }

  .demo-dashboard-toolbar {
    width: 100%;
  }

  .demo-dashboard-toolbar label,
  .demo-dashboard-toolbar input,
  .demo-dashboard-toolbar select {
    width: 100%;
  }

  .demo-dashboard-mode,
  .demo-dashboard-action {
    flex: 1 1 auto;
    justify-content: center;
  }

  .demo-dashboard-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-dashboard-summary-counts {
    justify-content: space-between;
    gap: 8px;
  }

  .demo-dashboard-card-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-dashboard-project-card {
    min-height: 292px;
  }

  .demo-dashboard-project-body {
    grid-template-columns: 1fr 1fr;
    row-gap: 13px;
  }

  .demo-dashboard-project-foot,
  .demo-dashboard-footer,
  .demo-dashboard-detail > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-dashboard-detail-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .demo-dashboard-detail-grid > section.wide {
    grid-column: auto;
  }

  .demo-dashboard-metric-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
