/* Tambahan mockup. Modal "Buat template dengan AI dari PDF contoh": rangka mengikuti modal SIAKAD v1
 * (radius 8px, judul 20px/600 #242424, tombol tutup #2b45a2); isinya iframe cra/*.html. */
.cra-backdrop { position: fixed; inset: 0; z-index: 2147483001; background: rgba(0,0,0,.45);
                display: none; align-items: center; justify-content: center; padding: 16px; }
.cra-backdrop[data-open] { display: flex; }
.cra-modal { width: min(1040px, 96vw); height: min(780px, 92vh); background: #fff; border-radius: 8px; overflow: hidden;
             box-shadow: 0 8px 16px rgba(0,0,0,.07), 0 16px 32px rgba(0,0,0,.07), 0 32px 64px rgba(0,0,0,.07);
             display: grid; grid-template-rows: auto 1fr; }
.cra-modal { transition: height .2s; }
.cra-modal[data-size="sm"] { height: min(590px, 92vh); }
.cra-modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid #eaecf0;
                  font: 600 20px/28px Poppins, system-ui, sans-serif; color: #242424; }
.cra-modal-head .cra-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%;
                  background: linear-gradient(135deg, #2563eb, #7c3aed); }
.cra-modal-head .cra-grow { flex: 1; }
.cra-x { border: 0; background: transparent; cursor: pointer; width: 34px; height: 34px; border-radius: 8px; color: #2b45a2; font-size: 30px; font-weight: 300; line-height: 1; }
.cra-x:hover { background: #f4f4f5; }
.cra-frame { width: 100%; height: 100%; border: 0; background: #fff; }
@media (max-width: 640px) { .cra-modal { width: 100vw; height: 100vh; border-radius: 0; } .cra-backdrop { padding: 0; } .cra-modal-head { font-size: 18px; } }

/* Penanda mockup */
.mock-ribbon { position: fixed; left: 16px; bottom: 16px; z-index: 2147482000; padding: 6px 12px; border-radius: 999px;
               background: #0f172a; color: #fff !important; font: 600 12px/1.2 system-ui, sans-serif; letter-spacing: .03em;
               opacity: .82; text-decoration: none !important; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.mock-ribbon:hover { opacity: 1; }
.mock-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2147483100; padding: 8px 14px;
              border-radius: 8px; background: #0f172a; color: #fff; font: 13px/1.3 system-ui, sans-serif; display: none; }
.mock-toast[data-open] { display: block; }
.mock-ai-tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; font-size: 10px; font-weight: 700;
               line-height: 16px; color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); vertical-align: middle; }
.mock-new-row td { background: #f5f8ff !important; }
.mock-dummy { color: #94a3b8; font-weight: 400; }

/* Pengganti viewer PDF bawaan browser (iframe PDF tidak terender di file:// tanpa plugin / di headless) */
.mock-pdf { background: #525659; overflow: hidden; }
.mock-pdf-bar { display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 18px; background: #323639; color: #fff; font-size: 13px; }
.mock-pdf-bar .mock-pdf-name { flex: 1; font-weight: 600; }
.mock-pdf-bar a { color: #fff; }
.mock-pdf-body { height: 552px; overflow: auto; padding: 16px 0; text-align: center; }
.mock-pdf-body img { width: min(640px, 92%); background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); }

/* alert sukses meniru alert-v1-warning */
.alert-v1-success { background: #ecfdf3; border: 1px solid #abefc6; }
.alert-v1-success h3 { color: #067647 !important; }

/* tombol Lihat Sample (usulan) */
.btn.mock-sample-btn, .btn.mock-sample-btn * { color: #334155 !important; }
.btn.mock-sample-btn { background: #fff !important; color: #334155 !important; border: 1px solid #cbd5e1 !important; }
.btn.mock-sample-btn:hover { background: #f1f5f9 !important; }
