/* Custom overrides for official classification */
.section-official-classification {
  border: 1px solid #e6eef6;
  padding: 18px;
  background-color: #ffffff;
}

.official-classification-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0b2746;
  margin-bottom: 8px;
}

.official-classifications-row {
  display: flex;
  justify-content: center; /* center the three boxes */
  align-items: center;
  gap: 1rem;
}

.classification-box {
  flex: 1 1 0;
  min-width: 0;
  text-align: center; /* center text inside each box */
  padding: 8px 12px;
}

.classification-box .h6 {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0b2746;
}

.classification-box span.mt-2 {
  display: block;
  margin-top: 8px;
  color: #21475b;
}

@media (max-width: 767px) {
  .official-classifications-row {
    flex-direction: column;
    align-items: stretch;
  }

  .classification-box {
    text-align: center;
  }
}

/* Apply inverted colors for the official classification section when rendered in the dashboard
   Use the ID selector to ensure this overrides the default styles above. */
/* Stronger override: use more specific selector and !important to ensure this wins
   against other stylesheet rules or cached styles. */
#sectionOfficialClassification .card.card-body.section-official-classification,
#sectionOfficialClassification .section-official-classification {
  background: linear-gradient(to right, #496966 0, #425A5D 75%) !important;
  color: #ffffff !important;
  border: none !important;
}

/* Force text inside the section to be white and remove inner backgrounds that may be applied by other rules */
#sectionOfficialClassification .official-classification-title,
#sectionOfficialClassification .classification-box .h6,
#sectionOfficialClassification .classification-box span.mt-2,
#sectionOfficialClassification #OfficialClassificationLabel,
#sectionOfficialClassification #ReasonLabel,
#sectionOfficialClassification #DescriptionLabel,
#sectionOfficialClassification .media-body,
#sectionOfficialClassification a,
#sectionOfficialClassification .classification-box {
  color: #ffffff !important;
  background: transparent !important;
}

#sectionOfficialClassification a {
  text-decoration: underline !important;
}
