/* Disisipkan nginx ke Tasklist (pais.skem-nadia.xyz). Bergantung pada struktur Tasklist 8.10:
   cek ulang selector ini bila versi Camunda diganti. */

/* Panel "Details" di kanan task disembunyikan, form melebar penuh */
[data-testid="details-info"] { grid-template-columns: minmax(0, 1fr) !important; }
[data-testid="details-info"] > div:has(> aside[aria-label="Task details right panel"]) { display: none !important; }

/* ---- Status ajuan saya ---- */
#skem-status-btn {
  position: fixed; top: 9px; left: 50%; transform: translateX(-50%); z-index: 9000;
  display: none; align-items: center; gap: 6px;
  height: 30px; padding: 0 14px; border-radius: 15px;
  border: 1px solid #c6c6c6; background: #fff; color: #161616;
  font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1; cursor: pointer;
}
#skem-status-btn:hover { background: #f2f4f8; }
#skem-status-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: #0f62fe; }

#skem-status-overlay { position: fixed; inset: 0; z-index: 9001; background: rgba(22,22,22,.32); display: none; }
#skem-status-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 9002; width: min(520px, 100vw);
  background: #fff; color: #161616; box-shadow: -8px 0 24px rgba(0,0,0,.16);
  display: none; flex-direction: column; font-family: inherit;
}
#skem-status-panel.open, #skem-status-overlay.open { display: flex; }
#skem-status-panel header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #e0e0e0;
}
#skem-status-panel header h2 { margin: 0; font-size: 18px; font-weight: 600; }
#skem-status-panel header button {
  border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: #525252; padding: 4px 8px;
}
#skem-status-body { padding: 8px 20px 24px; overflow: auto; flex: 1; }
#skem-status-body .meta { font-size: 12px; color: #6f6f6f; margin: 8px 0 4px; display: flex; justify-content: space-between; }
#skem-status-body .meta button { border: 0; background: none; color: #0f62fe; cursor: pointer; font: inherit; padding: 0; }
.skem-card { border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px; margin-top: 16px; }
.skem-card h3 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.skem-card .sub { margin: 0 0 16px; font-size: 13px; color: #525252; }
.skem-card .note { margin: 14px 0 0; font-size: 13px; color: #393939; background: #f4f4f4; border-radius: 6px; padding: 10px 12px; line-height: 1.45; }
.skem-card .note.warn { background: #fff8e1; }
.skem-card .note.ok { background: #defbe6; }

.skem-steps { display: flex; list-style: none; margin: 0; padding: 0; }
.skem-steps li { flex: 1; position: relative; text-align: center; font-size: 12px; color: #6f6f6f; padding: 0 2px; }
.skem-steps li::before {
  content: ""; position: absolute; top: 11px; left: calc(-50% + 13px); right: calc(50% + 13px);
  height: 2px; background: #c6c6c6;
}
.skem-steps li:first-child::before { display: none; }
.skem-steps li.done::before, .skem-steps li.now::before { background: #24a148; }
.skem-steps .c {
  width: 24px; height: 24px; border-radius: 50%; margin: 0 auto 6px; box-sizing: border-box;
  border: 2px solid #c6c6c6; background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; position: relative;
}
.skem-steps li.done .c { background: #24a148; border-color: #24a148; color: #fff; }
.skem-steps li.now .c { border-color: #0f62fe; color: #0f62fe; box-shadow: 0 0 0 4px #d0e2ff; }
.skem-steps li.done { color: #161616; }
.skem-steps li.now { color: #0f62fe; font-weight: 600; }
.skem-steps .who { display: block; font-weight: 400; color: #525252; margin-top: 2px; }
.skem-empty { font-size: 13px; color: #525252; margin-top: 16px; }

/* Preview bukti di form verifikator: tinggi dibatasi, bingkai tipis */
.fjs-form img.fjs-image {
  max-height: 420px; max-width: 100%; width: auto; object-fit: contain;
  border: 1px solid #e0e0e0; border-radius: 6px; background: #fff;
}

/* Field tampilan di form verifikator memakai "disabled" (supaya tidak ikut tersubmit dan menimpa data);
   tampilkan tetap jelas dibaca, bukan abu-abu pudar */
.fjs-form .fjs-disabled .fjs-input,
.fjs-form .fjs-disabled .fjs-textarea,
.fjs-form .fjs-disabled .fjs-input-group {
  color: #161616 !important; -webkit-text-fill-color: #161616; opacity: 1 !important;
  background: #f4f4f4 !important; cursor: default !important;
}
.fjs-form .fjs-disabled .fjs-form-field-label { color: #393939 !important; opacity: 1 !important; }

/* Pratinjau file yang baru dipilih mahasiswa (sebelum Complete Task) */
.skem-pilih { margin-top: 10px; display: grid; gap: 12px; }
.skem-pilih-nama { font-size: 12px; color: #525252; margin-bottom: 6px; }
.skem-pilih img { display: block; max-height: 360px; max-width: 100%; border: 1px solid #e0e0e0; border-radius: 6px; }
.skem-pilih iframe { display: block; width: 100%; height: 420px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; }
.skem-pilih-lain { font-size: 13px; color: #6f6f6f; }

/* Form dashboard monitoring dosen wali (penanda .skem-wide di komponen html) memakai lebar penuh,
   bukan batas 900px bawaan Tasklist */
div[class*="max-w-[900px]"]:has(.skem-wide) { max-width: none !important; }
