#purchase-order-items{min-width:0}#purchase-order-items>p{margin:8px 0 16px}.purchase-order-item{scroll-margin-top:88px;border:1px solid #ccd9de;border-radius:9px;margin:14px 0;padding:14px;min-width:0}.po-item-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}.po-item-fields label{min-width:0}.po-item-fields .po-material{grid-column:span 2}.po-item-fields input,.po-item-fields select{width:100%;min-width:0}.po-item-fields strong{display:block;margin-top:10px}.po-grade-summary{display:flex;flex-direction:column;gap:8px}.po-receipt-draft{margin-top:16px}.po-receipt-draft summary{cursor:pointer;min-height:36px}.po-receipt-draft p{margin:6px 0 12px}.po-item-actions{display:flex;justify-content:flex-end;margin-top:12px}.po-grand-total{display:flex;justify-content:flex-end;gap:16px;padding:16px;background:#eff5f5;border-radius:8px}#purchase-order-grade-dialog{width:min(1000px,calc(100vw - 24px));max-height:90dvh;overflow:auto}#purchase-order-grade-dialog input[type=number]{width:130px;padding:8px}#purchase-order-grade-dialog table{min-width:680px}#purchase-order-grade-dialog .table-wrap{overflow:auto}#purchase-order-grade-error:empty{display:none}@media(max-width:700px){.po-item-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.po-item-fields .po-material{grid-column:1/-1}.po-item-fields input,.po-item-fields select{font-size:16px;min-height:44px}#purchase-order-items>.panel-head{flex-direction:column;gap:10px}}@media(max-width:420px){.po-item-fields{grid-template-columns:minmax(0,1fr)}.po-item-actions button{width:100%;min-height:44px}.po-grand-total{justify-content:space-between}}
#supply-fields .po-header-block{min-width:0;border:1px solid #ccd9de;border-radius:9px;padding:14px;margin:0}.po-header-block legend{font-weight:600}.po-full-width{grid-column:1/-1}.po-payment-methods .po-payment-option{display:flex;align-items:center;gap:8px;min-height:36px}.po-payment-methods .po-payment-option input{width:18px;height:18px;flex:none}.po-header-block .commission-fields{margin-top:4px}@media(max-width:700px){.po-header-block .po-payment-option{min-height:44px}}
.po-balance-options{display:flex;flex-direction:column;justify-content:center;gap:8px}.po-balance-options label{display:flex;align-items:center;gap:8px;min-height:36px}.po-item-fields .po-balance-options input{width:18px;height:18px;min-height:18px;flex:none}@media(max-width:700px){.po-balance-options label{min-height:44px}}

.po-receipt-balance-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,.9fr) minmax(0,1.2fr) minmax(0,1.1fr);gap:12px;align-items:start;min-width:0}.po-receipt-balance-row>label,.po-receipt-balance-row>.po-balance-options{min-width:0}.po-receipt-balance-row input:not([type=checkbox]){width:100%;min-width:0}.po-receipt-balance-row [data-po-excess]{background:#eef5ff;color:#174a8b;font-weight:600}@media(max-width:700px){.po-receipt-balance-row{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.po-receipt-balance-row{grid-template-columns:minmax(0,1fr)}}

.po-control-payment{margin-top:16px!important}.po-control-payment [data-control-terms]{margin-top:12px}.po-control-payment [data-control-dates],#pr-due-dates{overflow-wrap:anywhere}

.boleto-summary{grid-column:1/-1;overflow-wrap:anywhere;color:#315b69;font-size:.9em}.boleto-open{margin-left:8px}#purchase-boleto-dialog{width:min(720px,calc(100vw - 24px));max-height:90dvh;overflow:auto}#purchase-boleto-dialog fieldset{min-width:0}#purchase-boleto-dialog [data-boleto-preview]{overflow-wrap:anywhere}#purchase-boleto-dialog [data-boleto-error]{color:#aa2828}.po-payment-option .boleto-open[hidden]{display:none}

.po-payment-methods .po-payment-option{flex-wrap:wrap}.po-payment-option .boleto-open{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-width:0}

.receipt-payment-route{margin:16px 0!important;min-width:0}.receipt-payment-route>label{display:flex;gap:10px;align-items:flex-start;min-height:44px;padding:6px 0}.receipt-payment-route input[type=radio]{width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px;margin-top:2px}.receipt-payment-route>p{padding:10px;background:#eef5f5;border-radius:6px;overflow-wrap:anywhere}.receipt-payment-route [data-route-status]:empty{display:none}[data-pr-financial][hidden],.po-control-payment[hidden]{display:none!important}

.payment-distribution{margin:12px 0 18px;padding:12px;background:#f0f6f6;border-radius:8px;min-width:0}.payment-distribution>fieldset{min-width:0;border:1px solid #ccd9de}.payment-distribution label:has(input[type=radio]){display:flex;align-items:center;gap:8px;min-height:44px}.payment-distribution input[type=radio]{width:18px!important;min-height:18px!important;height:18px;flex:0 0 18px}.payment-distribution [hidden]{display:none!important}.payment-distribution input[readonly]{font-weight:600}.payment-distribution p{overflow-wrap:anywhere}

.po-grand-total.po-order-totals{display:flex;flex-direction:column;gap:10px}.po-order-totals>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;min-width:0}.po-order-totals strong{white-space:nowrap}.po-order-totals span{min-width:0;overflow-wrap:anywhere}

.po-send-payment[hidden]{display:none!important}.po-send-payment{margin-top:16px}.po-send-payment button{max-width:100%;white-space:normal}

#supply-list-purchase .purchase-order-row-actions{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:5px;white-space:nowrap}#supply-list-purchase .purchase-order-row-actions>button{width:auto;flex:0 0 auto;min-width:0;margin:0;padding:7px 10px;white-space:nowrap}@media(max-width:700px){#supply-list-purchase .purchase-order-row-actions>button{min-height:44px}}

#po-composition{margin:0 0 16px!important;min-width:0}#po-composition .dialog-actions{display:flex;flex-wrap:wrap;gap:8px}#po-composition [hidden]{display:none!important}#po-composition p{overflow-wrap:anywhere}#po-reopen-dialog{width:min(650px,calc(100vw - 24px));max-height:90dvh;overflow:auto}#po-reopen-reason{width:100%;min-height:90px}#po-reopen-error{color:#a52d1c}

#purchase-order-items [data-po-list]{min-width:0}.po-grid-scroll{position:relative;max-width:100%;overflow-x:auto}#purchase-order-items [data-po-grid]{width:100%;min-width:1000px;border-collapse:collapse;table-layout:fixed}#purchase-order-items [data-po-grid] th{padding:12px 8px;background:#f4f6fa;color:#65758b;font-size:11px;text-align:left}#purchase-order-items [data-po-grid] th:nth-child(1){width:42px}#purchase-order-items [data-po-grid] th:nth-child(2){width:130px}#purchase-order-items [data-po-grid] th:nth-child(3){width:240px}#purchase-order-items [data-po-grid] th:nth-child(4){width:115px}#purchase-order-items [data-po-grid] th:nth-child(5){width:65px}#purchase-order-items [data-po-grid] th:nth-child(6),#purchase-order-items [data-po-grid] th:nth-child(7){width:110px}#purchase-order-items [data-po-grid] th:nth-child(8){width:115px}#purchase-order-items [data-po-grid] th:nth-child(9){width:310px}#purchase-order-items [data-po-summary]>td{padding:10px 8px;border-bottom:1px solid #d5dfea;vertical-align:middle;scroll-margin-top:88px}#purchase-order-items [data-po-summary].po-selected{background:#edf5f6}#purchase-order-items [data-po-summary] label{display:block;min-width:0;margin:0}#purchase-order-items [data-po-summary] input,#purchase-order-items [data-po-summary] select{width:100%;min-width:0;padding:7px;font-size:12px}#purchase-order-items [data-po-summary] strong{font-size:12px;white-space:nowrap}.po-grid-field-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#purchase-order-items .po-grid-actions{white-space:nowrap}#purchase-order-items .po-grid-actions button{display:inline-block;width:auto;white-space:nowrap;vertical-align:middle;font-size:11px;padding:6px 8px;margin:0 4px 0 0}#purchase-order-items [data-po-detail-row]>td{padding:0;border:0}.po-grid-detail{position:sticky;left:0;padding:16px;border:1px solid #d5dfea;border-radius:8px;margin:12px 0 18px;box-sizing:border-box;width:var(--po-grid-panel-width,600px);max-width:100%}.po-grid-detail h4{margin:0 0 12px;font-size:14px}.po-grid-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.po-grid-tabs [aria-selected=true]{background:#edf5f6;border-color:#2d5b6b;font-weight:600}.po-grid-detail .po-receipt-draft>summary{display:none}.po-grid-detail .po-receipt-draft{margin:0}.po-grid-detail [data-po-payment-panel]>.po-item-purchases{margin:0 0 14px}#purchase-order-items [hidden]{display:none!important}@media(max-width:700px){#purchase-order-items [data-po-summary] input,#purchase-order-items [data-po-summary] select{font-size:16px;min-height:44px}.po-grid-actions button,.po-grid-tabs button{min-height:44px}.po-grid-detail{padding:12px}}
