/* ============================================================
   TAMPILAN UI BARU – GRADIENT, ANIMASI & MODERN
   ============================================================ */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #eff6ff;
  --border: #e2e8f0;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  --radius: 16px;
  --green: #10b981;
  --green-bg: #d1fae5;
  --orange: #f59e0b;
  --orange-bg: #fef3c7;
  --red: #ef4444;
  --red-bg: #fee2e2;
  --header-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 24px 32px 40px;
  color: var(--text);
  line-height: 1.5;
  animation: fadeInBody 0.5s ease;
}

@keyframes fadeInBody {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== UTILITAS HIDDEN ===== */
.hidden {
  display: none !important;
}

/* ===== LOADING OVERLAY ===== */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.5s ease;
}

#loadingOverlay.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.loading-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 420px;
  width: 90%;
}

.loading-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  animation: logoPulse 2s infinite ease-in-out;
}

.loading-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
  50% { transform: scale(1.05); box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
}

.loading-card h2 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.loading-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0 0 28px;
}

.loading-progress {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #3b82f6, #8b5cf6);
  border-radius: 20px;
  width: 0%;
  transition: width 0.2s;
}

.loading-wave {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: waveMove 1.5s infinite linear;
  border-radius: 20px;
}

@keyframes waveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(300%); }
}

.loading-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.loading-status {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-top: 8px;
  font-style: italic;
}

.loading-error {
  color: #fca5a5;
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

/* ===== HEADER / TOPBAR ===== */
.topbar {
  background: var(--header-gradient);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  animation: slideDown 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.topbar .sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

button.primary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid transparent;
}

button.primary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

button.danger {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
}

button.danger:hover {
  background: rgba(220, 38, 38, 0.3);
  color: #ffffff;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== TOMBOL NAVIGASI MODERN GRADIENT ===== */
.nav-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.nav-btn.light {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

/* ===== KPI CARDS ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.kpi {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 24px 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: cardFloatIn 0.6s ease forwards;
  opacity: 0;
}

@keyframes cardFloatIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.kpi:nth-child(1) { animation-delay: 0.1s; }
.kpi:nth-child(2) { animation-delay: 0.2s; }
.kpi:nth-child(3) { animation-delay: 0.3s; }
.kpi:nth-child(4) { animation-delay: 0.4s; }
.kpi:nth-child(5) { animation-delay: 0.5s; }
.kpi:nth-child(6) { animation-delay: 0.6s; }
.kpi:nth-child(7) { animation-delay: 0.7s; }
.kpi:nth-child(8) { animation-delay: 0.8s; }
.kpi:nth-child(9) { animation-delay: 0.9s; }

.kpi:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.kpi-icon {
  font-size: 24px;
  line-height: 1;
  opacity: 0.9;
}

.kpi-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  margin: 0;
}

.kpi-value {
  font-size: 32px;
  font-weight: 700;
  margin: 6px 0 8px;
  color: var(--text);
  line-height: 1.2;
}

.kpi-bar {
  height: 6px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
}

.kpi-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.kpi-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
  font-weight: 500;
}

/* Gradient backgrounds for KPI cards */
.kpi:nth-child(1) { background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%); border-left: 5px solid #3b82f6; }
.kpi:nth-child(2) { background: linear-gradient(135deg, #d1fae5 0%, #ffffff 100%); border-left: 5px solid #10b981; }
.kpi:nth-child(3) { background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%); border-left: 5px solid #f59e0b; }
.kpi:nth-child(4) { background: linear-gradient(135deg, #fee2e2 0%, #ffffff 100%); border-left: 5px solid #ef4444; }
.kpi:nth-child(5) { background: linear-gradient(135deg, #e0e7ff 0%, #ffffff 100%); border-left: 5px solid #6366f1; }
.kpi:nth-child(6) { background: linear-gradient(135deg, #fce7f3 0%, #ffffff 100%); border-left: 5px solid #ec4899; }
.kpi:nth-child(7) { background: linear-gradient(135deg, #ccfbf1 0%, #ffffff 100%); border-left: 5px solid #14b8a6; }
.kpi:nth-child(8) { background: linear-gradient(135deg, #ffedd5 0%, #ffffff 100%); border-left: 5px solid #f97316; }
.kpi:nth-child(9) { background: linear-gradient(135deg, #ede9fe 0%, #ffffff 100%); border-left: 5px solid #8b5cf6; }
.kpi:nth-child(10) { background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%); border-left: 5px solid #4f46e5; }

/* ===== PANEL UTAMA ===== */
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}

.panel h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 4px 0 20px;
}

.status-msg {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   TABEL MODERN – GRADIENT HALUS & RAPI
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  min-width: 2750px;
}


.auto-structure-value{background:#e2e8f0!important;color:#475569!important;font-weight:800;cursor:not-allowed;border-color:#cbd5e1!important}
.auto-structure-value:focus{outline:none;box-shadow:none!important}

thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  padding: 16px 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  border-right: 1px solid rgba(226, 232, 240, 0.3);
  vertical-align: middle;
  transition: all 0.2s ease;
}

tbody td:nth-child(1) {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  font-weight: 700;
  text-align: center;
  color: #0c4a6e;
  border-left: 4px solid #0284c7;
}

tbody td:nth-child(2) {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  font-weight: 600;
  color: #1e3a8a;
}

tbody td:nth-child(3) {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

tbody td:nth-child(4) {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
}

tbody td:nth-child(5) {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

tbody td:nth-child(6) {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

tbody td:nth-child(7) {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
}

tbody td:nth-child(8) {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

tbody td:nth-child(9) {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

tbody td:nth-child(10) {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

tbody td:nth-child(11),
tbody td:nth-child(12),
tbody td:nth-child(13),
tbody td:nth-child(14),
tbody td:nth-child(15),
tbody td:nth-child(16) {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  text-align: center;
}

tbody tr:hover td {
  filter: brightness(0.97);
}

tbody input[type="number"],
tbody select {
  width: 100%;
  min-width: 90px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: #1e293b;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

tbody input[type="number"]:focus,
tbody select:focus {
  outline: none;
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

tbody input[readonly] {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  cursor: not-allowed;
  font-weight: 700;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.badge-selesai,
.badge-lengkap {
  background: var(--green-bg);
  color: var(--green);
}

.badge-proses,
.badge-sebagian {
  background: var(--orange-bg);
  color: var(--orange);
}

.badge-belum,
.badge-kosong {
  background: var(--red-bg);
  color: var(--red);
}

.btn-detail {
  background: var(--primary-light);
  border: none;
  color: var(--primary);
  font-size: 18px;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-detail:hover {
  background: #dbeafe;
}

/* ===== TOMBOL KERTAS KERJA ===== */
.btn-kk {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border: none;
  color: #fff;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.btn-kk:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
}

.del-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.del-btn:hover {
  background: var(--red-bg);
  color: var(--red);
}

.btn-edit-name {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 0 6px;
  color: #94a3b8;
  transition: color 0.15s;
}

.btn-edit-name:hover {
  color: var(--primary);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 1100px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.chart-container.chart-scroll {
    max-height: 80vh; 
    overflow-y: auto; 
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}
#kpiChartModal .modal {
  background: linear-gradient(135deg, #eff6ff 0%, #ede9fe 50%, #e0e7ff 100%);
  border: none;
  max-width: 1100px;
  width: 95%;
  max-height: 90vh;
  text-align: center;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  padding: 30px 40px;
  border-radius: 24px;
}

#kpiChartModal .modal-header {
  border-bottom: none;
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#kpiChartModal .modal-header h3 {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(45deg, #1e3a8a, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

#kpiChartModal .modal-close {
  background: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: #475569;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.2s;
  cursor: pointer;
}

#kpiChartModal .modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: rotate(90deg);
}

.chart-container.chart-scroll {
  max-height: 75vh;
  overflow-x: auto;
  overflow-y: auto;
  padding: 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
   
.chart-container {
  position: relative;
  height: 400px;
  width: 100%;
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05), inset 0 2px 6px rgba(0,0,0,0.02);
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.modal-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.modal-close:hover {
  color: var(--text);
}

.sub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.sub-item {
  background: #f8fafc;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.02);
}

.sub-item label {
  font-weight: 700;
  font-size: 16px;
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}

.parameter-context {
  margin-bottom: 12px;
}

.parameter-subunsur-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #e0e7ff;
  border-left: 4px solid var(--primary);
  color: #1e293b;
  line-height: 1.45;
}

.parameter-context-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary);
}

.parameter-subunsur-title strong {
  font-size: 14px;
  font-weight: 750;
  color: #1e293b;
}

.params-box {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.params-box p {
  margin: 0;
  font-size: 14px;
  color: #1e293b;
}

.params-box strong {
  font-weight: 600;
  color: var(--primary);
}

.level-select {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.level-select span {
  font-size: 13px;
  color: var(--text-secondary);
}

.level-select select {
  width: 80px;
  padding: 6px 8px;
  border-radius: 6px;
}

.evid-row {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.evid-row label {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  display: block;
  border-bottom: none;
  padding-bottom: 0;
}

.guide-box {
  background: #fef9c3;
  border-left: 5px solid #ea580c;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.guide-box strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 4px;
}

.guide-box p {
  margin: 4px 0 8px;
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
  white-space: pre-wrap;
}

textarea {
  width: 100%;
  height: 50px;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="file"] {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
}

input[type="file"]:hover {
  border-color: var(--primary);
  background: #eff6ff;
}

.file-link {
  display: inline-block;
  background: var(--primary);
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s;
}

.file-link:hover {
  background: var(--primary-hover);
}

.file-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.modal-actions button {
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
}

.modal-actions .danger {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.modal-actions .danger:hover {
  background: #fecaca;
  color: #b91c1c;
}

.modal-actions .primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
}

.modal-actions .primary:hover {
  background: var(--primary-hover);
}

/* ===== CONFIRM MODALS ===== */
.confirm-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1200;
  justify-content: center;
  align-items: center;
}

.confirm-overlay.active {
  display: flex;
}

.confirm-modal {
  background: var(--surface);
  border-radius: 20px;
  max-width: 460px;
  width: 90%;
  padding: 32px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.confirm-modal .confirm-icon {
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--primary);
}

.confirm-modal h4 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.confirm-modal p {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.confirm-actions button {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  min-width: 100px;
}

.confirm-actions .danger {
  background: #f1f5f9;
  color: #334155;
}

.confirm-actions .danger:hover {
  background: #e2e8f0;
}

.confirm-actions .primary {
  background: var(--primary);
  color: #ffffff;
}

.confirm-actions .primary:hover {
  background: var(--primary-hover);
}

#confirmPassword {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

#confirmPassword:focus {
  border-color: var(--primary);
  outline: none;
}

#togglePassword {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  user-select: none;
  color: #94a3b8;
}

.empty-state {
  text-align: center;
  padding: 48px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-note {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  body { padding: 16px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .topbar { flex-direction: column; align-items: stretch; text-align: center; }
  .actions { justify-content: center; }
  .sub-grid { grid-template-columns: 1fr; }
  .modal { padding: 20px; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 22px; }
}

#warningModal .confirm-modal {
  border-top: 5px solid #dc2626;
}

#warningModal .confirm-icon {
  color: #dc2626;
}

#fileDeleteModal .confirm-modal {
  border-top: 5px solid #dc2626;
}

#fileDeleteModal .confirm-icon {
  color: #dc2626;
}

#addYearModal .confirm-modal {
  border-top: 5px solid var(--primary);
  max-width: 480px;
}

#addYearModal .confirm-icon {
  font-size: 56px;
  color: var(--primary);
  background: var(--primary-light);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#addYearModal h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

#addYearModal p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

#addYearModal .year-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 36px;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 12px;
  margin-bottom: 20px;
}

#addYearModal .confirm-actions {
  gap: 16px;
}

#addYearModal .confirm-actions button {
  padding: 12px 32px;
  font-size: 14px;
}

#addYearModal .confirm-actions .danger {
  background: #f1f5f9;
  color: #334155;
}

#addYearModal .confirm-actions .danger:hover {
  background: #e2e8f0;
}

#addYearModal .confirm-actions .primary {
  background: var(--primary);
  color: #ffffff;
}

#addYearModal .confirm-actions .primary:hover {
  background: var(--primary-hover);
}

#addOpdModal .confirm-modal {
  border-top: 5px solid var(--primary);
  max-width: 460px;
}

#addOpdModal .confirm-icon {
  font-size: 56px;
  color: var(--primary);
  background: var(--primary-light);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#addOpdModal h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

#addOpdModal p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

#addOpdModal .confirm-actions {
  gap: 16px;
}

#addOpdModal .confirm-actions button {
  padding: 12px 32px;
  font-size: 14px;
}

#addOpdModal .confirm-actions .danger {
  background: #f1f5f9;
  color: #334155;
}

#addOpdModal .confirm-actions .danger:hover {
  background: #e2e8f0;
}

#addOpdModal .confirm-actions .primary {
  background: var(--primary);
  color: #ffffff;
}

#addOpdModal .confirm-actions .primary:hover {
  background: var(--primary-hover);
}

.eye-icon {
  cursor: pointer;
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  color: #94a3b8;
}

.eye-icon:hover {
  color: #475569;
}

#backupModal .confirm-modal {
  border-top: 5px solid var(--primary);
  max-width: 750px;
  text-align: left;
}

#backupModal .confirm-icon {
  font-size: 50px;
  color: var(--primary);
  background: var(--primary-light);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#backupModal h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  text-align: center;
}

#backupModal p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-align: center;
}

#backupListContainer {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 20px;
}

.backup-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.backup-item:hover {
  background: var(--primary-light);
}

.backup-item:last-child {
  border-bottom: none;
}

.backup-item .backup-info {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.backup-item .backup-actions {
  display: flex;
  gap: 8px;
}

.backup-item .restore-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.backup-item .delete-btn {
  background: var(--red-bg);
  color: var(--red);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

#backupEmpty {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 20px;
}

#backupModal .confirm-actions {
  justify-content: space-between;
}

#confirmBackupModal .confirm-modal {
  border-top: 5px solid var(--primary);
  max-width: 440px;
}

#confirmBackupModal .confirm-icon {
  font-size: 50px;
  color: var(--primary);
  background: var(--primary-light);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#confirmDeleteBackupModal .confirm-modal {
  border-top: 5px solid #dc2626;
  max-width: 440px;
}

#confirmDeleteBackupModal .confirm-icon {
  font-size: 50px;
  color: #dc2626;
  background: var(--red-bg);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#confirmDeleteBackupModal .confirm-actions .primary {
  background: #dc2626;
  border-color: #dc2626;
}

#editNameModal .confirm-modal {
  border-top: 5px solid var(--primary);
  max-width: 460px;
}

#editNameModal .confirm-icon {
  font-size: 56px;
  color: var(--primary);
  background: var(--primary-light);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#editNameModal h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

#editNameModal p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

#editNameModal input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}

#editNameModal .confirm-actions {
  gap: 16px;
}

#editNameModal .confirm-actions button {
  padding: 12px 32px;
  font-size: 14px;
}

#editNameModal .confirm-actions .danger {
  background: #f1f5f9;
  color: #334155;
}

#editNameModal .confirm-actions .danger:hover {
  background: #e2e8f0;
}

#editNameModal .confirm-actions .primary {
  background: var(--primary);
  color: #ffffff;
}

#editNameModal .confirm-actions .primary:hover {
  background: var(--primary-hover);
}

#confirmNameModal .confirm-modal {
  border-top: 5px solid var(--primary);
  max-width: 460px;
}

#confirmNameModal .confirm-icon {
  font-size: 56px;
  color: var(--primary);
  background: var(--primary-light);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#confirmNameModal h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

#confirmNameModal p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

#confirmNameModal .confirm-actions {
  gap: 16px;
}

#confirmNameModal .confirm-actions button {
  padding: 12px 32px;
  font-size: 14px;
}

#confirmNameModal .confirm-actions .danger {
  background: #f1f5f9;
  color: #334155;
}

#confirmNameModal .confirm-actions .danger:hover {
  background: #e2e8f0;
}

#confirmNameModal .confirm-actions .primary {
  background: var(--primary);
  color: #ffffff;
}

#confirmNameModal .confirm-actions .primary:hover {
  background: var(--primary-hover);
}

.evid-upload-progress {
  margin-top: 8px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 8px;
  display: none;
}
.evid-upload-progress.active {
  display: block;
}
.progress-item {
  margin-bottom: 6px;
}
.progress-item .progress-label {
  font-size: 12px;
  margin-bottom: 3px;
}
.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  width: 0%;
  transition: width 0.2s;
}
.progress-text {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

#confirmRestoreModal .confirm-modal {
  border-top: 5px solid var(--primary);
  max-width: 440px;
}

#confirmRestoreModal .confirm-icon {
  font-size: 50px;
  color: var(--primary);
  background: var(--primary-light);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#confirmRestoreModal .confirm-actions .primary {
  background: var(--primary);
}

.save-indicator {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: opacity 0.3s;
}
.save-indicator.saving {
  color: #f59e0b;
}
.save-indicator.success {
  color: #10b981;
}
.save-indicator.error {
  color: #ef4444;
}


/* ===== KOLOM TAMBAHAN: KK RTP & EVIDENCE RTP ===== */
.btn-kk-rtp{background:linear-gradient(135deg,#2563eb,#4f46e5)!important;color:#fff!important;box-shadow:0 2px 6px rgba(37,99,235,.25)!important}
.btn-kk-rtp:hover{background:linear-gradient(135deg,#1d4ed8,#4338ca)!important}
.btn-rtp-evidence{background:linear-gradient(135deg,#d97706,#f59e0b)!important;color:#fff!important;box-shadow:0 2px 6px rgba(217,119,6,.25)!important}
.btn-rtp-evidence:hover{background:linear-gradient(135deg,#b45309,#d97706)!important}
.rtp-evidence-count{font-size:10px;font-weight:800;color:#64748b;margin-top:3px}
.btn-report-pm{background:linear-gradient(135deg,#0f766e,#14b8a6)!important;color:#fff!important;box-shadow:0 2px 6px rgba(15,118,110,.25)!important}
.btn-report-pm:hover{background:linear-gradient(135deg,#115e59,#0f766e)!important}
.btn-report-rr{background:linear-gradient(135deg,#7c3aed,#a855f7)!important;color:#fff!important;box-shadow:0 2px 6px rgba(124,58,237,.23)!important}
.btn-report-rr:hover{background:linear-gradient(135deg,#6d28d9,#7c3aed)!important}
.report-count{font-size:10px;font-weight:800;margin-top:3px}
.report-count.pm{color:#0f766e}.report-count.rr{color:#7c3aed}
.report-upload-button{background:linear-gradient(135deg,#0f766e,#2563eb)!important}
.report-upload-button:hover{filter:brightness(.96)}
.report-drive-box{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dbe3ee;border-radius:12px;padding:12px 14px;background:linear-gradient(135deg,#f8fafc,#eef6ff);margin-bottom:14px}
.report-drive-label{display:block;font-size:11px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.04em;margin-bottom:3px}
.report-drive-path{font-size:13px;font-weight:700;color:#0f172a;word-break:break-word}
.report-drive-badge{font-size:10px;font-weight:900;color:#0f766e;border:1px solid #99f6e4;background:#ecfeff;border-radius:999px;padding:5px 8px;white-space:nowrap}
.report-drive-link{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-decoration:none;background:#0f766e;color:#fff;padding:7px 10px;border-radius:7px;font-size:12px;font-weight:800}
.report-drive-link:hover{background:#115e59}
.report-upload-box{margin-bottom:14px} 
.report-retry-btn{background:#ede9fe;color:#6d28d9;border:none;border-radius:6px;padding:4px 8px;cursor:pointer;font-size:12px}.report-retry-btn:hover{background:#ddd6fe}
.report-delete-btn{background:#fee2e2;color:#b91c1c;border:none;border-radius:7px;padding:7px 10px;font-size:12px;font-weight:700;cursor:pointer}
.report-delete-btn:hover{background:#fecaca}
.rtp-upload-box{border:2px dashed #cbd5e1;border-radius:14px;padding:24px;text-align:center;background:#f8fafc;margin-bottom:16px}
.rtp-upload-button{background:linear-gradient(135deg,#f59e0b,#ea580c)!important;color:#fff!important;border:0!important;padding:12px 18px;border-radius:10px;cursor:pointer;font-weight:800}
.rtp-upload-help{font-size:12px;color:#64748b;margin-top:8px}
.rtp-file-list{display:flex;flex-direction:column;gap:8px}
.rtp-file-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dbe3ee;border-radius:10px;padding:11px 13px;background:#fff}
.rtp-file-name{font-size:13px;font-weight:700;color:#1e293b;word-break:break-word}
.rtp-file-meta{font-size:11px;color:#64748b;margin-top:3px}
.rtp-file-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.rtp-file-actions a,.rtp-delete-btn{border:0;border-radius:7px;padding:7px 10px;font-size:12px;font-weight:700;text-decoration:none;cursor:pointer}
.rtp-file-actions a{background:#ecfeff;color:#0f766e}
.rtp-delete-btn{background:#fee2e2;color:#b91c1c}

/* ===== GOOGLE SHEETS LINK MODAL ===== */
.sheet-links-overlay{
  display:none;position:fixed;inset:0;background:rgba(15,23,42,.62);backdrop-filter:blur(6px);
  z-index:1500;align-items:center;justify-content:center;padding:20px;
}
.sheet-links-overlay.active{display:flex}
.sheet-links-modal{
  width:min(1100px,96vw);max-height:88vh;overflow:hidden;background:#fff;border-radius:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.30);display:flex;flex-direction:column;
}
.sheet-links-header{
  display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 22px;
  background:linear-gradient(135deg,#0f172a,#1e3a5f);color:#fff;
}
.sheet-links-header h3{margin:0;font-size:18px;font-weight:800}
.sheet-links-close{background:rgba(255,255,255,.16);color:#fff;border:0;width:36px;height:36px;border-radius:50%;font-size:24px;cursor:pointer}
.sheet-links-body{padding:18px 20px;overflow:auto}
.sheet-links-info{font-size:13px;color:#64748b;margin-bottom:14px;line-height:1.55}
.sheet-links-status{display:none;padding:10px 12px;border-radius:8px;font-size:13px;margin-bottom:12px;background:#eff6ff;color:#1d4ed8}
.sheet-links-status.error{background:#fef2f2;color:#b91c1c}
.sheet-links-status.success{background:#ecfdf5;color:#047857}
.sheet-links-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sheet-link-card{border:1px solid #dbe3ee;border-radius:10px;padding:12px;background:#f8fafc;display:flex;align-items:center;justify-content:space-between;gap:10px}
.sheet-link-name{font-size:13px;font-weight:700;color:#1e293b;line-height:1.35}
.sheet-link-open{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-decoration:none;background:#0f766e;color:#fff;padding:7px 10px;border-radius:7px;font-size:12px;font-weight:700}
.sheet-link-open:hover{background:#115e59}
.sheet-link-missing{font-size:12px;color:#94a3b8}
.sheet-links-footer{display:flex;justify-content:flex-end;gap:10px;align-items:center;padding:14px 20px;border-top:1px solid #e2e8f0;background:#f8fafc}
.sheet-links-footer button{height:36px;padding:0 14px;border-radius:8px;border:1px solid #cbd5e1;background:#fff;color:#334155;font-size:12px;font-weight:700;cursor:pointer}
.sheet-links-footer button.primary{background:#0f766e;color:#fff;border-color:#0f766e}
.sheet-links-footer button.primary:hover{background:#115e59}
.sheet-links-footer button:disabled{opacity:.55;cursor:not-allowed}
.btn-kk{background:linear-gradient(135deg,#0f766e,#0d9488)!important;box-shadow:0 2px 6px rgba(15,118,110,.25)!important}
.btn-kk:hover{background:linear-gradient(135deg,#115e59,#0f766e)!important}
@media(max-width:768px){
  .sheet-links-grid{grid-template-columns:1fr}
  .sheet-links-modal{max-height:92vh}
}
.rtp-folder-box{border:1px solid #dbe3ee;border-radius:12px;padding:14px 15px;background:#f8fafc;margin-bottom:14px}
.rtp-folder-box label{display:block;font-size:12px;font-weight:800;color:#334155;margin-bottom:7px}
.rtp-folder-row{display:flex;gap:8px;align-items:center}
.rtp-folder-row input{flex:1;min-width:0;height:38px;border:1px solid #cbd5e1;border-radius:8px;padding:0 11px;font:inherit;font-size:13px;color:#0f172a;background:#fff;outline:none}
.rtp-folder-row input:focus{border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.10)}
.rtp-folder-row button{height:38px;padding:0 13px;border-radius:8px;border:1px solid #0f766e;background:#0f766e;color:#fff;font-size:12px;font-weight:800;cursor:pointer}
.rtp-folder-help{font-size:11px;color:#64748b;margin-top:7px;line-height:1.4}


.rtp-folder-preview{margin-top:9px;padding:9px 11px;border-radius:8px;background:#eef6ff;border:1px solid #d7e8ff;color:#1e3a5f;font-size:12px}.rtp-folder-preview b{color:#0f766e;word-break:break-word}.rtp-folder-row input{min-height:40px}.rtp-folder-row button{white-space:nowrap}.rtp-folder-box{box-shadow:0 2px 8px rgba(15,23,42,.03)}

/* ===== TABEL: OPD + NILAI STRUKTUR DAN PROSES TETAP TERLIHAT ===== */
.table-wrap{position:relative}
thead th:nth-child(1), tbody td:nth-child(1){position:sticky;left:0;z-index:12;background:#f8fbff}
thead th:nth-child(2), tbody td:nth-child(2){position:sticky;left:48px;z-index:11;background:inherit}
thead th:nth-child(1), thead th:nth-child(2){background:linear-gradient(135deg,#0f172a 0%,#1e3a5f 100%)}
tbody td:nth-child(2){box-shadow:2px 0 8px rgba(15,23,42,.05)}
@media (max-width:900px){thead th:nth-child(2), tbody td:nth-child(2){left:40px}}

.rtp-retry-btn{background:#dbeafe;color:#1d4ed8;border:none;border-radius:6px;padding:4px 8px;cursor:pointer;font-size:12px}.rtp-retry-btn:hover{background:#bfdbfe}

/* ============================================================
   KPI CHART – MODERN / GLASS / GRADIENT
   Fokus perubahan hanya pada tampilan grafik KPI.
   ============================================================ */
#kpiChartModal {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(14px) saturate(130%);
}

#kpiChartModal .modal {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  width: min(94vw, 1180px);
  max-height: 88vh;
  padding: 26px 28px 28px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 0%, rgba(59,130,246,0.18), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(124,58,237,0.16), transparent 32%),
    linear-gradient(145deg, rgba(248,250,252,0.98), rgba(239,246,255,0.96) 52%, rgba(245,243,255,0.98));
  box-shadow: 0 35px 90px rgba(15,23,42,0.35), 0 8px 30px rgba(37,99,235,0.10);
}

#kpiChartModal .modal::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  top: -150px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59,130,246,0.22), rgba(124,58,237,0.10));
  filter: blur(4px);
  animation: kpiOrbFloat 7s ease-in-out infinite;
  pointer-events: none;
}

#kpiChartModal .modal-header {
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
  padding: 0 2px 4px;
  border-bottom: 0;
}

#kpiChartModal .modal-header h3 {
  max-width: calc(100% - 60px);
  font-size: clamp(20px, 2.2vw, 29px);
  line-height: 1.18;
  letter-spacing: -0.6px;
  font-weight: 850;
  background: linear-gradient(100deg, #1e3a8a 0%, #2563eb 42%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 18px rgba(59,130,246,0.08);
}

#kpiChartModal .modal-close {
  position: relative;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148,163,184,0.22);
  color: #475569;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 8px 20px rgba(15,23,42,0.10);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

#kpiChartModal .modal-close:hover {
  color: #4f46e5;
  background: #ffffff;
  transform: rotate(90deg) scale(1.06);
  box-shadow: 0 10px 24px rgba(79,70,229,0.18);
}

#kpiChartModal .chart-container.chart-scroll {
  position: relative;
  z-index: 1;
  height: clamp(390px, 60vh, 510px);
  max-height: none;
  overflow: hidden;
  padding: 18px 18px 10px;
  border: 1px solid rgba(255,255,255,0.80);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.78)),
    radial-gradient(circle at 50% 0%, rgba(96,165,250,0.10), transparent 55%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 0 40px rgba(59,130,246,0.035),
    0 14px 35px rgba(15,23,42,0.08);
}

#kpiChartModal .chart-container.chart-scroll::before {
  content: '';
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 20px;
  height: 80px;
  background: linear-gradient(90deg, rgba(37,99,235,0), rgba(79,70,229,0.10), rgba(124,58,237,0));
  filter: blur(22px);
  opacity: .7;
  animation: kpiGlowMove 5s ease-in-out infinite;
  pointer-events: none;
}

#kpiChartModal #kpiChartCanvas {
  position: relative;
  z-index: 2;
}

@keyframes kpiOrbFloat {
  0%,100% { transform: translate3d(0,0,0) scale(1); opacity: .75; }
  50% { transform: translate3d(-22px,18px,0) scale(1.08); opacity: 1; }
}

@keyframes kpiGlowMove {
  0%,100% { transform: translateX(-5%); opacity: .45; }
  50% { transform: translateX(5%); opacity: .9; }
}

@media (max-width: 700px) {
  #kpiChartModal .modal {
    width: 96vw;
    padding: 20px 14px 18px;
    border-radius: 22px;
  }
  #kpiChartModal .chart-container.chart-scroll {
    height: 420px;
    padding: 10px 8px 6px;
    border-radius: 17px;
  }
}


/* ===== VERIFIKASI INSPEKTORAT EVIDENCE ===== */
.evidence-cell{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:62px}
.structure-evidence-summary,.rtp-evidence-summary{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;font-weight:900;line-height:1.05;color:#0f766e;min-width:60px}
.structure-evidence-summary small,.rtp-evidence-summary small{display:block;margin-top:3px;font-size:10px;font-weight:700;color:#64748b;white-space:nowrap}
.verification-level-summary{margin:8px 0 2px;padding:8px 10px;border:1px solid #dbeafe;background:#f8fbff;border-radius:9px;color:#334155;font-size:11px;line-height:1.4}
.verification-level-summary strong{display:inline-block;color:#0f766e;margin-right:7px}
.verification-level-summary span{color:#64748b}
.evidence-file-card{border:1px solid #dbe3ee;background:#fff;border-radius:10px;padding:9px;box-shadow:0 1px 3px rgba(15,23,42,.04)}
.evidence-file-main{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.evidence-file-main .file-link{flex:1;min-width:220px;margin:0}
.evidence-storage-status{font-size:11px;color:#475569}
.file-action{border:0;border-radius:7px;padding:5px 9px;cursor:pointer;font-size:11px;font-weight:800}
.file-action.retry{background:#dbeafe;color:#1d4ed8}.file-action.delete{background:#fee2e2;color:#b91c1c}
.file-verification-panel{margin-top:9px;padding:10px;border-radius:9px;border:1px solid #dbeafe;background:linear-gradient(180deg,#f8fbff,#fff)}
.file-verification-panel.is-diterima{border-color:#bbf7d0;background:#f0fdf4}
.file-verification-panel.is-diterima_catatan{border-color:#fde68a;background:#fffbeb}
.file-verification-panel.is-dikembalikan{border-color:#fecaca;background:#fff7f7}
.file-verification-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;font-size:11px;color:#334155}
.verification-score-badge{min-width:36px;text-align:center;padding:4px 7px;border-radius:999px;background:#e0f2fe;color:#0369a1;font-weight:900}
.file-verification-panel.is-diterima .verification-score-badge{background:#dcfce7;color:#166534}
.file-verification-panel.is-diterima_catatan .verification-score-badge{background:#fef3c7;color:#92400e}
.file-verification-panel.is-dikembalikan .verification-score-badge{background:#fee2e2;color:#b91c1c}
.file-verification-panel.is-diterima .verify-status{background:#f0fdf4;border-color:#86efac;color:#166534}
.file-verification-panel.is-diterima_catatan .verify-status{background:#fffbeb;border-color:#fcd34d;color:#92400e}
.file-verification-panel.is-dikembalikan .verify-status{background:#fff7f7;border-color:#fca5a5;color:#b91c1c}
.verification-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.55fr);gap:8px}
.file-verification-panel label{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:800;color:#475569}
.file-verification-panel input,.file-verification-panel select,.file-verification-panel textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#0f172a;padding:8px 9px;font:inherit;font-size:12px;outline:none}
.file-verification-panel input:focus,.file-verification-panel select:focus,.file-verification-panel textarea:focus{border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.08)}
.file-verification-panel textarea{min-height:62px;resize:vertical}
.verify-note-label{margin-top:8px}
.verification-save-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;flex-wrap:wrap}
.verification-updated{font-size:10px;color:#64748b;min-height:18px}
.verification-save-btn{border:0;border-radius:7px;padding:7px 10px;background:#0f766e;color:#fff;font-size:11px;font-weight:800;cursor:pointer}
.verification-save-btn:hover{background:#0b615d}.verification-save-btn:disabled{opacity:.65;cursor:wait}
.file-verification-legacy{margin-top:8px;padding:8px 9px;border-radius:7px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:10px;line-height:1.4}
.rtp-verification-summary{border:1px solid #bae6fd;background:linear-gradient(135deg,#f0f9ff,#f8fafc);border-radius:12px;padding:12px 13px;margin-bottom:12px}
.rtp-verification-summary>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#334155;font-size:12px}.rtp-verification-summary>div:first-child b{font-size:24px;color:#0f766e;letter-spacing:-.5px}.rtp-verification-stats{margin-top:4px;color:#475569;font-size:11px}.rtp-verification-legend{margin-top:7px;color:#64748b;font-size:10px}
.rtp-file-item-expanded{display:block}.rtp-file-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.rtp-verification-panel{margin-top:10px}
@media (max-width:720px){.verification-form-grid{grid-template-columns:1fr}.evidence-file-main .file-link{min-width:0}.rtp-file-top{align-items:flex-start;flex-direction:column}.rtp-file-actions{width:100%;justify-content:flex-end}}

/* ===== REPLACEMENT FILE: hanya muncul setelah verifikasi Dikembalikan ===== */
.file-action.replace-evidence-btn,
.rtp-replace-btn{
  border:1px solid #f59e0b;
  background:#fff7ed;
  color:#9a3412;
  border-radius:7px;
  padding:7px 10px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
.file-action.replace-evidence-btn:hover,
.rtp-replace-btn:hover{background:#ffedd5;border-color:#ea580c}
.file-action.replace-evidence-btn:disabled,
.rtp-replace-btn:disabled{opacity:.65;cursor:wait}
.file-replacement-notice{
  margin:8px 0 9px;
  padding:8px 10px;
  border:1px solid #bbf7d0;
  border-radius:8px;
  background:#f0fdf4;
  color:#166534;
  font-size:11px;
  line-height:1.45;
  font-weight:700;
}
.verification-save-row{flex-wrap:wrap}


/* ===== EVIDENCE STRUKTUR & PROSES — NAVIGASI 5 UNSUR / SUB-UNSUR ===== */
#editModal .modal {
  max-width: 1180px;
}

#editModal .modal-header {
  margin-bottom: 14px;
}

.evidence-structure-nav {
  width: 100%;
}

.evidence-nav-header {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 56%, #eef2ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 18px 20px 14px;
  margin-bottom: 18px;
}

.evidence-nav-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.evidence-nav-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #2563eb;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.evidence-nav-title {
  margin: 0;
  font-size: 20px;
  font-weight: 850;
  color: #0f172a;
  line-height: 1.25;
}

.evidence-nav-description {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.evidence-nav-total-badge {
  flex: 0 0 auto;
  min-width: 84px;
  padding: 10px 12px;
  text-align: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  box-shadow: 0 4px 14px rgba(15,23,42,.05);
}

.evidence-nav-total-badge strong {
  display: block;
  font-size: 23px;
  color: #1d4ed8;
  line-height: 1;
}

.evidence-nav-total-badge span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.evidence-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.evidence-breadcrumb > span {
  color: #94a3b8;
  font-weight: 800;
}

.evidence-crumb {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}

.evidence-crumb:hover:not(:disabled) {
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.evidence-crumb.is-active {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.evidence-crumb:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.evidence-unsur-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.evidence-unsur-card,
.evidence-subunsur-card {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid #dbe3ee;
  background: #ffffff;
  border-radius: 16px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 4px 14px rgba(15,23,42,.05);
  font-family: inherit;
}

.evidence-unsur-card {
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 13px;
  row-gap: 5px;
  align-items: start;
}

.evidence-unsur-card:hover,
.evidence-subunsur-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 10px 25px rgba(37,99,235,.11);
}

.evidence-unsur-icon {
  grid-row: span 5;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eff6ff;
  font-size: 27px;
}

.evidence-unsur-code,
.evidence-subunsur-code {
  font-size: 10px;
  letter-spacing: .07em;
  font-weight: 900;
  color: #2563eb;
  text-transform: uppercase;
}

.evidence-unsur-title,
.evidence-subunsur-title {
  font-weight: 850;
  color: #0f172a;
  line-height: 1.35;
}

.evidence-unsur-title {
  font-size: 16px;
}

.evidence-subunsur-title {
  font-size: 14px;
}

.evidence-unsur-subtitle {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.evidence-unsur-meta,
.evidence-subunsur-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.evidence-unsur-meta span,
.evidence-subunsur-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 10px;
  font-weight: 750;
}

.evidence-unsur-progress {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-top: 5px;
}

.evidence-unsur-progress-bar,
.evidence-subunsur-progressbar {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.evidence-unsur-progress-bar i,
.evidence-subunsur-progressbar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
}

.evidence-unsur-progress strong,
.evidence-subunsur-progress strong {
  flex: 0 0 auto;
  font-size: 10px;
  color: #0f766e;
  white-space: nowrap;
}

.evidence-unsur-action {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 850;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.evidence-unsur-action span {
  font-size: 16px;
  line-height: 1;
}

.evidence-nav-screen.hidden,
.evidence-subunsur-card.hidden,
.evidence-nav-screen .hidden {
  display: none !important;
}

.evidence-sub-screen-head,
.evidence-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
}

.evidence-back-btn {
  flex: 0 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.evidence-back-btn:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
  background: #eff6ff;
}

.evidence-subunsur-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.evidence-subunsur-card {
  padding: 14px;
  display: grid;
  gap: 6px;
}

.evidence-subunsur-progress {
  display: flex;
  align-items: center;
  gap: 9px;
}

.evidence-subunsur-meta {
  margin-top: 2px;
}

.evidence-subunsur-progressbar {
  min-width: 70px;
}

.evidence-detail-body {
  width: 100%;
}

.evidence-detail-body .evidence-sub-panel {
  margin: 0;
}

.evidence-detail-body .evidence-sub-panel > label {
  font-size: 17px;
  margin-bottom: 14px;
}

@media (max-width: 760px) {
  #editModal .modal {
    width: 96vw;
    padding: 18px 14px;
  }

  .evidence-nav-title-row,
  .evidence-sub-screen-head,
  .evidence-detail-head {
    flex-direction: column;
  }

  .evidence-unsur-grid,
  .evidence-subunsur-grid {
    grid-template-columns: 1fr;
  }

  .evidence-nav-total-badge {
    align-self: flex-start;
  }

  .evidence-back-btn {
    width: 100%;
  }
}


/* ============================================================
   KERTAS KERJA PM SPIP
   Scoped styles: do not disturb existing dashboard components.
   ============================================================ */
.kk-pm-table-cell{display:flex;align-items:center;justify-content:center;gap:8px;min-width:170px;padding:4px 6px}
.btn-kk-pm-spip{width:42px;height:42px;border:0;border-radius:11px;background:linear-gradient(145deg,#1d4ed8,#2563eb);color:#fff;cursor:pointer;box-shadow:0 5px 12px rgba(37,99,235,.22);font-size:18px;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.btn-kk-pm-spip:hover{transform:translateY(-2px);filter:brightness(1.04);box-shadow:0 9px 18px rgba(37,99,235,.28)}
.kk-pm-table-summary{display:flex;flex-direction:column;align-items:flex-start;min-width:82px;font-weight:800;font-size:12px;color:#1d4ed8;line-height:1.15}
.kk-pm-table-summary small{margin-top:3px;font-size:9px;font-weight:600;color:#64748b;white-space:nowrap}
.kk-pm-overlay{z-index:1310;padding:18px}
.kk-pm-modal{width:min(1700px,98vw);max-width:none;height:min(95vh,1000px);max-height:95vh;padding:0;overflow:hidden;border-radius:22px;display:flex;flex-direction:column;background:#f8fafc;box-shadow:0 28px 90px rgba(15,23,42,.38);border:1px solid rgba(148,163,184,.24)}
.kk-pm-modal-header{flex:0 0 auto;margin:0;padding:20px 24px 16px;background:linear-gradient(135deg,#0f172a 0%,#1e293b 52%,#1d4ed8 100%);color:#fff}
.kk-pm-modal-header h3{color:#fff;margin:0;font-size:21px;font-weight:850;letter-spacing:.01em}.kk-pm-modal-header p{margin:5px 0 0;font-size:12px;color:#cbd5e1}.kk-pm-modal-header .modal-close{color:#fff;width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.10)}.kk-pm-modal-header .modal-close:hover{background:rgba(255,255,255,.18);color:#fff}
#kkPmSummary{flex:0 0 auto;display:grid;grid-template-columns:1.15fr repeat(6,minmax(120px,1fr));gap:9px;padding:13px 16px 10px;background:#fff;border-bottom:1px solid #e2e8f0}
.kk-pm-summary-card{min-width:0;padding:10px 12px;border:1px solid #dbe4ee;border-radius:13px;background:linear-gradient(135deg,#f8fafc,#fff);display:flex;flex-direction:column;gap:3px;box-shadow:0 4px 16px rgba(15,23,42,.04)}
.kk-pm-summary-card span{text-transform:uppercase;letter-spacing:.05em;font-size:8.5px;font-weight:800;color:#64748b}.kk-pm-summary-card strong{font-size:20px;line-height:1.05;color:#0f172a}.kk-pm-summary-card small{font-size:9.5px;color:#64748b}.kk-pm-summary-result{background:linear-gradient(135deg,#eff6ff,#eef2ff);border-color:#bfdbfe}.kk-pm-summary-result strong{color:#1d4ed8}
.kk-pm-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 16px;background:#fff;border-bottom:1px solid #e2e8f0;flex:0 0 auto}.kk-pm-tabs{display:flex;gap:7px;overflow-x:auto}.kk-pm-tabs button{border:1px solid #dbe4ee;background:#f8fafc;color:#475569;border-radius:10px;padding:9px 13px;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}.kk-pm-tabs button.active{background:#1d4ed8;color:#fff;border-color:#1d4ed8;box-shadow:0 5px 14px rgba(29,78,216,.18)}.kk-pm-actions{display:flex;gap:7px}.kk-pm-action{border:1px solid #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:9px;padding:9px 12px;font-size:11px;font-weight:850;cursor:pointer;white-space:nowrap}.kk-pm-action:hover{background:#dbeafe}
.kk-pm-status{flex:0 0 auto;margin:8px 16px 0;padding:8px 10px;border-radius:9px;font-size:11px;font-weight:700;background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.kk-pm-status.success{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.kk-pm-status.error{background:#fef2f2;color:#b91c1c;border-color:#fecaca}

.kk-pm-account-master-panel[hidden],.pemda-pm-template-panel[hidden],.pemda-pm-evidence-panel[hidden]{display:none!important}.kk-pm-account-master-panel{flex:0 0 auto;margin:8px 16px 0;padding:10px 12px;border:1px solid #c7d2fe;border-radius:12px;background:linear-gradient(115deg,#f8fafc,#eff6ff 58%,#f5f3ff);display:flex;flex-direction:column;gap:8px}.kk-pm-account-master-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.kk-pm-account-master-heading>div{display:flex;flex-direction:column;gap:3px}.kk-pm-account-master-heading b{font-size:11px;color:#172554}.kk-pm-account-master-heading small{font-size:10px;line-height:1.45;color:#475569}.kk-pm-account-master-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:8px}.kk-pm-account-master-controls label{grid-column:1/-1;display:flex;flex-direction:column;gap:4px;font-size:10px;font-weight:800;color:#334155}.kk-pm-account-master-controls input{width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px;font:inherit;font-size:11px;background:#fff;color:#0f172a}.kk-pm-account-master-controls button{min-height:34px}.kk-pm-account-master-status{font-size:10px;font-weight:700;color:#475569;line-height:1.4}.kk-pm-account-master-status.success{color:#047857}.kk-pm-account-master-status.error{color:#b91c1c}
@media(max-width:768px){.kk-pm-account-master-heading{align-items:flex-start;flex-direction:column}.kk-pm-account-master-controls{grid-template-columns:1fr}.kk-pm-account-master-controls button{width:100%}}

#kkPmContent{flex:1 1 auto;min-height:0;overflow:auto;padding:13px 16px 16px}.kk-pm-sheet-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:12px;padding:13px 15px;border:1px solid #dbe4ee;border-radius:15px;background:linear-gradient(135deg,#fff,#f8fafc)}.kk-pm-sheet-head h4{margin:2px 0 5px;color:#0f172a;font-size:16px}.kk-pm-sheet-head p{margin:0;max-width:1100px;color:#64748b;font-size:11px;line-height:1.55}.kk-pm-kicker{font-size:9px;font-weight:900;letter-spacing:.09em;color:#1d4ed8;text-transform:uppercase}
.kk-pm-nav-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.kk-pm-nav-card{position:relative;text-align:left;min-height:128px;padding:14px;border:1px solid #dbe4ee;border-radius:15px;background:#fff;cursor:pointer;box-shadow:0 5px 16px rgba(15,23,42,.045);transition:.16s}.kk-pm-nav-card:hover{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 11px 22px rgba(29,78,216,.10)}.kk-pm-nav-card strong{display:block;color:#0f172a;font-size:12px;line-height:1.35;margin-bottom:6px}.kk-pm-nav-meta{display:block;color:#64748b;font-size:10px;line-height:1.4;padding-right:45px}.kk-pm-nav-percent{position:absolute;right:12px;bottom:12px;font-size:17px;font-weight:900;color:#1d4ed8}
.kk-pm-parameter-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kk-pm-parameter-card{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;padding:12px 14px;border:1px solid #dbe4ee;border-radius:13px;background:#fff;cursor:pointer;transition:.16s;min-height:82px}.kk-pm-parameter-card:hover{border-color:#93c5fd;box-shadow:0 8px 18px rgba(29,78,216,.09);transform:translateY(-1px)}.kk-pm-parameter-card strong{display:block;color:#0f172a;font-size:12px;line-height:1.4}.kk-pm-parameter-card small{display:block;color:#64748b;font-size:10px;margin-top:4px}.kk-pm-parameter-score{font-size:19px;font-weight:900;color:#1d4ed8;white-space:nowrap}.kk-pm-breadcrumb{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:9px;color:#64748b;font-size:11px}.kk-pm-breadcrumb button{border:0;background:transparent;color:#1d4ed8;font-weight:800;padding:2px 0;cursor:pointer}
.kk-pm-grade-section{margin-top:12px;border:1px solid #dbe4ee;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 5px 16px rgba(15,23,42,.035)}.kk-pm-grade-section>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 13px;background:#f8fafc;cursor:pointer;color:#0f172a}.kk-pm-grade-section>summary::-webkit-details-marker{display:none}.kk-pm-grade-section>summary>div{display:flex;align-items:center;gap:9px;min-width:0}.kk-pm-grade-section>summary strong{font-size:11px}.kk-pm-grade-section>summary small{font-size:9px;color:#64748b;font-weight:700;white-space:nowrap}.kk-pm-grade-section[open]>summary{background:#eff6ff;border-bottom:1px solid #dbeafe}
.kk-pm-table-wrap{width:100%;overflow:auto;border:1px solid #dbe4ee;border-radius:12px;background:#fff}.kk-pm-item-table{width:100%;min-width:1750px;border-collapse:separate;border-spacing:0;font-size:10px}.kk-pm-item-table th{position:sticky;top:0;z-index:2;background:#17233f;color:#fff;padding:9px 8px;text-align:left;font-size:9px;white-space:nowrap}.kk-pm-item-table td{padding:7px 8px;border-bottom:1px solid #eef2f7;vertical-align:top;color:#334155;background:#fff}.kk-pm-item-table tbody tr:hover td{background:#f8fafc}.kk-pm-stage{display:flex;flex-direction:column;gap:3px;min-width:330px}.kk-pm-stage b{color:#0f172a;font-size:10px}.kk-pm-stage span{color:#334155;line-height:1.4}.kk-pm-stage small{color:#64748b;line-height:1.4;white-space:pre-wrap}.kk-pm-evidence{min-width:260px;line-height:1.45;color:#334155;white-space:pre-wrap}.kk-pm-file-stack{display:flex;flex-direction:column;gap:4px;min-width:210px}.kk-pm-file-stack a,.kk-pm-file-stack span{padding:4px 6px;border-radius:7px;background:#eff6ff;color:#1d4ed8;font-weight:800;font-size:9px;text-decoration:none}.kk-pm-file-count{display:block;color:#64748b;font-size:9px;margin-top:3px}.kk-pm-no-file{display:block;min-width:180px;color:#94a3b8;font-style:italic;line-height:1.4}.kk-pm-item-table select,.kk-pm-item-table input[type="text"],.kk-pm-item-table textarea{font:inherit;font-size:10px;border:1px solid #cbd5e1;border-radius:7px;padding:5px 6px;background:#fff;color:#0f172a}.kk-pm-item-table textarea{min-width:180px;min-height:58px;resize:vertical}.kk-pm-score{min-width:55px;text-align:center;font-size:13px;color:#1d4ed8}.kk-pm-conclusion{min-width:125px}.kk-pm-conclusion-badge{display:inline-flex;padding:5px 7px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:9px;font-weight:850}.kk-pm-summary-wrap{max-height:none;overflow:auto}.kk-pm-summary-wrap table{width:100%;min-width:1320px;border-collapse:separate;border-spacing:0;font-size:10px}.kk-pm-summary-wrap th{position:sticky;top:0;z-index:2;background:#17233f;color:#fff;padding:8px 7px;font-size:8.5px;white-space:nowrap}.kk-pm-summary-wrap td{padding:7px;border-bottom:1px solid #eef2f7;color:#334155;text-align:center;background:#fff}.kk-pm-summary-wrap td.pm-left{ text-align:left}.kk-pm-summary-wrap tbody tr:hover td{background:#f8fafc}.kk-pm-total-row td,.kk-pm-total-row th{background:#dbeafe !important;font-weight:900}.kk-pm-instruction{overflow:auto;border:1px solid #dbe4ee;border-radius:12px;background:#fff}.kk-pm-instruction table{width:100%;min-width:820px;border-collapse:collapse;font-size:11px}.kk-pm-instruction th{background:#17233f;color:#fff;padding:9px;text-align:left;font-size:9px}.kk-pm-instruction td{padding:9px;border-bottom:1px solid #eef2f7;color:#334155;vertical-align:top;line-height:1.5}.kk-pm-formula{margin-top:11px;padding:11px 13px;border-radius:11px;border:1px solid #bfdbfe;background:#eff6ff;color:#334155;font-size:10px;line-height:1.6}.kk-pm-footer{flex:0 0 auto;margin:0;padding:10px 16px;border-top:1px solid #e2e8f0;background:#fff}.kk-pm-footer button{padding:8px 15px;border:1px solid #cbd5e1;background:#fff;color:#475569;border-radius:9px;font-size:11px;font-weight:800;cursor:pointer}
@media (max-width:1200px){#kkPmSummary{grid-template-columns:repeat(4,minmax(0,1fr))}.kk-pm-nav-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:768px){.kk-pm-overlay{padding:8px}.kk-pm-modal{width:99vw;height:96vh;max-height:96vh;border-radius:16px}#kkPmSummary{grid-template-columns:1fr 1fr;padding:9px}.kk-pm-toolbar{align-items:flex-start;flex-direction:column}.kk-pm-actions{width:100%}.kk-pm-action{width:100%}.kk-pm-nav-grid,.kk-pm-parameter-list{grid-template-columns:1fr}}

/* ============================================================
   PENJAMINAN KUALITAS / QUALITY ASSURANCE APIP
   Scoped styles: do not disturb existing dashboard components.
   ============================================================ */
.qa-apip-table-cell{display:flex;align-items:center;justify-content:center;gap:8px;min-width:170px;padding:4px 6px}
.btn-qa-apip{width:42px;height:42px;border:0;border-radius:11px;background:linear-gradient(145deg,#0f766e,#0d9488);color:#fff;cursor:pointer;box-shadow:0 5px 12px rgba(13,148,136,.22);font-size:18px;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.btn-qa-apip:hover{transform:translateY(-2px);filter:brightness(1.04);box-shadow:0 9px 18px rgba(13,148,136,.28)}
.qa-apip-table-summary{display:flex;flex-direction:column;align-items:flex-start;min-width:82px;font-weight:800;font-size:12px;color:#0f766e;line-height:1.15}
.qa-apip-table-summary small{margin-top:3px;font-size:9px;font-weight:600;color:#64748b;white-space:nowrap}

.qa-apip-overlay{z-index:1300;padding:18px}
.qa-apip-modal{width:min(1600px,97vw);max-width:none;height:min(94vh,980px);max-height:94vh;padding:0;overflow:hidden;border-radius:22px;display:flex;flex-direction:column;background:#f8fafc;box-shadow:0 28px 90px rgba(15,23,42,.38);border:1px solid rgba(148,163,184,.24)}
.qa-apip-modal-header{flex:0 0 auto;margin:0;padding:20px 24px 16px;background:linear-gradient(135deg,#0f172a 0%,#1e293b 55%,#0f766e 100%);color:#fff;border-bottom:0}
.qa-apip-modal-header h3{color:#fff;margin:0;font-size:21px;font-weight:850;letter-spacing:.01em}
.qa-apip-modal-header p{margin:5px 0 0;font-size:12px;color:#cbd5e1}
.qa-apip-modal-header .modal-close{color:#fff;width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.10)}
.qa-apip-modal-header .modal-close:hover{background:rgba(255,255,255,.18);color:#fff}
#qaApipSummary{flex:0 0 auto;display:grid;grid-template-columns:1.25fr repeat(3,1fr);gap:10px;padding:14px 18px 10px;background:#fff;border-bottom:1px solid #e2e8f0}
.qa-summary-card{min-width:0;padding:11px 13px;border:1px solid #e2e8f0;border-radius:14px;background:linear-gradient(135deg,#f8fafc,#fff);display:flex;flex-direction:column;gap:3px;box-shadow:0 4px 16px rgba(15,23,42,.04)}
.qa-summary-card span{text-transform:uppercase;letter-spacing:.06em;font-size:9px;font-weight:800;color:#64748b}
.qa-summary-card strong{font-size:23px;line-height:1.05;color:#0f172a}
.qa-summary-card small{font-size:10px;color:#64748b}
.qa-summary-result{background:linear-gradient(135deg,#ecfeff,#f0fdfa);border-color:#99f6e4}
.qa-summary-result strong{color:#0f766e}
#qaApipTabs{display:flex;gap:7px;padding:10px 18px;background:#fff;border-bottom:1px solid #e2e8f0;flex:0 0 auto;overflow-x:auto}
#qaApipTabs [data-qa-tab]{border:1px solid #dbe4ee;background:#f8fafc;color:#475569;border-radius:10px;padding:9px 13px;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap;transition:.18s}
#qaApipTabs [data-qa-tab]:hover{background:#f1f5f9;color:#0f172a}
#qaApipTabs [data-qa-tab].active{background:#0f766e;color:#fff;border-color:#0f766e;box-shadow:0 5px 14px rgba(15,118,110,.18)}
.qa-apip-status{flex:0 0 auto;margin:8px 18px 0;padding:8px 10px;border-radius:9px;font-size:11px;font-weight:700;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.qa-apip-status.success{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.qa-apip-status.error{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
#qaApipContent{flex:1 1 auto;min-height:0;overflow:auto;padding:14px 18px 16px}
.qa-sheet-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:12px;padding:13px 15px;border:1px solid #dce6ef;border-radius:15px;background:linear-gradient(135deg,#ffffff,#f8fafc)}
.qa-sheet-head h4{margin:2px 0 5px;color:#0f172a;font-size:16px}
.qa-sheet-head p{margin:0;max-width:1000px;color:#64748b;font-size:11px;line-height:1.55}
.qa-kicker{font-size:9px;font-weight:900;letter-spacing:.09em;color:#0f766e;text-transform:uppercase}
.qa-threshold-box,.qa-param-score-box{min-width:145px;padding:10px 12px;border-radius:12px;background:#ecfeff;border:1px solid #a5f3fc;text-align:right}
.qa-threshold-box span,.qa-param-score-box span{display:block;font-size:9px;font-weight:800;text-transform:uppercase;color:#0e7490;letter-spacing:.04em}
.qa-threshold-box strong,.qa-param-score-box strong{display:block;font-size:20px;color:#0f766e}
.qa-param-score-box small{font-size:10px;color:#64748b}
.qa-nav-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
.qa-nav-card{position:relative;text-align:left;min-height:128px;padding:14px;border:1px solid #dbe4ee;border-radius:15px;background:#fff;cursor:pointer;box-shadow:0 5px 16px rgba(15,23,42,.045);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.qa-nav-card:hover{transform:translateY(-2px);border-color:#94a3b8;box-shadow:0 11px 22px rgba(15,23,42,.09)}
.qa-nav-code{display:inline-block;padding:3px 7px;border-radius:999px;background:#ecfeff;color:#0f766e;font-size:9px;font-weight:900;letter-spacing:.04em;margin-bottom:8px}
.qa-nav-card strong{display:block;color:#0f172a;font-size:12px;line-height:1.35;margin-bottom:6px}
.qa-nav-meta{display:block;color:#64748b;font-size:10px;line-height:1.4;padding-right:45px}
.qa-nav-percent{position:absolute;right:12px;bottom:12px;font-size:17px;font-weight:900;color:#0f766e}
.qa-parameter-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.qa-parameter-card{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;padding:12px 14px;border:1px solid #dbe4ee;border-radius:13px;background:#fff;cursor:pointer;transition:.16s;min-height:82px}
.qa-parameter-card:hover{border-color:#2dd4bf;box-shadow:0 8px 18px rgba(15,118,110,.09);transform:translateY(-1px)}
.qa-parameter-card strong{display:block;color:#0f172a;font-size:12px;line-height:1.4}
.qa-parameter-card small{display:block;color:#64748b;font-size:10px;margin-top:4px}
.qa-parameter-score{font-size:19px;font-weight:900;color:#0f766e;white-space:nowrap}
.qa-breadcrumb{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:9px;color:#64748b;font-size:11px}
.qa-breadcrumb button{border:0;background:transparent;color:#0f766e;font-weight:800;padding:2px 0;cursor:pointer}
.qa-breadcrumb button:hover{text-decoration:underline}
.qa-grade-section{margin-top:12px;border:1px solid #dbe4ee;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 5px 16px rgba(15,23,42,.035)}
.qa-grade-section>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 13px;background:#f8fafc;cursor:pointer;color:#0f172a}.qa-grade-section>summary::-webkit-details-marker{display:none}.qa-grade-section>summary>div{display:flex;align-items:center;gap:9px;min-width:0}.qa-grade-section>summary strong{font-size:11px}.qa-grade-section>summary small{font-size:9px;color:#64748b;font-weight:700;white-space:nowrap}.qa-grade-section[open]>summary{background:#f0fdfa;border-bottom:1px solid #ccfbf1}
.qa-grade-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 13px;background:#f8fafc;border-bottom:1px solid #e2e8f0}
.qa-grade-title{display:flex;align-items:center;gap:8px;font-weight:850;color:#0f172a;font-size:12px}
.qa-grade-meta{font-size:10px;color:#64748b}
.qa-grade-badge{display:inline-flex;align-items:center;justify-content:center;min-width:27px;height:27px;border-radius:8px;background:#0f172a;color:#fff;font-size:11px;font-weight:900}
.grade-E{background:#64748b}.grade-D{background:#3b82f6}.grade-C{background:#0f766e}.grade-B{background:#d97706}.grade-A{background:#7c3aed}
.qa-table-wrap{width:100%;overflow:auto;border:1px solid #dbe4ee;border-radius:12px;background:#fff}
.qa-item-table{width:100%;min-width:1450px;border-collapse:separate;border-spacing:0;font-size:10px}
.qa-item-table th{position:sticky;top:0;z-index:2;background:#17233f;color:#fff;padding:9px 8px;text-align:left;font-size:9px;letter-spacing:.02em;white-space:nowrap}
.qa-item-table td{padding:7px 8px;border-bottom:1px solid #eef2f7;vertical-align:top;color:#334155;background:#fff}
.qa-item-table tbody tr:hover td{background:#f8fafc}
.qa-item-no{font-weight:850;color:#0f766e;text-align:center}
.qa-stage{display:flex;flex-direction:column;gap:3px;min-width:210px}
.qa-stage b{color:#0f172a;font-size:10px}
.qa-stage span{color:#334155;line-height:1.4}
.qa-stage small{color:#64748b;line-height:1.4}
.qa-suggested{min-width:240px;line-height:1.45;color:#334155;white-space:pre-wrap}
.qa-item-table select,.qa-item-table input[type="text"],.qa-item-table textarea{font:inherit;font-size:10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#0f172a;box-sizing:border-box}
.qa-item-table select{min-width:92px;height:32px;padding:4px 6px}
.qa-item-table input[type="text"]{min-width:175px;height:32px;padding:5px 7px}
.qa-item-table textarea{min-width:190px;height:40px;padding:6px 7px;resize:vertical}
.qa-item-table select:focus,.qa-item-table input[type="text"]:focus,.qa-item-table textarea:focus{outline:none;border-color:#14b8a6;box-shadow:0 0 0 3px rgba(20,184,166,.10)}
.qa-file-stack{display:flex;flex-direction:column;gap:4px;min-width:170px;max-width:260px}
.qa-file-stack a,.qa-file-stack span{display:block;max-width:260px;padding:5px 7px;border-radius:7px;background:#eff6ff;color:#1d4ed8;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px}
.qa-file-stack a:hover{text-decoration:underline;background:#dbeafe}
.qa-file-stack span{color:#64748b;background:#f1f5f9}
.qa-file-count{display:block;margin-top:4px;color:#0f766e;font-weight:800;font-size:9px}
.qa-no-file{display:block;min-width:175px;color:#94a3b8;font-style:italic;line-height:1.4}
.qa-score{min-width:55px;text-align:center;font-size:13px;color:#0f766e}
.qa-conclusion{min-width:125px}
.qa-conclusion-badge{display:inline-flex;padding:5px 7px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:9px;font-weight:850}
.qa-summary-table-wrap{max-height:none;overflow:auto}
.qa-summary-table-wrap table{width:100%;min-width:1320px;border-collapse:separate;border-spacing:0;font-size:10px}
.qa-summary-table-wrap th{position:sticky;top:0;z-index:2;background:#17233f;color:#fff;padding:8px 7px;font-size:8.5px;white-space:nowrap}
.qa-summary-table-wrap td{padding:7px;border-bottom:1px solid #eef2f7;color:#334155;text-align:center;background:#fff}
.qa-summary-table-wrap td.qa-left,.qa-summary-table-wrap th.qa-left{text-align:left}
.qa-summary-table-wrap tbody tr:hover td{background:#f8fafc}
.qa-summary-table-wrap tfoot th,.qa-total-row th{background:#eef2ff;color:#1e293b;padding:8px 7px;font-weight:900}
.qa-unsur-row td{background:#f0fdfa;font-weight:700;border-top:1px solid #99f6e4}
.qa-total-row td,.qa-total-row th{background:#e0f2fe !important;font-weight:900}
.qa-category{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:900;background:#f1f5f9;color:#475569}
.qa-category.tinggi{background:#dcfce7;color:#166534}.qa-category.cukup{background:#fef3c7;color:#92400e}.qa-category.kurang{background:#ffedd5;color:#9a3412}.qa-category.rendah{background:#fee2e2;color:#991b1b}.qa-category.belum-dinilai{background:#f1f5f9;color:#64748b}
.qa-instruction-table-wrap{overflow:auto;border:1px solid #dbe4ee;border-radius:12px;background:#fff}
.qa-apip-footer{flex:0 0 auto;margin:0;padding:10px 18px;border-top:1px solid #e2e8f0;background:#fff}.qa-apip-footer button{padding:8px 15px;border:1px solid #cbd5e1;background:#fff;color:#475569;border-radius:9px;font-size:11px;font-weight:800;cursor:pointer}.qa-apip-footer button:hover{background:#f8fafc}
.qa-instruction-table{width:100%;border-collapse:collapse;min-width:780px;font-size:11px}
.qa-instruction-table th{background:#17233f;color:#fff;padding:9px;text-align:left;font-size:9px;white-space:nowrap}
.qa-instruction-table td{padding:9px;border-bottom:1px solid #eef2f7;color:#334155;vertical-align:top;line-height:1.5}
.qa-instruction-table td:first-child{width:55px;color:#0f766e;text-align:center}
.qa-formula-box{margin-top:11px;padding:11px 13px;border-radius:11px;border:1px solid #bae6fd;background:#f0f9ff;color:#334155;font-size:10px;line-height:1.6}

@media (max-width: 1200px){
  #qaApipSummary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qa-nav-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 768px){
  .qa-apip-overlay{padding:8px}
  .qa-apip-modal{width:99vw;height:96vh;max-height:96vh;border-radius:16px}
  #qaApipSummary{grid-template-columns:1fr 1fr;padding:9px}
  #qaApipTabs{padding:8px 9px}
  #qaApipContent{padding:10px 9px}
  .qa-sheet-head{flex-direction:column}
  .qa-threshold-box,.qa-param-score-box{width:100%;text-align:left}
  .qa-nav-grid,.qa-parameter-list{grid-template-columns:1fr}
}

/* ===== KK PM SPIP — workbook-shaped KK3.1–KK3.4 ===== */
.kk-pm-modal{width:min(1800px,99vw);height:min(96vh,1100px);max-height:96vh;border-radius:18px;background:#f4f7fb}
.kk-pm-modal-header{padding:18px 22px 15px}
.kk-pm-modal-header h3{font-size:20px;margin-top:2px}
#kkPmSummary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:10px 14px;background:#f8fafc;border-bottom:1px solid #e2e8f0}
.kk-pm-summary-card{min-height:66px;padding:9px 11px;border:1px solid #dbe4ee;border-radius:12px;background:#fff;display:flex;flex-direction:column;justify-content:center;gap:2px}
.kk-pm-summary-card span{font-size:8.5px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#64748b}
.kk-pm-summary-card strong{font-size:18px;line-height:1.12;color:#0f172a}
.kk-pm-summary-card small{font-size:9.5px;color:#64748b;line-height:1.35}
.kk-pm-summary-result{background:linear-gradient(135deg,#eff6ff,#ffffff);border-color:#93c5fd}
.kk-pm-summary-result strong{color:#1d4ed8}
#kkPmContent{padding:14px 16px 18px}
.kk-pm-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px;padding:13px 15px;border:1px solid #dbe4ee;border-radius:14px;background:#fff}
.kk-pm-sheet-head h4{margin:3px 0 4px;font-size:16px;color:#0f172a}
.kk-pm-sheet-head p{margin:0;color:#64748b;font-size:11px;line-height:1.55;max-width:1200px}
.kk-pm-kicker{font-size:8.5px;font-weight:950;letter-spacing:.1em;text-transform:uppercase;color:#1d4ed8}
.kk-pm-target-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.kk-pm-target-card{appearance:none;text-align:left;border:1px solid #dbe4ee;border-radius:14px;background:#fff;padding:12px;cursor:pointer;box-shadow:0 3px 12px rgba(15,23,42,.04);transition:.15s}
.kk-pm-target-card:hover{transform:translateY(-1px);border-color:#93c5fd}
.kk-pm-target-card>span{display:block;font-size:9px;font-weight:900;color:#64748b;letter-spacing:.04em}
.kk-pm-target-card>b{display:block;font-size:24px;color:#0f172a;margin:3px 0 0}
.kk-pm-target-card>small{display:block;color:#64748b;font-size:10px;line-height:1.4}
.kk-pm-progress{height:5px;border-radius:99px;background:#e2e8f0;overflow:hidden;margin-top:8px}
.kk-pm-progress i{display:block;height:100%;background:#2563eb;border-radius:99px}
.kk-pm-meta-card{margin:0 0 11px;padding:12px;border:1px solid #dbe4ee;border-radius:13px;background:#fff}
.kk-pm-meta-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:#0f172a;font-size:11px}
.kk-pm-meta-title span{font-size:9px;color:#64748b;font-weight:600}
.kk-pm-meta-grid{display:grid;grid-template-columns:2fr 1.4fr 1fr 1.4fr 1fr 1.4fr 1fr;gap:8px}
.kk-pm-meta-grid label{display:flex;flex-direction:column;gap:4px;font-size:9px;font-weight:800;color:#475569}
.kk-pm-meta-grid input{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;padding:7px 8px;font:inherit;font-size:10px;color:#0f172a;background:#fff}
.kk-pm-reconcile{margin:0 0 12px;padding:12px;border:1px solid #dbe4ee;border-radius:13px;background:#fff}
.kk-pm-reconcile-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:11px}.kk-pm-reconcile-head span{font-size:9px;color:#64748b}
.kk-pm-reconcile-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.kk-pm-filter-bar{display:flex;gap:7px;align-items:center;position:sticky;top:0;z-index:8;padding:8px;background:rgba(244,247,251,.96);border:1px solid #dbe4ee;border-radius:11px;margin-bottom:9px;backdrop-filter:blur(6px)}
.kk-pm-filter-bar input,.kk-pm-filter-bar select{border:1px solid #cbd5e1;background:#fff;border-radius:8px;padding:7px 8px;font:inherit;font-size:10px;color:#0f172a}.kk-pm-filter-bar input{flex:1;min-width:240px}.kk-pm-filter-bar>span{font-size:9px;color:#64748b;font-weight:700;white-space:nowrap}
.kk-pm-subsections{display:flex;flex-direction:column;gap:8px}
.kk-pm-subsection{border:1px solid #dbe4ee;border-radius:13px;background:#fff;overflow:hidden}
.kk-pm-subsection>summary{display:grid;grid-template-columns:72px 1fr auto;align-items:center;gap:9px;padding:9px 12px;cursor:pointer;background:#f8fafc;list-style:none}.kk-pm-subsection>summary::-webkit-details-marker{display:none}
.kk-pm-subsection[open]>summary{background:#eef6ff;border-bottom:1px solid #dbeafe}
.kk-pm-sub-code{font-size:10px;font-weight:950;color:#1d4ed8}.kk-pm-subsection>summary b{font-size:11px;color:#0f172a}.kk-pm-subsection>summary small{font-size:9px;color:#64748b}
.kk-pm-param-card{margin:7px;border:1px solid #e2e8f0;border-radius:11px;background:#fff;overflow:hidden}
.kk-pm-param-card>summary{display:grid;grid-template-columns:95px 1fr auto;align-items:center;gap:8px;padding:9px 10px;background:#fff;cursor:pointer;list-style:none}.kk-pm-param-card>summary::-webkit-details-marker{display:none}.kk-pm-param-card[open]>summary{background:#fbfdff;border-bottom:1px solid #e2e8f0}
.kk-pm-param-no{font-size:10px;font-weight:950;color:#1d4ed8;white-space:nowrap}.kk-pm-param-desc{font-size:10.5px;font-weight:750;color:#1f2937;line-height:1.35}.kk-pm-param-meta{font-size:9px;color:#64748b;font-weight:750;white-space:nowrap}
.kk-pm-param-body{padding:10px}
.kk-pm-workbook-line{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.kk-pm-workbook-line span{padding:5px 7px;border:1px solid #e2e8f0;border-radius:7px;background:#f8fafc;font-size:9px;color:#475569}.kk-pm-workbook-line b{color:#0f172a}
.kk-pm-param-title{padding:8px 10px;border-left:3px solid #2563eb;background:#f8fbff;border-radius:8px;margin-bottom:9px}.kk-pm-param-title b{font-size:9px;color:#475569;text-transform:uppercase}.kk-pm-param-title p{margin:3px 0 0;font-size:10.5px;line-height:1.5;color:#0f172a}
.kk-pm-grade-table-wrap{overflow:auto;border:1px solid #dbe4ee;border-radius:9px;margin-bottom:10px}.kk-pm-grade-table{width:100%;min-width:1200px;border-collapse:separate;border-spacing:0;font-size:9px}.kk-pm-grade-table th{position:sticky;top:0;z-index:2;padding:7px;background:#17233f;color:#fff;text-align:left;font-size:8.5px}.kk-pm-grade-table td{padding:7px;border-bottom:1px solid #eef2f7;vertical-align:top;line-height:1.42;background:#fff;color:#334155}.kk-pm-grade-table tr.is-selected td{background:#eef6ff}.kk-pm-grade-table td:first-child{width:105px}.kk-pm-grade-table td ul{padding-left:15px;margin:0}.kk-pm-grade-table td li{margin:2px 0}
.kk-pm-grade-pill{display:inline-flex;min-width:24px;justify-content:center;padding:4px 5px;border-radius:7px;font-weight:950;color:#fff;margin-right:5px}.grade-A{background:#15803d}.grade-B{background:#2563eb}.grade-C{background:#d97706}.grade-D{background:#ea580c}.grade-E{background:#b91c1c}.kk-pm-grade-table td:first-child b{font-size:9px;color:#0f172a}.kk-pm-grade-table td:first-child small{display:block;margin-top:4px;color:#64748b;line-height:1.25}.kk-pm-test-badge{display:inline-flex;border:1px solid #cbd5e1;border-radius:999px;padding:3px 6px;font-weight:900;font-size:8px;color:#475569;background:#f8fafc}
.kk-pm-input-grid{display:grid;grid-template-columns:1.8fr 1fr 1fr;gap:8px;margin-bottom:9px}.kk-pm-input-grid label{display:flex;flex-direction:column;gap:4px;font-size:9px;color:#475569}.kk-pm-input-grid input,.kk-pm-input-grid select,.kk-pm-input-grid textarea{box-sizing:border-box;width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:7px 8px;background:#fff;color:#0f172a;font:inherit;font-size:10px;resize:vertical}.kk-pm-input-grid textarea{min-height:52px}.kk-pm-input-grid .kk-pm-span-2{grid-column:span 2}
.kk-pm-linked-panel{border:1px solid #bfdbfe;background:#f8fbff;border-radius:10px;padding:9px;margin-top:2px}.kk-pm-linked-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:#0f172a;margin-bottom:7px}.kk-pm-linked-head span{font-size:9px;padding:3px 6px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-weight:900}.kk-pm-evidence-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.kk-pm-evidence-item{display:flex;gap:6px;align-items:flex-start;padding:6px 7px;border:1px solid #dbeafe;border-radius:7px;background:#fff;font-size:9px;line-height:1.35}.kk-pm-evidence-item.active{border-color:#60a5fa;box-shadow:0 0 0 1px #bfdbfe inset}.kk-pm-evidence-item a{color:#1d4ed8;font-weight:800;text-decoration:none}.kk-pm-evidence-grade{flex:0 0 auto;min-width:18px;text-align:center;padding:2px 4px;border-radius:5px;background:#eff6ff;color:#1d4ed8;font-weight:950}.kk-pm-evidence-empty{padding:8px;border-radius:7px;background:#fff;color:#64748b;font-size:9.5px}.kk-pm-linked-note{margin-top:6px;color:#64748b;font-size:8.5px;line-height:1.45}
.kk-pm-auto-conclusion{display:flex;justify-content:space-between;gap:10px;margin-top:8px;padding:8px 10px;border-radius:8px;background:#f1f5f9}.kk-pm-auto-conclusion span{font-size:9px;font-weight:900;text-transform:uppercase;color:#64748b}.kk-pm-auto-conclusion strong{font-size:10px;color:#0f172a}
.kk-pm-instruction{margin-top:10px;padding:10px 12px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;font-size:9.5px;line-height:1.55;color:#334155}
@media (max-width:1200px){#kkPmSummary{grid-template-columns:repeat(3,minmax(0,1fr))}.kk-pm-meta-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.kk-pm-reconcile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.kk-pm-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kk-pm-param-card>summary{grid-template-columns:85px 1fr}}
@media (max-width:768px){#kkPmSummary{grid-template-columns:1fr 1fr}.kk-pm-toolbar{flex-direction:column;align-items:stretch}.kk-pm-tabs{width:100%}.kk-pm-actions{width:100%}.kk-pm-action{width:100%}.kk-pm-meta-grid,.kk-pm-reconcile-grid,.kk-pm-target-grid{grid-template-columns:1fr}.kk-pm-filter-bar{position:static;flex-wrap:wrap}.kk-pm-filter-bar input{min-width:100%}.kk-pm-input-grid{grid-template-columns:1fr}.kk-pm-input-grid .kk-pm-span-2{grid-column:span 1}.kk-pm-evidence-list{grid-template-columns:1fr}.kk-pm-param-card>summary{grid-template-columns:1fr}.kk-pm-param-meta{white-space:normal}.kk-pm-subsection>summary{grid-template-columns:60px 1fr}}

/* ===== Workbook-aligned QA APIP (CHECKLIST PK) ===== */
.qa-workbook-note{margin:14px 0;padding:14px 16px;border:1px solid #dbe5f0;border-radius:14px;background:#f8fafc;color:#334155;line-height:1.6}
.qa-checklist-table-wrap{overflow:auto;border:1px solid #dbe3ec;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.qa-workbook-checklist{width:100%;min-width:1380px;border-collapse:separate;border-spacing:0;font-size:13px}
.qa-workbook-checklist th,.qa-workbook-checklist td{padding:10px 11px;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;vertical-align:top}
.qa-workbook-checklist thead th{position:sticky;top:0;z-index:2;background:#f1f5f9;color:#0f172a;font-weight:700;text-align:center}
.qa-workbook-checklist tbody tr:hover td{background:#fbfdff}
.qa-workbook-checklist .qa-phase-row th{background:#e2e8f0;color:#0f172a;text-align:left;position:sticky;left:0;z-index:1}
.qa-workbook-checklist .qa-left{text-align:left}
.qa-workbook-checklist td:nth-child(1){width:50px;text-align:center;font-weight:700}
.qa-workbook-checklist td:nth-child(4){width:150px;text-align:center}
.qa-workbook-checklist td:nth-child(8){width:135px;text-align:center}
.qa-workbook-checklist select,.qa-workbook-checklist input,.qa-workbook-checklist textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;padding:8px 9px;background:#fff;color:#0f172a}
.qa-workbook-checklist textarea{min-height:70px;resize:vertical}
.qa-workbook-checklist select:focus,.qa-workbook-checklist input:focus,.qa-workbook-checklist textarea:focus{outline:2px solid rgba(59,130,246,.18);border-color:#60a5fa}
.qa-check-status{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;border-radius:999px;background:#eef2f7;color:#64748b;font-weight:700;white-space:nowrap}
.qa-check-status.pass{background:#dcfce7;color:#166534}.qa-check-status.fail{background:#fee2e2;color:#991b1b}
/* ===== Workbook Evidence 3.1–3.4 merged UI ===== */
.computed-value-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:74px;padding:7px 9px;border:1px solid #dbe4ee;border-radius:9px;background:#f8fafc;font-weight:800;color:#0f172a;line-height:1.1;box-sizing:border-box}.computed-value-cell small{margin-top:4px;font-size:9px;letter-spacing:.04em;text-transform:uppercase;color:#64748b;font-weight:700}.wb-root-head,.wb-nav-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:16px;margin-bottom:14px;border:1px solid var(--border,#e2e8f0);border-radius:14px;background:linear-gradient(180deg,#fff,#f8fafc)}.wb-root-stat,.wb-group-stat{min-width:96px;text-align:center;padding:12px;border-radius:12px;background:#f1f5f9}.wb-root-stat b,.wb-group-stat b{display:block;font-size:24px;color:#0f766e}.wb-root-stat span{font-size:11px;color:#64748b}.wb-root-stat small,.wb-group-stat small{font-size:10px;color:#475569}.wb-root-head h4,.wb-nav-head h4{margin:3px 0 5px;font-size:18px}.wb-root-head p,.wb-nav-head p{margin:0;color:#64748b;line-height:1.45;font-size:13px}.wb-nav-head>button{border:1px solid #dbe4ee;background:#fff;border-radius:9px;padding:8px 10px;cursor:pointer;color:#334155;font-weight:700;white-space:nowrap}.wb-unsur-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.wb-unsur-card,.wb-sub-card,.wb-param-card{width:100%;text-align:left;border:1px solid #dbe4ee;background:#fff;border-radius:14px;padding:15px;cursor:pointer;display:flex;flex-direction:column;gap:7px;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.wb-unsur-card:hover,.wb-sub-card:hover,.wb-param-card:hover{transform:translateY(-1px);border-color:#94a3b8;box-shadow:0 8px 22px rgba(15,23,42,.07)}.wb-unsur-card span{font-size:25px}.wb-unsur-card b,.wb-sub-card>b{font-size:11px;letter-spacing:.05em;color:#64748b}.wb-unsur-card strong,.wb-sub-card strong,.wb-param-card strong{font-size:14px;color:#0f172a}.wb-unsur-card small,.wb-sub-card span,.wb-param-card small{font-size:11px;color:#64748b;line-height:1.4}.wb-sub-grid,.wb-param-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.wb-param-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;column-gap:10px}.wb-param-card>span{font-weight:800;color:#0f766e;font-size:12px}.wb-param-card>small{grid-column:2/-1}.wb-variant{margin:10px 0;border:1px solid #dbe4ee;border-radius:13px;background:#fff;overflow:hidden}.wb-variant>summary{list-style:none;display:flex;justify-content:space-between;gap:10px;align-items:center;padding:13px 15px;cursor:pointer;background:#f8fafc}.wb-variant>summary::-webkit-details-marker{display:none}.wb-variant>summary strong{display:block;font-size:14px}.wb-variant>summary small{display:block;color:#64748b;margin-top:3px}.wb-variant>summary>span{font-size:10px;color:#64748b;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.wb-variant-body{padding:12px 15px}.wb-param-ident{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}.wb-param-ident span{padding:6px 8px;border-radius:8px;background:#f1f5f9;font-size:10px;color:#475569}.wb-grade-card{border:1px solid #e2e8f0;border-radius:12px;margin:9px 0;overflow:hidden;background:#fff}.wb-grade-head{display:flex;align-items:center;gap:9px;padding:9px 11px;background:#f8fafc;border-bottom:1px solid #e2e8f0;flex-wrap:wrap}.wb-grade-head>span:nth-last-of-type(1){font-size:11px;color:#475569}.wb-grade-head em{margin-left:auto;font-style:normal;font-size:10px;color:#0f766e;font-weight:700}.wb-grade-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:11px}.wb-grade-grid>div{border:1px solid #eef2f7;border-radius:10px;padding:9px;background:#fff}.wb-grade-grid b{font-size:11px;color:#334155}.wb-grade-grid p,.wb-grade-grid ul{margin:6px 0 0;font-size:11px;color:#475569;line-height:1.45;white-space:pre-wrap}.wb-grade-grid ul{padding-left:17px}.wb-upload-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:0 11px 10px}.wb-upload-row input[type=file]{max-width:100%}.wb-upload-row span{font-size:10px;color:#64748b}.wb-upload-status{padding:0 11px 8px;font-size:11px;color:#475569}.wb-upload-status.success{color:#166534}.wb-upload-status.error{color:#b91c1c}.wb-files-list{display:flex;flex-direction:column;gap:7px;padding:0 11px 11px}.wb-evidence-file{border:1px solid #e2e8f0;border-radius:10px;padding:11px;background:#f8fafc;transition:border-color .15s,background .15s}
.wb-evidence-file.is-diterima{border-color:#86efac;background:#f0fdf4}
.wb-evidence-file.is-diterima_catatan{border-color:#fcd34d;background:#fffbeb}
.wb-evidence-file.is-dikembalikan{border-color:#fca5a5;background:#fff7f7}
.wb-evidence-file.is-pending{border-color:#cbd5e1;background:#f8fafc}
.wb-evidence-file-main{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;flex-wrap:wrap}
.wb-evidence-file-name{font-size:12px;font-weight:800;word-break:break-word;min-width:150px;flex:1}
.wb-evidence-file-name a{color:#0f766e;text-decoration:none}.wb-evidence-file-name a:hover{text-decoration:underline}
.wb-evidence-file-badges{display:flex;gap:5px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.wb-sync-pill,.wb-verification-pill,.wb-score-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border:1px solid transparent;border-radius:999px;font-size:10px;font-weight:800;line-height:1.2;white-space:nowrap}
.wb-sync-pill.is-synced{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.wb-sync-pill.is-retry{background:#fff7ed;color:#c2410c;border-color:#fed7aa}.wb-sync-pill.is-pending{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.wb-verification-pill{background:#e2e8f0;color:#334155;border-color:#cbd5e1}.wb-evidence-file.is-diterima .wb-verification-pill{background:#dcfce7;color:#166534;border-color:#86efac}.wb-evidence-file.is-diterima_catatan .wb-verification-pill{background:#fef3c7;color:#92400e;border-color:#fcd34d}.wb-evidence-file.is-dikembalikan .wb-verification-pill{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}
.wb-score-badge{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.wb-evidence-file.is-diterima .wb-score-badge{background:#dcfce7;color:#166534;border-color:#86efac}.wb-evidence-file.is-diterima_catatan .wb-score-badge{background:#fef3c7;color:#92400e;border-color:#fcd34d}.wb-evidence-file.is-dikembalikan .wb-score-badge{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}
.wb-verification-meter{height:5px;margin:9px 0 6px;background:#e2e8f0;border-radius:999px;overflow:hidden}.wb-verification-meter span{display:block;height:100%;border-radius:inherit;background:#3b82f6;transition:width .2s ease}.wb-evidence-file.is-diterima .wb-verification-meter span{background:#16a34a}.wb-evidence-file.is-diterima_catatan .wb-verification-meter span{background:#d97706}.wb-evidence-file.is-dikembalikan .wb-verification-meter span{background:#dc2626}
.wb-evidence-file-actions{display:flex;gap:7px;margin-top:8px;flex-wrap:wrap}.wb-evidence-file-actions button,.wb-verification-grid button{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:8px;padding:7px 10px;font-size:11px;font-weight:800;line-height:1.25;cursor:pointer;min-height:31px}.wb-evidence-file-actions button:hover{filter:brightness(.97)}.wb-evidence-file-actions .wb-action-retry{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.wb-evidence-file-actions .wb-action-delete{background:#fff1f2;border-color:#fecdd3;color:#be123c}.wb-verification{margin-top:9px;border-top:1px solid #e2e8f0;padding-top:7px}.wb-verification summary{font-size:11px;color:#334155;cursor:pointer;font-weight:800}.wb-verification-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;margin-top:9px}.wb-verification-grid label{display:flex;flex-direction:column;gap:5px;color:#475569;font-size:11px;font-weight:800}.wb-verification-grid input,.wb-verification-grid select,.wb-verification-grid textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a;padding:8px 9px;font:inherit;font-size:12px;outline:none}.wb-verification-grid input:focus,.wb-verification-grid select:focus,.wb-verification-grid textarea:focus{border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.1)}.wb-verification-grid select.is-diterima{background:#f0fdf4;border-color:#86efac;color:#166534}.wb-verification-grid select.is-diterima_catatan{background:#fffbeb;border-color:#fcd34d;color:#92400e}.wb-verification-grid select.is-dikembalikan{background:#fff7f7;border-color:#fca5a5;color:#b91c1c}.wb-verification-grid select.is-pending{background:#f8fafc;color:#475569}.wb-verification-grid textarea{min-height:65px;resize:vertical}.wb-verification-grid .wb-verification-note-label{grid-column:1/-1}.wb-verification-grid .wb-action-save{justify-self:start;background:#0f766e;color:#fff;border-color:#0f766e}.wb-verification-grid .wb-action-save:hover{background:#0b615d}.muted{font-size:11px;color:#64748b}
@media (max-width:760px){.wb-grade-grid{grid-template-columns:1fr}.wb-root-head,.wb-nav-head{flex-direction:column}.wb-verification-grid{grid-template-columns:1fr}.wb-verification-grid .wb-verification-note-label{grid-column:auto}.wb-grade-head em{margin-left:0;width:100%}.wb-evidence-file-badges{justify-content:flex-start}.wb-evidence-file-main{display:block}.wb-evidence-file-badges{margin-top:7px}}

.kk-pm-workbook-overview-actions,.kk-pm-preview-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.kk-pm-action-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 11px;border:1px solid #93c5fd;border-radius:9px;background:#eff6ff;color:#1d4ed8;font-size:10px;font-weight:900;text-decoration:none;white-space:nowrap}.kk-pm-disabled-link{padding:8px 11px;border-radius:9px;background:#f1f5f9;color:#94a3b8;font-size:10px;font-weight:800}.kk-pm-workbook-alert{margin:0 0 10px;padding:9px 11px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:10px;color:#334155;font-size:9.5px;line-height:1.5}.kk-pm-workbook-layout{display:grid;grid-template-columns:minmax(350px,1.08fr) minmax(420px,1.4fr);gap:11px;min-height:0}.kk-pm-workbook-sheet-list{display:flex;flex-direction:column;gap:8px;max-height:calc(95vh - 310px);overflow:auto;padding-right:3px}.kk-pm-sheet-group{display:flex;flex-direction:column;gap:6px}.kk-pm-sheet-group-title{position:sticky;top:0;z-index:2;padding:5px 8px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;font-size:9px;font-weight:950;color:#475569;text-transform:uppercase;letter-spacing:.06em}.kk-pm-workbook-sheet-card{display:grid;grid-template-columns:30px 1fr 18px;align-items:center;gap:8px;text-align:left;border:1px solid #dbe4ee;border-radius:10px;background:#fff;padding:8px 9px;cursor:pointer}.kk-pm-workbook-sheet-card:hover{border-color:#93c5fd;box-shadow:0 5px 14px rgba(29,78,216,.08)}.kk-pm-workbook-sheet-card.active{border-color:#60a5fa;background:#eff6ff;box-shadow:0 0 0 1px #bfdbfe inset}.kk-pm-sheet-order{width:26px;height:26px;border-radius:7px;display:flex;align-items:center;justify-content:center;background:#eef2ff;color:#1d4ed8;font-size:10px;font-weight:950}.kk-pm-workbook-sheet-card b{display:block;color:#0f172a;font-size:10px}.kk-pm-workbook-sheet-card strong{display:block;color:#334155;font-size:9.5px;line-height:1.35;margin-top:2px}.kk-pm-workbook-sheet-card small{display:block;color:#64748b;font-size:8px;margin-top:3px}.kk-pm-sheet-arrow{font-size:16px;color:#94a3b8}.kk-pm-workbook-sheet-card.active .kk-pm-sheet-arrow{color:#1d4ed8}.kk-pm-workbook-detail{min-width:0}.kk-pm-workbook-preview{border:1px solid #dbe4ee;border-radius:12px;background:#fff;overflow:hidden}.kk-pm-workbook-preview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#fff,#f8fafc)}.kk-pm-workbook-preview-head h4{margin:3px 0;font-size:15px;color:#0f172a}.kk-pm-workbook-preview-head p{margin:0;color:#64748b;font-size:10px;line-height:1.45}.kk-pm-preview-meta{display:flex;gap:7px;flex-wrap:wrap;padding:9px 12px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.kk-pm-preview-meta span{padding:5px 7px;border:1px solid #dbe4ee;border-radius:7px;background:#fff;color:#64748b;font-size:8.5px}.kk-pm-preview-meta b{color:#0f172a}.kk-pm-sample-rows{max-height:420px;overflow:auto}.kk-pm-sample-row{display:grid;grid-template-columns:62px 1fr;gap:8px;padding:8px 11px;border-bottom:1px solid #eef2f7}.kk-pm-sample-row>b{font-size:8.5px;color:#1d4ed8}.kk-pm-sample-row>div{display:flex;flex-direction:column;gap:4px}.kk-pm-sample-row span{font-size:8.5px;line-height:1.4;color:#334155}.kk-pm-sample-row em{font-style:normal;font-weight:900;color:#64748b;margin-right:5px}.kk-pm-workbook-note{margin:10px 12px;padding:9px 10px;border:1px dashed #93c5fd;border-radius:9px;background:#f8fbff;color:#64748b;font-size:8.8px;line-height:1.5}.kk-pm-workbook-empty{min-height:320px;display:flex;align-items:center;justify-content:center;border:1px dashed #cbd5e1;border-radius:12px;background:#fff;color:#94a3b8;font-size:11px;text-align:center;padding:30px}.kk-pm-kicker{margin-bottom:2px}
@media(max-width:1000px){.kk-pm-workbook-layout{grid-template-columns:1fr}.kk-pm-workbook-sheet-list{max-height:360px}.kk-pm-workbook-preview-head{flex-direction:column}.kk-pm-workbook-overview-actions{width:100%}.kk-pm-action-link{flex:1}}

/* Dashboard: show the source breakdown for the global document-verification count. */
#kpiVerifikasiDokumenNote{line-height:1.4;overflow-wrap:anywhere;font-size:11px}


/* ===== QA APIP — exact workbook form, connected evidence, paginated rendering ===== */
.qa-apip-filter-bar{display:grid;grid-template-columns:minmax(200px,1.7fr) minmax(190px,1.2fr) minmax(120px,.7fr) minmax(160px,.9fr) minmax(110px,.65fr);gap:10px;align-items:end;padding:11px 12px;margin:0 0 10px;border:1px solid #dbe4ee;border-radius:12px;background:#fff}
.qa-apip-filter-bar label,.qa-input-label{display:flex;flex-direction:column;gap:4px;min-width:0;color:#64748b;font-size:9px;font-weight:800}
.qa-apip-filter-bar input,.qa-apip-filter-bar select{width:100%;min-width:0;height:35px;padding:6px 9px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a;font-size:11px;box-sizing:border-box}
.qa-apip-filter-count{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:90px;padding:5px 8px;color:#64748b;font-size:9px;text-align:center}.qa-apip-filter-count small{display:block;max-width:190px;margin-top:4px;color:#64748b;font-size:8px;font-weight:600;line-height:1.35}
.qa-apip-filter-count b{font-size:18px;color:#0f766e}
.qa-apip-item-table-wrap{max-height:calc(96vh - 400px);min-height:260px;overflow:auto}
.qa-apip-template-table{min-width:1850px;font-size:10px}
.qa-apip-template-table th{position:sticky;top:0;z-index:5;font-size:9px;white-space:normal;min-width:85px;max-width:240px;line-height:1.35}
.qa-apip-template-table th:nth-child(1){min-width:220px;max-width:250px}
.qa-apip-template-table th:nth-child(2){min-width:240px;max-width:290px}
.qa-apip-template-table th:nth-child(4){min-width:220px}
.qa-apip-template-table td{min-width:95px;max-width:300px}
.qa-apip-template-table td:nth-child(1),.qa-apip-template-table td:nth-child(2){min-width:230px;max-width:290px}
.qa-apip-template-table td:nth-child(5){min-width:220px;max-width:280px}
.qa-apip-template-table .qa-input-label{font-size:9px;min-width:112px}
.qa-apip-template-table .qa-input-label input,.qa-apip-template-table .qa-input-label textarea{width:100%;min-width:150px;box-sizing:border-box;line-height:1.4}
.qa-apip-template-table .qa-input-label textarea{min-width:175px;min-height:48px}
.qa-apip-template-table .qa-input-label select{min-width:110px;width:100%;height:33px;padding:5px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#0f172a;font-size:10px}
.qa-apip-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 2px;color:#64748b;font-size:10px}
.qa-apip-pagination>div{display:flex;gap:7px}
.qa-apip-page-btn{padding:8px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;font-size:10px;font-weight:800;cursor:pointer}
.qa-apip-page-btn:hover:not(:disabled){background:#f0fdfa;border-color:#5eead4;color:#0f766e}
.qa-apip-page-btn:disabled{opacity:.45;cursor:not-allowed}
.qa-empty-filter{text-align:center!important;padding:35px!important;color:#64748b!important}
.qa-item-row .qa-stage{min-width:205px;max-width:280px;white-space:normal;overflow-wrap:anywhere}
.qa-item-row .qa-stage small{font-size:9px;white-space:normal;overflow-wrap:anywhere}
.qa-item-row .qa-file-stack{min-width:220px;max-width:320px}
.qa-item-row .qa-file-stack a,.qa-item-row .qa-file-stack span{white-space:normal;overflow-wrap:anywhere;max-width:310px;line-height:1.35}
.qa-file-stack-targets{gap:7px}
.qa-target-file-group{border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;background:#fff}
.qa-target-file-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 7px;background:#f1f5f9;border-bottom:1px solid #e2e8f0;color:#334155;font-size:9px}
.qa-target-file-head b{font-size:9px;color:#0f172a}
.qa-target-file-head span{padding:2px 5px;background:#fff;border:1px solid #cbd5e1;border-radius:999px;color:#64748b;font-size:8px;white-space:nowrap}
.qa-target-file-row{display:flex;align-items:flex-start;gap:5px;padding:5px 6px;border-bottom:1px solid #f1f5f9}
.qa-target-file-row:last-child{border-bottom:0}
.qa-target-file-row a,.qa-target-file-row .qa-file-name{flex:1;min-width:0;display:block;padding:0;border-radius:0;background:transparent;color:#1d4ed8;font-size:9px;text-decoration:none;overflow-wrap:anywhere;white-space:normal}
.qa-file-stack .qa-drive-pill{display:inline-flex;flex:0 0 auto;max-width:none;padding:3px 5px;white-space:nowrap}
.qa-target-file-row a:hover{text-decoration:underline;background:transparent}
.qa-drive-pill{flex:0 0 auto;display:inline-flex;align-items:center;padding:3px 5px;border:1px solid transparent;border-radius:999px;font-size:7.5px;font-weight:850;line-height:1.2;white-space:nowrap}
.qa-drive-pill.is-synced{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.qa-drive-pill.is-retry{background:#fff7ed;color:#c2410c;border-color:#fed7aa}
.qa-drive-pill.is-pending{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.qa-file-more{padding:4px 7px;border-top:1px solid #e2e8f0;background:#f8fafc;color:#475569;font-size:8.5px}
.qa-file-more summary{cursor:pointer;font-weight:800}
.qa-file-empty{min-width:220px;max-width:320px;padding:8px;border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc}
.qa-file-empty .qa-file-count{overflow-wrap:anywhere}
.qa-item-row .qa-score{font-weight:900;white-space:nowrap}
.qa-item-row .qa-conclusion{min-width:135px}
@media(max-width:1200px){.qa-apip-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.qa-apip-filter-count{align-items:flex-start;text-align:left}.qa-apip-filter-count small{max-width:none}}@media(max-width:1000px){.qa-apip-item-table-wrap{max-height:calc(96vh - 480px)}}
@media(max-width:640px){.qa-apip-filter-bar{grid-template-columns:1fr}.qa-apip-pagination{align-items:flex-start;flex-direction:column}.qa-apip-pagination>div{width:100%}.qa-apip-page-btn{flex:1}}


/* Evidence Struktur & Proses: bulk upload progress and returned-file replacement */
.wb-upload-progress{margin:0 11px 9px;padding:9px 10px;border:1px solid #cbd5e1;border-radius:9px;background:#f8fafc;color:#334155}.wb-upload-progress[hidden]{display:none}.wb-upload-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;font-size:10px}.wb-upload-progress-meta span{color:#475569}.wb-upload-progress-meta b{font-size:12px;color:#0f766e;font-variant-numeric:tabular-nums}.wb-upload-progress-track{height:7px;border-radius:999px;overflow:hidden;background:#e2e8f0}.wb-upload-progress-track span{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#0f766e,#14b8a6);transition:width .18s ease}.wb-upload-progress small{display:block;margin-top:6px;color:#64748b;font-size:10px;line-height:1.4;overflow-wrap:anywhere}.wb-upload-row input[type=file]:disabled{opacity:.6;cursor:progress}.wb-evidence-file-actions .wb-action-replace{background:#fff7ed;border-color:#fdba74;color:#9a3412}.wb-evidence-file-actions .wb-action-replace:disabled{opacity:.65;cursor:progress}.qa-suggested-group+.qa-suggested-group{margin-top:8px;padding-top:7px;border-top:1px dashed #cbd5e1}.qa-suggested-group>b{display:block;margin-bottom:4px;color:#0f766e;font-size:10px}.qa-suggested-group ul{margin:3px 0 0;padding-left:17px}.qa-suggested-group li{margin:2px 0;line-height:1.4}.qa-suggested{overflow-wrap:anywhere}

.wb-evidence-suggestion-target+.wb-evidence-suggestion-target{margin-top:8px;padding-top:7px;border-top:1px dashed #cbd5e1}.wb-evidence-suggestion-target>strong{display:block;color:#0f766e;font-size:10px;margin-bottom:3px}.wb-evidence-suggestion-target ul{margin-top:4px}


/* Mode mandiri OPD vs nilai resmi BPKP tingkat Pemda */
.dashboard-mode-panel{margin:0 0 18px;padding:18px 20px;background:#fff;border:1px solid #dbe4f0;border-radius:16px;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.dashboard-mode-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.dashboard-mode-heading>div:first-child{display:flex;flex-direction:column;gap:4px}.dashboard-mode-heading strong{font-size:15px;color:#0f172a}.dashboard-mode-heading small{font-size:12px;color:#64748b;line-height:1.5}.dashboard-mode-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.dashboard-mode-actions button{border:1px solid #cbd5e1;border-radius:9px;padding:9px 12px;background:#f8fafc;color:#334155;font-weight:700;cursor:pointer}.dashboard-mode-actions button.active{background:#1e3a8a;border-color:#1e3a8a;color:white}.dashboard-mode-actions #btnBpkpOfficialInput{background:#0f766e;color:#fff;border-color:#0f766e}.dashboard-mode-banner{margin:14px 0 12px;padding:10px 12px;border-radius:9px;font-size:12px;font-weight:700;line-height:1.55}.dashboard-mode-banner.internal{background:#fffbeb;border:1px solid #fde68a;color:#92400e}.dashboard-mode-banner.official{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}.dashboard-mode-banner.pending{background:#f1f5f9;border:1px solid #cbd5e1;color:#334155}.assessment-progress-wrap{margin-top:12px}.assessment-progress-title{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:#475569;margin-bottom:7px}.assessment-progress-title strong{color:#1e293b}.assessment-progress-track{height:9px;border-radius:999px;background:#e2e8f0;overflow:hidden}.assessment-progress-track>div{height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#059669);transition:width .25s ease}.bpkp-score-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.bpkp-score-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#334155}.bpkp-score-grid input{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;font-weight:500;color:#0f172a}.bpkp-score-grid input:focus{outline:2px solid #93c5fd;border-color:#2563eb}.bpkp-finalize-check{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.5;color:#334155;margin:10px 0 16px}.bpkp-finalize-check input{margin-top:2px}.bpkp-admin-password{grid-column:1/-1}.dashboard-mode-panel button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
@media(max-width:720px){.dashboard-mode-panel{padding:14px}.dashboard-mode-actions{width:100%}.dashboard-mode-actions button{flex:1 1 140px}.bpkp-score-grid{grid-template-columns:1fr}.assessment-progress-title{align-items:flex-start;flex-direction:column}}

.bpkp-official-audit{margin-top:16px;padding-top:12px;border-top:1px solid #e2e8f0;font-size:12px;color:#334155}.bpkp-official-audit>strong{display:block;margin-bottom:8px}.bpkp-audit-item{display:grid;grid-template-columns:minmax(90px,.55fr) minmax(160px,1fr);gap:3px 12px;padding:9px 0;border-bottom:1px solid #edf2f7}.bpkp-audit-item b{text-transform:capitalize;color:#1e3a8a}.bpkp-audit-item span{color:#64748b}.bpkp-audit-item small{grid-column:1/-1;white-space:normal;overflow-wrap:anywhere;color:#475569}



/* ===== PATCH VISIBILITAS TOMBOL & RESPONSIVE (2026-10) =====
   Menetralisir aturan white-space/warna global yang membuat label tombol
   terpotong atau tidak kontras, tanpa mengubah handler/ID tombol. */
button, .btn, [role="button"] {
  min-width: 0;
  max-width: 100%;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
button {
  height: auto;
  min-height: 34px;
  white-space: normal;
  color: #1e293b;
  text-shadow: none;
  backdrop-filter: none;
}
button:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
button:disabled { cursor: not-allowed; opacity: .58; }
.modal-actions button, .confirm-actions button,
.sheet-links-footer button, .kk-pm-tabs button,
#qaApipTabs [data-qa-tab], .dashboard-mode-actions button,
.wb-evidence-file-actions button {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.kk-pm-tabs, #qaApipTabs, .dashboard-mode-actions,
.kk-pm-actions, .modal-actions, .confirm-actions {
  flex-wrap: wrap;
  min-width: 0;
}
.kk-pm-action, .kk-pm-tabs button, #qaApipTabs [data-qa-tab],
.dashboard-mode-actions button {
  min-height: 36px;
  line-height: 1.3;
}
button.primary, .confirm-actions button.primary,
.modal-actions button.primary, .sheet-links-footer button.primary,
.kk-pm-tabs button.active, .dashboard-mode-actions button.active {
  color: #fff;
}
button.danger, .confirm-actions button.danger,
.modal-actions button.danger { color: #b91c1c; }
@media (max-width: 768px) {
  body { padding: 12px; }
  button { padding: 9px 12px; }
  .modal-actions button, .confirm-actions button { flex: 1 1 130px; }
  .kk-pm-actions { flex-wrap: wrap; }
}


/* Pemetaan RPJMD 2025–2029 di dalam Kertas Kerja PM SPIP */
.kk-pm-rpjmd-intro{padding:16px 18px;margin-bottom:16px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;color:#1e293b}.kk-pm-rpjmd-intro h4{margin:4px 0 8px;font-size:18px;color:#0f172a}.kk-pm-rpjmd-intro p{margin:6px 0;font-size:12px;line-height:1.65;color:#334155}.kk-pm-rpjmd-stats{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.kk-pm-rpjmd-stats span{padding:7px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;font-size:11px}.kk-pm-rpjmd-stats b{color:#0f766e}.kk-pm-rpjmd-card{padding:15px;margin:12px 0;border:1px solid #dbe3ee;border-radius:12px;background:#fff;color:#1e293b}.kk-pm-rpjmd-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.kk-pm-rpjmd-card-head h5{margin:0 0 4px;font-size:14px;color:#0f172a}.kk-pm-rpjmd-card-head p{margin:0 0 10px;font-size:11px;color:#64748b}.kk-pm-rpjmd-status{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;border:1px solid #cbd5e1;background:#f8fafc;color:#334155;font-size:10px;font-weight:800;white-space:normal}.kk-pm-rpjmd-status.is-verified{border-color:#86efac;background:#f0fdf4;color:#166534}.kk-pm-rpjmd-status.is-returned{border-color:#fdba74;background:#fff7ed;color:#9a3412}.kk-pm-rpjmd-card label{display:block;margin:10px 0 5px;color:#334155;font-size:12px;font-weight:800}.kk-pm-rpjmd-card select,.kk-pm-rpjmd-card textarea,.kk-pm-rpjmd-card input{box-sizing:border-box;width:100%;min-width:0;padding:9px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a;font:inherit;font-size:12px}.kk-pm-rpjmd-card select{min-height:120px}.kk-pm-rpjmd-card small{display:block;margin-top:5px;color:#64748b;font-size:10px;line-height:1.5}.kk-pm-rpjmd-card-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.kk-pm-rpjmd-card-foot>small{margin:0;overflow-wrap:anywhere}.kk-pm-rpjmd-card .kk-pm-action,.kk-pm-rpjmd-verify button{border:1px solid #0f766e;background:#0f766e;color:#fff!important;border-radius:8px;padding:8px 12px;font-weight:800;cursor:pointer}.kk-pm-rpjmd-verify{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(200px,1.3fr) auto auto;gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed #cbd5e1}.kk-pm-rpjmd-verify button:last-child{border-color:#b45309;background:#b45309}.kk-pm-rpjmd-note{margin:12px 0;padding:12px;border:1px solid #cbd5e1;border-radius:9px;background:#f8fafc;color:#334155;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.kk-pm-rpjmd-card .kk-pm-rpjmd-note{background:#fffbeb;border-color:#fde68a;color:#92400e}.kk-pm-rpjmd-card button:disabled{opacity:.6;cursor:wait}
@media(max-width:760px){.kk-pm-rpjmd-card{padding:11px}.kk-pm-rpjmd-verify{grid-template-columns:1fr}.kk-pm-rpjmd-card-foot{align-items:stretch;flex-direction:column}.kk-pm-rpjmd-card-foot button{width:100%}}

.kk-pm-rpjmd-reference{margin:10px 0 16px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#334155}.kk-pm-rpjmd-reference>summary{padding:11px 13px;cursor:pointer;font-size:12px;font-weight:800;color:#1e3a8a}.kk-pm-rpjmd-reference>section{padding:10px 13px;border-top:1px solid #e2e8f0}.kk-pm-rpjmd-reference h5{margin:3px 0 7px;font-size:12px;color:#0f172a}.kk-pm-rpjmd-indicator{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(240px,1.2fr);gap:6px 12px;padding:6px 0;border-bottom:1px dashed #e2e8f0;font-size:10px;line-height:1.5}.kk-pm-rpjmd-indicator b{color:#334155}.kk-pm-rpjmd-indicator span{color:#64748b;overflow-wrap:anywhere}@media(max-width:720px){.kk-pm-rpjmd-indicator{grid-template-columns:1fr;gap:2px}}


/* ===== KERTAS KERJA PEMDA + VERIFIKASI BERJENJANG ===== */
.pemda-workflow-modal{width:min(1540px,98vw);max-height:94vh}
.pemda-workflow-subtitle{font-size:12px;color:#cbd5e1;margin-top:5px;line-height:1.4}
.pemda-workflow-summary{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;margin:12px 0 16px}
.pemda-summary-card{border:1px solid #dbe4f0;border-radius:12px;padding:12px 14px;background:linear-gradient(145deg,#fff,#f6f9ff);min-width:0}
.pemda-summary-card span{display:block;color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.pemda-summary-card strong{display:block;color:#0f172a;font-size:25px;line-height:1.15;margin:7px 0 4px;font-variant-numeric:tabular-nums}
.pemda-summary-card small{display:block;color:#64748b;font-size:11px;line-height:1.4}
.pemda-workflow-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:8px 0 12px}
.pemda-workflow-toolbar label{display:flex;flex-direction:column;gap:5px;color:#475569;font-size:12px;font-weight:800;min-width:min(300px,100%);flex:1}
.pemda-workflow-toolbar input{box-sizing:border-box;width:100%;min-height:38px;border:1px solid #cbd5e1;border-radius:9px;padding:8px 11px;font:inherit;color:#0f172a;background:#fff}
.pemda-workflow-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pemda-workflow-toolbar-actions button{min-height:38px;border:1px solid #cbd5e1;border-radius:9px;padding:0 12px;font-size:12px;font-weight:800;color:#334155;background:#fff;cursor:pointer}
.pemda-year-pill{display:inline-flex;align-items:center;border-radius:9px;background:#e0e7ff;color:#3730a3;font-size:12px;font-weight:900;padding:10px 12px;white-space:nowrap}
.pemda-workflow-table-wrap{overflow:auto;border:1px solid #dbe3ee;border-radius:12px;max-height:52vh;background:#fff;overscroll-behavior:contain}
.pemda-workflow-table{width:100%;min-width:1260px;border-collapse:separate;border-spacing:0;font-size:12px}
.pemda-workflow-table th{position:sticky;top:0;z-index:2;background:#14243d;color:#fff;text-align:left;padding:11px 10px;font-weight:800;line-height:1.35;white-space:normal;border-bottom:1px solid #334155}
.pemda-workflow-table th small{display:inline-block;color:#cbd5e1;font-size:10px;font-weight:600;margin-top:3px}
.pemda-workflow-table td{padding:10px;border-bottom:1px solid #e8edf4;vertical-align:top;color:#334155;background:#fff}
.pemda-workflow-table tbody tr:nth-child(even) td{background:#fbfdff}
.pemda-workflow-table tbody tr.is-sample td{background:#f4f8ff}
.pemda-workflow-table tbody tr:hover td{background:#f0f7ff}
.pemda-workflow-table .pemda-num{width:36px;min-width:36px;text-align:center;color:#64748b;font-weight:800}
.pemda-opd-name{font-weight:850;font-size:12px;color:#0f172a;min-width:175px;line-height:1.45;overflow-wrap:anywhere}
.pemda-opd-meta{font-size:10px;color:#64748b;line-height:1.5;margin-top:5px;min-width:180px;overflow-wrap:anywhere}
.pemda-sample-pill{display:inline-flex;font-size:10px;font-weight:850;border-radius:999px;padding:4px 7px;margin-top:6px}
.pemda-sample-pill.yes{background:#dbeafe;color:#1d4ed8}.pemda-sample-pill.no{background:#f1f5f9;color:#64748b}
.pemda-status-badge{display:inline-flex;align-items:center;gap:5px;max-width:180px;padding:6px 8px;border-radius:8px;font-size:10px;font-weight:850;line-height:1.35;white-space:normal}
.pemda-status-badge i{display:inline-flex;align-items:center;justify-content:center;font-style:normal;width:16px;height:16px;border-radius:50%;flex-shrink:0;font-size:11px;font-weight:900;background:rgba(255,255,255,.6)}
.pemda-status-badge.done{background:#dcfce7;color:#166534}.pemda-status-badge.progress{background:#fef3c7;color:#92400e}.pemda-status-badge.returned{background:#fee2e2;color:#b91c1c}.pemda-status-badge.pending{background:#e2e8f0;color:#475569}.pemda-status-badge.not-applicable{background:#f8fafc;color:#94a3b8;border:1px dashed #cbd5e1}
.pemda-stage-meta{display:block;margin-top:5px;font-size:10px;color:#64748b;line-height:1.4;max-width:175px}
.pemda-sample-toggle{display:flex;align-items:center;gap:7px;min-height:34px;font-size:11px;font-weight:850;color:#334155;cursor:pointer;white-space:nowrap}
.pemda-sample-toggle input{width:17px;height:17px;accent-color:#2563eb;cursor:pointer}
.pemda-sample-toggle input:disabled{cursor:not-allowed;opacity:.65}
.pemda-sample-reason-wrap{min-width:170px}
.pemda-sample-reason-wrap textarea{box-sizing:border-box;width:100%;min-width:165px;border:1px solid #cbd5e1;border-radius:8px;padding:8px;font:inherit;font-size:11px;resize:vertical;min-height:54px;color:#0f172a;background:#fff;line-height:1.45}
.pemda-sample-reason-wrap textarea:focus,.pemda-stage-form input:focus,.pemda-stage-form textarea:focus,.pemda-stage-form select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.10)}
.pemda-sample-reason-wrap textarea:disabled{background:#f8fafc;color:#94a3b8}
.pemda-changed-note{display:block;font-size:10px;color:#b45309;margin-top:4px;font-weight:800}
.pemda-row-detail{border:1px solid #cbd5e1;background:#fff;color:#1d4ed8;padding:7px 9px;border-radius:8px;white-space:nowrap;font-size:10px;font-weight:850;cursor:pointer}
.pemda-row-detail:hover{background:#eff6ff;border-color:#93c5fd}
.pemda-table-empty{text-align:center!important;color:#64748b!important;padding:28px!important}
.pemda-workflow-footnote{margin:10px 0 0;color:#64748b;font-size:11px;line-height:1.55}
.pemda-workflow-editor{margin-top:18px;border:1px solid #cbd5e1;border-radius:14px;padding:15px;background:#f8fafc}
.pemda-workflow-editor[hidden]{display:none!important}
.pemda-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}
.pemda-editor-heading h4{font-size:16px;color:#0f172a;margin:0 0 4px}.pemda-editor-heading p{font-size:11px;color:#64748b;margin:0;line-height:1.5}
.pemda-editor-close{border:1px solid #cbd5e1;background:#fff;color:#475569;border-radius:8px;padding:7px 10px;font-size:11px;font-weight:800;cursor:pointer}
.pemda-workflow-stage-forms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;align-items:stretch}
.pemda-stage-form{border:1px solid #dbe3ee;border-radius:12px;padding:12px;background:#fff;min-width:0;display:flex;flex-direction:column;gap:9px}
.pemda-stage-form.readonly{background:#fbfdff}
.pemda-stage-form-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-height:47px}
.pemda-stage-form-head>div{display:flex;align-items:flex-start;gap:8px;min-width:0}
.pemda-stage-number{display:flex;align-items:center;justify-content:center;min-width:25px;height:25px;border-radius:8px;background:#dbeafe;color:#1d4ed8;font-size:13px;font-weight:900}
.pemda-stage-form h5{font-size:12px;color:#0f172a;line-height:1.4;margin:0 0 3px}.pemda-stage-form p{font-size:10px;color:#64748b;line-height:1.45;margin:0}
.pemda-stage-form-head .pemda-status-badge{font-size:9px;padding:5px 6px}
.pemda-stage-form-grid{display:grid;grid-template-columns:1fr;gap:8px}
.pemda-stage-form label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#475569;font-weight:850;min-width:0}
.pemda-stage-form select,.pemda-stage-form input,.pemda-stage-form textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:8px;padding:8px;font:inherit;font-size:11px;color:#0f172a;background:#fff;line-height:1.4}
.pemda-stage-form select:disabled,.pemda-stage-form input[readonly],.pemda-stage-form textarea[readonly]{background:#f8fafc;color:#64748b}
.pemda-stage-note-label{margin-top:0}
.pemda-prerequisite{padding:8px;border:1px solid #fde68a;border-radius:8px;background:#fffbeb;color:#92400e;font-size:10px;line-height:1.45}
.pemda-stage-form-footer{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;flex-wrap:wrap}
.pemda-stage-form-footer small{color:#64748b;font-size:9px;line-height:1.4;flex:1;min-width:95px}
.pemda-stage-form-footer button{border:1px solid #0f766e;background:#0f766e;color:#fff;border-radius:8px;padding:8px 10px;font-size:10px;font-weight:850;cursor:pointer;white-space:nowrap}
.pemda-stage-form-footer button:disabled{opacity:.45;cursor:not-allowed}
.pemda-audit-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:16px 0 8px}.pemda-audit-heading h5{font-size:12px;margin:0;color:#0f172a}.pemda-audit-heading span{font-size:10px;color:#64748b}
.pemda-workflow-audit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:230px;overflow:auto}
.pemda-workflow-audit>p{grid-column:1/-1;color:#64748b;font-size:11px;margin:4px}
.pemda-audit-row{display:flex;align-items:flex-start;gap:9px;border:1px solid #e2e8f0;background:#fff;border-radius:9px;padding:9px;min-width:0}
.pemda-audit-dot{width:8px;height:8px;border-radius:50%;background:#0f766e;flex-shrink:0;margin-top:4px;box-shadow:0 0 0 4px #ccfbf1}
.pemda-audit-row>div{min-width:0;overflow-wrap:anywhere}.pemda-audit-row b{display:block;color:#0f172a;font-size:10px}.pemda-audit-row small{display:block;color:#64748b;font-size:9px;margin-top:3px}.pemda-audit-row p{font-size:10px;color:#475569;margin:5px 0 0;white-space:pre-wrap;line-height:1.45}
.pemda-step-inline{display:inline-flex;align-items:center;gap:5px;font-weight:700;color:#334155;margin:2px 4px 2px 0}
.pemda-step-inline i{font-style:normal;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:18px;height:18px;background:#dbeafe;color:#1d4ed8;font-size:10px;font-weight:900;flex-shrink:0}
.pemda-step-arrow{font-weight:900;color:#94a3b8;margin:0 3px}
.pemda-footer-note{margin-right:auto;color:#64748b;font-size:11px;line-height:1.4}
@media(max-width:1000px){.pemda-workflow-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.pemda-workflow-stage-forms{grid-template-columns:1fr}.pemda-workflow-audit{grid-template-columns:1fr}.pemda-workflow-table-wrap{max-height:48vh}}
@media(max-width:620px){.pemda-workflow-modal{width:98vw;max-height:96vh}.pemda-workflow-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.pemda-workflow-modal .sheet-links-header{padding:14px}.pemda-workflow-modal .sheet-links-header h3{font-size:15px}.pemda-workflow-modal .sheet-links-body{padding:12px}.pemda-editor-heading{flex-direction:column}.pemda-workflow-modal .sheet-links-footer{flex-wrap:wrap;padding:10px}.pemda-footer-note{flex-basis:100%}}

/* ===== KK PM SPIP khusus tingkat Pemerintah Kabupaten Mahakam Ulu ===== */
.pemda-pm-dashboard-modal{width:min(1500px,96vw);max-width:1500px;max-height:94vh;display:flex;flex-direction:column}
.pemda-pm-dashboard-modal .sheet-links-body{overflow:auto;min-height:0}
.pemda-pm-dashboard-modal .sheet-links-header h3{margin:0;color:#0f172a}
.pemda-pm-dashboard-summary{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px;margin:14px 0 18px}
.pemda-pm-stat-card{min-width:0;border:1px solid #dce5f0;border-radius:14px;padding:14px;background:linear-gradient(145deg,#fff,#f5f8fc);box-shadow:0 5px 15px rgba(15,23,42,.045)}
.pemda-pm-stat-card span{display:block;color:#526277;font-size:12px;font-weight:700;line-height:1.35}
.pemda-pm-stat-card strong{display:block;color:#0f172a;font-size:28px;line-height:1.25;margin:6px 0;font-variant-numeric:tabular-nums}
.pemda-pm-stat-card small{display:block;color:#718096;font-size:11px;line-height:1.4}
.pemda-pm-workbook-panel,.pemda-pm-samples-panel{border:1px solid #dbe4ef;border-radius:16px;background:#fff;padding:16px;margin:14px 0;box-shadow:0 6px 22px rgba(15,23,42,.04)}
.pemda-pm-workbook-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.pemda-pm-kicker{font-size:10px;letter-spacing:.12em;font-weight:900;color:#2563eb}
.pemda-pm-workbook-heading h4,.pemda-pm-sheet-list-heading h4{margin:4px 0 5px;color:#12233b;font-size:17px}
.pemda-pm-workbook-heading p,.pemda-pm-sheet-list-heading p{margin:0;color:#64748b;font-size:12px;line-height:1.5}
.pemda-pm-workbook-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.pemda-pm-workbook-actions button,.pemda-pm-sheet-list-heading>button{border:1px solid #cbd5e1;background:#fff;color:#1e293b;padding:9px 12px;border-radius:9px;font-size:12px;font-weight:750;cursor:pointer}
.pemda-pm-workbook-actions button.primary{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.pemda-pm-workbook-actions button:disabled{opacity:.55;cursor:wait}
.pemda-pm-workbook-notice{border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;border-radius:10px;padding:11px 13px;margin:14px 0;font-size:12px;line-height:1.6}
.pemda-pm-workbook-notice.warning{border-color:#fde68a;background:#fffbeb;color:#92400e}
.pemda-pm-sheet-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0 10px}
.pemda-pm-sheet-list-heading h5{margin:0;color:#334155;font-size:13px}
.pemda-pm-sheet-list-heading>span{font-size:11px;color:#64748b}
.pemda-pm-sheet-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pemda-pm-sheet-card{display:flex;align-items:center;gap:10px;min-width:0;text-align:left;border:1px solid #dbe4ef;background:#f8fafc;border-radius:11px;padding:10px;color:#0f172a}
.pemda-pm-sheet-card.available{cursor:pointer;background:#fff;transition:border-color .15s,transform .15s,box-shadow .15s}
.pemda-pm-sheet-card.available:hover{border-color:#60a5fa;transform:translateY(-1px);box-shadow:0 6px 15px rgba(37,99,235,.10)}
.pemda-pm-sheet-card.preview{opacity:.85;cursor:default}
.pemda-pm-sheet-order{display:flex;align-items:center;justify-content:center;flex:0 0 28px;height:28px;border-radius:8px;background:#e0e7ff;color:#3730a3;font-size:11px;font-weight:900}
.pemda-pm-sheet-text{display:block;min-width:0;flex:1}
.pemda-pm-sheet-text b{display:block;font-size:12px;overflow-wrap:anywhere}
.pemda-pm-sheet-text small{display:block;margin-top:3px;color:#64748b;font-size:10px;line-height:1.35}
.pemda-pm-sheet-action{white-space:nowrap;color:#2563eb;font-size:10px;font-weight:800}
.pemda-pm-samples-panel .pemda-pm-sheet-list-heading{margin-top:0}
.pemda-pm-table-wrap{width:100%;overflow:auto;border:1px solid #e2e8f0;border-radius:11px}
.pemda-pm-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1120px;font-size:11px}
.pemda-pm-table th{position:sticky;top:0;background:#eef4fb;color:#334155;text-align:left;white-space:nowrap;padding:10px 9px;border-bottom:1px solid #dbe4ef;z-index:1}
.pemda-pm-table td{padding:10px 9px;vertical-align:top;border-bottom:1px solid #edf2f7;color:#334155}
.pemda-pm-table tbody tr:last-child td{border-bottom:0}
.pemda-pm-table tbody tr:hover td{background:#f8fbff}
.pemda-pm-table td:first-child{font-weight:800;text-align:center;color:#64748b}
.pemda-pm-table td>b{color:#0f172a;font-variant-numeric:tabular-nums}
.pemda-pm-table td:nth-child(2){min-width:220px;max-width:300px}
.pemda-pm-table td:nth-child(2)>b{display:block;line-height:1.45;overflow-wrap:anywhere}
.pemda-pm-table td:nth-child(2)>small{display:block;margin-top:4px;color:#64748b;line-height:1.45;white-space:normal}
.pemda-pm-source-status{display:block;margin-top:6px;color:#64748b;font-size:10px;line-height:1.4}
.pemda-pm-score-empty{color:#94a3b8}
.pemda-pm-stage{display:inline-flex;align-items:center;max-width:130px;border-radius:99px;padding:5px 8px;font-weight:800;font-size:10px;line-height:1.25;white-space:normal}
.pemda-pm-stage.done{background:#dcfce7;color:#166534}
.pemda-pm-stage.progress{background:#dbeafe;color:#1d4ed8}
.pemda-pm-stage.warning{background:#fef3c7;color:#92400e}
.pemda-pm-stage.pending{background:#f1f5f9;color:#64748b}
.pemda-pm-detail-btn{white-space:nowrap;border:1px solid #bfdbfe;color:#1d4ed8;background:#eff6ff;border-radius:8px;padding:7px 9px;font-weight:750;font-size:10px;cursor:pointer}
.pemda-pm-detail-btn:hover{background:#dbeafe}
.pemda-pm-empty{padding:20px;text-align:center;color:#64748b;font-size:12px;line-height:1.6}
.pemda-pm-table-note{font-size:11px;color:#64748b;line-height:1.6;margin:10px 2px 0}
.pemda-pm-source-note{line-height:1.6}
@media(max-width:1050px){.pemda-pm-dashboard-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.pemda-pm-sheet-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.pemda-pm-dashboard-modal{width:100vw;max-width:100vw;max-height:100dvh;border-radius:0}.pemda-pm-dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.pemda-pm-stat-card{padding:10px}.pemda-pm-stat-card strong{font-size:24px}.pemda-pm-sheet-list{grid-template-columns:1fr}.pemda-pm-workbook-panel,.pemda-pm-samples-panel{padding:11px}.pemda-pm-workbook-actions{width:100%}.pemda-pm-workbook-actions button{flex:1}.pemda-pm-sheet-list-heading{align-items:flex-start}}

.pemda-pm-dashboard-modal [hidden]{display:none!important}


/* Pemda PM master configuration and independent T2–T4 evidence workflow */
.pemda-pm-template-panel,.pemda-pm-evidence-panel{border:1px solid #dbe4ef;border-radius:16px;background:linear-gradient(145deg,#fff 0%,#f8fbff 100%);padding:16px;margin:14px 0;box-shadow:0 6px 22px rgba(15,23,42,.04)}
.pemda-pm-panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:13px}
.pemda-pm-panel-title h4{font-size:16px;line-height:1.35;margin:4px 0 5px;color:#12233b}
.pemda-pm-panel-title p{font-size:12px;line-height:1.6;color:#64748b;margin:0;max-width:850px}
.pemda-pm-panel-title>button,.pemda-pm-template-actions button,.pemda-pm-template-admin-actions button,.pemda-pm-evidence-upload-action button{border:1px solid #cbd5e1;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:800;background:#fff;color:#1e293b;cursor:pointer}
.pemda-pm-template-actions button.primary,.pemda-pm-evidence-upload-action button.primary{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.pemda-pm-template-controls{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px;align-items:end}
.pemda-pm-template-controls label,.pemda-pm-evidence-upload-grid label,.pemda-pm-evidence-verification label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;color:#334155;min-width:0}
.pemda-pm-template-controls input,.pemda-pm-evidence-upload-grid input[type=file],.pemda-pm-evidence-upload-grid select,.pemda-pm-evidence-verification input,.pemda-pm-evidence-verification select,.pemda-pm-evidence-verification textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:9px 10px;color:#0f172a;font:inherit;font-weight:500}
.pemda-pm-template-controls input{font-size:12px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.pemda-pm-template-actions{display:flex;gap:7px;flex-wrap:wrap}
.pemda-pm-template-meta{font-size:11px;color:#64748b;margin-top:10px;overflow-wrap:anywhere;line-height:1.5}
.pemda-pm-template-meta a{color:#1d4ed8;font-weight:800}
.pemda-pm-template-meta span{margin-left:4px}
.pemda-pm-template-admin-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0}
.pemda-pm-template-admin-actions button{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
.pemda-pm-template-admin-actions small{flex:1;min-width:220px;color:#64748b;font-size:10px;line-height:1.5}
.pemda-pm-template-state{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;background:#f1f5f9;color:#475569;font-size:10px;font-weight:900;white-space:nowrap}
.pemda-pm-template-state.success{background:#dcfce7;color:#166534}.pemda-pm-template-state.warning{background:#fef3c7;color:#92400e}
.pemda-pm-inline-status{display:none;margin-top:10px;border-radius:9px;padding:9px 11px;font-size:11px;line-height:1.55;color:#334155;background:#f1f5f9;overflow-wrap:anywhere}
.pemda-pm-inline-status:not(:empty){display:block}.pemda-pm-inline-status.success{background:#ecfdf5;color:#166534}.pemda-pm-inline-status.error{background:#fff1f2;color:#9f1239}
.pemda-pm-evidence-upload-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;padding:13px;border:1px solid #e2e8f0;border-radius:12px;background:rgba(255,255,255,.8)}
.pemda-pm-evidence-file-input{grid-column:span 2}.pemda-pm-evidence-upload-grid input[type=file]{font-size:11px}
.pemda-pm-evidence-upload-action{grid-column:span 2;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px}
.pemda-pm-evidence-upload-action small{font-size:10px;line-height:1.5;color:#64748b}
.pemda-pm-evidence-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}
.pemda-pm-evidence-summary>div{border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:9px 11px;min-width:0}
.pemda-pm-evidence-summary span{display:block;color:#64748b;font-size:10px;font-weight:750;line-height:1.4}.pemda-pm-evidence-summary b{display:block;margin-top:4px;color:#0f172a;font-size:21px;font-variant-numeric:tabular-nums}
.pemda-pm-evidence-list{display:grid;gap:10px}
.pemda-pm-evidence-card{border:1px solid #dbe4ef;border-radius:12px;background:#fff;padding:13px;min-width:0}
.pemda-pm-evidence-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.pemda-pm-evidence-target{display:inline-flex;border-radius:6px;background:#eff6ff;color:#1d4ed8;padding:4px 6px;font-size:9px;font-weight:900}
.pemda-pm-evidence-card h5{margin:7px 0 4px;font-size:12px;color:#0f172a;overflow-wrap:anywhere}.pemda-pm-evidence-card p{margin:0;color:#64748b;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.pemda-pm-evidence-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;padding-top:9px;border-top:1px solid #eef2f7}
.pemda-pm-evidence-card-actions a{font-size:11px;color:#1d4ed8;font-weight:850}.pemda-pm-evidence-card-actions small{flex:1;min-width:180px;color:#64748b;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.pemda-pm-evidence-card-actions button,.pemda-pm-evidence-verification button{border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155;padding:7px 9px;font-size:10px;font-weight:800;cursor:pointer}.pemda-pm-evidence-card-actions button.danger{border-color:#fecaca;color:#b91c1c;background:#fff7f7}
.pemda-pm-evidence-verification{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(180px,1fr) minmax(220px,1.5fr) auto;gap:9px;align-items:end;margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0}
.pemda-pm-evidence-verification textarea{resize:vertical;min-height:38px}.pemda-pm-evidence-verification button{background:#eef2ff;border-color:#c7d2fe;color:#3730a3;min-height:37px}
.pemda-pm-evidence-saved-verification{margin-top:8px!important;color:#475569!important}.pemda-pm-evidence-saved-verification b{color:#0f172a}
@media(max-width:950px){.pemda-pm-evidence-upload-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pemda-pm-evidence-verification{grid-template-columns:repeat(2,minmax(0,1fr))}.pemda-pm-template-controls{grid-template-columns:1fr}}
@media(max-width:600px){.pemda-pm-template-panel,.pemda-pm-evidence-panel{padding:11px}.pemda-pm-evidence-upload-grid{grid-template-columns:1fr;padding:10px}.pemda-pm-evidence-file-input,.pemda-pm-evidence-upload-action{grid-column:span 1}.pemda-pm-evidence-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.pemda-pm-evidence-verification{grid-template-columns:1fr}.pemda-pm-evidence-card-head{flex-direction:column}.pemda-pm-template-actions{width:100%}.pemda-pm-template-actions button{flex:1}}


/* Pemda evidence history: one target at a time, avoiding a long stacked feed. */
.pemda-pm-evidence-history-heading{display:flex;align-items:center;justify-content:space-between;margin:15px 0 8px}.pemda-pm-evidence-history-heading>div{display:flex;flex-direction:column;gap:4px}.pemda-pm-evidence-history-heading b{font-size:12px;color:#0f172a}.pemda-pm-evidence-history-heading small{font-size:10px;line-height:1.45;color:#64748b}.pemda-pm-evidence-history-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.pemda-pm-evidence-history-tabs button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;background:#fff;color:#334155;font-size:11px;font-weight:850;cursor:pointer}.pemda-pm-evidence-history-tabs button[aria-pressed="true"]{border-color:#4f46e5;background:linear-gradient(120deg,#eef2ff,#eff6ff);color:#3730a3;box-shadow:0 2px 8px rgba(79,70,229,.1)}.pemda-pm-evidence-history-tabs button span{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:10px}.pemda-pm-evidence-history-tabs button[aria-pressed="true"] span{background:#4338ca;color:#fff}.pemda-pm-evidence-empty-target{display:flex;flex-direction:column;gap:6px;padding:22px!important;text-align:center}.pemda-pm-evidence-empty-target b{font-size:12px;color:#334155}.pemda-pm-evidence-empty-target span{font-size:11px;line-height:1.5;color:#64748b}
@media(max-width:600px){.pemda-pm-evidence-history-tabs{grid-template-columns:1fr}.pemda-pm-evidence-history-tabs button{padding:9px 11px}}


/* Parameter-scoped Pemda evidence history: one parameter is visible at a time. */
.pemda-pm-evidence-history-filter{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(180px,1fr) minmax(180px,.9fr);align-items:end;gap:10px;padding:11px 12px;margin:0 0 10px;border:1px solid #dbe4ef;border-radius:10px;background:#f8fafc}.pemda-pm-evidence-history-filter label{display:flex;flex-direction:column;gap:6px;color:#334155;font-size:10px;font-weight:850}.pemda-pm-evidence-history-filter select{width:100%;min-width:0;min-height:38px;border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px;background:#fff;color:#0f172a;font-size:11px}.pemda-pm-evidence-history-filter small{grid-column:1/-1;font-size:10px;line-height:1.5;color:#64748b}.pemda-pm-evidence-parameter-title{display:flex;flex-direction:column;gap:5px;padding:12px 14px;border:1px solid #c7d2fe;border-radius:10px;background:linear-gradient(120deg,#eef2ff,#f8fafc)}.pemda-pm-evidence-parameter-title span{font-size:9px;color:#4338ca;font-weight:900}.pemda-pm-evidence-parameter-title b{font-size:12px;color:#0f172a;line-height:1.5}.pemda-pm-evidence-parameter-title small{font-size:10px;color:#64748b}@media(max-width:600px){.pemda-pm-evidence-history-filter{grid-template-columns:1fr;padding:10px}.pemda-pm-evidence-history-filter small{grid-column:auto}.pemda-pm-evidence-parameter-title{padding:10px}}
