/* assets/css/ikpi-smart.css — matching IKPI Smart UI */

/* ── Section headers (hijau muda IKPI Smart) ─── */
.smart-section-head {
  background: #e8f5ee;
  color: #2d6a4f;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  margin: 20px 0 12px;
  letter-spacing: .2px;
}

/* ── Info row (label : value) ───────────────────── */
.info-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-label {
  width: 260px;
  flex-shrink: 0;
  color: #555;
  font-size: 13px;
}
.info-value {
  flex: 1;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

/* ── Tab navigation (underline style IKPI Smart) ─ */
.smart-tabs {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 20px;
  gap: 0;
}
.smart-tab {
  padding: 10px 18px;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
  text-decoration: none;
  display: inline-block;
}
.smart-tab:hover { color: #005322; }
.smart-tab.active {
  color: #005322;
  border-bottom-color: #005322;
  font-weight: 600;
}
.smart-tab.active-orange {
  color: #c9a227;
  border-bottom-color: #c9a227;
  font-weight: 600;
}

/* ── Button styles IKPI Smart ────────────────────── */
.btn-orange {
  background: #e6a817;
  color: #fff;
  border: none;
  padding: 8px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}
.btn-orange:hover { background: #c8911a; }

.btn-teal {
  background: #4aa3a0;
  color: #fff;
  border: none;
  padding: 8px 22px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-teal:hover { background: #3a8a87; }

.btn-back {
  background: #fff;
  color: #555;
  border: 1px solid #d1d5db;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
.btn-back:hover { background: #f9fafb; }

/* ── NRA Info block ──────────────────────────────── */
.nra-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}
.nra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}
.nra-row:last-child { border-bottom: none; }
.nra-row .nra-label { color: #6b7280; }
.nra-row .nra-val   { font-weight: 600; color: #222; }

/* ── Smart form ──────────────────────────────────── */
.smart-form-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.smart-form-label {
  width: 240px;
  flex-shrink: 0;
  font-size: 13px;
  color: #374151;
  padding-top: 10px;
}
.smart-form-label .req { color: #dc2626; margin-left: 2px; }
.smart-form-control {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.smart-form-control input,
.smart-form-control select,
.smart-form-control textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  color: #374151;
  outline: none;
  font-family: inherit;
  transition: border-color .15s;
}
.smart-form-control input:focus,
.smart-form-control select:focus,
.smart-form-control textarea:focus {
  border-color: #005322;
}
.smart-form-control textarea { min-height: 70px; resize: vertical; }
.smart-form-control .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.smart-form-control .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* Upload input style */
.upload-wrap {
  display: flex;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  overflow: hidden;
}
.upload-wrap .upload-name {
  flex: 1;
  padding: 9px 12px;
  font-size: 13px;
  color: #9ca3af;
  background: #fff;
  border: none;
  outline: none;
}
.upload-wrap .browse-btn {
  background: #f9fafb;
  border-left: 1px solid #d1d5db;
  padding: 9px 14px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
}
.upload-hint { font-size: 11px; color: #9ca3af; margin-top: 3px; }

/* Radio/Checkbox row */
.radio-row { display: flex; gap: 20px; align-items: center; padding-top: 10px; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.radio-row input[type=radio], .radio-row input[type=checkbox] { accent-color: #005322; }

/* ── Smart table ─────────────────────────────────── */
.smart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}
.smart-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #374151;
  background: #fff;
  border-bottom: 2px solid #e5e7eb;
}
.smart-table tbody td {
  padding: 10px 12px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.smart-table tbody tr:last-child td { border-bottom: none; }
.smart-table tbody tr:hover { background: #f9fafb; }

/* ── Status badges IKPI Smart style ─────────────── */
.badge-lunas {
  background: #005322;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: .5px;
}
.badge-pending2 {
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}
.btn-unduh {
  background: #e6a817;
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.btn-lihat {
  background: #e6a817;
  color: #fff;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.text-tidak-ada { color: #ef4444; font-size: 12px; }

/* ── Notifikasi tabel filter ─────────────────────── */
.notif-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.notif-filters label { color: #555; }
.notif-filters select, .notif-filters input {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
}
.notif-search { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ── Steps wizard ────────────────────────────────── */
.wizard-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
}
.wizard-step {
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.wizard-step.active {
  background: #4aa3a0;
  color: #fff;
  border-color: #4aa3a0;
}

/* ── Profile photo ───────────────────────────────── */
.profile-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.profile-photo {
  width: 120px;
  height: 140px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  object-fit: cover;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #9ca3af;
}

/* ── PPL Summary bar ─────────────────────────────── */
.ppl-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}
.ppl-summary-cell {
  background: #fff;
  padding: 14px 16px;
  text-align: center;
}
.ppl-summary-num {
  font-size: 24px;
  font-weight: 700;
  color: #005322;
}
.ppl-summary-lbl {
  font-size: 11px;
  color: #6b7280;
  margin-top: 3px;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .smart-form-row { flex-direction: column; }
  .smart-form-label { width: 100%; padding-top: 0; }
  .info-label { width: 140px; }
  .ppl-summary { grid-template-columns: repeat(2,1fr); }
}
