
html {
  font-size: 0.9rem;
}

#publications-column {
  height: calc(100svh - 75px);
}

/* Alerts */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* Clickable rows */

.clickable-row {
  cursor: pointer;
}

/* Dynamic carousels */

.carousel-item.active,
.carousel-item-prev,
.carousel-item-next {
  display: flex;
}
.carousel-controls {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}
.carousel-item img {
  max-width: 100%;
  max-height: 100%;
}
/* Publication item picture carousel */
.sh-publication-carousel,
.sh-publication-content .carousel {
  width: 160px;
}
.sh-publication-content .carousel-item {
  height: 250px;
}
/* Registration details thumbnail carousel */
#thumbnail-carousel .carousel-item {
  height: 400px;
}

/* Cropper modal TODO: improve */
.croppr-image {
  max-height: 650px;
}

/* Read-only floating label inputs */
.form-floating > input[readonly].form-control-plaintext,
.form-floating > input[readonly].form-control-plaintext:focus {
  background-color: var(--bs-secondary-bg);
  opacity: 1;
  outline: none;
  box-shadow: none;
}
.form-floating > input[readonly].form-control-plaintext:focus ~ label::after,
.form-floating > input[readonly].form-control-plaintext ~ label::after {
  background-color: var(--bs-secondary-bg);
}

/* Circular buttons */
.btn-circle.btn-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
}
.btn-circle.btn-md {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
}
.btn-circle.btn-xl {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  text-align: center;
}

/* Profile dropdown menu */
.navbar .dropdown {
  z-index: 1021;
}

/* Overlay */
.sh-loading-overlay {
  background-color: rgba(255, 255, 255, 0.7);
  position: absolute;
  z-index: 1019;  /* Above carousel and dropdown button, below sticky-top */
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: var(--bs-card-border-radius);
}
.sh-loading-overlay > .spinner-border {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 3em;
  height: 3em;
}

/* Publication dropdown menu */
.sh-publication-controls > .dropdown {
  z-index: 1018;
}
.sh-publication-controls {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
}
.sh-search-form .dropdown-menu {
  z-index: 2000;
}

/* Publication cards */
.sh-publication .card-title {
  font-size: 1.2rem;
}
.sh-publication p {
  margin-bottom: 0.2rem;
}

/* Line clamp */
.line-clamp-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Number of lines to show */
  -webkit-box-orient: vertical;
}

/* Compact floating label inputs */
.form-floating > .form-control,
.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown),
.form-floating > .form-select {
  font-size: 0.9rem;
  padding-top: 0.9rem;
  padding-bottom: 0.0rem;
  height: auto;
  min-height: 3rem;
}
.form-floating > label {
  padding: 0.75rem 0.75rem;
  font-size: 0.85rem;
}
.form-floating > .form-control-plaintext ~ label::after,
.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.form-floating > .form-select ~ label::after {
  background-color: transparent;
}
