/* StarBy V30 — Visão Geral e Clientes no padrão visual do Estoque Geral */
body[data-app="admin"] #tab-overview,
body[data-app="admin"] #tab-clients{
  padding:0!important;
  background:transparent!important;
}

/* estrutura geral: mesma largura, ritmo e respiro do Estoque Geral */
body[data-app="admin"] #tab-overview .starby-overview-shell,
body[data-app="admin"] #tab-clients .starby-saas-shell{
  width:100%!important;
  max-width:1500px!important;
  margin:0 auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body[data-app="admin"] #tab-overview .starby-overview-shell,
body[data-app="admin"] #tab-clients .clients-admin-final{
  display:grid!important;
  gap:18px!important;
}

/* VISÃO GERAL — barra de comando no estilo Estoque */
body[data-app="admin"] #tab-overview .starby-overview-topbar{
  order:1!important;
  display:block!important;
  margin:0!important;
  padding:12px!important;
  min-height:0!important;
  border:1px solid rgba(167,139,250,.20)!important;
  border-radius:18px!important;
  background:rgba(11,10,26,.97)!important;
  box-shadow:none!important;
}
body[data-app="admin"] #tab-overview .starby-overview-actions{
  width:100%!important;
  margin:0!important;
  display:grid!important;
  grid-template-columns:auto 220px minmax(180px,auto)!important;
  align-items:center!important;
  justify-content:start!important;
  gap:10px!important;
}
body[data-app="admin"] #tab-overview .overview-order-history-btn,
body[data-app="admin"] #tab-overview .starby-overview-actions select,
body[data-app="admin"] #tab-overview .starby-overview-date-label{
  min-height:44px!important;
  height:44px!important;
  margin:0!important;
  border-radius:12px!important;
}
body[data-app="admin"] #tab-overview .overview-order-history-btn{
  padding:0 16px!important;
  border:1px solid rgba(167,139,250,.30)!important;
  background:linear-gradient(135deg,#7c3aed,#9333ea)!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
  box-shadow:0 10px 22px rgba(109,40,217,.18)!important;
}
body[data-app="admin"] #tab-overview .starby-overview-actions select{
  padding:0 38px 0 13px!important;
  border:1px solid rgba(167,139,250,.24)!important;
  background:#111025!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:800!important;
}
body[data-app="admin"] #tab-overview .starby-overview-date-label{
  display:flex!important;
  align-items:center!important;
  padding:0 13px!important;
  border:1px solid rgba(167,139,250,.18)!important;
  background:rgba(255,255,255,.025)!important;
  color:#aaa5bd!important;
  font-size:11px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
body[data-app="admin"] #tab-overview .overview-custom-dates{
  grid-column:1/-1!important;
  display:grid;
  grid-template-columns:repeat(2,minmax(160px,220px));
  gap:10px!important;
  padding-top:2px!important;
}
body[data-app="admin"] #tab-overview .overview-custom-dates label{
  display:grid!important;
  gap:5px!important;
  color:#aaa5bd!important;
  font-size:10px!important;
  font-weight:800!important;
}
body[data-app="admin"] #tab-overview .overview-custom-dates input{
  height:42px!important;
  margin:0!important;
  border:1px solid rgba(167,139,250,.24)!important;
  border-radius:12px!important;
  background:#111025!important;
  color:#fff!important;
}

/* o relatório vira a pilha principal como no estoque */
body[data-app="admin"] #tab-overview #overviewReportArea{order:2!important;display:block!important}
body[data-app="admin"] #tab-overview .ov-premium-dashboard{
  display:grid!important;
  gap:18px!important;
}

/* KPIs idênticos ao padrão do estoque */
body[data-app="admin"] #tab-overview .ov-premium-kpis{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
body[data-app="admin"] #tab-overview .ov-premium-kpi{
  min-height:116px!important;
  padding:18px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  border:1px solid rgba(167,139,250,.18)!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,rgba(19,17,39,.97),rgba(10,10,24,.98))!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body[data-app="admin"] #tab-overview .ov-premium-kpi-head{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
body[data-app="admin"] #tab-overview .ov-premium-kpi-icon{
  width:30px!important;
  height:30px!important;
  border-radius:10px!important;
  background:rgba(124,58,237,.18)!important;
  color:#c4b5fd!important;
  box-shadow:none!important;
}
body[data-app="admin"] #tab-overview .ov-premium-kpi small{
  color:#aaa5bd!important;
  font-size:.72rem!important;
  font-weight:900!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
body[data-app="admin"] #tab-overview .ov-premium-kpi>strong{
  margin:8px 0 0!important;
  color:#fff!important;
  font-size:1.72rem!important;
  line-height:1.05!important;
}
body[data-app="admin"] #tab-overview .ov-premium-kpi p{
  margin:4px 0 0!important;
  color:#827e91!important;
  font-size:.72rem!important;
}
body[data-app="admin"] #tab-overview .ov-premium-kpi.red{border-color:rgba(239,68,68,.34)!important}
body[data-app="admin"] #tab-overview .ov-premium-kpi.gold,
body[data-app="admin"] #tab-overview .ov-premium-kpi.orange{border-color:rgba(245,158,11,.30)!important}
body[data-app="admin"] #tab-overview .ov-premium-kpi.green{border-color:rgba(34,197,94,.27)!important}

/* painéis de gráficos = card principal do estoque */
body[data-app="admin"] #tab-overview .ov-dashboard-grid{
  display:grid!important;
  gap:14px!important;
}
body[data-app="admin"] #tab-overview .ov-grid-70-30{grid-template-columns:minmax(0,1.7fr) minmax(300px,.7fr)!important}
body[data-app="admin"] #tab-overview .ov-grid-60-40{grid-template-columns:minmax(0,1.35fr) minmax(320px,.85fr)!important}
body[data-app="admin"] #tab-overview .ov-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body[data-app="admin"] #tab-overview .ov-grid-65-35{grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr)!important}
body[data-app="admin"] #tab-overview .ov-premium-card{
  min-width:0!important;
  padding:18px!important;
  border:1px solid rgba(167,139,250,.20)!important;
  border-radius:22px!important;
  background:rgba(11,10,26,.97)!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body[data-app="admin"] #tab-overview .ov-premium-card>header{
  margin:0 0 14px!important;
  padding:0 0 13px!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
}
body[data-app="admin"] #tab-overview .ov-premium-eyebrow{
  color:#a78bfa!important;
  font-size:.66rem!important;
  letter-spacing:.12em!important;
  font-weight:900!important;
}
body[data-app="admin"] #tab-overview .ov-premium-card h3{color:#fff!important;font-size:1.03rem!important}
body[data-app="admin"] #tab-overview .ov-premium-card header p{color:#827e91!important;font-size:.72rem!important}
body[data-app="admin"] #tab-overview .ov-premium-tag,
body[data-app="admin"] #tab-overview .ov-premium-rating{
  border:1px solid rgba(167,139,250,.20)!important;
  background:rgba(124,58,237,.10)!important;
  color:#c4b5fd!important;
}

/* CLIENTES — shell, KPIs, comando e tabela iguais ao Estoque */
body[data-app="admin"] #tab-clients .clients-kpis{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
body[data-app="admin"] #tab-clients .clients-kpis article{
  min-height:116px!important;
  padding:18px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  border:1px solid rgba(167,139,250,.18)!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,rgba(19,17,39,.97),rgba(10,10,24,.98))!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body[data-app="admin"] #tab-clients .clients-kpis article:before,
body[data-app="admin"] #tab-clients .clients-kpis article:after{display:none!important}
body[data-app="admin"] #tab-clients .clients-kpis span{
  color:#aaa5bd!important;
  font-size:.78rem!important;
  font-weight:800!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
body[data-app="admin"] #tab-clients .clients-kpis b{
  margin:0!important;
  color:#fff!important;
  font-size:1.8rem!important;
  line-height:1.05!important;
}
body[data-app="admin"] #tab-clients .clients-revenue-card{border-color:rgba(34,197,94,.28)!important}

body[data-app="admin"] #tab-clients .clients-toolbar-pro{
  min-height:68px!important;
  margin:0!important;
  padding:12px 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  border:1px solid rgba(167,139,250,.20)!important;
  border-radius:18px!important;
  background:rgba(11,10,26,.97)!important;
  box-shadow:none!important;
}
body[data-app="admin"] #tab-clients .clients-toolbar-title strong{display:block!important;color:#fff!important;font-size:.95rem!important}
body[data-app="admin"] #tab-clients .clients-toolbar-title small{display:block!important;margin-top:3px!important;color:#827e91!important;font-size:.72rem!important}
body[data-app="admin"] #tab-clients .clients-search-wrap{width:min(390px,100%)!important}
body[data-app="admin"] #tab-clients .clients-search-wrap input{
  width:100%!important;
  height:44px!important;
  margin:0!important;
  padding:0 14px!important;
  border:1px solid rgba(167,139,250,.24)!important;
  border-radius:12px!important;
  background:#111025!important;
  color:#fff!important;
  outline:none!important;
}
body[data-app="admin"] #tab-clients .clients-search-wrap input:focus{border-color:#8b5cf6!important;box-shadow:0 0 0 3px rgba(139,92,246,.10)!important}

body[data-app="admin"] #tab-clients .clients-table-card{
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(167,139,250,.20)!important;
  border-radius:22px!important;
  background:rgba(11,10,26,.97)!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body[data-app="admin"] #tab-clients .clients-table-head{
  margin:0!important;
  padding:16px!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  background:rgba(255,255,255,.018)!important;
}
body[data-app="admin"] #tab-clients .clients-table-head h3{margin:0!important;color:#fff!important;font-size:1rem!important}
body[data-app="admin"] #tab-clients .clients-table-head p{margin:4px 0 0!important;color:#827e91!important;font-size:.72rem!important}
body[data-app="admin"] #tab-clients .clients-count-pill{
  border:1px solid rgba(167,139,250,.20)!important;
  background:rgba(124,58,237,.10)!important;
  color:#c4b5fd!important;
}
body[data-app="admin"] #tab-clients .table-wrap{max-height:64vh!important;overflow:auto!important;border:0!important;border-radius:0!important}
body[data-app="admin"] #tab-clients .clients-modern-table{min-width:920px!important;width:100%!important;border-collapse:collapse!important}
body[data-app="admin"] #tab-clients .clients-modern-table th{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
  padding:13px 14px!important;
  background:#121027!important;
  color:#a9a5b9!important;
  font-size:.72rem!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
}
body[data-app="admin"] #tab-clients .clients-modern-table td{
  padding:13px 14px!important;
  border-top:1px solid rgba(255,255,255,.065)!important;
  color:#e7e5ee!important;
  background:transparent!important;
}
body[data-app="admin"] #tab-clients .clients-modern-table tbody tr:hover td{background:rgba(124,58,237,.055)!important}
body[data-app="admin"] #tab-clients .client-avatar{
  width:44px!important;
  height:44px!important;
  border:0!important;
  border-radius:12px!important;
  background:linear-gradient(145deg,#312e81,#7c3aed)!important;
  color:#fff!important;
  box-shadow:none!important;
}
body[data-app="admin"] #tab-clients .client-stat-pill{
  border:0!important;
  background:rgba(124,58,237,.11)!important;
  color:#c4b5fd!important;
}
body[data-app="admin"] #tab-clients .client-stat-pill.is-success{background:rgba(34,197,94,.11)!important;color:#4ade80!important}
body[data-app="admin"] #tab-clients .client-stat-pill.is-danger{background:rgba(244,63,94,.11)!important;color:#fb7185!important}
body[data-app="admin"] #tab-clients .client-total{color:#ddd6fe!important;font-weight:900!important}
body[data-app="admin"] #tab-clients .clients-empty-state{padding:48px 20px!important;color:#9792a6!important;text-align:center!important}
body[data-app="admin"] #tab-clients .clients-empty-state strong{display:block!important;color:#fff!important;margin-bottom:6px!important}

@media(max-width:1100px){
  body[data-app="admin"] #tab-overview .ov-premium-kpis,
  body[data-app="admin"] #tab-clients .clients-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-app="admin"] #tab-overview .ov-grid-70-30,
  body[data-app="admin"] #tab-overview .ov-grid-60-40,
  body[data-app="admin"] #tab-overview .ov-grid-65-35{grid-template-columns:1fr!important}
  body[data-app="admin"] #tab-overview .ov-grid-three{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-app="admin"] #tab-overview .ov-grid-three>article:last-child{grid-column:1/-1!important}
}
@media(max-width:760px){
  body[data-app="admin"] #tab-overview .starby-overview-actions{grid-template-columns:1fr!important}
  body[data-app="admin"] #tab-overview .overview-order-history-btn,
  body[data-app="admin"] #tab-overview .starby-overview-actions select,
  body[data-app="admin"] #tab-overview .starby-overview-date-label{width:100%!important}
  body[data-app="admin"] #tab-overview .overview-custom-dates{grid-template-columns:1fr!important}
  body[data-app="admin"] #tab-overview .ov-grid-three{grid-template-columns:1fr!important}
  body[data-app="admin"] #tab-overview .ov-grid-three>article:last-child{grid-column:auto!important}
  body[data-app="admin"] #tab-clients .clients-toolbar-pro{align-items:stretch!important;flex-direction:column!important}
  body[data-app="admin"] #tab-clients .clients-search-wrap{width:100%!important;max-width:none!important}
}
@media(max-width:520px){
  body[data-app="admin"] #tab-overview .ov-premium-kpis,
  body[data-app="admin"] #tab-clients .clients-kpis{grid-template-columns:1fr 1fr!important;gap:9px!important}
  body[data-app="admin"] #tab-overview .ov-premium-kpi,
  body[data-app="admin"] #tab-clients .clients-kpis article{min-height:105px!important;padding:14px!important}
  body[data-app="admin"] #tab-overview .ov-premium-kpi>strong,
  body[data-app="admin"] #tab-clients .clients-kpis b{font-size:1.4rem!important}
}
@media(max-width:380px){
  body[data-app="admin"] #tab-overview .ov-premium-kpis,
  body[data-app="admin"] #tab-clients .clients-kpis{grid-template-columns:1fr!important}
}

/* =========================================================
   STARBY V32 — KPI EXECUTIVO / VISÃO GERAL
   Painel profissional com comparação de período e leitura rápida
   ========================================================= */
body[data-app="admin"] #tab-overview .ov-executive-dashboard{
  gap:16px!important;
}

body[data-app="admin"] #tab-overview .ov-executive-head{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:24px!important;
  min-height:128px!important;
  padding:22px 24px!important;
  border:1px solid rgba(167,139,250,.22)!important;
  border-radius:22px!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 92% 5%,rgba(124,58,237,.22),transparent 35%),
    linear-gradient(135deg,rgba(19,17,39,.98),rgba(10,10,24,.99))!important;
  box-shadow:0 18px 45px rgba(0,0,0,.16)!important;
}
body[data-app="admin"] #tab-overview .ov-executive-head:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(167,139,250,.055),transparent 35%,rgba(124,58,237,.04));
}
body[data-app="admin"] #tab-overview .ov-executive-head>*{position:relative;z-index:1}
body[data-app="admin"] #tab-overview .ov-executive-head-copy{min-width:0}
body[data-app="admin"] #tab-overview .ov-executive-head .ov-premium-eyebrow{margin:0 0 7px!important}
body[data-app="admin"] #tab-overview .ov-executive-head h2{
  margin:0!important;
  color:#fff!important;
  font-size:clamp(1.35rem,2vw,1.72rem)!important;
  line-height:1.08!important;
  letter-spacing:-.025em!important;
}
body[data-app="admin"] #tab-overview .ov-executive-head p{
  max-width:760px!important;
  margin:8px 0 0!important;
  color:#9691a7!important;
  font-size:.78rem!important;
  line-height:1.55!important;
}
body[data-app="admin"] #tab-overview .ov-executive-head-meta{
  min-width:285px!important;
  display:grid!important;
  justify-items:end!important;
  gap:6px!important;
  text-align:right!important;
}
body[data-app="admin"] #tab-overview .ov-executive-head-meta>strong{
  color:#f5f3ff!important;
  font-size:.82rem!important;
  font-weight:900!important;
}
body[data-app="admin"] #tab-overview .ov-executive-head-meta>small{
  max-width:360px!important;
  color:#777287!important;
  font-size:.67rem!important;
  line-height:1.45!important;
}
body[data-app="admin"] #tab-overview .ov-live-badge{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  width:max-content!important;
  padding:6px 9px!important;
  border:1px solid rgba(34,197,94,.18)!important;
  border-radius:999px!important;
  background:rgba(34,197,94,.07)!important;
  color:#86efac!important;
  font-size:.64rem!important;
  font-weight:900!important;
  letter-spacing:.035em!important;
  text-transform:uppercase!important;
}
body[data-app="admin"] #tab-overview .ov-live-badge i{
  width:7px!important;
  height:7px!important;
  border-radius:50%!important;
  background:#22c55e!important;
  box-shadow:0 0 0 4px rgba(34,197,94,.10)!important;
}

/* KPIs executivos */
body[data-app="admin"] #tab-overview .ov-kpis-twelve{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body[data-app="admin"] #tab-overview .ov-premium-kpi{
  position:relative!important;
  min-height:168px!important;
  padding:17px 18px 15px!important;
  justify-content:flex-start!important;
  border-color:rgba(167,139,250,.17)!important;
  background:
    radial-gradient(circle at 100% 0,rgba(124,58,237,.08),transparent 40%),
    linear-gradient(145deg,rgba(19,17,39,.98),rgba(9,9,22,.99))!important;
  transition:transform .18s ease,border-color .18s ease,background .18s ease!important;
}
body[data-app="admin"] #tab-overview .ov-premium-kpi:hover{
  border-color:rgba(167,139,250,.34)!important;
}
body[data-app="admin"] #tab-overview .ov-premium-kpi:after{
  content:"";
  position:absolute;
  left:17px;
  right:17px;
  top:0;
  height:2px;
  border-radius:0 0 3px 3px;
  background:linear-gradient(90deg,transparent,#8b5cf6,transparent);
  opacity:.7;
}
body[data-app="admin"] #tab-overview .ov-premium-kpi.green:after{background:linear-gradient(90deg,transparent,#22c55e,transparent)}
body[data-app="admin"] #tab-overview .ov-premium-kpi.red:after{background:linear-gradient(90deg,transparent,#ef4444,transparent)}
body[data-app="admin"] #tab-overview .ov-premium-kpi.blue:after{background:linear-gradient(90deg,transparent,#38bdf8,transparent)}
body[data-app="admin"] #tab-overview .ov-premium-kpi.pink:after{background:linear-gradient(90deg,transparent,#ec4899,transparent)}
body[data-app="admin"] #tab-overview .ov-premium-kpi.cyan:after{background:linear-gradient(90deg,transparent,#2dd4bf,transparent)}
body[data-app="admin"] #tab-overview .ov-premium-kpi.gold:after,
body[data-app="admin"] #tab-overview .ov-premium-kpi.orange:after{background:linear-gradient(90deg,transparent,#f59e0b,transparent)}
body[data-app="admin"] #tab-overview .ov-premium-kpi-head{min-height:32px!important}
body[data-app="admin"] #tab-overview .ov-premium-kpi-icon{
  flex:0 0 32px!important;
  width:32px!important;
  height:32px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(167,139,250,.13)!important;
}
body[data-app="admin"] #tab-overview .ov-premium-kpi-icon svg{
  width:17px!important;
  height:17px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
body[data-app="admin"] #tab-overview .ov-premium-kpi>strong{
  margin:13px 0 0!important;
  font-size:clamp(1.35rem,1.8vw,1.72rem)!important;
  letter-spacing:-.035em!important;
}
body[data-app="admin"] #tab-overview .ov-premium-kpi p{
  min-height:18px!important;
  margin:5px 0 0!important;
  line-height:1.35!important;
}
body[data-app="admin"] #tab-overview .ov-premium-kpi footer{
  margin-top:auto!important;
  padding-top:12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:7px!important;
  border-top:1px solid rgba(255,255,255,.055)!important;
}
body[data-app="admin"] #tab-overview .ov-kpi-delta{
  max-width:100%!important;
  display:inline-flex!important;
  align-items:center!important;
  min-height:24px!important;
  padding:4px 7px!important;
  border:1px solid rgba(148,163,184,.14)!important;
  border-radius:999px!important;
  background:rgba(148,163,184,.07)!important;
  color:#a9a5b9!important;
  font-size:.59rem!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
body[data-app="admin"] #tab-overview .ov-kpi-delta.positive{
  border-color:rgba(34,197,94,.18)!important;
  background:rgba(34,197,94,.08)!important;
  color:#86efac!important;
}
body[data-app="admin"] #tab-overview .ov-kpi-delta.negative{
  border-color:rgba(244,63,94,.18)!important;
  background:rgba(244,63,94,.08)!important;
  color:#fda4af!important;
}
body[data-app="admin"] #tab-overview .ov-kpi-footnote{
  overflow:hidden!important;
  color:#686475!important;
  font-size:.58rem!important;
  font-weight:700!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Cards e leitura visual */
body[data-app="admin"] #tab-overview .ov-premium-card{
  background:
    linear-gradient(180deg,rgba(255,255,255,.012),transparent 80px),
    rgba(10,9,24,.98)!important;
  box-shadow:0 16px 38px rgba(0,0,0,.12)!important;
}
body[data-app="admin"] #tab-overview .ov-premium-card>header{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
}
body[data-app="admin"] #tab-overview .ov-premium-card h3{
  margin:2px 0 0!important;
  letter-spacing:-.01em!important;
}
body[data-app="admin"] #tab-overview .ov-premium-card header p{
  margin:5px 0 0!important;
  line-height:1.45!important;
}
body[data-app="admin"] #tab-overview .ov-premium-tag,
body[data-app="admin"] #tab-overview .ov-premium-rating{
  padding:6px 9px!important;
  border-radius:999px!important;
  font-size:.62rem!important;
  font-weight:900!important;
}
body[data-app="admin"] #tab-overview .ov-premium-main-chart{
  height:280px!important;
}

/* Pipeline */
body[data-app="admin"] #tab-overview .ov-kpi-pipeline{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:9px!important;
}
body[data-app="admin"] #tab-overview .ov-kpi-pipeline article{
  min-width:0!important;
  padding:13px 10px!important;
  border:1px solid rgba(255,255,255,.055)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.025)!important;
}
body[data-app="admin"] #tab-overview .ov-kpi-pipeline article>span{
  flex:0 0 32px!important;
  width:32px!important;
  height:32px!important;
  border-radius:10px!important;
  font-size:.82rem!important;
}
body[data-app="admin"] #tab-overview .ov-kpi-pipeline b{font-size:1.1rem!important}
body[data-app="admin"] #tab-overview .ov-kpi-pipeline small{
  display:block!important;
  margin-top:2px!important;
  color:#898398!important;
  font-size:.59rem!important;
  line-height:1.2!important;
}
body[data-app="admin"] #tab-overview .ov-kpi-pipeline .cancelled>span{background:rgba(244,63,94,.12)!important;color:#fda4af!important}
body[data-app="admin"] #tab-overview .ov-kpi-pipeline .new>span{background:rgba(168,85,247,.13)!important;color:#d8b4fe!important}

/* Indicadores de eficiência */
body[data-app="admin"] #tab-overview .ov-efficiency-list{
  display:grid!important;
  gap:16px!important;
  padding:3px 0!important;
}
body[data-app="admin"] #tab-overview .ov-efficiency-list>div{
  display:grid!important;
  gap:8px!important;
}
body[data-app="admin"] #tab-overview .ov-efficiency-list header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
body[data-app="admin"] #tab-overview .ov-efficiency-list header span{
  color:#aaa5b9!important;
  font-size:.72rem!important;
  font-weight:800!important;
}
body[data-app="admin"] #tab-overview .ov-efficiency-list header b{
  color:#f5f3ff!important;
  font-size:.72rem!important;
  font-weight:900!important;
}
body[data-app="admin"] #tab-overview .ov-efficiency-list>div>i{
  width:100%!important;
  height:7px!important;
  overflow:hidden!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.055)!important;
}
body[data-app="admin"] #tab-overview .ov-efficiency-list em{
  display:block!important;
  height:100%!important;
  min-width:2px!important;
  border-radius:inherit!important;
  background:linear-gradient(90deg,#7c3aed,#a855f7)!important;
}
body[data-app="admin"] #tab-overview .ov-efficiency-list em.green{background:linear-gradient(90deg,#15803d,#4ade80)!important}
body[data-app="admin"] #tab-overview .ov-efficiency-list em.red{background:linear-gradient(90deg,#be123c,#fb7185)!important}
body[data-app="admin"] #tab-overview .ov-efficiency-list em.cyan{background:linear-gradient(90deg,#0f766e,#2dd4bf)!important}

/* Resumo financeiro ampliado */
body[data-app="admin"] #tab-overview .ov-financial-summary-pro{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body[data-app="admin"] #tab-overview .ov-financial-summary-pro>div{
  min-height:94px!important;
  padding:15px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  border-color:rgba(167,139,250,.12)!important;
  background:rgba(255,255,255,.022)!important;
}
body[data-app="admin"] #tab-overview .ov-financial-summary-pro strong{
  margin-top:6px!important;
  font-size:.98rem!important;
}
body[data-app="admin"] #tab-overview .ov-financial-summary-pro small{
  display:block!important;
  margin-top:4px!important;
  color:#716c7e!important;
  font-size:.58rem!important;
}

/* refinamentos dos componentes herdados */
body[data-app="admin"] #tab-overview .ov-premium-products article,
body[data-app="admin"] #tab-overview .ov-compact-orders article{
  border-color:rgba(255,255,255,.055)!important;
  background:rgba(255,255,255,.022)!important;
}
body[data-app="admin"] #tab-overview .ov-donut{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 12px 26px rgba(0,0,0,.15)!important;
}
body[data-app="admin"] #tab-overview .ov-premium-empty{
  min-height:170px!important;
  display:grid!important;
  place-items:center!important;
  color:#777287!important;
  font-size:.72rem!important;
  text-align:center!important;
}

@media(max-width:1280px){
  body[data-app="admin"] #tab-overview .ov-kpis-twelve{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body[data-app="admin"] #tab-overview .ov-financial-summary-pro{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-app="admin"] #tab-overview .ov-kpi-pipeline{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:900px){
  body[data-app="admin"] #tab-overview .ov-executive-head{align-items:flex-start!important;flex-direction:column!important}
  body[data-app="admin"] #tab-overview .ov-executive-head-meta{min-width:0!important;width:100%!important;justify-items:start!important;text-align:left!important}
  body[data-app="admin"] #tab-overview .ov-kpis-twelve{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
  body[data-app="admin"] #tab-overview .ov-executive-head{padding:18px!important;border-radius:18px!important}
  body[data-app="admin"] #tab-overview .ov-executive-head-meta>small{max-width:none!important}
  body[data-app="admin"] #tab-overview .ov-kpis-twelve{grid-template-columns:1fr 1fr!important;gap:9px!important}
  body[data-app="admin"] #tab-overview .ov-premium-kpi{min-height:158px!important;padding:14px!important;border-radius:16px!important}
  body[data-app="admin"] #tab-overview .ov-premium-kpi>strong{font-size:1.25rem!important}
  body[data-app="admin"] #tab-overview .ov-premium-kpi footer{align-items:flex-start!important;flex-direction:column!important;gap:5px!important}
  body[data-app="admin"] #tab-overview .ov-kpi-footnote{width:100%!important}
  body[data-app="admin"] #tab-overview .ov-kpi-pipeline{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-app="admin"] #tab-overview .ov-financial-summary-pro{grid-template-columns:1fr 1fr!important;gap:8px!important}
  body[data-app="admin"] #tab-overview .ov-financial-summary-pro>div{min-height:84px!important;padding:12px!important}
}
@media(max-width:400px){
  body[data-app="admin"] #tab-overview .ov-kpis-twelve{grid-template-columns:1fr!important}
  body[data-app="admin"] #tab-overview .ov-premium-kpi{min-height:150px!important}
  body[data-app="admin"] #tab-overview .ov-financial-summary-pro{grid-template-columns:1fr!important}
}


/* STARBY V33 — mensagens inteligentes de comparação */
body[data-app="admin"] #tab-overview .ov-kpi-delta{
  white-space:normal!important;
  line-height:1.28!important;
  text-align:left!important;
}
body[data-app="admin"] #tab-overview .ov-comparison-card{
  min-height:100%!important;
}
body[data-app="admin"] #tab-overview .ov-comparison-insights{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:16px!important;
}
body[data-app="admin"] #tab-overview .ov-comparison-insight{
  display:flex!important;
  align-items:flex-start!important;
  gap:11px!important;
  min-width:0!important;
  padding:13px 14px!important;
  border:1px solid rgba(148,163,184,.12)!important;
  border-radius:15px!important;
  background:rgba(148,163,184,.035)!important;
}
body[data-app="admin"] #tab-overview .ov-comparison-insight.positive{
  border-color:rgba(34,197,94,.17)!important;
  background:linear-gradient(135deg,rgba(34,197,94,.075),rgba(34,197,94,.025))!important;
}
body[data-app="admin"] #tab-overview .ov-comparison-insight.negative{
  border-color:rgba(244,63,94,.17)!important;
  background:linear-gradient(135deg,rgba(244,63,94,.075),rgba(244,63,94,.025))!important;
}
body[data-app="admin"] #tab-overview .ov-comparison-insight-icon{
  flex:0 0 32px!important;
  width:32px!important;
  height:32px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:10px!important;
  background:rgba(148,163,184,.10)!important;
  color:#b6b2c5!important;
  font-size:.92rem!important;
  font-weight:950!important;
}
body[data-app="admin"] #tab-overview .ov-comparison-insight.positive .ov-comparison-insight-icon{
  background:rgba(34,197,94,.11)!important;
  color:#86efac!important;
}
body[data-app="admin"] #tab-overview .ov-comparison-insight.negative .ov-comparison-insight-icon{
  background:rgba(244,63,94,.11)!important;
  color:#fda4af!important;
}
body[data-app="admin"] #tab-overview .ov-comparison-insight>div{min-width:0!important}
body[data-app="admin"] #tab-overview .ov-comparison-insight strong{
  display:block!important;
  margin:0!important;
  color:#f4f1ff!important;
  font-size:.72rem!important;
  font-weight:900!important;
}
body[data-app="admin"] #tab-overview .ov-comparison-insight p{
  margin:4px 0 0!important;
  color:#b9b5c8!important;
  font-size:.67rem!important;
  font-weight:800!important;
  line-height:1.4!important;
}
body[data-app="admin"] #tab-overview .ov-comparison-insight.positive p{color:#9fe8b5!important}
body[data-app="admin"] #tab-overview .ov-comparison-insight.negative p{color:#ffb2bd!important}
body[data-app="admin"] #tab-overview .ov-comparison-insight small{
  display:block!important;
  margin-top:4px!important;
  color:#706b7d!important;
  font-size:.58rem!important;
  line-height:1.35!important;
}
@media(max-width:760px){
  body[data-app="admin"] #tab-overview .ov-comparison-insights{grid-template-columns:1fr!important}
}
