.proc-toolbar{margin:18px 0;flex-wrap:wrap;gap:10px}.proc-pad{padding:22px;margin-bottom:18px}.proc-guide{background:var(--hub-success-soft);border:1px solid var(--hub-border);border-radius:12px;padding:18px 22px;line-height:1.8}.proc-guide span{color:var(--hub-muted);font-size:13px}.proc-run{font-size:13px;color:var(--hub-muted);margin:15px 0}.proc-alert{padding:15px 18px;background:var(--hub-warning-soft);border:1px solid var(--hub-warning-border);border-radius:10px;margin:14px 0;color:var(--hub-warning);font-size:13px;line-height:1.8}.proc-warning{display:block;color:var(--hub-warning);font-size:12px}.proc-table{min-width:1120px}.proc-table td{vertical-align:top}.proc-table td:nth-child(2){max-width:285px}.proc-sub{display:block;color:var(--hub-muted);font-size:11px;margin-top:5px;line-height:1.5;white-space:normal}.proc-qty{width:90px!important;min-width:70px!important}.proc-picker-row,.proc-receipt{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 0;border-bottom:1px solid var(--hub-border)}.proc-picker-row small{display:block;color:var(--hub-muted);max-width:500px;margin-top:4px}.proc-order-head h2{font-size:26px;margin:12px 0}.proc-order-head p{color:var(--hub-muted);margin-bottom:22px}.proc-approve{background:var(--hub-success)!important;color:var(--hub-on-accent)!important;border:1px solid var(--hub-success-border)!important;padding:13px 24px!important;font-weight:700}.proc-approve:hover{background:var(--hub-success)!important}.proc-approve:disabled{opacity:.5;cursor:wait}.proc-chart{width:100%;max-height:290px;display:block;margin:15px 0}.proc-event{padding:12px 0;border-bottom:1px solid var(--hub-border)}.proc-event b,.proc-event small{display:block}.proc-event pre{white-space:pre-wrap;word-break:break-word;font-size:12px}.proc-tabs{display:flex;gap:10px;border-bottom:1px solid var(--hub-border);margin-bottom:20px}.proc-tabs button{padding:12px 18px;border:0;background:none;color:var(--hub-muted);border-bottom:3px solid transparent;font-size:14px;cursor:pointer}.proc-tabs button.active{border-bottom-color:var(--hub-success-border);color:var(--hub-text);font-weight:700}.proc-supplier-row{display:flex;gap:10px;margin:15px 0}.proc-table .input{font-size:14px}.proc-chart-title{font-size:12px;color:var(--hub-muted)}#proc-map-results .proc-picker-row>div{flex:1}#proc-map-results .select{max-width:180px}#procurement details summary{cursor:pointer;font-weight:600}#procurement .form-grid label{display:flex;flex-direction:column;gap:8px;color:var(--hub-muted);font-size:13px}@media(max-width:900px){.proc-picker-row{flex-wrap:wrap}.proc-tabs{overflow:auto}.proc-table{font-size:12px}}
#proc-receipt-note{min-height:80px;height:90px}#procurement .proc-qty{border:1px solid var(--hub-border);border-radius:7px;padding:9px 10px;font:inherit;background:var(--hub-table)}#procurement .form-grid .input{border:1px solid var(--hub-border);border-radius:7px;padding:10px;font:inherit;background:var(--hub-table)}
.proc-model-summary{margin-top:18px;padding:14px 0 4px}.proc-model-summary>p{margin:7px 0}.proc-advanced{padding:12px 16px;border:1px solid var(--hub-border);border-radius:10px;background:var(--hub-table);margin:10px 0}.proc-advanced>summary{font-size:13px;color:var(--hub-muted)}.proc-advanced .proc-window-control{margin-top:14px}.proc-window-status{margin:10px 0;line-height:1.7}.proc-history-state{padding:16px 18px;border:1px solid var(--hub-border);border-radius:12px;background:var(--hub-table);margin:14px 0}.proc-history-state>div:first-child{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}.proc-history-state>div:first-child>span{color:var(--hub-muted);font-size:12px}.proc-history-sources{display:grid;grid-template-columns:1fr 1fr;gap:16px}.proc-history-sources p{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--hub-muted);line-height:1.5;margin:12px 0}.proc-history-sources p>b{color:var(--hub-text);font-size:13px}.proc-history-sources p.is-stale>span{color:var(--hub-warning)}.proc-history-sources small{font-size:11px}.proc-history-state>.hint{margin:5px 0 0;line-height:1.7}@media(max-width:650px){.proc-history-sources{grid-template-columns:1fr;gap:0}.proc-history-state{padding:14px}.proc-model-summary b{font-size:13px}.proc-toolbar #proc-refresh-history{white-space:normal;text-align:left}}

/* 1.5.2: exclusion management and honest incomplete-data states. */
.proc-filters{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0}.proc-filters label{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--hub-muted)}.proc-filters .input{max-width:320px}.proc-ban-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}.proc-information{padding:12px 16px;border:1px solid var(--hub-border);border-radius:10px;background:var(--hub-surface-soft);color:var(--hub-muted);margin:12px 0;font-size:13px;line-height:1.6}.proc-information summary{cursor:pointer}.proc-row-review{background:var(--hub-surface-soft)}.proc-exclude{margin-left:auto}.proc-table [hidden]{display:none!important}#proc-ban-table{max-height:52vh;overflow:auto}#proc-ban-table thead{position:sticky;top:0;background:var(--hub-table)}#proc-ban-table td{white-space:normal}.op-issue-body .table-scroll{max-height:360px;overflow:auto}.op-issue-body td{white-space:normal;word-break:break-word;min-width:120px}

.proc-filters .input,.proc-filters .select{border:1px solid var(--hub-border);border-radius:7px;padding:9px 11px;font:inherit;background:var(--hub-table);color:var(--hub-muted)}.proc-filters .hint{color:var(--hub-muted);font-size:12px}#proc-ban-table input[type=checkbox]{width:16px;height:16px;min-height:0;padding:0;margin:0;accent-color:var(--hub-accent)}#modal #proc-ban-query{flex:1;width:auto;min-width:180px}#modal #proc-ban-supplier{width:auto;max-width:220px}#modal .proc-toolbar{display:flex}
.proc-order-top-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.proc-order-top-actions>.toolbar{display:flex;gap:10px;flex-wrap:wrap}.proc-order-top-actions .btn:disabled{opacity:.55;cursor:wait}@media(max-width:620px){.proc-order-top-actions>.toolbar{width:100%}.proc-order-top-actions>.toolbar .btn{flex:1;white-space:normal}}

/* 1.5.4 — accessible sortable headers, no inventory operations. */
.proc-table .proc-sort{background:none;border:0;font:inherit;color:inherit;padding:5px 3px;cursor:pointer;text-align:left;white-space:nowrap;border-radius:4px}
.proc-table .proc-sort:hover,.proc-table .proc-sort.active{color:var(--hub-accent);background:var(--hub-surface-soft)}
.proc-table .proc-sort:focus-visible{outline:2px solid var(--hub-border);outline-offset:1px}
.proc-sort-group{display:flex;align-items:center;gap:4px;white-space:nowrap}
.proc-sort span{opacity:.65}

/* Demand observation windows are separate from lead time and stock cover. */
.proc-supplier-row{flex-wrap:wrap}#proc-suppliers .btn{white-space:normal}
.proc-window-control{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0 8px}.proc-window-control>label,.proc-default-window{font-size:13px;color:var(--hub-muted)}.proc-window-control .select{min-width:230px;max-width:100%}.proc-window-control .hint{flex-basis:100%;margin:0}.proc-default-window{display:flex;align-items:center;gap:10px;flex-wrap:wrap}#procurement .proc-sort-group{flex-wrap:wrap}#procurement .proc-table th[data-proc-sort-header="demand"]{min-width:180px}@media(max-width:700px){.proc-window-control{align-items:stretch}.proc-window-control .select{width:100%}}
.proc-history-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.proc-history-check{padding:12px 14px;border:1px solid var(--hub-warning-border);border-radius:8px;background:var(--hub-surface-soft);min-width:0}.proc-history-check p{margin:5px 0;line-height:1.55;color:var(--hub-warning)}.proc-history-check small{display:block;color:var(--hub-muted);line-height:1.6;overflow-wrap:anywhere}.proc-saved-warnings>p{color:var(--hub-muted)}.proc-saved-warnings>.hint{color:var(--hub-muted);line-height:1.6}.proc-saved-warnings>.btn{white-space:normal;text-align:left}@media(max-width:680px){.proc-history-checks{grid-template-columns:1fr}}
.proc-excel-actions{display:flex;flex-wrap:wrap;gap:10px;margin-left:14px}.proc-excel-preview{padding:20px;border:1px solid var(--hub-border);background:var(--hub-surface-soft);border-radius:12px;margin:0 0 20px}.proc-excel-preview-head,.proc-excel-confirm-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.proc-excel-preview h3{font-size:17px;margin:0}.proc-excel-preview p{font-size:13px;line-height:1.65}.proc-excel-table{max-height:440px;overflow:auto}.proc-excel-table table{min-width:650px}.proc-excel-table td{white-space:normal;min-width:140px;vertical-align:top}.proc-excel-table th{position:sticky;top:0;background:var(--hub-surface-soft)}.proc-excel-errors{padding:14px 18px;border:1px solid var(--hub-danger-border);border-radius:8px;background:var(--hub-surface-soft);color:var(--hub-danger);font-size:13px;line-height:1.65}.proc-excel-errors ul{padding-left:20px}.proc-excel-help{font-size:13px;line-height:1.65;margin:14px 0;color:var(--hub-muted)}.proc-excel-confirm-row{margin-top:18px;justify-content:flex-start}.proc-excel-no-change{color:var(--hub-success)}@media(max-width:700px){.proc-excel-actions{margin-left:0;flex-basis:100%}.proc-excel-preview{padding:14px}.proc-excel-preview-head h3{max-width:calc(100% - 92px)}}
#modal .proc-supplier-form{align-items:start}
#modal .proc-supplier-brand-hint{display:block;line-height:1.6;margin:8px 0 0}
#modal .proc-supplier-active{display:flex;align-items:center;align-self:end;gap:9px;min-height:40px;cursor:pointer}
#modal #proc-supplier-enabled{display:inline-block;width:18px;height:18px;min-height:0;padding:0;margin:0;flex:0 0 18px;accent-color:var(--hub-accent)}
#procurement #proc-timezone-hint{font-size:11px;line-height:1.6}
