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

.ach-entry-details[open] .ach-entry-collapsed-copy {
  display: none;
}

/* ── Multi-Select Component Styles ───────────────────────────── */

.multi-select {
  position: relative;
  width: 100%;
}

.multi-select-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 2.5rem;
  padding-left: 0.5rem;
  border: 1px solid var(--color-neutral-700);
  border-radius: 0.5rem;
  background-color: var(--color-neutral-800);
  cursor: pointer;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.multi-select-input:focus-within {
  border-color: var(--color-secondary-500);
  box-shadow: 0 0 0 3px rgba(105, 153, 199, 0.15);
}

.pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex: 1;
  min-height: 1.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  background-color: var(--color-secondary-600);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Generic index-based color classes */
.multi-select-group-colors-0 {
  background-color: var(--color-neutral-600);
  color: var(--color-neutral-100);
}

.multi-select-group-colors-1 {
  background-color: var(--color-neutral-300);
  color: var(--color-neutral-800);
}

.multi-select-group-colors-2 {
  background-color: var(--color-secondary-200);
  color: var(--color-neutral-800);
}

.pill-default {
  background-color: var(--color-neutral-800);
  color: var(--color-neutral-100);
}

.pill-remove {
  background-color: var(--color-neutral-900);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"> <path stroke-linecap="round" stroke-linejoin="round" d="M15 12H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" /></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"> <path stroke-linecap="round" stroke-linejoin="round" d="M15 12H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" /></svg>') no-repeat center / contain;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0.7;
}

.pill-remove:hover {
  opacity: 1;
  background-color: var(--color-primary-500);
}

.pill-capability .pill-remove {
  background-color: var(--color-neutral-600);
}

.multi-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  margin-top: 0.25rem;
  background-color: var(--color-neutral-800);
  border: 1px solid var(--color-neutral-700);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  max-height: 12rem;
  overflow-y: auto;
}

.multi-select-search {
  width: 100%;
  padding: 0.5rem;
  border: none;
  border-bottom: 1px solid var(--color-neutral-700);
  outline: none;
  font-size: 0.875rem;
  background-color: var(--color-neutral-800);
  color: white;
}

.multi-select-search:focus {
  border-bottom-color: var(--color-secondary-500);
}

.multi-select-clear {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem;
  background: none;
  border: none;
  color: var(--color-neutral-300);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.multi-select-clear:hover {
  color: var(--color-neutral-100);
}

/* ── Pill / Badge Styles ─────────────────────────────────────── */

.pill-legend {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-style: italic;
  border: 1px solid var(--color-neutral-700);
}

.pill--done {
  background-color: rgba(22, 163, 74, 0.15);
  color: var(--color-success-200);
  border-color: rgba(74, 222, 128, 0.3);
}

.pill--in-progress {
  background-color: rgba(105, 153, 199, 0.2);
  color: var(--color-secondary-200);
  border-color: rgba(105, 153, 199, 0.4);
}

.pill--pending {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-neutral-300);
  border-color: rgba(255, 255, 255, 0.1);
}

.pill--warning {
  background-color: rgba(255, 156, 64, 0.15);
  color: var(--color-warning-100);
  border-color: rgba(255, 156, 64, 0.3);
}

.pill--info {
  background-color: rgba(105, 153, 199, 0.15);
  color: var(--color-secondary-100);
  border-color: rgba(105, 153, 199, 0.3);
}

.pill--alert {
  background-color: rgba(248, 113, 113, 0.15);
  color: var(--color-danger-100);
  border-color: rgba(248, 113, 113, 0.3);
}
