/* E-commerce Sales Analysis — V48 Restocking Polish
   Focus: readable priority chips, balanced 7-column layout, unclipped recommended order. */
:root{
  --e48-panel:#14151c;
  --e48-panel-2:#101117;
  --e48-head:#252731;
  --e48-border:#3a3d49;
  --e48-border-strong:#505361;
  --e48-text:#f4f4f7;
  --e48-muted:#b8bac5;
  --e48-violet:#8b5cf6;
}

html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main [data-ecom-restock-card-v48="true"]{
  border:1px solid var(--e48-border)!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#16171e 0%,#121319 100%)!important;
  box-shadow:0 18px 45px rgba(0,0,0,.18)!important;
  overflow:hidden!important;
}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main [data-ecom-restock-heading-v48="true"]{
  color:#fff!important;
  letter-spacing:-.015em!important;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;
  font-weight:850!important;
}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main [data-ecom-restock-desc-v48="true"]{
  color:#c8cad3!important;
  line-height:1.6!important;
  max-width:760px!important;
}

html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main [data-ecom-restock-scroll-v48="true"]{
  overflow-x:auto!important;
  overflow-y:hidden!important;
  border:1px solid var(--e48-border)!important;
  border-radius:12px!important;
  background:var(--e48-panel-2)!important;
  scrollbar-width:thin!important;
  scrollbar-color:#7651c8 #181920!important;
}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main [data-ecom-restock-scroll-v48="true"]::-webkit-scrollbar{height:8px!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main [data-ecom-restock-scroll-v48="true"]::-webkit-scrollbar-track{background:#181920!important;border-radius:999px!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main [data-ecom-restock-scroll-v48="true"]::-webkit-scrollbar-thumb{background:#7651c8!important;border:2px solid #181920!important;border-radius:999px!important;}

html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"]{
  width:100%!important;
  min-width:1010px!important;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  background:#121319!important;
  color:var(--e48-text)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] thead th{
  min-height:48px!important;
  padding:14px 14px!important;
  background:var(--e48-head)!important;
  color:#f5f5f8!important;
  border-right:1px solid var(--e48-border-strong)!important;
  border-bottom:1px solid var(--e48-border-strong)!important;
  font-size:11.5px!important;
  line-height:1.25!important;
  letter-spacing:.045em!important;
  text-transform:uppercase!important;
  font-weight:800!important;
  vertical-align:middle!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  text-shadow:none!important;
}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] thead th:last-child{border-right:0!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] tbody td{
  height:62px!important;
  padding:14px!important;
  background:#14151b!important;
  color:#ececf2!important;
  border-right:1px solid #343641!important;
  border-bottom:1px solid #343641!important;
  font-size:13px!important;
  line-height:1.4!important;
  font-weight:600!important;
  vertical-align:middle!important;
  text-shadow:none!important;
}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] tbody td:last-child{border-right:0!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] tbody tr:last-child td{border-bottom:0!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] tbody tr:nth-child(even) td{background:#17181f!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] tbody tr:hover td{background:#1d1d27!important;}

/* Balanced 7-column desktop layout */
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] :is(th,td):nth-child(1){width:105px!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] :is(th,td):nth-child(2){width:155px!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] :is(th,td):nth-child(3){width:180px!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] :is(th,td):nth-child(4){width:175px!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] :is(th,td):nth-child(5){width:120px!important;text-align:right!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] :is(th,td):nth-child(6){width:145px!important;text-align:right!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] :is(th,td):nth-child(7){width:160px!important;text-align:center!important;}

/* Product ID = identifier, not a glowing status badge */
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] td[data-ecom-v48-col="id"] > .ecom-v48-product-id,
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] td[data-ecom-inventory-column="id"] > .ecom-v48-product-id{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:62px!important;
  min-height:30px!important;
  padding:5px 10px!important;
  border:1px solid #246779!important;
  border-radius:8px!important;
  background:#10252d!important;
  color:#8be9ff!important;
  box-shadow:none!important;
  font:800 12px/1.1 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important;
  letter-spacing:.02em!important;
}

/* Priority = semantic dark lozenge with explicit text */
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main .ecom-v48-priority{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-width:92px!important;
  min-height:30px!important;
  padding:5px 11px!important;
  border-radius:999px!important;
  border:1px solid currentColor!important;
  box-shadow:none!important;
  font:800 12px/1.1 Inter,ui-sans-serif,system-ui,sans-serif!important;
  letter-spacing:.01em!important;
}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main .ecom-v48-priority::before{
  content:""!important;width:7px!important;height:7px!important;border-radius:50%!important;background:currentColor!important;opacity:.9!important;flex:0 0 7px!important;
}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main .ecom-v48-priority[data-tone="high"]{background:#32171b!important;color:#ff9ba5!important;border-color:#7b323c!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main .ecom-v48-priority[data-tone="medium"]{background:#302713!important;color:#ffd978!important;border-color:#776328!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main .ecom-v48-priority[data-tone="low"]{background:#102821!important;color:#8de7c0!important;border-color:#2f6f5a!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main .ecom-v48-priority[data-tone="neutral"]{background:#23242c!important;color:#d5d6de!important;border-color:#565966!important;}

html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] td[data-ecom-v48-col="product"]{color:#fff!important;font-weight:760!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] td[data-ecom-v48-col="category"]{color:#cfd0d8!important;}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] td[data-ecom-v48-col="stock"],
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] td[data-ecom-v48-col="days"]{
  color:#f4f4f7!important;font-variant-numeric:tabular-nums!important;font-weight:750!important;white-space:nowrap!important;
}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main .ecom-v48-recommended{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:94px!important;
  min-height:32px!important;
  padding:6px 11px!important;
  border:1px solid #65509b!important;
  border-radius:9px!important;
  background:#211b31!important;
  color:#e5dcff!important;
  font:850 12.5px/1.1 Inter,ui-sans-serif,system-ui,sans-serif!important;
  font-variant-numeric:tabular-nums!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}

/* Keep table touch controls visually subordinate to the data */
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main [data-ecom-restock-card-v48="true"] .ecom-table-touch-tools-v31{
  margin-bottom:10px!important;
  padding:7px 8px!important;
  border:1px solid #353744!important;
  border-radius:10px!important;
  background:#111218!important;
  box-shadow:none!important;
}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main [data-ecom-restock-card-v48="true"] .ecom-table-touch-tools-v31 button,
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main [data-ecom-restock-card-v48="true"] button[data-dir="left"],
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main [data-ecom-restock-card-v48="true"] button[data-dir="right"]{
  width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;
  border:1px solid #5e4e86!important;border-radius:9px!important;background:#1b1924!important;color:#eee9ff!important;
  box-shadow:none!important;text-shadow:none!important;
}
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main [data-ecom-restock-card-v48="true"] .ecom-table-touch-tools-v31 button:hover,
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main [data-ecom-restock-card-v48="true"] button[data-dir="left"]:hover,
html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main [data-ecom-restock-card-v48="true"] button[data-dir="right"]:hover{
  border-color:#8b5cf6!important;background:#2a2140!important;color:#fff!important;
}

@media(max-width:760px){
  html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"]{min-width:980px!important;}
  html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] thead th{font-size:10.5px!important;padding:12px 11px!important;}
  html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] tbody td{font-size:12px!important;padding:12px 11px!important;}
}
@media(prefers-reduced-motion:reduce){
  html body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root main table[data-ecom-restock-polish-v48="true"] *{transition:none!important;animation:none!important;}
}
