:root {
  --blue-light: #e7f3fb;
  --blue-header: #d7edf9;
  --blue-accent: #2f80b8;
  --border: #c9d4dc;
  --text-dark: #1f2d3a;
  --gray-bg: #f4f6f8;
  --green: #2f9e58;
  --red: #d64545;
  --amber: #d69b1a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--gray-bg);
  color: var(--text-dark);
}

.topbar {
  background: var(--blue-accent);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar h1 { font-size: 17px; margin: 0; font-weight: 600; }
.topbar .sub { font-size: 12px; opacity: .85; }

.container {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 14px 60px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 6px;
}
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
}

label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 4px; color: #445; }

select, input[type=text], input[type=date], textarea, input[type=password] {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: var(--text-dark);
}
select:disabled, input:disabled { background: #eef1f3; color: #667; }

textarea { resize: vertical; min-height: 70px; font-family: inherit; }

table.checklist {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}
table.checklist th, table.checklist td {
  border: 1px solid var(--border);
  padding: 8px;
  text-align: center;
  vertical-align: middle;
}
table.checklist thead th {
  background: var(--blue-header);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #2a4a5c;
}
table.checklist td.item-name {
  text-align: left;
  font-weight: 500;
}
table.checklist td.no-col { width: 40px; color: #667; }
table.checklist input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; }
table.checklist input.ket-input {
  width: 100%; border: 1px solid var(--border); border-radius: 4px; padding: 5px 6px; font-size: 12px;
}
table.checklist tr:nth-child(even) td { background: #fafbfc; }
td.kondisi-normal { background: #eef8f0 !important; }
td.kondisi-tidaknormal { background: #fdecec !important; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--blue-accent); color: #fff; }
.btn-primary:hover { background: #256a99; }
.btn-primary:disabled { background: #9db6c4; cursor: not-allowed; }
.btn-secondary { background: #eef1f3; color: #333; }
.btn-danger { background: var(--red); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 5px; }

.alert {
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 13px;
  margin-bottom: 14px;
}
.alert-error { background: #fdecec; color: #a12626; border: 1px solid #f3b9b9; }
.alert-success { background: #eaf7ee; color: #1f7a3d; border: 1px solid #b6e3c4; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-menunggu { background: #fdf3d9; color: #8a6d16; }
.badge-disetujui { background: #e2f6e8; color: #1f7a3d; }
.badge-ditolak { background: #fdecec; color: #a12626; }
.badge-diproses { background: #fdf3d9; color: #8a6d16; }
.badge-selesai { background: #e2f6e8; color: #1f7a3d; }

footer.note {
  font-size: 12px;
  color: #78889a;
  text-align: center;
  margin-top: 24px;
}
