.transaksi-wrapper {
  width: 100%;
  min-height: 415px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* padding-top: 20px; */
  background-color: #f6f8fb;
  /* opsional, biar kontras sama card putih */
  box-sizing: border-box;
}

.transaksi-card {
  width: 95%;
  padding: 20px;
  max-width: none;
  /* biar bisa full */
  border-radius: 0;
  /* opsional: hilangin rounded kalau full */
  box-shadow: none;
  /* opsional: hilangin shadow kalau full */
}

.transaksi-header {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.transaksi-sub {
  text-align: center;
  font-size: 14px;
  color: #666;
  font-weight: bold;
  margin-bottom: 25px;
}

.transaksi-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 15px;
  flex-wrap: wrap;
}

.transaksi-field {
  flex: 1;
  /* min-width: 150px; */
  display: flex;
  flex-direction: column;
}

.transaksi-field label {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
}

.transaksi-select,
.transaksi-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.transaksi-select:focus,
.transaksi-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

.transaksi-btn {
  padding: 10px 20px;
  background: #337ab7;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
  height: 42px;
}

.transaksi-btn:hover {
  background: #0056b3;
}

.tr-garis-bawah {
  border-top: 2px solid #ccc;
}

/* 🖥️ versi layar gede */
@media (min-width: 768px) {
  .transaksi-row {
    justify-content: center;
    gap: 10px;
  }

  .transaksi-field {
    flex: 0 0 auto;
  }

  .transaksi-select {
    width: 250px;
    /* lebar dropdown bulan */
  }

  .transaksi-input {
    width: 100px;
    /* lebar input tahun */
  }

  .transaksi-btn {
    width: 140px;
    /* lebar tombol cek transaksi */
    font-size: 16px;
    height: 38px;
    padding: 8px 12px;
  }
}

.alert {
  width: 100%;
  max-width: 500px;
  margin: 10px auto;
  padding: 15px 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ikon di kiri */
.alert i {
  font-style: normal;
  font-size: 20px;
  font-weight: 900;
  margin-right: 10px;
}

/* Sukses – hijau muda */
.alert-success {
  background: #b8f5c0;
  color: #0f7a23;
  border: 2px solid #0f7a23;
}

/* Gagal – merah */
.alert-danger {
  background: #ffb8b8;
  color: #a20000;
  border: 2px solid #a20000;
}

/* Info – biru */
.alert-info {
  background: #cbe6ff;
  color: #004a8f;
  border: 2px solid #004a8f;
}

/* Responsive padding */
@media (max-width: 480px) {
  .alert {
    font-size: 14px;
    padding: 12px 15px;
  }

  .alert i {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .transaksi-card {
    padding: 20px;
  }

  .transaksi-row {
    flex-direction: column;
    align-items: stretch;
  }

  .transaksi-btn {
    width: 100%;
  }

  .tr-garis-bawah {
    border-top: none;
  }
}

.transaksi-hasil-wrapper {
  width: 100%;
  background: #fff;
  padding: 5px;
}

.transaksi-hasil-container {
  max-width: 1400px;
  margin: 0 auto;
}

.transaksi-header {
  background: #ff9800;
  color: white;
  padding: 10px 10px;
  border-radius: 6px;
  text-align: center;
}

.transaksi-info {
  margin-bottom: 15px;
}

/* gaya umum (desktop) */
.transaksi-info .table-compact {
  border-collapse: collapse;
  width: auto;
}

.transaksi-info .table-compact td {
  padding: 4px 8px;
  border: none;
}

.transaksi-info .table-compact td:first-child {
  white-space: nowrap;
  padding-right: 12px;
  font-weight: bold;
  color: #444;
}

.btn-wrapper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-wrapper .btn {
  flex: 1; /* biar tombol rapi kalau pecah */
  min-width: 180px; /* batas minimal biar di layar besar tetap 1 baris */
}

/* Layar kecil (mobile) → pecah jadi 2 baris */
@media (max-width: 480px) {
  .btn-wrapper {
    flex-direction: column;
  }

  .btn-wrapper .btn {
    width: 100%;
  }
}

/* ✅ responsive di layar kecil */
@media (max-width: 600px) {
  .transaksi-info .table-compact {
    width: 100%;
  }

  .transaksi-info .table-compact tr {
    display: block;
    margin-bottom: 6px;
  }

  .transaksi-info .table-compact td {
    display: block;
    width: 100%;
    padding: 3px 0;
  }

  .transaksi-info .table-compact td:first-child {
    color: #666;
    font-weight: 600;
  }

  .transaksi-info .table-compact td:last-child {
    padding-left: 5px;
    border-bottom: 1px solid #e2e2e2;
  }
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 25px;
}

.table-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-list th {
  background: #f1f3f5;
  text-align: center;
  padding: 10px;
  font-weight: 600;
}

.table-list th:first-child {
  border-left: 1px solid #d6d4d4;
}

.table-list th:last-child {
  border-right: 1px solid #d6d4d4;
}

.table-list td {
  padding: 8px 10px;
  border-bottom: 1px solid #d6d4d4;
  font-size: 14px;
}

.table-list td:first-child {
  border-left: 1px solid #d6d4d4;
}

.table-list td:last-child {
  border-right: 1px solid #d6d4d4;
}

.table-bordered {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid #bbb;
  padding: 8px;
}

.table-rules th {
  background: #f8f9fa;
}

.transaksi-empty {
  text-align: center;
  padding: 40px;
  font-weight: 600;
  color: #888;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
  font-size: 14px;
}

@media (max-width: 768px) {
  .table-list th,
  .table-list td {
    font-size: 12px;
    padding: 6px;
  }

  .transaksi-header h2 {
    font-size: 16px;
  }
}

.plan-switch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 15px auto;
  font-family: "Segoe UI", Arial, sans-serif;
}

.switch-label {
  font-size: 14px;
  color: #333;
}

.plan-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.plan-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #3d73f1;
  border-radius: 34px;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.plan-switch input:checked + .slider {
  background-color: #28a745;
  /* warna hijau aktif */
}

.plan-switch input:checked + .slider:before {
  transform: translateX(24px);
}

.plan-switch input:focus + .slider {
  box-shadow: 0 0 2px #28a745;
}

.switch-label {
  font-size: 14px;
  color: #333;
  min-width: 50px;
  height: 26px;
  text-align: left;
}

/* Responsive */
@media (max-width: 480px) {
  .plan-switch-container {
    gap: 6px;
  }
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.btn-float-check {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  height: 40px; /* samakan tinggi dengan input */
  padding: 0 14px; /* left-right only */

  background: #3085d6;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;

  display: flex; /* <<< ini yang bikin center */
  align-items: center; /* vertical center */
  justify-content: center; /* horizontal center */
}

/* biar tombol tidak nutupin text input */
/* .input-wrapper input {
  padding-right: 90px;
} */

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-actions form {
  margin: 0;
  padding: 0;
  display: inline-block;
}

.table-actions input[type="submit"] {
  white-space: nowrap;
}

.action-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-group select {
  padding: 5px;
  border-radius: 4px;
}

.btn-report {
  background: #3085d6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.report-select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px; /* << radius manis */
  font-size: 13px;
  background: #ffffff;
  outline: none;
  transition: 0.2s ease;
}

.report-select:focus {
  border-color: #5a9bd8;
  box-shadow: 0 0 3px rgba(90, 155, 216, 0.6);
}

/* ==== YEAR INPUT FIX (DESKTOP) ==== */
@media (min-width: 768px) {
  .year-input-wrapper {
    width: 300px; /* cukup buat 4 digit + tombol */
  }

  .year-input {
    font-size: 15px;
  }
}

/* wrapper KHUSUS input tahun */
.year-input-wrapper {
  position: relative;
  width: 100%;
}

/* input tahun */
.year-input {
  text-align: center;
  padding-left: 25px;
  padding-right: 25px;
}

/* tombol di DALAM input */
.year-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: #f1f3f5;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  text-align: center;
  line-height: 26px;
  cursor: pointer;
  user-select: none;
}

.year-btn:hover {
  background: #d6d8db;
}

.year-minus {
  left: 6px;
}

.year-plus {
  right: 6px;
}
