/* work-order-view.v1.css -- v54, the V1 override pair (with work-order-view.v1.js)

   V1 is the ledger-first Work Order view AS SHIPPED (SPD-2344 / SPD-2623).
   This file loads LAST, after quote.css, and does two jobs: hide what the
   shipping build does not carry, and re-anchor the one layout that depended
   on a hidden element.

   IT IS NOT A RESTYLING LAYER. Every rule here must be traceable to
   something V1 removes - if a rule changes a colour, a size or a font, it is
   in the wrong file. The suite enforces this: the only declarations allowed
   are `display:none` and the single documented `margin-left:auto` below.

   WHY CSS AND NOT JS. Everything hidden here is re-emitted by a SHARED part
   every time render() runs - group headers are rebuilt wholesale on any edit,
   drag, bulk change or scenario switch. A JS stripper would have to re-run
   after each of those, and any path it missed would flicker cut content into
   view. A rule cannot flicker. The v1.js half is reserved for the one thing
   CSS genuinely cannot do: remove nodes from the DOM.

   THE PARTS THEMSELVES ARE NOT FORKED. V1 tracks the main prototype because
   the only things it owns are this file, v1.js, and which parts the page
   loads. -------------------------------------------------------------- */

/* ---------- group-level profitability (Tim: drop) ----------
   render.js gpChips() emits GP% / GP$ / GP-per-hour and the Below Goal
   warning into .lg-gp on every group header. Only the margin-% target exists
   in the ERP today (target_margins); GP$, GP-per-hour and Below-Goal are all
   net-new, which is why the chips carried an nw-flag. The bottom bar's copy
   of the same figures is already gone from V1's markup - this is the
   per-group copy, which the PRD's cut list did not name but which is the
   same unbuilt metric. */
.lg-gp{ display:none; }

/* ---------- per-group technician notes (Tim: drop) ----------
   render.js notesLink() / notesPanel(). Net-new at group level - the ERP has
   no notes on a group today. The link is a button in the group card and the
   panel is its two-up disclosure; both go, so the card foot closes up. */
.lg-notes-link,
.lg-notes-panel{ display:none; }

/* ---------- the rail's workflow-days row, QUOTE MODE ONLY ----------
   #v1RailDays is anchored by build_v1.py. In WORK ORDER mode the row reads
   "Days in Deposit Needed" and is real: work_order_workflow_stages carries
   per-status timestamps. quote.js swaps the same row to "Days in Draft",
   which is NOT real - workflowStages is empty for quotes in the ERP, so the
   number is invented and the row carried an nw-flag.
   Hence the body.ent-quote scope rather than a flat hide: dropping the row
   outright would take working Work Order content with it. */
body.ent-quote #v1RailDays{ display:none; }

/* ---------- the add bar's buttons stay RIGHT-ALIGNED (Tim) ----------
   `.lv-addbar` is a flex row and `.lv-search` carried `flex:1`, so the search
   box ate the slack and pushed `.lv-addbtns` to the right edge. V1 removes
   the search box, and with it the only flexible child - so the buttons
   collapsed leftwards against the bar's padding.
   `margin-left:auto` restores the original position by taking the slack
   directly instead of relying on a sibling that no longer exists. This is
   the ONE non-display rule in this file, and it exists because removing an
   element changed a layout rather than because V1 wants a different look. */
.lv-addbar .lv-addbtns{ margin-left:auto; }
