.opo-page .section-head,.opo-actions,.opo-detail-toolbar,.opo-invoice-bar,.opo-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.opo-page .section-head{justify-content:space-between}.opo-filters{display:grid;grid-template-columns:minmax(200px,1fr) 180px minmax(240px,1.5fr);gap:14px;margin:18px 0}
.opo-filters label,.opo-form label,.opo-dialog-content>label{display:grid;gap:6px;min-width:0;font-size:13px}.opo-filters input,.opo-filters select,.opo-form input,.opo-form select,.opo-form textarea,.opo-dialog-content>label input{width:100%;min-width:0;box-sizing:border-box}
.opo-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;border-block:1px solid #dce3dd;padding:18px 0;margin:14px 0}.opo-summary>div{display:grid;gap:6px}.opo-summary span{font-size:12px;color:#56645e}.opo-summary strong{font-size:20px;font-variant-numeric:tabular-nums}
.opo-table-wrap{overflow:auto;max-width:100%}.opo-table{width:100%;border-collapse:collapse;table-layout:auto;font-size:13px}.opo-table th{font-size:11px;text-transform:uppercase;color:#56645e;background:#f3f6f4;text-align:left}.opo-table td,.opo-table th{padding:12px 10px;border-bottom:1px solid #e2e7e3;vertical-align:middle;overflow-wrap:anywhere}.opo-table td strong,.opo-table td small{display:block}.opo-table td small{color:#68756e;margin-top:3px}.opo-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.opo-table progress{display:block;width:100%;max-width:130px;height:5px;margin-top:6px;margin-left:auto;accent-color:#267752}.opo-table td:first-child{min-width:130px}.opo-state{font-size:12px;display:inline-block;padding:4px 8px;border-radius:4px;background:#eef2f0;white-space:nowrap}.opo-state.open{color:#16664b;background:#e4f2e9}.opo-state.exhausted{color:#825d0b;background:#fff2c8}.opo-state.closed{color:#57615d;background:#e9edef}
.opo-actions{flex-wrap:nowrap}.opo-pagination{justify-content:flex-end;padding:14px 0}.opo-pagination span{font-size:12px;margin-right:auto;color:#59665e}.opo-invoice-bar [hidden],.opo-page [hidden]{display:none!important}
.opo-dialog{box-sizing:border-box;width:min(1160px,calc(100vw - 48px));max-height:calc(100dvh - 48px);padding:0;border:1px solid #cdd7d0;border-radius:8px;color:#21372b;background:#fff;overflow:auto}.opo-dialog::backdrop{background:rgb(0 0 0 / 38%)}.opo-dialog>header{position:sticky;top:0;z-index:2;background:white;padding:18px 22px;border-bottom:1px solid #dce3dd;display:flex;align-items:center;justify-content:space-between;gap:12px}.opo-dialog h2{font-size:20px;margin:0;overflow-wrap:anywhere}.opo-dialog h3{font-size:15px;margin:22px 0 12px}.opo-dialog-content{padding:0 22px 22px}.opo-dialog footer{display:flex;gap:10px;justify-content:flex-end;padding-top:14px;flex-wrap:wrap}.opo-dialog button{max-width:100%}.opo-dialog button svg{width:18px;height:18px;flex-shrink:0}.opo-detail-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px 22px;padding:12px 0}.opo-detail-toolbar{padding:14px 0;border-bottom:1px solid #dce3dd}.opo-dialog .opo-upload{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #d0ddd5;border-radius:4px;cursor:pointer;font-weight:600;color:#195b40;background:#edf4ef}.opo-upload svg{width:18px;height:18px}.opo-notes{white-space:pre-wrap;overflow-wrap:anywhere}.opo-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding-top:20px}.opo-form .opo-wide{grid-column:1/-1}.opo-form .opo-checkbox{display:flex;align-items:center;gap:8px}.opo-form .opo-checkbox input{width:auto}.opo-invoice-bar{padding:12px 0;border-bottom:1px solid #dce3dd;margin-bottom:14px}.opo-invoice-bar>span{flex:1;font-size:13px;min-width:180px}.opo-dialog input[type=checkbox]{width:18px;height:18px;accent-color:#267752}.opo-dialog [hidden]{display:none!important}
@media(max-width:1050px){.opo-filters{grid-template-columns:1fr 1fr}.opo-filters label:last-child{grid-column:1/-1}.opo-table{min-width:760px}}
@media(max-width:600px){.opo-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.opo-dialog-content{padding:0 14px 14px}.opo-form{grid-template-columns:1fr}.opo-form .opo-wide{grid-column:auto}.opo-filters{grid-template-columns:1fr}.opo-filters label:last-child{grid-column:auto}}
