/* Réassort extras: week ahead, order per supplier, supplier book (admin/js/dashboard-reorder-plus.js). */
.reorder-plus { display: grid; gap: 16px; margin: 0 0 20px; }
.reorder-plus:empty { display: none; }
.reorder-plus > div:empty { display: none; }
.reorder-plus-note { font-size: var(--fs-sm, .82rem); color: var(--muted, #6b7280); line-height: 1.5; margin: 10px 0 0; }
.reorder-plus-note.is-error { color: var(--red, #e5484d); }

.reorder-forecast-alert { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--amber, #d97706) 14%, transparent); color: inherit; font-weight: 600; font-size: var(--fs-sm, .82rem); }
.reorder-forecast { display: grid; gap: 8px; }
.reorder-forecast-day { display: grid; grid-template-columns: 6.5rem 1fr 2.5rem minmax(8rem, auto); align-items: center; gap: 10px; font-size: var(--fs-sm, .82rem); }
.reorder-forecast-day > span { text-transform: capitalize; color: var(--muted, #6b7280); }
.reorder-forecast-day strong { text-align: right; font-variant-numeric: tabular-nums; font-size: 1rem; }
.reorder-forecast-day small { color: var(--muted, #6b7280); }
.reorder-forecast-day.is-busy small, .reorder-forecast-day.is-busy > span { color: var(--amber, #d97706); font-weight: 600; }
.reorder-forecast-bar { position: relative; height: 10px; border-radius: 99px; background: color-mix(in srgb, currentColor 8%, transparent); }
.reorder-forecast-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--blue, #3848BF); }
.reorder-forecast-day.is-busy .reorder-forecast-bar i { background: var(--amber, #d97706); }
.reorder-forecast-bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 2px; background: currentColor; opacity: .55; }

.reorder-order { padding: 14px 0; border-top: 1px solid var(--border, #e4e6f0); }
.reorder-order:first-child { border-top: 0; padding-top: 0; }
.reorder-order header small { display: block; color: var(--muted, #6b7280); font-size: var(--fs-sm, .82rem); margin-top: 2px; }
.reorder-order-due { margin: 8px 0 0; font-size: var(--fs-sm, .82rem); font-weight: 600; color: var(--amber, #d97706); }
.reorder-order-text { white-space: pre-wrap; font: inherit; font-size: var(--fs-sm, .82rem); line-height: 1.5; margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, currentColor 5%, transparent); }
.reorder-order-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.reorder-order-actions a.ops-btn-primary { text-decoration: none; display: inline-flex; align-items: center; }
.reorder-danger { color: var(--red, #e5484d) !important; }

.reorder-book > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; }
.reorder-book > summary::-webkit-details-marker { display: none; }
.reorder-book > summary h3 { margin: 0; }
.reorder-supplier { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border, #e4e6f0); }
.reorder-supplier small { display: block; color: var(--muted, #6b7280); font-size: var(--fs-sm, .82rem); margin-top: 2px; }
.reorder-supplier-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 12px; margin-top: 14px; }
.reorder-supplier-form h4, .reorder-supplier-form fieldset, .reorder-supplier-form .reorder-wide, .reorder-supplier-form .reorder-order-actions, .reorder-supplier-form [data-form-error] { grid-column: 1 / -1; margin: 0; }
.reorder-supplier-form label { display: grid; gap: 4px; font-size: var(--fs-sm, .82rem); color: var(--muted, #6b7280); }
.reorder-supplier-form input, .reorder-supplier-form select, .reorder-row-extras input, .reorder-row-extras select { font: inherit; font-size: var(--fs-ui, .875rem); color: var(--text, #1a1a2e); background: var(--card, #fff); border: 1px solid var(--border, #e4e6f0); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.reorder-supplier-form fieldset { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.reorder-supplier-form legend { font-size: var(--fs-sm, .82rem); color: var(--muted, #6b7280); margin-bottom: 4px; }
.reorder-day { display: inline-flex !important; }
.reorder-day input { position: absolute; opacity: 0; pointer-events: none; }
.reorder-day span { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--border, #e4e6f0); color: var(--text, #1a1a2e); cursor: pointer; font-weight: 600; }
.reorder-day input:checked + span { background: var(--blue, #3848BF); border-color: var(--blue, #3848BF); color: #fff; }
.reorder-day input:focus-visible + span { outline: 2px solid var(--blue, #3848BF); outline-offset: 2px; }

.reorder-plus-card .data-card-body { padding: 16px 20px 20px; }
.reorder-book > .data-card-body { padding-top: 0; }
/* Item rows: name on its own line, quantity / supplier / button below it. */
#panel-reorder .reorder-cat-body .ops-event-row { flex-wrap: wrap; gap: 8px; }
#panel-reorder .reorder-cat-body .ops-event-title { flex: 1 1 100%; min-width: 0; }
.reorder-row-extras { display: inline-flex; gap: 6px; flex: 1 1 auto; min-width: 0; }
.reorder-row-extras input { width: 6.5rem; padding: 6px 8px; }
.reorder-row-extras select { flex: 1; min-width: 0; max-width: 12rem; padding: 6px 8px; }
@media (max-width: 640px) {
  .reorder-forecast-day { grid-template-columns: 5rem 1fr 2rem; }
  .reorder-forecast-day small { grid-column: 2 / -1; margin-top: -6px; }
  .reorder-row-extras input, .reorder-row-extras select { flex: 1; max-width: none; }
}
