/* =====================================================================================
   FILE BARU (5 Des 2026): gaya TOOL "Pembuat Surat Lamaran" (alat/surat-lamaran-kerja.php)
   Formulir, pratinjau, dan aturan cetak (#cvPrint) DIPINJAM dari alat-pembuat-cv.css.
   File ini hanya: penyesuaian formulir + lembar surat A4 (.sl-page, 794 x 1123 px).
===================================================================================== */
.tl-page:has(#slApp) { max-width: 1280px; }
.sl-tpls { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 420px; }
@media (max-width: 575.98px) { .sl-tpls .cv-tpl small { display: block; } }
.cv-thumb.sl-th-resmi i:nth-child(1) { left: auto; right: 14%; width: 30%; height: 3%; background: #999; }
.cv-thumb.sl-th-modern i:nth-child(1) { background: var(--k); }
.cv-thumb.sl-th-modern::after { content: ""; position: absolute; left: 14%; right: 14%; top: 20%; height: 1px; background: var(--k); }
.cv-thumb.sl-th-kop::before { content: ""; position: absolute; inset: 0 0 80% 0; background: var(--k); }
.cv-thumb.sl-th-kop i:nth-child(1) { background: #fff; z-index: 1; top: 7%; }

.sl-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.sl-chip { font: inherit; font-size: .78rem; font-weight: 700; padding: .35rem .7rem; min-height: 34px; border-radius: 99px; border: 1px dashed var(--sol-border-soft); background: var(--sol-bg-card); color: var(--sol-text-main); cursor: pointer; }
.sl-chip:hover { border-color: var(--sol-accent); color: var(--sol-accent); }
.sl-chip:disabled { opacity: .4; cursor: default; border-style: solid; }
.sl-sign-img { flex-basis: 140px; width: 140px; height: 70px; background: #fff; }
.sl-sign-img img { object-fit: contain; }
#slFromCv[hidden] { display: none; }

/* ---------- Lembar surat ---------- */
.sl-page {
    --cv-acc: #1e3a5f; position: relative; width: 794px; min-height: 1123px; background: #fff; color: #1f1f1f; box-sizing: border-box;
    padding: 72px 84px 64px; font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14.5px; line-height: 1.6;
    text-align: left; letter-spacing: 0; overflow-wrap: anywhere; -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.sl-page *, .sl-page *::before, .sl-page *::after { box-sizing: border-box; }
.sl-page p, .sl-page ol, .sl-page table { margin: 0 0 .85em; }
.sl-page .sl-just { text-align: justify; }
.sl-page .sl-right { text-align: right; }
.sl-page .sl-meta td { padding: 0 .5em 0 0; vertical-align: top; }
.sl-page .sl-meta td:first-child { white-space: nowrap; }
.sl-page .sl-data { margin-left: 1.5em; border-collapse: collapse; }
.sl-page .sl-data td { padding: .05em .6em .05em 0; vertical-align: top; }
.sl-page .sl-data td:first-child { white-space: nowrap; width: 12em; }
.sl-page ol { padding-left: 2.6em; }
.sl-page .sl-sign { margin-top: 1.4em; }
.sl-page .sl-sign img { display: block; height: 72px; width: auto; max-width: 260px; margin: .25em 0; }
.sl-page .sl-sign .sl-gap { height: 72px; }
.sl-page .sl-sign strong { display: block; font-weight: 700; }
.sl-page .sl-ph { color: #b45309; background: #fef3c7; border-radius: 3px; padding: 0 .2em; }
.sl-page .cv-credit { position: absolute; right: 24px; bottom: 14px; font: 400 9px/1.2 "Segoe UI", Roboto, Arial, sans-serif; color: #a3a8ae; text-decoration: none; letter-spacing: .02em; }

/* Resmi: huruf Times, hitam-putih */
.sl-t-resmi { font-family: "Times New Roman", Times, Georgia, serif; font-size: 15.5px; line-height: 1.55; }

/* Modern: nama & kontak di atas, garis warna */
.sl-t-modern .sl-head { border-bottom: 2px solid var(--cv-acc); padding-bottom: .8em; margin-bottom: 1.6em; }
.sl-t-modern .sl-name { font-size: 1.9em; font-weight: 700; color: var(--cv-acc); line-height: 1.15; }
.sl-t-modern .sl-contact { color: #4a4a4a; font-size: .92em; margin-top: .25em; }
.sl-t-modern .sl-subj { font-weight: 700; }

/* Kop warna: pita berwarna penuh di atas */
.sl-t-kop { padding-top: 0; }
.sl-t-kop .sl-head { margin: 0 -84px 2em; padding: 34px 84px; background: var(--cv-acc); color: #fff; }
.sl-t-kop .sl-name { font-size: 1.9em; font-weight: 700; line-height: 1.15; }
.sl-t-kop .sl-contact { font-size: .92em; opacity: .9; margin-top: .25em; }
.sl-t-kop .sl-subj { font-weight: 700; color: var(--cv-acc); }

/* =====================================================================================
   BARU (5 Des 2026): LAMPIRAN HASIL SCAN + PAKET LAMARAN (alat-surat-lamaran-kerja.js bagian bawah)
   Pemindai layar penuh: assets/css/alat-pemindai.css.
===================================================================================== */
.sl-pk-intro { margin: 1.1rem 0 .7rem; padding-top: 1rem; border-top: 1px dashed var(--sol-border-soft); }
.sl-pk-intro strong { display: block; font-size: .95rem; color: var(--sol-text-bright); margin-bottom: .2rem; }
.sl-pk-intro span { display: block; font-size: .82rem; line-height: 1.5; color: var(--sol-text-muted); }
.sl-files { display: grid; gap: .6rem; }
.sl-file { border: 1px solid var(--sol-border-soft); border-left: 4px solid var(--sol-border-soft); border-radius: .8rem; background: var(--sol-bg-card); padding: .7rem .8rem; min-width: 0; }
.sl-file.is-ok { border-left-color: var(--sol-success); }
.sl-file-h { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.sl-file-h b { font-size: .88rem; color: var(--sol-text-bright); min-width: 0; overflow-wrap: anywhere; }
.sl-file-st { flex: 0 0 auto; font-size: .74rem; font-weight: 800; color: var(--sol-text-muted); }
.sl-file.is-ok .sl-file-st { color: var(--sol-success); }
.sl-file-note { font-size: .8rem; line-height: 1.5; color: var(--sol-text-muted); margin: .35rem 0 0; }
.sl-thumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.sl-th { width: 58px; height: 74px; padding: 0; border-radius: .4rem; border: 1px solid var(--sol-border-soft); background: #fff; overflow: hidden; cursor: zoom-in; }
.sl-th img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sl-th:hover, .sl-th:focus-visible { border-color: var(--sol-accent); outline: none; box-shadow: 0 0 0 2px var(--sol-accent-soft); }
.sl-file-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .6rem; }
.sl-file-acts .tl-btn svg { color: currentColor; }
.sl-fit { margin: 0; flex: 1 1 170px; min-width: 0; }
.sl-fit select.tl-input { min-height: 38px; padding: .3rem .6rem; font-size: .8rem; width: 100%; }

.sl-pack { margin-top: .9rem; padding: .85rem 1rem; border-radius: .9rem; background: var(--sol-bg-main); border: 1px solid var(--sol-border-soft); }
.sl-pack:empty { display: none; }
.sl-pack h3 { font-size: .9rem; font-weight: 800; color: var(--sol-text-bright); margin: 0 0 .45rem; }
.sl-pack ol { margin: 0 0 .75rem; padding-left: 1.4rem; font-size: .84rem; line-height: 1.55; }
.sl-pack li.is-ok { color: var(--sol-text-main); }
.sl-pack li.is-miss { color: var(--sol-text-muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--sol-text-muted) 50%, transparent); }
.sl-pack li small { color: var(--sol-text-muted); }
.sl-pack li.is-miss small { color: var(--sol-warning); text-decoration: none; display: inline-block; }
.sl-pk-size { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin-bottom: .75rem; }
.sl-pk-size .tl-seg { flex: 0 0 auto; }
.sl-pk-size .tl-hint { flex: 1 1 100%; }

/* Penampil halaman hasil scan */
.sl-viewer { position: fixed; inset: 0; z-index: 2550; background: rgba(0, 0, 0, .72); display: flex; align-items: center; justify-content: center; padding: .75rem; }
.sl-viewer[hidden] { display: none; }
.sl-viewer-box { width: 100%; max-width: 640px; max-height: 100%; display: flex; flex-direction: column; background: var(--sol-bg-card); color: var(--sol-text-main); border-radius: 1rem; padding: .8rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
.sl-viewer-h { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.sl-viewer-h b { font-size: .9rem; color: var(--sol-text-bright); }
.sl-viewer-h .ps-x { font-size: 1.5rem; line-height: 1; }
.sl-viewer-img { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; background: var(--sol-bg-main); border-radius: .6rem; padding: .5rem; }
.sl-viewer-img img { max-width: 100%; max-height: 62vh; object-fit: contain; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.sl-viewer-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: .7rem; }
.sl-viewer-acts .sl-del { color: var(--sol-danger, #dc322f); }

/* ---------- Cetak paket (di dalam #cvPrint; aturan dasar cetak di alat-pembuat-cv.css) ----------
   @page pkz = tanpa tepi (halaman 1 lembar & lampiran), @page pkm = tepi 12 mm (cadangan lembar >1 halaman).
   .pk-multi.is-clone: browser yang mendukung box-decoration-break -> tepi 12 mm dibuat dengan padding yang
   diulang di tiap potongan halaman, sehingga halaman pertama CV tetap rapat ke atas (pita warna penuh). */
#cvPrint .pk-b { width: 794px; box-sizing: border-box; }
@media print {
    #cvPrint .pk-b + .pk-b { break-before: page; }
    #cvPrint .pk-one, #cvPrint .pk-pg { page: pkz; height: 296mm; overflow: hidden; }
    #cvPrint .pk-one > .cv-page, #cvPrint .pk-one > .sl-page { height: 296mm; min-height: 0; overflow: hidden; box-shadow: none; }
    #cvPrint .pk-multi { page: pkm; }
    #cvPrint .pk-multi > .cv-page, #cvPrint .pk-multi > .sl-page { min-height: 0; box-shadow: none; }
    #cvPrint .pk-multi.is-clone { page: pkz; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 12mm 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    #cvPrint .pk-multi.is-clone > .cv-page, #cvPrint .pk-multi.is-clone > .sl-page { margin: -12mm 0; }
    #cvPrint .pk-pg { display: flex; align-items: center; justify-content: center; padding: 10mm; background: #fff; }
    #cvPrint .pk-pg > img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
    #cvPrint .pk-grid { display: block; padding: 15mm; }
    #cvPrint .pk-row { display: flex; justify-content: center; align-items: flex-start; gap: 8mm; margin-bottom: 8mm; }
    #cvPrint .pk-row img { display: block; object-fit: fill; }
}
