
/* ================================================================
   EduCantina 4.0.6 — Relatórios e Inteligência Gerencial
   Padronização de relatórios, vendas, financeiro e indicadores.
   ================================================================ */
body.action-reports,
body.action-executive,
body.action-sales,
body.action-wallet,
body.action-inventory,
body.action-inventory_forecast,
body.action-purchases,
body.action-waste,
body.action-assistant{
 --rp6-navy:#0A2E4D;
 --rp6-blue:#1E6CFB;
 --rp6-green:#16B84E;
 --rp6-purple:#7454D8;
 --rp6-orange:#F59E0B;
 --rp6-red:#EF4444;
 --rp6-bg:#F4F7FA;
 --rp6-card:#FFFFFF;
 --rp6-border:#E2E9EF;
 --rp6-text:#10233A;
 --rp6-muted:#718196;
 background:var(--rp6-bg)!important;
}

/* Cabeçalhos */
body.action-reports .premium-page-head,
body.action-executive .premium-page-head,
body.action-sales .premium-page-head,
body.action-wallet .premium-page-head,
body.action-inventory .premium-page-head,
body.action-inventory_forecast .premium-page-head,
body.action-purchases .premium-page-head,
body.action-waste .premium-page-head,
body.action-assistant .premium-page-head{
 margin-bottom:13px!important;
 align-items:flex-end!important;
}
body.action-reports .premium-page-head h2,
body.action-executive .premium-page-head h2,
body.action-sales .premium-page-head h2,
body.action-wallet .premium-page-head h2,
body.action-inventory .premium-page-head h2,
body.action-inventory_forecast .premium-page-head h2,
body.action-purchases .premium-page-head h2,
body.action-waste .premium-page-head h2,
body.action-assistant .premium-page-head h2{
 font-size:25px!important;
 letter-spacing:-.04em!important;
 color:var(--rp6-text)!important;
}
body.action-reports .premium-page-head p,
body.action-executive .premium-page-head p,
body.action-sales .premium-page-head p,
body.action-wallet .premium-page-head p,
body.action-inventory .premium-page-head p,
body.action-inventory_forecast .premium-page-head p,
body.action-purchases .premium-page-head p,
body.action-waste .premium-page-head p,
body.action-assistant .premium-page-head p{
 font-size:8px!important;
 color:var(--rp6-muted)!important;
}

/* Filtros */
.report-filters,
.executive-filters,
.sales-filters,
.inventory-filters,
.wallet-filters{
 display:flex!important;
 flex-wrap:wrap!important;
 align-items:end!important;
 gap:8px!important;
 padding:12px!important;
 margin-bottom:12px!important;
 background:#fff!important;
 border:1px solid var(--rp6-border)!important;
 border-radius:13px!important;
 box-shadow:0 4px 14px rgba(10,46,77,.04)!important;
}
.report-filters .field,
.executive-filters .field,
.sales-filters .field,
.inventory-filters .field,
.wallet-filters .field{
 min-width:135px!important;
 flex:1!important;
}
.report-filters label,
.executive-filters label,
.sales-filters label,
.inventory-filters label,
.wallet-filters label{
 font-size:6.8px!important;
 color:#64778A!important;
}
.report-filters input,
.report-filters select,
.executive-filters input,
.executive-filters select,
.sales-filters input,
.sales-filters select,
.inventory-filters input,
.inventory-filters select,
.wallet-filters input,
.wallet-filters select{
 min-height:37px!important;
 font-size:8px!important;
}

/* KPIs */
.report-kpis,
.executive-kpis,
.inventory-kpis,
.production-kpis,
.security-kpis,
.diagnostic-kpis{
 display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:10px!important;
 margin-bottom:12px!important;
}
.report-kpis>div,
.executive-kpis>div,
.inventory-kpis>div,
.production-kpis>div,
.security-kpis>div,
.diagnostic-kpis>div{
 min-height:104px!important;
 padding:14px!important;
 background:#fff!important;
 border:1px solid var(--rp6-border)!important;
 border-radius:13px!important;
 box-shadow:0 4px 14px rgba(10,46,77,.045)!important;
 position:relative!important;
 overflow:hidden!important;
}
.report-kpis>div:before,
.executive-kpis>div:before,
.inventory-kpis>div:before,
.production-kpis>div:before,
.security-kpis>div:before,
.diagnostic-kpis>div:before{
 content:"";
 position:absolute;
 left:0;right:0;top:0;
 height:3px;
 background:linear-gradient(90deg,var(--rp6-blue),var(--rp6-green));
}
.report-kpis span,
.report-kpis small,
.executive-kpis span,
.executive-kpis small,
.inventory-kpis span,
.inventory-kpis small,
.production-kpis span,
.production-kpis small{
 display:block!important;
}
.report-kpis span,
.executive-kpis span,
.inventory-kpis span,
.production-kpis span{
 font-size:7.5px!important;
 color:#66788A!important;
 font-weight:700!important;
}
.report-kpis strong,
.executive-kpis strong,
.inventory-kpis strong,
.production-kpis strong{
 display:block!important;
 font-size:20px!important;
 color:var(--rp6-text)!important;
 margin:7px 0 3px!important;
}
.report-kpis small,
.executive-kpis small,
.inventory-kpis small,
.production-kpis small{
 font-size:6.7px!important;
 color:#8695A5!important;
}

/* Grade principal */
.report-grid,
.executive-grid{
 display:grid!important;
 grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr)!important;
 gap:11px!important;
 margin-bottom:12px!important;
}
.report-grid-3{
 display:grid!important;
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:11px!important;
 margin-bottom:12px!important;
}

/* Gráficos */
.report-chart,
.executive-chart{
 min-height:320px!important;
}
.report-chart-area,
.executive-chart-area{
 height:255px!important;
 padding:13px!important;
}
.executive-bars,
.report-bars{
 display:flex!important;
 align-items:end!important;
 justify-content:space-around!important;
 gap:8px!important;
 height:100%!important;
 border-bottom:1px solid #DDE6ED!important;
 background:
  linear-gradient(to top,transparent 24%,#EDF2F6 25%,transparent 26%),
  linear-gradient(to top,transparent 49%,#EDF2F6 50%,transparent 51%),
  linear-gradient(to top,transparent 74%,#EDF2F6 75%,transparent 76%)!important;
}
.executive-bars>div,
.report-bars>div{
 flex:1!important;
 height:100%!important;
 display:flex!important;
 flex-direction:column!important;
 align-items:center!important;
 justify-content:flex-end!important;
}
.executive-bars i,
.report-bars i{
 width:min(30px,70%)!important;
 min-height:3px!important;
 border-radius:6px 6px 2px 2px!important;
 background:linear-gradient(180deg,var(--rp6-blue),var(--rp6-green))!important;
 box-shadow:0 5px 12px rgba(22,184,78,.13)!important;
}
.executive-bars span,
.report-bars span{
 font-size:6.5px!important;
 color:#77889A!important;
 margin-top:6px!important;
}

/* Listas e rankings */
.report-ranking,
.executive-ranking,
.production-intel-list{
 display:grid!important;
 gap:8px!important;
 padding:12px 14px!important;
}
.report-ranking>div,
.executive-ranking>div,
.pi-row{
 display:grid!important;
 grid-template-columns:28px 1fr auto!important;
 gap:8px!important;
 align-items:center!important;
 padding:8px 0!important;
 border-bottom:1px solid #EDF2F6!important;
}
.report-ranking>div:last-child,
.executive-ranking>div:last-child,
.pi-row:last-child{
 border-bottom:0!important;
}
.report-ranking i,
.executive-ranking i,
.pi-type{
 width:26px!important;
 height:26px!important;
 border-radius:9px!important;
 background:#EAF9EF!important;
 color:#10803A!important;
 display:grid!important;
 place-items:center!important;
 font-style:normal!important;
 font-size:7px!important;
 font-weight:850!important;
}
.report-ranking strong,
.executive-ranking strong,
.pi-name strong{
 display:block!important;
 font-size:8.5px!important;
 color:var(--rp6-text)!important;
}
.report-ranking small,
.executive-ranking small,
.pi-name small{
 display:block!important;
 font-size:6.5px!important;
 color:#8291A2!important;
 margin-top:2px!important;
}
.report-ranking b,
.executive-ranking b,
.pi-suggest strong{
 font-size:8px!important;
 color:#536579!important;
}

/* Tabelas gerenciais */
body.action-reports .tablewrap,
body.action-sales .tablewrap,
body.action-wallet .tablewrap,
body.action-inventory .tablewrap,
body.action-purchases .tablewrap,
body.action-waste .tablewrap{
 border-radius:0 0 13px 13px!important;
}
body.action-reports table,
body.action-sales table,
body.action-wallet table,
body.action-inventory table,
body.action-purchases table,
body.action-waste table{
 font-size:8px!important;
}
body.action-reports table thead th,
body.action-sales table thead th,
body.action-wallet table thead th,
body.action-inventory table thead th,
body.action-purchases table thead th,
body.action-waste table thead th{
 position:sticky!important;
 top:0!important;
 z-index:2!important;
 background:#F7FAFC!important;
 color:#627487!important;
 padding:10px!important;
}
body.action-reports table td,
body.action-sales table td,
body.action-wallet table td,
body.action-inventory table td,
body.action-purchases table td,
body.action-waste table td{
 padding:10px!important;
 vertical-align:middle!important;
}

/* Exportações */
.report-export-actions{
 display:flex!important;
 gap:7px!important;
 flex-wrap:wrap!important;
}
.report-export-actions .btn{
 min-height:36px!important;
 font-size:7.5px!important;
}
.report-export-actions .btn:before{
 margin-right:5px!important;
}

/* Financeiro */
.finance-summary{
 display:grid!important;
 grid-template-columns:repeat(3,1fr)!important;
 gap:10px!important;
}
.finance-summary>div{
 padding:13px!important;
 background:#fff!important;
 border:1px solid var(--rp6-border)!important;
 border-radius:12px!important;
}
.finance-summary span,
.finance-summary small{
 display:block!important;
}
.finance-summary span{
 font-size:7px!important;
 color:#718196!important;
}
.finance-summary strong{
 display:block!important;
 font-size:17px!important;
 color:var(--rp6-text)!important;
 margin:6px 0 2px!important;
}
.finance-summary small{
 font-size:6.5px!important;
 color:#8795A5!important;
}

/* Estoque */
.inventory-risk-list{
 display:grid!important;
 gap:8px!important;
}
.inventory-risk-row{
 display:grid!important;
 grid-template-columns:1fr auto!important;
 gap:8px!important;
 align-items:center!important;
 padding:10px!important;
 border:1px solid #E7EDF2!important;
 border-radius:10px!important;
 background:#fff!important;
}
.inventory-risk-row strong,
.inventory-risk-row small{
 display:block!important;
}
.inventory-risk-row strong{
 font-size:8.5px!important;
 color:var(--rp6-text)!important;
}
.inventory-risk-row small{
 font-size:6.5px!important;
 color:#8291A2!important;
 margin-top:2px!important;
}

/* Assistente */
body.action-assistant .assistant-layout{
 grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr)!important;
 gap:11px!important;
}
body.action-assistant .assistant-chat-panel{
 border:1px solid var(--rp6-border)!important;
 border-radius:14px!important;
 box-shadow:0 4px 14px rgba(10,46,77,.045)!important;
}
body.action-assistant .assistant-quick{
 border:1px solid #E6EDF2!important;
 border-radius:11px!important;
 background:#F9FBFD!important;
}
body.action-assistant .assistant-composer{
 border:1px solid #DCE5EC!important;
 border-radius:12px!important;
}
body.action-assistant .assistant-msg-body{
 font-size:8.5px!important;
}

/* Responsividade */
@media(max-width:1100px){
 .report-kpis,
 .executive-kpis,
 .inventory-kpis,
 .production-kpis{
  grid-template-columns:repeat(2,1fr)!important;
 }
 .report-grid,
 .executive-grid{
  grid-template-columns:1fr!important;
 }
 .report-grid-3{
  grid-template-columns:1fr 1fr!important;
 }
 body.action-assistant .assistant-layout{
  grid-template-columns:1fr!important;
 }
}
@media(max-width:700px){
 body.action-reports .content,
 body.action-executive .content,
 body.action-sales .content,
 body.action-wallet .content,
 body.action-inventory .content,
 body.action-inventory_forecast .content,
 body.action-purchases .content,
 body.action-waste .content,
 body.action-assistant .content{
  padding:11px 10px 84px!important;
 }
 body.action-reports .premium-page-head,
 body.action-executive .premium-page-head,
 body.action-sales .premium-page-head,
 body.action-wallet .premium-page-head,
 body.action-inventory .premium-page-head,
 body.action-inventory_forecast .premium-page-head,
 body.action-purchases .premium-page-head,
 body.action-waste .premium-page-head,
 body.action-assistant .premium-page-head{
  align-items:flex-start!important;
  flex-direction:column!important;
 }
 .premium-head-actions,
 .report-export-actions{
  width:100%!important;
 }
 .premium-head-actions .btn,
 .report-export-actions .btn{
  flex:1!important;
 }
 .report-kpis,
 .executive-kpis,
 .inventory-kpis,
 .production-kpis{
  grid-template-columns:1fr 1fr!important;
 }
 .report-kpis>div,
 .executive-kpis>div,
 .inventory-kpis>div,
 .production-kpis>div{
  min-height:91px!important;
  padding:11px!important;
 }
 .report-kpis strong,
 .executive-kpis strong,
 .inventory-kpis strong,
 .production-kpis strong{
  font-size:17px!important;
 }
 .report-grid-3{
  grid-template-columns:1fr!important;
 }
 .report-filters,
 .executive-filters,
 .sales-filters,
 .inventory-filters,
 .wallet-filters{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
 }
 .report-chart-area,
 .executive-chart-area{
  height:220px!important;
 }
 .finance-summary{
  grid-template-columns:1fr!important;
 }
}

/* Impressão */
@media print{
 .side,.topbar,.premium-head-actions,.report-filters,.executive-filters,
 .sales-filters,.inventory-filters,.wallet-filters,.report-export-actions{
  display:none!important;
 }
 .main{margin:0!important}
 .content{padding:0!important;background:#fff!important}
 .panel{box-shadow:none!important;border:1px solid #bbb!important}
}
