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

/* Demo mode: gray out write actions */
.demo-mode form[method="post"] input[type="submit"],
.demo-mode form[method="post"] button[type="submit"],
.demo-mode a[data-turbo-method="delete"],
.demo-mode a[data-turbo-method="patch"],
.demo-mode a[data-turbo-method="put"] {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

/* Keep demo login and logout functional */
.demo-mode form[action="/demo"] input[type="submit"],
.demo-mode form[action="/demo"] button[type="submit"],
.demo-mode a[href*="sign_out"] {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}
