.new-order-dialog .modal-body{gap:12px}
.new-order-dialog .new-order-idno{margin:0}
.new-order-dialog .new-order-idno [data-idno-status]:empty{display:none}
.new-order-client-row{--client-field-height:44px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start;min-width:0}
.new-order-client-row>label{position:relative;min-width:0}
.new-order-dialog .new-order-client-row input:not([type=hidden]),.new-order-dialog .new-order-client-row select{box-sizing:border-box;width:100%;min-width:0;height:var(--client-field-height);min-height:var(--client-field-height);padding:10px 12px;margin:0;font-size:14px;line-height:22px;border-radius:8px}
.new-order-client-row select{appearance:none;-webkit-appearance:none;padding-right:34px!important}
.new-order-client-row>label:has(select)::after{content:"";position:absolute;pointer-events:none;right:15px;bottom:calc(var(--client-field-height)/2 - 2px);width:7px;height:7px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg)}
@media(max-width:640px){.new-order-client-row{grid-template-columns:1fr;gap:14px}.new-order-dialog .new-order-client-row input:not([type=hidden]),.new-order-dialog .new-order-client-row select{font-size:16px}}
body.mobile-simple .new-order-client-row{--client-field-height:52px}
.new-order-entry{margin-top:0;padding-top:12px;border-top:1px solid var(--line);container-type:inline-size;min-width:0}
.new-order-entry>h3{margin:0 0 10px;font-size:14px}
.new-order-entry [hidden]{display:none!important}
.initial-composer{display:grid;grid-template-columns:auto minmax(130px,1fr) 105px 65px 115px auto;gap:8px;align-items:end;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.initial-composer-modes{display:inline-flex;align-self:end;box-sizing:border-box;height:36px;padding:2px;border:1px solid var(--input-border,var(--line));border-radius:7px;background:var(--surface)}
.initial-composer-modes button{border:0;border-radius:4px;min-height:30px;padding:3px 9px;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:650;cursor:pointer}
.initial-composer-modes button[aria-pressed=true]{background:var(--text);color:var(--surface)}
.initial-composer-modes button:disabled{opacity:.45;cursor:default}
.initial-composer-modes button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.initial-composer-search{min-width:0}
.initial-composer-search [data-initial-sku-search]{display:flex;align-items:center;gap:5px;min-width:0}
.new-order-entry .initial-composer input,.new-order-entry .initial-order-line input{box-sizing:border-box;width:100%;min-width:0;min-height:36px;height:36px;margin:0;padding:7px 9px;font-size:13px;color:var(--text);background:var(--surface)}
.initial-composer-search [data-initial-sku-search] input{flex:1}
.new-order-entry input[readonly]{background:var(--surface-2);color:var(--muted)}
.initial-composer>label,.initial-order-line>label{display:flex;flex-direction:column;gap:3px;min-width:0;margin:0;font-size:11px;font-weight:600;color:var(--muted)}
.initial-composer-total output{display:flex;align-items:center;min-width:0;min-height:36px;padding:7px 9px;box-sizing:border-box;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.initial-composer>[data-initial-stage]{height:36px;min-height:36px;white-space:nowrap;padding:7px 10px;font-size:13px;gap:5px}
.initial-composer>[data-initial-stage] svg{width:15px;height:15px}
.initial-composer-context{display:block;margin-top:5px;color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.initial-composer-context:empty,.new-order-entry [data-initial-error]:empty{display:none}
.new-order-entry [data-initial-error]{margin:7px 0;font-size:12px}
.initial-order-lines{margin-top:10px;min-width:0}
.initial-order-line{display:grid;grid-template-columns:minmax(130px,1fr) 105px 65px 115px 32px;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--line);min-width:0}
.initial-order-line-name{display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere}
.initial-order-line-name strong{font-size:13px;font-weight:650}
.initial-order-line-name small{font-size:11px;color:var(--muted)}
.initial-order-line>[data-initial-line-total]{font-size:13px;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.initial-order-line>.icon-btn{width:32px;min-width:32px;min-height:36px;padding:7px;align-self:end}
.initial-order-empty{margin:0;padding:8px 0;color:var(--muted);font-size:12px}
.initial-order-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:9px;font-size:12px;color:var(--muted)}
.initial-order-summary strong{color:var(--text);font-variant-numeric:tabular-nums}
.initial-order-summary:not(:has(:not(:empty))){display:none}
@container(max-width:760px){
 .initial-composer{grid-template-columns:minmax(0,1fr) 65px minmax(95px,1fr) auto}
 .initial-composer-modes{grid-column:1;justify-self:start}
 .initial-composer-search{grid-column:2/-1}
 .initial-order-line{grid-template-columns:minmax(100px,1fr) 90px 65px 100px 32px}
}
@container(max-width:520px){
 .initial-composer{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:9px;gap:9px}
 .initial-composer-modes,.initial-composer-search{grid-column:1/-1}
 .initial-composer-modes{height:44px}
 .initial-composer-modes button{min-height:38px;padding:5px 16px}
 .new-order-entry .initial-composer input,.new-order-entry .initial-order-line input{min-height:44px;height:44px;font-size:16px}
 .initial-composer>[data-initial-stage]{height:44px;min-height:44px}
 .initial-composer-total output{min-height:44px}
 .initial-composer>label,.initial-order-line>label{font-size:12px}
 .initial-order-line{grid-template-columns:minmax(0,1fr) 70px minmax(70px,1fr) 36px;gap:8px}
 .initial-order-line-name{grid-column:1/-1}
 .initial-order-line>[data-initial-line-total]{align-self:end;min-height:44px;display:flex;justify-content:end;align-items:center}
 .initial-order-line>.icon-btn{min-height:44px;height:44px;width:36px}
}
@media(pointer:coarse){
 .initial-composer-modes{height:44px}.initial-composer-modes button{min-height:38px}
 .new-order-entry .initial-composer input,.new-order-entry .initial-order-line input{min-height:44px;height:44px;font-size:16px}
 .initial-composer>[data-initial-stage],.initial-order-line>.icon-btn{min-height:44px;height:44px}
 .initial-composer-total output{min-height:44px}
}
