/* ==== pdf common css: start ==== */
.pc-prog { margin: 14px 0; }
.pc-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.pc-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.pc-prog span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.pc-thumb { background: #fff; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; overflow: hidden; position: relative; }
.pc-thumb .pc-cv { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.pc-thumb img.pc-cv { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border-radius: 0; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 12px; }
.pc-file { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; }
.pc-fi { font-size: 26px; }
.pc-fn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-fn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-fn small { color: var(--muted); }
.pc-file .btn { padding: 8px 12px; min-height: 40px; font-size: 14px; flex: none; }
.pc-ib { font: inherit; font-size: 16px; min-width: 40px; min-height: 40px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; cursor: pointer; padding: 0 6px; }
.pc-ib:hover { border-color: var(--brand); color: var(--brand); }
.pc-dragging { opacity: .45; }
.pc-over { outline: 2px dashed var(--brand); outline-offset: 2px; }
.pc-check { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-weight: 600; font-size: 15px; cursor: pointer; }
.pc-check input { flex: none; }
.pc-note { font-size: 14px; color: var(--muted); margin: 6px 0; }
/* ==== pdf common css: end ==== */

.pj-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.pj-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.pj-selbar span { font-weight: 600; margin-right: auto; }
.pj-selbar .btn { padding: 8px 14px; min-height: 40px; font-size: 14px; }
.pj-pg { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: 2px solid transparent; border-radius: 12px; background: var(--bg); font: inherit; color: var(--ink); cursor: pointer; opacity: .55; min-width: 0; }
.pj-pg.on { opacity: 1; border-color: var(--brand); background: var(--brand-soft); }
.pj-pg.on::after { content: "✓"; position: absolute; top: 2px; right: 4px; background: var(--brand); color: var(--brand-ink); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.pj-th { width: 100%; aspect-ratio: 1 / 1.3; }
.pj-no { font-size: 13px; font-weight: 700; color: var(--muted); }
.pj-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.pj-res { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-width: 0; }
.pj-res img { width: 100%; aspect-ratio: 1 / 1.25; object-fit: contain; background: #fff; border-radius: 6px; margin: 0; max-height: none; }
.pj-res small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-one { padding: 6px 10px; min-height: 38px; font-size: 14px; }
