/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Bootstrap Icons */
@font-face{font-display:block;font-family:bootstrap-icons;src:url("/fonts/bootstrap-icons.woff2") format("woff2"),url("/fonts/bootstrap-icons.woff") format("woff")}.bi::before,[class*=" bi-"]::before,[class^="bi-"]::before{display:inline-block;font-family:bootstrap-icons!important;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;vertical-align:-.125em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bi-speedometer2::before{content:"\f580"}.bi-people::before{content:"\f4d0"}.bi-gear::before{content:"\f3e5"}.bi-eye::before{content:"\f341"}.bi-eye-slash::before{content:"\f340"}

/* Sidebar collapse transition */
[data-controller="sidebar"] {
  transition: width 200ms ease-in-out;
}

.frame-content-enter {
  animation: frame-content-enter 180ms ease-out both;
}

.frame-content-leave {
  animation: frame-content-leave 140ms ease-in both;
}

@keyframes frame-content-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes frame-content-leave {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .frame-content-enter,
  .frame-content-leave {
    animation: none;
  }
}

/* Custom select scrollbar */
.custom-select-scroll::-webkit-scrollbar {
  width: 4px;
}
.custom-select-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.custom-select-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.custom-select-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Index results: the loading state while a Turbo Frame fetches rows.
   Shown by async_results_controller.js, which only adds .is-loading once the
   request has outlasted a short grace period. */
.results-shell {
  position: relative;
}

.results-loading {
  position: absolute;
  z-index: 20;
  display: none;
  inset: 0;
  background-color: rgb(248 250 252 / 70%);
}

.results-shell.is-loading .results-loading {
  display: block;
  animation: results-loading-in 140ms ease-out both;
}

/* Keep the stale rows readable underneath, but not clickable. */
.results-shell.is-loading > turbo-frame {
  pointer-events: none;
}

.results-loading-bar {
  position: absolute;
  inset-inline: 0;
  top: 0;
  overflow: hidden;
  height: 2px;
  background-color: rgb(224 231 255);
}

.results-loading-bar::after {
  position: absolute;
  inset-block: 0;
  width: 35%;
  animation: results-loading-sweep 1.1s ease-in-out infinite;
  background-color: rgb(79 70 229);
  content: "";
}

/* Sticky so the spinner stays in view on a tall table. */
.results-loading-body {
  position: sticky;
  top: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-block: 2.5rem;
}

.results-spinner {
  display: inline-block;
  box-sizing: border-box;
  width: 1.125rem;
  height: 1.125rem;
  animation: results-spin 700ms linear infinite;
  border: 2px solid rgb(199 210 254);
  border-top-color: rgb(79 70 229);
  border-radius: 50%;
}

.results-loading-text {
  color: rgb(71 85 105);
  font-size: 0.75rem;
  font-weight: 500;
}

@keyframes results-loading-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes results-loading-sweep {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(285%);
  }
}

@keyframes results-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .results-loading,
  .results-loading-bar::after,
  .results-spinner {
    animation: none;
  }
}
