:root {
    /* Set this to the height of that annoying global header */
    --hello: 115px; 
}table {
    margin-bottom: 20px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    vertical-align: middle;
}

th {
    /*padding: 5px;*/
    background-color: black;
    /*vertical-align: middle;*/
    color: white;
}

tr:nth-child(even) {
    background-color: #ECF0F1;
}

td {
    padding: 10px;
}

td:nth-child(2) {
    text-align: center;
}

td:nth-child(3) {
    text-align: center;
}

.integrated-search {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    width: 100%;
}

.integrated-search .btn {
    border-radius: 0;
    height: 100%;
}

.expand_btn{
    color: #fff !important;
    font-size: 1em;
    position: relative;
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: center;
    column-gap: 0.3rem;
}

.expand_btn:after {
    content: '';
    display: block;
    width: 1rem;
    height: 0.5rem;
    background-image: url(../images/icon_arrow3.svg);
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease-in-out;
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(137deg) brightness(103%) contrast(101%);
}

.expand_btn.active:after{
    transform: rotate(180deg);
}
.test {
    position: sticky;
    top:115px;
    background-color: #f5f5f5;
        z-index: 4100;
}
.custom-search-container {
    display: flex;

    justify-content: space-between;
    align-items: center;
    height: auto;
    box-shadow: none;
    position: sticky;
    
    left: 0;
    right: 0;
    /* background-color: white; */
    padding: 0;


    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    padding-top: 21px;
}
/* tablet and up */
@media (min-width: 992px) {
  .test {
    top: 179px;
  }
}
.custom-search-inner {
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

.custom-search-input {
    border-radius: 0;
    font-size: 1em;
    padding: 12px 20px;
    outline: none;

    box-shadow: none;
    width: 100%;
    border: 2px solid #ccc;
}

.custom-search-button,
.custom-reset-button {
    vertical-align: middle;
    height: 100%;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;
    padding: 8px 24px;
    color: white;
    border: none;
    margin: 0;
    border-radius: 0;
    cursor: pointer;
    font-size: 1em;
    border-radius: 0px;
    transition: background-color 0.3s;
}

.custom-button-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.custom-search-button {
    background-color: #3A833D;
}

.custom-reset-button {
    background-color: #DA3125;
}

.stickysection-header {
    position: sticky;
    z-index: 4000;
    /* above content, below search box */
    background-color: white;
    /* use white to block background content*/
    margin: 0px 0;
    /* keep border */
    padding: 10px 0;
    /* keep inner space */
    /* inherit H2 */
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    /* ensure not be cut */
    width: 100%;
    box-sizing: border-box;
}

table.stickytable th {
    position: sticky;
    z-index: 2000;
    vertical-align: middle;
}

.fieldset_big_group {
    background-color: #f5f5f5;
    padding: 12px;
    /* margin-top: 12px; */
}

.fieldset_group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 10px;
}

.fieldset_big_group .all_ans {
    grid-column: 1 / -1;
}

.ans_group {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: center;
    column-gap: 10px;
}

.ans_group label {
    margin-bottom: 0;
}

.ans_group label:hover {
    cursor: pointer;
}

.ans_group input:hover {
    cursor: pointer;
}

.mainContent .chosen_list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.mainContent .chosen_list>li {
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0.3rem;
    /* display: flex; */
}

.search_input_wrapper {
    position: relative;
}

.dropdown_box {
    position: absolute;
    background-color: #fff;
    z-index: 50;
    top: calc(100% + 1px);
    -webkit-box-shadow: 0px 4px 15px 5px rgba(251, 117, 255, 0.37);
    box-shadow: 0px 4px 15px 5px rgba(251, 117, 255, 0.37);
    max-height: 20rem;
    overflow-y: auto;
    width: 100%;
    display: none;
}

.dropdown_box.open {
    display: block;
}

.dropdown_box ul {
    display: block;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.dropdown_box ul>li {
    margin: 0;
}

.dropdown_box ul>li:not(:last-child) {
    border-bottom: 1px solid #ddd;
}

.dropdown_list button {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    padding-left: 1.2rem;
    border: 0;
    background-color: transparent;
    width: 100%;
    text-align: left;
    border-radius: 0;
}

.dropdown_list button:hover,
.dropdown_list button:focus {
    background-color: #f5f5f5;
}

.dropdown_box .highlight1 {
    color: #1E486E;
    font-weight: bold;
}

.dropdown_box .highlight2 {
    color: #d44206;
}

.dropdown_box .highlight3 {
    color: #737373;
}

.sort_big_wrapper {
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
}

.sort_control {
    display: flex;
}

.sort_control button {
    color: #000;
    font-size: 0;
    border: 0;
    background-color: transparent;
    width: 1rem;
    height: 1rem;
    padding: 0;
}

.sort_control :where(.up_btn, .down_btn):not(.active) {
    display: none;
}

.sort_control :where(.up_btn, .down_btn):before {
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    background-image: url('../images/icon_arrow2.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(137deg) brightness(103%) contrast(101%);

}

.sort_control .down_btn:before {
    transform: rotate(180deg);
}

.toggle_wrapper{
    transition: all 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.toggle_wrapper.expanded{
     max-height: 250px;
     opacity: 1;
     overflow: auto;
}


@media(max-width:992px) {
    .fieldset_group {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    }
}

@media(max-width:992px) {
    .integrated-search {
        grid-template-columns: max-content 1fr;
    }

    .custom-button-group{
        grid-column: 1 / -1;
    }
    .mainContent .chosen_list>li {
        display: block;
        font-size: 0.85rem;
    }
}
.search-highlight {
  background-color: yellow;
  font-weight: bold;
}
.warn {
  color: red;
  font-weight: bold;
}
.label_wrap {
  user-select: none;   /* prevent text selection */
  -webkit-user-select: none; /* Safari/Chrome */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* old IE/Edge */
  cursor: pointer;     /* makes it feel clickable */
}
.greyed,
.greyed * {
  color: navy !important;
  font-weight: bold;
  pointer-events: none; /* makes them non-clickable */
  text-decoration: none; /* optional: remove underline */
}
.w50{
    width:50%;
    height:50px;
    font-size: x-large
}
.w30{
    width:30%;
    height:50px;
    font-size: x-large
}
.w20{
    width:20%;
    height:50px;
    font-size: x-large
}
.jcenter{
    justify-content: center
}
.big-checks input[type="checkbox"] {
  width: 30px;
  height: 30px;
  /* transform: scale(1.5); scales the checkbox itself */
  /* margin-right: 6px; */
}
.sticky-block h2 {
  position: sticky;
  /* top:319px; */
  top: calc(var(--search-container-height) + 110px);
  background: #fff;
  padding: 5px 0;   /* spacing inside, background covers it */
  margin: 0 !important;  
}
@media (min-width: 992px) {
.sticky-block h2 {
  position: sticky;
  /* top:350px; */
  top: calc(var(--search-container-height) + 155px);
  background: #fff;
  padding: 25px 0;   /* spacing inside, background covers it */
  margin: 0 !important;  
}
.sticky-block table {
margin:0;
}
.sticky-block thead {
  position: sticky;
  margin:-1px;
  /* top:405px; h2 height */
  top: calc(var(--search-container-height) + 205px);
}}
/* default: normal table */
.responsive {
  width: 100%;
  border-collapse: collapse;
}
.responsive th,
.responsive td {
    align-content: center;
  border: 1px solid #ccc;
  padding: 8px;
}
/* small screens: card style */
@media (max-width: 992px) {
  .responsive thead {
    display: none; /* hide header row */
  }
  .responsive tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem;
  }
  .responsive td {
    display: block;
    justify-content: space-between;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 6px 0;
    text-align: left;
  }
  .responsive td:last-child {
    border-bottom: none;
  }
  .responsive td::before {
  content: attr(data-label);
  display: block;           /* forces it onto its own line */
  font-weight: bold;
  color: #333;
  margin-bottom: 0.25em;    /* space between header and value */
}
}