.simple-job-editor .dialog-top{position:sticky;top:0;background:#fff;z-index:3;border-bottom:1px solid #edf0f5;margin-bottom:14px;padding:16px 20px 12px}.simple-job-fields{display:grid;gap:14px}.simple-job-fields label,.simple-specs label{font-size:12px}.simple-job-fields input,.simple-job-fields select,.simple-job-fields textarea,.simple-specs input,.simple-specs select{font-size:16px;min-height:46px;padding:10px}.simple-spec-title{font-size:13px;font-weight:700;margin:20px 0 12px}.simple-specs{display:grid;grid-template-columns:1fr 1fr;gap:12px}.simple-specs label:last-child{grid-column:1/-1}.simple-job-more{margin:20px 0 8px;border-top:1px solid #dce3ed;padding-top:14px}.simple-job-more summary{font-size:12px;color:#415d85;cursor:pointer;min-height:32px}.simple-job-more[open] summary{margin-bottom:12px}.simple-job-editor [aria-invalid=true]{border-color:#c43f50;background:#fff3f4}.simple-job-editor .form-actions{position:sticky;bottom:-20px;z-index:2;background:#fff;padding:12px 0;margin-top:12px}.simple-job-editor .form-actions .primary{flex:1}
dialog.sheet-editor{width:min(1540px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:96dvh;overflow:auto}
.sheet-editor .dialog-top{padding:16px 24px 12px;position:sticky;top:0;z-index:7;background:#fff;border-bottom:1px solid #edf0f5;margin-bottom:12px}.sheet-editor #dialog-content{padding:0 24px 18px}.sheet-editor .sheet-intro{margin-bottom:16px}
.sheet-common{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:16px;background:#f6f8fc;border:1px solid #dce3ed;border-radius:10px}.sheet-common label,.sheet-dates label{font-size:12px}.sheet-common input,.sheet-common select{background:#fff}
.sheet-common-dates{margin:12px 0}.sheet-common-dates summary{font-size:12px;cursor:pointer;color:#52647f}.sheet-dates{display:grid;grid-template-columns:repeat(2,minmax(0,260px));gap:16px;padding-top:12px}
.sheet-tools,.sheet-tools>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sheet-tools{justify-content:space-between;margin:18px 0 8px}.sheet-tools button{min-height:40px;font-size:12px;padding:8px 12px}.sheet-extra{display:flex;gap:7px;align-items:center;font-size:12px}.sheet-extra input{margin:0}
.sheet-common-hint{font-size:12px;color:#3e5e89;margin:10px 0 0;line-height:1.7}.sheet-help{font-size:11px;color:#64748b;margin:0 0 12px;line-height:1.7}.job-sheet-scroll{max-height:48dvh;min-height:200px;overflow:auto;border:1px solid #b9c7d9;border-radius:8px;background:#fff;overscroll-behavior:contain;scrollbar-gutter:stable;position:relative;isolation:isolate}
.job-sheet-scroll .job-sheet{display:table;table-layout:fixed;border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;margin:0;direction:ltr}.job-sheet-scroll thead{display:table-header-group}.job-sheet-scroll tbody{display:table-row-group}.job-sheet-scroll tr{display:table-row;background:white;margin:0;padding:0;border:0;border-radius:0}.job-sheet-scroll th,.job-sheet-scroll td{display:table-cell;min-width:0;padding:0;border:0;border-right:1px solid #c8d3e1;border-bottom:1px solid #c8d3e1;vertical-align:middle;line-height:1.4;text-align:left!important;font-size:13px;white-space:normal}.job-sheet-scroll td::before{display:none}.job-sheet-scroll tr:last-child td,.job-sheet-scroll tr:last-child th{border-bottom:1px solid #c8d3e1}
.job-sheet-scroll thead th{position:sticky;top:0;z-index:2;padding:12px 9px;background:#edf2f8;color:#34465f;font-size:12px;font-weight:700;white-space:nowrap}.job-sheet-scroll .sheet-row-number{position:sticky;left:0;width:46px;min-width:46px;z-index:1;background:#f4f6fa;text-align:center!important}.job-sheet-scroll thead .sheet-row-number{z-index:3}.sheet-row-number label{display:flex;align-items:center;justify-content:center;gap:4px;flex-direction:column;padding:6px 0;font-size:10px;color:#64748b}.sheet-row-number input{margin:0;width:16px;height:16px;cursor:pointer}
.job-sheet-scroll .sheet-col-instruction{width:130px;min-width:130px}.job-sheet-scroll .sheet-col-customer{width:140px;min-width:140px}.job-sheet-scroll .sheet-col-site{width:180px;min-width:180px}.job-sheet-scroll .sheet-col-cutting_note{width:150px;min-width:150px}.job-sheet-scroll .sheet-col-glass_type,.job-sheet-scroll .sheet-col-urgent{width:90px;min-width:90px}.job-sheet-scroll .sheet-col-argon,.job-sheet-scroll .sheet-col-spacer_kind{width:100px;min-width:100px}.job-sheet-scroll .sheet-col-spacer_thickness{width:112px;min-width:112px}.job-sheet-scroll .sheet-col-production_date,.job-sheet-scroll .sheet-col-tempering_date,.job-sheet-scroll .sheet-col-shipping_date{width:156px;min-width:156px}
.sheet-cell{position:relative;display:flex;align-items:stretch;min-height:44px}.job-sheet-scroll .sheet-cell input,.job-sheet-scroll .sheet-cell select,.job-sheet-scroll .sheet-cell textarea{width:100%;min-width:0;min-height:44px;border:0;border-radius:0;margin:0;padding:10px;background:#fff;box-shadow:none;font:inherit;color:#263a53}.job-sheet-scroll .sheet-cell textarea{resize:vertical;height:44px;min-height:44px;line-height:1.5;white-space:pre-wrap}.job-sheet-scroll .sheet-cell select{appearance:auto;padding-right:4px;cursor:pointer;background:#f8fbff}.job-sheet-scroll .sheet-cell:focus-within{outline:2px solid #315bb5;outline-offset:-2px;z-index:1}.job-sheet-scroll .sheet-cell [aria-invalid=true]{background:#fff1f1;box-shadow:inset 0 0 0 2px #cd4251}.job-sheet-scroll .sheet-cell input::placeholder{color:#8b97a9;font-size:11px}
.job-sheet-scroll .sheet-choice{border:0;border-left:1px solid #e2e8f0;border-radius:0;min-width:28px;min-height:44px;padding:0 4px;background:#f8fbff;color:#4769a5;font-size:18px}.sheet-required{color:#bb3c4d}.job-sheet-scroll .sheet-selected td,.job-sheet-scroll .sheet-selected .sheet-cell input,.job-sheet-scroll .sheet-selected .sheet-cell textarea{background:#f0f5ff}.job-sheet-scroll .sheet-urgent .sheet-row-number{color:#b42c46;background:#fff1f4}
.sheet-status{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:11px;padding:12px 0;color:#6c7c91}.sheet-status strong{color:#2b4c7b;font-size:12px}.sheet-editor .sheet-actions{margin-top:8px;padding-top:12px}.sheet-actions .primary{min-width:150px}.sheet-picker{position:absolute;z-index:6;overflow:auto;background:white;border:1px solid #9eb2d4;border-radius:8px;box-shadow:0 6px 20px #23355430;padding:4px}.sheet-picker button{display:block;text-align:left;width:100%;border:0;border-radius:4px;min-height:40px;font-size:12px;font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere;padding:8px}.sheet-picker button:hover{background:#edf3ff}.sheet-picker p{font-size:12px;padding:10px;margin:0}
@media(max-width:760px){dialog.sheet-editor{width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:97dvh}.sheet-editor .dialog-top{padding:16px 12px 10px}.sheet-editor #dialog-content{padding:0 12px 12px}.sheet-common{grid-template-columns:1fr 1fr;gap:10px;padding:10px}.sheet-common input,.sheet-common select,.sheet-dates input{font-size:14px;min-height:44px;padding:8px}.sheet-tools{align-items:flex-start}.sheet-tools button{min-height:44px;padding:7px 8px;font-size:11px}.sheet-tools>div{gap:5px}.sheet-dates{grid-template-columns:1fr 1fr;gap:10px}.sheet-extra{min-height:36px}.job-sheet-scroll{max-height:45dvh;min-height:240px}.sheet-cell{min-height:48px}.job-sheet-scroll .sheet-choice{min-width:36px}.sheet-status{line-height:1.6}.sheet-actions{position:sticky;bottom:-12px;background:#fff;padding-bottom:12px;z-index:4}.sheet-help{font-size:10px}}
