.templates-panel{background:#fff;border:1px solid #d9e2ef;border-radius:12px;padding:20px}.templates-panel header,.template-list article{justify-content:space-between;align-items:center;gap:16px;display:flex}.templates-panel h2{margin:0 0 8px;font-size:22px}.templates-panel h3{margin:0 0 8px;font-size:17px}.templates-panel p{margin:8px 0 16px}.templates-panel label{flex-direction:column;gap:8px;font-size:16px;display:flex}.templates-panel select,.templates-panel textarea{font:inherit;background:#fff;border:1px solid #aebed4;border-radius:6px;width:100%;padding:10px}.templates-panel textarea{resize:vertical;line-height:1.5}.templates-panel fieldset{border:0;min-width:0;padding:0}.template-fields{grid-template-columns:2fr 1fr;gap:16px;display:grid}.template-editor-grid{grid-template-columns:minmax(0,1fr) 240px;gap:24px;margin-top:20px;display:grid}.template-editor-grid>div{gap:16px;display:grid}.template-editor-grid aside{background:#f1f6ff;border-radius:8px;align-self:start;padding:16px}.template-editor-grid aside button{text-align:left;font:inherit;color:#1755a9;cursor:pointer;background:#fff;border:1px solid #c5d6ed;border-radius:5px;width:100%;margin:6px 0;padding:8px;font-size:14px;display:block}.template-actions,.template-filters{flex-wrap:wrap;align-items:center;gap:12px;margin:20px 0;display:flex}.templates-panel .template-check{flex-direction:row;align-items:center;gap:8px;margin-top:14px;display:flex}.template-list article{border-top:1px solid #e2e8f0;padding:18px 0}.template-list p{color:#50617b;margin:0}.templates-panel iframe{background:#fff;border:1px solid #b7c9e1;width:100%;height:660px}.templates-panel pre{white-space:pre-wrap;overflow-wrap:anywhere}.templates-panel summary{cursor:pointer;margin:12px 0}.templates-panel input[type=checkbox]{width:18px;height:18px}@media (width<=760px){.template-editor-grid,.template-fields{grid-template-columns:1fr}.templates-panel header,.template-list article{flex-direction:column;align-items:flex-start}.template-editor-grid aside{max-height:300px;overflow:auto}.templates-panel{padding:14px}}.warehouse-field{gap:5px;min-width:0;font-size:.875rem;font-weight:700;display:grid}.warehouse-field-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.warehouse-field-head button{color:#1d4ed8;font:inherit;cursor:pointer;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;align-items:center;gap:4px;padding:4px 7px;font-size:.75rem;display:flex}.warehouse-field-head button svg{width:14px;height:14px}.warehouse-field select{width:100%;height:42px;font:inherit;color:#334155;background:#fff;border:1px solid #dbe1ea;border-radius:7px;padding:0 10px;font-weight:400}.warehouse-manager{max-width:620px!important}.warehouse-add{grid-template-columns:1fr auto;gap:8px;display:grid}.warehouse-add svg,.warehouse-list svg{width:16px}.warehouse-list{gap:7px;max-height:42vh;display:grid;overflow:auto}.warehouse-list>div{border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:10px;padding:9px 11px;display:flex}.warehouse-list span{flex-direction:column;flex:1;display:flex}.warehouse-list small{color:#64748b;font-weight:400}.warehouse-directory{justify-content:space-between;align-items:center;gap:16px;padding:20px;display:flex}.warehouse-directory>div{align-items:center;gap:12px;display:flex}.warehouse-directory>div>svg{color:#2563eb;background:#eff6ff;border-radius:9px;width:38px;height:38px;padding:8px}.warehouse-directory p{flex-direction:column;margin:0;display:flex}.warehouse-directory span{color:#64748b;font-size:.875rem}.warehouse-load-error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;justify-content:space-between;gap:10px;padding:9px 11px;font-size:.875rem;font-weight:500;align-items:center!important;display:flex!important}.warehouse-load-error button{flex:none}@media (width<=560px){.warehouse-add{grid-template-columns:1fr}.warehouse-add button{width:100%}.warehouse-field-head{flex-direction:column;align-items:flex-start}.warehouse-directory{flex-direction:column;align-items:stretch}.warehouse-directory>button{width:100%}.warehouse-load-error{flex-direction:column;align-items:stretch!important}}.stock-location-field{gap:8px;min-width:0;font-size:14px;display:grid}.stock-location-trigger{text-align:left;white-space:normal;justify-content:space-between;width:100%;height:auto;min-height:40px}.stock-location-trigger span{overflow-wrap:anywhere}.stock-location-popover{width:var(--radix-popover-trigger-width);color:#0f172a;background:#fff;max-width:calc(100vw - 40px);padding:12px}.stock-location-options{max-height:220px;margin:8px 0;overflow:auto}.stock-location-options button{text-align:left;overflow-wrap:anywhere;border-radius:5px;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:10px;font-size:16px;display:flex}.stock-location-options button:hover,.stock-location-options button:focus-visible{background:#eaf2ff}.stock-location-options p{color:#64748b;padding:10px;font-size:14px}.stock-location-new{white-space:normal;overflow-wrap:anywhere;width:100%;height:auto;min-height:40px}.stock-location-empty{color:#475569;padding:10px;font-size:14px;display:block}.stock-location-options small{color:#64748b;font-size:14px;font-weight:400;display:block}.stock-location-popover{max-height:var(--radix-popover-content-available-height);overflow:auto}.stock-control-dialog{flex-direction:column;max-height:90dvh;display:flex;overflow:auto;width:min(94vw,900px)!important;max-width:900px!important}.stock-control-list{gap:12px;min-height:0;display:grid;overflow:auto}.stock-control-list article{overflow-wrap:anywhere;border:1px solid #cbd5e1;border-radius:8px;padding:16px;font-size:16px}.stock-control-list p{color:#475569;margin:7px 0}.stock-buttons{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.stock-diff{margin-top:10px;font-size:14px}.stock-diff>div{border-top:1px solid #e2e8f0;grid-template-columns:minmax(100px,1fr) minmax(0,3fr);gap:12px;padding:7px 0;display:grid}.stock-diff dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.stock-proof{object-fit:contain;vertical-align:middle;max-width:120px;max-height:100px;display:inline-block}.stock-control-dialog label{font-size:16px}
