/* Keep per-service editing dense without changing record calculations. */
#record-form .dialog-head{padding:11px 16px}
#record-form .dialog-body{padding:12px 16px}
#record-form .dialog-footer{padding:10px 16px}
#record-form label{font-size:11px;gap:3px}
#record-form input,#record-form select{height:32px;font-size:13px;padding-left:8px}
#record-form .form-grid{gap:9px 12px}
#record-form .attachment-section{margin:12px 0;padding-top:10px}
#record-form .attachment-section .section-head{margin-bottom:6px}
#record-form .attachment-thumb,#record-form .attachment-open{width:64px}
#record-form .attachment-open{height:46px}
#record-form .attachment-help{margin-top:5px;font-size:10px}
#record-form .attachment-empty{padding:5px 0}
#record-form .labor-billing{padding-top:10px;margin-top:12px;gap:10px}
#record-form .editor-section{padding-top:10px;margin-top:12px}
#record-form .editor-section>.section-head{margin-bottom:7px}
#record-form .editor-line{padding:9px 10px;margin-top:7px;background:#fafbfd}
#record-form .editor-line.is-target{background:#f1f6ff}
#record-form .editor-line-bottom{gap:8px;margin-top:7px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.4fr)}
#record-form .editor-line-bottom.no-reminder{grid-template-columns:minmax(0,1fr) minmax(0,2.2fr)}
#record-form .editor-line-bottom.no-reminder>.muted{display:none}
#record-form .editor-line-bottom>label:last-child{grid-column:auto}
#record-form .item-notes{margin-top:7px}
#record-form .editor-line .btn.icon{min-height:32px;width:28px}
@media(min-width:560px){
 #record-form .dialog-body>.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 #record-form .editor-line-top.with-quantity{grid-template-columns:minmax(0,1.7fr) minmax(0,.9fr) minmax(45px,.45fr) minmax(65px,.7fr) minmax(65px,.7fr) 28px;gap:8px}
 #record-form .editor-line-top.with-quantity.bundled{grid-template-columns:minmax(0,1.9fr) minmax(0,1fr) minmax(45px,.45fr) minmax(75px,.8fr) 28px}
 #record-form .editor-line-top.with-quantity>label,#record-form .editor-line-top.with-quantity>.btn{grid-column:auto;grid-row:auto}
}
@media(max-width:559px){
 #record-form .dialog-head,#record-form .dialog-footer{padding:10px 12px}
 #record-form .dialog-body{padding:10px 12px}
 #record-form input,#record-form select{height:36px;font-size:16px}
 #record-form .editor-line{padding:8px}
 #record-form .editor-line-top.with-quantity{gap:7px}
 #record-form .editor-line-bottom.no-reminder{grid-template-columns:minmax(160px,1.35fr) minmax(0,1fr)}
 #record-form .editor-line-bottom:not(.no-reminder){grid-template-columns:1fr 1fr}
 #record-form .editor-line-bottom:not(.no-reminder)>label:last-child{grid-column:1/-1}
 #record-form .labor-billing{grid-template-columns:1fr 1fr}
 #record-form .attachment-section .btn{min-height:32px}
}
