#app-dialog:has(.product-editor){width:min(1060px,96vw);max-width:96vw}#app-dialog:has(.product-editor) #dialog-body{padding:0}.product-editor{font-size:15px;color:#173426}.ped-toolbar{display:flex;gap:10px;padding:14px 20px;background:#f1f6f3;border-bottom:1px solid #dbe5de;flex-wrap:wrap}.ped-toolbar>input{flex:1;min-width:170px;padding:9px 12px;border:1px solid #b9cdbf;border-radius:5px;font:inherit}.ped-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 22px;background:#fff}.ped-heading small{font-size:11px;letter-spacing:1px;color:#64816c}.ped-heading h3{margin:4px 0;font-size:21px}.ped-heading>span{font-size:13px;color:#697c6d}.ped-tabs{display:flex;gap:5px;padding:0 16px 10px;overflow-x:auto;border-bottom:1px solid #dbe5de;background:#fff}.ped-tabs button{border:0;background:#f2f6f3;border-radius:5px;padding:10px 12px;color:#4e6c58;white-space:nowrap;font:600 14px var(--ui-font)}.ped-tabs button[aria-pressed=true]{background:#dcf0e3;color:#117a40}.ped-fields{border:0;margin:0;padding:0 22px;max-height:54dvh;min-height:260px;overflow:auto}.ped-fields [hidden]{display:none!important}.ped-section{border-bottom:1px solid #e1e9e3;padding:6px 0 20px}.ped-section:last-child{border:0}.ped-section h3{font-size:16px;margin:17px 0;color:#244b32}.ped-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 22px}.ped-field{display:flex;flex-direction:column;gap:7px;font-size:14px;min-width:0}.ped-field input,.ped-field select,.ped-field textarea,.ped-table input,.ped-table select{border:1px solid #bccfc2;border-radius:5px;padding:9px 10px;font:15px/1.4 var(--ui-font);min-width:0;width:100%;background:#fff;color:#152c1d}.ped-field>small,.ped-note{font-size:13px;line-height:1.5;color:#6c7e6f}.ped-flags{display:flex;gap:12px 20px;flex-wrap:wrap;margin:18px 0}.ped-check{display:flex;align-items:center;gap:7px;font-size:14px}.ped-check input{accent-color:#159653}.ped-table-scroll{overflow:auto;margin:14px 0;max-height:35dvh}.ped-table{border-collapse:collapse;width:100%;font-size:14px;min-width:450px}.ped-table th{text-align:left;background:#eef5f0;font-weight:600;white-space:nowrap;padding:10px;border:1px solid #dbe5de}.ped-table td{padding:7px 8px;border:1px solid #dbe5de;vertical-align:middle}.ped-table td:first-child{min-width:145px}.ped-table small{display:block;font-size:12px;color:#718575;margin-top:4px}.ped-table input{min-width:90px;padding:7px}.ped-table td>button{white-space:nowrap}.ped-pictures{display:flex;gap:15px;flex-wrap:wrap;margin-top:20px}.ped-pictures figure{margin:0;display:grid;gap:8px;width:130px}.ped-pictures img,.ped-pictures figure>div{width:130px;height:110px;object-fit:contain;border:1px solid #d5dfd7;background:#f8faf8;border-radius:5px}.ped-status{padding:8px 22px;font-size:14px;line-height:1.5;color:#197746;min-height:25px}.ped-status.error{color:#b43d31}#ped-search-results{padding:10px 20px;border-bottom:1px solid #dbe5de;background:#f8fbf9}#ped-search-results .ped-table-scroll{max-height:230px}.ped-search-label{font-size:13px;color:#66816e}.ped-loading{padding:50px;text-align:center;color:#5c7c65}@media(max-width:650px){.ped-toolbar{padding:12px;gap:8px}.ped-toolbar>input{flex-basis:100%;height:42px}.ped-toolbar button{flex:1}.ped-heading{padding:12px;display:block}.ped-heading h3{font-size:19px}.ped-heading>span{display:block;margin-top:8px}.ped-tabs{padding-left:10px}.ped-fields{padding:0 13px;max-height:49dvh;min-height:200px}.ped-form-grid{grid-template-columns:1fr;gap:14px}.ped-field input,.ped-field select,.ped-field textarea{font-size:16px}.ped-heading small{font-size:12px}.product-editor .dialog-actions button{flex:1}.ped-status{padding:8px 13px}.ped-check{font-size:14px}}

#app-dialog:has(.product-editor){height:min(920px,96dvh);max-height:calc(100dvh - 18px);overflow:hidden}
#app-dialog:has(.product-editor)[open]{display:flex;flex-direction:column}
#app-dialog:has(.product-editor) .dialog-heading{flex:none}
#app-dialog:has(.product-editor) #dialog-body{flex:1;min-height:0;overflow:hidden}
.product-editor{height:100%;min-height:0;display:flex;flex-direction:column}
.ped-toolbar,.ped-heading,.ped-tabs,.ped-status,.product-editor>.dialog-actions{flex:none}
.ped-fields{flex:1;min-height:0;max-height:none}
#ped-search-results{flex:none;max-height:28dvh;overflow:auto}
.ped-readback-short{display:none}
@media(max-width:650px){.ped-save-shortcut,.ped-readback-full{display:none}.ped-readback-short{display:inline}.product-editor>.dialog-actions button{min-width:0;flex:1;padding:9px 8px}}

.ped-supplier{position:relative}.ped-supplier-control{display:flex;align-items:center;min-width:0;border:1px solid #bccfc2;border-radius:5px;background:#fff}.ped-supplier-control:focus-within{outline:2px solid #00c9ed;outline-offset:1px}.ped-supplier-control input{flex:1;width:0;border:0;outline:0!important}.ped-supplier-control button{flex:0 0 36px;height:36px;background:transparent;border:0;font-size:23px;color:#536f5c;padding:0}.ped-supplier #ped-supplier-results{border:1px solid #b9cdbf;border-radius:6px;max-height:240px;overflow-y:auto;background:#fff;box-shadow:0 6px 15px #1a3c2820}.ped-supplier [role=option]{display:block;width:100%;padding:10px 12px;background:#fff;border:0;border-bottom:1px solid #e5ece7;text-align:left;font:15px/1.45 var(--ui-font);color:#10291a;white-space:normal;overflow-wrap:anywhere}.ped-supplier [role=option]:hover,.ped-supplier [aria-selected=true]{background:#e6f5eb}.ped-supplier [role=option] strong{font-weight:600;display:block}.ped-supplier [role=option] small{font-size:13px;display:block;color:#526d5b;margin-top:3px}.ped-supplier-none,.ped-supplier-empty{font-size:14px!important;color:#5e7666!important}.ped-supplier-empty{padding:12px}
