/* Management dashboard: Running low (order list, WhatsApp order, settings). */
.st-controls { display: grid; gap: 14px; }
.st-from label, .st-add-other label, #stockAddBody > label { display: block; font-size: 13px; font-weight: 750; margin-bottom: 6px; }
.st-from input, .st-add-other input, #stockAddBody select, .st-set-row select {
  width: 100%; max-width: 320px; box-sizing: border-box; border: 1px solid var(--border); background: var(--cream);
  border-radius: 11px; padding: 10px 12px; font: inherit; color: var(--text);
}
.st-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.st-tabs button {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent;
  color: var(--navy); font-weight: 800; white-space: nowrap;
}
.st-tabs button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--cream); }
.st-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.st-kpi { padding: 12px; border-radius: 14px; }
.st-kpi b { display: block; font-size: 24px; line-height: 1.1; }
.st-kpi span { font-size: 12.5px; font-weight: 700; }
.st-kpi--out { background: var(--coral-soft); color: var(--coral-dark); }
.st-kpi--out b { color: var(--navy); }
.st-kpi--low { background: var(--yellow-soft); color: var(--text-muted); }
.st-kpi--low b { color: var(--navy); }
.st-kpi--way { background: var(--blue-soft); color: var(--blue-dark); }
.st-kpi--way b { color: var(--navy); }
.st-add { justify-self: start; border-style: dashed; }
.st-shared { margin: 14px 2px 0; font-size: 13.5px; }

.st-suggest { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--yellow-soft); border: 1px solid var(--yellow); }
.st-suggest p { margin: 0 0 10px; line-height: 1.45; }
.st-suggest-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.st-suggest-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.st-group { margin-top: 14px; padding: 0; overflow: hidden; }
.st-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--blue-soft); border-bottom: 1px solid var(--border-soft); }
.st-group-head h3 { margin: 0; font-size: 16px; }
.st-group-head p { margin: 2px 0 0; font-size: 13px; }
.st-wa-btn, .st-wa-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px;
  background: #23794a; color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.st-wa-link { width: 100%; min-height: 50px; font-size: 16px; box-sizing: border-box; }
.st-lines { list-style: none; margin: 0; padding: 0; }
.st-line { display: grid; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border-soft); }
.st-line:first-child { border-top: 0; }
.st-line-top { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.st-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--yellow-soft); font-size: 19px; }
.st-line-text b { display: block; font-size: 15px; }
.st-line-text b span { font-weight: 600; color: var(--text-muted); }
.st-line-text small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12.5px; }
.st-outlet { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--navy); color: var(--cream); font-size: 11px; font-weight: 800; }
.st-chip { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.st-chip--out { background: var(--coral); color: #fff; }
.st-chip--low { background: var(--yellow); color: var(--navy); }
.st-chip--ordered { background: var(--blue-soft); color: var(--blue-dark); }
.st-warn { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--coral-soft); color: var(--coral-dark); font-size: 12.5px; font-weight: 700; }
.st-line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-small { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.st-wait { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; line-height: 1.45; }
.st-wait.is-late { background: var(--yellow-soft); color: var(--navy); }

.st-month { margin-top: 14px; background: var(--gn-green-soft, #e2f1e7); border-color: transparent; color: var(--gn-green-dark, #1b5e3a); }
.st-month p { margin: 0; line-height: 1.5; }
.st-month-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px !important; }
.st-arrived { margin-top: 14px; }
.st-arrived ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }

/* Dialogs */
.st-dialog { width: min(520px, calc(100vw - 24px)); }
.st-dialog-head { display: flex; justify-content: flex-end; padding: 12px 14px 0; position: sticky; top: 0; background: var(--card); }
.st-dialog-body { display: grid; gap: 12px; padding: 4px 20px 20px; background: var(--card); }
.st-dialog-body h3 { margin: 0; font-size: 20px; }
.st-dialog-body > p { margin: -6px 0 0; }
.st-order-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-order-lines li { display: grid; grid-template-columns: minmax(0, 1fr) 44px 64px 44px; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border-soft); background: #fff; }
.st-order-lines b { display: block; font-size: 14px; }
.st-order-lines small { display: block; color: var(--text-muted); font-size: 12px; }
.st-qty { min-height: 44px; padding: 0; font-size: 20px; font-weight: 900; }
.st-qty-n { text-align: center; }
.st-qty-n b { display: block; font-size: 20px; line-height: 1; }
.st-qty-n small { display: block; font-size: 11px; color: var(--text-muted); }
.st-message { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--gn-green-soft, #e2f1e7); border: 1px solid #a9e4c3; font: 14px/1.55 Inter, ui-sans-serif, system-ui, sans-serif; white-space: pre-wrap; color: var(--navy); }
.st-sent { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-dark); }
.st-add-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 46vh; overflow-y: auto; }
.st-add-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--border-soft); background: #fff; color: var(--navy); text-align: left; font: inherit; cursor: pointer;
}
.st-add-item:disabled { opacity: .55; cursor: default; }
.st-add-item > span:first-child { font-size: 20px; }
.st-add-item b { display: block; font-size: 15px; }
.st-add-item small { display: block; color: var(--text-muted); font-size: 12px; }
.st-add-other div { display: flex; gap: 8px; }
.st-add-other input { max-width: none; flex: 1; }

/* Settings (shown in the 400px ⚙️ side panel, so each row is a small card) */
.st-settings h4 { margin: 18px 0 6px; }
.st-sup-list, .st-items { display: grid; gap: 8px; margin-bottom: 8px; }
.st-sup, .st-item { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--border-soft); border-radius: 12px; background: #fff; }
.st-sup { grid-template-columns: minmax(0, 1fr); }
.st-sup small { margin-top: -2px; }
.st-sup input, .st-item input, .st-item select {
  width: 100%; box-sizing: border-box; border: 1px solid var(--border); background: var(--cream); border-radius: 10px;
  padding: 8px 10px; font: inherit; color: var(--text); min-height: 40px;
}
.st-item { grid-template-columns: 52px minmax(0, 1fr); }
.st-item.is-hidden { opacity: .6; }
.st-item-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.st-item-row label { display: grid; gap: 3px; font-size: 11.5px; font-weight: 800; color: var(--text-muted); }
.st-item select { grid-column: 1 / -1; }
.st-item-end { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; }
.st-item-end .st-check { margin-right: auto; }
.st-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.st-set-row { display: grid; gap: 8px; }
.st-set-row select { max-width: none; }
.st-orderers { display: grid; gap: 6px; }
.st-settings-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.st-sup input[type="checkbox"], .st-item input[type="checkbox"], .st-orderers input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; }
.st-item-row input { font-weight: 500; }
.st-sup .st-check { justify-self: start; }
