/* Partial delivery window (frontend/partial-delivery.js); built on the .iv design system (inventory.css) */
.pdl-modal { max-width: 920px; }
.pdl-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.pdl-sum > div { background: var(--iv-sub, #f8fafc); border: 1px solid var(--iv-border-strong, #e2e8f0); border-radius: 12px; padding: 8px 10px; text-align: center; }
.pdl-sum b { display: block; font-size: 20px; font-weight: 800; }
.pdl-sum span { font-size: 11.5px; color: var(--iv-muted, #64748b); }
.pdl-phase { border: 1px solid var(--iv-border-strong, #e2e8f0); border-radius: 14px; margin-bottom: 10px; background: var(--iv-panel, #fff); overflow: hidden; }
.pdl-phase.open { border-color: #c7d2fe; box-shadow: 0 4px 14px rgba(79, 70, 229, .08); }
.pdl-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; background: transparent; border: 0; font: inherit; font-size: 14.5px; cursor: pointer; text-align: right; }
.pdl-head:hover { background: var(--iv-sub, #f8fafc); }
.pdl-count { margin-inline-start: auto; font-size: 12.5px; color: var(--iv-muted, #64748b); }
.pdl-bodybox { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.pdl-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.pdl-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.pdl-table td, .pdl-table th { padding: 8px 10px; font-size: 13px; vertical-align: middle; }
.pdl-table tr.pdl-on { background: #eef2ff; }
.pdl-rest, .pdl-where, .pdl-gone { font-size: 12px; color: var(--iv-muted, #64748b); }
.pdl-gone { color: #b45309; font-weight: 600; }
.pdl-step { display: inline-flex; align-items: center; gap: 4px; }
.pdl-step button { min-width: 30px; height: 32px; border-radius: 9px; border: 1px solid var(--iv-border-strong, #e2e8f0); background: #f1f5f9; font-size: 16px; font-weight: 700; cursor: pointer; }
.pdl-step button:hover { background: #e2e8f0; }
.pdl-step .pdl-all { font-size: 12px; padding: 0 10px; font-weight: 600; }
.pdl-step input { width: 58px; height: 32px; text-align: center; border: 1px solid var(--iv-border-input, #cbd5e1); border-radius: 9px; font: inherit; font-weight: 700; }
.pdl-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pdl-add { width: 100%; justify-content: center; border-style: dashed !important; }
.pdl-hint { color: #b45309; font-size: 12.5px; font-weight: 600; }
.pdl-empty { text-align: center; padding: 18px; color: var(--iv-muted, #64748b); }
@media (max-width: 640px) { .pdl-sum { grid-template-columns: repeat(2, 1fr); } .pdl-table th:nth-child(4), .pdl-table td:nth-child(4) { display: none; } }
