/*
 * 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.
 */

html {
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

.table.table-zebra tbody tr:nth-child(even) td {
  background-color: var(--color-base-200);
}

.table.table-summary tbody tr.summary-row-even td {
  background-color: var(--color-base-200);
}

.bulk-actions-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.modal-box.settings-modal {
  width: 75vw !important;
  max-width: 1000px !important;
  height: 75vh !important;
  max-height: 1000px !important;
}

.btn {
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn:hover:not(.btn-disabled):not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.navbar .btn,
.navbar .btn:hover:not(.btn-disabled):not(:disabled) {
  transform: none;
  box-shadow: none;
}

.nav-link {
  color: var(--color-base-content);
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  transition: color 150ms ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.navbar-start .nav-link {
  padding-left: 0;
}

.mobile-main-menu {
  width: min(20rem, calc(100vw - 2rem));
}

.table-responsive .table {
  min-width: 40rem;
}

@media (max-width: 767px) {
  .table-responsive .table {
    min-width: 32rem;
    font-size: 0.875rem;
  }

  .table-responsive .table :where(th, td) {
    padding-inline: 0.7rem;
    padding-block: 0.55rem;
  }
}

.btn.no-hover:hover:not(.btn-disabled):not(:disabled) {
  transform: none;
  box-shadow: none;
}

.tabs-box {
  background-color: var(--color-base-300);
  padding: 0.25rem;
  gap: 4px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.tabs-box .tab {
  border-radius: calc(var(--radius-field) * 2);
  background-color: transparent;
  transition: background-color 150ms ease;
}

.tabs-box .tab:hover {
  background-color: var(--color-base-100);
}

.tabs-box .tab-active {
  background-color: var(--color-base-100);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.analysis-segmented .tab {
  min-height: 2.4rem;
  padding-inline: 0.875rem;
  font-weight: 500;
}

.analysis-segmented .tab.tab-active {
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.analysis-segmented {
  scrollbar-width: none;
}

.analysis-segmented::-webkit-scrollbar {
  display: none;
}

.analysis-segmented .tab:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.analysis-toolbar-spinner {
  display: inline-flex;
  visibility: hidden;
}

.analysis-toolbar.is-loading .analysis-toolbar-spinner {
  visibility: visible;
}

.analysis-toolbar.is-loading .analysis-toolbar-controls {
  opacity: 0.6;
  pointer-events: none;
}

.analysis-tabs .tab {
  flex: 1 1 0;
  justify-content: center;
  font-weight: 400;
}

.analysis-tabs .tab.tab-active {
  font-weight: 700;
}

turbo-frame .frame-spinner {
  display: none;
}

turbo-frame[busy] .frame-spinner {
  display: flex;
}

turbo-frame[busy] .frame-body {
  opacity: 0.55;
  pointer-events: none;
}
