/* Purchase workbench: task-first, calm visual system */
.jpd-page{height:calc(100vh - 92px);display:flex;flex-direction:column;background:#f5f7f6;color:#24342f;font:13px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.jpd-toolbar{min-height:72px;padding:12px 16px;background:#fff;border-bottom:1px solid #e5eae7;display:grid;grid-template-columns:minmax(190px,.8fr) minmax(430px,1.6fr) auto;align-items:center;gap:14px;box-shadow:0 1px 2px rgba(24,48,39,.04)}
.jpd-title{min-width:0}.jpd-title strong{display:block;font-size:19px;letter-spacing:-.2px}.jpd-title span{display:block;margin-top:2px;color:#7a8883;font-size:12px}
.jpd-filters,.jpd-actions{display:flex;align-items:center;gap:7px}.jpd-filters input{min-width:240px;flex:1}.jpd-actions{justify-content:flex-end}
.jpd-toolbar input,.jpd-toolbar select,.jpd-toolbar button,.jpd-detail button,.jpd-table button,.jpd-modal button{height:34px;border:1px solid #d5ddd9;border-radius:8px;background:#fff;padding:0 11px;color:#344640;transition:border-color .15s,box-shadow .15s,background .15s;white-space:nowrap}
.jpd-toolbar input:focus,.jpd-toolbar select:focus,.jpd-modal input:focus{outline:0;border-color:#4d8a75;box-shadow:0 0 0 3px rgba(77,138,117,.12)}
.jpd-toolbar button:hover,.jpd-detail button:hover,.jpd-table button:hover{border-color:#8a9e96;background:#f8faf9}.jpd-toolbar button.primary,.jpd-detail button.primary,.jpd-table button.primary,.jpd-modal button.primary{background:#326f5c;color:#fff;border-color:#326f5c;box-shadow:0 2px 5px rgba(50,111,92,.18)}
.jpd-toolbar button.primary:hover,.jpd-detail button.primary:hover,.jpd-table button.primary:hover,.jpd-modal button.primary:hover{background:#285d4d;border-color:#285d4d}.jpd-more{color:#66766f!important}
.jpd-workbench{display:grid;grid-template-columns:184px minmax(0,1fr);gap:12px;min-height:0;flex:1;padding:12px}
.jpd-tree,.jpd-list,.jpd-detail{background:#fff;border:1px solid #e2e8e5;border-radius:12px;box-shadow:0 2px 8px rgba(35,62,52,.035)}
.jpd-tree{padding:10px;overflow:auto}.jpd-tree-title{padding:7px 9px 5px;color:#7d8b85;font-size:11px;font-weight:700;letter-spacing:.08em}.jpd-tree-section{margin-top:14px;border-top:1px solid #edf0ee;padding-top:15px}
.jpd-tree button{width:100%;height:38px;border:0;background:transparent;border-radius:8px;display:flex;justify-content:space-between;align-items:center;color:#53645d;padding:0 10px;text-align:left}.jpd-tree button:hover{background:#f2f6f4}.jpd-tree button.active{background:#e9f3ef;color:#24624f;font-weight:650}.jpd-tree b{min-width:24px;text-align:center;font-size:11px;padding:2px 7px;border-radius:999px;background:#eef2f0;color:#63736d}.jpd-tree button.active b{background:#fff;color:#24624f}
.jpd-main{min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px}.jpd-metrics{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:9px}
.jpd-task{position:relative;min-height:78px;padding:11px 14px;border:1px solid #e2e8e5;border-radius:11px;background:#fff;text-align:left;color:#53645d;cursor:pointer;box-shadow:0 2px 7px rgba(35,62,52,.03)}.jpd-task:hover{border-color:#adc1b9;box-shadow:0 4px 12px rgba(35,62,52,.07)}.jpd-task.active{border-color:#5c927f;background:#f0f7f4;box-shadow:inset 0 0 0 1px #5c927f}.jpd-task span{display:block;font-size:12px}.jpd-task b{position:absolute;right:14px;top:9px;color:#326f5c;font-size:24px;line-height:1}.jpd-task small{display:block;margin-top:13px;color:#91a099;font-size:11px}
.jpd-list{height:44%;min-height:210px}.jpd-table-wrap{width:100%;height:100%;overflow:auto;border-radius:12px}.jpd-table{width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap}.jpd-table th{position:sticky;top:0;z-index:1;background:#f7f9f8;color:#65766f;font-size:12px;font-weight:650}.jpd-table th,.jpd-table td{padding:9px 11px;border-bottom:1px solid #edf0ee;text-align:left;max-width:260px;overflow:hidden;text-overflow:ellipsis}.jpd-table tbody tr{cursor:pointer}.jpd-table tbody tr:hover{background:#f7faf8}.jpd-table tr.selected{background:#edf6f2}.jpd-table .num{text-align:right}.jpd-table td>b{font-weight:650}.jpd-table small{display:block;margin-top:2px;color:#8b9993;font-weight:400}.jpd-link{color:#2f6d59}.jpd-muted{color:#a0aaa6}.jpd-done{color:#8b9993;font-size:12px}.jpd-current-action{text-align:right!important;min-width:100px}.jpd-current-action button{min-width:84px}
.jpd-tag{display:inline-block;padding:3px 9px;border-radius:999px;background:#eef2f0;font-size:12px}.jpd-tag.draft{color:#94600e;background:#fff3d9}.jpd-tag.confirmed{color:#2d6580;background:#e8f3f8}.jpd-tag.partial{color:#7852a1;background:#f2ebfa}.jpd-tag.received{color:#287254;background:#e5f5ec}.jpd-tag.cancelled{color:#7b8782;background:#f0f2f1}
.jpd-detail{flex:1;overflow:auto;min-height:190px}.jpd-detail-head{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;border-bottom:1px solid #e8ecea}.jpd-detail-head strong{font-size:15px}.jpd-detail-head span{margin-left:12px;color:#7d8c86}.jpd-detail-head>div:last-child{display:flex;gap:6px}.jpd-tabs{display:flex;border-bottom:1px solid #e8ecea;padding:0 12px}.jpd-tabs button{height:38px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent}.jpd-tabs button.active{color:#2e705a;border-bottom-color:#2e705a;font-weight:650}.jpd-detail-body{padding:10px}.jpd-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.jpd-cards>div{padding:14px;background:#f8faf9;border:1px solid #e6ebe8;border-radius:10px}.jpd-cards span,.jpd-cards b{display:block}.jpd-cards b{font-size:20px;margin-top:5px}
.jpd-note,.jpd-warning,.jpd-empty{padding:18px;color:#7d8c86;text-align:center}.jpd-warning{background:#fff7e9;color:#915c0c;text-align:left;border-radius:8px}.jpd-statusbar{min-height:36px;padding:7px 16px;background:#fff;border-top:1px solid #e2e8e5;display:flex;align-items:center;gap:28px;color:#71817a}.jpd-statusbar span:last-child{margin-left:auto;color:#326f5c;font-weight:600}
.jpd-modal{width:540px;background:#fff;border-radius:12px;box-shadow:0 18px 50px rgba(20,40,33,.22)}.jpd-modal header,.jpd-modal footer{padding:14px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e6ebe8}.jpd-modal footer{justify-content:flex-end;gap:8px;border-top:1px solid #e6ebe8;border-bottom:0}.jpd-modal main{padding:18px;display:grid;grid-template-columns:1fr 1fr;gap:13px}.jpd-modal label{display:grid;gap:6px}.jpd-modal input{height:36px;border:1px solid #d5ddd9;border-radius:8px;padding:0 10px}.jpd-modal .jpd-note{grid-column:1/-1;padding:12px;background:#f1f6f4;border-radius:8px;text-align:left}
@media(max-width:1360px){.jpd-toolbar{grid-template-columns:190px 1fr}.jpd-actions{grid-column:1/-1;justify-content:flex-start}.jpd-metrics{grid-template-columns:repeat(5,minmax(115px,1fr))}}
@media(max-width:1050px){.jpd-toolbar{display:flex;flex-wrap:wrap}.jpd-title{width:100%}.jpd-filters{flex:1;min-width:0}.jpd-workbench{grid-template-columns:150px minmax(0,1fr)}.jpd-metrics{grid-template-columns:repeat(3,1fr)}.jpd-more{display:none}}

.jpd-flow-hint{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding:10px 14px;border:1px solid #dbe7df;border-radius:10px;background:#f7faf8;color:#526159;font-size:13px}.jpd-flow-hint b{color:#24543d;margin-right:2px}.jpd-flow-hint span{white-space:nowrap}.jpd-flow-hint span+span:before{content:"→";margin-right:10px;color:#98a69e}@media(max-width:900px){.jpd-flow-hint{align-items:flex-start;flex-direction:column}.jpd-flow-hint span+span:before{content:"";margin:0}}

/* 20261015 procurement document density tuning */
#tab-purchase-documents .jpd-toolbar,.jpd-page .jpd-toolbar{min-height:56px;padding:8px 12px;gap:9px}
#tab-purchase-documents .jpd-toolbar input,#tab-purchase-documents .jpd-toolbar select,#tab-purchase-documents .jpd-toolbar button,.jpd-page .jpd-toolbar input,.jpd-page .jpd-toolbar select,.jpd-page .jpd-toolbar button{height:30px}
#tab-purchase-documents .jpd-flow-hint,.jpd-page .jpd-flow-hint{margin:0 8px;padding:6px 10px;gap:7px;font-size:12px}
#tab-purchase-documents .jpd-workbench,.jpd-page .jpd-workbench{padding:8px;gap:8px}
#tab-purchase-documents .jpd-main,.jpd-page .jpd-main{gap:7px}
#tab-purchase-documents .jpd-list,.jpd-page .jpd-list{height:58%;min-height:300px}
#tab-purchase-documents .jpd-detail,.jpd-page .jpd-detail{flex:0 0 165px;min-height:145px;max-height:175px}
#tab-purchase-documents .jpd-detail-head,.jpd-page .jpd-detail-head{padding:8px 12px}
#tab-purchase-documents .jpd-detail-body,.jpd-page .jpd-detail-body{padding:7px}
@media(max-width:1050px){#tab-purchase-documents .jpd-list,.jpd-page .jpd-list{height:54%;min-height:260px}#tab-purchase-documents .jpd-detail,.jpd-page .jpd-detail{flex-basis:180px;max-height:195px}}
