#view-supplies { --supply-line:#e5ebf0; --supply-tint:#f1f3ff; --supply-ink:#373e86; }
#view-supplies .panel { margin-bottom:14px; }
.supply-route { display:flex; justify-content:space-between; gap:18px; align-items:center; background:linear-gradient(110deg,#f1f3ff,#fff 78%); }
.supply-route h2 { margin:3px 0 10px; font-size:clamp(22px,3vw,30px); }
.supply-route .eyebrow { margin:0; color:var(--supply-ink); }
.supply-steps { list-style:none; display:flex; flex-wrap:wrap; gap:6px; counter-reset:supply-step; margin:0; padding:0; }
.supply-steps li { display:inline-flex; align-items:center; gap:5px; font-size:12px; counter-increment:supply-step; }
.supply-steps li::before { content:counter(supply-step); display:grid; place-items:center; width:18px; height:18px; border-radius:50%; background:#e1e5fb; color:var(--supply-ink); font-weight:700; }
.supply-dropoff { display:grid; gap:4px; padding:10px 14px; border:1px solid #dce2f6; border-radius:10px; background:#fff; }
.supply-dropoff small,.supply-dropoff p { font-size:12px; color:var(--muted); margin:0; }
.supply-toolbar, .supply-selection-tools { display:flex; gap:14px; align-items:end; flex-wrap:wrap; }
.supply-toolbar label, .supply-selection-tools > label, .supply-date-row label, .supply-warehouse-choices label, #supply-slots-area label { display:grid; gap:7px; min-width:0; flex:1; }
.supply-toolbar .supply-own-stock-toggle { display:flex; align-items:center; flex:1 0 100%; padding:7px 10px; background:#f6f8fc; border-radius:8px; }
.supply-own-stock-toggle input {
  appearance:none; position:relative; flex:0 0 36px; width:36px; min-width:36px;
  height:20px; min-height:20px; margin:0; padding:0; border:0; border-radius:20px;
  background:#8996aa; cursor:pointer;
}
.supply-own-stock-toggle input::before {
  content:""; position:absolute; inset:3px auto 3px 3px; width:14px;
  border-radius:50%; background:white;
}
.supply-own-stock-toggle input:checked { background:#4c56d5; }
.supply-own-stock-toggle input:checked::before { transform:translateX(16px); }
.supply-own-stock-toggle input:focus-visible { outline:2px solid #373e86; outline-offset:3px; }
.supply-own-stock-toggle:has(input:checked) { background:var(--supply-tint); color:var(--supply-ink); }
.supply-picker h2,.supply-attention h2,.supply-history h2 { font-size:16px; margin:0; }
.supply-attention .panel-heading { margin-bottom:5px; }
.supply-selection-tools { margin:10px 0; }
.supply-guide { font-size:12px; line-height:1.5; color:var(--muted); }
.supply-guide summary { cursor:pointer; }
.supply-guide p { margin:6px 0 0; max-width:90ch; }
.supply-selection-tools > label input, .supply-selection-tools > label select { width:100%; }
.supply-error { border:1px solid #efc8ba; background:#fff4ef; color:#923f20; padding:14px; border-radius:12px; overflow-wrap:anywhere; }
.supply-action-feedback { position:sticky; bottom:75px; z-index:4; margin:14px 0 0; padding:12px; border:1px solid #c4d7e6; background:#eff7ff; color:#234b6a; border-radius:10px; line-height:1.5; }
.supply-action-feedback.supply-error { border-color:#efc8ba; background:#fff4ef; color:#923f20; }
.supply-clusters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-items:start; }
.supply-cluster { min-width:0; padding:0!important; overflow:hidden; }
.supply-cluster-heading { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:8px 12px; background:#f4f6fc; border-bottom:1px solid var(--supply-line); font-size:11px; }
.supply-cluster-heading > span { padding:3px 7px; border-radius:12px; background:#e8edfb; color:#35447d; white-space:nowrap; }
.supply-cluster-heading .supply-warning { color:#923f20; }
.supply-cluster-heading label { display:flex; align-items:center; gap:10px; font-size:14px; }
.supply-cluster-heading input, .supply-item > input, .supply-confirm-label input { width:17px; height:17px; flex-shrink:0; }
.supply-item { display:flex; gap:10px; align-items:start; padding:7px 12px; border-bottom:1px solid var(--supply-line); cursor:pointer; }
.supply-item:last-child { border-bottom:0; }
.supply-item:has(> input:checked) { background:#f2f5ff; }
.supply-item.supply-item-updated { background:#eaf6ee; box-shadow:inset 3px 0 #28784e; }
.supply-item-updated .supply-quantity { color:#21643c; }
.supply-item-updated .supply-quantity input { border-color:#65a47b; }
.supply-item-updated .supply-quantity small { color:#21643c;font-weight:700; }
.supply-recommendation-change {
  grid-column:2/-1;display:flex;justify-content:flex-end;flex-wrap:wrap;
  gap:3px 10px;color:#21643c;font-size:12px;
}
.supply-item-blocked { background:#fcfcfd; color:#718094; }
.supply-product { display:grid; gap:2px; flex:1; min-width:0; overflow-wrap:anywhere; font-size:11px; font-weight:400; line-height:1.3; }
.supply-product label { display:grid; gap:2px; min-width:0; cursor:pointer; }
.supply-product .supply-blocking-link { justify-self:start; padding:2px 0; text-align:left; text-decoration:underline; white-space:normal; }
.supply-attention-group h3 { margin:14px 0 0; font-size:14px; }
.supply-product strong { font-size:13px; color:#253c50; }
.supply-product label > span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.supply-product small { color:var(--muted); font-size:11px; line-height:1.3; }
.supply-product small.supply-warning { color:#986821; }
.supply-quantity { display:grid; text-align:right; font-size:18px; font-weight:650; }
.supply-quantity small { font-size:11px; color:var(--muted); font-weight:400; }
.supply-quantity { flex-shrink:0; max-width:135px; gap:6px; }
.supply-quantity label { display:grid; gap:5px; font-size:11px; font-weight:500; text-align:left; }
.supply-quantity input { width:112px; max-width:100%; min-width:0; text-align:right; font-size:16px; }
.supply-quantity input:invalid { border-color:#bd5535; }
.supply-clusters { grid-template-columns:repeat(2,minmax(0,1fr)); }
.supply-columns, .supply-item { display:grid; grid-template-columns:17px minmax(0,1fr) 96px 96px; gap:10px; align-items:start; }
.supply-columns { padding:6px 12px; background:#fafbfd; color:var(--muted); font-size:11px; border-bottom:1px solid var(--supply-line); }
.supply-columns > span:nth-child(n+3) { text-align:right; }
.supply-quantity, .supply-box-cell { width:100%; min-width:0; max-width:none; display:grid; gap:2px; text-align:right; }
.supply-quantity input, .supply-box-cell input { width:100%; min-width:0; max-width:100%; height:30px; min-height:30px; padding:4px 7px; text-align:right; font-size:14px; border-radius:6px; }
.supply-quantity small, .supply-box-cell small { line-height:1.3; }
#view-supplies .supply-cluster { margin-bottom:0; border-radius:10px; }
.supply-box-cell small { color:var(--muted); font-size:11px; }
.supply-box-cell input:invalid { border-color:#bd5535; }
@media(max-width:600px) {
  .supply-columns, .supply-item { grid-template-columns:17px minmax(0,1fr) 68px 68px; gap:8px; padding-left:12px; padding-right:12px; }
  .supply-columns { font-size:10px; }
  .supply-quantity input, .supply-box-cell input { padding-left:5px; padding-right:5px; }
  .supply-quantity input, .supply-box-cell input { height:36px; min-height:36px; font-size:16px; }
}
.supply-selection-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; }
#supply-selection-total { font-size:13px; line-height:1.45; }
.supply-composition { margin:14px 0; border:1px solid var(--supply-line); border-radius:10px; overflow:hidden; }
.supply-composition summary { padding:12px; background:#f5f8fb; cursor:pointer; font-weight:600; }
.supply-composition > div { display:flex; justify-content:space-between; gap:16px; padding:10px 12px; font-size:12px; border-top:1px solid var(--supply-line); }
.supply-composition span { min-width:0; overflow-wrap:anywhere; }
.supply-composition strong { white-space:nowrap; }
.supply-warehouse-choices { display:grid; gap:14px; grid-template-columns:repeat(2,minmax(0,1fr)); margin:22px 0; }
.supply-warehouse-choices select { max-width:100%; }
.supply-date-row { display:flex; align-items:end; flex-wrap:wrap; gap:14px; margin:18px 0; }
#supply-slots-area { display:flex; align-items:end; flex-wrap:wrap; gap:14px; margin:18px 0; }
#supply-review-area { margin:20px 0; padding:18px; border:2px solid #638eae; border-radius:12px; background:#f7fafc; }
.supply-confirm-label { display:flex; align-items:center; gap:10px; margin:18px 0; }
.supply-success { color:#28784e; }
.supply-cargo-progress { margin:16px 0; padding:12px; border:1px solid var(--supply-line); border-radius:10px; background:#f8fafc; }
.supply-cargo-complete > h3 { color:#28784e; }
.supply-packing > p { font-size:12px; color:var(--muted); }
.supply-status { color:var(--muted); font-size:12px; }
.supply-history-item { display:flex; align-items:center; justify-content:space-between; gap:15px; width:100%; border:0; border-bottom:1px solid var(--supply-line); padding:14px 0; background:transparent; text-align:left; color:inherit; cursor:pointer; }
.supply-history-item > span:first-child { display:grid; gap:6px; }
.supply-history-item small, .supply-history-item > span:last-child { color:var(--muted); font-size:12px; }
#supply-archive { display:block; margin-top:20px; }
@media(max-width:1100px) { .supply-clusters { grid-template-columns:1fr; } }
@media(max-width:600px) {
  .supply-route { display:block; }
  .supply-dropoff { margin-top:10px; }
  .supply-toolbar label, .supply-selection-tools > label, #filter-supply-clusters { flex-basis:100%; }
  #filter-supply-clusters .dynamic-filter-popover { max-width:100%; }
  .supply-warehouse-choices { grid-template-columns:1fr; }
  .supply-date-row label, #supply-slots-area label { flex-basis:100%; }
  .supply-history-item { flex-wrap:wrap; }
  .supply-selection-footer .button { width:100%; }
  #supply-review-area { padding:12px; }
}
.supply-notification {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-inline-start: 4px solid #228653;
  overflow-wrap: anywhere;
}
.supply-notification small { color: var(--muted); }
.supply-notification [data-supply-notice-read] { flex-shrink: 0; }
.supply-notification-open {
  display: grid;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: start;
  cursor: pointer;
}
.supply-notification-open:hover strong { text-decoration: underline; }
#supply-bell {
  position: relative;
  display: grid;
  width: 38px;
  min-height: 38px;
  padding: 0;
  place-items: center;
  cursor: pointer;
}
#supply-bell[aria-expanded="true"] { border-color: var(--accent); }
#supply-bell-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px white;
}
#supply-notification-history {
  position: absolute;
  top: calc(100% + 6px);
  right: 16px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(65vh, 480px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(20, 38, 52, .14);
}
#supply-notification-history-list { margin-top: 10px; }
#supply-notification-history .supply-notification-open {
  width: 100%;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}
#supply-notification-history small { color: var(--muted); }
#supply-notification-history .supply-notice-state { margin-top: 4px; }
#supply-notification-history [data-supply-notice-open]:not([data-notice-seen]) .supply-notice-state { color: var(--accent); }
