.pending-receipts { min-width:0; color:#122330; }
.pending-receipts .purchase-heading { gap:20px; margin-bottom:20px; }
.pending-receipts .purchase-heading h2 { font-size:26px; }
.pending-receipts button,.purchase-pending-return button { min-height:40px; white-space:normal; overflow-wrap:anywhere; }
.purchase-dialog [data-purchase-control] button,.purchase-workspace [data-purchase-action="pending-receipts"] { min-height:40px; }
.pending-receipts .form-status.error { color:#a1322b; background:#fff3f1; border-color:#eac8c2; }
.pending-receipts-filters { margin:0 0 12px; }
.pending-receipts-filters fieldset { display:flex; gap:12px; align-items:end; border:0; padding:0; margin:0; min-width:0; }
.pending-receipts-filters label { flex:1; min-width:0; max-width:650px; }
.pending-receipts-filters .pending-receipts-document-filter { flex:0 1 230px; }
.pending-receipts-filters select { min-width:0; min-height:40px; }
.pending-receipts-table [data-pending-receipt-action="documents"] { margin-top:8px; text-align:center; }
.pending-receipts :is(p,small,span,strong),.purchase-pending-return p { overflow-wrap:anywhere; }
.pending-receipts-caption,.pending-receipts-boundary,.pending-receipts-pagination p { color:#536c7c; font-size:13px; line-height:1.6; }
.pending-receipts-results { margin-top:24px; }
.pending-receipts-results > header { display:flex; gap:12px; align-items:baseline; justify-content:space-between; }
.pending-receipts-results h3 { margin:0; font-size:18px; }
.pending-receipts-results > header p { color:#536c7c; font-size:13px; white-space:nowrap; }
.pending-receipts-table { border-collapse:collapse; width:100%; min-width:0; table-layout:fixed; font-size:14px; }
.pending-receipts-table :is(th,td) { box-sizing:border-box; }
.pending-receipts-table th { background:#f4f7f9; color:#344a58; text-align:left; padding:12px; font-size:12px; }
.pending-receipts-table td { padding:14px 12px; vertical-align:top; border-bottom:1px solid #d6e0e5; overflow-wrap:anywhere; }
.pending-receipts-table :is(strong,span,small) { display:block; }
.pending-receipts-table :is(span,small) { margin-top:5px; line-height:1.5; }
.pending-receipts-table small { color:#536c7c; font-size:12px; }
.pending-receipts-table th:first-child { width:28%; }
.pending-receipts-table th:nth-child(2) { width:29%; }
.pending-receipts-link { padding:8px 0; text-align:left; border:0; background:transparent; color:#056a73; text-decoration:underline; font:inherit; font-weight:700; cursor:pointer; }
.pending-receipts-table tr:hover { background:#f7f9fb; }
.pending-receipts-pagination { display:flex; gap:16px; flex-wrap:wrap; align-items:center; justify-content:space-between; margin:16px 0 24px; }
.pending-receipts-boundary { border-top:1px solid #d6e0e5; padding-top:16px; }
.purchase-pending-return { margin:0 0 20px; border-left:3px solid #078b91; padding:0 0 0 14px; }
.purchase-pending-return p { color:#344a58; font-size:13px; margin-bottom:0; line-height:1.6; }
.purchase-pending-return ~ .purchase-table-scroll [data-purchase-action="validate"] { min-height:40px; }
.purchase-workspace [data-purchase-receipt]:focus { outline:2px solid #078b91; outline-offset:-2px; }
@media(max-width:1100px) {
  .pending-receipts-filters fieldset { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .pending-receipts-filters label { max-width:none; }
}
@media(max-width:900px) {
  .pending-receipts-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .pending-receipts-table,.pending-receipts-table tbody { display:block; }
  .pending-receipts-table tr { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid #d6e0e5; padding:12px 0; }
  .pending-receipts-table td { display:block; border:0; padding:8px 12px; min-width:0; }
  .pending-receipts-table td::before { content:attr(data-label); display:block; margin-bottom:6px; color:#536c7c; font-size:11px; font-weight:700; }
}
@media(max-width:600px) {
  .pending-receipts .purchase-heading,.pending-receipts-results > header { flex-direction:column; align-items:stretch; }
  .pending-receipts-filters fieldset { display:flex; flex-wrap:wrap; }
  .pending-receipts-filters label { flex-basis:100%; }
  .pending-receipts-filters .pending-receipts-document-filter { flex:1 1 100%; }
  .pending-receipts-filters button { flex:1; }
  .pending-receipts-table tr { grid-template-columns:1fr; }
  .pending-receipts-table td { padding:7px 0; }
  .pending-receipts-table td:first-child { padding-top:0; }
  .pending-receipts-pagination .purchase-actions { width:100%; }
  .pending-receipts-pagination button { flex:1; }
  .purchase-pending-return button { width:100%; }
}
@media(prefers-reduced-motion:reduce) { .pending-receipts * { scroll-behavior:auto; } }
