
#page,#page form,dialog form {min-width:0}
#page :is(.r4-toolbar,.toolbar,.nx-actions,.w-filters,.f-toolbar,.f-card-head,.r4-period),
dialog :is(.v2-detail-top,.f-card-head,.nx-actions,.p21-form-footer) {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#page :is(.r4-toolbar,.toolbar,.nx-actions,.f-toolbar,.r4-period)>:is(button,select,input[role=combobox],input[type=search],label select,label input),
dialog :is(.v2-detail-top,.nx-actions,.p21-form-footer)>button {min-height:38px;box-sizing:border-box}
#page :is(.r4-toolbar,.toolbar,.nx-actions,.f-toolbar)>label {min-width:0;margin:0;align-self:end}
:is(button,a)[data-v27-icon=close]::before{content:"×";margin-inline-end:.4em;font-weight:700}
:is(button,a)[data-v27-icon=back]::before{content:"←";margin-inline-end:.4em}
#page[data-v27-area=Approvals] .r4-primary{flex-wrap:wrap;overflow:visible;gap:7px}
#page[data-v27-area=Approvals] .r4-primary button{white-space:normal}
#page[data-v27-area=Purchasing] :is(.hub-tabs,.r4-primary){flex-wrap:wrap;overflow:visible}
#page[data-v27-area=Purchasing] :is(.hub-tabs,.r4-primary) button,#page[data-v27-area=Approvals] .r4-primary button{border-radius:8px;min-height:40px}
#page[data-v27-area=Purchasing] :is(.w-status-tabs,.v2-status-tabs,.f-segments,.e-status) button,
#page[data-v27-area=Approvals] :is(.w-status-tabs,.v2-status-tabs,.f-segments,.e-status) button{border-radius:0;min-height:34px;border-inline-end:1px solid #e0e0e3!important}
body #page[data-v27-area=Purchasing] :is(.w-status-tabs,.v2-status-tabs,.f-segments,.e-status) button:is(.active,[aria-pressed=true]),
body #page[data-v27-area=Approvals] :is(.w-status-tabs,.v2-status-tabs,.f-segments,.e-status) button:is(.active,[aria-pressed=true]){background:#f8eeee!important;color:#a71d34!important;border-bottom:2px solid #be2437!important;border-inline-end-color:#e0e0e3!important}
#page:is([data-v27-area=Approvals],[data-v27-area=Purchasing]) :is(.p18-tab-count,.e-count,.tab-count,.f-count){display:none}
body main .pe23-full-profile .p18-menu-list button {border-radius:7px}
.v27-doc-actions{justify-content:flex-end;align-items:center;margin:8px 0 16px}
.v27-doc-actions>button{height:42px;min-height:42px;box-sizing:border-box;padding-block:0;white-space:nowrap}
.v27-readonly-row>div{min-width:0}
.v27-readonly-row>div>span{display:block;margin-bottom:4px;font-size:.86rem;font-weight:600}
.v27-saved{box-sizing:border-box;min-height:38px;padding:7px 9px;background:#fff;border:1px solid #dedfe4;border-radius:6px;overflow-wrap:anywhere;align-content:center}
.v27-pdf{display:block;width:100%;height:min(52vh,570px);margin:12px 0;border:1px solid #dedfe4}
.v27-invoice-header{margin:12px 0}
.nx-item-scroll{width:100%;max-width:100%;overflow-x:auto}
:where(#page,dialog) .nx-items{table-layout:fixed;border-collapse:collapse;min-width:unset;width:100%;background:#fff}
:where(#page,dialog) .nx-items :is(th,td){border:1px solid #dcdde2;background:#fff;padding:0!important;vertical-align:middle}
:where(#page,dialog) .nx-items th{padding:6px 5px!important;white-space:normal;overflow-wrap:anywhere}
:where(#page,dialog) .nx-items td:is(:nth-child(2),:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(6),:nth-child(7)){min-width:0}
:where(#page,dialog) .nx-items td:is([data-nx-vat],[data-nx-amount]),:where(#page,dialog) .nx-items.v27-readonly-items td{padding:6px!important;overflow-wrap:anywhere;white-space:normal}
:where(#page,dialog) .nx-items:not(.v27-readonly-items) :is(td:first-child,td:last-child,th:first-child,th:last-child){width:31px;text-align:center}
:where(#page,dialog) .nx-items:not(.v27-readonly-items) th:nth-child(3){width:19%}
:where(#page,dialog) .nx-items:not(.v27-readonly-items) th:nth-child(4){width:7%}
:where(#page,dialog) .nx-items label{display:block;margin:0}
:where(#page,dialog) .nx-items :is(input,textarea,select){height:34px;min-height:34px;width:100%;min-width:0;margin:0;border:1px solid transparent;border-radius:0;background:#fff;padding:4px 6px;box-shadow:none}
:where(#page,dialog) .nx-items :is(input,textarea,select):focus{border-color:#be2437;outline:1px solid #be2437;outline-offset:-2px}
:where(#page,dialog) .nx-items textarea{resize:none;field-sizing:content;max-height:85px}
:where(#page,dialog) .nx-items td>button,:where(#page,dialog) .nx-items .nx-edit-line-tools>button,body .v27-component-remove{border:0!important;background:transparent!important;color:#161617!important;padding:0;min-width:28px;min-height:32px;margin:auto;box-shadow:none}
.nx-component-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(115px,.65fr) 34px;align-items:end;gap:8px}
.nx-component-row>.v27-component-remove{align-self:end;margin:0 0 3px;min-height:34px;min-width:34px}
.nx-component-row label{min-width:0;margin:0}
.nx-component-row input{width:100%;min-width:0}
#page .v27-totals{margin-left:auto;padding:0}
@media(max-width:940px){:where(#page,dialog) .nx-items{min-width:760px}}
@media(max-width:650px){.v27-doc-actions{justify-content:flex-start}.nx-component-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.nx-component-row>.v27-component-remove{justify-self:end}.v27-pdf{height:250px}.nx-grid-three,.nx-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:651px){.nx-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.nx-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}}

