/* Avo always loads this file (see avo-4.2.0/app/views/layouts/avo/application.html.erb) --
   an empty hook the gem ships specifically for host-app overrides. Propshaft resolves the
   app's copy before the gem's, so this shadows the gem's blank version. */

/* Lot, Receiving, QboJournalEntry, and WorkOrder can never be hand-created
   (Avo::Concerns::NeverHandCreated on their controllers) -- the generic "Create new" button
   still renders on their index pages regardless, since removing it needs Avo's authorization
   layer (KNOWN_ISSUES.md P1), not wired up yet. The label already reads "Spurious Button - Do
   NOT Push" (app/avo/resources/lot.rb / receiving.rb / qbo_journal_entry.rb / work_order.rb);
   this goes one step further and visually erases the button -- white on white, no border, no
   shadow, in every state including hover -- so it doesn't visually compete with the real entry
   points. Still present and still keyboard-reachable on purpose: the controller-level block is
   the real backstop no matter how anyone reaches this link. */
a[href$="/lots/new"],
a[href$="/receivings/new"],
a[href$="/qbo_journal_entries/new"],
a[href$="/work_orders/new"] {
  color: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  border-color: #fff !important;
  box-shadow: none !important;
}

a[href$="/lots/new"]:hover,
a[href$="/receivings/new"]:hover,
a[href$="/qbo_journal_entries/new"]:hover,
a[href$="/work_orders/new"]:hover {
  color: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  border-color: #fff !important;
}

a[href$="/lots/new"] svg,
a[href$="/receivings/new"] svg,
a[href$="/qbo_journal_entries/new"] svg,
a[href$="/work_orders/new"] svg {
  fill: #fff !important;
  color: #fff !important;
}

a[href$="/lots/new"] .hotkey-badge,
a[href$="/receivings/new"] .hotkey-badge,
a[href$="/qbo_journal_entries/new"] .hotkey-badge,
a[href$="/work_orders/new"] .hotkey-badge {
  visibility: hidden;
}

/* Confirmed 2026-09-11: an index table's row-select and select-all checkboxes render with a
   border so light (oklch(0.928 0 89.88), near-white) that they're effectively invisible against
   the white table background until checked (checked state already has strong contrast -- a
   dark border and checkmark -- untouched here). Scoped to these two exact checkboxes by name,
   not `input[type="checkbox"]` broadly, since a boolean field's toggle-switch elsewhere in the
   app is a different element using the same input type and shouldn't be touched. */
input[type="checkbox"][name="Select item"]:not(:checked),
input[type="checkbox"][name="Select all"]:not(:checked) {
  border-color: oklch(0.7 0 89.88) !important;
}
