.reportes-pro{
  --rep-red:#d7192a;
  --rep-red-dark:#9f1020;
  --rep-green:#16a34a;
  --rep-blue:#2563eb;
  --rep-amber:#d97706;
  --rep-purple:#7c3aed;
  --rep-ink:#111827;
  --rep-muted:#667085;
  --rep-line:#e7ebf2;
  --rep-soft:#f6f8fb;
  --rep-panel:#fff;
  color:var(--rep-ink);
  display:grid;
  gap:16px;
}
.reportes-pro *{ box-sizing:border-box; }
.reportes-pro h1,
.reportes-pro h2,
.reportes-pro p{ margin:0; }
.reportes-pro .muted{ color:var(--rep-muted); }
.reportes-pro .small{ font-size:12px; line-height:1.35; }
.reportes-pro .h2{ font-size:16px; font-weight:1000; }

.reportes-pro .repHero{
  min-height:150px;
  border-radius:8px;
  padding:22px;
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  gap:18px;
  align-items:center;
  color:#fff;
  background:
    linear-gradient(135deg, rgba(37,99,235,.94), rgba(17,24,39,.96) 48%, rgba(215,25,42,.92)),
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.22), transparent 30%);
  box-shadow:0 22px 55px rgba(37,99,235,.15);
  overflow:hidden;
  position:relative;
}
.reportes-pro .repHero::after{
  content:"";
  position:absolute;
  inset:auto -95px -125px auto;
  width:330px;
  height:330px;
  border-radius:50%;
  border:36px solid rgba(255,255,255,.10);
}
.reportes-pro .repHero__copy,
.reportes-pro .repHero__actions{
  position:relative;
  z-index:1;
}
.reportes-pro .repHero__copy{
  display:grid;
  gap:8px;
}
.reportes-pro .repHero__eyebrow{
  width:max-content;
  max-width:100%;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  padding:7px 10px;
  background:rgba(255,255,255,.13);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.reportes-pro .repHero h1{
  font-size:40px;
  line-height:1;
  letter-spacing:0;
}
.reportes-pro .repHero p{
  color:rgba(255,255,255,.88);
  line-height:1.5;
  max-width:760px;
}
.reportes-pro .repHero__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.reportes-pro .repControls{
  border:1px solid var(--rep-line);
  border-radius:8px;
  padding:14px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,23,42,.07);
  display:grid;
  grid-template-columns:1.25fr 160px 160px 180px auto;
  gap:10px;
  align-items:end;
}
.reportes-pro .field label{
  display:block;
  margin-bottom:6px;
  color:var(--rep-ink);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.reportes-pro .input{
  width:100%;
  border:1px solid var(--rep-line);
  border-radius:8px;
  padding:12px;
  outline:none;
  background:#fff;
  color:var(--rep-ink);
  font:inherit;
}
.reportes-pro .input:focus{
  border-color:rgba(37,99,235,.45);
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}
.reportes-pro .repControlBtns{
  display:flex;
  gap:8px;
}
.reportes-pro .btn{
  min-height:42px;
  border:1px solid var(--rep-red);
  border-radius:8px;
  background:var(--rep-red);
  color:#fff;
  padding:10px 13px;
  cursor:pointer;
  font-weight:900;
  font:inherit;
}
.reportes-pro .btn--ghost{
  color:var(--rep-red);
  background:#fff;
  border-color:rgba(215,25,42,.28);
}

.reportes-pro .rep__stats{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
.reportes-pro .rstat{
  border:1px solid var(--rep-line);
  border-radius:8px;
  padding:15px;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
  border-left:4px solid var(--rep-blue);
}
.reportes-pro .rstat:nth-child(2){ border-left-color:var(--rep-green); }
.reportes-pro .rstat:nth-child(3){ border-left-color:var(--rep-purple); }
.reportes-pro .rstat:nth-child(4){ border-left-color:var(--rep-amber); }
.reportes-pro .rstat:nth-child(5){ border-left-color:var(--rep-red); }
.reportes-pro .rstat .k{
  color:var(--rep-muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.reportes-pro .rstat .v{
  margin-top:5px;
  font-size:24px;
  line-height:1;
  font-weight:1000;
}

.reportes-pro .rep__grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);
  gap:16px;
}
.reportes-pro .repPane{
  border:1px solid var(--rep-line);
  border-radius:8px;
  padding:14px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,23,42,.07);
}
.reportes-pro .card__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.reportes-pro .repTableWrap{
  overflow:auto;
  border:1px solid var(--rep-line);
  border-radius:8px;
}
.reportes-pro .repTable{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:980px;
}
.reportes-pro .repTable th,
.reportes-pro .repTable td{
  border-bottom:1px solid var(--rep-line);
  padding:11px 10px;
  font-size:13px;
  vertical-align:top;
}
.reportes-pro .repTable th{
  text-align:left;
  font-size:12px;
  color:var(--rep-muted);
  position:sticky;
  top:0;
  background:var(--rep-soft);
  z-index:1;
  text-transform:uppercase;
}
.reportes-pro .repTable tr:hover td{
  background:#fbfcff;
}
.reportes-pro .right{
  text-align:right;
  white-space:nowrap;
}
.reportes-pro .repSide{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.reportes-pro .sbox{
  border:1px solid var(--rep-line);
  border-radius:8px;
  padding:12px;
  background:#fff;
}
.reportes-pro .sbox .t{
  font-weight:1000;
}
.reportes-pro .sbox .m{
  margin-top:8px;
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  color:var(--rep-muted);
  font-size:12px;
}
.reportes-pro .pill{
  border:1px solid var(--rep-line);
  border-radius:999px;
  padding:4px 7px;
  background:#fff;
  font-weight:900;
}
.reportes-pro .repSection td{
  background:#f8fafc;
  font-weight:1000;
}
.reportes-pro .repSubtotal td{
  background:#fcfcfd;
}
.reportes-pro .repGrand td{
  background:#fff5f5;
  font-weight:1000;
}
.reportes-pro .repEmpty{
  padding:18px;
  border:1px dashed #cfd6e3;
  border-radius:8px;
  background:var(--rep-soft);
}

@media(max-width:1180px){
  .reportes-pro .repHero,
  .reportes-pro .rep__grid{
    grid-template-columns:1fr;
  }
  .reportes-pro .repControls{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .reportes-pro .rep__stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:760px){
  .reportes-pro .repHero{
    padding:18px;
  }
  .reportes-pro .repHero h1{
    font-size:32px;
  }
  .reportes-pro .repHero__actions,
  .reportes-pro .repControlBtns{
    flex-direction:column;
  }
  .reportes-pro .repControls,
  .reportes-pro .rep__stats{
    grid-template-columns:1fr;
  }
}
