.production-slide{display:grid;gap:3px;width:190px;max-width:100%;font-size:12px}.production-slide-track{--slide-progress:0;position:relative;isolation:isolate;height:36px;border:1px solid #bfceef;border-radius:9px;background:#eef4ff;overflow:hidden;color:#2453b0;user-select:none}.production-slide-track:before{content:"";position:absolute;inset:0;background:#cce4ff;transform-origin:left;transform:scaleX(var(--slide-progress));z-index:-1}.production-slide-caption{display:flex;align-items:center;justify-content:center;height:100%;padding-left:31px;white-space:nowrap;font-weight:600}.production-slide-thumb{position:absolute;left:4px;top:3px;width:29px;height:28px;border:1px solid #b7c9ee;border-radius:6px;background:#fff;color:#2563eb;font-size:20px;line-height:1;cursor:grab;touch-action:none;transition:transform .15s ease;box-shadow:0 1px 3px #1e40af12}.production-slide-thumb:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}.production-slide-track.is-dragging .production-slide-thumb{cursor:grabbing;transition:none}.production-slide-track.is-ready{color:#08755b;border-color:#7ccdb3}.production-slide-track.is-ready:before{background:#cdf2e6}.production-slide-fallback{justify-self:end;color:#64748b;font-size:11px}.production-slide-fallback>summary{cursor:pointer;list-style:none;padding:1px 3px}.production-slide-fallback>summary::-webkit-details-marker{display:none}.production-slide-fallback[open]{display:grid;gap:4px}.production-slide-fallback .production-slide-click{min-height:28px;font-size:11px;padding:4px 8px}.v4-production-list .row-actions{max-width:300px;gap:6px}.v4-production-list .production-slide{flex-basis:190px}.shipment-entry-intro{display:flex;gap:14px;justify-content:space-between;align-items:center;padding:12px 14px;background:#f1f6ff;border:1px solid #dbe7ff;border-radius:9px;margin-bottom:14px}.shipment-entry-intro>div{display:grid;gap:5px}.shipment-entry-intro small{color:#64748b;font-size:12px}.shipment-entry-extra{margin:14px 0;border:1px solid #e0e7f1;border-radius:8px;padding:10px 12px}.shipment-entry-extra>summary{cursor:pointer;color:#52647b;font-size:12px}.shipment-entry-extra[open]>.field-grid{margin-top:12px}.shipment-entry-table input[type=number]{min-width:84px;text-align:right}.shipment-entry-table th,.shipment-entry-table td:not(:first-child){white-space:nowrap}.shipment-entry-table th:last-child{color:#2563eb}.shipment-entry-hint{font-size:12px;color:#64748b;line-height:1.7}.shipment-entry-intro .outline-btn{white-space:nowrap}@media(prefers-reduced-motion:reduce){.production-slide-thumb{transition:none}}
/* PC records retain legible columns; horizontal overflow belongs to the table, never the page. */
@media(min-width:761px){
  #content .v4-production-list{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
  #content .v4-production-list>table:has(th[data-column="actions"]){min-width:1500px;table-layout:auto}
  .v4-production-list :is(th,td)[data-column="productionNo"]{min-width:160px;white-space:nowrap}
  .v4-production-list :is(th,td)[data-column="salesDate"]{min-width:145px;white-space:nowrap}
  .v4-production-list :is(th,td)[data-column="customer"]{min-width:130px}
  .v4-production-list :is(th,td)[data-column="product"]{min-width:200px;max-width:280px;white-space:normal;overflow-wrap:anywhere}
  .v4-production-list :is(th,td)[data-column="progress"]{min-width:145px;white-space:nowrap}
  .v4-production-list :is(th,td)[data-column="stage"]{min-width:270px;width:270px;white-space:nowrap}
  .v4-production-list :is(th,td)[data-column="due"]{min-width:115px;white-space:nowrap}
  .v4-production-list :is(th,td)[data-column="owner"]{min-width:105px;white-space:nowrap;overflow:visible}
  #content .v4-production-list [data-column="actions"]{position:static;min-width:294px;width:294px;max-width:none;box-shadow:none;padding:12px}
  .v4-production-list [data-column="actions"] .row-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;width:270px;min-width:270px;max-width:270px;gap:6px}
  .v4-production-list [data-column="actions"] .row-actions>button{order:0;flex:none;width:auto;min-width:0;min-height:28px;height:28px;padding:0 8px;font-size:11px;line-height:1.3}
  .v4-production-list [data-column="actions"] .row-actions>.production-slide{order:1;flex:0 0 190px}
  .v4-production-list [data-column="actions"] .row-actions>[data-v4-material-production]{order:2}
  .v4-production-list .row-actions .production-slide-thumb{width:29px;min-width:29px;height:28px;min-height:28px;padding:0;line-height:1}
}
.production-stage-slider{width:250px;max-width:100%;padding:8px 0 0}
.production-stage-track{--stage-progress:0;position:relative;height:30px;margin:0 12px;border-radius:16px;background:linear-gradient(to right,#b7d1ff calc(var(--stage-progress)*100%),#e8edf5 0);box-shadow:inset 0 0 0 1px #dbe3ef}
.production-stage-track:before{content:'';position:absolute;inset:12px 14px;background:repeating-linear-gradient(to right,#97a9c4 0 3px,transparent 3px 25%);pointer-events:none}
.production-stage-thumb{position:absolute;left:4px;top:3px;width:28px!important;min-width:28px!important;height:24px!important;padding:0!important;border:1px solid #2865df;border-radius:13px;background:#fff;color:#245de0;box-shadow:0 1px 5px #245de02b;cursor:grab;touch-action:none;transition:transform .12s ease}
.production-stage-thumb:focus-visible{outline:2px solid #2563eb;outline-offset:3px}
.production-stage-track.is-dragging .production-stage-thumb{transition:none;cursor:grabbing}
.production-stage-labels{display:grid;grid-template-columns:repeat(5,1fr);gap:0;margin-top:5px}
.production-stage-labels button{border:0;background:transparent;color:#718099;font-size:11px;padding:5px 0!important;min-width:0!important;white-space:nowrap;cursor:pointer}
.production-stage-labels button.current{color:#205ed3;font-weight:700;background:#eef4ff;border-radius:6px}
.production-stage-labels button.done{color:#4b75b1}
.production-stage-hint{display:block;min-height:15px;margin-top:3px;color:#8994a6;font-size:10px;text-align:center}
@media(prefers-reduced-motion:reduce){.production-stage-thumb{transition:none}}
