/* components/_accordion.scala.html */
a.accordion-toggle:after {
  font-family: FontAwesome;
  content: "\f078";
  float: right;
  margin-right: 12px;
  color: #302e2e;
}

a.accordion-toggle.collapsed:after {
  content: "\f054";
}

/* components/_filter.scala.html */
.checkbox-filter .section-divider {
  height: 1px;
  width: 100%;
  background-color: #ccc;
  margin: 16px 0;
}

/* components/_toast.scala.html */
#fl-toast-container {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap-reverse;
  align-content: flex-end;
  gap: 8px;
  padding: 8px;
  max-height: 100vh;
  box-sizing: border-box;
}

.fl-toast {
  display: none;
  justify-content: space-between;
  width: 400px;
  text-align: center;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0px 0px 6px -1px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.fl-toast.show {
  display: flex !important;
}

.fl-toast .left-bar {
  width: 10px;
  background-color: #3086ea;
}
.fl-toast-success .left-bar {
  background-color: #16ad24;
}
.fl-toast-danger .left-bar {
  background-color: #ff0002;
}
.fl-toast-warning .left-bar {
  background-color: #ffb700;
}

.fl-toast-close-all {
  display: none;
  width: fit-content;
  background: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0px 0px 6px -1px rgba(0, 0, 0, 0.5);
  font-size: 11px;
  cursor: pointer;
}

.fl-toast-close-all:hover {
  background-color: #f0f0f0;
}

.fl-toast .content {
  height: 100%;
  width: 100%;
  display: flex;
  gap: 12px;
}

.fl-toast .text {
  padding: 8px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.fl-toast .text .title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.fl-toast .text .message {
  font-size: 12px;
  text-align: left;
  max-height: 34px;
  margin-right: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#fl-toast-container.large .fl-toast .text .message,
.fl-toast .text .message.expanded {
  max-height: none;
  overflow: visible;
  display: block;
}

.fl-toast .expand-buttons {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

#fl-toast-container.large .fl-toast .expand-buttons {
  display: none;
}

.fl-toast .expand-buttons .read-less,
.fl-toast .expand-buttons .read-more {
  display: block;
  background: none;
  border: none;
  color: #5aabe2;
  cursor: pointer;
  font-size: 11px;
  margin-right: 12px;
}

.fl-toast .expand-buttons .read-less {
  display: none;
}

.fl-toast .fl-toast-close {
  background: transparent;
  border: none;
  cursor: pointer;
  margin-right: 12px;
}

.fl-toast .fl-toast-close img {
  filter: invert(41%) sepia(16%) saturate(11%) hue-rotate(34deg) brightness(91%)
    contrast(90%);
  width: 20px;
}
/* end components/_toast.scala.html */

/* components/_switch.scala.html */
.fl-switch {
  display: inline-block;
  width: 28px;
  height: 18px;
  margin-bottom: 0;
}

.fl-switch .fl-switch-checkbox {
  display: none;
}

.fl-switch .fl-switch-slider {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #d0d0d0;
  border-radius: 14px;
}

.fl-switch .fl-switch-slider:after {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 4px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 100%;
  transition: 0.4s;
}

.fl-switch .fl-switch-checkbox:checked + .fl-switch-slider {
  background-color: #40cac0;
}

.fl-switch .fl-switch-checkbox:checked + .fl-switch-slider:after {
  transform: translateX(8px);
}

.fl-switch .fl-switch-checkbox:disabled + .fl-switch-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hide Alpaca form buttons inside the PDF viewer drawer (the drawer has its own buttons) */
#drawer-data-view-content .alpaca-form-buttons-container,
#drawer-data-view-content .alpaca-wizard-buttons {
  display: none !important;
}
