/* Keep related repair screens at one size. Printing retains its paper layout. */
@media screen{
 dialog#editor.repair-detail-dialog{width:min(1360px,calc(100vw - 32px))!important;height:min(850px,calc(100dvh - 32px))!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px)!important;margin:auto;padding:0;border-radius:10px;overflow:hidden}
 #editor.repair-detail-dialog #dialog-content{height:100%;max-height:none;display:flex;flex-direction:column;min-height:0;min-width:0}
 #editor.repair-detail-dialog #dialog-content>.dialog-header{height:62px;min-height:62px;max-height:62px;flex:none;position:static;display:flex;align-items:center;gap:14px;padding:12px 16px;background:#fff;color:var(--ltn-text-color);border-bottom:1px solid var(--ltn-border-color)}
 #editor.repair-detail-dialog #dialog-content>.dialog-header h2{flex:1;min-width:0;font-size:20px;font-weight:700;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ltn-text-color);margin:0}
 #editor.repair-detail-dialog #dialog-content>.dialog-header .dialog-close{flex:none;margin-left:auto;background:var(--ltn-subtle-color);color:var(--ltn-secondary-color)}
 #editor.repair-detail-dialog #dialog-content>.dialog-header .repair-dialog-back{flex:none;min-height:32px;padding:6px 10px;font-size:14px;font-weight:500;color:var(--ltn-link-color);background:#fff;border:1px solid var(--ltn-border-color);border-radius:6px;box-shadow:none}
 #editor.repair-detail-dialog #dialog-content>.dialog-header .repair-dialog-back:hover{background:var(--ltn-primary-soft)}
 #editor.repair-detail-dialog #dialog-content>.dialog-body{display:block;flex:1;min-height:0;min-width:0;padding:16px;overflow:auto;background:#fff;scrollbar-gutter:stable}
 #editor.repair-detail-dialog .dialog-body>form:not(.repair-counter-form){display:flex;flex-direction:column;min-height:100%;gap:16px}
 #editor.repair-detail-dialog .dialog-body>form:not(.repair-counter-form)>.form-footer{margin-top:auto;position:sticky;bottom:-16px;background:#fff;z-index:3;padding:12px 0;border-top:1px solid var(--ltn-border-color)}
 #editor.repair-detail-dialog #dialog-content>.dialog-body:has(>.repair-counter-form){display:flex;overflow:hidden;padding:12px;background:var(--ltn-subtle-color)}
 #editor.repair-detail-dialog .repair-counter-form{height:100%;min-height:0;min-width:0}
 #editor.repair-detail-dialog .pos-checkout-dialog{width:100%;max-width:none}
 #editor.repair-detail-dialog .print-preview-frame{min-height:0}
}
@media screen and (max-width:900px){
 dialog#editor.repair-detail-dialog{width:calc(100vw - 16px)!important;height:calc(100dvh - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important}
 #editor.repair-detail-dialog #dialog-content>.dialog-header{padding:10px 12px;gap:10px}
 #editor.repair-detail-dialog #dialog-content>.dialog-header h2{font-size:16px}
 #editor.repair-detail-dialog #dialog-content>.dialog-body{padding:12px}
 #editor.repair-detail-dialog #dialog-content>.dialog-body:has(>.repair-counter-form){display:block;overflow:auto;padding:8px}
 #editor.repair-detail-dialog .repair-counter-form{height:auto;min-height:100%}
 #editor.repair-detail-dialog .dialog-body>form:not(.repair-counter-form)>.form-footer{bottom:-12px}
}
@media screen and (max-width:480px){
 #editor.repair-detail-dialog #dialog-content>.dialog-header{gap:8px;padding:10px}
 #editor.repair-detail-dialog #dialog-content>.dialog-header .repair-dialog-back{padding:6px;gap:4px;font-size:14px}
}
