#dueCalendarPanel{margin-bottom:24px;padding:20px;background:#fff;border:1px solid #ded8ce;border-radius:14px;color:#26352e}#dueCalendarPanel .panel-head{gap:12px;flex-wrap:wrap}#dueCalendarPanel h3{margin:3px 0}#dueCalendarPanel button{cursor:pointer}#dueCalendarSource,#dueCalendarPolicy{font-size:12px;color:#68736b;overflow-wrap:anywhere}.due-calendar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.due-calendar-actions strong{min-width:125px;text-align:center}.due-agent{margin:16px 0;padding:14px 16px;border-radius:10px;background:#eef3ee;border-left:4px solid #67826d}.due-agent p{margin:6px 0}.due-agent small{display:block;color:#647167;margin-bottom:10px}.due-calendar-scroll{overflow-x:auto}.due-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:770px;border-left:1px solid #e6e7e3;border-top:1px solid #e6e7e3}.due-weekday{padding:10px;text-align:center;background:#f5f6f2;font-size:12px;border-right:1px solid #e6e7e3;border-bottom:1px solid #e6e7e3}.due-day{min-height:132px;max-height:280px;overflow-y:auto;padding:6px;border-right:1px solid #e6e7e3;border-bottom:1px solid #e6e7e3}.due-day-number{display:block;border:0;border-radius:50%;background:transparent;color:inherit;width:29px;height:29px;padding:0;margin:0 0 5px}.due-outside{background:#fafaf7;color:#91978f}.due-selected{box-shadow:inset 0 0 0 2px #66816c}.due-today .due-day-number{background:#3f654b;color:white}.due-card{display:flex;flex-direction:column;text-align:left;width:100%;border:0;border-left:3px solid #8b9e8a;border-radius:5px;padding:7px;margin:4px 0;gap:3px;background:#edf2ec;color:#2e4736;overflow-wrap:anywhere;font-size:11px}.due-card strong{font-size:12px}.due-card small{font-size:10px}.due-missing,.due-overdue{border-left-color:#bc7066;background:#fcf0eb}.due-partial,.due-review{border-left-color:#b89c5f;background:#fbf5e7}.due-received{border-left-color:#6e947f;background:#eaf3ed}.due-detail{padding:14px 16px;margin:10px 0;border:1px solid #e2e4de;border-left-width:4px;border-radius:7px}.due-detail>strong,.due-detail>span{display:block;margin-bottom:6px}.due-detail p{font-size:12px;margin:5px 0;line-height:1.6}.due-detail small{color:#657269}.due-calendar-error{padding:14px;background:#fff0ec;color:#8c4539;border-radius:8px}@media(max-width:900px){#dueCalendarPanel{padding:12px}.due-agent{padding:12px}.due-calendar-actions{gap:6px}.due-detail{padding:12px}.due-detail strong{line-height:1.5}.due-detail p{overflow-wrap:anywhere}} 

/* v258 compact due calendar */
#dueCalendarPanel .due-card{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;padding:4px 6px;margin:3px 0;line-height:20px;min-height:28px;height:28px;border-radius:4px}
#dueCalendarPanel .due-detail{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;margin:5px 0;min-height:42px}
#dueCalendarPanel .due-detail>strong{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;margin:0}
#dueCalendarPanel .due-detail>span{font-size:12px;white-space:nowrap;flex-shrink:0;margin:0;color:#68736b}
#dueCalendarPanel .due-shipped{background:#f1f1ef;color:#a4a6a1;border-left-color:#d1d3ce}
#dueCalendarPanel .due-scheduled,#dueCalendarPanel .due-received{background:#eaf3ed;border-left-color:#6e947f}
#dueCalendarPanel .due-missing,#dueCalendarPanel .due-overdue,#dueCalendarPanel .due-partial,#dueCalendarPanel .due-review{background:#fcf0eb;border-left-color:#bc7066}
#dueCalendarPolicy:empty{display:none}
@media(max-width:900px){#dueCalendarPanel .due-detail{min-width:610px}#dueCalendarDetails{overflow-x:auto}}

#dueCalendarPanel .due-grid{min-width:1820px;grid-template-columns:repeat(7,minmax(260px,1fr))}
#dueCalendarPanel .due-company{border-bottom:1px solid #e6e7e3;padding:6px 0}
#dueCalendarPanel .due-company-toggle{display:block;width:100%;text-align:left;border:0;background:transparent;cursor:pointer;padding:10px 4px;font-size:14px;font-weight:600;color:#304c3b}
#dueCalendarPanel .due-company-toggle::before{content:'▸';display:inline-block;width:18px}
#dueCalendarPanel .due-company-toggle[aria-expanded="true"]::before{content:'▾'}
#dueCalendarPanel .due-company-toggle:focus-visible{outline:2px solid #66816c;outline-offset:2px}
#dueCalendarPanel{min-width:0;max-width:100%;box-sizing:border-box}
#dueCalendarPanel .due-calendar-scroll{min-width:0;max-width:100%}
/* Excel bold is the user's stock availability marker; completion is independent of shipment. */
#dueCalendarPanel .due-detail>strong{font-weight:400}
#dueCalendarPanel .due-stock-unavailable>strong,#dueCalendarPanel .due-card.due-stock-unavailable{font-weight:700}
#dueCalendarPanel .due-received,#dueCalendarPanel .due-shipped{background:#f1f1ef;color:#a4a6a1;border-left-color:#d1d3ce}
#dueCalendarPanel .due-received>span,#dueCalendarPanel .due-shipped>span{color:#a4a6a1}
#dueCalendarPanel .due-card[draggable="true"]{cursor:grab}
#dueCalendarPanel .due-card.due-dragging{opacity:.45;cursor:grabbing}
#dueCalendarPanel .due-day.due-drop-target{background:#e6efe8;box-shadow:inset 0 0 0 2px #66816c}
#dueCalendarMoveStatus{font-size:12px;color:#45624e;margin:8px 0}
#dueCalendarMoveStatus[data-blocked="true"]{color:#8a6330}

#dueCalendarPanel .due-card[data-movable="true"]{cursor:grab;touch-action:none;user-select:none;-webkit-user-drag:none}
.due-drag-preview{position:fixed;z-index:2147483647;pointer-events:none;background:#fff;border:1px solid #66816c;border-radius:5px;box-shadow:0 4px 16px #0003;padding:8px 12px;font:12px sans-serif;color:#304c3b;max-width:420px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Drag gets the first gesture. Selection remains visible after release. */
#dueCalendarPanel .due-card{transition:transform .1s ease,box-shadow .1s ease,outline-color .1s ease;position:relative}
#dueCalendarPanel .due-card.due-picked{outline:2px solid #486b9b;outline-offset:-2px;box-shadow:0 0 0 2px #dce7f4;z-index:2}
#dueCalendarPanel .due-card.due-lifted{transform:translateY(-3px) scale(1.025);box-shadow:0 7px 14px #18362945;z-index:4;cursor:grabbing}
#dueCalendarPanel .due-card.due-detail-selected{outline:2px solid #315f9e;outline-offset:-2px;background-image:none}
#dueCalendarDate{display:flex;align-items:baseline;gap:14px;padding:16px 18px;background:#edf3fb;border-left:5px solid #315f9e;border-radius:7px;margin:20px 0 10px}
#dueCalendarDate .due-selected-company{font-size:28px;font-weight:800;color:#244e83}
#dueCalendarDate .due-selected-meta{font-size:14px;font-weight:500;color:#536882}
#dueCalendarPanel .due-company-toggle{font-size:21px;font-weight:750;color:#244e83;padding:14px 8px}
@media(prefers-reduced-motion:reduce){#dueCalendarPanel .due-card{transition:none}}
#dueCalendarPanel .due-card[data-pending="true"]{outline:2px dashed #66816c;outline-offset:-2px;opacity:.8}
#dueCalendarPanel[data-saving="true"] .due-card{cursor:wait}
