#tabs-container {
  margin-top: 0.5rem;           /* Less top spacing */
  padding: 0;                   /* No inner padding */
  background: transparent;      /* No background */
  border-radius: 0;             /* No rounding */
  box-shadow: none;             /* No shadow/border */
}

#tabs-container .nav-tabs {
  border-bottom: none;
}

#tabs-container .nav-item {
  margin-bottom: -1px;
}

#tabs-container .nav-link {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 0.4rem 0.85rem;     /* 🔻 Reduced padding for height */
  margin-right: 0.25rem;
  border-bottom: none;
  border-radius: 0;
  font-weight: 500;
  font-size: 0.875rem;         /* 🔻 Slightly smaller text */
}

#tabs-container .nav-link.active {
  background-color: #fff;
  border: 1px solid #dee2e6;
  color: #212529;
  font-weight: 600;
  border-radius: 0;
}

div#block-ce-usertabsblock{
    margin-top: -13px;
}

/* Remove outer card styling when no-tab-border is used */
.no-tab-border .card {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Hide the duplicate label inside the CAPTCHA response field */
.form-item-captcha-response label {
  display: none;
}

/* Hide the inline description under the math input */
/* #edit-captcha-response--description {
  display: none;
} */

/* Hide the extra description outside the CAPTCHA fieldset */
.captcha__description {
  display: none;
}

/* Allow children to wrap and control order */
.form-item-captcha-response .input-group {
  flex-wrap: wrap;
  display: flex;
  align-items: flex-start;
}

/* Move the description above the input field */
#edit-captcha-response--description {
  order: -1;
  flex: 1 0 100%;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Optionally adjust spacing */
.input-group-prepend {
  margin-top: 0.25rem;
}
.input-group input[name="captcha_response"] {
  flex: unset !important;
  top: 4px;
}

