body {
  font-size: 1em;
}

.myApp {
  cursor: pointer;
}
.myApp:active {
  transform: scale(0.8);
}

.zebra-table {
  width: 100%;
  border-collapse: collapse; /* supaya border-bottom rapi */
  table-layout: auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial;
  font-size: 1em;
  color: #222;
}

.zebra-table thead th {
  text-align: left;
  padding: 12px 10px;
  font-weight: bold;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(0, 0, 0, 0.1); /* warna lembut, bisa diubah */
}

.zebra-table tbody td {
  padding: 5px;
  vertical-align: top;
  border: none;
}

.zebra-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* zebra (baris genap diberi warna latar) */
.zebra-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.03); /* warna lembut, bisa diubah */
}

/* hover untuk feedback */
.zebra-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* ukuran font & padding untuk versi compact */
.zebra-table.zebra-compact thead th,
.zebra-table.zebra-compact tbody td {
  padding: 8px 6px;
  font-size: 0.9rem;
}

/* aksesibilitas: fokus saat keyboard navigasi */
.zebra-table tbody tr:focus-within {
  outline: 2px solid rgba(34, 197, 94, 0.25); /* warna fokus lembut */
  outline-offset: 2px;
}

/* cetak: hilangkan background zebra supaya hemat tinta */
@media print {
  .zebra-table tbody tr:nth-child(even),
  .zebra-table tbody tr:hover {
    background: transparent !important;
  }
  .zebra-table thead th {
    border-bottom: 1px solid #000;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  /* hilangkan align-items: center; supaya kita bisa kontrol top manual */
  align-items: flex-start;
  padding: 1rem;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 400px;
  margin-top: 10vh; /* ⬅️ ini kuncinya: jarak dari atas (sekitar 1/4 layar) */
  border-radius: 10px;
  overflow: hidden;
  animation: popIn 0.25s ease;
}

/* Header modal */
.modal-header {
  padding: 0.5rem 1rem;
}

/* Body modal */
.modal-body {
  padding: 1rem;
}

/* Footer modal */
.modal-footer {
  text-align: right;
  padding: 0.5rem 1rem 1rem 1rem;
}

/* Animasi muncul tetap dipertahankan */
@keyframes popIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Style umum untuk semua elemen form */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background-color: #fff;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}

/* Fokus: beri highlight ringan */
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: #007aff; /* warna biru khas MobileUI */
  box-shadow: 0 0 4px rgba(0, 122, 255, 0.3);
}

/* Textarea disesuaikan biar seragam */
textarea {
  min-height: 50px;
  resize: vertical;
}

/* Select: buang tampilan default browser */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  padding-right: 36px;
}

/* Optional: buat tampilan disabled */
input:disabled,
select:disabled,
textarea:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

/* Placeholder warna lembut */
::placeholder {
  color: #aaa;
  font-style: italic;
}
