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

.sidebar-edge {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  pointer-events: none;
}

.sidebar-panel {
  position: absolute;
  inset: 0 auto 0 0;
  visibility: hidden;
  transform: translateX(-100%);
  transition: transform 300ms ease, visibility 300ms;
}

@media (any-hover: hover) and (any-pointer: fine) {
  .sidebar-edge {
    width: 24px;
    pointer-events: auto;
  }

  .sidebar-edge:hover .sidebar-panel:not([data-dismissed]),
  .sidebar-edge:focus-within .sidebar-panel:not([data-dismissed]) {
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }
}

.sidebar-panel[data-open] {
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-panel {
    transition: none;
  }
}

@media print {
  .sidebar-edge {
    display: none;
  }
}
