/* Pizzería J&G - modo claro/oscuro compartido. No altera lógica ni APIs. */

[data-theme-toggle] {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:.45rem !important;
  border:1px solid rgba(161,161,170,.45) !important;
  background:rgba(39,39,42,.9) !important;
  color:#f4f4f5 !important;
  border-radius:999px !important;
  padding:.45rem .75rem !important;
  font-size:.75rem !important;
  font-weight:800 !important;
  cursor:pointer !important;
  transition:.2s ease !important;
}
[data-theme-toggle]:hover { transform:translateY(-1px); }

/* ---------- WEB + INVENTARIO (Tailwind) ---------- */
body.jg-theme-light,
html.jg-theme-light body { background:#f5f5f4 !important; color:#18181b !important; }
body.jg-theme-light .bg-zinc-950 { background:#ffffff !important; }
body.jg-theme-light .bg-zinc-900 { background:#ffffff !important; }
body.jg-theme-light .bg-zinc-800 { background:#f4f4f5 !important; }
body.jg-theme-light .bg-zinc-700 { background:#e4e4e7 !important; }
body.jg-theme-light .bg-dark-custom { background:#f5f5f4 !important; }
body.jg-theme-light .text-white { color:#18181b !important; }
body.jg-theme-light .text-zinc-100 { color:#18181b !important; }
body.jg-theme-light .text-zinc-200 { color:#27272a !important; }
body.jg-theme-light .text-zinc-300 { color:#3f3f46 !important; }
body.jg-theme-light .text-zinc-400 { color:#52525b !important; }
body.jg-theme-light .text-zinc-500 { color:#71717a !important; }
body.jg-theme-light .text-zinc-600 { color:#71717a !important; }
body.jg-theme-light .border-zinc-900 { border-color:#e4e4e7 !important; }
body.jg-theme-light .border-zinc-800 { border-color:#e4e4e7 !important; }
body.jg-theme-light .border-zinc-700 { border-color:#d4d4d8 !important; }
body.jg-theme-light .border-zinc-600 { border-color:#d4d4d8 !important; }
body.jg-theme-light .hover\:bg-zinc-900:hover { background:#f4f4f5 !important; }
body.jg-theme-light .hover\:bg-zinc-850:hover { background:#e4e4e7 !important; }
body.jg-theme-light .backdrop-blur { background-color:rgba(255,255,255,.92) !important; }
body.jg-theme-light input,
body.jg-theme-light select,
body.jg-theme-light textarea { background:#ffffff !important; color:#18181b !important; border-color:#d4d4d8 !important; }
body.jg-theme-light input::placeholder,
body.jg-theme-light textarea::placeholder { color:#a1a1aa !important; }
body.jg-theme-light .shadow-lg,
body.jg-theme-light .shadow-2xl { box-shadow:0 10px 25px rgba(0,0,0,.08) !important; }

/* ---------- GESTIÓN ---------- */
body.jg-theme-light { background:#f4f4f5; color:#18181b; }
body.jg-theme-light header,
body.jg-theme-light nav { border-color:#d4d4d8 !important; }
body.jg-theme-light header { background:#ffffff !important; }
body.jg-theme-light nav { background:#fafafa !important; }
body.jg-theme-light nav button,
body.jg-theme-light .btn { background:#ffffff !important; color:#18181b !important; border-color:#d4d4d8 !important; }
body.jg-theme-light .active { border-color:#f59e0b !important; }
body.jg-theme-light .card { background:#ffffff !important; border-color:#e4e4e7 !important; }
body.jg-theme-light .muted,
body.jg-theme-light label,
body.jg-theme-light th { color:#71717a !important; }
body.jg-theme-light input,
body.jg-theme-light select,
body.jg-theme-light textarea { background:#fafafa !important; color:#18181b !important; border-color:#d4d4d8 !important; }
body.jg-theme-light td,
body.jg-theme-light th { border-color:#e4e4e7 !important; }
body.jg-theme-light #toast { background:#ffffff !important; color:#18181b !important; border-color:#d4d4d8 !important; box-shadow:0 10px 25px rgba(0,0,0,.12); }
body.jg-theme-light .modal { background:rgba(0,0,0,.35) !important; }
body.jg-theme-light .modal > div { background:#ffffff !important; color:#18181b !important; }

/* Mantener impresión como estaba */
@media print {
  [data-theme-toggle] { display:none !important; }
  body.jg-theme-light { background:white !important; color:black !important; }
}
