/* V1.9.8 ergonomic purchasing workflow */
#buyerTargetDashboard{margin-top:16px}
#buyerTargetDashboard .target-summary-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0}
#buyerTargetDashboard .buyer-target-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#buyerTargetDashboard .buyer-target-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
#buyerTargetDashboard .buyer-target-tables>div{min-width:0}
#page-stock #minimumAlertContent .actions,#page-stock .indent-selection-toolbar,.pursal-action-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;position:relative;z-index:2;padding:9px 6px;margin:6px 0 10px;background:#eff8f3;border-radius:9px}
#page-stock #stockTable,#page-stock #indentTable,#page-pursal #pursalTable{min-width:0;max-width:100%;overflow-x:auto;overflow-y:auto;max-height:min(65vh,640px);isolation:isolate}
#page-pursal #pursalTable .hierarchy-table th:first-child,#page-pursal #pursalTable .hierarchy-table td:first-child{position:sticky!important;left:0!important;min-width:195px!important;width:195px!important;max-width:195px!important;background:#f5f9fa!important;z-index:7!important}
#page-pursal #pursalTable .hierarchy-table th:nth-child(2),#page-pursal #pursalTable .hierarchy-table td:nth-child(2){position:sticky!important;left:195px!important;min-width:255px!important;width:255px!important;max-width:255px!important;background:#f5f9fa!important;z-index:6!important;overflow:hidden;text-overflow:ellipsis}
#page-pursal #pursalTable .hierarchy-table thead th:nth-child(-n+2){z-index:12!important;background:#dceee4!important}
.po-config-panel{padding:14px;border:1px solid #d8e8de;border-radius:12px;margin:12px 0;background:#fbfefc}
.po-config-panel .heading{margin-bottom:10px}
.po-metadata-bar,.po-add-field{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:12px 0}
.po-add-field label{flex:1;min-width:220px}
.po-dynamic-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.po-dynamic-fields label{min-width:0}
.po-header-input{display:flex;align-items:center;gap:5px}
.po-header-input input{min-width:0;flex:1}
#poLinesTable{overflow:auto;max-height:min(50vh,500px)}
#poLinesTable .table-scroll{overflow:visible;max-height:none}
#poLinesTable select{min-width:100px;width:100%}
#poLinesTable table{min-width:max-content}
#poLinesTable th{position:sticky;top:0;z-index:2}
@media(max-width:780px){#buyerTargetDashboard .buyer-target-kpis,#buyerTargetDashboard .buyer-target-tables{grid-template-columns:1fr}.po-dynamic-fields{grid-template-columns:1fr}}
