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

.selection-control {
  opacity: 0;
  transition: opacity 140ms ease, transform 140ms ease;
}

.group:hover .selection-control,
.selection-control:focus-within,
.selection-control:has(input:checked) {
  opacity: 1;
}

.selection-control input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.selection-circle {
  display: grid;
  place-items: center;
  inline-size: 1.35rem;
  block-size: 1.35rem;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.selection-control input:checked + .selection-circle {
  border-color: #e0f2fe;
  background: #2563eb;
  color: white;
}

.selection-control:focus-within .selection-circle {
  outline: 2px solid white;
  outline-offset: 2px;
}

.bulk-action-disabled {
  cursor: not-allowed;
  opacity: 0.42;
  pointer-events: none;
}

.ui-tooltip {
  position: relative;
}

.ui-tooltip:hover::after,
.ui-tooltip:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  inset-block-start: calc(100% + 0.55rem);
  inset-inline-end: 0;
  z-index: 60;
  width: max-content;
  max-width: 14rem;
  padding: 0.42rem 0.58rem;
  border-radius: 0.35rem;
  background: #18181b;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}
