/* Requisition and route planning stay separate from inventory and diagram geometry. */
#operations-view,.operations-view{flex:1;min-height:0;overflow:auto;background:#f8faf4;overscroll-behavior:contain}
.operations-workspace{position:relative;padding:26px;max-width:1450px;margin:0 auto;color:var(--ink,#272e29)}
.operations-quantity-check{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.7;margin:14px 0}.operations-quantity-check input{min-width:18px;min-height:18px;width:18px;height:18px;accent-color:#789e43;flex-shrink:0}
.operations-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.operations-heading h2{margin:5px 0 7px;font-size:21px;line-height:1.3;font-weight:650;letter-spacing:-.5px}
.operations-heading p,.operations-section-heading p{margin:0;font-size:11px;line-height:1.7;color:#758568}
.operations-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;max-width:465px}
.operations-actions .btn{min-height:38px;height:auto;padding:9px 12px}
.operations-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:17px}
.operations-stats>div{padding:15px 18px;background:#fff;border:1px solid var(--border,#e5e8e1);border-radius:8px;display:flex;align-items:center;gap:12px}
.operations-stats strong{font-size:25px;font-weight:600;line-height:1}
.operations-stats span{font-size:10px;color:#7c8b70;line-height:1.5}
.operations-stats .has-issues strong{color:#a47836}
.operations-notice{padding:15px 17px;border:1px solid #dce8ca;border-radius:8px;background:#eff5e6;margin-bottom:22px;font-size:11px;line-height:1.7;color:#5b7542}
.operations-notice>strong{display:block;font-size:12px;font-weight:600}
.operations-notice>p{margin:4px 0 0;max-width:950px}
.operations-notice-warning{border-color:#e5d8b9;background:#faf5e9;color:#8a6b34}
.operations-issues{margin-top:12px;padding-top:10px;border-top:1px solid #d8cba64f}
.operations-issues summary{font-size:11px;font-weight:600;cursor:pointer;min-height:28px}
.operations-issues ul{max-height:180px;overflow:auto;margin:7px 0 0;padding-left:21px;scrollbar-width:thin}
.operations-issues li{padding:4px 0;overflow-wrap:anywhere}
.requisition-sheet{border:1px solid #d7dfce;border-radius:9px;background:#fff;overflow:hidden}
.operations-sheet-header{padding:21px;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.75fr);gap:22px;border-bottom:1px solid var(--border,#e5e8e1)}
.operations-sheet-header h3{font-size:19px;margin:8px 0;line-height:1.5;font-weight:650;overflow-wrap:anywhere}
.operations-sheet-header p{font-size:11px;color:#829171;line-height:1.7;margin:0;overflow-wrap:anywhere}
.operations-reference{margin:0;font-size:10px;display:flex;flex-direction:column;gap:9px;align-self:center}
.operations-reference>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px}
.operations-reference dt{color:#829171}
.operations-reference dd{margin:0;font-weight:550;overflow-wrap:anywhere}
.operations-sheet-notes{margin:0;padding:14px 21px;border-bottom:1px solid var(--border,#e5e8e1);font-size:11px;line-height:1.7;display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px}
.operations-sheet-notes>span:first-child{color:#829171;font-size:10px}
.operations-sheet-notes>span:last-child{white-space:pre-wrap;overflow-wrap:anywhere}
.operations-table-wrap{overflow:auto;scrollbar-width:thin;max-width:100%;outline-offset:-3px}
.operations-table{width:100%;min-width:690px;border-collapse:collapse;table-layout:fixed;font-size:11px;line-height:1.6}
.operations-col-number{width:38px}.operations-col-description{width:auto}.operations-col-quantity{width:65px}.operations-col-unit{width:62px}.operations-col-written{width:72px}
.operations-table th,.operations-table td{padding:11px 12px;border-bottom:1px solid #e8ede1;vertical-align:top;text-align:left}
.operations-table thead th{font-size:9px;letter-spacing:.35px;background:#eef3e6;color:#718361;font-weight:600;white-space:normal}
.operations-table thead th:nth-child(n+3){text-align:center}
.operations-category-heading th{background:#f8faf4;padding-block:9px;font-weight:650;font-size:10px;border-top:1px solid #dfe6d6;color:#5c7546}
.operations-category-heading span{font-weight:400;color:#97a38d;margin-left:7px;font-size:9px}
.operations-description strong{font-weight:550;display:block;overflow-wrap:anywhere}
.operations-pick-length{display:block;font-size:10px;margin-top:5px;color:#6b8059}.operations-pick-length b{font-weight:600}
.operations-item-note{font-size:10px;color:#7d8e6e;margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.operations-refs{display:block;font-size:9px;color:#97a58a;margin-top:5px;overflow-wrap:anywhere}
.operations-refs>span:first-child{font-weight:550}
.operations-unknown{display:block;margin-top:5px;font-size:9px;color:#a47836}
.operations-row-unconfirmed{background:#fffcf5}
.operations-table .operations-quantity,.operations-table .operations-unit,.operations-table .operations-write-in{text-align:center;vertical-align:middle}
.operations-quantity{font-weight:650;font-variant-numeric:tabular-nums}
.operations-unit{font-size:10px;overflow-wrap:anywhere;color:#829171}
.operations-line-number{font-size:9px;color:#9aa68f;font-variant-numeric:tabular-nums}
.operations-table .operations-write-in{border-left:1px dashed #dde5d3;background:#fcfdf9}
.operations-screen-dash{color:#c8d1bf;font-size:12px}
.operations-empty{padding:35px 20px!important;text-align:center!important;font-size:11px;color:#7d8e6e}
.operations-sheet-footer{padding:16px 21px 23px;border-top:1px solid var(--border,#e5e8e1)}
.operations-sheet-footer>p{margin:0;font-size:9px;line-height:1.8;color:#91a080;max-width:900px}
.operations-signatures{display:grid;grid-template-columns:1fr 1fr .7fr;gap:25px;margin-top:25px}
.operations-signatures>div{display:flex;align-items:center;gap:8px;font-size:10px;color:#7c8d6b}
.operations-signatures i{flex:1;min-width:20px;border-bottom:1px solid #cad4c0;height:16px}
.operations-extras{margin-top:24px;padding:19px;background:#fff;border:1px solid var(--border,#e5e8e1);border-radius:8px}
.operations-section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}
.operations-section-heading h3,.operations-reference-resources h3{font-size:13px;font-weight:600;margin:0 0 5px}
.operations-extra-list{margin-top:15px;border-top:1px solid var(--border,#e5e8e1)}
.operations-extra-row{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--border,#e5e8e1)}
.operations-extra-row:last-child{border-bottom:0;padding-bottom:0}
.operations-extra-row>div:first-child{min-width:0}
.operations-extra-row strong{font-size:11px;font-weight:550;overflow-wrap:anywhere}
.operations-extra-row small{display:block;font-size:9px;color:#8a997b;margin-top:5px}
.operations-extra-row p{font-size:10px;line-height:1.6;color:#7d8e6e;margin:5px 0 0;overflow-wrap:anywhere}
.operations-extra-actions{display:flex;gap:6px;flex-shrink:0}
.operations-extra-actions .btn{font-size:10px;height:33px;padding-inline:10px}
.operations-muted{font-size:11px;color:#91a080;line-height:1.7;margin:15px 0 0}
.operations-reference-resources{margin-top:23px;padding:18px 0 5px;border-top:1px solid var(--border,#e5e8e1)}
.operations-reference-resources>div{display:flex;flex-wrap:wrap;gap:14px;margin-top:12px}
.operations-reference-resources a{font-size:11px;text-underline-offset:3px;line-height:1.7;color:#698a40}
.operations-reference-resources p{font-size:10px;line-height:1.8;color:#8a997b;margin:10px 0 0}
.operations-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.operations-cable-mark{border:1px solid var(--border,#e5e8e1);border-radius:6px;padding:9px 10px;display:flex;flex-direction:column;gap:5px;margin-bottom:13px}
.operations-cable-mark>span{font-size:9px;color:#8a997b}
.operations-cable-mark strong{font-size:12px;font-weight:600;user-select:text;overflow-wrap:anywhere}
.operations-run-zones{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.operations-run-zones>span{font-size:9px;color:#8a997b;line-height:1.7}
.operations-run-zones b{display:block;font-weight:500;color:var(--ink,#272e29);overflow-wrap:anywhere}
.operations-run-summary{display:flex;flex-direction:column;gap:9px;margin:13px 0 0;font-size:10px;line-height:1.5}
.operations-run-summary>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.operations-run-summary dt{color:#8a997b}
.operations-run-summary dd{margin:0;font-weight:600;text-align:right;overflow-wrap:anywhere}
.operations-run-warnings{list-style:disc;margin:13px 0 0;padding:10px 10px 10px 24px;border:1px solid #e8d9b9;border-radius:5px;background:#faf5e9;color:#9a783b;font-size:10px;line-height:1.7}
.operations-run-warnings li+li{margin-top:5px}.operations-node-zone{margin-top:14px}.operations-node-zone .source-note{margin-top:7px}
.operations-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.operations-field input,.operations-field select,.operations-field textarea{max-width:100%}
@media screen and (max-width:1100px){.operations-workspace{padding:20px}.operations-heading{flex-direction:column;gap:15px}.operations-actions{max-width:none;justify-content:flex-start}.operations-sheet-header{grid-template-columns:1fr;gap:16px}.operations-reference{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.operations-reference>div{display:block}.operations-reference dd{margin-top:4px}}
@media screen and (max-width:620px){.operations-workspace{padding:15px 11px 24px}.operations-heading h2{font-size:19px}.operations-heading p,.operations-section-heading p{font-size:11px}.operations-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:7px}.operations-actions .btn{min-height:44px;font-size:10px;white-space:normal;line-height:1.5;padding:8px}.operations-stats{gap:6px}.operations-stats>div{padding:13px 10px;gap:7px;flex-direction:column;align-items:flex-start}.operations-stats strong{font-size:23px}.operations-stats span{font-size:9px}.operations-notice{font-size:11px;padding:13px}.operations-sheet-header{padding:16px}.operations-sheet-header h3{font-size:17px}.operations-reference{grid-template-columns:1fr 1fr}.operations-reference>div:last-child{grid-column:1/-1}.operations-sheet-notes{display:block;padding:12px 16px}.operations-sheet-notes>span{display:block}.operations-sheet-notes>span:last-child{margin-top:4px}.operations-sheet-footer{padding:14px 16px 20px}.operations-signatures{grid-template-columns:1fr;gap:16px;margin-top:20px}.operations-extras{padding:15px}.operations-section-heading{align-items:flex-start;flex-direction:column;gap:10px}.operations-section-heading .btn{min-height:44px;width:100%}.operations-extra-row{align-items:flex-start;flex-direction:column}.operations-extra-actions{width:100%}.operations-extra-actions .btn{flex:1;min-height:44px;font-size:11px}.operations-reference-resources a{min-height:35px;display:inline-flex;align-items:center}.operations-form-grid{grid-template-columns:1fr}.operations-field input,.operations-field select,.operations-field textarea{min-height:44px;font-size:16px}.operations-run-numbers{grid-template-columns:1fr 1fr}}
@media screen{html[data-theme="dark"] #operations-view,html[data-theme="dark"] .operations-view{background:#141c16}html[data-theme="dark"] :is(.operations-stats>div,.requisition-sheet,.operations-extras){background:var(--surface,#1b221d);border-color:var(--border,#333c35)}html[data-theme="dark"] :is(.operations-heading p,.operations-section-heading p,.operations-stats span,.operations-sheet-header p,.operations-reference dt,.operations-sheet-notes>span:first-child,.operations-item-note,.operations-unit,.operations-sheet-footer>p,.operations-signatures>div,.operations-extra-row small,.operations-extra-row p,.operations-muted,.operations-reference-resources p,.operations-cable-mark>span,.operations-run-zones>span,.operations-run-summary dt){color:var(--text-secondary,#b4c0ae)}html[data-theme="dark"] .operations-table :is(th,td){border-color:var(--border,#333c35)}html[data-theme="dark"] .operations-table thead th{background:#2c3927;color:#c8d9b8}html[data-theme="dark"] .operations-category-heading th{background:#202b21;color:#b8ce9f}html[data-theme="dark"] .operations-category-heading span,html[data-theme="dark"] .operations-refs,html[data-theme="dark"] .operations-line-number{color:#9daa95}html[data-theme="dark"] .operations-row-unconfirmed,html[data-theme="dark"] .operations-table .operations-write-in{background:#252b20}html[data-theme="dark"] .operations-screen-dash{color:#58674b}html[data-theme="dark"] .operations-notice{background:#263520;border-color:#4c623c;color:#bdd5a4}html[data-theme="dark"] .operations-notice-warning,html[data-theme="dark"] .operations-run-warnings{background:#332e20;border-color:#6d5b35;color:#dcc18d}html[data-theme="dark"] .operations-unknown,html[data-theme="dark"] .operations-stats .has-issues strong{color:#dcc18d}html[data-theme="dark"] .operations-reference-resources a{color:#bad693}html[data-theme="dark"] .operations-signatures i{border-color:#617253}}
@media print{
 #print-area.operations-print{height:auto!important;min-height:0!important;width:100%!important;overflow:visible!important}
 .operations-print .requisition-sheet,.requisition-sheet{background:white!important;color:#202820!important;border:0!important;border-radius:0!important;overflow:visible!important;box-shadow:none!important}
 .operations-print .operations-table-wrap,.operations-print .operations-table{overflow:visible!important;min-width:0!important;width:100%!important}
 .operations-table{font-size:9px!important}.operations-table thead{display:table-header-group}.operations-table tfoot{display:table-footer-group}.operations-table tr{break-inside:avoid;page-break-inside:avoid}.operations-category-heading{break-after:avoid}
 .operations-table th,.operations-table td{padding:7px 8px!important;border-color:#d7dfd0!important}.operations-table thead th{background:#edf1e7!important;color:#34432b!important}.operations-category-heading th{background:#f4f6ef!important;color:#34432b!important}.operations-table .operations-write-in{background:white!important;border-left:1px solid #d7dfd0!important;min-height:30px}
 .operations-screen-dash{visibility:hidden!important}.operations-col-number{width:30px}.operations-col-quantity,.operations-col-unit{width:52px}.operations-col-written{width:65px}
 .operations-sheet-header{padding:9px 0 16px;grid-template-columns:minmax(0,1fr) minmax(200px,.65fr);break-inside:avoid}.operations-sheet-header .eyebrow{font-size:8px;color:#647356}.operations-sheet-header h3{font-size:18px}.operations-reference{font-size:9px}.operations-sheet-notes{padding:10px 0;font-size:9px}.operations-sheet-footer{padding:12px 0 0;break-inside:avoid}.operations-sheet-footer>p{color:#6a775e!important}.operations-signatures{margin-top:23px}.operations-pick-length{display:block;font-size:10px;margin-top:5px;color:#6b8059}.operations-pick-length b{font-weight:600}
.operations-item-note{font-size:8px;color:#596650!important}.operations-refs{font-size:7px;color:#6a775e!important}.operations-unknown{color:#7e5925!important}.operations-row-unconfirmed{background:#fffaf1!important}.operations-sheet-header p,.operations-reference dt,.operations-sheet-notes>span:first-child,.operations-signatures>div{color:#596650!important}
 .operations-heading,.operations-stats,.operations-notice,.operations-extras,.operations-reference-resources{display:none!important}
}

html[data-theme="dark"] .operations-pick-length{color:var(--text-secondary,#b4c0ae)}

/* The additional operations tab must stay within the editor on narrow screens. */
.editor-tabs{min-width:0}.view-tabs{overflow-x:auto;min-width:0;flex:1;scrollbar-width:thin}.view-tab{white-space:nowrap;flex-shrink:0}#validation-btn{flex-shrink:0}.node-category{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ops-print-preview{display:block;width:100%;height:min(60vh,650px);border:1px solid var(--border,#d7dfce);border-radius:7px;background:white}
.ops-print-controls{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:15px}.ops-print-controls .field{min-width:130px;flex:1;margin:0}.ops-print-controls input[type=checkbox]{min-width:18px;min-height:18px;width:18px;height:18px;vertical-align:middle;accent-color:#789e43}.ops-print-controls label{line-height:1.6}
@media(max-width:620px){.editor-tabs{max-width:100%}.view-tabs{gap:15px}.ops-print-controls{gap:9px}.ops-print-controls .field{min-width:125px}.ops-print-preview{height:55vh}}
