/* Scoped sale dialog; other forms retain their layout. */
html:root body.authenticated-view #modal.sale-compact-modal{width:720px;max-width:calc(100vw - 24px);max-height:92dvh;border-radius:16px;background:var(--ie-paper);color:var(--ie-ink)}
html:root body.authenticated-view #modal.sale-compact-modal .modal-heading{padding:14px 20px;gap:12px;background:var(--ie-paper)}
html:root body.authenticated-view #modal.sale-compact-modal .modal-heading h2{font-size:22px;margin:3px 0;line-height:1.25}
html:root body.authenticated-view #modal.sale-compact-modal .modal-heading .icon-button{width:40px;height:40px;min-height:40px;font-size:25px}
html:root body.authenticated-view #modal.sale-compact-modal #modal-body{padding:14px 20px}
html:root body.authenticated-view #modal.sale-compact-modal .form-grid{gap:12px 14px}
html:root body.authenticated-view #modal.sale-compact-modal .field{gap:4px}
html:root body.authenticated-view #modal.sale-compact-modal .field>span{font-size:12px;color:var(--ie-muted)}
html:root body.authenticated-view #modal.sale-compact-modal :is(input,select,textarea){padding:9px 10px;min-height:42px;font-size:14px!important;border-radius:8px;background:var(--ie-bg);color:var(--ie-ink);border:1px solid var(--ie-line);max-width:100%;box-sizing:border-box}
html:root body.authenticated-view #modal.sale-compact-modal textarea{min-height:60px}
html:root body.authenticated-view #modal.sale-compact-modal .modal-footer{position:sticky;bottom:0;padding:12px 20px;background:var(--ie-paper);border-top:1px solid var(--ie-line);z-index:2}
html:root body.authenticated-view #modal.sale-compact-modal .modal-footer .btn{min-height:42px;padding:9px 18px;font-size:13px}
.sale-compact .sale-intro{font-size:12px;line-height:1.5;color:var(--ie-muted);margin:0 0 12px}.sale-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px;background:var(--ie-bg);border:1px solid var(--ie-line);border-radius:10px;margin-top:14px}.sale-totals span,.sale-totals small{display:block;font-size:11px;color:var(--ie-muted);line-height:1.5}.sale-totals strong{display:block;font-size:18px;line-height:1.5;overflow-wrap:anywhere}.sale-breakdown{margin-top:14px}.sale-breakdown-title{display:flex;gap:8px;justify-content:space-between;font-size:12px;margin-bottom:6px;flex-wrap:wrap}.sale-breakdown-title>span{color:var(--ie-muted);font-size:11px}.sale-lot-rows{max-height:190px;overflow:auto}.sale-lot-row{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;padding:9px 0;border-bottom:1px solid var(--ie-line);font-size:12px}.sale-lot-row>div:last-child{text-align:right}.sale-lot-row small{display:block;font-size:11px;color:var(--ie-muted);line-height:1.5}.sale-extra{margin-top:12px;font-size:12px}.sale-extra summary{cursor:pointer;color:var(--ie-muted);padding:6px 0}.sale-extra .quote-note{font-size:11px;line-height:1.5;padding:8px;margin:6px 0;background:var(--ie-bg);color:var(--ie-muted);border-color:var(--ie-line)}.sale-footnote{font-size:10px;line-height:1.5;color:var(--ie-muted);margin:10px 0 0}.sale-estimate-error{font-size:12px;color:var(--ie-muted);padding:12px 0}.sale-group-history{margin-bottom:16px;padding:16px}.sale-group-history summary{cursor:pointer;font-weight:600}.sale-group-history p{font-size:12px;color:var(--ie-muted)}.sale-group-history article{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--ie-line);font-size:13px}.sale-group-history small{display:block;font-size:11px;color:var(--ie-muted);overflow-wrap:anywhere}
@media(max-width:600px){html:root body.authenticated-view #modal.sale-compact-modal{max-width:calc(100vw - 16px);max-height:94dvh}html:root body.authenticated-view #modal.sale-compact-modal :is(.modal-heading,#modal-body,.modal-footer){padding:12px 14px}html:root body.authenticated-view #modal.sale-compact-modal :is(input,select,textarea){font-size:16px!important;min-height:44px}html:root body.authenticated-view #modal.sale-compact-modal .modal-footer .btn{min-height:44px;flex:1}.sale-totals{gap:7px;padding:10px}.sale-totals strong{font-size:15px}.sale-lot-row{grid-template-columns:1fr 1fr;gap:4px}.sale-lot-row>div:nth-child(2){display:none}.sale-lot-rows{max-height:200px}.sale-group-history article{flex-wrap:wrap}}
@media(max-width:360px){html:root body.authenticated-view #modal.sale-compact-modal .form-grid{grid-template-columns:1fr}.sale-totals{grid-template-columns:1fr}.sale-totals>div{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}}
html:root body.authenticated-view #modal.sale-compact-modal{height:fit-content!important;min-height:0!important}
html:root body.authenticated-view #modal.sale-compact-modal #modal-form{height:auto;min-height:0}
