/* ASN ERP V5.1.5 · Produtos e Estoque; Clean Premium (2) + Dark Total (3).
   Exclusivamente apresentação e ações de leitura. Nunca modificar saldos na UI. */
html.asn-products-v515[data-theme="light"]{--p15-bg:#fbf9fb;--p15-surface:#fff;--p15-elev:#fff6f9;--p15-tint:#fbe6ee;--p15-ink:#182238;--p15-muted:#637086;--p15-line:#ece3e9;--p15-accent:#e5164c;--p15-accent-strong:#bd1241;--p15-green:#10764e;--p15-soft:#fceaf0;--p15-shadow:0 10px 33px rgba(119,55,84,.058);--p15-pill:#f7eaf0}
html.asn-products-v515[data-theme="dark"]{--p15-bg:#090e1e;--p15-surface:#121b30;--p15-elev:#1b2942;--p15-tint:#351729;--p15-ink:#f5f7fc;--p15-muted:#a9b6cf;--p15-line:#2c3954;--p15-accent:#f72c64;--p15-accent-strong:#d41d54;--p15-green:#56d6aa;--p15-soft:#331729;--p15-shadow:0 16px 36px rgba(0,2,10,.18);--p15-pill:#251f37}
html.asn-products-v515[data-theme] body{background:var(--p15-bg)!important;color:var(--p15-ink)}
html.asn-products-v515[data-theme] .main-content{min-width:0;max-width:none;padding:24px clamp(16px,2.5vw,42px) 65px!important}
html.asn-products-v515[data-theme] .asn-v515-page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px!important;padding:0;border:0!important;background:transparent!important;flex-wrap:wrap}
html.asn-products-v515[data-theme] .asn-v515-page-heading{min-width:0}
html.asn-products-v515[data-theme] .asn-v515-eyebrow{font-size:10px;font-weight:850;letter-spacing:.12em;color:var(--p15-accent);display:block;margin:0 0 8px}
html.asn-products-v515[data-theme] .asn-v515-page-header h1{font-size:clamp(25px,2.2vw,33px)!important;font-weight:850!important;line-height:1.2;margin:0 0 7px;color:var(--p15-ink)!important}
html.asn-products-v515[data-theme] .asn-v515-page-header p{font-size:12px!important;line-height:1.6;color:var(--p15-muted)!important;max-width:750px}
html.asn-products-v515[data-theme] .asn-v515-guide-link{border:1px solid var(--p15-line);padding:11px 14px;border-radius:11px;background:var(--p15-surface);color:var(--p15-ink);font-size:12px;font-weight:700;text-decoration:none;box-shadow:var(--p15-shadow)}
html.asn-products-v515[data-theme] .asn-v515-guide-link:hover{color:var(--p15-accent);border-color:var(--p15-accent)}
html.asn-products-v515[data-theme] .asn-v515-hero{background:linear-gradient(117deg,var(--p15-surface) 0%,var(--p15-surface) 58%,var(--p15-elev) 100%);border:1px solid var(--p15-line);border-radius:21px;box-shadow:var(--p15-shadow);padding:clamp(19px,2.5vw,31px);display:flex;align-items:center;justify-content:space-between;gap:22px;position:relative;overflow:hidden}
html.asn-products-v515[data-theme] .asn-v515-hero:after{content:'';position:absolute;right:-42px;bottom:-100px;width:220px;height:230px;border-radius:50%;background:radial-gradient(circle,rgba(236,28,86,.085),transparent 69%);pointer-events:none}
html.asn-products-v515[data-theme] .asn-v515-hero-text{position:relative;z-index:1;max-width:670px}
html.asn-products-v515[data-theme] .asn-v515-hero-kicker{display:inline-flex;align-items:center;gap:8px;color:var(--p15-accent);font-size:10px;font-weight:820;letter-spacing:.1em}
html.asn-products-v515[data-theme] .asn-v515-live-dot{width:7px;height:7px;background:var(--p15-accent);border-radius:50%}
html.asn-products-v515[data-theme] .asn-v515-hero h2{font-size:clamp(20px,2vw,28px)!important;line-height:1.25!important;font-weight:850!important;color:var(--p15-ink)!important;margin:10px 0 8px}
html.asn-products-v515[data-theme] .asn-v515-hero p{font-size:12px;line-height:1.7;color:var(--p15-muted)!important;margin:0}
html.asn-products-v515[data-theme] .asn-v515-hero-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;position:relative;z-index:1;min-width:min(235px,100%)}
html.asn-products-v515[data-theme] .asn-v515-hero-actions button{border:1px solid var(--p15-line);min-height:42px;border-radius:11px;font:750 12px system-ui;cursor:pointer;padding:11px 15px;transition:filter .15s,transform .15s}
html.asn-products-v515[data-theme] .asn-v515-primary{background:linear-gradient(95deg,#ed2459,#d30941);color:#fff;border-color:#d30941!important;box-shadow:0 9px 25px rgba(216,19,65,.14)}
html.asn-products-v515[data-theme] .asn-v515-outline{background:var(--p15-surface);color:var(--p15-ink)}
html.asn-products-v515[data-theme] .asn-v515-hero-actions button:hover{filter:brightness(1.07);transform:translateY(-1px)}
html.asn-products-v515[data-theme] .asn-v515-safety-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 1px 18px}
html.asn-products-v515[data-theme] .asn-v515-safety-bar span{display:inline-flex;gap:7px;align-items:center;background:var(--p15-surface);border:1px solid var(--p15-line);padding:6px 10px;border-radius:100px;color:var(--p15-muted);font-size:10px;font-weight:700}
html.asn-products-v515[data-theme] .asn-v515-safety-bar span span{border:0!important;padding:0;background:transparent;color:var(--p15-accent);font-size:13px}
html.asn-products-v515[data-theme] .asn-product-mode-nav{margin:8px 0 20px;padding:0;gap:9px;border:0!important;display:flex;flex-wrap:wrap}
html.asn-products-v515[data-theme] .asn-product-mode{background:var(--p15-surface)!important;border:1px solid var(--p15-line)!important;border-radius:11px;color:var(--p15-muted)!important;box-shadow:none!important;font:750 12px system-ui;min-height:45px;padding:12px 18px}
html.asn-products-v515[data-theme] .asn-product-mode.is-active{background:var(--p15-soft)!important;color:var(--p15-accent)!important;border-color:var(--p15-accent)!important;box-shadow:inset 0 -2px var(--p15-accent)!important}
html.asn-products-v515[data-theme] #asn-market-catalog{color:var(--p15-ink)!important}
html.asn-products-v515[data-theme] #asn-market-catalog :is(.asn-market-hero,.asn-market-panel,.asn-market-metric,.asn-market-table,.asn-market-disclaimer,.asn-market-message,.asn-market-journey,.asn-market-journey-step,.asn-market-cost-next,.asn-market-shop-help,.asn-market-headnote,.asn-market-mobile-empty){background:var(--p15-surface)!important;color:var(--p15-ink)!important;border-color:var(--p15-line)!important;box-shadow:var(--p15-shadow)!important}
html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-hero{border-radius:18px!important;padding:20px 23px!important}
html.asn-products-v515[data-theme] #asn-market-catalog :is(.asn-market-panel,.asn-market-products){border-radius:18px!important;padding:20px!important}
html.asn-products-v515[data-theme] #asn-market-catalog :is(.asn-market-brandline h2,.asn-market-panel-heading h3,.asn-market-metric strong,.asn-market-sync-title,.asn-market-state-copy strong,.asn-market-empty-copy strong){color:var(--p15-ink)!important}
html.asn-products-v515[data-theme] #asn-market-catalog :is(.asn-market-brandline p,.asn-market-panel-heading p,.asn-market-metric small,.asn-market-metric div>span,.asn-market-sync-explain,.asn-market-disclaimer,.asn-market-state-copy p,.asn-market-state-copy small,.asn-market-headnote,.asn-market-journey-step small,.asn-market-list-head p){color:var(--p15-muted)!important}
html.asn-products-v515[data-theme] #asn-market-catalog :is(.asn-market-metric-symbol,.asn-market-heading-icon){color:var(--p15-accent)!important;background:var(--p15-soft)!important;border-radius:11px!important;border-color:var(--p15-line)!important}
html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-journey-step[data-state="done"]{border-color:rgba(33,156,111,.35)!important}
html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-journey-step[data-state="active"]{border-color:var(--p15-accent)!important;background:var(--p15-soft)!important}
html.asn-products-v515[data-theme] #asn-market-catalog :is(.asn-market-metric,.asn-market-hero-state){background:var(--p15-elev)!important}
html.asn-products-v515[data-theme] #asn-market-catalog :is(input,select){background:var(--p15-surface)!important;color:var(--p15-ink)!important;border-color:var(--p15-line)!important;border-radius:10px!important}
html.asn-products-v515[data-theme] #asn-market-catalog :is(input,select)::placeholder{color:var(--p15-muted)!important}
html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-controls label{color:var(--p15-muted)!important}
html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-controls button{background:linear-gradient(100deg,#ed2558,#cd0c43)!important;color:white!important;border-radius:11px!important;border-color:transparent!important}
html.asn-products-v515[data-theme] #asn-market-catalog :is(.asn-market-secondary,.asn-market-bottom button){background:var(--p15-surface)!important;border:1px solid var(--p15-line)!important;color:var(--p15-ink)!important;border-radius:10px!important}
html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-table{overflow:auto;box-shadow:none!important}
html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-table th{background:var(--p15-elev)!important;color:var(--p15-muted)!important;border-bottom:1px solid var(--p15-line)!important}
html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-table td{color:var(--p15-ink)!important;border-color:var(--p15-line)!important;background:var(--p15-surface)!important}
html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-table td small{color:var(--p15-muted)!important}
html.asn-products-v515[data-theme] #asn-market-catalog :is(.asn-market-flag,.asn-market-status){background:var(--p15-pill)!important;color:var(--p15-ink)!important;border-color:var(--p15-line)!important}
html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-flag.ok{color:var(--p15-green)!important}
html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-message[data-type="error"]{border-color:#cf3156!important;color:var(--p15-accent)!important;background:var(--p15-soft)!important}
html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-message[data-type="warning"]{color:#a47b20!important}
html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-message[data-type="success"]{color:var(--p15-green)!important}
html.asn-products-v515[data-theme] #asn-market-catalog :is(.asn-market-orders-link,.asn-market-disclaimer a,.asn-market-sync-explain a){color:var(--p15-accent)!important}
/* Real stock lives in Supabase, never in marketplace inventory. */
html.asn-products-v515[data-theme] #asn-internal-stock-view[hidden],html.asn-products-v515[data-theme] #asn-market-catalog[hidden]{display:none!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view :is(.asn-stock-official,.asn-inventory-review,.table-container,.table-header,.asn-inventory-approval-v4980){background:var(--p15-surface)!important;color:var(--p15-ink)!important;border:1px solid var(--p15-line)!important;border-radius:17px!important;box-shadow:var(--p15-shadow)!important}
html.asn-products-v515[data-theme] #asn-stock-official-v4978{padding:22px!important;margin-top:0!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view :is(h2,h3,h4,.section-title,.asn-stock-top h2){color:var(--p15-ink)!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view :is(p,small,.asn-stock-top p,.asn-stock-foot,.asn-stock-tools label,.asn-inventory-head p){color:var(--p15-muted)!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view :is(.asn-stock-stats>div,.asn-inventory-stats>div){background:var(--p15-elev)!important;border:1px solid var(--p15-line)!important;border-radius:13px!important;padding:15px!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view :is(.asn-stock-stats strong,.asn-inventory-stats strong){color:var(--p15-ink)!important;font-size:25px!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view :is(.asn-stock-stats span,.asn-inventory-stats span){color:var(--p15-muted)!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view :is(input,select){background:var(--p15-surface)!important;color:var(--p15-ink)!important;border:1px solid var(--p15-line)!important;border-radius:10px!important;min-height:40px}
html.asn-products-v515[data-theme] #asn-internal-stock-view :is(.asn-stock-warning,.asn-inventory-message,.asn-inventory-approval-v4980 p[role="status"]){background:var(--p15-elev)!important;color:var(--p15-muted)!important;border:1px solid var(--p15-line)!important;border-radius:10px!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view :is(.asn-stock-table,.asn-inventory-table){background:var(--p15-surface)!important;border:1px solid var(--p15-line)!important;border-radius:12px!important;overflow:auto}
html.asn-products-v515[data-theme] #asn-internal-stock-view :is(.asn-stock-table th,.asn-inventory-table th){background:var(--p15-elev)!important;color:var(--p15-muted)!important;border-bottom:1px solid var(--p15-line)!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view :is(.asn-stock-table td,.asn-inventory-table td){color:var(--p15-ink)!important;border-color:var(--p15-line)!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view :is(.btn-add,#asn-stock-refresh,.asn-inventory-actions button:not(:disabled)){background:linear-gradient(100deg,#ed2459,#d30c44)!important;border:1px solid transparent!important;color:#fff!important;border-radius:10px!important;box-shadow:none!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view :is(.tabs-produtos,.toolbar){background:var(--p15-surface)!important;border:1px solid var(--p15-line)!important;padding:12px!important;border-radius:14px!important;box-shadow:var(--p15-shadow)!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view .toolbar{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:11px!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view .toolbar>div{flex:1 1 100%;justify-content:flex-start!important;flex-wrap:wrap}
html.asn-products-v515[data-theme] #asn-internal-stock-view .toolbar .btn-add{min-height:40px!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view .tab-btn.active{background:var(--p15-soft)!important;color:var(--p15-accent)!important;border:1px solid var(--p15-accent)!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view .produto-card{background:var(--p15-surface)!important;border:1px solid var(--p15-line)!important;color:var(--p15-ink)!important;border-radius:15px!important;box-shadow:var(--p15-shadow)!important}
html.asn-products-v515[data-theme] #asn-internal-stock-view .table-header{display:flex;flex-wrap:wrap;gap:15px}
html.asn-products-v515[data-theme] #asn-internal-stock-view .table-header p{color:var(--p15-muted)!important}
html.asn-products-v515[data-theme] .asn-v515-stock-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
html.asn-products-v515[data-theme] .asn-v515-stock-shortcuts :is(button,a){background:var(--p15-surface)!important;color:var(--p15-ink)!important;border:1px solid var(--p15-line)!important;padding:10px 13px!important;font:750 12px system-ui;text-decoration:none;border-radius:10px;cursor:pointer;min-height:41px}
html.asn-products-v515[data-theme] .asn-v515-stock-shortcuts button:disabled{opacity:.47;cursor:not-allowed}
html.asn-products-v515[data-theme] .asn-v515-stock-shortcuts :is(button,a):hover:not(:disabled){border-color:var(--p15-accent)!important;color:var(--p15-accent)!important}
html.asn-products-v515[data-theme] :is(.modal-content,.modal-header){background:var(--p15-surface)!important;color:var(--p15-ink)!important;border-color:var(--p15-line)!important}
html.asn-products-v515[data-theme] .modal-content :is(input,select){background:var(--p15-elev)!important;color:var(--p15-ink)!important;border-color:var(--p15-line)!important}
html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
html.asn-products-v515[data-theme] :is(button,a,input,select):focus-visible{outline:2px solid var(--p15-accent)!important;outline-offset:3px!important}
@media(max-width:1000px){html.asn-products-v515[data-theme] .asn-v515-hero{flex-direction:column;align-items:stretch}html.asn-products-v515[data-theme] .asn-v515-hero-actions{flex-direction:row}html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){html.asn-products-v515[data-theme] .main-content{padding:14px 12px 38px!important}html.asn-products-v515[data-theme] .asn-v515-page-header{gap:10px!important}html.asn-products-v515[data-theme] .asn-v515-guide-link{width:100%;text-align:center}html.asn-products-v515[data-theme] .asn-v515-hero{padding:18px 15px!important}html.asn-products-v515[data-theme] .asn-v515-hero-actions{flex-direction:column}html.asn-products-v515[data-theme] .asn-product-mode-nav{display:grid;grid-template-columns:1fr}html.asn-products-v515[data-theme] #asn-market-catalog :is(.asn-market-panel,.asn-market-hero){padding:15px!important}html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}html.asn-products-v515[data-theme] #asn-market-catalog .asn-market-hero-state{min-width:0}html.asn-products-v515[data-theme] #asn-internal-stock-view .asn-stock-stats{grid-template-columns:repeat(2,minmax(0,1fr))}html.asn-products-v515[data-theme] #asn-internal-stock-view .toolbar>div{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%!important}html.asn-products-v515[data-theme] #asn-internal-stock-view .toolbar>div>.btn-add{width:100%!important;min-width:0;white-space:normal!important}html.asn-products-v515[data-theme] #asn-internal-stock-view .toolbar .search-input,html.asn-products-v515[data-theme] #asn-internal-stock-view .toolbar .sort-select{flex:1 1 100%}html.asn-products-v515[data-theme] #asn-internal-stock-view .asn-stock-tools{display:grid;grid-template-columns:1fr}html.asn-products-v515[data-theme] #asn-internal-stock-view .asn-stock-tools label{min-width:0}html.asn-products-v515[data-theme] #asn-internal-stock-view .asn-stock-tools :is(input,select){width:100%;min-width:0}html.asn-products-v515[data-theme] #asn-internal-stock-view .asn-inventory-actions{display:flex;flex-direction:column;align-items:stretch}html.asn-products-v515[data-theme] #asn-internal-stock-view .asn-inventory-actions>*{width:100%}}
@media(prefers-reduced-motion:reduce){html.asn-products-v515[data-theme] .asn-v515-hero-actions button{transition:none;transform:none}}
