.warehouse-format-dialog{width:min(1220px,calc(100vw - 32px));max-height:92dvh;padding:0;border:1px solid var(--line,#e3eaed);border-radius:14px;color:var(--ink,#172d38);background:#fff;box-shadow:0 16px 70px #142f3833}.warehouse-format-dialog::backdrop{background:#142f386b}
.warehouse-format-dialog[open]{display:flex;flex-direction:column}.warehouse-format-dialog>.warehouse-format-head,.warehouse-format-dialog>.warehouse-format-foot{flex:0 0 auto}.warehouse-format-dialog>.warehouse-format-body{min-height:0;flex:1 1 auto}
.warehouse-format-head,.warehouse-format-foot{display:flex;align-items:center;gap:12px;padding:18px 22px;background:#fff}.warehouse-format-head{justify-content:space-between;border-bottom:1px solid var(--line,#e3eaed)}.warehouse-format-head h2{font-size:19px;line-height:1.5;overflow-wrap:anywhere}.warehouse-format-head>.btn{min-width:40px;padding:6px 12px;font-size:22px}.warehouse-format-foot{justify-content:flex-end;border-top:1px solid var(--line,#e3eaed)}.warehouse-format-foot>.btn:first-child{margin-right:auto}
.warehouse-format-body{padding:20px 22px;overflow:auto;max-height:calc(92dvh - 145px)}.warehouse-format-hint{font-size:13px;line-height:1.7;color:var(--muted,#74858d);margin:0 0 12px;overflow-wrap:anywhere}.warehouse-format-status{font-size:13px;line-height:1.7;color:var(--teal,#097f72);margin:0 0 14px}.warehouse-format-status.is-error{color:var(--red,#c94a46)}.warehouse-format-warnings{padding:12px 16px;margin-bottom:14px;border:1px solid #ebdbab;border-radius:8px;background:#fffbee;color:#765c20;font-size:13px;line-height:1.7}.warehouse-format-warnings ul{margin:6px 0 0;padding-left:20px}
.warehouse-format-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:20px;align-items:start}.warehouse-format-editor{display:grid;gap:18px;min-width:0}.warehouse-format-panel,.warehouse-format-preview-panel{border:1px solid var(--line,#e3eaed);border-radius:10px;padding:16px;min-width:0}.warehouse-format-panel h3,.warehouse-format-preview-panel h3{font-size:15px;line-height:1.6;margin:0 0 10px}.warehouse-format-preview-panel{position:sticky;top:0;background:#f5f9f7}
.warehouse-format-field{display:grid;gap:7px;font-size:13px;margin:0 0 12px;min-width:0}.warehouse-format-field input,.warehouse-format-field select{width:100%;min-width:0;min-height:42px;font-size:14px;margin:0}.warehouse-format-groups{display:grid;gap:10px;max-height:360px;overflow:auto}.warehouse-format-product{border:1px solid var(--line,#e3eaed);border-radius:8px;padding:12px}.warehouse-format-product-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.warehouse-format-product-head>div{display:flex;align-items:baseline;gap:10px;min-width:0;overflow-wrap:anywhere}.warehouse-format-product-head .warehouse-format-hint{margin:0;white-space:nowrap}.warehouse-format-product-head>.link-btn{flex-shrink:0}.warehouse-format-product>.warehouse-format-field{margin-bottom:0}.warehouse-format-variants{display:grid;gap:10px;border-top:1px solid var(--line,#e3eaed);padding-top:12px;margin-top:12px}.warehouse-format-variants>.warehouse-format-field{margin:0}
.warehouse-format-section-list{display:grid;gap:8px}.warehouse-format-section{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;background:#f8faf9;border-radius:6px}.warehouse-format-section>label{display:flex;align-items:center;gap:9px;font-size:13px;margin:0;min-width:0}.warehouse-format-section input{margin:0;width:16px;height:16px}.warehouse-format-moves{display:flex;gap:5px;flex-shrink:0}.warehouse-format-moves>.btn{min-width:34px;min-height:34px;padding:4px 8px}.warehouse-format-preview{margin:0;padding:16px;border-radius:10px;background:#fff;border:1px solid var(--line,#e3eaed);font:14px/1.9 system-ui,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;max-height:calc(80dvh - 180px);overflow:auto;tab-size:2}.warehouse-format-dialog [hidden]{display:none!important}
@media(max-width:760px){.warehouse-format-dialog{width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.warehouse-format-head,.warehouse-format-foot{padding:14px 16px}.warehouse-format-head h2{font-size:17px}.warehouse-format-body{padding:16px;max-height:calc(100dvh - 150px)}.warehouse-format-layout{grid-template-columns:minmax(0,1fr);gap:16px}.warehouse-format-preview-panel{position:static}.warehouse-format-preview{max-height:50dvh}.warehouse-format-field input,.warehouse-format-field select{font-size:16px;min-height:46px}.warehouse-format-foot{position:sticky;bottom:0;gap:8px;flex-wrap:wrap}.warehouse-format-foot .btn{min-height:44px}.warehouse-format-groups{max-height:46dvh}.warehouse-format-section{padding:6px}.warehouse-format-moves>.btn{min-width:42px;min-height:42px}}
