/* Scoped production editor: internal operations never alter customer documents. */
.modal:has(.jb-editor){max-width:790px;padding:28px;background:#121519;border-color:#333943}
.jb-editor-heading{display:flex;align-items:center;justify-content:space-between;padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid #30353d}
.jb-editor-heading h2{font-size:25px;letter-spacing:-.6px;margin-bottom:6px}
.jb-editor-heading p{font-size:13px;color:var(--text-2);margin:0}
.jb-editor .field{min-width:0}.jb-editor input:not([type=checkbox]),.jb-editor select,.jb-editor textarea{width:100%;min-height:42px;padding:10px 12px;border:1px solid #383f49;border-radius:9px;font-family:inherit;box-sizing:border-box}.jb-editor input,.jb-editor select,.jb-editor textarea{color:#f1f3f7;background:#1c2026;border-color:#383f49;font-size:14px}.jb-editor .field-help{font-size:12px;line-height:1.5;color:#a9b1bd;margin-top:7px}.jb-editor .btn{color:#edf0f5;min-height:40px}.jb-editor .btn-primary{background:var(--accent);color:#fff}
.jb-hold-editor{padding:14px;border:1px solid #494133;border-radius:12px;background:#242017;margin:4px 0 22px}.jb-hold-check{display:flex;align-items:center;gap:10px;color:#f3cb78;font-size:14px;font-weight:750;margin-bottom:10px}.jb-hold-check input{width:18px;height:18px;accent-color:var(--accent)}.jb-hold-editor input[type=text]{width:100%;min-width:0}
.jb-checklist-editor{border:1px solid #333a44;border-radius:13px;padding:17px;margin-bottom:22px;background:#151a20}.jb-editor-section-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:13px}.jb-editor-section-head h3{font-size:15px;font-weight:750;margin:0}.jb-editor-section-head span{font-size:12px;color:#b3bdc9}.jb-template-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}.jb-template-actions .btn{font-size:12px;background:#232b35;border-color:#3b4756}
.jb-edit-check{display:grid;grid-template-columns:20px minmax(0,1fr) 36px;gap:10px;align-items:center;margin:8px 0}.jb-edit-check input[type=checkbox]{width:18px;height:18px;accent-color:#24c994}.jb-edit-check input[type=text]{font-size:13px;min-height:41px}.jb-edit-check:has(input:checked) input[type=text]{color:#98a8a4;text-decoration:line-through}.jb-edit-check .btn{min-width:36px;padding:0;font-size:23px;color:#a7b2c0}.jb-edit-check .btn:hover{background:#40232a;color:#ff9dac}
.jb-check-add{display:flex;gap:9px;margin-top:13px}.jb-check-add input{flex:1;min-width:0}.jb-check-add .btn{flex:none}.jb-editor-links{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:6px}.jb-editor-links #jbArchive{font-size:12px;color:#b5bdc9}.jb-edit-error:empty{display:none}.jb-edit-error{font-size:13px;line-height:1.5;padding:12px;background:#371d25;border:1px solid #ad334c;color:#ffd4dc;border-radius:9px;margin-top:15px}.jb-editor .modal-actions{position:sticky;bottom:-28px;margin:24px -28px -28px;padding:17px 28px;background:#161a20;border-top:1px solid #343b46;z-index:2}.jb-editor .modal-actions .btn{min-width:110px;justify-content:center}.jb-editor :focus-visible{outline:2px solid #91c9ff;outline-offset:3px}
#qdStage{display:flex;flex-wrap:wrap;gap:3px}#qdStage button{min-width:72px;flex:1 0 auto}
@media(max-width:620px){.modal:has(.jb-editor){padding:20px;max-height:94dvh;border-radius:16px}.jb-editor-heading{margin-bottom:18px;padding-bottom:16px}.jb-editor-heading h2{font-size:22px}.jb-editor .frow{flex-direction:column;gap:0}.jb-editor input,.jb-editor select,.jb-editor textarea{font-size:16px;min-height:44px}.jb-checklist-editor{padding:12px}.jb-edit-check{grid-template-columns:20px minmax(0,1fr) 30px;gap:6px}.jb-editor .jb-edit-check input[type=text]{font-size:16px}.jb-edit-check .btn{min-width:30px}.jb-check-add .btn{padding:8px 10px}.jb-template-actions .btn{flex:1;justify-content:center}.jb-editor .modal-actions{bottom:-20px;margin:22px -20px -20px;padding:14px 20px}.jb-editor .modal-actions .btn{flex:1}.jb-editor .field label{font-size:13px}}
@media(prefers-reduced-motion:reduce){.jb-editor *{scroll-behavior:auto!important;transition:none!important}}
/* Per-job workspace */
.modal:has(.jb-editor){max-width:1040px}.jb-editor-heading{gap:20px;margin-bottom:0;border-bottom:0}.jb-editor-heading h2{font-size:27px}.jb-close-workspace{font-size:25px;min-width:42px!important;padding:0!important;align-self:flex-start}.jb-project-tabs{display:flex;gap:8px;margin:0 0 23px;border-bottom:1px solid #343b46;padding-bottom:13px;position:sticky;top:-28px;background:#121519;z-index:4;padding-top:10px}.jb-project-tabs button{flex:1;min-height:46px;border:1px solid #343c47;border-radius:10px;background:#1c222a;color:#b8c3d1;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}.jb-project-tabs button[aria-pressed=true]{background:#442028;border-color:#d52a42;color:#fff;box-shadow:inset 0 -2px 0 #ef3b52}.jb-project-panel[hidden]{display:none!important}.jb-project-panel{min-height:250px}.jb-date-control{display:flex;gap:8px;align-items:center}.jb-date-control input{min-width:0;flex:1}.jb-date-control .btn{white-space:nowrap;padding:8px 10px;font-size:12px}.jb-order-intro{margin-bottom:20px}.jb-order-intro h3,.jb-files-first h3{font-size:21px;margin:0 0 6px}.jb-order-intro p,.jb-files-first p{color:#aeb8c5;font-size:14px;line-height:1.6}.jb-order-items{display:grid;gap:12px;margin-bottom:23px}.jb-order-item{display:grid;grid-template-columns:72px minmax(0,1fr);gap:17px;padding:20px;background:#192028;border:1px solid #35404c;border-radius:13px;align-items:start}.jb-order-qty{font-size:26px;font-weight:800;color:#f3f5f8;text-align:center;background:#293340;padding:12px 5px;border-radius:10px}.jb-order-qty small{display:block;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.6px;color:#acb8c6}.jb-order-item h4{font-size:16px;line-height:1.5;margin:0 0 6px}.jb-order-item p,.jb-order-customer-note p{white-space:pre-wrap;overflow-wrap:anywhere;color:#c0cad7;font-size:14px;line-height:1.6;margin:0}.jb-order-customer-note{border-left:3px solid #55b9da;padding:12px 18px;background:#18232c;margin-bottom:22px}.jb-order-customer-note h4{margin:0 0 8px;font-size:14px;color:#f0f5fc}.jb-order-photo{margin:0 0 23px;background:#1d242c;border:1px solid #35404c;padding:15px;border-radius:13px}.jb-order-photo img{display:block;max-height:360px;max-width:100%;object-fit:contain;margin:auto}.jb-order-photo figcaption{font-size:12px;color:#acb9c9;margin-top:8px}.jb-files-first{padding:32px;border:1px dashed #4b5b6f;border-radius:14px;text-align:center;background:#182029}.jb-editor #jbSaveStatus{margin-top:18px;color:#76dfb2}.jb-editor .modal-actions #jbArchive{margin-right:auto;font-size:12px;color:#b8c1cf;min-width:0}.job-board-ui .jb-job{cursor:pointer}.job-board-ui .jb-job:hover{border-color:#53667b}
@media(max-width:620px){.jb-project-tabs{top:-20px;gap:5px;margin-bottom:20px}.jb-project-tabs button{font-size:12px;min-height:44px;padding:6px}.jb-editor-heading h2{font-size:23px}.jb-editor .jb-date-control input{width:0}.jb-order-item{padding:13px;gap:11px;grid-template-columns:52px minmax(0,1fr)}.jb-order-qty{font-size:22px}.jb-order-item h4{font-size:15px}.jb-order-item p{font-size:13px}.jb-editor .modal-actions{flex-wrap:wrap}.jb-editor .modal-actions #jbArchive{flex-basis:100%;justify-content:flex-start;min-height:28px;padding:0}.jb-editor .modal-actions #jbArchive[hidden]{display:none}.jb-files-first{padding:23px}.jb-order-qty small{font-size:8px}}

.jb-editor [hidden]{display:none!important}
