#sop-workspace{grid-template-columns:260px minmax(0,1fr);gap:22px}
.sop-categories{gap:5px}.sop-tree-group{margin-top:5px}.sop-tree-parent,.sop-tree-children>div{display:flex;align-items:center;gap:2px;min-width:0}
#sop-workspace .sop-tree-parent>button,#sop-workspace .sop-tree-children>div>button{border:0;padding:7px;background:transparent}
#sop-workspace [data-category],#sop-workspace [data-child]{min-width:0;flex:1;justify-content:space-between;white-space:normal;overflow-wrap:anywhere;text-align:left}
.sop-tree-parent [data-category]{font-weight:700}.sop-tree-parent>button:first-child,.sop-tree-parent>button:last-child,.sop-tree-children>div>button:last-child{flex:0 0 28px;width:28px}
.sop-tree-children{margin:3px 0 8px 17px;padding-left:10px;border-left:1px solid #ceded6}.sop-tree-children[hidden]{display:none}
#sop-workspace .sop-add-child{font-size:13px;padding:6px 8px;border:0;background:transparent;color:#527367}
.sop-library-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.sop-library-heading>strong{font-size:17px;color:#225944;overflow-wrap:anywhere}
.sop-documents .sop-path{font-size:14px;color:#276449;font-weight:600}.sop-category-band{display:flex;gap:10px;align-items:center;padding:10px 12px;background:#eaf3ef;border-left:3px solid #338363;color:#245c46;margin:0 0 16px;overflow-wrap:anywhere}
.sop-preview header .sop-category-band{font-size:15px;font-weight:600;color:#245c46}
.sop-editor .sop-meta-compact{grid-template-columns:1fr 1fr 1fr 1fr;gap:12px 18px}.sop-span-two{grid-column:span 2}.sop-child-control{display:flex;gap:5px;align-items:center}.sop-child-control select{min-width:0;flex:1}.sop-child-control button{margin-top:6px;padding:8px;flex-shrink:0}
.sop-extras{border-bottom:1px solid #dce5e2;margin-top:16px;padding-bottom:12px}.sop-extras summary{cursor:pointer;color:#506d60;font-size:14px;padding:6px 0}.sop-extra-content{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:10px}.sop-extra-content>.sop-images{padding:0;border:0}.sop-extra-content>label{font-size:14px;color:#456052}.sop-extra-content header{margin-bottom:6px}.sop-extra-content .sop-thumbnails figure{width:100px;height:74px;margin-top:6px}
.sop-extra-content .sop-images>.sop-upload{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:88px;margin:8px 0;padding:16px;border:1px dashed #729c8b;border-radius:6px;background:#f4f9f6;color:#245c46;cursor:pointer;box-sizing:border-box}.sop-extra-content .sop-images>.sop-upload:hover{background:#eaf4ef;border-color:#287859}.sop-extra-content .sop-images>.sop-upload:focus-visible{outline:2px solid #287859;outline-offset:3px}
.sop-section-head{margin:18px 0 8px}.sop-section-head>div{display:flex;gap:8px}.sop-section-head small{font-size:13px;font-weight:400;color:#677e71;margin-left:6px}.sop-timing:empty{display:none}
.sop-edit-table{width:100%;table-layout:fixed;border:1px solid #d7e2dc;border-collapse:collapse}.sop-edit-table th{position:sticky;top:-24px;z-index:1;background:#eaf1ed;color:#335746;font-weight:600;font-size:14px;padding:10px}.sop-edit-table td{min-width:0;max-width:none;padding:10px;vertical-align:top;border:1px solid #e0e7e3;background:white}
.sop-editor .sop-edit-table input,.sop-editor .sop-edit-table select,.sop-editor .sop-edit-table textarea{margin:0;font-size:15px;padding:8px;line-height:1.55}.sop-edit-table textarea{min-height:112px;resize:vertical}.sop-time-inputs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:4px;align-items:center}.sop-time-inputs span{font-size:12px;color:#69796e}.sop-edit-table output{display:block;color:#6a7f71;font-size:12px;margin-top:8px}.sop-row-controls{display:flex;flex-direction:column;gap:3px;align-items:center}.sop-editor .sop-row-controls button{padding:5px;min-height:30px;width:30px}.sop-row-controls [data-delete-row]{color:#9d453d}
.sop-stage-manager{width:640px}.sop-stage-manager form{padding:0}.sop-stage-item{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #dce5e2}.sop-stage-item>strong{flex:1;min-width:0;overflow-wrap:anywhere;font-size:15px}.sop-stage-item>span{font-size:12px;color:#61756a;white-space:nowrap}.sop-stage-item>div{display:flex;gap:4px}.sop-stage-item button{padding:5px;width:32px;min-height:32px}.sop-stage-manager #sop-stage-library{max-height:55vh;overflow:auto}
@media(max-width:1000px) and (min-width:801px){.sop-edit-table th,.sop-edit-table td{padding:6px}.sop-time-inputs{grid-template-columns:1fr}.sop-time-inputs span{text-align:center}.sop-edit-table select{padding:6px!important}}
@media(max-width:800px){#sop-workspace{grid-template-columns:1fr}.sop-categories{display:block;max-height:260px;overflow:auto;border-right:0}.sop-categories header{display:flex;position:sticky;top:0;background:#f5f7f7;z-index:1}.sop-categories h2{display:block}.sop-tree-group{margin-top:3px}.sop-editor .sop-meta-compact{grid-template-columns:1fr 1fr;gap:12px}.sop-extra-content{grid-template-columns:1fr;gap:14px}.sop-section-head{align-items:flex-start}.sop-section-head>div{flex-wrap:wrap;justify-content:flex-end}.sop-section-head h3{white-space:nowrap}.sop-editor #sop-add-row,.sop-editor #sop-manage-stages{padding:6px 8px;font-size:13px}.sop-edit-table,.sop-edit-table tbody,.sop-edit-table tr,.sop-edit-table td{display:block;width:100%}.sop-edit-table{border:0}.sop-edit-table thead,.sop-edit-table colgroup{display:none}.sop-edit-table tr{border:1px solid #dce5e2;margin-bottom:14px;padding:8px;background:#fff}.sop-edit-table td{border:0;padding:6px}.sop-edit-table td::before{content:attr(data-label);display:block;font-size:13px;font-weight:600;color:#506b5c;margin-bottom:6px}.sop-edit-table .sop-row-controls{flex-direction:row;justify-content:flex-end}.sop-edit-table .sop-time-inputs{grid-template-columns:1fr auto 1fr}.sop-stage-item{flex-wrap:wrap}.sop-stage-item>div{margin-left:auto}.sop-library-heading{align-items:flex-start}.sop-category-band{font-size:14px}.sop-child-control button{padding:6px}.sop-editor .sop-edit-table textarea{min-height:100px}}
