.search-result-bib-buttons > .search-result-bib-button {
    max-width:270px;
    flex: 1;
}
.ahml-search-hold div#edit-actions--4 {
  width: 100%;
}
.bib-items-mobile {
    display: none;
}
.underline {
  text-decoration: underline;
}
.item_separator {
  margin-bottom: 0px;
  margin-top: 12px;
}
.etitle-access, #check-partner-libraries {
  text-align: center;
  min-height: 41px;
}
.etitle-access {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  height: 41px;
}
.etitle-access-link {
  width: 100%;
  height: 41px;
  padding: 9px;
  margin-right: 10px;
}
.check-partner-libraries-container {
  width: 25%;
  /*margin-right: 18px;*/
}
.etitle-access-link, .check-partner-libraries-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-size: 16px;
  padding: 0 5px;
  border-radius: 4px;
  text-decoration: none !important;
}
.search-result-bib-buttons {
  display: flex;
}
p.holds-info {
  font-weight: bold;
  font-size: 1em !important;
}
div.search-result-bib-button {
  padding-left: 7px;
  padding-right: 7px;
}
div.while-you-wait-form.search-result-bib-button {
  padding-top: 0px;
  margin-left: 15px;
}
div[id^="while-you-wait-api-desktop-"] {
  visibility: visible;
}
div[id^="while-you-wait-api-mobile-"] {
  visibility: hidden;
}
.path-solr-search-page aside#primary-sidebar {
  background-color: #e7e7e7;
  /* This is overridden by padding below. */
  /* padding-bottom: 20px; */
  width: 350px;
  padding: 0px 20px 0px 10px; /* padding-bottom: 20 here? */
}
.solr-wrapper {
  display: flex;
  clear: both;
  gap: 30px;
}
section.results-area {
  flex: 1;
}
.search-result-basic-info a {
  color: #c03e35;
}
.filter-link-color {
  /* Filter to set to #337ab7, the color of hyperlinks */
  filter: invert(41%) sepia(8%) saturate(3801%) hue-rotate(166deg) brightness(102%) contrast(91%);
}
.search-results-navigation-arrow {
  height: 1em;
  vertical-align: text-top;
  margin-top: 1px;
}
.search-results .search-result-basic-info {
  background-color: #e3f0f7;
  padding-left: 15px;
  padding-right: 15px;
  color: #252525;
}
.search-results .panel-heading {
  background-color: #e3f0f7 !important;
  border-bottom: none !important;
}
.search-results .panel-heading::after {
  content: '';
  position: relative;
  display: block;
  width: 100%;
  border-bottom: 2px solid white;
}
.search-results .search-result-bib-buttons .bib-action-button .place-patron-hold-form .panel-heading {
  height: 41px;
  /*margin-left: 15px;*/
  padding-top: 0;
  padding-bottom: 0;
}
#facets-search-results-container .add_to_list_form .panel-body {
  padding: 5px 0px !important;
}
.add_to_list_form .select-wrapper select {
  padding-right: 5em;
}
.add_to_list_form .panel-heading,
.toggle_hold_trigger .panel-heading {
  padding: 0px 15px;
}
.add_to_list_form .panel-title,
.toggle_hold_trigger .panel-title {
  font-size: 16px !important;
  text-align: center;
}
.add_to_list_form .panel-heading::after,
.toggle_hold_trigger .panel-heading::after {
  border-bottom: none;
}
.path-solr-search-page .panel-heading {
  padding-top: 0px;
  padding-bottom: 0px;
}
.bib-items.table-responsive {
  /*max-height: 190px;*/
  overflow: hidden;
  width: 100%;
}
.search-results h1 {
  clear: both;
  font-size: 27px;
  margin-top: 0px;
  padding-top: 5px;
  color: #555 !important;
}

.search-results h2 {
  clear: both;
  font-size: 24px;
  border-top: 1px solid #ccc;
  margin-top: 15px;
  padding-top: 15px;
}

.search-results h3 {
  clear: both;
  font-size: 20px;
}
.search-results > .group_container {
  margin-top: 0px;
}
.search-result-container {
  display: grid;
  grid-template-columns: 0.5fr 3fr;
  gap: 15px;
  padding-bottom: 0px;
}
.no-padding {
  padding-left: 0px !important;
  margin-left: 0px !important;
}
div.search-result-container .cover-image {
  width: 150px !important;
  margin-top: 30px;
}
.status_check_provider {
  background-color: #b56200;
}
.search-result-status-container {
  width: 150px;
  float: none;
  text-align: center;
  padding: 10px 0 10px 0;
  margin-bottom: 0px;
}

.search-result-status-container a:hover,
.search-result-status-container a {
  font-size: 15px;
  color: white !important;
  font-weight: bold;
  font-family: 'GothamBook';
}

.status_available {
  background-color: #477487 !important;
}

.status_unavailable {
  background-color: rgb(192, 62, 53) !important;
}

.search-result-info {
  position: relative;
  margin-top: 20px;
}

.search-result-info table {
  min-width: 41%;
  max-width: 100%;
  width: unset;
}

.search-result-info table th,
.search-result-info table td {
  padding: 8px;
}

.search-result-info table td {
  border-top: 1px solid #ddd;
}

.bib-item-table tbody tr th {
  border: none !important;
}

.search-result-info table tr:nth-child(odd),
.search-result-info table tr:nth-child(even) {
  background-color: #fff;
}
/* SearchUtility.php is calling the first row of data as index 1, or "odd".
   But the <th> is technically the first child, and it needs to stay white. */
.table-striped > tbody > tr:nth-of-type(even),
.search-result-info table tr:nth-child(even) {
  /*background-color: #f9f9f9 !important;*/
  background-color: #fff !important;
}
.table-striped > tbody > tr:nth-of-type(odd),
.search-result-info table tr:nth-child(odd) {
  background-color: #fff !important;
}

.search-result-author,
.search-result-series,
.search-result-year {
  font-size: 18px;
}

div[id^="tabset-"] {
  background-color: #e3f0f7;
  margin-bottom: 20px;
  padding-top: 14px;
}

div[id^="tabset-"] > input[type="radio"] {
  position: absolute;
  left: -200vw;
}

div[id^="tabset-"] > label {
  position: relative;
  left: 224px;
}

div[id^="tabset-"] .tab-panel {
  display: none;
}

div[id^="tabset-"] > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
div[id^="tabset-"] > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2),
div[id^="tabset-"] > input:nth-child(5):checked ~ .tab-panels > .tab-panel:nth-child(3),
div[id^="tabset-"] > input:nth-child(7):checked ~ .tab-panels > .tab-panel:nth-child(4),
div[id^="tabset-"] > input:nth-child(9):checked ~ .tab-panels > .tab-panel:nth-child(5),
div[id^="tabset-"] > input:nth-child(11):checked ~ .tab-panels > .tab-panel:nth-child(6),
div[id^="tabset-"] > input:nth-child(13):checked ~ .tab-panels > .tab-panel:nth-child(7),
div[id^="tabset-"] > input:nth-child(15):checked ~ .tab-panels > .tab-panel:nth-child(8),
div[id^="tabset-"] > input:nth-child(17):checked ~ .tab-panels > .tab-panel:nth-child(9),
div[id^="tabset-"] > input:nth-child(19):checked ~ .tab-panels > .tab-panel:nth-child(10),
div[id^="tabset-"] > input:nth-child(21):checked ~ .tab-panels > .tab-panel:nth-child(11),
div[id^="tabset-"] > input:nth-child(23):checked ~ .tab-panels > .tab-panel:nth-child(12),
div[id^="tabset-"] > input:nth-child(25):checked ~ .tab-panels > .tab-panel:nth-child(13),
div[id^="tabset-"] > input:nth-child(27):checked ~ .tab-panels > .tab-panel:nth-child(14),
div[id^="tabset-"] > input:nth-child(29):checked ~ .tab-panels > .tab-panel:nth-child(15) {
  display: block;
}

div[id^="tabset-"] .tab-panels {
  background-color: white;
  padding-left: 15px;
}
/*
div[id^="tabset-"] > label {
  border-bottom: 0;
  cursor: pointer;
  font-weight: 300;
  font-size: 1.3em;
  padding: 10px 12px 10px 12px;
  margin: 10px 8px 0px 8px;
  border-top: 2px solid #c03e35;
  color: #395979;
}
*/
/* Alternative treatment */
div[id^="tabset-"] > label {
  border-bottom: 0;
  cursor: pointer;
  font-weight: 300;
  font-size: 1.3em;
  padding: 10px 12px 10px 12px;
  margin: 10px 3px 0px 3px;
  border-top: 1px solid #a1a1a1;
  color: #395979;
  border-right: 1px solid #a1a1a1;
  border-left: 1px solid #a1a1a1;
}

/*
div[id^="tabset-"] > label::after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 10px;
  width: 75%;
  height: 2px;
  background: none;
}
*/

input:focus-visible + label {
  outline: 2px solid rgba(0, 102, 204, 1);
  border-radius: 3px;
}

div[id^="tabset-"] > label:hover,
div[id^="tabset-"] > input:focus + label,
div[id^="tabset-"] > input:checked + label {
  color: #395979;
  /*border-top: 0;*/
  background-color: #fff;
}

div[id^="tabset-"] > label:hover::after,
div[id^="tabset-"] > input:focus + label::after,
div[id^="tabset-"] > input:checked + label::after {
  /*background: #b63c41;*/
}
/*
div[id^="tabset-"] > input:not(:checked) + label::before {
  content: '';
  position: relative;
  display: block;
  top: -10px;
  border-top: 2px solid #c03e35
}
*/
div[id^="tabset-"] > input:checked + label {
  border-color: #ccc;
  border-bottom: 1px solid #fff;
  background-color: #fff;
}
.format-icon {
  padding-right: 6px;
  padding-top: 2px;
  width: 34px;
  min-width: 30px;
}
.tab-panel {
  padding: 0px 0 0 0;
}
div#search-input-wrapper {
  margin-left: 20px;
  max-width: 810px;
}
.alternative-search {
  color: white;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: underline;
}
.alternative-search:active,
.alternative-search:focus,
.alternative-search:hover {
  color: white;
}
div#facets-search-results-container {
  display: flex;
  column-count: 2;
  flex-wrap: wrap;
  column-gap: 50px;
}
.results-container {
  width: 80%;
}
.facets-container {
  margin-top: 90px;
  padding: 0px !important;
}
.search-results .pager {
  flex-basis: 100%;
}
a.pager-link:hover {
  border-bottom: 1px solid #337ab7;
  text-decoration: none;
}
.catalog_bib_image {
  width: 150px;
  height: auto;
}
.row-tile .catalog_bib_image {
  width: 100px;
}
body:not(#reservation_create_form) .ui-dialog .ui-dialog-titlebar-close {
  height: 40px !important;
  width: 40px !important;
}
.facets-container label {
  display: block;
}

.facets-container select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 10px 10px 10px 15px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  max-width: 85%;
  width: 85%;
}

.facets-container select:disabled {
  background-color: #f0f0f0;
  cursor: not-allowed;
  border-color: #ddd;
}

.facets-container select:hover {
  border-color: #888;
}

.facets-container select:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.facets-container {
  input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-right: 8px; /* Adds space between checkbox and text */
  }

  /* Checked State */
  input[type="checkbox"]:checked {
    background-color: #007bff;
    border-color: #007bff;
  }

  /* Checkmark Icon */
  input[type="checkbox"]::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 5px;
    border: solid white;
    border-width: 0 0 2px 2px;
    transform: translate(-50%, -50%) rotate(-45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  /* Show checkmark when checked */
  input[type="checkbox"]:checked::before {
    opacity: 1;
  }

  /* Hover Effect */
  input[type="checkbox"]:hover {
    border-color: #888;
  }

  /* Focus Effect */
  input[type="checkbox"]:focus {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
  }

  /* Disabled State */
  input[type="checkbox"]:disabled {
    background-color: #f0f0f0;
    border-color: #ddd;
    cursor: not-allowed;
  }
  /* Ensure spacing inside the label */
  label {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between checkbox and text */
    cursor: pointer;
  }
  .checkbox input[type=checkbox] {
    margin: -2px 0px 0px -25px;
  }
  button#edit-submit {
    margin: 10px 0px 0px -5px;
    position: fixed;
    bottom: 0px;
    left: 175px;
    z-index: 50;
  }
}

.group_container {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 3px 3px !important;
  padding: 10px;
  border: 1px solid lightgrey;
  margin: 10px 0px;
}
/* Default: Show facets-container above 1024px */
.facets-dropdown {
  display: block; /* Ensures visibility */
}

.facets-toggle {
  display: none; /* Hide toggle button on large screens */
}
.search-results .search-result-bib-buttons .bib-action-button form.place-patron-hold-form .panel-heading,
.search-results .search-result-bib-buttons .bib-action-button form.place-patron-hold-form a {
  border-radius: 5px;
  color: #000 !important;
}
.tab-button svg {
  display: none;
}
.tab-header-row {
  display: none;
  background-color: #e3f0f7;
  padding-top: 20px;
  height: 70px;
}
.tab-header-row .tab-button:nth-child(1) {
  margin-left: 212px !important;
  margin-right: 8px;
}
.tab-header-row .tab-button {
  all: unset;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  font-weight: normal;
  border-bottom: 3px solid transparent;
  display: block;
}
.tab-header-row .tab-button[aria-expanded="true"] {
  font-weight: bold;
  background-color: #fff;
}
.tab-header-row .tab-button[aria-expanded="false"] {
  border-top: 1px solid #a7a7a7;
  border-right: 1px solid #a7a7a7;
  border-left: 1px solid #a7a7a7;
  margin: 0px 8px;
}
.format-tabs {
  overflow: hidden;
  background-color: #e3f0f7 !important;
}
.tab-button {
  width: 100%;
  padding: 1rem;
  background: #f8f8f8;
  border: none;
  text-align: left;
  font-weight: bold;
  border-bottom: none;
  cursor: pointer;
}
.tab-content {
  padding: 1rem 1rem 1rem 1.5rem;
  display: none;
  background-color: #fff;
}
.tab-button[aria-expanded="true"] + .tab-content {
  display: block;
}
.tab-button {
  position: relative;
  padding-right: 2rem; /* space for the caret */
}
.is-expanded .tab-button {
  padding: 1rem !important;
}
.caret-icon {
  display: none;
}
div#search-results {
  max-width: 100%;
}
.ui-dialog .search-results .search-result-bib-buttons form.ahml-search-hold a {
  font-weight: bold !important;
  font-size: 16px !important;
}
@media (max-width: 1400px) {
  .results-container {
    width: 100%;
  }
  div[id^="tabset-"] > label {
    left: 15px;
  }
}
@media (max-width: 1500px) and (min-width: 1300px) {
  .tab-header-row .tab-button:nth-child(1) {
    margin-left: 12px !important;
  }
  .tab-header-row .tab-button {
    white-space: nowrap;
  }
}
@media (max-width: 992px) and (min-width: 768px) {
  .col-md-9 {
    width: 100% !important;
  }
}
@media (max-width: 1500px) and (min-width: 768px) {
  .ui-dialog {
    width: 95% !important;
  }
  /*.search-results {*/
  /*  width: 100% !important;*/
  /*}*/
  .tab-header-row .tab-button:nth-child(1) {
    margin-left: 12px !important;
  }
  .tab-header-row .tab-button {
    white-space: nowrap;
    font-size: 10px;
  }
  .tab-header-row .tab-button:nth-child(1) {
    margin-left: 12px !important;
  }
  .search-results .search-result-bib-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .search-results .search-result-bib-buttons > div {
    flex-basis: 45%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .search-results .search-result-bib-buttons .bib-action-button a,
  .search-results .search-result-bib-buttons .search-result-bib-button a {
    font-size: 16px !important;
    text-align: center !important;
  }
  .search-results .search-result-bib-buttons form.ahml-search-hold a {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .search-results .search-result-bib-buttons form.place-patron-hold-form .panel-heading {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .search-results .search-result-bib-buttons form.place-patron-hold-form a {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
@media (min-width: 1025px) {
  .facets-container {
    display: block !important
  }
}
@media (max-width: 1500px) {
  #basic-search-wrapper .select-wrapper {
    display: block;
  }
  div#edit-basic-search-container {
    flex-direction: row;
    width: 98%; /* 100% - below percentage for div#search-input-wrapper */
  }
  /* This is 100% - the above percentage for div#edit-basic-search-container */
  div#search-input-wrapper {
    margin-left: 0;
    margin-top: 4px;
  }
  div.form-item-boolean-search-index-0 > div.select-wrapper {
    padding-inline-start: 0px;
  }
  .search-result-info .bib-items {
    width: 90%;
  }
  .search-result-info .bib-items .bib-item-table td {
    white-space: nowrap !important;
  }
}
@media (max-width: 1024px) and (min-width: 768px) {
  .search-results .tab-header-row .tab-button img {
    display: none;
  }
  .search-results .search-result-bib-buttons {
    flex-direction: column;
  }
  .search-results .search-result-bib-buttons > div {
    width: 50%;
  }
  .search-results .search-result-bib-buttons div div,
  .search-results .search-result-bib-buttons div > div.bib_place_hold {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 1024px) and (min-width: 300px) {
  .facets-container {
    display: none;
    position: absolute !important;
    left: 0;
    margin-top: 50px;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 1000;
  }

  .facets-toggle {
    display: block;
    cursor: pointer;
    padding: 10px;
    background: #000;
    color: white;
    text-align: center;
    font-weight: bold;
    border-radius: 1px;
    width: 100%;
    margin-top: 5px;
  }
}

@media (max-width: 767px) {
  .ui-dialog .search-results .search-result-bib-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .ui-dialog .search-results .search-result-bib-buttons .place-hold-form {
    padding: 0;
  }
  .bib-items-mobile {
    display: block;
  }
  .bib-item-table tr th:nth-child(1), .bib-item-table tr th:nth-child(4), .bib-item-table tr td:nth-child(1), .bib-item-table tr td:nth-child(4) {
    display: none;
  }
  .facets-container {
    button#edit-submit {
      margin: 10px 0px 0px -5px;
      position: fixed;
      bottom: 0px;
      left: 95px;
      z-index: 50;
      max-height: 36px;
      height: 36px;
      border-radius: 0px;
    }
  }
  .search-results .search-result-basic-info,
  #facets-search-results-container .panel-heading {
    padding-left: 5%;
    padding-right: 5%;
  }
  .tab-button svg {
    position: absolute;
    right: 10px;
  }
  .search-results .pager {
    flex-basis: 100%;
    margin-top: 0;
  }
  .pager {
    text-align: center !important;
  }
  .search-result-container {
    grid-template-columns: 1fr;
  }
  .search-result-container .search-result-info {
    width: 98%;
    overflow: hidden;
  }
  /* Removing on 8/26 so these are full width on mobile.
  .search-result-container .action-forms {
    max-width: 350px;
  }
  */
  .search-result-container .search-result-info .place-hold-form {
    width: 100%;
  }
  .show-all-toggle,
  .search-result-container .search-result-info .bib-items {
    display: none;
  }
  .search-results {
    padding: 0px !important;
  }
  .search-results-navigation-arrow {
    margin-top: 2px;
  }
  .search-result-info .search-result-bib-buttons {
    flex-wrap: wrap;
  }
  div.while-you-wait-form.search-result-bib-button {
    margin-left: 5px;
  }
  div[id^="while-you-wait-api-desktop-"] {
    visibility: hidden;
  }
  div[id^="while-you-wait-api-mobile-"] {
    visibility: visible;
  }
  .search-result-info .search-result-bib-buttons > * {
    flex: 51%;
    width: 100%; /*300px !important;*/
    /*margin-left: 15px !important; */
    padding: 0 !important;
    border-radius: 3px;
  }
  div.check-partner-libraries-container {
    margin-left: 5px;
    margin-right: 0px;
  }
  div.while-you-wait-form {
    margin-left: 5px;
  }
  .search-results .search-result-bib-buttons .bib-action-button .place-patron-hold-form .panel-heading {
    margin-left: 0;
  }
  .search-results .search-result-bib-buttons .bib-action-button a,
  .search-results .search-result-bib-buttons .search-result-bib-button a {
    font-size: 16px;
    text-align: center;
  }
  .search-results .search-result-bib-buttons .bib-action-button form.place-patron-hold-form {
    height: 41px;
  }
  .search-results .search-result-bib-buttons .bib-action-button form.place-patron-hold-form .panel-heading {
    padding-top: 0;
    padding-bottom: 0;
  }
  .ahml-search-hold .bib_place_hold a {
    margin-right: 0;
  }
  #check-partner-libraries {
    /*width: 320px !important;*/
    margin-bottom: 15px;
  }
  .search-result-bib-buttons .etitle-access.search-result-bib-button:first-child {
    margin-right: 0px;
  }
  div:has(> input.catalog-search-query) {
    height: 34px;
  }
  div[class*="form-item-boolean-search-index-"] {
    width: 100%;
  }
  div.form-item-boolean-search-index-0 {
    width: 75%;
  }
  div[class*="form-item-boolean-search-operator-"] {
    width: 55%;
  }
  select[id*="edit-boolean-search-index-"] {
    font-size: 0.8em;
  }
  select[id*="edit-boolean-search-operator-"] {
    font-size: 0.8em;
  }
  input[id*="edit-boolean-search-"].boolean-search-string {
    font-size: 0.8em;
  }
  button[id*="edit-remove-last"].remove-last-entry {
    margin-top: 8px;
  }
  .format-tabs {
    padding-top: 25px;
    background-image: linear-gradient(
      to bottom,
      #e3f0f7 0%,
      #e3f0f7 calc(100% - 150px),
      white calc(100% - 150px),
      white 100%
    );
  }

  /* Show the right-facing arrow when collapsed */
  .tab-button[aria-expanded="false"] .caret-collapsed {
    display: inline-block;
  }

  /* Show the down-facing arrow when expanded */
  .tab-button[aria-expanded="true"] .caret-expanded {
    display: inline-block;
  }

  /* Optional alignment styles */
  .accordion-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    vertical-align: middle;
  }
  .tab-item {
    position: relative;
  }

  .tab-item.is-expanded::before {
    content: "";
    position: absolute;
    top: 50px;
    height: 1px;
    background-color: grey;
    width: 5%;
    left: 0px;
  }

  .tab-item.is-expanded::after {
    content: "";
    position: absolute;
    top: 50px;
    height: 1px;
    background-color: gray;
    width: 5%;
    right: 0px;
  }
  .tab-button[aria-expanded="true"] {
    background-color: #fff;
    /*border-bottom: 1px solid grey;*/
    padding-bottom: 0;
  }
  .tab-button[aria-expanded="false"] {
    background: #e3f0f7;
    padding-bottom: 35px;
    /*border-bottom: 1px solid grey;*/
  }

  div.tab-item button.tab-button {
    margin-left: 5%;
    width: 90%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-width: 1px 1px 0px 1px;
    border-style: solid;
    border-color: grey;
  }
  div.format-tabs .tab-item:nth-child(2) {
    top: -25px;
    z-index: 11;
  }
  div.format-tabs .tab-item:nth-child(3) {
    top: -50px;
    z-index: 12;
  }
  div.format-tabs .tab-item:nth-child(4) {
    top: -75px;
    z-index: 13;
  }
  div.format-tabs .tab-item:nth-child(5) {
    top: -100px;
    z-index: 14;
  }
  div.format-tabs .tab-item:nth-child(6) {
    top: -125px;
    z-index: 15;
  }
  div.format-tabs .tab-item:nth-child(7) {
    top: -150px;
    z-index: 16;
  }
  div.format-tabs .tab-item:nth-child(8) {
    top: -175px;
    z-index: 17;
  }
  div.format-tabs .tab-item:nth-child(9) {
    top: -200px;
    z-index: 18;
  }
  div.format-tabs .tab-item:nth-child(2).tab-item:last-child {
    height: calc-size(auto, size -25px);
  }
  div.format-tabs .tab-item:nth-child(3).tab-item:last-child {
    height: calc-size(auto, size -50px);
  }
  div.format-tabs .tab-item:nth-child(4).tab-item:last-child {
    height: calc-size(auto, size -75px);
  }
  div.format-tabs .tab-item:nth-child(5).tab-item:last-child {
    height: calc-size(auto, size -100px);
  }
  div.format-tabs .tab-item:nth-child(6).tab-item:last-child {
    height: calc-size(auto, size -125px);
  }
  div.format-tabs .tab-item:nth-child(7).tab-item:last-child {
    height: calc-size(auto, size -150px);
  }
  div.format-tabs .tab-item:nth-child(8).tab-item:last-child {
    height: calc-size(auto, size -175px);
  }
  div.format-tabs .tab-item:nth-child(9).tab-item:last-child {
    height: calc-size(auto, size -200px);
  }

}

@media (max-width: 450px) {
  div[id^="tabset-"] > label {
    font-size: 12px;
    padding: 8px 10px 8px 10px;
    margin: 0 0 5px 0;
  }
  div[id^="tabset-"] > label::after {
    left: 8px;
    bottom: 7px;
    width: 75%;
  }
  div[id^="tabset-"] > label > img {
    width: 25px;
  }
  .search-result-container {
    width: 100%;
  }
  .search-result-container > .cover-image > a > img {
    width: 125px;
  }
  .search-result-container .action-forms {
    max-width: 250px;
  }
  .search-result-status-container {
    width: 125px;
  }
  div.check-partner-libraries-container {
    margin-left: 0px;
  }
  form.ahml-search-hold div#edit-actions--2 {
    margin-left: 0px;
  }
}

@media (max-width: 360px) {
  div[id^="tabset-"] > label {
    font-size: 12px;
    padding: 7px 10px 7px 10px;
    margin: 0 0 4px 0;
  }
  div[id^="tabset-"] > label::after {
    left: 7px;
    bottom: 5px;
    width: 78%;
  }
  div[id^="tabset-"] > label > img {
    width: 20px;
  }
  .search-result-container {
    width: 100%;
  }
  .search-result-container > .cover-image > a > img {
    width: 100px;
  }
  .search-result-container .action-forms {
    max-width: 150px;
  }
  .search-result-status-container {
    width: 100px;
  }
}

@media (min-width: 768px) {
  .tab-header-row {
    display: flex;
  }
  .format-tabs {
    border-top: none;
  }
  .format-tabs > .tab-item > .tab-button {
    display: none;
  }
  .tab-item {
    display: none;
  }
  .tab-item:has(.tab-button[aria-expanded="true"]) {
    display: block;
  }
}
