/* Task #38372 — Background-job framework: shared styles.

   Loaded from _DashboardLayout alongside background-jobs.js so it's available on every
   staff-facing page. No !important is used; selector specificity is high enough to
   win over the project's own `.action-btn` / `.btn` variants without it. */

/* Core lock marker applied by background-jobs.js. Selectors deliberately stack the
   class with the tag and common button classes to outspecify existing rules.
   `.bgj-locked` is the framework-owned class; `.disabled` is kept alongside so any
   existing theme that styles `.disabled` also participates. */
a.bgj-locked,
a.action-btn.bgj-locked,
a.action-btn--primary.bgj-locked,
button.bgj-locked,
button.action-btn.bgj-locked,
input.bgj-locked,
.bgj-locked[aria-disabled="true"] {
    opacity: 0.45;
    filter: saturate(0.3);
    cursor: not-allowed;
    pointer-events: none;
}

/* Belt-and-braces: anchors locked via just the aria attribute (older renders that
   pre-date the class marker) still get the same treatment. */
a[data-job-id][aria-disabled="true"],
a.action-btn[aria-disabled="true"],
a.action-btn--primary[aria-disabled="true"] {
    opacity: 0.45;
    filter: saturate(0.3);
    cursor: not-allowed;
    pointer-events: none;
}
