#x_payment {
  max-width: 950px;
  margin: auto;
}

#x_payment .kiri {
  font-family: "Kondo", Tahoma, sans-serif;
  font-size: 20px;
  font-weight: 700;
  align-items: center;
  gap: 10px;
}

#x_payment .kanan {
  font-family: "Kondo", Tahoma, sans-serif;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.saldo-info {
  font-family: "Becham", Tahoma, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

#x_payment .atas {
  font-family: "Becham", Tahoma, Verdana, sans-serif;
  font-size: 20px;
  letter-spacing: 0.4px;
  position: relative;
  overflow: hidden;
  padding: 12px 20px;
  color: #222;
  font-weight: 700;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  background: linear-gradient(180deg, #77d42a 10%, #5cb811 100%);

  text-shadow: 1px 1px 0px #aade7c;
  box-shadow: inset 1px 1px 2px 0px #c9efab;
}

#x_payment .atas::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transform: skewX(-25deg);
  animation: indoShine 6s infinite;
  pointer-events: none;
}

@keyframes indoShine {
  0% {
    left: -120%;
  }
  100% {
    left: 150%;
  }
}

#x_payment .atas::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );
}

#x_payment .middle {
  margin-top: 5px;
  background: linear-gradient(
    135deg,
    rgba(0, 20, 55, 0.5),
    rgba(0, 8, 25, 0.95)
  );
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  overflow: visible;

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 25px rgba(0, 0, 0, 0.35);
}

#x_payment .bawah {
  padding: 25px;
}

#x_payment .unpaid {
  vertical-align: middle;
  padding: 100px 0;
  text-align: center;
  color: #ccc;
  line-height: 1.2;
  font-family: Becham;
  font-size: 25px;
}

#x_payment .form-group {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

#x_payment .form-group label {
  width: 180px;
  flex-shrink: 0;

  color: #d8f7ff;
  font-size: 14px;
  font-weight: 600;
}

#x_payment .form-group .field {
  flex: 1;
}

#x_payment .form-group input,
#x_payment .form-group select {
  width: 100%;
  height: 30px;
  padding: 0 15px;
  border-radius: 6px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* =========================
   TABLE
========================= */
.payme {
  width: 100%;
  overflow-x: auto;
}

.payme table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  min-width: 600px;
}

.payme table th {
  padding: 10px;
  border-bottom: 2px solid #915fda;
}

.payme table td,
.payme table th {
  padding: 10px 0;
}

.payme table thead th {
  color: #ffff00;
  font-size: 15px;
  font-weight: 800;
}

.payme table tbody td {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.8px;
  border-bottom: 1px solid #915fda;
  font-weight: 500;
}

.td-image {
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  width: 85px;
  height: 28px;
}

.payme table tbody tr:last-child td {
  border-bottom: 1px solid #915fda;
}

.gbr-icon {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
}

/* =========================
   PAGINATION BUTTON
========================= */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 10px;
}

.foot-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 14px;
  text-decoration: none;
  color: #d8f7ff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );

  border: 1px solid rgba(0, 255, 255, 0.15);
  transition: 0.25s ease;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 4px 10px rgba(0, 0, 0, 0.25);
}

.foot-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(0, 255, 255, 0.4);
  box-shadow:
    0 0 12px rgba(0, 255, 255, 0.25),
    0 4px 15px rgba(0, 0, 0, 0.3);
}

/* HALAMAN AKTIF */

.btn-std {
  color: #222 !important;
  border: 1px solid #5cb811;
  background: linear-gradient(180deg, #77d42a, #5cb811);

  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 12px rgba(119, 212, 42, 0.35);
}

/* ======================
   MOBILE
====================== */

@media (max-width: 768px) and (orientation: landscape) {
  #x_payment {
    padding: 0;
    margin: 0;
  }

  #x_payment .top {
    border-radius: 0;
    margin: 0;
  }

  #x_payment .kiri {
    font-size: 20px;
  }

  #x_payment .kanan {
    font-size: 20px;
  }

  #x_payment .middle {
    margin: 10px;
  }

  #x_payment .bottom {
    margin: 10px;
  }

  .saldo-info {
    font-size: 20px;
    font-family: "Kondo", Verdana, Tahoma, sans-serif;
    color: #14396a;
    font-weight: 800;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  #x_payment {
    padding: 0;
    margin: 0;
  }

  #x_payment .top {
    width: 100%;
    border-radius: 0;
    margin: 0;
  }

  #x_payment .atas {
    text-align: center;
    font-family: "Becham", Verdana, Tahoma, sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 18px;
  }

  #x_payment .kiri {
    font-size: 20px;
  }

  #x_payment .kanan {
    font-size: 20px;
  }

  #x_payment .middle {
    margin: 10px;
  }

  .saldo-info {
    font-size: 16px;
    font-family: "Becham", Verdana, Tahoma, sans-serif;
    color: #14396a;
  }

  #x_payment .unpaid {
    line-height: 1.2;
    font-family: Becham;
    font-size: 15px;
  }

  #x_payment .bottom {
    display: none;
  }
}

@media screen and (max-width: 600px) and (orientation: portrait) {
  #x_payment .bawah .form-group {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  #x_payment .bawah .form-group label {
    width: auto;
  }

  .saldo-info {
    font-size: 14px;
    font-family: "Becham", Verdana, Tahoma, sans-serif;
    color: #14396a;
  }

  #x_payment .bottom {
    display: none;
  }
}

/* =====================================
   MOBILE PORTRAIT → TABLE TO CARD
===================================== */
@media screen and (max-width: 768px) and (orientation: portrait) {
  #x_payment .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #x_payment .kanan {
    font-size: 20px;
  }

  #x_payment .kiri {
    font-size: 20px;
  }

  .payme thead {
    display: none;
  }

  .payme table,
  .payme tbody,
  .payme tr {
    display: block;
    width: 100%;
  }

  .payme table {
    min-width: 100%;
  }

  .payme tbody tr {
    display: block;
    margin-bottom: 5px;
    padding: 15px;
    background: #14396a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
  }

  .payme tbody td {
    border: none !important;
  }

  /* sembunyikan kolom nomor */
  .payme tbody td:nth-child(1) {
    display: none;
  }

  /* USERNAME */
  .payme tbody td:nth-child(2) {
    float: left;
    margin-bottom: 25px;
    width: 40%;
    color: #ffff00;
    font-size: 20px;
    font-family: "Becham", Geneva, Tahoma, sans-serif;
    letter-spacing: 0;
    padding: 0;
  }

  /* PROVINSI */
  .payme tbody td:nth-child(3) {
    float: right;
    margin-bottom: 25px;
    width: 60%;
    text-align: right;
    color: #9fee8b;
    font-size: 20px;
    font-family: "Becham", Verdana, Tahoma, sans-serif;
    letter-spacing: 0;
    padding: 0;
    border: 1px solid #ccc;
  }

  /* WALLET */
  .payme tbody td:nth-child(4) {
    margin-top: 20px; /* turun 20px dari username */
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
    font-family: "Becham", Verdana, Tahoma, sans-serif;
    letter-spacing: 0;
    width: 100%;
    border-top: 1px solid #666 !important;
  }

  .payme tbody td:nth-child(4)::before {
    content: "Jumlah";
    color: #bbb;
    letter-spacing: 0;
    flex-shrink: 0;
  }

  /* TANGGAL */
  .payme tbody td:nth-child(5) {
    clear: both;
    display: flex;
    padding: 9px 0;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border-collapse: collapse;
    border-top: 1px solid #666 !important;
    border-bottom: 1px solid #666 !important;
  }

  .payme tbody td:nth-child(5)::before {
    content: "Dikirim ke";
    color: #bbb;
  }

  .payme tbody td:nth-child(5) img {
    display: block;
    width: 60px;
    height: 20px;
    object-fit: contain;
  }

  /* TANGGAL */
  .payme tbody td:nth-child(6) {
    clear: both;
    display: flex;
    padding: 9px 0;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border-collapse: collapse;
    border-bottom: 1px solid #666 !important;
  }

  .payme tbody td:nth-child(6)::before {
    content: "Tanggal Bayar";
    color: #bbb;
  }
}
@media screen and (max-width: 480px) {
  #x_payment .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #x_payment .kanan {
    display: none;
  }

  #x_payment .kiri {
    width: 100%;
    margin: 0;
    padding: 0;
    justify-content: center;
    text-align: center;
  }

  #x_payment .atas {
    margin: 0;
    border-radius: 0;
  }

  #x_payment .middle {
    margin: 0;
    border-radius: 0;
  }

  #x_payment .bawah {
    padding: 5px !important;
  }

  .payme tbody td:nth-child(3) {
    font-size: 18px;
  }
}

@media screen and (max-width: 320px) {
  #x_payment .atas {
    margin: 0;
    border-radius: 0;
  }

  #x_payment .middle {
    margin: 0;
    border-radius: 0;
  }

  #x_payment .bawah {
    padding: 5px !important;
  }

  .payme tbody td:nth-child(3) {
    font-size: 16px;
  }
}
