
/* ============ Settings (PART 5D) ============ */
.set-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.set-tabs button { border: 1px solid #cbd5e1; background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; min-height: 40px; }
.set-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; padding: 4px 0; }
.set-role { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 30px; }
.set-role input { width: 18px; height: 18px; }
.set-main { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 2px solid var(--border, #e2e8f0); margin-bottom: 12px; }   /* v3.13.221: kategori utama */
.set-main button { border: 0; background: none; padding: 10px 14px; margin-bottom: -2px; border-bottom: 3px solid transparent; font-size: 15px; font-weight: 600; color: #64748b; cursor: pointer; min-height: 44px; }
.set-main button:hover { color: var(--primary, #1d4ed8); }
.set-main button.on { color: var(--primary, #1d4ed8); border-bottom-color: var(--primary, #1d4ed8); }
.set-tabs.sub button { font-size: 13px; min-height: 34px; padding: 6px 12px; }
.set-tabs .set-sep { display: inline-flex; align-items: center; padding: 0 4px 0 12px; margin-left: 6px; border-left: 2px solid #cbd5e1; font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.set-tabs button.on { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
/* v3.12.93: pindah resmi */
.pd-check, .pd-steps { margin: 10px 0 12px; padding-left: 0; list-style: none; }
.pd-check li, .pd-steps li { position: relative; padding: 5px 0 5px 28px; font-size: 14px; }
.pd-check li::before, .pd-steps li::before { position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; font: 700 12px/20px var(--font); text-align: center; }
.pd-check li.ok::before { content: '✓'; background: #dcfce7; color: #15803d; }
.pd-check li.no::before { content: '!'; background: #fee2e2; color: #b91c1c; }
.pd-steps { counter-reset: tahap; }
.pd-steps li { counter-increment: tahap; color: #64748b; }
.pd-steps li::before { content: counter(tahap); background: #e2e8f0; color: #475569; }
.pd-steps li.done { color: inherit; }
.pd-steps li.done::before { content: '✓'; background: #dcfce7; color: #15803d; }
.pd-steps li.now { color: inherit; font-weight: 600; }
.pd-steps li.now::before { background: #1d4ed8; color: #fff; }
.pd-log { margin-top: 10px; font-size: 13px; }
/* v3.12.80: di HP tab Settings jadi satu baris yang bisa digeser ke samping (tidak makan 4 baris) */
@media (max-width: 700px) {
  .set-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px 14px; padding: 2px 16px 8px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); }
  .set-tabs::-webkit-scrollbar { display: none; }
  .set-main { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; }
  .set-main::-webkit-scrollbar { display: none; }
  .set-main button { flex: 0 0 auto; white-space: nowrap; padding: 10px 12px; }
  .set-tabs button { flex: 0 0 auto; white-space: nowrap; min-height: 38px; padding: 7px 14px; }
  /* v3.13.246: kategori utama & subkategori tampil SEMUA (tidak tersembunyi di geseran): kategori 2 kolom, subkategori turun baris */
  .set-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; overflow: visible; margin: 0 0 12px; padding: 0 0 12px; }
  .set-main button { white-space: normal; text-align: left; line-height: 1.25; min-height: 42px; padding: 8px 10px; margin: 0; font-size: 13.5px;
    border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #334155; }
  .set-main button.on { background: #eff6ff; border-color: var(--primary, #1d4ed8); color: var(--primary, #1d4ed8); }
  .set-main button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .set-tabs.sub { flex-wrap: wrap; overflow: visible; margin: 0 0 14px; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .set-tabs.sub button { min-height: 34px; padding: 6px 12px; }
  .set-save:has(> .btn:nth-child(2):last-child) { flex-wrap: nowrap; } .set-save:has(> .btn:nth-child(2):last-child) > .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; justify-content: center; padding-left: 8px; padding-right: 8px; }
}
.set-row { max-width: 560px; }
.set-row.dirty .input, .set-row.dirty .select { border-color: #f59e0b; background: #fffbeb; }
.set-save { position: sticky; bottom: 0; background: #fff; padding: 10px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid #e2e8f0; margin-top: 8px; }
