/* studio/invoices.css: the new look ("studio") of the Invoices pages (ui/invoices.js, ui/payments.js, ui/lines.js): the list, the editor, the invoice page and the
   dialogs. Every rule starts with html[data-ui="studio"] and copies the Classic selector of public/css/invoices.css verbatim, inside the same media block
   (SPEC 2026-11-03 section 3; a static check enforces it; no :root, bare body, @keyframes, @font-face, @import or !important). Values: panel/01-ux-architect.md
   sections 4 and 5 (no cards around lists, flat step sections, the draft banner as a plain line), panel/02-visual-system.md section 5 (the paper stays light),
   panel/04-interaction-craft.md section 3 (money moments answer at once). Every colour and size is a token of studio/tokens.css. Slice 2B (build/21-sales.md).
   Two rules kept from primitives.css: never a transition or animation shorthand here (the keyboard flag in tokens.css would lose), only transition-property;
   and every Classic phone or desktop variant touched is restated inside its own media block. The paper (.paper) and the mail preview (.mail) are never restyled:
   the sheet prints the same in both looks. The one app.css family reached here is the invoice page's own (.overview, .step-t, .step-act), which no primitive owns. */

/* ---- small shared bits: square quiet icon buttons, 700 in place of 600, the ring's colours (its animation is never restated: the static test counts loops) ---- */
html[data-ui="studio"] .icon-btn{border-radius:var(--radius-xs);color:var(--text-secondary);transition-property:background-color,color,transform}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .icon-btn:not(:disabled):hover{background:var(--bg-raised);color:var(--text-primary)}}
html[data-ui="studio"] .icon-btn:disabled{opacity:1;color:var(--text-tertiary)}   /* as the circle buttons: a quieter colour, not a fade */
html[data-ui="studio"] .ok-note{font-weight:700}
html[data-ui="studio"] .circle-btn[disabled]{opacity:1;color:var(--text-tertiary)}
html[data-ui="studio"] .spin{border-color:var(--divider);border-top-color:var(--text-primary)}

/* ---- the list: the "Last updated" line sits at the strip's left edge as a quiet 13px tertiary line with its Refresh button (interactive, so never hidden);
   no card around the list; the tabs start at the left on the hairline under the filters; dates and numbers in the mono with tabular figures. ---- */
html[data-ui="studio"] .strip .strip-foot{padding:8px 0 0;border-top:0;color:var(--text-tertiary);font-size:var(--type-xs)}
@media (max-width:719px){html[data-ui="studio"] .strip .strip-foot{padding:8px 0 0}}
html[data-ui="studio"] .list-card{gap:16px;background:none;border:0;border-radius:0;padding:0}
html[data-ui="studio"] .seg-row{justify-content:flex-start;padding-top:16px}
html[data-ui="studio"] .tab-panel{gap:16px}
html[data-ui="studio"] .table td.late-text{color:var(--text-primary);font-weight:700}
html[data-ui="studio"] .wave-list td.text{font-family:var(--font-num);font-variant-numeric:tabular-nums}
html[data-ui="studio"] .wave-list td.text.proj{font-family:var(--font-ui);font-variant-numeric:normal;overflow-wrap:anywhere}   /* the project name (1.5.5) is words, not figures; a long one wraps */

/* ---- the editor: one surface. The business bar and the Footer are sections on hairlines with a 13px label, not cards with a chevron; the drop zone is a
   hairline box; chips and the customer card take the 8px corners; the bottom Preview and Save stay (nothing interactive is hidden) and sit at the left. ---- */
html[data-ui="studio"] .collapse{background:none;border:0;border-top:1px solid var(--divider);border-radius:0}
html[data-ui="studio"] .collapse-bar{min-height:var(--control-s);padding:12px 0 0;border-radius:0;font-size:var(--type-xs);line-height:18px;color:var(--text-secondary)}
html[data-ui="studio"] .collapse-bar .collapse-caret{display:inline-block;color:var(--text-tertiary)}   /* the bar opens and closes the block (Footer is closed by default): its chevron stays, quiet (review R) */
html[data-ui="studio"] .collapse-body{padding:8px 0 20px;gap:12px}
html[data-ui="studio"] .biz-right .title-in{min-height:var(--control)}
/* the project name row (1.5.5, ui/form.js projectRow) on the invoice, estimate and recurring forms: first, full width, its box one step larger than the other fields,
   and V's hint under it shown in this look too (his own exception to SPEC 4.4's hidden help, which primitives.css applies to every other .set-help) */
html[data-ui="studio"] .proj-row .proj-help{display:block}
html[data-ui="studio"] .proj-row .set-field input{min-height:var(--control);font-size:var(--type-l)}   /* the Project name box only: the Description box under it stays the size of the other fields (1.5.7 review F23 item 2) */
html[data-ui="studio"] .biz-left .biz-logo{width:fit-content;padding:8px;background:#fff;border-radius:var(--radius-xs)}   /* the logo spot's thumbnail on white: a dark wordmark would vanish on the dark bar; as wide as the picture, Remove logo under it */
html[data-ui="studio"] .biz-left .biz-logo .p-logo{object-position:left center}   /* a wide picture sits on the centre line of its white swatch, not at its top (the pinned .p-logo is left top) */
html[data-ui="studio"] .inv-form{gap:24px}
html[data-ui="studio"] .cust-card{border-radius:var(--radius-xs)}
html[data-ui="studio"] .collapse-body textarea:disabled{background:var(--bg-inset);color:var(--text-tertiary)}
html[data-ui="studio"] .dropzone{padding:20px 16px;border:1px solid var(--divider);border-radius:var(--radius-xs);background:none;transition-property:background-color,border-color,transform}
html[data-ui="studio"] .dropzone .drop-t{font-weight:700}
html[data-ui="studio"] .file-box.over .dropzone{background:var(--bg-panel-2);border-color:var(--accent)}
html[data-ui="studio"] .chip{border-color:transparent;border-radius:var(--radius-xs);background:var(--bg-panel-2)}
html[data-ui="studio"] .form-foot{justify-content:flex-start;gap:8px}
/* The foot repeats the head's pair; the page's one light primary is the head's, so the foot's copy is the dark secondary (review R). */
html[data-ui="studio"] .form-foot .btn.primary{background:var(--btn-strong);border-color:transparent;color:var(--text-primary)}
html[data-ui="studio"] .form-foot .split .split-caret.btn.primary{border-left-color:var(--divider)}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .form-foot .btn.primary:hover{background:var(--btn-strong-hover)}}

/* ---- the line editor: Classic's head is a literal pale blue bar at 960px and up; here it is a 13px caption on the rule (primitives.css sets its weight and
   rule, this sets its fill). Figures in the mono. ---- */
@media (min-width:960px){
  html[data-ui="studio"] .l-head{padding:0 12px 8px;border-radius:0;background:none;color:var(--text-secondary)}
}
html[data-ui="studio"] .l-sub select{min-height:var(--control-s)}
html[data-ui="studio"] .l-sub .kind-fixed{font-weight:700}
html[data-ui="studio"] .amt{font-family:var(--font-num);font-variant-numeric:tabular-nums}
html[data-ui="studio"] .totals .cur{font-size:var(--type-xs)}

/* ---- Record a payment: the sign box takes the 8px corners ---- */
html[data-ui="studio"] .money-sign{border-color:var(--divider);border-radius:var(--radius-xs) 0 0 var(--radius-xs)}

/* ---- the invoice page: the overview cells as a row on hairlines (stacked on a phone), the yellow banner as one plain line between two rules with its
   buttons at the right (the Approve press stays where the tests find it), the three step cards as flat sections on hairlines with no dots and no
   vertical line, each with a 15px bold label. ---- */
html[data-ui="studio"] .overview{gap:0}
@media (max-width:719px){html[data-ui="studio"] .overview{grid-template-columns:minmax(0,1fr)}}
@media (min-width:960px){html[data-ui="studio"] .overview.has-proj{grid-template-columns:repeat(5,minmax(0,1fr))}}   /* the Project stat (1.5.5) makes five cells: one row */
html[data-ui="studio"] .overview .stat-proj .proj-v{overflow-wrap:anywhere}
html[data-ui="studio"] .step-t{font-size:var(--type-l);line-height:28px}   /* a step is a section: the one section head, 18 over 28 (review R) */
html[data-ui="studio"] .step-act{gap:8px}
html[data-ui="studio"] .draft-banner{padding:16px 0 8px;background:none;border:0;border-top:1px solid var(--divider);border-radius:0}   /* the first step section's rule closes it */
html[data-ui="studio"] .draft-text{font-weight:400}
html[data-ui="studio"] .draft-act,html[data-ui="studio"] .banner-act{gap:8px}
html[data-ui="studio"] .tl-card{gap:0;padding-bottom:0}
html[data-ui="studio"] .tl-card:not(:last-child)::before{content:none}
html[data-ui="studio"] .tl-dot{display:none}
html[data-ui="studio"] .tl-body{gap:8px;padding:24px 0;background:none;border:0;border-top:1px solid var(--divider);border-radius:0}
html[data-ui="studio"] .tl-card.off .tl-body{background:none;color:var(--text-secondary)}
html[data-ui="studio"] .attach{padding-top:12px}
@media (max-width:519px){html[data-ui="studio"] .tl-card{gap:0}html[data-ui="studio"] .tl-body{padding:20px 0}}

/* ---- Send invoice: the preview column and the More options card take the 8px corners; the mail preview itself stays light (tokens.css re-pins it) ---- */
html[data-ui="studio"] .send-pre{border-radius:var(--radius-xs)}
html[data-ui="studio"] .send-card{border-radius:var(--radius-xs)}
/* The Preview dialog and the invoice page show the sheet in the display frame (panel 2 section 5): the stage black with 40px around it, 16px on a phone. The
   sheet is untouched. The page's frame (.inv-doc) is a section invoices.js wraps around paper() under the new look only (review R, 3 Nov 2026); it prints as
   nothing, so the paper prints as in Classic. */
html[data-ui="studio"] .preview-dlg,html[data-ui="studio"] .inv-doc{display:grid;justify-items:center;padding:40px;border-radius:var(--radius);background:var(--stage)}
@media (max-width:959px){html[data-ui="studio"] .preview-dlg,html[data-ui="studio"] .inv-doc{padding:16px;border-radius:0}}
@media print{html[data-ui="studio"] .inv-doc{display:block;padding:0;border-radius:0;background:none}}
