/* ISP360 Inventory Reports — Premium Compact V2 */

body{
  background:#f2f5f8 !important;
  color:#17354a !important;
  font-family:Inter,"Segoe UI",Arial,sans-serif !important;
}

.main{
  margin-left:var(--sidebar-width) !important;
  width:auto !important;
  padding:26px !important;
}

.main > h1{
  margin:0 0 18px !important;
  color:#17364b !important;
  font-size:31px !important;
  letter-spacing:-.8px !important;
}

/* Hero */
.invrep-v2-hero{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(340px,.9fr);
  gap:28px;
  align-items:center;
  min-height:175px;
  margin-bottom:18px;
  padding:28px 30px;
  border-radius:20px;
  background:
    radial-gradient(circle at 88% 25%,rgba(41,192,180,.25),transparent 28%),
    linear-gradient(120deg,#102f43,#16445a 58%,#185c6a);
  box-shadow:0 13px 34px rgba(17,52,73,.15);
  color:#fff;
}

.invrep-v2-eyebrow{
  display:inline-flex;
  padding:5px 10px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:20px;
  background:rgba(255,255,255,.07);
  color:#bfeae6;
  font-size:9px;
  font-weight:800;
  letter-spacing:1.3px;
}

.invrep-v2-hero h2{
  margin:14px 0 8px !important;
  color:#fff !important;
  font-size:28px !important;
  letter-spacing:-.6px;
}

.invrep-v2-hero p{
  max-width:620px;
  margin:0 !important;
  color:#c8d9e2 !important;
  font-size:13px !important;
  line-height:1.6;
}

.invrep-v2-status{
  display:grid;
  gap:9px;
}

.invrep-v2-status > div{
  padding:10px 13px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  background:rgba(255,255,255,.07);
}

.invrep-v2-status strong{
  display:block;
  font-size:11px;
}

.invrep-v2-status small{
  display:block;
  margin-top:2px;
  color:#aec5d2 !important;
  font-size:9px !important;
}

/* Action buttons */
.actions{
  display:flex !important;
  gap:8px !important;
  margin-bottom:18px !important;
  flex-wrap:wrap;
}

button{
  min-height:34px !important;
  padding:7px 10px !important;
  border-radius:8px !important;
  font-size:9px !important;
  font-weight:750 !important;
}

.primary{
  background:#173f55 !important;
  color:#fff !important;
}

.secondary{
  background:#e9eff3 !important;
  color:#405a70 !important;
}

/* KPI cards */
.cards{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:12px !important;
  margin:0 0 18px !important;
}

.card{
  position:relative;
  overflow:hidden;
  min-height:100px;
  padding:17px 18px !important;
  border:0 !important;
  border-radius:14px !important;
  color:#fff !important;
  box-shadow:0 7px 19px rgba(37,78,153,.1) !important;
}

.card:nth-child(1){
  background:linear-gradient(115deg,#2456a5,#3976cb) !important;
}

.card:nth-child(2){
  background:linear-gradient(115deg,#08766c,#159c8b) !important;
}

.card:nth-child(3){
  background:linear-gradient(115deg,#6b55ad,#8b73c8) !important;
}

.card:nth-child(4){
  background:linear-gradient(115deg,#a8661d,#d39943) !important;
}

.card:after{
  content:"";
  position:absolute;
  width:90px;
  height:90px;
  right:-25px;
  bottom:-40px;
  border:18px solid rgba(255,255,255,.06);
  border-radius:50%;
}

.card small{
  position:relative;
  z-index:1;
  color:#f3f7fa !important;
  font-size:9px !important;
  font-weight:750 !important;
  text-transform:uppercase;
  letter-spacing:.7px;
}

.card strong{
  position:relative;
  z-index:1;
  margin-top:10px !important;
  color:#fff !important;
  font-size:22px !important;
}

/* Report panels */
.panel{
  margin-bottom:14px !important;
  padding:17px !important;
  border:1px solid #dfe7ee !important;
  border-radius:15px !important;
  background:#fff !important;
  box-shadow:0 5px 18px rgba(23,54,75,.04) !important;
}

.panel h3{
  margin:0 0 12px !important;
  color:#29495d !important;
  font-size:13px !important;
}

/* Compact tables */
table{
  width:100% !important;
  border-collapse:collapse !important;
}

th{
  padding:9px 10px !important;
  border-bottom:1px solid #e6edf2 !important;
  background:#f7f9fb !important;
  color:#667e91 !important;
  font-size:8px !important;
  font-weight:800 !important;
  letter-spacing:.4px !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
  line-height:1.15 !important;
}

td{
  padding:8px 10px !important;
  border-bottom:1px solid #edf2f5 !important;
  color:#2d485b !important;
  font-size:10px !important;
  line-height:1.25 !important;
  vertical-align:middle !important;
}

tbody tr:hover{
  background:#f8fbfc !important;
}

/* Integrity */
#integrity{
  padding:12px 14px !important;
  border-radius:10px !important;
  font-size:11px !important;
  font-weight:760 !important;
}

.good{
  color:#08766c !important;
  background:#e9f7f4 !important;
  border:1px solid #ccece6 !important;
}

.bad{
  color:#a13e3e !important;
  background:#fff1f1 !important;
  border:1px solid #f1d3d3 !important;
}

/* Responsive */
@media(max-width:1050px){
  .invrep-v2-hero{
    grid-template-columns:1fr;
  }

  .invrep-v2-status{
    grid-template-columns:repeat(3,1fr);
  }

  .cards{
    grid-template-columns:repeat(2,1fr) !important;
  }
}

@media(max-width:760px){
  .main{
    margin-left:0 !important;
    width:100% !important;
    padding:16px !important;
  }

  .invrep-v2-hero{
    padding:22px 19px;
  }

  .invrep-v2-status,
  .cards{
    grid-template-columns:1fr !important;
  }

  .actions{
    display:grid !important;
    grid-template-columns:1fr !important;
  }

  .actions button{
    width:100%;
  }

  .panel{
    overflow-x:auto;
  }
}

@media print{
  .invrep-v2-hero{
    background:#fff !important;
    color:#000 !important;
    box-shadow:none !important;
    border:1px solid #ddd !important;
  }

  .invrep-v2-hero *{
    color:#000 !important;
  }

  .card{
    background:#fff !important;
    color:#000 !important;
    border:1px solid #ddd !important;
    box-shadow:none !important;
  }

  .card *{
    color:#000 !important;
  }
}
