/* Digital Health Solutions — clean, light layout per DHD approved concepts. */

.dhs-section {
  background: #fff;
}

/* --- Status tabs --- */
.dhs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.dhs-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0.6rem 1.25rem;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  color: #223a66;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dhs-tab:hover,
.dhs-tab:focus {
  border-color: #223a66;
  color: #223a66;
  background: #f5f8fd;
  text-decoration: none;
}

.dhs-tab.active {
  background: #e8f0fc;
  border-color: #223a66;
  color: #223a66;
}

/* --- Headings --- */
.dhs-heading {
  color: #223a66;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.dhs-heading:not(:first-of-type) {
  margin-top: 3rem;
}

.dhs-intro {
  color: #5b6b85;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.dhs-empty {
  padding: 2rem;
  border: 1px dashed #dbe3ee;
  border-radius: 10px;
  color: #6b7a90;
  text-align: center;
}

/* --- System cards --- */
.dhs-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem 1.5rem;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dhs-card:hover {
  border-color: #b9cbe6;
  box-shadow: 0 8px 20px rgba(34, 58, 102, 0.08);
}

.dhs-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.dhs-card-title {
  color: #223a66;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.dhs-card-desc {
  color: #5b6b85;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* --- Status badges --- */
.dhs-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.dhs-badge-success {
  background: #e3f5ea;
  color: #1c6b3f;
}

.dhs-badge-info {
  background: #e4eefc;
  color: #23528f;
}

.dhs-badge-warning {
  background: #fdeed8;
  color: #90591b;
}

.dhs-badge-secondary {
  background: #e9edf3;
  color: #4c5a70;
}

/* --- Card meta --- */
.dhs-meta {
  margin: 0 0 1rem;
}

.dhs-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.7;
}

.dhs-meta-row dt {
  color: #6b7a90;
  font-weight: 500;
}

.dhs-meta-row dd {
  color: #3f4d63;
  margin: 0;
}

/* --- Card actions --- */
.dhs-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.dhs-link {
  color: #1a5fb4;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
}

.dhs-link:hover,
.dhs-link:focus {
  color: #12467f;
}

.dhs-link-divider {
  color: #c3cede;
}

/* --- Legend --- */
.dhs-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef2f7;
  font-size: 0.85rem;
  color: #5b6b85;
}

.dhs-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dhs-legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

/* --- Breadcrumb --- */
.dhs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.88rem;
  color: #8894a8;
}

.dhs-breadcrumb a {
  color: #1a5fb4;
  text-decoration: underline;
}

.dhs-breadcrumb .current {
  color: #6b7a90;
}

/* --- Modules summary --- */
.dhs-summary {
  margin-bottom: 2.5rem;
}

.dhs-summary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
}

.dhs-summary-number {
  color: #223a66;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.dhs-summary-label {
  color: #6b7a90;
  font-size: 0.9rem;
}

/* --- Modules tables --- */
.dhs-table-wrap {
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  overflow: auto;
}

.dhs-table {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.dhs-table thead th {
  background: #f4f7fb;
  color: #223a66;
  font-weight: 600;
  font-size: 0.85rem;
  border-bottom: 1px solid #dbe3ee;
  white-space: nowrap;
  padding: 0.75rem 1rem;
}

.dhs-table tbody td,
.dhs-table tbody th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
  font-weight: 400;
}

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

.dhs-module-name {
  color: #223a66;
  font-weight: 600 !important;
  white-space: nowrap;
}

.dhs-module-coverage {
  color: #5b6b85;
  min-width: 260px;
}

.dhs-back {
  margin-top: 2rem;
}

/* --- Implementing Partners --- */
.dhs-partners {
  background: #f8fafc;
  border-top: 1px solid #eef2f7;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.dhs-partners-title {
  color: #223a66;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.dhs-partners-subtitle {
  color: #5b6b85;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.dhs-partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  padding: 0.75rem;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
}

.dhs-partner-logo {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.dhs-partner-name {
  color: #6b7a90;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
  .dhs-tab {
    flex: 1 1 45%;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
  }

  .dhs-heading {
    font-size: 1.35rem;
  }

  .dhs-card {
    padding: 1.15rem 1.25rem;
  }

  .dhs-card-head {
    flex-direction: column;
    gap: 0.5rem;
  }

  .dhs-legend {
    gap: 0.75rem 1.25rem;
  }
}
