/* requests.css — pengajuan (CSP-safe layout), approval, timeline. */

/* ---------- Pengajuan: layout tanpa inline style (CSP style-src-attr 'none') ---------- */
.req-print { margin-top: 12px; }
.req-h3 { margin: 22px 0 8px; }
.req-h3-tight { margin: 0 0 12px; }
.req-h3-flat { margin: 0; }
.req-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 10px;
  gap: 12px;
}
.req-actions { display: flex; gap: 8px; margin-top: 8px; }
.btn.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn.btn-secondary { background: var(--surface2); color: var(--ink); }
.btn.btn-secondary:hover { background: var(--surface3); color: var(--ink); }
@media (max-width: 560px) {
  .req-section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Approval: catatan + tabel sortable ---------- */
.approve-note .note-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
}
.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: var(--ink); }

/* ---------- Timeline & filter ---------- */
.timeline { margin-top: 10px; }
.timeline summary { cursor: pointer; font-size: 13px; color: var(--accent-text); }
.tl-item { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.tl-item:last-child { border-bottom: 0; }
.tl-note { color: var(--ink); margin-top: 3px; }
.filter-row { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  cursor: pointer;
}
.chip.active { background: var(--surface3); border-color: var(--line-strong); color: var(--ink); font-weight: 600; }

/* Rantai tahap persetujuan di dalam kartu pengajuan. */
.req-stage { margin: 6px 0 2px; }

/* ---------- Pratinjau jalur persetujuan di formulir ---------- */
/* Dipisah garis atas, bukan kotak kedua: ia bagian dari formulir yang sama,
   dan kotak bersarang di dalam kartu terbaca sebagai dua hal berbeda. */
.req-route {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.req-route-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.req-route-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.req-route-meta { font-size: 11.5px; color: var(--faint); }
.req-route-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--faint);
  min-height: 1.2em;
}
.req-route-note.warn { color: var(--warn); }
