.po-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.po-metrics article{background:#fff;border:1px solid #e3e9ef;border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:6px}.po-metrics span{color:#637083;font-size:13px}.po-metrics strong{font:700 24px Manrope}.po-metrics small{color:#8a96a6}.po-panel{overflow:hidden}.po-toolbar{padding:18px 20px;display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #e7edf3}.po-tabs{display:flex;gap:6px}.po-tabs button{border:0;background:transparent;padding:8px 13px;border-radius:8px;font-weight:600;color:#687587;cursor:pointer}.po-tabs button.active{background:#e8f4f1;color:#087767}.po-head,.po-row{display:grid;grid-template-columns:1.05fr 1.1fr 1.2fr .85fr .8fr .8fr .65fr 32px;gap:14px;align-items:center;padding:13px 20px}.po-head{background:#f7f9fb;color:#758194;font-size:11px;font-weight:700;text-transform:uppercase}.po-row{width:100%;border:0;border-top:1px solid #edf1f5;background:#fff;text-align:left;cursor:pointer;color:#243143}.po-row:hover{background:#f9fbfc}.po-row span,.po-row strong{min-width:0}.po-row small{display:block;color:#7a8798;margin-top:3px}.po-empty{padding:48px;text-align:center;color:#748095}.po-modal{width:min(980px,94vw);max-height:92vh;overflow:auto}.po-modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.po-modal-head h2{margin:4px 0}.po-modal-head p{margin:0;color:#69768a}.po-form-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.po-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:#4f5c6f}.po-form input,.po-form select,.po-form textarea,.po-line input,.po-line select{border:1px solid #d9e1e9;border-radius:9px;padding:10px;background:#fff;font:inherit;color:#243143}.po-form textarea{min-height:64px;resize:vertical;margin-top:14px}.po-items-title{display:flex;justify-content:space-between;align-items:center;margin:22px 0 10px}.po-items-title div{display:flex;flex-direction:column;gap:4px}.po-items-title small{color:#758195}.po-lines-head,.po-line{display:grid;grid-template-columns:2fr .55fr .9fr .65fr .85fr 36px;gap:10px;align-items:center}.po-lines-head{padding:8px 10px;background:#f5f8fa;color:#768295;font-size:11px;font-weight:700}.po-line{padding:9px 10px;border-bottom:1px solid #edf1f4}.po-line strong{text-align:right}.po-remove-line{border:0;background:transparent;color:#b13b3b;font-size:18px;cursor:pointer}.po-summary{width:320px;margin:16px 0 0 auto}.po-summary p{display:flex;justify-content:space-between;margin:0;padding:7px 0}.po-summary p:last-child{border-top:1px solid #ccd6e0;margin-top:4px;padding-top:12px;font-size:16px}.po-form-actions{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #e4eaf0;margin-top:18px;padding-top:18px}.po-form-actions>div{display:flex;gap:8px}.danger-btn{border:1px solid #ebc8c8;background:#fff5f5;color:#a92f2f;border-radius:9px;padding:10px 14px;font-weight:600;cursor:pointer}.po-locked input,.po-locked select,.po-locked textarea{background:#f5f7f9;color:#687588}.po-locked .po-remove-line,.po-locked #po-add-line{display:none}@media(max-width:900px){.po-form-grid{grid-template-columns:1fr 1fr}.po-head,.po-row{grid-template-columns:1.1fr 1fr 1fr .8fr .8fr}.po-head span:nth-child(4),.po-head span:nth-child(7),.po-head span:nth-child(8),.po-row>span:nth-child(4),.po-row>span:nth-child(7),.po-row>span:nth-child(8){display:none}}@media(max-width:650px){.po-metrics{grid-template-columns:1fr}.po-toolbar{flex-direction:column}.po-form-grid{grid-template-columns:1fr}.po-lines-head{display:none}.po-line{grid-template-columns:1fr 1fr}.po-line input:first-child{grid-column:1/-1}.po-summary{width:100%}.po-form-actions{flex-direction:column}.po-form-actions>div{justify-content:flex-end}.po-head,.po-row{grid-template-columns:1fr 1fr}.po-head span:nth-child(n+3),.po-row>span:nth-child(n+3),.po-row>strong{display:none}}.po-amount-field input{font-size:16px;font-weight:700;border-color:#9fcfc6}.po-amount-field small{color:#778597;font-size:11px;font-weight:500}.po-link-field{grid-column:span 2;display:flex;flex-direction:column;gap:7px;font-size:12px;color:#4f5c6f}.po-link-field small{color:#748194;font-size:11px;font-weight:500}.po-rollover-preview{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px;padding:14px;border:1px solid #c9dfda;border-radius:12px;background:#f3faf8}.po-rollover-preview>div{display:flex;flex-direction:column;gap:4px}.po-rollover-preview span{font-size:11px;color:#748194}.po-rollover-preview.negative{border-color:#e7baba;background:#fff7f7}.po-rollover-preview.negative>div:last-child strong{color:#b43a3a}@media(max-width:650px){.po-link-field{grid-column:auto}.po-rollover-preview{grid-template-columns:1fr 1fr}}.danger-btn.confirm-delete{background:#a92f2f;border-color:#a92f2f;color:#fff;box-shadow:0 0 0 3px rgba(169,47,47,.12)}.po-link-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:160px;overflow:auto;padding:8px;border:1px solid #d9e1e9;border-radius:9px;background:#fff}.po-link-options.disabled{background:#f5f7f9}.po-link-options>p{grid-column:1/-1;margin:4px;color:#748194}.po-link-options label{display:flex;flex-direction:row;align-items:center;gap:9px;padding:9px;border:1px solid #e4e9ee;border-radius:8px;background:#fff;cursor:pointer}.po-link-options label:has(input:checked){border-color:#5da99b;background:#eef8f5}.po-link-options input{width:auto;margin:0}.po-link-options label span{display:flex;flex-direction:column;gap:2px}.po-link-options label small{font-size:10px}@media(max-width:650px){.po-link-options{grid-template-columns:1fr}}
.po-copy-source{display:grid;grid-template-columns:minmax(240px,1fr) 2fr;gap:14px;align-items:end;margin-bottom:18px;padding:14px;border:1px solid #dbe5eb;border-radius:12px;background:#f8fafb}.po-copy-source[hidden]{display:none}.po-copy-source label{margin:0}#po-copy-balance{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}#po-copy-balance>div{display:flex;flex-direction:column;gap:4px;padding:9px;background:#fff;border-radius:8px}#po-copy-balance span{font-size:11px;color:#748194}#po-copy-balance>small{grid-column:1/-1;color:#a36a20}#po-copy-balance.negative>div:last-of-type strong{color:#b43a3a}@media(max-width:650px){.po-copy-source{grid-template-columns:1fr}#po-copy-balance{grid-template-columns:1fr}}
.po-link-cumulative{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:2px;padding-top:10px;border-top:1px solid #dce6e2}.po-link-cumulative>span{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:8px;background:#e8f4f1;color:#24463f}.po-link-cumulative small{font-size:11px!important;color:#60766f}.po-link-cumulative strong{font:700 13px Manrope;white-space:nowrap}.po-link-cumulative.negative>span:last-child{background:#fff0f0;color:#a83232}@media(max-width:650px){.po-link-cumulative{grid-template-columns:1fr}}
.po-delete-warning{margin-top:16px;padding:12px 14px;border:1px solid #e4b7b7;border-radius:10px;background:#fff4f4;color:#962f2f;font-size:12px;font-weight:600;line-height:1.45}.po-delete-warning[hidden]{display:none}.po-cancel-btn{border-color:#e8c992;background:#fff9ed;color:#9a6421}.status.canceled{background:#eef0f2;color:#66717e}.po-row:has(.status.canceled){background:#fafbfc;color:#78828e}.po-row:has(.status.canceled) .po-amount-progress{text-decoration:line-through}
