/* studio/purchases.css: the new look ("studio") for Bills, Vendors and the Inbox (ui/bills.js, ui/vendors.js, ui/inbox.js). Every rule starts with
   html[data-ui="studio"] and copies the Classic selector from public/css/purchases.css verbatim, inside the same media block (SPEC 2026-11-03 section 3).
   Values: panel/02-visual-system.md section 4 (and section 7 item 6: --chip-hover is a grey here); structure panel/01-ux-architect.md section 4 (Bills, Inbox).
   Every colour and size is a token of studio/tokens.css. No transition shorthand (it would outrank the keyboard flag in tokens.css): transition-property only.
   A rule here outside a media block outranks a Classic rule inside one, so every phone or desktop variant touched is restated inside the same block. */

/* ---- Small things: the text buttons are the primary ink on an 8px shape, bare until the pointer is on them; the round buttons become 36px squares;
   the red trash in the head is the dark secondary fill, no red (a destructive act takes two presses; the confirm is the second). ---- */
html[data-ui="studio"] .pv-textbtn{padding:0 8px;border-radius:var(--radius-xs);color:var(--text-primary);touch-action:manipulation;-webkit-user-select:none;user-select:none}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .pv-textbtn:hover{background:var(--bg-raised)}}
html[data-ui="studio"] .pv-icon-btn{border-radius:var(--radius-xs);color:var(--text-secondary)}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .pv-icon-btn:hover{background:var(--bg-raised);color:var(--text-primary)}}
html[data-ui="studio"] .pv-void{width:auto;padding:0 12px;border-color:transparent;border-radius:var(--radius-xs);background:var(--btn-strong);color:var(--text-primary)}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .pv-void:hover{background:var(--btn-strong-hover)}}

/* ---- Lists: the rows straight on the page; the word Vendor under every vendor name carries no fact and goes (panel 1, Bills); the footer is a 13px line
   with tabular figures and 36px square arrows. ---- */
html[data-ui="studio"] .pv-bills td.name .sub{display:none}
html[data-ui="studio"] .pv-filters{gap:8px 16px}
html[data-ui="studio"] .pv-ft{gap:8px;font-size:var(--type-xs)}
html[data-ui="studio"] .pv-foot{gap:8px;padding-top:16px}
html[data-ui="studio"] .pv-show,html[data-ui="studio"] .pv-pager{font-size:var(--type-xs);font-variant-numeric:tabular-nums}
html[data-ui="studio"] .pv-show select{min-height:var(--control-s)}
html[data-ui="studio"] .pv-page{border-color:transparent;border-radius:var(--radius-xs);color:var(--text-primary);touch-action:manipulation}
html[data-ui="studio"] .pv-page[disabled]{opacity:1;color:var(--text-tertiary)}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .pv-page:hover:not([disabled]){background:var(--bg-raised)}}

/* ---- Forms: the section head 18 over 28; the vendor card in the form is bare text; the line items lose their box, the column heads are 13px regular
   in sentence case over the rule; the totals in the mono. ---- */
html[data-ui="studio"] .pv-card{gap:24px}
/* a card inside the form card (Attachments on a bill) is a section on a hairline: cards never nest */
html[data-ui="studio"] .pv-card .pv-card{gap:16px;background:none;border:0;border-top:1px solid var(--divider);border-radius:0;padding:16px 0 0}
html[data-ui="studio"] .pv-h{line-height:28px}
html[data-ui="studio"] .pv-vcard{padding:0;border-radius:0;background:none}
html[data-ui="studio"] .pv-lines{gap:0;border:0;border-radius:0;padding:0}
@media (min-width:1240px){
  html[data-ui="studio"] .pv-head{padding:0 0 8px;font-size:var(--type-xs);line-height:18px;font-weight:400;letter-spacing:0;text-transform:none}
}
html[data-ui="studio"] .pv-totals{gap:6px 24px}
html[data-ui="studio"] .pv-totals dd{font-family:var(--font-num)}

/* ---- The bill page: the overview, the details, the lines and the payments sit on the page as sections on hairlines (SPEC 4.1: no cards around lists);
   only a form (.pv-card.form) keeps its card, as primitives.css leaves it. ---- */
html[data-ui="studio"] .overview.bill{background:none;border:0;border-top:1px solid var(--divider);border-radius:0;padding:16px 0 0}
html[data-ui="studio"] .pv-card:not(.form){gap:16px;background:none;border:0;border-top:1px solid var(--divider);border-radius:0;padding:16px 0 0}
html[data-ui="studio"] .overview .when{line-height:28px}
html[data-ui="studio"] .pv-facts{gap:16px 24px}

/* ---- Attachments: the upload area is a well with the rule as its edge, no dash; the file chips are 8px shapes on the panel-2 grey, with the hover one
   step up (panel 2 section 7 item 6: --chip-hover is a grey token). The limits line under the area is hidden by primitives.css. ---- */
html[data-ui="studio"] .pv-drop{gap:8px;padding:16px;border:1px solid var(--divider);border-radius:var(--radius-xs);background:var(--bg-inset);transition-property:background,border-color}
html[data-ui="studio"] .pv-drop.pv-over{background:var(--bg-panel-2);border-color:var(--accent)}
html[data-ui="studio"] .pv-drop .pv-icon{color:var(--text-secondary)}
html[data-ui="studio"] .pv-chips{gap:8px}
html[data-ui="studio"] .pv-chip{--chip-hover:var(--bg-raised);border-radius:var(--radius-xs);background:var(--bg-panel-2);color:var(--text-primary)}
html[data-ui="studio"] .pv-chip-main{gap:8px;padding:0 12px;border-radius:var(--radius-xs);touch-action:manipulation;-webkit-user-select:none;user-select:none}
html[data-ui="studio"] .pv-chip-x{width:var(--control-s);height:var(--control-s);margin-right:0;border-radius:var(--radius-xs)}

/* ---- Dialog for the manual payment: the panel grey with the rule as its edge, no shadow, the 60 percent backdrop, the brand's 260ms entrance
   (it is not .dlg, so tokens.css does not reach it); opened by key it appears at once. ---- */
html[data-ui="studio"] .pv-dlg{border:1px solid var(--divider);box-shadow:none}
html[data-ui="studio"] .pv-dlg::backdrop{background:rgba(0,0,0,.6)}
/* The entrance is a transition from @starting-style, not a keyframe animation (see studio/customers.css, .cu-dlg: a 0s animation under the keyboard
   flag is never created, and the first pointer press would start it afresh under the click). The keyboard zero is restated at the same footing. */
html[data-ui="studio"] .pv-dlg[open]{animation:none;opacity:1;transform:none;transition-property:opacity,transform;transition-duration:260ms;transition-timing-function:var(--ease)}
html[data-ui="studio"] .pv-dlg[open]::backdrop{animation:none;opacity:1;transition-property:opacity;transition-duration:260ms;transition-timing-function:var(--ease)}
@starting-style{
  html[data-ui="studio"] .pv-dlg[open]{opacity:0;transform:matrix(.96,0,0,.96,0,0)}
  html[data-ui="studio"] .pv-dlg[open]::backdrop{opacity:0}
}
html[data-ui="studio"][data-input="keyboard"] .pv-dlg[open],html[data-ui="studio"][data-input="keyboard"] .pv-dlg[open]::backdrop{transition-duration:0s}
@media (prefers-reduced-motion:reduce){html[data-ui="studio"] .pv-dlg[open],html[data-ui="studio"] .pv-dlg[open]::backdrop{transition-duration:0s}}
html[data-ui="studio"] .pv-dlg-title{padding:20px 24px 8px;line-height:28px}
html[data-ui="studio"] .pv-dlg-body{gap:12px;padding:8px 24px 16px}
html[data-ui="studio"] .pv-dlg-foot{padding:16px 24px 24px}
html[data-ui="studio"] .pv-dlg-actions{gap:8px}
html[data-ui="studio"] .pv-cur{font-family:var(--font-num)}
html[data-ui="studio"] .pv-cap{font-size:var(--type-xs)}
html[data-ui="studio"] .pv-alloc-row{gap:8px 12px}
html[data-ui="studio"] .pv-alloc-name .sub{font-family:var(--font-num);font-variant-numeric:tabular-nums}

/* ---- Vendor form: the type choice is two wells with the rule as the edge; the chosen one takes the panel-2 grey and the accent edge. The sentence under
   each type stays visible for now: it has no aria-describedby yet, so hiding it would drop it from the radio's name (request in the slice report). ---- */
html[data-ui="studio"] .pv-types{gap:8px}
html[data-ui="studio"] .pv-types legend{line-height:18px}
html[data-ui="studio"] .pv-radio{border-color:var(--divider);border-radius:var(--radius-xs);background:var(--bg-inset);transition-property:background,border-color}
html[data-ui="studio"] .pv-radio:has(input:checked){border-color:var(--accent);background:var(--bg-panel-2)}
html[data-ui="studio"] .pv-rh{font-size:var(--type-xs)}
html[data-ui="studio"] .pv-rest{gap:16px}
html[data-ui="studio"] .pv-grid{gap:16px 24px}

/* ---- Phones: the finger sizes are restated inside Classic's own block, so the 36px chip close grows back to 44 ---- */
@media (max-width:599px),(pointer:coarse){
  html[data-ui="studio"] .pv-chip-x{width:44px;height:44px}
}
@media (max-width:599px){
  html[data-ui="studio"] .pv-dlg-title{padding:16px 16px 8px}
  html[data-ui="studio"] .pv-dlg-body{padding:8px 16px 12px}
  html[data-ui="studio"] .pv-dlg-foot{padding:12px 16px 16px}
}

/* ---- Inbox: the Files and Evidence cards become sections on a hairline (panel 1, Inbox); the verdict words are primitives' status words. ---- */
@media (min-width:960px){
  /* the Inbox table ends in Total then State: the state column takes a gap at its left (Classic's state column is first, with none) */
  html[data-ui="studio"] .ib-table th.state,html[data-ui="studio"] .ib-table td.state{padding-left:24px}
}
@media (max-width:959px){
  /* a phone row is a grid of three blocks: a long address (Forwarded by) breaks inside its block instead of running into the next (seen in inbox-list-390) */
  html[data-ui="studio"] .ib-table td{overflow-wrap:anywhere;min-width:0}
}
html[data-ui="studio"] .ib-grid{gap:24px}
html[data-ui="studio"] .ib-side{gap:24px}
html[data-ui="studio"] .ib-panel{gap:12px;background:none;border:0;border-top:1px solid var(--divider);border-radius:0;padding:16px 0 0}
html[data-ui="studio"] .ib-facts dt{line-height:18px}
html[data-ui="studio"] .ib-facts dd{margin:0 0 12px}
