/* Shared scoped acceptance handoff UI. */
#developmentWorkbenchRoot .xaf-filter-bar{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;padding:8px 0!important}
#developmentWorkbenchRoot .xaf-filter-bar .dw-search{flex:1 1 220px!important;max-width:320px!important;min-width:200px!important}
#developmentWorkbenchRoot .xaf-filter-bar .dw-search input{width:100%!important;min-width:0!important}
.xaf-state-tabs,.xaf-library-tabs{display:flex;align-items:center;gap:3px;background:#f1f2f4;border-radius:8px;padding:3px;flex:0 0 auto}
.xaf-state-tabs button,.xaf-library-tabs button{border:0;background:transparent;color:#7b8391;white-space:nowrap;padding:8px 12px;border-radius:6px;font:inherit;cursor:pointer}
.xaf-state-tabs button[aria-selected=true],.xaf-library-tabs button[aria-selected=true]{background:#fff;color:#172033;box-shadow:0 1px 3px #17203318}
.xaf-state-tabs span,.xaf-library-tabs span{font-variant-numeric:tabular-nums;margin-left:4px}.xaf-state-tabs button:last-child span{color:#c27c16}
.xaf-filter-menu{position:relative;flex:0 0 auto}.xaf-filter-menu>summary{list-style:none;border:1px solid #dbe2ed;border-radius:7px;padding:10px 12px;cursor:pointer;white-space:nowrap}.xaf-filter-panel{position:absolute;top:calc(100% + 6px);right:0;z-index:300;width:240px;padding:16px;background:#fff;box-shadow:0 8px 30px #15233d24;border:1px solid #dde5ef;border-radius:8px;display:grid;gap:12px}.xaf-filter-panel label{display:grid;gap:5px;color:#6a7890}.xaf-filter-panel select{width:100%!important}
#developmentWorkbenchRoot .xaf-filter-bar>select{width:auto!important;min-width:120px!important;max-width:150px!important;flex:0 0 auto!important}
#developmentWorkbenchRoot .xaf-filter-bar .dw-date-wrap{flex:0 0 auto;min-width:0}.xaf-filter-bar .dw-toolbar-primary{white-space:nowrap!important}
/* Keep the stage action in the existing detail row, five pixels below the node. */
#developmentWorkbenchRoot .xaf-stage-wrap{position:relative;min-width:0;height:100%}
#pickPool #developmentWorkbenchRoot .dw-work-list-shell .xaf-stage-wrap>.dw-progress-stage{width:100%;height:100%;grid-template-rows:18px 28px 18px!important;align-content:center;gap:4px!important;padding:4px 2px!important}
#pickPool #developmentWorkbenchRoot .dw-work-list-shell .xaf-stage-wrap .dw-progress-node{width:28px;height:28px;font-size:28px;box-sizing:border-box}
#developmentWorkbenchRoot .xaf-stage-mark{position:absolute;left:50%;top:calc(50% + 19px);transform:translateX(-50%);display:block;width:max-content;max-width:calc(100% - 4px);height:20px;min-height:20px;line-height:20px;box-sizing:border-box;margin:0;padding:0 8px;border:0;border-radius:999px;outline:none;box-shadow:none;background:#172033;color:#FFFFFF;font-family:inherit;font-size:11px;font-weight:400;text-align:center;white-space:nowrap;cursor:pointer;opacity:0;pointer-events:none;z-index:2}
#developmentWorkbenchRoot .xaf-stage-wrap:hover .xaf-stage-mark,#developmentWorkbenchRoot .xaf-stage-wrap:focus-within .xaf-stage-mark{opacity:1;pointer-events:auto}
#developmentWorkbenchRoot .xaf-stage-mark:hover{background:#293447;color:#FFFFFF}
#developmentWorkbenchRoot .xaf-stage-mark:focus-visible{outline:2px solid #8ab0ff;outline-offset:2px}
#developmentWorkbenchRoot .xaf-stage-wrap:has(.xaf-stage-mark):hover .dw-progress-detail,#developmentWorkbenchRoot .xaf-stage-wrap:has(.xaf-stage-mark):focus-within .dw-progress-detail{visibility:hidden}
#pickPool #developmentWorkbenchRoot .dw-work-list-shell .xaf-stage-wrap.is-incomplete:hover .dw-progress-node,#pickPool #developmentWorkbenchRoot .dw-work-list-shell .xaf-stage-wrap.is-incomplete:focus-within .dw-progress-node{color:#2463eb;transform:scale(1.04);box-shadow:0 0 0 3px #2463eb0d!important}
#pickPool #developmentWorkbenchRoot .dw-work-list-shell .xaf-stage-wrap.is-incomplete:hover .dw-progress-label,#pickPool #developmentWorkbenchRoot .dw-work-list-shell .xaf-stage-wrap.is-incomplete:focus-within .dw-progress-label{color:#2463eb}
#developmentWorkbenchRoot .xaf-stage-wrap.is-incomplete:hover .dw-progress-ring-arc,#developmentWorkbenchRoot .xaf-stage-wrap.is-incomplete:focus-within .dw-progress-ring-arc{stroke:#2463eb}
#developmentWorkbenchRoot .xaf-row-operations{display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:12px;min-height:70px}
#developmentWorkbenchRoot .xaf-row-secondary{display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap}
#developmentWorkbenchRoot .xaf-row-secondary .dw-accept-menu{position:relative;margin:0!important}.xaf-returned{background:#fffbf3!important}.xaf-return-note{color:#b87925;font-size:12px;margin-top:7px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.xaf-popover,.xaf-dialog{color:#17243a;font:14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;background:#fff;border:1px solid #dce4ef;box-shadow:0 10px 32px #152b5126;border-radius:10px;box-sizing:border-box}
.xaf-popover{position:fixed;z-index:12050;max-height:calc(100dvh - 24px);overflow:auto;padding:20px}
.xaf-popover *,.xaf-dialog *{box-sizing:border-box}.xaf-pop-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.xaf-pop-head strong{font-size:19px;color:#142641;line-height:1.5}.xaf-pop-head p{margin:6px 0 0;color:#8190a7;font-size:12px}.xaf-close{padding:0;border:0;background:transparent;color:#8b98ad;font-size:24px;line-height:26px;cursor:pointer}.xaf-status{font-size:11px;font-weight:400;vertical-align:middle;color:#8190a5;background:#f0f3f7;border-radius:12px;padding:3px 9px;margin-left:9px;white-space:nowrap}
.xaf-label{display:block;margin:14px 0 8px;color:#253b5e;font-weight:500}.xaf-label small{color:#8996a9;font-size:12px;font-weight:400}.xaf-reasons{display:flex;gap:6px}.xaf-reasons label{flex:1;position:relative}.xaf-reasons input{position:absolute;opacity:0;width:1px;height:1px}.xaf-reasons span{display:block;text-align:center;border:1px solid #d7e0ec;border-radius:6px;padding:9px 5px;color:#425570;white-space:nowrap;cursor:pointer;font-size:12px}.xaf-reasons input:checked+span{border-color:#2d70f5;color:#2164ef;background:#eff5ff}.xaf-reasons input:focus-visible+span{outline:2px solid #2463eb;outline-offset:2px}
.xaf-dialog textarea,.xaf-popover textarea,.xaf-dialog select{display:block;width:100%;border:1px solid #d8e1ee;border-radius:6px;padding:9px 10px;font:inherit;font-size:13px;color:#253b5e;background:#fff;resize:vertical}.xaf-popover textarea{min-height:68px}.xaf-dialog textarea:focus,.xaf-popover textarea:focus,.xaf-dialog select:focus{outline:2px solid #dce8ff;border-color:#82aafa}
.xaf-popover footer,.xaf-dialog footer{border-top:1px solid #edf0f5;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-top:14px;margin-top:18px}.xaf-popover footer>span{flex:1}.xaf-btn{font:inherit;font-size:13px;min-height:35px;padding:6px 14px;border:1px solid #dbe3ef;border-radius:6px;background:#fff;color:#596d8a;cursor:pointer;white-space:nowrap}.xaf-btn.blue{background:#2766f5;border-color:#2766f5;color:#fff}.xaf-btn:disabled{opacity:.5;cursor:wait}.xaf-link,.xaf-revoke{font:inherit;font-size:12px;border:0;background:none;color:#2766e9;padding:3px;cursor:pointer}.xaf-revoke{color:#8490a3;margin-right:auto}.xaf-error{font-size:12px;color:#c15439;margin-top:10px;white-space:normal}.xaf-error:empty{display:none}.xaf-audit,.xaf-quiet{font-size:12px;color:#8290a5;line-height:1.6;margin:8px 0;white-space:normal;overflow-wrap:anywhere}.xaf-good{font-size:13px;color:#218754}
.xaf-modal-backdrop{position:fixed;inset:0;z-index:12040;background:#12223a4d;display:flex;align-items:center;justify-content:center;padding:24px}.xaf-dialog{width:620px;max-width:100%;max-height:calc(100dvh - 48px);display:flex;flex-direction:column;padding:22px;overflow:auto}.xaf-dialog>.xaf-pop-head{flex:0 0 auto}.xaf-product{display:flex;gap:12px;align-items:center;margin-bottom:16px;text-align:left;min-width:0}.xaf-product img{width:48px;height:48px;object-fit:contain;border-radius:5px;background:#fff;flex-shrink:0}.xaf-product strong{display:block;font-size:15px;color:#17233d}.xaf-product small{display:block;font-size:12px;color:#8794a9;margin-top:3px;overflow-wrap:anywhere}.xaf-product-button{border:0;background:none;padding:0;cursor:pointer;max-width:100%}.xaf-product-button .xaf-product{margin:0}.xaf-review-body{min-height:0;overflow:auto;padding-right:4px}.xaf-review-stage-list{display:grid;gap:7px}.xaf-review-stage-list>div{padding:10px 12px;border:1px solid #e3e9f2;border-radius:6px}.xaf-stage-review-top{display:flex;gap:10px;align-items:center}.xaf-stage-review-top strong{font-size:13px;flex:1}.xaf-stage-review-top small{font-size:11px;color:#6e88a3}.xaf-return-stages label{display:inline-flex;align-items:center;gap:4px;margin:8px 12px 0 0;font-size:12px}.xaf-history,.xaf-return-stages{margin:12px 0;color:#7b89a0;font-size:12px}.xaf-history summary,.xaf-return-stages summary{cursor:pointer}.xaf-all-stages>div{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #edf0f5}.xaf-all-stages strong{flex:1}.xaf-all-stages span{font-size:12px;color:#8793a8}
@media(max-width:1100px){#developmentWorkbenchRoot .xaf-filter-bar .dw-filter-spacer{display:none}.xaf-filter-bar .dw-toolbar-primary{margin-left:auto}.xaf-modal-backdrop{padding:12px}.xaf-dialog{max-height:calc(100dvh - 24px)}#developmentWorkbenchRoot .xaf-filter-bar .dw-search{max-width:none!important}}
@media(hover:none){#developmentWorkbenchRoot .xaf-stage-mark{opacity:1;pointer-events:auto}#developmentWorkbenchRoot .xaf-stage-wrap:has(.xaf-stage-mark) .dw-progress-detail{visibility:hidden}}

#developmentWorkbenchRoot .xaf-filter-bar .dw-date-wrap,#developmentWorkbenchRoot .xaf-filter-bar .dw-date-control{width:auto!important;max-width:none!important;min-width:0!important;flex:0 0 auto!important}
#developmentWorkbenchRoot .xaf-filter-bar .dw-date-btn{width:auto!important;min-width:180px!important;white-space:nowrap!important;padding:9px 12px!important}
#pickPool #developmentWorkbenchRoot .dw-work-list-shell .xaf-stage-wrap:not(:last-child)>.dw-progress-stage::after{content:"";display:block;position:absolute;left:calc(50% + 18px);right:calc(-50% + 18px);top:50%;height:2px;background:#e1e5ec;z-index:-1}
#pickPool #developmentWorkbenchRoot .dw-work-list-shell .xaf-stage-wrap.is-complete:not(:last-child)>.dw-progress-stage::after{background:#a9adb7}
#pickPool #developmentWorkbenchRoot .dw-work-list-shell .xaf-stage-wrap.is-incomplete:hover .dw-progress-node>i,#pickPool #developmentWorkbenchRoot .dw-work-list-shell .xaf-stage-wrap.is-incomplete:focus-within .dw-progress-node>i{color:#2463eb!important}
#developmentWorkbenchRoot .xaf-stage-wrap:last-child>.dw-progress-stage::after{display:none!important}
#developmentWorkbenchRoot .xaf-row-operations>.dw-accept-entry{border-radius:18px!important;min-height:30px!important;padding:5px 14px!important;background:#f0f5ff!important;border:1px solid #a9c5ff!important;color:#2463eb!important}

#mainPage #pickPool #developmentWorkbenchRoot .xaf-filter-bar .dw-date-wrap{width:190px!important;min-width:190px!important;max-width:190px!important;flex:0 0 190px!important}
#mainPage #pickPool #developmentWorkbenchRoot .xaf-filter-bar .dw-date-control,#mainPage #pickPool #developmentWorkbenchRoot .xaf-filter-bar .dw-date-btn{width:100%!important;min-width:0!important;max-width:none!important}
.xaf-popover[data-side=below]::before{content:'';position:absolute;top:-6px;left:var(--xaf-arrow,70%);width:10px;height:10px;background:white;border-left:1px solid #dce4ef;border-top:1px solid #dce4ef;transform:rotate(45deg)}

/* Acceptance is a state filter inside the shared product library list. */
#pickPool #finishedLibraryRoot .dw-filter-bar>.xaf-library-tabs{display:flex;align-items:center;align-self:center;flex:0 0 auto;gap:3px;margin:0;padding:3px;border-radius:8px;background:#f1f2f4;height:42px;box-sizing:border-box}
#pickPool #finishedLibraryRoot .dw-filter-bar>.xaf-library-tabs>button{height:36px!important;min-height:36px!important;padding:6px 12px;border:0;border-radius:6px;background:transparent;color:#7b8391;font:inherit;font-size:13px;line-height:22px;font-weight:400;box-shadow:none!important}
#pickPool #finishedLibraryRoot .dw-filter-bar>.xaf-library-tabs>button[aria-selected=true]{background:#fff;color:#172033;box-shadow:0 1px 3px #17203318!important}
#pickPool #finishedLibraryRoot .xaf-library-tabs button:focus-visible{outline:2px solid #8ab0ff;outline-offset:1px}
#pickPool #finishedLibraryRoot .xaf-library-mine{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;margin:0;color:#74849c;white-space:nowrap;font-size:13px}
#pickPool #finishedLibraryRoot .xaf-library-mine input{accent-color:#2463eb}
#finishedLibraryRoot .xaf-library-review{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:100%;min-width:0}
#finishedLibraryRoot .xaf-library-review>small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:16px;color:#8391a7}
#finishedLibraryRoot .xaf-library-review>.dw-accept-entry.pending{color:#2463eb;background:#f0f5ff;border-color:#a9c5ff}
#finishedLibraryRoot .xaf-pending-watermark{color:#8ca5c8!important}

/* Manual completion keeps its source visible without changing completion rules. */
#pickPool #developmentWorkbenchRoot .dw-work-list-shell .xaf-manual-completion-icon{display:block;width:28px;height:28px;flex:none}
#pickPool #developmentWorkbenchRoot .xaf-pagination-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;min-width:0}
#pickPool #developmentWorkbenchRoot .xaf-pagination-summary .dw-pagination-total{margin-right:0!important}
#pickPool #developmentWorkbenchRoot .xaf-progress-legend{display:inline-flex;align-items:center;gap:14px;flex-wrap:wrap;color:#7d899b;font-size:12px;line-height:18px}
#pickPool #developmentWorkbenchRoot .xaf-progress-legend>span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
#pickPool #developmentWorkbenchRoot .xaf-progress-legend svg{display:block;width:14px;height:14px;flex:none}

/* Submit remains visible; only Lingxing completion enables it. No column sizing changes. */
#developmentWorkbenchRoot .xaf-row-operations>.dw-accept-entry:disabled{background:#f3f4f6!important;border-color:#dfe3e8!important;color:#a0a7b2!important;cursor:not-allowed!important;box-shadow:none!important;opacity:1!important}
#developmentWorkbenchRoot .xaf-row-operations>.dw-accept-entry:not(:disabled):hover{background:#e5eeff!important;border-color:#7da8ff!important}
.xaf-submit-warning{margin:0 0 16px;padding:12px 14px;background:#fff8eb;border:1px solid #f3dfb8;border-radius:10px;color:#80591f;font-size:13px;line-height:1.65}
.xaf-submit-warning strong{font-weight:600}.xaf-submit-warning p{margin:5px 0 7px;color:#877251}.xaf-submit-warning .xaf-link{padding:0}
.xaf-stage-review-top small.is-unfinished{background:#fff4dd;color:#986a20}.xaf-stage-review-top small.is-done{color:#39754e}

/* Operations handoff uses a distinct, light-blue treatment. */
.xaf-dialog.xaf-routing-dialog{width:440px;max-width:calc(100vw - 24px);padding:24px;border-radius:14px;max-height:calc(100dvh - 24px);overflow:auto}
.xaf-routing-dialog .xaf-pop-head{margin-bottom:16px}
.xaf-routing-dialog .xaf-pop-head strong{font-size:20px}
.xaf-routing-dialog .xaf-quiet{margin:0 0 20px;line-height:1.7}
.xaf-treatment-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 18px}
.xaf-treatment-options label.xaf-treatment-choice{display:flex;align-items:center;gap:7px;position:relative;min-width:0;min-height:42px;padding:10px 7px;margin:0;border:1px solid #dce4ef;border-radius:7px;background:#fff;color:#35465f;cursor:pointer;font-size:12px;line-height:18px}
.xaf-treatment-options label.xaf-operations-choice{grid-column:1/-1;min-height:70px;padding:12px 13px;background:#f3f7ff;border-color:#d9e6fb;gap:12px}
.xaf-treatment-options label:has(input:checked){background:#e7f0ff;border-color:#8db6fc}
.xaf-treatment-options label:has(input:focus-visible){outline:2px solid #8db6fc;outline-offset:2px}
.xaf-treatment-options .xaf-treatment-choice input[type=radio]{appearance:auto;-webkit-appearance:radio;position:static!important;opacity:1!important;display:block;flex:0 0 15px;width:15px!important;min-width:15px;height:15px!important;min-height:15px;padding:0!important;margin:0!important;border:0;box-shadow:none;accent-color:#3981f7;transform:none}
.xaf-treatment-copy{display:block;min-width:0;flex:1}
.xaf-treatment-copy strong{display:block;font-size:12px;font-weight:400;white-space:nowrap;color:inherit}
.xaf-operations-choice .xaf-treatment-copy strong{font-size:14px;font-weight:600;color:#263e62}
.xaf-treatment-copy small{display:block;margin-top:4px;font-size:11px;line-height:17px;font-weight:400;color:#6e82a2}
.xaf-treatment-default{font-size:11px;flex:none;color:#3981f7;white-space:nowrap}
.xaf-routing-dialog textarea{min-height:78px;max-height:170px;resize:vertical}
.xaf-routing-dialog .xaf-treatment-hint{font-size:11px;line-height:18px;color:#8798af;margin:8px 0 0}
.xaf-routing-dialog footer{margin-top:20px;padding-top:16px}
.xaf-routing-dialog .xaf-btn.blue,.xaf-inline-manual .xaf-btn.blue{background:#3981f7;border-color:#3981f7}
.xaf-inline-manual .xaf-treatment-options{gap:6px;margin-top:12px;margin-bottom:12px}
.xaf-inline-manual .xaf-treatment-choice{font-size:11px;padding:8px 5px;gap:4px;min-height:38px}
.xaf-inline-manual .xaf-treatment-copy strong{font-size:11px}
.xaf-inline-manual .xaf-operations-choice{padding:10px;min-height:66px;gap:9px}
.xaf-inline-manual .xaf-operations-choice .xaf-treatment-copy strong{font-size:13px}
.xaf-inline-manual .xaf-treatment-copy small{font-size:10px;line-height:16px}
.xaf-submit-legend i.operations,.xaf-operations-legend b{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;background:#e1edff;color:#3981f7;border:1px solid #a9c8fa;border-radius:50%;font:12px/1 Arial,sans-serif;flex:none}
.xaf-stage-review-top small.is-operations,.dw-status.is-operations{background:#e7f0ff!important;color:#3477d9!important;border-color:#d0e2ff!important}
#pickPool #developmentWorkbenchRoot .xaf-stage-wrap.is-operations .dw-progress-detail{color:#000000;font-size:11px}
#developmentWorkbenchRoot .xaf-stage-wrap.is-operations .dw-progress-node{background:transparent!important;box-shadow:none!important}
.xaf-submit-step.is-operations{position:relative}
.xaf-operations-caption{position:absolute;top:100%;left:0;width:100%;font-size:10px;line-height:16px;color:#3477d9;text-align:center;white-space:nowrap}
.xaf-submit-track:has(.is-operations){margin-bottom:26px}
@media(max-width:480px){.xaf-dialog.xaf-routing-dialog{padding:19px 16px}.xaf-routing-dialog .xaf-pop-head strong{font-size:18px}.xaf-treatment-options{gap:6px}.xaf-treatment-options label.xaf-treatment-choice{gap:5px;padding:9px 5px}.xaf-treatment-options label.xaf-operations-choice{padding:11px 10px;gap:10px}.xaf-treatment-copy strong{font-size:11px}.xaf-operations-choice .xaf-treatment-copy strong{font-size:14px}.xaf-treatment-copy small{font-size:10px}.xaf-treatment-default{font-size:10px}.xaf-routing-dialog .xaf-quiet{font-size:11px}}
