/* RegistrationStatistics details page styles */
.registration-statistics {
  /* styles can be updated here */
}

#searchCriteriaContent {
    border: none !important; /* remove any border, override site.css */
}

/* Ensure any ibox-content with this id also fully suppresses borders */
.ibox-content#searchCriteriaContent {
    border: none !important;
}

/* Remove excess space from parent containers */
#searchCriteria {
    margin-bottom: 0 !important;
}

#registrationStatisticsSearchCriteria .ibox-content,
#registrationStatisticsSearchCriteria .panel-body {
    margin-bottom: 0 !important;
}

/* Center the county dropdown and make its text bold */
select.form-control.centered-select {
    /* fixed width and centered - higher specificity to override Bootstrap */
    width: 200px !important;
    max-width: 200px !important; /* Also set max-width to enforce */
    margin-left: auto;
    margin-right: auto;
    font-weight: 700; /* bold text */
    display: block; /* ensure block display for margin centering */
}

/* Additional specificity for SelectCountyId dropdown */
select#SelectCountyId.form-control,
select[name="SelectCountyId"].form-control {
    width: 200px !important;
    max-width: 200px !important;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
    display: block;
}

/* Utility: center text */
.center-text {
    text-align: center;
}

/* Style h2 reporting period heading to look like h4 for accessibility compliance */
.ibox-content h2.center-text {
    font-size: 1em !important;
    font-weight: bold !important;
    margin-top: 0.5em !important;
    margin-bottom: 0.5em !important;
    line-height: 1.6 !important;
    padding-top: 0.3em !important;
    padding-bottom: 0.3em !important;
}

/* Set font-size for definition list terms and values */
.inline-defs dt,
.inline-defs dd {
    font-size: 14.3px;
}

/* --- County dropdown styling for Select2 --- */
/* Scope narrowly using the search criteria container id */
#registrationStatisticsSearchCriteria select.form-control.centered-select {
    width: 200px !important;
    max-width: 200px !important;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
    display: block;
}

/* Select2 container styling */
#registrationStatisticsSearchCriteria .select2-container {
    width: 200px !important;
    max-width: 200px !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Select2 selection box styling */
#registrationStatisticsSearchCriteria .select2-container--default .select2-selection--single {
    height: 34px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

#registrationStatisticsSearchCriteria .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
    color: #000;
    font-weight: 700;
    font-size: 14.3px;
    padding-left: 12px;
}

#registrationStatisticsSearchCriteria .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px;
    background-color: #f0f0f0;
    width: 32px;
    right: 0;
}

#registrationStatisticsSearchCriteria .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #777 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
}

/* Open/focus state */
#registrationStatisticsSearchCriteria .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow {
    background-color: rgb(2, 117, 216);
}

#registrationStatisticsSearchCriteria .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #fff transparent;
    border-width: 0 4px 5px 4px;
}

/* Dropdown menu styling */
/* Select2 dropdown is appended to body, so we target it directly with the custom class */
.select2-dropdown.county-select-dropdown .select2-results__options {
    max-height: 400px !important;
    overflow-y: auto;
}

/* Hover (highlighted) on an unselected option: grey background */
.select2-dropdown.county-select-dropdown .select2-results__option--highlighted[aria-selected=false] {
    background-color: #e0e0e0;
    color: #000;
}

/* Already-selected option: always blue, even when hovered */
.select2-dropdown.county-select-dropdown .select2-results__option[aria-selected=true],
.select2-dropdown.county-select-dropdown .select2-results__option--highlighted[aria-selected=true] {
    background-color: rgb(2, 117, 216);
    color: #fff;
}
