@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");
:root {
  --navy: #102a43;
  --teal: #087f73;
  --mint: #e8f5f2;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f5f8fb;
  --white: #fff;
  --gold: #eab308;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px "DM Sans",
    sans-serif;
}
h1,
h2,
h3,
.brand {
  font-family: "Plus Jakarta Sans", sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
}
.top {
  background: linear-gradient(120deg, #102a43, #0c766d);
  color: white;
  padding: 26px max(5vw, 20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand {
  font-size: 22px;
  font-weight: 800;
}
.top small {
  opacity: 0.8;
}
.container {
  width: min(1160px, 92%);
  margin: 32px auto;
}
.hero {
  padding: 36px;
  border-radius: 22px;
  color: white;
  background:
    linear-gradient(120deg, #102a43dd, #087f73dd),
    radial-gradient(circle at 80% 20%, #6ee7b7, transparent 40%);
  box-shadow: 0 15px 40px #102a4320;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 10px;
}
.hero p {
  max-width: 650px;
  line-height: 1.7;
  color: #e2f5f2;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 22px;
}
.card {
  grid-column: span 6;
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 24px;
  box-shadow: 0 5px 20px #0f172a08;
}
.card.full {
  grid-column: 1/-1;
}
.card h2 {
  font-size: 20px;
  margin: 0 0 16px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 17px;
  background: var(--teal);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.btn.secondary {
  background: #e6f3f1;
  color: #075e56;
}
.btn.dark {
  background: var(--navy);
}
.btn.light {
 background-color: #04AA6D; /* Warna latar belakang */
  color: white;             /* Warna teks */
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}
.btn.danger {
  background: #b91c1c;
}
.field {
  margin: 12px 0;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px #0d948822;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.span2 {
  grid-column: 1/-1;
}
.muted {
  color: var(--muted);
}
.notice {
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--mint);
  color: #075e56;
  margin: 12px 0;
}
.error {
  background: #fef2f2;
  color: #991b1b;
}
.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 30px;
  background: #e4f1ed;
  font-size: 12px;
  font-weight: 700;
  color : #020202 
}
.tag.ok {
  background: #39e475;
  color: #166534;
}
.tag.wait {
  background: #fef3c7;
  color: #92400e;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.stat b {
  font-size: 26px;
  display: block;
  color: var(--navy);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
th {
  background: #f8fafc;
  color: #475569;
}
.tablewrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.footer {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  font-size: 13px;
}
.paper {
  background: white;
  color: #111827;
  border: 2px solid #0f766e;
  border-radius: 12px;
  padding: 28px;
  max-width: 760px;
  margin: 20px auto;
}
.paperhead {
  text-align: center;
  border-bottom: 2px solid #0f766e;
  padding-bottom: 14px;
}
.paperhead h2 {
  margin: 4px;
}
.paperbody {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 20px;
  padding: 18px 0;
}
.photo {
  height: 155px;
  border: 1px dashed #94a3b8;
  display: grid;
  place-items: center;
  color: #94a3b8;
  text-align: center;
}
.paper table {
  min-width: 0;
}
.paper td {
  font-size: 14px;
}
.paperfoot {
  border-top: 1px solid #cbd5e1;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.hidden {
  display: none !important;
}
.small {
  font-size: 12px;
}
.result {
  padding: 18px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
@media (max-width: 760px) {
  .card {
    grid-column: 1/-1;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  .top {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .paperbody {
    grid-template-columns: 1fr;
  }
  .photo {
    width: 120px;
    height: 145px;
  }
  .container {
    margin: 20px auto;
  }
  .hero {
    padding: 25px;
  }
  .nav {
    flex-wrap: wrap;
  }
}
@media print {
  body {
    background: white;
  }
  .no-print,
  .top,
  .footer {
    display: none !important;
  }
  .container {
    width: 100%;
    margin: 0;
  }
  .paper {
    border: 2px solid #111;
    border-radius: 0;
    margin: 0 auto;
    max-width: none;
    page-break-inside: avoid;
  }
  .paperhead {
    border-color: #111;
  }
  .paperfoot {
    border-color: #777;
  }
  @page {
    size: A4;
    margin: 15mm;
  }
}

.edit-overlay {
  position: fixed;
  inset: 0;
  background: #0f172a99;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: auto;
}
.edit-modal {
  width: min(650px, 100%);
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 25px 80px #0004;
}
.edit-modal h3 {
  margin: 20px 0 8px;
  color: var(--navy);
}
.edit-modal .field small {
  display: block;
  margin-top: 5px;
}
