/* ============================================
   IPL RT 02 - Vila Kelapa Dua
   Sistem Iuran Pengelolaan Lingkungan
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1a237e;
  --primary-light: #e8eaf6;
  --primary-dark: #0d1642;
  --green: #2e7d32;
  --green-light: #e8f5e9;
  --green-dark: #1b5e20;
  --red: #c62828;
  --red-light: #ffebee;
  --orange: #e65100;
  --orange-light: #fff3e0;
  --yellow: #ffa000;
  --yellow-light: #fff8e1;
  --blue: #1565c0;
  --blue-light: #e3f2fd;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 25px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 35px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

/* ---------- Reset & Base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: linear-gradient(135deg, #f0f2f5 0%, #e8eaf6 50%, #f0f2f5 100%);
  color: var(--gray-800);
  min-height: 100vh;
  padding-bottom: 80px;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Page Wrapper ---------- */
.page-wrapper {
  max-width: 540px;
  margin: 0 auto;
  padding: 16px;
  min-height: calc(100vh - 80px);
}

.page-wrapper.wide {
  max-width: 1100px;
}

/* ---------- Top Header ---------- */
.top-header {
  text-align: center;
  padding: 20px 0 16px;
}

.top-header .app-logo {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-md);
}

.top-header h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.top-header .subtitle {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 400;
}

.top-header .badge-uji {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: var(--yellow-light);
  color: var(--orange);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #ffe0b2;
}

/* ---------- Bottom Navigation ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--white);
  display: flex;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  border-top: 1px solid var(--gray-200);
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--gray-500);
  font-size: 10px;
  font-weight: 500;
  gap: 3px;
  transition: var(--transition);
  position: relative;
}

.nav-item .nav-icon {
  font-size: 22px;
  line-height: 1;
  transition: var(--transition);
}

.nav-item .nav-label {
  font-size: 10px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--primary);
}

.nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-item.active .nav-icon {
  transform: scale(1.15);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
}

/* Nav khusus admin (hijau) */
.nav-item.active-green {
  color: var(--green);
  font-weight: 700;
}

.nav-item.active-green .nav-icon {
  transform: scale(1.15);
}

.nav-item.active-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--green);
  border-radius: 0 0 4px 4px;
}
/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.card-icon.blue { background: var(--blue-light); }
.card-icon.green { background: var(--green-light); }
.card-icon.orange { background: var(--orange-light); }
.card-icon.primary { background: var(--primary-light); }

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
}

.card-subtitle {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 2px;
}

/* Card Sections untuk Home */
.card-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
}

.card-section .section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-section .section-desc {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Card Pending (untuk admin verifikasi) */
.card-pending {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  margin-bottom: 14px;
  border-left: 4px solid var(--yellow);
  transition: var(--transition);
}

.card-pending:hover {
  box-shadow: var(--shadow-md);
}

.card-pending .detail-row {
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray-700);
}

.card-pending .detail-row b {
  color: var(--gray-900);
}

.card-pending .nominal-box {
  background: var(--yellow-light);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin: 10px 0;
  border: 1px dashed var(--yellow);
  font-weight: 700;
  color: var(--orange);
  font-size: 15px;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-dark);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: #b71c1c;
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: #0d47a1;
}

.btn-gray {
  background: var(--gray-600);
  color: var(--white);
}

.btn-gray:hover {
  background: var(--gray-800);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-group .btn {
  flex: 1;
}

/* Button khusus link bukti */
.btn-bukti {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
  transition: var(--transition);
  border: 1px solid #bbdefb;
}

.btn-bukti:hover {
  background: var(--blue);
  color: var(--white);
}

/* ---------- Forms ---------- */
.form-container {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.form-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-title.green {
  color: var(--green);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-group label .required {
  color: var(--red);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--gray-800);
  transition: var(--transition);
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-input:read-only {
  background: var(--gray-100);
  cursor: default;
  color: var(--gray-700);
}

.form-input.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.form-input.green:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23616161' d='M6 8.825L.35 3.175 1.175 2.35 6 7.175 10.825 2.35l.825.825z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* File input styling */
.file-input-wrapper {
  position: relative;
}

.file-input-wrapper input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
}

.file-input-wrapper input[type="file"]:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* ---------- Bulan Grid (Checkbox) ---------- */
.bulan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.bulan-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}

.bulan-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.bulan-item.green-theme:hover {
  border-color: var(--green);
  background: var(--green-light);
}

.bulan-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.bulan-item.green-theme input[type="checkbox"] {
  accent-color: var(--green);
}

/* Info box untuk metode bayar */
.info-box {
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.7;
  display: none;
  margin-top: 10px;
  animation: fadeIn 0.3s ease;
}

.info-box.transfer {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  color: var(--primary-dark);
}

.info-box.qris {
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  text-align: center;
}

.info-box .qris-img {
  width: 100%;
  max-width: 240px;
  margin: 12px auto;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
/* ---------- Status Grid (Cek Status) ---------- */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.bulan-box {
  padding: 12px 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  border: 2px solid;
  transition: var(--transition);
}

.bulan-box.lunas {
  background: var(--green-light);
  color: var(--green);
  border-color: #a5d6a7;
}

.bulan-box.lunas::before {
  content: '✓ ';
}

.bulan-box.tunggak {
  background: var(--red-light);
  color: var(--red);
  border-color: #ef9a9a;
}

.bulan-box.tunggak::before {
  content: '✗ ';
}

/* Saldo Box */
.saldo-box {
  background: var(--blue-light);
  padding: 18px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  text-align: center;
  border: 1px solid #bbdefb;
}

.saldo-box .saldo-label {
  font-size: 12px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.saldo-box .saldo-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  margin-top: 6px;
}

/* Result Area */
.result-area {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed var(--gray-300);
  animation: fadeIn 0.4s ease;
}

/* ---------- PIN Modal ---------- */
.pin-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: none;
  animation: fadeIn 0.3s ease;
}

.pin-modal-content {
  background: var(--white);
  margin: 15% auto;
  padding: 36px 28px;
  width: 90%;
  max-width: 380px;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.4s ease;
}

.pin-modal-content .lock-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 16px;
}

.pin-modal-content h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.pin-modal-content p {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.pin-modal-content .pin-input {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 22px;
  text-align: center;
  letter-spacing: 8px;
  font-weight: 700;
  transition: var(--transition);
}

.pin-modal-content .pin-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

/* ---------- Dashboard ---------- */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-actions {
  display: flex;
  gap: 8px;
}

.dashboard-actions .btn {
  width: auto;
  padding: 8px 14px;
  font-size: 13px;
}

/* Summary Boxes */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

.summary-box {
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.summary-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.summary-box .box-label {
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-box .box-value {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
}

.summary-box .box-value.red {
  color: var(--red);
}

.summary-box .box-value.green {
  color: var(--green);
}

.summary-box .box-value.blue {
  color: var(--blue);
}

/* Print Header */
.print-header {
  display: none;
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #000;
  padding-bottom: 10px;
}

/* ---------- Table (Dashboard Rekap) ---------- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-top: 16px;
  -webkit-overflow-scrolling: touch;
}

.table-rekap {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 800px;
}

.table-rekap th {
  background: var(--primary);
  color: var(--white);
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.table-rekap th:first-child {
  text-align: left;
  padding-left: 14px;
  position: sticky;
  left: 0;
  z-index: 2;
}

.table-rekap td {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
  font-size: 12px;
  white-space: nowrap;
}

.table-rekap td:first-child {
  text-align: left;
  font-weight: 700;
  background: var(--gray-50);
  padding-left: 14px;
  position: sticky;
  left: 0;
  z-index: 1;
  border-right: 1px solid var(--gray-200);
}

.table-rekap tbody tr {
  transition: var(--transition);
}

.table-rekap tbody tr:hover {
  background: var(--primary-light);
}

.table-rekap tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.table-rekap tbody tr:nth-child(even):hover {
  background: var(--primary-light);
}

.table-rekap td.red {
  color: var(--red);
  font-weight: 700;
  background: var(--red-light);
}

.table-rekap td.paid {
  color: var(--green);
  font-weight: 600;
}

.table-rekap td.empty {
  color: var(--gray-400);
}

/* ---------- Success Page ---------- */
.success-page {
  text-align: center;
  padding: 50px 20px;
  animation: fadeIn 0.5s ease;
}

.success-page .success-icon {
  width: 80px;
  height: 80px;
  background: var(--green-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: 20px;
  animation: bounceIn 0.6s ease;
}

.success-page h3 {
  color: var(--green);
  font-size: 22px;
  margin-bottom: 10px;
}

.success-page p {
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ---------- Loading & Empty States ---------- */
.loading-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

.spinner.green {
  border-top-color: var(--green);
}

.loading-state span {
  display: block;
  font-size: 13px;
  margin-top: 8px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
  font-size: 14px;
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ---------- Toast Notification ---------- */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.warning { background: var(--orange); }
.toast.info { background: var(--blue); }

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.text-gray { color: var(--gray-600); }
.font-bold { font-weight: 700; }
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none; }
.no-print { }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .page-wrapper {
    padding: 12px;
  }

  .form-container,
  .card-section {
    padding: 18px;
  }

  .top-header h1 {
    font-size: 20px;
  }

  .summary-grid {
    gap: 10px;
  }

  .summary-box .box-value {
    font-size: 18px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-actions {
    width: 100%;
  }

  .dashboard-actions .btn {
    flex: 1;
  }

  .bulan-grid {
    gap: 6px;
  }

  .bulan-item {
    padding: 9px 10px;
    font-size: 12px;
  }

  .status-grid {
    gap: 6px;
  }

  .bulan-box {
    padding: 10px 8px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .bulan-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .bottom-nav,
  .no-print,
  button,
  select,
  .pin-modal,
  label {
    display: none !important;
  }

  .print-header {
    display: block !important;
  }

  body {
    background: white !important;
    padding: 0 !important;
    margin: 0;
  }

  .page-wrapper {
    max-width: 100% !important;
    width: 100%;
    padding: 0;
  }

  .table-wrapper {
    box-shadow: none;
    overflow: visible;
  }

  .table-rekap {
    min-width: unset;
    font-size: 10px;
  }

  .table-rekap th {
    background: #333 !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .table-rekap td,
  .table-rekap th {
    border: 1px solid #000 !important;
    padding: 4px !important;
  }

  .table-rekap td.red {
    color: red !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .summary-box {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  @page {
    size: landscape;
    margin: 1cm;
  }
}