/* NS POS — Reportes adaptables */
#tab-reportes{
  min-width:0;
  min-height:0;
  overflow:auto;
}

.report-simple-page{
  width:100%;
  min-width:0;
  display:grid;
  gap:12px;
}

.report-simple-header,
.report-simple-filter,
.report-simple-voucher,
.report-simple-tabs{
  min-width:0;
  background:#fff;
  border:1px solid #dbe4ee;
  border-radius:14px;
  box-shadow:0 7px 18px rgba(15,23,42,.06);
}

.report-simple-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
}

.report-simple-actions{display:flex;gap:8px;flex-wrap:wrap}

.report-simple-filter{
  display:grid;
  grid-template-columns:minmax(160px,190px) minmax(140px,170px) minmax(140px,170px) minmax(240px,1fr);
  gap:10px;
  align-items:end;
  padding:10px;
}

.report-simple-kpis,
#reporteKpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.report-simple-main{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(310px,360px) minmax(0,1fr);
  gap:12px;
  align-items:stretch;
}

.report-simple-voucher,
.report-simple-tabs{
  min-width:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.report-simple-title{
  flex:0 0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:11px 13px;
  border-bottom:1px solid #e5edf6;
}

.report-simple-ticket,
#previewReporteTermico{
  width:min(80mm,100%);
  min-width:0;
  max-width:80mm;
  min-height:320px;
  max-height:min(62vh,650px);
  margin:12px auto;
  overflow:auto;
  overscroll-behavior:contain;
}

.report-simple-tab-buttons{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:6px;
  padding:10px;
  background:#f8fafc;
  border-bottom:1px solid #e5edf6;
}

.report-simple-tab-content{
  flex:1 1 auto;
  min-width:0;
  min-height:0;
  overflow:hidden;
  padding:10px;
}

.report-simple-panel{
  min-width:0;
  max-height:min(64vh,690px);
  overflow:auto;
}

.report-table-wrap{overflow:auto;max-height:min(56vh,620px)}
.report-table{min-width:760px}

@media (max-width:1250px){
  .report-simple-main{grid-template-columns:1fr}
  .report-simple-voucher{min-height:440px}
  .report-simple-ticket,#previewReporteTermico{max-height:430px}
}

@media (max-width:900px){
  .report-simple-filter{grid-template-columns:1fr 1fr}
  #reporteKpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-simple-tab-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:600px){
  .report-simple-header{align-items:flex-start;flex-direction:column}
  .report-simple-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .report-simple-filter,
  #reporteKpis,
  .report-simple-tab-buttons{grid-template-columns:1fr}
}
