.modal.wide.purchase-order-modal{width:min(1180px,calc(100vw - 56px));height:min(800px,92vh)}
.purchase-order-modal.wide>.modal-header{padding:22px 28px}.purchase-order-modal.wide>.purchase-order-form{flex:1}
.purchase-order-modal.wide>.purchase-order-form>.modal-content{display:flex;flex-direction:column;overflow:hidden;padding:18px 24px;flex:1}
.purchase-order-form .form-instructions{margin-bottom:14px;flex-shrink:0}.purchase-order-form .error-summary:not(:empty){margin-bottom:12px;flex-shrink:0;padding:10px 14px}
.purchase-order-form .form-sections{min-height:0;display:flex;flex:1}.purchase-order-layout{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:0;flex:1;border:1px solid #dfe9e3;border-radius:10px;overflow:hidden}
.purchase-order-tree{background:#f6f9f7;border-right:1px solid #e0e9e3;padding:20px 12px;overflow-y:auto}.purchase-tree-title{font-size:14px;color:#607066;padding:0 12px 15px;letter-spacing:1px}
.purchase-order-tree [role=tablist]{position:relative;display:flex;flex-direction:column;gap:10px}.purchase-order-tree [role=tablist]:before{content:'';position:absolute;left:24px;top:25px;bottom:25px;width:1px;background:#d6e3da}
.purchase-order-tree [role=tab]{position:relative;display:flex;align-items:center;gap:10px;border:1px solid transparent;background:transparent;padding:12px 10px;border-radius:8px;text-align:left;color:#597063;width:100%;font:inherit}
.purchase-order-tree [role=tab][aria-selected=true]{background:#e6f1eb;border-color:#cfe2d7;color:#155e49}.purchase-order-tree [role=tab]:hover{background:#edf4ef}.purchase-order-tree [role=tab]:focus-visible{outline:2px solid #21735c;outline-offset:-2px}
.purchase-tree-marker{flex-shrink:0;background:#f6f9f7;border:1px solid #cfddd3;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;font-size:12.5px;font-variant-numeric:tabular-nums;z-index:1}.purchase-order-tree [aria-selected=true] .purchase-tree-marker{background:#1d6b50!important;border-color:#1d6b50!important;color:#fff!important}.purchase-is-special .purchase-order-tree [aria-selected=true] .purchase-tree-marker{background:#aa7722!important;border-color:#aa7722!important;color:#fff!important}
.purchase-tree-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.purchase-tree-copy strong{font-size:15px;font-weight:600}.purchase-tree-copy small{font-size:12.5px;color:#5f6f65}.purchase-order-tree .complete .purchase-tree-marker{background:#dceee3;border-color:#b6d5c2;color:#21684c}
.purchase-order-panels{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff}.purchase-order-panel-content{padding:24px 26px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0}
.purchase-order-form .form-section+.form-section{margin:0;padding:0;border:0}.purchase-order-form [hidden]{display:none!important}.purchase-order-form .form-section legend{font-size:17px}.purchase-order-form .form-section>.section-description{margin-bottom:20px}
.purchase-order-form .form-grid{gap:16px 22px}.purchase-order-step-actions{display:flex;gap:15px;align-items:center;justify-content:space-between;border-top:1px solid #e5ece7;padding:11px 20px;flex-shrink:0;background:#fcfdfc}.purchase-order-step-actions .btn{font-size:13px;padding:8px 12px}.purchase-step-status{font-size:13px;color:#617065}
.purchase-mode-card{grid-column:1/-1;border:1px solid #e6ddbf;background:#fffaf0;border-radius:9px;padding:18px;display:flex;gap:12px;align-items:flex-start;cursor:pointer}.purchase-mode-card input{width:18px;height:18px;min-height:0!important;flex-shrink:0;margin:3px 0 0;accent-color:#aa721d}.purchase-mode-card>span{display:flex;flex-direction:column;gap:6px}.purchase-mode-card strong{font-size:15px;color:#775c24}.purchase-mode-card small{color:#7a6a44;font-size:13px;line-height:1.8}
.purchase-order-form .purchase-full{grid-column:1/-1}.purchase-order-form .purchase-mode-guidance{grid-column:1/-1;border-radius:7px;padding:12px 15px;background:#f4f8f5;color:#5d7064;font-size:14px;line-height:1.8}.purchase-order-form .purchase-mode-guidance a{text-decoration:underline;color:#226c53}
.purchase-order-modal.purchase-is-special>.modal-header{background:#fffaf0;border-bottom-color:#eddfbc}.purchase-is-special .purchase-order-layout{border-color:#e8d8b4}.purchase-is-special .purchase-order-tree{background:#fffbf2;border-color:#eadfc6}.purchase-is-special .purchase-order-tree [role=tab][aria-selected=true]{background:#f9edcf;border-color:#e9d39a;color:#865f16}.purchase-is-special .purchase-order-form button[type=submit]{background:#9c6b1b;border-color:#9c6b1b}.purchase-is-special [data-purchase-special-guide]{background:#fff5de;color:#836934}.purchase-is-special .form-footer-note{color:#85672d}
.purchase-special-drafts{border:1px solid #e8d6ac;border-radius:10px;background:#fffcf6;padding:21px;margin:0 0 22px}.purchase-drafts-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.purchase-drafts-heading h2{font-size:16px;color:#77591e;margin:0 0 7px}.purchase-drafts-heading h2 span{font-size:14px;margin-left:6px}.purchase-drafts-heading p{font-size:13px;line-height:1.8;color:#7a6a4b;margin:0}
.purchase-draft-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));gap:12px}.purchase-draft-card{border:1px solid #eddfbd;border-left:4px solid #ca9638;border-radius:8px;background:#fff;overflow:hidden;display:flex;flex-direction:column;min-width:0}.purchase-draft-open{display:flex;flex-direction:column;align-items:flex-start;gap:9px;text-align:left;padding:16px 17px;background:transparent;border:0;font:inherit;flex:1;color:#786544;min-width:0}.purchase-draft-open:hover{background:#fffbef}.purchase-draft-open:focus-visible,.purchase-draft-remove:focus-visible{outline:2px solid #a37a24;outline-offset:-3px}.purchase-draft-open>strong{font-size:15px;color:#6c5223;overflow-wrap:anywhere}.purchase-draft-open>span:not(.purchase-special-badge){font-size:13px;line-height:1.7;overflow-wrap:anywhere}.purchase-draft-open small{font-size:12.5px;color:#7b6949}.purchase-special-badge{display:inline-flex;align-items:center;white-space:nowrap;font-size:12.5px;color:#8a621d;background:#fbefcf;padding:5px 8px;border-radius:4px}.purchase-draft-reason{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.purchase-draft-remove{border:0;border-top:1px solid #f3ead7;background:#fffdf8;font:inherit;font-size:12.5px;color:#7c6948;text-align:right;padding:8px 16px}.purchase-draft-warning{padding:15px 18px;margin-bottom:18px;border:1px solid #ead8ad;background:#fff9eb;color:#816835;font-size:14px;line-height:1.8;border-radius:8px}
.data-table .purchase-order-row{cursor:pointer}.data-table .purchase-order-row:hover{background:#f3f9f5}.data-table .purchase-order-row:focus-visible{outline:2px solid #2e7d61;outline-offset:-3px}.data-table .purchase-item-link{text-align:left;font-size:inherit;padding:0;color:inherit;line-height:1.7}.data-table .purchase-item-link:hover{text-decoration:underline;color:#17614a}
@media(max-width:800px){.purchase-order-layout{grid-template-columns:175px minmax(0,1fr)}.purchase-order-panel-content{padding:20px 18px}.purchase-order-tree{padding:16px 8px}.purchase-tree-copy strong{font-size:14px}.purchase-order-form .form-grid{grid-template-columns:1fr}.purchase-order-form .form-field.full{grid-column:1/-1}}
@media(max-width:600px){.modal.wide.purchase-order-modal{width:100%;height:94vh}.purchase-order-modal.wide>.purchase-order-form>.modal-content{padding:12px}.purchase-order-modal.wide>.modal-header{padding:17px 18px}.purchase-order-layout{display:flex;flex-direction:column}.purchase-order-tree{padding:10px;border-right:0;border-bottom:1px solid #e0e9e3;overflow:visible;flex-shrink:0}.purchase-tree-title{display:none}.purchase-order-tree [role=tablist]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.purchase-order-tree [role=tablist]:before{display:none}.purchase-order-tree [role=tab]{padding:7px 6px;gap:7px}.purchase-tree-marker{width:22px;height:22px;font-size:12px}.purchase-tree-copy small{display:none}.purchase-order-panels{flex:1;min-height:0}.purchase-order-panel-content{padding:18px 15px}.purchase-order-form .form-section legend{font-size:16px}.purchase-order-step-actions{padding:9px 12px}.purchase-special-drafts{padding:15px}.purchase-drafts-heading{flex-direction:column;gap:8px}}
