.v2-pw{display:grid;gap:20px;min-width:0;color:#222320;font:14px/1.5 'Plus Jakarta Sans',sans-serif}.v2-pw *{box-sizing:border-box}.v2-pw h2{font-size:20px;margin:0 0 12px}.v2-pw h3{font-size:16px;margin:0 0 12px}.v2-pw p{margin:0 0 12px}.v2-pw small{display:block;color:#6b706c;font-size:12px}.v2-pw-panel{background:#fff;border:1px solid #e8e6e1;border-radius:18px;padding:20px;min-width:0}.v2-pw-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.v2-pw-source{font-size:12px;color:#6b706c;overflow-wrap:anywhere}.v2-pw-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #e8e6e1;border-radius:10px;background:#fff;color:#222320;min-height:44px;padding:10px 14px;font:inherit;text-decoration:none;cursor:pointer}.v2-pw-button svg{flex-shrink:0}.v2-pw-button.is-primary{background:#24241f;border-color:#24241f;color:#fff}.v2-pw :focus-visible{outline:3px solid #c54118;outline-offset:3px}.v2-pw-note{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;background:#f1f4f3;color:#46534c;border-radius:12px}.v2-pw-note svg{flex-shrink:0}.v2-pw-note.is-warning{background:#fff0e8;color:#8b3517}.v2-pw-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.v2-pw-columns>section{min-width:0}.v2-pw-lines{margin:0}.v2-pw-lines>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #e8e6e1}.v2-pw-lines dd{margin:0;text-align:right;font-weight:500;overflow-wrap:anywhere}.v2-pw-status{display:inline-block;padding:6px 10px;background:#fff0e8;border-radius:8px;font-size:12px;color:#8b3517}.v2-pw-table{overflow:auto;background:white;border:1px solid #e8e6e1;border-radius:16px}.v2-pw-table table{width:100%;border-collapse:collapse}.v2-pw-table caption{padding:16px;text-align:left;font-size:20px;font-weight:700}.v2-pw-table thead{background:#f6f5f2}.v2-pw-table th,.v2-pw-table td,.surface-dashboard .v2-pw-table th,.surface-dashboard .v2-pw-table td{padding:14px 16px;text-align:left;border-bottom:1px solid #e8e6e1;font-size:14px;font-weight:400;letter-spacing:normal;text-transform:none;overflow-wrap:anywhere}.v2-pw-table th{font-weight:600}.v2-pw-table td .v2-pw-button{margin:3px 0}.v2-pw-table tbody tr:has([aria-current=true]){background:#fff0e8}.v2-pw-form{display:grid;gap:16px}.v2-pw-form label{display:grid;gap:6px}.v2-pw-form input,.v2-pw-form select,.v2-pw-form textarea{font:16px/1.5 'Plus Jakarta Sans',sans-serif;min-height:44px;padding:10px 12px;border:1px solid #d5d8d3;border-radius:10px;width:100%;color:#222320;background:#fff}.v2-pw-form footer{display:flex;justify-content:flex-end;gap:10px}.v2-pw-form [role=status]{overflow-wrap:anywhere}
@media(max-width:700px){.v2-pw{gap:16px}.v2-pw-columns{grid-template-columns:1fr}.v2-pw-panel{padding:16px}.v2-pw-toolbar{align-items:stretch}.v2-pw-toolbar>.v2-pw-button{flex:1}.v2-pw-table{border:0;background:transparent;overflow:visible}.v2-pw-table table,.v2-pw-table tbody{display:block}.v2-pw-table thead{display:none}.v2-pw-table caption{display:block;padding:0 0 12px}.v2-pw-table tbody tr{display:block;border:1px solid #e8e6e1;border-radius:16px;background:#fff;padding:14px;margin-bottom:12px}.v2-pw-table tbody th,.v2-pw-table tbody td,.surface-dashboard .v2-pw-table tbody th,.surface-dashboard .v2-pw-table tbody td{display:block;padding:6px 0;border:0}.v2-pw-table td:before{content:attr(data-label) ': ';color:#6b706c}.v2-pw-table td[data-label=Aksi]:before{display:none}}
.v2-pw-dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;background:#fff;border:1px solid #e8e6e1;border-radius:18px;overflow:auto}.v2-pw-dialog:not([open]){display:none}.v2-pw-dialog::backdrop{background:rgb(34 35 32 / 28%)}.v2-pw-dialog>[data-settings-close]{justify-self:end}.v2-pw-dialog .v2-pw-form h2{font-size:24px}.v2-pw-dialog footer{position:sticky;bottom:-24px;background:#fff;padding:12px 0}
@media(max-width:700px){.v2-pw-dialog{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:16px;border-radius:0}.v2-pw-dialog .v2-pw-form h2{font-size:22px}}
#v2-purchasing-workflows{min-width:0;max-width:100%}.inventory-workspace-panel:has(>#v2-purchasing-workflows){grid-template-columns:minmax(0,1fr)}.surface-dashboard .v2-pw-table table{min-width:0;max-width:100%}

@media(max-width:640px){dialog.v2-pw-dialog{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;box-sizing:border-box}}

.v2-pw-form-section{display:grid;gap:16px;padding:16px;border:1px solid #e8e6e1;border-radius:12px;min-width:0}.v2-pw-form-section h3{margin:0}.v2-pw-impact{background:#f6f5f2;border-radius:12px;padding:16px}.v2-pw-impact .v2-pw-lines>div:last-child{border-bottom:0}.v2-pw-form header p{color:#6b706c}.v2-pw-form-section .v2-pw-lines dd{max-width:65%}.v2-pw-dialog>[data-settings-close]{padding:8px;min-width:44px}

.v2-pw-receipt-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.v2-pw-receipt-search label{display:grid;gap:8px;flex:1;min-width:180px}.v2-pw-receipt-search input{font:inherit;min-height:44px;padding:10px 12px;border:1px solid #d5d8d3;border-radius:10px;box-sizing:border-box;width:100%}.v2-pw-receipt-history{min-width:0}.v2-pw-receipt-history.is-bounded{max-height:560px;overflow:auto}.v2-pw-receipt-history [hidden]{display:none!important}.v2-pw-receipt-history small{display:block}.v2-pw-receipt-history [role=region]{overflow:visible}

.v2-pw [data-v2-pw-detail][hidden],.v2-pw [data-v2-pw-receipt-empty][hidden]{display:none!important}
.v2-pw-receipt-history td small{color:#515751}

/* D26 invoice composition only. All receipt/return presentation stays in its own scope. */
.v2-pw[data-v2-pw-area=invoices],.surface-dashboard:has(.v2-pw[data-v2-pw-area=invoices]) #surface-title {font-family:'Plus Jakarta Sans Catalog',sans-serif;}
.surface-dashboard:has(.v2-pw[data-v2-pw-area=invoices]) #surface-title {font-weight:700;}
.v2-invoices{display:grid;gap:16px;min-width:0}.v2-invoices h2,.v2-invoices h3{font-weight:700}.v2-invoices>.v2-pw-note{margin:0}.v2-invoices .v2-invoice-list caption{font-size:0;padding:0;height:0}.v2-invoice-list th strong,.v2-invoice-list td strong{font-weight:700}.v2-invoice-po-id{overflow-wrap:anywhere}.v2-invoice-status{display:inline-block;font-size:12px;line-height:1.4;font-weight:600;color:#8b3517;background:#fff0df;padding:6px 10px;border-radius:20px}.v2-invoice-status[data-readiness=BLOCKED]{background:#fff0ed;color:#9b2f2a}.v2-invoice-status[data-readiness=VARIANCE_REVIEW_REQUIRED]{background:#fff0df;color:#8b3517}.v2-invoice-doorways{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.v2-invoice-doorways article{display:flex;align-items:center;gap:16px;padding:16px}.v2-invoice-doorways article>svg{width:44px;height:44px;flex:none;color:#c54118;background:#fff0e8;border-radius:12px;padding:10px}.v2-invoice-doorways article>div{flex:1;min-width:0}.v2-invoice-doorways h2{font-size:16px;margin:0 0 4px}.v2-invoice-doorways p{font-size:12px;margin:0;color:#515751}.v2-invoice-doorways a{flex:none}.v2-invoice-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid #e8e6e1}.v2-invoice-detail-heading h2{margin:0}.v2-invoice-detail .v2-pw-lines>div{padding:8px 0}.v2-invoice-detail .v2-pw-columns>section>.v2-pw-button{margin-top:12px}.v2-invoice-detail .v2-pw-table caption{font-size:0;height:0;padding:0}.v2-invoice-detail .v2-pw-table th,.v2-invoice-detail .v2-pw-table td{padding:10px 12px}.v2-invoice-total{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff7ef;padding:14px 16px;border-radius:10px;margin:12px 0!important}.v2-invoice-total strong{font-size:24px}.v2-invoice-matching{border:1px solid #e8e6e1;border-radius:12px;margin:16px 0}.v2-invoice-matching summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:12px;font-weight:600;cursor:pointer}.v2-invoice-matching-body{padding:0 16px 16px}.v2-invoice-match-line h3{margin:0 0 8px}.v2-invoice-detail>.v2-pw-note{margin-bottom:0}
@media(max-width:700px){.v2-invoice-list tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px}.v2-invoice-list tbody th{grid-column:1;grid-row:1}.v2-invoice-list td[data-label=Status]{grid-column:2;grid-row:1;max-width:145px}.v2-invoice-list td[data-label="PO / supplier"],.v2-invoice-list td[data-label="Tanggal & jatuh tempo"],.v2-invoice-list td[data-label=Nilai],.v2-invoice-list td[data-label=Aksi]{grid-column:1/-1}.v2-invoice-list td[data-label="PO / supplier"]:before,.v2-invoice-list td[data-label=Status]:before{display:none}.v2-invoice-list td[data-label="PO / supplier"]{font-size:12px}.v2-invoice-list td[data-label="Tanggal & jatuh tempo"]{font-size:12px}.v2-invoice-list td[data-label=Aksi]{border-top:1px solid #e8e6e1;padding-top:8px}.v2-invoice-list td[data-label=Aksi] .v2-pw-button{width:100%;justify-content:space-between;margin:0}.v2-invoice-doorways{grid-template-columns:1fr;gap:8px}.v2-invoice-doorways article{padding:12px}.v2-invoice-doorways article>svg,.v2-invoice-doorways article>div{display:none}.v2-invoice-doorways a{width:100%}.v2-invoice-detail-heading{align-items:flex-start;flex-wrap:wrap}.v2-invoice-matching-body{padding:0 12px 12px}.v2-invoice-total strong{font-size:22px}}

/* Invoice row titles are ordinary flow; only native column headers remain sticky. */
.surface-dashboard .v2-invoices .v2-pw-table tbody th[scope=row]{position:static;top:auto;z-index:auto;background:transparent;}
.surface-dashboard .v2-invoice-doorways article>svg.feather{width:44px;height:44px;flex:0 0 44px;}

/* D27 only: source-backed return cards/details and native bounded forms. */
.v2-pw[data-v2-pw-area=returns],.surface-dashboard:has(.v2-pw[data-v2-pw-area=returns]) #surface-title,.v2-pw-dialog:has(.v2-return-form){font-family:'Plus Jakarta Sans Catalog',sans-serif;}
.surface-dashboard:has(.v2-pw[data-v2-pw-area=returns]) #surface-title,.v2-returns :is(h2,h3,strong),.v2-return-form :is(h2,h3){font-weight:700;}
.v2-returns{display:grid;gap:16px;min-width:0}.v2-return-toolbar>.v2-pw-note{flex:1;margin:0}.v2-return-toolbar>.v2-pw-button{flex:none;order:2}.v2-returns .v2-pw-table caption{font-size:0;padding:0;height:0}.v2-returns .v2-pw-table :is(th,td){padding:12px 16px;line-height:22px}.surface-dashboard .v2-returns .v2-pw-table tbody th[scope=row]{position:static;top:auto;z-index:auto;background:transparent;}.v2-returns .v2-pw-table td[data-label="Nilai stok"],.v2-returns .v2-pw-button{overflow-wrap:normal}.v2-return-status{display:inline-block;font-size:12px;line-height:18px;font-weight:600;color:#8b3517;background:#fff0df;border-radius:20px;padding:6px 10px}.v2-return-status[data-status=SHIPPED_AWAITING_CREDIT]{color:#245783;background:#edf4fa}.v2-return-status[data-status=REPLACED]{color:#285c38;background:#edf6ee}.v2-return-detail-heading{display:flex;gap:12px;flex-wrap:wrap;align-items:center;border-bottom:1px solid #e8e6e1;padding-bottom:12px;margin-bottom:12px}.v2-return-detail-heading h2{flex:1;margin:0}.v2-return-detail .v2-pw-lines>div{padding:8px 0}.v2-return-detail .v2-pw-lines dd{font-weight:600}.v2-return-material{margin:16px 0}.v2-return-material h3{margin-bottom:4px}.v2-return-original{font-size:12px;color:#515751;margin-top:12px!important}.v2-return-reason{padding:12px;background:#f6f5f2;border-radius:12px;overflow-wrap:anywhere}.v2-return-detail .v2-pw-note{margin-top:12px}
.v2-pw-dialog:has(.v2-return-form){height:min(940px,calc(100dvh - 32px));padding:20px;gap:12px;overflow:hidden;flex-direction:column;}.v2-pw-dialog[open]:has(.v2-return-form){display:flex}.v2-pw-dialog:has(.v2-return-form)>[data-settings-close]{align-self:flex-end;flex:none}.v2-return-form{flex:1;min-height:0;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}.v2-pw-dialog .v2-return-form header h2{margin-bottom:4px;font-size:24px}.v2-return-form header p{font-size:14px;line-height:22px;margin:0}.v2-return-form-body{display:grid;align-content:start;gap:16px;min-height:0;overflow:auto;scroll-padding-block:16px;padding:4px;}.v2-return-form-body :is(input,select,textarea){scroll-margin-block:16px}.v2-return-form-body p{margin:0}.v2-return-form :is(input,select,textarea){font-family:'Plus Jakarta Sans Catalog',sans-serif;font-weight:400}.v2-return-form textarea{min-height:96px}.v2-return-form footer{position:static;bottom:auto;padding:8px 0 0;margin:0;flex-wrap:wrap;background:#fff}.v2-return-form footer button{min-height:44px;font-weight:600}.v2-return-form footer button[type=submit]{flex:1}.v2-return-form .v2-pw-lines>div{padding:6px 0;font-size:14px;line-height:22px}.v2-return-form .v2-pw-lines dd{font-weight:600}.v2-return-select{position:relative;display:block;min-width:0}.v2-return-select select{appearance:none;padding-right:40px}.v2-return-select>.feather{position:absolute;right:12px;top:12px;pointer-events:none}.v2-return-quantity{display:flex;border:1px solid #d5d8d3;border-radius:10px;overflow:hidden;min-height:44px}.v2-return-quantity input{border:0;border-radius:0;min-width:0}.v2-return-quantity>span{display:flex;align-items:center;padding:0 12px;background:#f6f5f2;border-left:1px solid #e8e6e1;font-weight:400}.v2-return-form small{font-size:12px;line-height:18px;color:#515751}.v2-return-form .v2-pw-impact .v2-pw-lines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.v2-return-form .v2-pw-impact .v2-pw-lines>div{display:block;border:0}.v2-return-form .v2-pw-impact dd{text-align:left;font-size:18px;font-weight:700}
@media(max-width:700px){.v2-return-toolbar{gap:12px}.v2-return-toolbar>.v2-pw-button{order:0;width:100%}.v2-return-toolbar>.v2-pw-note{flex:auto;width:100%;font-size:14px}.v2-returns .v2-pw-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:16px}.v2-returns .v2-pw-table tbody th{grid-column:1;grid-row:1;padding:0;font-weight:700}.v2-returns .v2-pw-table td{grid-column:1/-1;padding:2px 0}.v2-returns .v2-pw-table td[data-label=Status]{grid-column:2;grid-row:1;max-width:144px}.v2-returns .v2-pw-table td[data-label=Status]:before{display:none}.v2-returns .v2-pw-table td[data-label="Receipt asal / supplier"]{font-size:12px;line-height:18px;overflow-wrap:anywhere}.v2-returns .v2-pw-table td[data-label=Aksi]{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid #e8e6e1;padding-top:8px;margin-top:4px}.v2-returns .v2-pw-table td[data-label=Aksi] .v2-pw-button{flex:1;width:100%;margin:0;font-size:14px}.v2-return-detail{grid-template-columns:1fr;gap:16px}.v2-pw-dialog:has(.v2-return-form){height:100dvh;max-height:100dvh;padding:16px}.v2-pw-dialog .v2-return-form header h2{font-size:22px;line-height:28px}.v2-return-form-body{gap:12px}.v2-return-form .v2-pw-form-section{gap:12px;padding:12px}.v2-return-form .v2-pw-columns{grid-template-columns:1fr;gap:12px}.v2-return-form footer button[type=submit]{flex-basis:100%}.v2-return-form footer button[data-v2-pw-cancel]{width:100%}}

@media(max-width:700px){.surface-dashboard:has(.v2-pw[data-v2-pw-area=returns]) #surface-title{font-size:22px;line-height:28px;}}

@media(max-width:700px){.v2-returns .v2-pw-table td small{color:#515751;}}

/* D27 P2: complete disposition words and compact initial mobile source/editor spacing. */
.v2-returns .v2-pw-table td[data-label="Tindak lanjut"] {overflow-wrap:normal;word-break:normal;}
@media(max-width:700px) {
 .v2-return-form-body {gap:8px;}
 .v2-return-form .v2-pw-form-section {gap:8px;padding:8px;}
 .v2-return-form .v2-pw-form-section .v2-pw-lines>div {padding:4px 0;}
 .v2-return-form label {gap:4px;}
 .v2-return-form-body>.v2-pw-note {padding:12px;}
}

/* The bounded dialog keeps its local focus scroll margin instead of the page-header offset. */
.surface-dashboard .v2-return-form .v2-return-form-body :is(input,select,textarea):focus-visible {scroll-margin-block:16px;}
