/* ==========================================================================
   ESURVEY / INDEKS WIDGET
   File: indeks-widget.css
   Untuk SKM & SPAK eSurvey Badilum
   ========================================================================== */


/* ==========================================================================
   1. WRAPPER
   ========================================================================== */

.pnbyw-esurvey-widget,
.pnbyw-esurvey-widget-skm,
.pnbyw-esurvey-widget-spak,
.pnbyw-esurvey-widget-both{
  width:100%;
  max-width:100%;
  margin:0 0 12px !important;
  padding:0 !important;
  box-sizing:border-box !important;
}


/* ==========================================================================
   2. CARD
   ========================================================================== */

.pnbyw-esurvey-card{
  width:100%;
  max-width:100%;
  margin:0 !important;
  padding:0 !important;

  background:#fff !important;
  border:.5px solid #e2e4e8 !important;
  border-radius:10px !important;

  overflow:hidden !important;
  box-shadow:none !important;
  box-sizing:border-box !important;
}


/* ==========================================================================
   3. HEADER
   ========================================================================== */

.pnbyw-esurvey-head{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:6px !important;

  min-height:44px !important;
  padding:10px 14px !important;

  background:linear-gradient(135deg,#9a2109,#c0300f) !important;
  color:#fff !important;

  border-radius:10px 10px 0 0 !important;
  box-sizing:border-box !important;
}

.pnbyw-esurvey-head h3.pnbyw-esurvey-title,
.pnbyw-esurvey-head .pnbyw-esurvey-title,
.pnbyw-esurvey-title{
  margin:0 !important;
  padding:0 !important;

  color:#fff !important;
  font-family:var(--pnbyw-font-main,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif) !important;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1.3 !important;
  letter-spacing:.05px !important;
  text-transform:none !important;
}

/* Periode */
.pnbyw-esurvey-period{
  display:inline-flex !important;
  align-items:center !important;

  margin:0 !important;
  padding:3px 9px !important;

  background:rgba(255,255,255,.16) !important;
  border:1px solid rgba(255,255,255,.28) !important;
  border-radius:999px !important;

  color:#fff !important;
  font-size:11px !important;
  font-weight:600 !important;
  line-height:1.25 !important;
}


/* ==========================================================================
   4. BODY
   ========================================================================== */

.pnbyw-esurvey-body{
  padding:14px !important;
  background:#fff !important;
  box-sizing:border-box !important;
}

.pnbyw-esurvey-list{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:10px !important;
}

.pnbyw-esurvey-empty{
  padding:12px 14px !important;

  background:#fff7ed !important;
  border:1px solid #fed7aa !important;
  border-radius:10px !important;

  color:#9a3412 !important;
  font-size:13px !important;
  line-height:1.5 !important;
}


/* ==========================================================================
   5. SCORE BOX
   ========================================================================== */

.pnbyw-esurvey-scorebox{
  width:100% !important;
  padding:12px 13px !important;

  background:#fff !important;
  border:1px solid #ffd0c3 !important;
  border-radius:10px !important;

  overflow:hidden !important;
  box-sizing:border-box !important;
}

.pnbyw-esurvey-kicker{
  margin:0 0 2px !important;

  color:#9a2109 !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1.25 !important;
  letter-spacing:.05px !important;
  text-transform:none !important;
}

.pnbyw-esurvey-desc{
  margin:0 0 8px !important;

  color:#64748b !important;
  font-size:12px !important;
  font-weight:500 !important;
  line-height:1.35 !important;
}

.pnbyw-esurvey-score{
  display:block !important;

  margin:0 0 8px !important;

  color:#111827 !important;
  font-size:32px !important;
  font-weight:850 !important;
  line-height:1 !important;
  letter-spacing:-.035em !important;
  white-space:nowrap !important;
}


/* ==========================================================================
   6. BADGE GRADE
   ========================================================================== */

.pnbyw-esurvey-badge{
  display:inline-flex !important;
  align-items:center !important;

  max-width:100% !important;
  padding:5px 10px !important;

  background:#15803d !important;
  border-radius:999px !important;

  color:#fff !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1.2 !important;
}

.pnbyw-esurvey-badge.grade-B{
  background:#1d4ed8 !important;
}

.pnbyw-esurvey-badge.grade-C{
  background:#b45309 !important;
}

.pnbyw-esurvey-badge.grade-D{
  background:#b91c1c !important;
}


/* ==========================================================================
   7. NILAI TERENDAH
   ========================================================================== */

.pnbyw-esurvey-lowest{
  margin-top:10px !important;
  padding-top:10px !important;
  border-top:1px dashed #ffd0c3 !important;
}

.pnbyw-esurvey-lowest-title{
  display:block !important;

  margin:0 0 6px !important;

  color:#9a2109 !important;
  font-size:11.5px !important;
  font-weight:800 !important;
  line-height:1.35 !important;
}

.pnbyw-esurvey-lowest-list{
  display:grid !important;
  gap:5px !important;

  margin:0 !important;
  padding:0 !important;
  list-style:none !important;
}

.pnbyw-esurvey-lowest-list li{
  display:grid !important;
  grid-template-columns:18px 1fr auto !important;
  align-items:start !important;
  gap:6px !important;

  padding:6px 8px !important;

  background:#fff !important;
  border:1px solid #fee2d8 !important;
  border-radius:8px !important;

  box-sizing:border-box !important;
}

.pnbyw-esurvey-lowest-no,
.pnbyw-esurvey-lowest-name,
.pnbyw-esurvey-lowest-score{
  font-size:10.5px !important;
  line-height:1.35 !important;
}

.pnbyw-esurvey-lowest-no{
  color:#9a2109 !important;
  font-weight:800 !important;
}

.pnbyw-esurvey-lowest-name{
  color:#475569 !important;
  font-weight:600 !important;
}

.pnbyw-esurvey-lowest-score{
  color:#dc2626 !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}


/* ==========================================================================
   8. FOOTER BUTTON
   ========================================================================== */

.pnbyw-esurvey-footer{
  padding:11px 14px !important;

  background:linear-gradient(135deg,#9a2109 0%,#c92d0d 100%) !important;
  text-align:center !important;

  box-sizing:border-box !important;
}

.pnbyw-esurvey-footer a{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  width:100% !important;
  min-height:40px !important;
  padding:9px 14px !important;

  background:rgba(255,255,255,.12) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  border-radius:10px !important;

  color:#fff !important;
  font-size:11.5px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
  text-align:center !important;
  text-decoration:none !important;

  box-sizing:border-box !important;
  transition:background .2s ease, transform .2s ease !important;
}

.pnbyw-esurvey-footer a:hover{
  background:rgba(255,255,255,.2) !important;
  color:#fff !important;
  text-decoration:none !important;
  transform:translateY(-1px) !important;
}


/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */

@media(max-width:420px){
  .pnbyw-esurvey-head{
    min-height:38px !important;
    padding:8px 14px !important;
  }

  .pnbyw-esurvey-head h3.pnbyw-esurvey-title,
  .pnbyw-esurvey-head .pnbyw-esurvey-title,
  .pnbyw-esurvey-title{
    font-size:11.5px !important;
  }

  .pnbyw-esurvey-body{
    padding:12px 14px !important;
  }

  .pnbyw-esurvey-score{
    font-size:29px !important;
  }

  .pnbyw-esurvey-footer{
    padding:10px 12px !important;
  }

  .pnbyw-esurvey-footer a{
    min-height:38px !important;
    font-size:11.5px !important;
  }
}
