/* =========================================
   Publications Overview
   Full-width buttons, dropdowns, typography
   ========================================= */

/* -----------------------------------------
   TYPOGRAPHY — match paragraph sizing
   ----------------------------------------- */
/* Co-occurrence field labels (Gene / Disease) – match paragraph sizing */
#cooccurrence-pane label {
  font-size: var(--font-body);
  line-height: 1.4;
  display: inline-block;
  margin-bottom: .25rem;
}

/* Keep dropdown option text at the same scale */
.bootstrap-select.gv-select .dropdown-menu li a span.text {
  font-size: var(--font-body);
  line-height: 1.4;
}

/* -----------------------------------------
   Normalize horizontal alignment
   ----------------------------------------- */
.bootstrap-select.gv-select { margin-left: 0 !important; }
.static-container .btn { margin-left: 0; }

/* -----------------------------------------
   DROPDOWNS (bootstrap-select + ajax-bootstrap-select)
   Lock to fixed 641px width; do NOT force display state.
   ----------------------------------------- */

/* Margin above selects for label separation */
.gv-select { margin-top: 0.5rem; }

/* Caret polish to match other overview pages */
.bootstrap-select > .dropdown-toggle:after {
  margin-top: -1px;
  margin-left: -10px;
}

/* Consistent select trigger height (to match button tweak below) */
/* -----------------------------------------
   CO-OCCURRENCE: stack inputs full width on their own line
   ----------------------------------------- */
#cooccurrence-pane .form-row { display: block; }
#cooccurrence-pane .form-row .form-group {
  width: 100%;
  margin-right: 0 !important;
}

/* -----------------------------------------
   ACTION BUTTONS (Genes/Diseases/Co-occurrence)
   Align to 641px and add vertical rhythm
   ----------------------------------------- */
#pubGeneSubmit,
#pubDiseaseSubmit,
#coocSubmit,
#coocClear {
  line-height: 1.4;
  margin-left: 0px;
  margin-top: 0.5rem;        /* visual separation from selects */
  border-radius: 0.25rem;
}

/* Clear, Submit button should never inherit offsets */
#coocClear { margin-left: -5px !important; }
#coocSubmit { margin-left: -5px !important; }

/* Keep consistent spacing between stacked action buttons */
#coocSubmit + #coocClear,
#pubGeneSubmit + #pubDiseaseSubmit,
.static-container .btn + .btn { margin-top: .5rem; }

/* -----------------------------------------
   Co-occurrence labels – normalize weight
   ----------------------------------------- */
#cooccurrence-pane label {
  font-size: 1.15rem;   /* already consistent size */
  line-height: 1.5;
  font-weight: 300;     /* match normal paragraph weight */
  margin-bottom: .25rem;
}

/* -----------------------------------------
   Dropdown menu minimum width (pubs only)
   ----------------------------------------- */
#pubs-tabs-content .bootstrap-select .dropdown-menu {
  min-width: 280px !important;
}

#pubs-tabs-content .bootstrap-select .dropdown-menu.inner {
  min-width: 280px !important;
}

#pubs-tabs-content .bootstrap-select.show .dropdown-menu,
#pubs-tabs-content .bootstrap-select.open .dropdown-menu {
  min-width: 280px !important;
}

/* Publications Overview – prevent collapsed AJAX search box */
#pubDiseaseSelect + .bootstrap-select .bs-searchbox,
#coocDiseaseSelect + .bootstrap-select .bs-searchbox {
    min-width: 250px;
}

/* Ensure the dropdown panel honors the same width */
#pubDiseaseSelect + .bootstrap-select .dropdown-menu,
#coocDiseaseSelect + .bootstrap-select .dropdown-menu {
    min-width: 250px;
}

/* Co-occurrence Start With toggle: keep identical heights for active/inactive */
#cooccurrence-pane #coocStartGene,
#cooccurrence-pane #coocStartDisease,
#cooccurrence-pane #coocStartGene.active,
#cooccurrence-pane #coocStartDisease.active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 0.75rem;
    line-height: 1.2;
    border-width: 1px;
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
    vertical-align: middle;
}

/* Publications Overview: align spacing rhythm with other overview pages */
#pubs-tabs-content .tab-pane {
  padding-top: 0.25rem;
}

#alertPubGenes,
#alertPubDiseases,
#alertCooc {
  margin-top: 0.5rem;
  margin-bottom: 1rem !important;
}

#pubs-tabs-content .alert {
  padding: 1rem 1.25rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
