/* E-commerce Sales Analysis V29 — readable inventory, final data relations, and complete 800-order presentation. */
:root{
  --esa-v29-black:#050506;
  --esa-v29-ink:#07101f;
  --esa-v29-paper:#ffffff;
  --esa-v29-soft:#eef2f7;
  --esa-v29-line:#172033;
  --esa-v29-cyan:#26e6ff;
  --esa-v29-pink:#ff1493;
  --esa-v29-yellow:#ffd400;
  --esa-v29-red:#ef4444;
  --esa-v29-blue:#2563eb;
}

/* Restocking sentence: readable, grammatically correct, and kept on a natural line. */
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root [data-ecom-restock-alert-v29="true"]{
  align-items:start!important;
  border:2px solid #dc2626!important;
  background:#fff7f7!important;
  color:#651515!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root [data-ecom-restock-alert-v29="true"] :is([data-slot="alert-description"],p,div){
  color:#651515!important;
  opacity:1!important;
  font-weight:850!important;
  font-size:clamp(.9rem,1.15vw,1.03rem)!important;
  line-height:1.45!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root [data-ecom-restock-alert-v29="true"] strong{
  display:inline!important;
  color:#991b1b!important;
  font-size:1.08em!important;
  font-weight:1000!important;
}

/* Inventory tables: neutral rows. No green columns or green zebra striping. */
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table[data-ecom-inventory-v29]{
  background:#fff!important;
  border:2px solid var(--esa-v29-line)!important;
  box-shadow:6px 6px 0 var(--esa-v29-cyan)!important;
  color:var(--esa-v29-ink)!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table[data-ecom-inventory-v29] thead,
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table[data-ecom-inventory-v29] thead tr,
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table[data-ecom-inventory-v29] th{
  background:var(--esa-v29-black)!important;
  color:#fff!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table[data-ecom-inventory-v29] tbody tr td{
  background:#fff!important;
  color:var(--esa-v29-ink)!important;
  opacity:1!important;
  border-bottom:1px solid #334155!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table[data-ecom-inventory-v29] tbody tr:nth-child(even) td{
  background:#edf1f5!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table[data-ecom-inventory-v29] tbody tr:hover td{
  background:#e8f8ff!important;
  color:#020617!important;
}

/* Only Product ID and Status receive strong visual accents. */
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table[data-ecom-inventory-v29] th[data-ecom-inventory-column="id"]{
  color:var(--esa-v29-cyan)!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table[data-ecom-inventory-v29] th[data-ecom-inventory-column="status"]{
  color:var(--esa-v29-yellow)!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table[data-ecom-inventory-v29] td[data-ecom-inventory-column="id"]{
  color:#020617!important;
  font-weight:1000!important;
  white-space:nowrap!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table[data-ecom-inventory-v29] td[data-ecom-inventory-column="id"] > span{
  display:inline-flex!important;
  align-items:center!important;
  min-height:1.9rem!important;
  padding:.26rem .55rem!important;
  border:1px solid #0891b2!important;
  border-radius:999px!important;
  background:#cffafe!important;
  color:#083344!important;
  font-weight:1000!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table[data-ecom-inventory-v29] td[data-ecom-inventory-column="status"]{
  white-space:nowrap!important;
  text-align:center!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .ecom-v29-inventory-status{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:1.9rem!important;
  padding:.25rem .62rem!important;
  border:1px solid currentColor!important;
  border-radius:999px!important;
  background:#e2e8f0!important;
  color:#334155!important;
  font-weight:1000!important;
  letter-spacing:.02em!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .ecom-v29-inventory-status[data-tone="critical"],
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .ecom-v29-inventory-status[data-tone="high"]{
  background:#fee2e2!important;color:#991b1b!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .ecom-v29-inventory-status[data-tone="reorder"],
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .ecom-v29-inventory-status[data-tone="medium"]{
  background:#fef3c7!important;color:#92400e!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .ecom-v29-inventory-status[data-tone="healthy"],
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .ecom-v29-inventory-status[data-tone="low"]{
  background:#dbeafe!important;color:#1e3a8a!important;
}

/* Relations tab uses the same trigger rhythm as the original app. */
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root [data-ecom-relations-tab-v29="true"]{
  gap:.5rem!important;
  white-space:nowrap!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root [data-ecom-relations-tab-v29="true"][aria-selected="true"]{
  background:#050506!important;
  color:#fff!important;
  box-shadow:inset 0 -3px 0 var(--esa-v29-cyan)!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root [data-ecom-relations-tab-v29="true"] svg{
  width:18px!important;height:18px!important;stroke:currentColor!important;fill:none!important;stroke-width:2!important;
}

body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29{
  width:100%!important;
  min-width:0!important;
  color:var(--esa-v29-ink)!important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29[hidden]{display:none!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__hero{
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:1rem!important;flex-wrap:wrap!important;
  margin-bottom:1rem!important;padding:1rem 1.1rem!important;border:2px solid #050506!important;border-radius:16px!important;
  background:linear-gradient(135deg,#050506 0%,#101827 66%,#082f49 100%)!important;color:#fff!important;
  box-shadow:7px 7px 0 var(--esa-v29-cyan),11px 11px 0 var(--esa-v29-pink)!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__hero h2{margin:0!important;color:#fff!important;font-size:clamp(1.2rem,2.5vw,2rem)!important;line-height:1.1!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__hero p{margin:.45rem 0 0!important;color:#d7f7ff!important;font-weight:800!important;max-width:70ch!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__refresh{
  border:2px solid #fff!important;background:var(--esa-v29-cyan)!important;color:#04212a!important;border-radius:10px!important;
  padding:.66rem .85rem!important;font:1000 .78rem/1 ui-monospace,monospace!important;text-transform:uppercase!important;cursor:pointer!important;
  box-shadow:4px 4px 0 var(--esa-v29-pink)!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__cards{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:.75rem!important;margin:1.35rem 0 1rem!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__card{
  min-width:0!important;padding:.85rem!important;border:2px solid #111827!important;border-radius:14px!important;background:#fff!important;box-shadow:4px 4px 0 #cbd5e1!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__card span{display:block!important;color:#475569!important;font-size:.72rem!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.07em!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__card strong{display:block!important;margin-top:.35rem!important;color:#020617!important;font-size:1.65rem!important;line-height:1!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__diagram{
  display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;align-items:center!important;gap:.5rem!important;
  padding:.9rem!important;margin-bottom:1rem!important;border:2px solid #111827!important;border-radius:14px!important;background:#f8fafc!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__node{
  padding:.75rem .55rem!important;border:2px solid #111827!important;border-radius:10px!important;background:#fff!important;text-align:center!important;font-weight:1000!important;color:#020617!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__arrow{text-align:center!important;color:#0e7490!important;font-weight:1000!important;font-size:1.1rem!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__integrity{
  margin:.65rem 0 1rem!important;padding:.75rem .85rem!important;border-left:5px solid var(--esa-v29-cyan)!important;background:#ecfeff!important;color:#164e63!important;font-weight:900!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__toolbar{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:.75rem!important;flex-wrap:wrap!important;
  margin-bottom:.75rem!important;padding:.75rem!important;border:2px solid #111827!important;border-radius:12px!important;background:#fff!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__toolbar input{
  flex:1 1 280px!important;min-width:0!important;min-height:42px!important;border:2px solid #111827!important;border-radius:9px!important;padding:.55rem .7rem!important;background:#fff!important;color:#020617!important;font:850 .82rem/1.2 ui-monospace,monospace!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__toolbar label{display:flex!important;align-items:center!important;gap:.5rem!important;color:#334155!important;font-weight:900!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__toolbar select{
  min-height:42px!important;border:2px solid #111827!important;border-radius:9px!important;background:#050506!important;color:#fff!important;padding:.45rem .65rem!important;font-weight:950!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__scroll{
  width:100%!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-inline:contain!important;-webkit-overflow-scrolling:touch!important;
  border:2px solid #111827!important;border-radius:14px!important;background:#fff!important;scrollbar-width:thin!important;scrollbar-color:var(--esa-v29-cyan) #050506!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table.ecom-relations-v29__table{
  min-width:1540px!important;width:100%!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;background:#fff!important;box-shadow:none!important;border:0!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table.ecom-relations-v29__table th{
  background:#050506!important;color:#fff!important;padding:.76rem .6rem!important;font-size:.73rem!important;font-weight:1000!important;white-space:nowrap!important;text-align:left!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table.ecom-relations-v29__table td{
  background:#fff!important;color:#07101f!important;padding:.68rem .6rem!important;font-size:.79rem!important;font-weight:850!important;border-bottom:1px solid #334155!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table.ecom-relations-v29__table tbody tr:nth-child(even) td{background:#edf1f5!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table.ecom-relations-v29__table td:nth-child(1),
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root table.ecom-relations-v29__table td:nth-child(4){color:#0e7490!important;font-weight:1000!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__status{
  display:inline-flex!important;padding:.22rem .5rem!important;border:1px solid currentColor!important;border-radius:999px!important;background:#e2e8f0!important;color:#334155!important;font-weight:1000!important;text-transform:capitalize!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__status[data-status="delivered"],
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__status[data-status="healthy"]{background:#dbeafe!important;color:#1e3a8a!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__status[data-status="pending"],
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__status[data-status="reorder"],
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__status[data-status="low"]{background:#fef3c7!important;color:#92400e!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__status[data-status="cancelled"],
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__status[data-status="critical"]{background:#fee2e2!important;color:#991b1b!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__pager{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:.75rem!important;flex-wrap:wrap!important;
  margin-top:.75rem!important;padding:.75rem!important;border:2px solid #111827!important;border-radius:12px!important;background:#050506!important;color:#fff!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__pager p{margin:0!important;color:#fff!important;font-weight:900!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__pages{display:flex!important;gap:.35rem!important;flex-wrap:wrap!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__pager button{
  min-width:38px!important;min-height:36px!important;border:1px solid #fff!important;border-radius:8px!important;background:#111827!important;color:#fff!important;font-weight:1000!important;cursor:pointer!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__pager button[aria-current="page"]{background:var(--esa-v29-cyan)!important;color:#04212a!important;border-color:var(--esa-v29-cyan)!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__pager button:disabled{opacity:.48!important;cursor:not-allowed!important;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__empty{padding:2rem!important;text-align:center!important;color:#475569!important;font-weight:900!important;}

@media(max-width:900px){
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__diagram{grid-template-columns:1fr!important;}
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__arrow{transform:rotate(90deg)!important;}
}
@media(max-width:560px){
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__cards{grid-template-columns:1fr 1fr!important;}
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__hero{padding:.9rem!important;box-shadow:5px 5px 0 var(--esa-v29-cyan)!important;}
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__refresh{width:100%!important;}
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__toolbar label{width:100%!important;justify-content:space-between!important;}
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__toolbar select{min-width:110px!important;}
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__pager{align-items:stretch!important;}
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root .ecom-relations-v29__pages{width:100%!important;}
}
