/* studio/estimates.css: the new look ("studio") of the Estimates pages (ui/estimates.js): the list, the form, the estimate page and its dialogs. Every rule starts
   with html[data-ui="studio"] and copies the Classic selector of public/css/estimates.css verbatim, inside the same media block (SPEC 2026-11-03 section 3).
   Values: panel/01-ux-architect.md sections 4 and 5 (one surface per form, the summary as hairline cells, the draft banner as a plain line, the four step cards
   as flat sections), panel/02-visual-system.md section 5 (the sheet in the stage-black frame). Every colour and size is a token of studio/tokens.css; never a
   transition or animation shorthand (only transition-property, so the keyboard flag in tokens.css keeps winning); every Classic phone or desktop variant touched
   is restated inside its own media block. The sheet (.paper) is never restyled. Slice 2B (build/21-sales.md). */

/* ---- the list: the date field is the well with the rule as its edge, its figures in the mono; the tabs start at the left on the hairline; dates in the mono ---- */
html[data-ui="studio"] .est-date{border-color:var(--divider);border-radius:var(--radius-xs);transition-property:none}
html[data-ui="studio"] .est-date input{font-family:var(--font-num);font-variant-numeric:tabular-nums}
html[data-ui="studio"] .est-date .icon{color:var(--text-tertiary)}
html[data-ui="studio"] .est-search-btn{border-radius:0 var(--radius-xs) var(--radius-xs) 0}
html[data-ui="studio"] .est-tabs{justify-content:flex-start;padding-top:16px}
html[data-ui="studio"] .est-range{font-family:var(--font-num)}
html[data-ui="studio"] .table.est td.text{font-family:var(--font-num);font-variant-numeric:tabular-nums}

/* ---- the form: one surface. The business bar is a 13px label on a rule, not a grey bar in a card; the white card and its shadow go; the Add a customer box
   and the pick list take the rule and the 8px corners; the help line under Valid until is hidden (read by a screen reader); figures in the mono. ---- */
html[data-ui="studio"] .est-form{gap:24px}
html[data-ui="studio"] .est-barwrap{border:0;border-top:1px solid var(--divider);border-radius:0;overflow:visible;background:none}
html[data-ui="studio"] .est-bar{min-height:var(--control-s);padding:12px 0 0;background:none;color:var(--text-secondary);font-size:var(--type-xs);line-height:18px}
html[data-ui="studio"] .est-bar .icon{display:inline-block;color:var(--text-tertiary)}   /* the bar opens and closes the block: its chevron stays, quiet (review R: an affordance is not help text) */
html[data-ui="studio"] .est-biz{padding:8px 0 20px}
html[data-ui="studio"] .est-biz-info .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"] .est-biz-info .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"] .est-title{min-height:var(--control);font-weight:400}
/* The editor sits in the panel card like the invoice, recurring and product editors (review R, 3 Nov 2026: one editor convention; Admin's panels hold the forms). */
html[data-ui="studio"] .est-card{background:var(--bg-panel);border:1px solid var(--divider);border-radius:var(--radius);box-shadow:none;padding:24px}
html[data-ui="studio"] .est-add-cust{border-color:var(--divider);border-radius:var(--radius-xs);background:none;color:var(--text-primary);transition-property:background-color,transform}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .est-add-cust:hover{background:var(--bg-panel-2)}}
html[data-ui="studio"] .est-cust-card{border-radius:var(--radius-xs)}
/* The box holds the searchable field alone since 1.3.1 (its list hangs under the field): no second frame around one control. */
html[data-ui="studio"] .est-pick{padding:0;border:0;border-radius:0;background:none}
html[data-ui="studio"] .est-help{display:none}
html[data-ui="studio"] .est-tab-btn{min-height:var(--control-s);border-radius:var(--radius-xs);background:var(--bg-panel-2);color:var(--text-primary);font-size:var(--type-m);transition-property:background-color,transform}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .est-tab-btn:hover{background:var(--bg-raised)}}
html[data-ui="studio"] .est-sub dd{font-family:var(--font-num)}
html[data-ui="studio"] .est-total-v{font-family:var(--font-num)}
html[data-ui="studio"] .est-dep-amt{font-family:var(--font-num)}
html[data-ui="studio"] .est-bottom{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"] .est-bottom .btn.primary{background:var(--btn-strong);border-color:transparent;color:var(--text-primary)}
html[data-ui="studio"] .est-bottom .split .split-caret.btn.primary{border-left-color:var(--divider)}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .est-bottom .btn.primary:hover{background:var(--btn-strong-hover)}}

/* ---- the estimate page: the summary as rows on hairlines (cells side by side from 960px, divided by the rule), the 13px regular caption over a mono figure;
   the draft banner as one plain line between two rules, no icon, no fill; the four step cards as flat sections on hairlines with no dots and no line;
   the sheet in the display frame (the stage black, 40px around it, 16px edge to edge on a phone). ---- */
html[data-ui="studio"] .est-summary{grid-template-columns:minmax(0,1fr);gap:0;padding:0;border-radius:0;background:none}
html[data-ui="studio"] .est-fact{gap:4px;padding:12px 0;border-top:1px solid var(--divider)}
@media (min-width:960px){
  html[data-ui="studio"] .est-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
  html[data-ui="studio"] .est-fact{padding:0 24px 0 0;border-top:0}
  html[data-ui="studio"] .est-fact+.est-fact{padding-left:24px;border-left:1px solid var(--divider)}
}
html[data-ui="studio"] .est-fact-k{font-weight:400}
html[data-ui="studio"] .est-fact-v{font-family:var(--font-num);line-height:28px}
html[data-ui="studio"] .est-info{color:var(--text-secondary)}
html[data-ui="studio"] .est-pop{border-color:var(--divider);border-radius:var(--radius-xs);background:var(--bg-panel-2);box-shadow:var(--shadow-raised)}
html[data-ui="studio"] .est-banner{padding:16px 0 8px;border:0;border-top:1px solid var(--divider);border-radius:0;background:none}   /* the stacked summary's first rule closes it; from 960px the summary has no rule, so the banner draws its own */
@media (min-width:960px){html[data-ui="studio"] .est-banner{padding:16px 0;border-bottom:1px solid var(--divider)}}
html[data-ui="studio"] .est-banner .icon{display:none}
html[data-ui="studio"] .est-step{grid-template-columns:minmax(0,1fr);gap:0;padding-bottom:0}
html[data-ui="studio"] .est-step:not(:last-child)::before{content:none}
html[data-ui="studio"] .est-dot{display:none}
html[data-ui="studio"] .est-step-card{gap:8px;padding:24px 0;border:0;border-top:1px solid var(--divider);border-radius:0;background:none}
html[data-ui="studio"] .est-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"] .est-step.off .est-step-card{background:none}
html[data-ui="studio"] .est-step.off .est-step-t{color:var(--text-secondary)}
html[data-ui="studio"] .est-doc{display:grid;justify-items:center;padding:40px;border-radius:var(--radius);background:var(--stage)}
@media (max-width:959px){html[data-ui="studio"] .est-doc{padding:16px;border-radius:0}}
@media (max-width:520px){html[data-ui="studio"] .est-step{grid-template-columns:minmax(0,1fr);gap:0}html[data-ui="studio"] .est-step-card{padding:20px 0}}

/* ---- inside the dialogs: the More options card takes the 8px corners; the Preview shows the sheet in the display frame ---- */
html[data-ui="studio"] .est-mini{border-radius:var(--radius-xs)}
html[data-ui="studio"] .est-preview{display:grid;justify-items:center;padding:40px;border-radius:var(--radius);background:var(--stage)}
@media (max-width:959px){html[data-ui="studio"] .est-preview{padding:16px;border-radius:0}}
