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

/* Spool form modal */
.spool-modal {
  border: none;
  border-radius: 0.75rem;
  padding: 0;
  max-width: 640px;
  width: 90vw;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.spool-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.spool-modal-content {
  max-height: 85vh;
}

.spool-modal-content,
.spool-modal-content turbo-frame,
.spool-modal-content form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.spool-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
  flex-shrink: 0;
}

.spool-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.spool-modal-footer {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  background-color: var(--bs-tertiary-bg);
  border-top: 1px solid var(--bs-border-color);
  flex-shrink: 0;
}

/* Color dropdown */
.color-swatch-sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.color-dropdown-menu {
  max-height: 250px;
  overflow-y: auto;
}

/* Toast - fix iOS scroll paint artifacts */
.toast-container {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Bulk select mode */
.bulk-checkbox {
  display: none;
}

.bulk-select-active .bulk-checkbox {
  display: block;
}

.bulk-select-active .bulk-checkbox .form-check-input {
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
