/* Patron Cepte — Stok bölümü (durum, belgeler, sayım, reçeteler, hareketler). Ana temanın değişkenlerini kullanır. */
.st { display: flex; flex-direction: column; gap: 14px; }
.st-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .st-actions { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.st-action {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 76px; padding: 11px 12px; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.st-action:hover { border-color: var(--border-2); }
.st-action__icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--accent, var(--brand)) 14%, transparent); color: var(--accent, var(--brand)); }
.st-action__icon .icon { width: 18px; height: 18px; }
.st-action b { font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.st-action small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }

.st-qty { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-qty small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; text-align: right; }
.st-sub { font-size: 12.5px; color: var(--muted); }
.st-toolbar { display: flex; flex-direction: column; gap: 10px; }
.st-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.st-note b { color: var(--text-2); font-weight: 600; }

/* Belge ve sayım formu (alt sayfa) */
.st-form { display: flex; flex-direction: column; gap: 12px; }
.st-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.st-field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 2px 6px; letter-spacing: .03em; }
.st-results { display: flex; flex-direction: column; gap: 6px; }
.st-result { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--border); text-align: left; }
.st-result:hover { border-color: var(--border-2); }
.st-result .row__main { min-width: 0; }

.st-line { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.st-line__head { display: flex; align-items: flex-start; gap: 10px; }
.st-line__name { flex: 1; min-width: 0; font-weight: 650; font-size: 14.5px; letter-spacing: -.01em; }
.st-line__name small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.st-line__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.st-line__foot b { color: var(--text); font-weight: 650; }
.st-line.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.st-line input, .st-line select { height: 42px; font-size: 16px; }
.st-stepper { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 6px; }
.st-stepper button { height: 42px; border-radius: var(--r-md); background: var(--fill); border: 1px solid var(--border); font-size: 20px; font-weight: 600; color: var(--text-2); }
.st-stepper input { text-align: center; font-weight: 650; }
.st-remove { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: var(--fill); flex: none; }
.st-remove .icon { width: 16px; height: 16px; }
.st-remove:hover { color: var(--danger); }

.st-totals { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 4px 14px; }
.st-footer {
  position: sticky; bottom: calc(-24px - var(--safe-b)); margin: 4px -16px calc(-24px - var(--safe-b)); padding: 12px 16px calc(12px + var(--safe-b));
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px; z-index: 2;
}
.st-footer__row { display: flex; gap: 8px; }
.st-footer__row .btn { flex: 1; }
.st-footer__info { font-size: 12.5px; color: var(--muted); text-align: center; }

/* Sayım satırı */
.st-count { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; align-items: center; padding: 10px 14px; }
.st-count + .st-count { border-top: 1px solid var(--hairline); }
.st-count__name { font-weight: 600; font-size: 14px; }
.st-count__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.st-count__diff { font-weight: 650; }
.st-count input { height: 40px; text-align: right; font-weight: 650; }
.st-count select { height: 32px; font-size: 13px; margin-top: 4px; padding: 0 28px 0 10px; background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; }
.st-count.done { background: var(--success-soft); }

/* Reçete satırı */
.st-recipe-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.st-recipe-kpis div { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 10px; }
.st-recipe-kpis small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.st-recipe-kpis b { font-size: 15px; font-weight: 650; white-space: nowrap; }
@media (max-width: 420px) { .st-recipe-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-pending { opacity: .55; }

/* Hareket satırı */
.st-move { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 11px 16px; width: 100%; text-align: left; }
.st-move + .st-move { border-top: 1px solid var(--hairline); }
.st-move__title { font-weight: 600; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-move__sub { grid-column: 1; font-size: 12px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-move__qty { text-align: right; font-weight: 650; white-space: nowrap; }
.st-move__bal { text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
