/* Base mobile-first para Surtido */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
body { background: var(--bg, #f3f4f6); color: var(--fg, #111827); min-height: 100vh; }

.app-header {
  background: var(--header-bg, #1f2937);
  color: var(--header-fg, #fff);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.app-header .title { font-weight: 700; font-size: 16px; }
.app-header .actions { display: flex; gap: 8px; }
.app-header button { background: transparent; border: 1px solid rgba(255,255,255,0.25); color: inherit; padding: 6px 10px; border-radius: 8px; font-size: 12px; }

main.app-main { padding: 12px; max-width: 480px; margin: 0 auto; }

.card-partida {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  text-decoration: none;
  color: inherit;
}
.card-partida:active { transform: scale(0.98); }
.card-partida .zone-loc {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent, #1d4ed8);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.card-partida .sku { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; font-weight: 700; color: #111827; }
.card-partida .desc { font-size: 12px; color: #6b7280; grid-column: 1 / -1; line-height: 1.3; }
.card-partida .qty { font-size: 26px; font-weight: 800; text-align: right; grid-row: 1 / span 2; grid-column: 2; line-height: 1; }
.card-partida .qty .unit { display: block; font-size: 10px; font-weight: 500; color: #6b7280; margin-top: 2px; }
.card-partida .meta { font-size: 10px; color: #9ca3af; grid-column: 1 / -1; margin-top: 4px; padding-top: 6px; border-top: 1px solid #f3f4f6; }

.empty-state { text-align: center; padding: 48px 16px; color: #6b7280; }
.empty-state .icon { font-size: 48px; color: #d1d5db; margin-bottom: 12px; }

.btn-primary-lg { background: var(--primary, #16a34a); color: #fff; border: 0; padding: 16px; border-radius: 12px; font-size: 16px; font-weight: 600; width: 100%; }
.btn-primary-lg:disabled { background: #9ca3af; }
.btn-warn { background: #f59e0b; color: #fff; }
.btn-cancel { background: #e5e7eb; color: #374151; }

.toast-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  padding: 12px 16px; border-radius: 12px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  display: none; z-index: 1000;
}
.toast-banner.show { display: block; }
.toast-banner.error { background: #dc2626; color: #fff; }
.toast-banner.success { background: #16a34a; color: #fff; }
