:root { --bg: #f4f7f6; --primary: #2c3e50; --success: #27ae60; --danger: #e74c3c; --text: #333; }
body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg); margin: 0; padding: 1rem; color: var(--text); user-select: none; }
.scanner-container { max-width: 600px; margin: 2vh auto 0; text-align: center; display: flex; flex-direction: column; gap: 1rem; }

.search-group { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
#input_codigo { flex: 1; padding: 1.2rem; font-size: 1.5rem; border: 2px solid var(--primary); border-radius: 8px; font-weight: bold; text-align: center; }
.btn-search { width: 60px; border: none; background: var(--primary); color: white; font-size: 1.8rem; border-radius: 8px; cursor: pointer; }

.status-panel { background: white; padding: 2rem 1rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: background-color 0.2s; }
.product-title { font-size: 1.6rem; font-weight: bold; margin: 0 0 10px 0; color: var(--primary); min-height: 2rem; }
.stock-display { font-size: 4.5rem; color: var(--primary); font-weight: 900; margin: 0; line-height: 1; }

.input-group { display: flex; flex-direction: column; text-align: left; }
.input-group label { font-weight: bold; margin-bottom: 8px; color: var(--primary); font-size: 1rem; }
input[type="number"], .input-text { width: 100%; padding: 1.2rem; font-size: 2rem; box-sizing: border-box; text-align: center; border: 2px solid #ddd; border-radius: 8px; font-weight: bold; }
input:focus { outline: none; border-color: var(--primary); }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.btn { padding: 1.5rem 0; font-size: 1.5rem; border: none; border-radius: 8px; color: white; cursor: pointer; font-weight: bold; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.1s; }
.btn:active { transform: scale(0.96); }
.btn-in { background: var(--success); }
.btn-out { background: var(--danger); }

.btn-toggle { margin-top: 1rem; padding: 1rem; width: 100%; border:none; background:none; color: var(--primary); text-decoration: underline; font-size: 1.2rem; cursor: pointer; }
.panel-nuevo { background: white; padding: 1.5rem; border-radius: 8px; margin-top: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: left;}