/* Scoped to Bodega Externa only. No commercial module selectors. */
.be46{--be-bg:#091a36;--be-panel:#10294b;--be-text:#f0f8ff;--be-muted:#b8cde4;--be-edge:#328ed0;color:var(--be-text);background:linear-gradient(140deg,var(--be-bg),#112254);border:1px solid var(--be-edge);border-radius:18px;padding:18px;min-width:0;max-width:100%;box-sizing:border-box}.be46 *{box-sizing:border-box}.be46 header{display:flex;justify-content:space-between;align-items:center;gap:12px;position:static}.be46 h2{font-size:24px;margin:5px 0 14px}.be46 h3{font-size:17px;line-height:1.3;margin:9px 0;overflow-wrap:anywhere}.be46 header span{font-size:12px;letter-spacing:2px;color:#6ee7ff}.be46 small{display:block;color:var(--be-muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.be46 p{line-height:1.5;overflow-wrap:anywhere}.be46 button{border:1px solid #5dbfff;color:#fff;background:linear-gradient(125deg,#0758be,#243cb5);border-radius:12px;min-height:44px;padding:10px 14px;font-size:14px;line-height:1.3;white-space:normal;cursor:pointer;max-width:100%;overflow-wrap:normal;word-break:normal}.be46 button:hover,.be46 button:focus-visible{outline:2px solid #88efff;outline-offset:2px}.be46 button:disabled{opacity:.48;cursor:not-allowed}.be46 nav{display:flex;flex-wrap:wrap;gap:8px;padding:14px 0;position:static;background:transparent}.be46 nav button{flex:1 1 140px}.be46 nav [data-tab=weekly]{flex:0 1 auto;font-size:13px;background:linear-gradient(130deg,#6824b5,#3544c2)}.be46 nav [aria-current]{box-shadow:0 0 0 2px #80f6dc;background:linear-gradient(130deg,#007d91,#075a70)}.be46 label{display:grid;gap:6px;margin:10px 0;color:var(--be-text);font-size:14px;min-width:0}.be46 input,.be46 select,.be46 textarea{background:var(--be-bg);border:1px solid #4388b9;color:var(--be-text);width:100%;max-width:100%;min-width:0;padding:11px;border-radius:9px;font-size:16px}.be46 input[type=checkbox]{width:24px;height:24px}.be46 input[type=file]{font-size:13px}.be46 fieldset{min-width:0;border:1px solid var(--be-edge);border-radius:12px;margin:14px 0}.be46 output{display:block;color:#7aefdf;margin:9px 0}.be46-fields,.be46-grid,.be46-count-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.be46-product,.be46-count,.be46-report{background:var(--be-panel);border:1px solid #376da7;border-radius:15px;padding:14px;min-width:0;margin:8px 0}.be46-product img,.be46-count img,.be46-modal form~img,.be46-modal section>img{width:100%;height:145px;object-fit:contain;border-radius:12px;background:#f5f8fc}.be46-photo-empty{display:grid;place-items:center;min-height:95px;border:1px dashed #4d83a9;border-radius:10px;color:var(--be-muted);font-size:12px}.be46-actions,.be46-tools{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:12px 0}.be46-tools label{flex:1 1 160px}.be46-actions button{flex:1 1 auto}.be46-status{display:inline-block;border:1px solid currentColor;padding:4px 8px;border-radius:8px;color:#a9d5ff;font-size:12px;margin:4px 0}.be46-status.match,.be46-status.active{color:#69f3b7;background:#074b39}.be46-status.shortage{color:#ffb4bd;background:#652639}.be46-status.surplus{color:#83dbff;background:#103f66}.be46-status.incident,.be46-status.proposed{color:#ffe08b;background:#67440d}.be46-status.inactive{color:#d2c7ea;background:#392a57}.be46-progress{border:1px solid #42d4cf;background:#12365b;border-radius:14px;padding:13px;margin:14px 0}.be46-progress strong,.be46-progress span{display:block;line-height:1.5}.be46 progress{width:100%;accent-color:#00dca4;height:15px}.be46-count{position:relative}.be46-count.current{border:2px solid #52f0d1;box-shadow:0 0 18px #1aada653}.be46-count.locked{border-color:#37527c}.be46-number{display:inline-block;color:#64e7ff;font-size:24px;margin-bottom:7px}.be46-count button{width:100%;margin:5px 0}.be46 [data-notice][data-error=true],.be46 [data-form-error]{color:#ffbdc6}.be46-warning{border:1px solid #ffca67;background:#533d12;padding:14px;border-radius:12px}.be46 pre{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}.be46-gallery{display:grid;gap:15px}.be46-gallery img{max-width:100%;max-height:65dvh;object-fit:contain}.be46-modal{position:fixed;inset:0;z-index:100000;background:#02091fc9;display:grid;place-items:center;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}.be46-modal>.be46{width:min(700px,100%);max-height:90dvh;overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(20px,env(safe-area-inset-bottom))}.be46-modal header{position:sticky;top:-18px;background:var(--be-bg);z-index:1;padding:8px 0}.be46-modal [type=submit]{width:100%;margin-top:15px;background:linear-gradient(130deg,#007e76,#006fba)}html[data-theme=light] .be46{--be-bg:#f1f8ff;--be-panel:#fff;--be-text:#12365c;--be-muted:#3b5b7a;--be-edge:#4290c2;background:linear-gradient(140deg,#f4faff,#e0ecff)}html[data-theme=light] .be46 header span{color:#075ba8}html[data-theme=light] .be46 output{color:#036a59}html[data-theme=light] .be46-progress{background:#e0f6ff}html[data-theme=light] .be46-warning{color:#543700;background:#fff2d3}html[data-theme=light] .be46 [data-notice][data-error=true],html[data-theme=light] .be46 [data-form-error]{color:#a90c36}@media(min-width:1000px){.be46-grid,.be46-count-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:600px){.be46{padding:12px;border-radius:13px}.be46 h2{font-size:20px}.be46 header{align-items:flex-start}.be46 nav{gap:6px}.be46 nav button{flex-basis:calc(50% - 6px);padding:9px;font-size:13px}.be46 nav [data-tab=weekly]{flex-basis:calc(50% - 6px)}.be46-count-grid,.be46-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.be46-product,.be46-count{padding:9px;border-radius:12px}.be46-count h3,.be46-product h3{font-size:14px}.be46-count p,.be46-product p{font-size:12px;line-height:1.45;margin:7px 0}.be46-count button,.be46-actions button{font-size:12px;padding:8px 4px;min-height:44px}.be46-count img,.be46-product img{height:105px}.be46-count .be46-number{font-size:21px}.be46-fields{grid-template-columns:1fr}.be46-modal header{top:-12px}.be46-modal>.be46{max-height:calc(100dvh - 30px)}.be46-progress{position:sticky;top:0;z-index:3}.be46-photo-empty{min-height:80px}.be46-status{font-size:11px;padding:4px}.be46-tools{gap:6px}}@media(prefers-reduced-motion:reduce){.be46 *{scroll-behavior:auto!important}}

.be46-inline label{font-size:12px;margin:6px 0}.be46-inline input{padding:8px;min-height:44px;font-size:16px}.be46-inline output{font-size:12px;min-height:18px;line-height:1.35}.be46-inline [data-inline-error]{color:#ffbdc6}.be46-inline input:disabled{opacity:.65}
