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

.historial-pro .hisHero{
  min-height:150px;
  border-radius:8px;
  padding:22px;
  display:grid;
  align-items:center;
  color:#fff;
  background:
    linear-gradient(135deg, rgba(215,25,42,.94), rgba(17,24,39,.96) 50%, rgba(37,99,235,.88)),
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.22), transparent 30%);
  box-shadow:0 22px 55px rgba(215,25,42,.15);
  overflow:hidden;
  position:relative;
}
.historial-pro .hisHero::after{
  content:"";
  position:absolute;
  inset:auto -95px -125px auto;
  width:330px;
  height:330px;
  border-radius:50%;
  border:36px solid rgba(255,255,255,.10);
}
.historial-pro .hisHero__copy{
  position:relative;
  z-index:1;
  display:grid;
  gap:8px;
}
.historial-pro .hisHero__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;
}
.historial-pro .hisHero h1{
  font-size:40px;
  line-height:1;
  letter-spacing:0;
}
.historial-pro .hisHero p{
  color:rgba(255,255,255,.88);
  line-height:1.5;
  max-width:780px;
}

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

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

.historial-pro .his__grid{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(340px,.82fr);
  gap:16px;
  align-items:start;
}
.historial-pro .hisPane{
  border:1px solid var(--his-line);
  border-radius:8px;
  padding:14px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,23,42,.07);
}
.historial-pro .hisPane--ticket{
  position:sticky;
  top:14px;
}
.historial-pro .card__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.historial-pro .hisList{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.historial-pro .hcard{
  border:1px solid var(--his-line);
  border-radius:8px;
  padding:12px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px;
  gap:12px;
  align-items:start;
  background:#fff;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.historial-pro .hcard:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(15,23,42,.10);
  border-color:rgba(215,25,42,.24);
}
.historial-pro .hleft{
  min-width:0;
}
.historial-pro .htitle{
  font-weight:1000;
  display:flex;
  gap:7px;
  align-items:center;
  flex-wrap:wrap;
}
.historial-pro .hsub{
  margin-top:8px;
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  color:var(--his-muted);
  font-size:12px;
}
.historial-pro .hactions{
  display:grid;
  gap:8px;
}
.historial-pro .badge{
  border:1px solid var(--his-line);
  padding:4px 7px;
  border-radius:999px;
  background:#fff;
  font-size:12px;
  font-weight:900;
}
.historial-pro .badge.red{
  border-color:#fecaca;
  background:#fff1f1;
  color:#991b1b;
}
.historial-pro .badge.blue{
  border-color:#bfdbfe;
  background:#eff6ff;
  color:#1d4ed8;
}
.historial-pro .ticketBox{
  border:1px dashed #cfd6e3;
  border-radius:8px;
  padding:12px;
  background:var(--his-soft);
}
.historial-pro .ticketHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.historial-pro .ticketPreview{
  background:#fff;
  border:1px solid var(--his-line);
  border-radius:8px;
  padding:12px;
  min-height:220px;
  overflow:auto;
}
.historial-pro .t-logo{
  max-width:120px;
  max-height:60px;
  object-fit:contain;
  margin:6px auto;
  display:block;
}
.historial-pro .hisEmpty{
  padding:18px;
  border:1px dashed #cfd6e3;
  border-radius:8px;
  background:var(--his-soft);
}

@media(max-width:1180px){
  .historial-pro .his__grid,
  .historial-pro .hisFilters{
    grid-template-columns:1fr;
  }
  .historial-pro .hisPane--ticket{
    position:static;
  }
  .historial-pro .his__stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:760px){
  .historial-pro .hisHero{
    padding:18px;
  }
  .historial-pro .hisHero h1{
    font-size:32px;
  }
  .historial-pro .his__stats,
  .historial-pro .hcard{
    grid-template-columns:1fr;
  }
}
