.reports-page{
  display:grid;
  gap:18px;
}

.reports-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}

.reports-head h2{
  margin:0;
}

.reports-head p{
  margin:5px 0 0;
  color:#64748b;
}

.reports-section{
  padding:18px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
}

.reports-section-head h3,
.reports-panel h3{
  margin:0 0 14px;
}

.reports-grid{
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:10px;
}

.report-card{
  padding:14px;
  border:1px solid #e2e8f0;
  border-radius:11px;
  background:#f8fafc;
}

.report-card span{
  display:block;
  font-size:12px;
  color:#64748b;
}

.report-card strong{
  display:block;
  margin-top:6px;
  font-size:20px;
}

.report-card small{
  display:block;
  margin-top:4px;
  color:#64748b;
}

.report-warning{
  border-color:#f59e0b;
}

.report-danger{
  border-color:#ef4444;
}

.report-positive{
  border-color:#22c55e;
}

.reports-two{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:16px;
}

.reports-panel{
  min-width:0;
}

.reports-mini-grid{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:9px;
}

.reports-empty,
.reports-loading{
  padding:18px;
  border-radius:10px;
  background:#f8fafc;
  color:#64748b;
}

@media(max-width:900px){

  .reports-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .reports-two{
    grid-template-columns:1fr;
  }
}

@media(max-width:600px){

  .reports-head{
    flex-direction:column;
  }

  .reports-grid,
  .reports-mini-grid{
    grid-template-columns:1fr;
  }
}

/* ==============================
   REPORTS V2
============================== */

.reports-advanced{
  display:grid;
  gap:18px;
}

.reports-advanced-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}

.reports-advanced-head h3{
  margin:0;
}

.reports-advanced-head p{
  margin:5px 0 0;
  color:#64748b;
  font-size:12px;
}

.reports-filter-row{
  display:flex;
  align-items:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.reports-filter-row label{
  display:grid;
  gap:4px;
  font-size:11px;
  color:#64748b;
}

.reports-filter-row input{
  min-height:36px;
}

.reports-charts-grid{
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:12px;
}

.reports-chart-panel,
.reports-ranking-panel{
  padding:15px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#fff;
}

.reports-chart-panel h4,
.reports-ranking-panel h4{
  margin:0 0 14px;
}

.reports-bars{
  display:grid;
  gap:9px;
}

.reports-bar-row{
  display:grid;
  grid-template-columns:
    70px minmax(70px,1fr) 90px;
  gap:8px;
  align-items:center;
}

.reports-bar-label,
.reports-bar-value{
  font-size:11px;
}

.reports-bar-value{
  text-align:right;
  font-weight:600;
}

.reports-bar-track{
  height:9px;
  border-radius:999px;
  background:#e2e8f0;
  overflow:hidden;
}

.reports-bar-fill{
  height:100%;
  border-radius:999px;
  background:currentColor;
}

.reports-ranking-grid{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:12px;
}

.reports-ranking-list{
  display:grid;
  gap:6px;
}

.reports-ranking-row{
  display:grid;
  grid-template-columns:
    30px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:9px 0;
  border-bottom:1px solid #eef2f7;
}

button.reports-ranking-row{
  width:100%;
  background:transparent;
  border:0;
  color:inherit;
  text-align:left;
}

button.reports-ranking-row:hover{
  background:#f8fafc;
}

.reports-rank{
  display:flex;
  align-items:center;
  justify-content:center;
  width:27px;
  height:27px;
  border-radius:50%;
  background:#f1f5f9;
  font-size:11px;
  font-weight:700;
}

.reports-ranking-main{
  min-width:0;
}

.reports-ranking-main strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.reports-ranking-main small{
  display:block;
  margin-top:2px;
  color:#64748b;
}

@media(max-width:1050px){

  .reports-charts-grid{
    grid-template-columns:1fr;
  }

}

@media(max-width:800px){

  .reports-advanced-head{
    flex-direction:column;
  }

  .reports-ranking-grid{
    grid-template-columns:1fr;
  }

}

@media(max-width:560px){

  .reports-bar-row{
    grid-template-columns:
      58px minmax(50px,1fr) 72px;
  }

}

/* REPORTS V3 */

.reports-export{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
}

.reports-export select{
  min-height:36px;
}

@media(max-width:700px){

  .reports-export{
    width:100%;
    margin-left:0;
    flex-wrap:wrap;
  }

}
