/* Alert / danger state — superseded by .usa-alert--error */
.bootstrap-select .hidden {
  display: none;
}

.danger {
  color: #1b1b1b;
  background-color: var(--error-lighter, #f4e3db);
  border-left: 0.5rem solid var(--error, #d54309);
}

.alert.danger a {
  color: var(--error-dark, #b50909);
}

.alert.danger a:hover {
  color: var(--error-darker, #6f3331);
}

/* Station accordion card header */
.card-header {
  background-color: var(--color-blue-pale);
  border: 1px solid #a0bddd;
  border-radius: 4px;
  padding: 10px 15px;
}

.card-header .caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 10px;
  vertical-align: middle;
  border-top: 8px solid;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  transition: transform 0.3s ease;
}

.card-header button[aria-expanded="true"] .caret {
  transform: rotate(0deg);
}

.card-header button[aria-expanded="false"] .caret {
  transform: rotate(-90deg);
}

/* Responsive parameters table */
.table-parameters-responsive th,
.table-parameters-responsive td {
  padding: 0.3rem 0.5rem;
  font-size: 0.875rem;
}

.table-parameters-responsive thead tr {
  border-top: 1px solid #dee2e6;
  border-bottom: 2px solid #adb5bd;
}

.table-parameters-responsive th {
  border: none;
}

.table-parameters-responsive td {
  border-top: 1px solid #adb5bd;
  border-bottom: none;
}

.table-parameters-responsive tbody tr:last-child td {
  border-bottom: 1px solid #adb5bd;
}

@media (max-width: 600px) {
  .table-parameters-responsive thead {
    display: none;
  }

  .table-parameters-responsive tr {
    display: block;
    border-top: 2px solid #adb5bd;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0.4rem;
    padding: 0.25rem 0;
  }

  .table-parameters-responsive td {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-top: 1px solid #dee2e6;
    border-bottom: none;
    text-align: left;
    font-size: 0.875rem;
  }

  .table-parameters-responsive td:first-child {
    border-top: none;
  }

  .table-parameters-responsive td::before {
    content: attr(data-label);
    font-weight: 600;
    flex-shrink: 0;
    min-width: 8rem;
    color: #6c757d;
  }
}

/* Technical notes */
.active-note {
  background-color: var(--color-blue-light);
  border: solid;
  border-radius: 8px;
  border-color: #a4c2e3;
  padding: 2px 30px 2px 5px;
}

.active-note .btn-outline-secondary {
  background-color: #fff;
  color: #6c757d;
  border-color: #6c757d;
}

.active-note .btn-outline-secondary:hover,
.active-note .btn-outline-secondary:focus {
  background-color: #6c757d;
  color: #fff;
  border-color: #6c757d;
}

#techNotesLinks a[href$=".txt" i]::after {
  font-family: "Material Icons";
  content: "\ef42";
  margin-left: 0.25em;
}

#techNotesLinks a[href$=".pdf" i]::after {
  font-family: "Material Icons";
  content: "\e415";
  margin-left: 0.25em;
}

#techNotesLinks a[href$=".png" i]::after {
  font-family: "Material Icons";
  content: "\e413";
  margin-left: 0.25em;
}

/* Station tab styles */
.nav-tabs .nav-link {
  min-width: 8.5%;
  text-align: center;
  border-color: var(--color-blue-light);
  border-top: 4px solid var(--color-blue-light);
}
.nav-tabs {
  padding-left: 10px !important;
  padding-right: 10px !important;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  border-color: var(--color-navy) var(--color-navy) white var(--color-navy);
  background-color: var(--color-blue-light);
}
/*TODO Update header border to include entire header */
.station-accordion-header {
  padding: 0;
  border-radius: 0.25rem;
  transition:
    background-color 0.2s ease-in-out,
    outline 0.2s ease-in-out;
}
.station-accordion-toggle {
  color: inherit;
  background-color: transparent;
  border: 0;
  border-radius: inherit;
  padding: 1rem 1.25rem;
}
.station-accordion-header:hover,
.station-accordion-header:has(.station-accordion-toggle:focus),
.station-accordion-header:has(.station-accordion-toggle:focus-visible) {
  background-color: var(--color-blue-light);
}
.station-accordion-toggle:hover {
  color: var(--color-blue-mid);
}
.station-accordion-toggle:focus,
.station-accordion-toggle:focus-visible {
  outline: 3px solid var(--color-blue-mid);
  outline-offset: 2px;
  box-shadow: none;
}
/* End of Station tab styles */

/* Picture styles */
#picture {
  max-height: 339px;
  max-width: 450px;
  object-fit: contain;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@keyframes zoom {
  from {
    transform: scale(0.4);
  }
  to {
    transform: scale(1);
  }
}
@keyframes zoom-out {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0);
  }
}
/* Add Animation */
.modal-contentPic,
#modal-title {
  animation-name: zoom;
  animation-duration: 0.6s;
}
.out {
  animation-name: zoom-out;
  animation-duration: 0.6s;
}
/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
  .modal-contentPic {
    width: 100%;
  }
}
/* end of picture styles*/

/* Styles for dynamic table */
.currSta {
  border: 3px solid var(--color-navy);
  background-color: #e9ecef;
}
tr.currSta a {
  /*color: #324c69; */
  text-decoration-line: underline;
}
/* end of dynamic table styles */

#station-picker.station-loaded {
  opacity: 0.8;
}
