.pg-queue .fin-toolbar {align-items:center}
.pg-queue .fin-table-scroll,.pg-history .fin-table-scroll {max-height:34rem}
.pg-queue .fin-table-scroll table,.pg-history .fin-table-scroll table {min-width:680px}
.pg-queue td:first-child {max-width:22rem}
.pg-queue td small,.pg-history td small,#pg-prepare-form td small {display:block;color:#647b74;margin-top:.25rem}
.pg-queue .fin-pagination form {gap:.7rem}
#pg-complete-form {margin-top:1rem;padding-top:1rem;border-top:1px solid #e0e8df}
#pg-complete-form input[name=cost] {max-width:18rem}
#pg-prepare-form .fin-table-scroll {max-height:42vh}
#pg-prepare-form .live-table {min-width:560px}
.pg-select-actions{display:flex;gap:.7rem;align-items:center;margin:.8rem 0}.pg-direct{border:1px solid #dce8df;background:#f5faf7;border-radius:.6rem;padding:1rem;margin:1rem 0}.pg-direct h3{margin:0 0 .8rem;font-size:1rem}.pg-direct input[name=directCost]{max-width:18rem}.pg-direct .live-confirm-check{display:flex;gap:.55rem;align-items:start;margin:.9rem 0}.pg-mark-message:not(:empty){padding:.7rem;background:#fff9e9;border-radius:.4rem;color:#7e5d20;font-size:.85rem;line-height:1.6}.pg-direct .fin-actions{display:flex;flex-wrap:wrap;gap:.6rem}.pg-direct button[hidden]{display:none}
@media(max-width:640px){
  .pg-queue .fin-toolbar form {flex-basis:100%}
  .pg-queue .fin-pagination form {flex-wrap:wrap}
  #pg-complete-form .fin-actions {align-items:stretch}
}

.pv-open{display:inline-flex;gap:.65rem;align-items:center;max-width:100%;border:0;background:transparent;color:var(--ink,#244941);text-align:left;font:inherit;font-weight:600;cursor:pointer;padding:.2rem 0}
.pv-open:hover span:last-child,.pv-open:focus-visible span:last-child{text-decoration:underline}
.live-parcel-product{padding:14px 0;border-bottom:1px solid #e4ece8;min-width:0}.live-parcel-product>.live-flex{flex-wrap:wrap;margin:8px 0}.live-parcel-product .pv-open{max-width:100%}.live-pack-card>.live-flex{flex-wrap:wrap;gap:8px}
.pv-open img,.pv-placeholder{width:2.6rem;height:2.6rem;flex:none;object-fit:contain;border:1px solid #dce7e1;border-radius:.4rem;background:white}
.pv-placeholder{display:grid;place-items:center;color:#627970;font-size:.7rem}
.pv-source{margin:.9rem 0;padding-top:.6rem;border-top:1px solid #dce7e1}.pv-facts{display:flex;flex-wrap:wrap;gap:.4rem 1.3rem}.pv-source h4,.pv-header h3{margin:.35rem 0}.pv-source p{margin:.4rem 0;color:#4e635b}
.pv-header-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem 1rem;margin:.55rem 0}.pv-header-actions .pv-ozon-link{font-size:.8rem;padding:.4rem .7rem;white-space:nowrap}.pv-link-missing{font-size:.8rem}
.pv-media-status{font-size:.78rem;color:#647b74;margin:.35rem 0 .65rem;min-height:1.1rem}.pv-gallery{display:flex;align-items:start;flex-wrap:wrap;gap:.5rem}.pv-gallery a{display:block;width:70px;flex:none}.pv-gallery a:first-child{width:min(220px,100%)}.pv-gallery img{display:block;width:100%;height:auto;max-height:294px;object-fit:contain;border-radius:.35rem;background:#f2f5f3;aspect-ratio:3/4}.pv-gallery a:not(:first-child) img{max-height:94px}.pv-image-failed{font-size:.7rem;color:#647b74;border:1px solid #dce7e1}.pv-empty{font-size:.85rem}
@media(max-width:640px){.pv-gallery a:first-child{width:100%}.pv-gallery a:first-child img{max-width:220px;margin:auto}.pv-header-actions{align-items:flex-start}.pv-header-actions .pv-ozon-link{white-space:normal}}

.pg-table{width:auto;max-width:100%;border-collapse:collapse;font-size:14px}
.pg-table th,.pg-table td{padding:10px 12px;vertical-align:top}
.pg-table th{white-space:nowrap;font-size:13px}
.pg-table td{font-size:14px}
.pg-table th:first-child,.pg-table td:first-child{min-width:15rem;max-width:21rem}
.pg-table .pv-open{align-items:center;font-size:.88rem;line-height:1.35}
.pg-table .pv-open>span:last-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pg-sources{min-width:12rem;max-width:17rem;font-size:14px;overflow-wrap:anywhere}
.pg-sources>div+div{margin-top:.5rem;padding-top:.45rem;border-top:1px solid #e6ece8}
.pg-sources strong{font-size:15px;font-weight:600}
.pg-table td:nth-child(3){min-width:5.5rem}
.pg-quantity{min-width:5.5rem;white-space:nowrap;font-size:max(18px,1.15rem);font-weight:750;font-variant-numeric:tabular-nums;text-align:center}
.pg-deadline{min-width:11rem;max-width:17rem;line-height:1.55;font-size:.84rem;font-weight:600;color:#365d50}
.pg-deadline .pg-missing{color:#9b5c16}
.pg-row-actions{margin-top:.45rem}
.pg-row-actions .live-button{white-space:nowrap}
.pg-code-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 9px;margin:4px 0 2px}
.pg-code-label{font-size:.75rem;color:#647b74}
.pg-code-row .id-copy-value{font-size:1.05rem;font-weight:700;letter-spacing:.02em;line-height:1.2}
.id-copy-wrap{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px}
.id-copy-hint{font-size:.72rem;color:#147d70;font-weight:500}
@media(max-width:640px){.pg-queue .pg-table{min-width:850px}.pg-table th,.pg-table td{padding:9px}.pg-code-row .id-copy-value{font-size:1rem}}

.pg-cost-cell,.wh-cost{min-width:11.5rem;vertical-align:top;font-size:15px}
.pg-cost-form,.wh-cost-form{display:flex;flex-direction:column;gap:.3rem;align-items:flex-start}
.pg-cost-form input[name=costCny],.wh-cost-form input[name=costCny]{width:10.5rem;max-width:100%;min-height:38px;font-size:16px}
.pg-cost-form .live-note,.wh-cost-form .live-note{color:#647b74;font-size:14px;line-height:1.4;max-width:13rem}
.pg-cost-readonly{white-space:nowrap;font-size:15px}

.wh-table .wh-cost,.pg-table .pg-cost-cell{font-size:15px}


/* The editable cost and tracking fields need space even at the narrowest desktop width. */
@media screen and (min-width: 1200px) {
  .live-main[data-view="packing"] .wh-first-screen .pg-table tbody td { padding-block:4px; }
  .pg-queue .pg-table-scroll .pg-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .pg-queue .pg-table :is(th, td) {
    box-sizing: border-box;
    min-width: 0;
    padding-inline: 5px;
    overflow-wrap: anywhere;
  }
  .pg-queue .pg-table th { white-space: normal; }
  .pg-queue .pg-table th:nth-child(2) { width: 17%; }
  .pg-queue .pg-table th:nth-child(3) { width: 66px; }
  .pg-queue .pg-table th:nth-child(4) { width: 128px; }
  .pg-queue .pg-table th:nth-child(5) { width: 124px; }
  .pg-queue .pg-table th:nth-child(6) { width: 13%; }
  .pg-queue .pg-table th:last-child { width: 112px; }
  .pg-queue .pg-table td:nth-child(3),
  .pg-queue .pg-table :is(td, th):first-child { min-width: 0; }
  .pg-queue .pg-table .pg-quantity { min-width: 0; }

  .live-main :is(.pg-table, .wh-table) .live-field {
    width: 100%;
    min-width: 0;
  }
  #erp-live :is(.pg-table, .wh-table) input:is([name="costCny"], [name="courierNumber"]) {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-inline: 5px;
  }
}

