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

/* Prevent text wrapping in table headers */
th {
  white-space: nowrap;
}

/* Hide native search input clear button (webkit browsers) */
input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

/* Hide native search input clear button (Firefox) */
input[type="search"]::-moz-search-clear-button {
  display: none;
}

/* Fix fieldset grey outline when input is focused */
fieldset[role="group"]:has(input[type="search"]:focus) {
  box-shadow: none;
  border-radius: var(--pico-border-radius);
}

/* Song search form styling */
.song-search-fieldset {
  position: relative;
}

.song-search-input-wrapper {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.song-search-input {
  padding-right: 2.5rem;
}

.song-search-fieldset > button[type="submit"] {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
}

.song-search-loading {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--pico-color);
  z-index: 10;
  align-items: center;
  line-height: 1;
}

.song-search-loading i {
  font-size: 1rem;
}

/* ID dropdown in song search results table */
table .id-dropdown {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  display: block;
}

