/* nabic-download.css — 폴더 저장 진행 UI (nabic-download-list.js) + 우측 하단 도크(nabic-download-dock.js).
   명예의전당·연구자료 v2 상세·공개 v2·장바구니 v2 공용 */
.ndl { border: 1px solid #dee2e6; border-radius: 6px; background: #fff; margin: 10px 0; font-size: 13px; overflow: hidden; }
.ndl-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #f8f9fa; border-bottom: 1px solid #eef1f4; }
.ndl-title { font-weight: 600; white-space: nowrap; }
.ndl-sum { flex: 1; color: #495057; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndl-stop, .ndl-skip { font: inherit; font-size: 12px; padding: 3px 10px; border: 1px solid #adb5bd; border-radius: 4px; background: #fff; color: #343a40; cursor: pointer; white-space: nowrap; }
.ndl-stop:hover, .ndl-skip:hover { background: #f1f3f5; }
.ndl-stop:disabled, .ndl-skip:disabled { opacity: .5; cursor: default; }
.ndl-bar { height: 6px; background: #e9ecef; }
.ndl-bar i { display: block; height: 100%; width: 0; background: #2c7be5; transition: width .2s; }
.ndl-rows { max-height: 320px; overflow: auto; }
.ndl-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 140px 150px auto; align-items: center; gap: 10px; padding: 6px 12px; border-bottom: 1px solid #f1f3f5; }
.ndl-row:last-child { border-bottom: none; }
.ndl-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndl-sz { color: #6c757d; text-align: right; font-size: 12px; white-space: nowrap; }
.ndl-prog { height: 6px; background: #e9ecef; border-radius: 3px; overflow: hidden; }
.ndl-prog i { display: block; height: 100%; width: 0; background: #2c7be5; transition: width .2s; }
.ndl-st { font-size: 12px; color: #495057; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndl-row.is-done .ndl-st { color: #198754; }
.ndl-row.is-skip .ndl-st { color: #51625a; }
.ndl-row.is-done .ndl-prog i { background: #198754; }
.ndl-row.is-skip .ndl-prog i { background: #aab5af; }
.ndl-row.is-retrying .ndl-st { color: #b7791f; }
.ndl-row.is-error .ndl-st { color: #c0392b; }
.ndl-row.is-error .ndl-prog i { background: #c0392b; }
.ndl-row.is-skipped .ndl-st, .ndl-row.is-stopped .ndl-st { color: #868e96; }
.ndl-row.is-skipped, .ndl-row.is-stopped { opacity: .7; }
.ndl.is-done .ndl-head { background: #eef8f1; }
.ndl.is-warn .ndl-head { background: #fdf3e7; }
@media (max-width: 720px) {
  .ndl-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ndl-sz, .ndl-prog { display: none; }
}

/* ── 우측 하단 도크 (nabic-download-dock.js, 2026-10-03) ──
   맨 위로·맨 아래로(#scroll-buttons, right 20 · 폭 50) 왼쪽에 선다 — 일괄 등록 도우미(.gd-fab)와 같은 자리 규칙. */
.ndd { position: fixed; right: 82px; bottom: 20px; z-index: 1040; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 13px; }
.ndd[hidden] { display: none; }
.ndd-pill { display: inline-flex; align-items: center; gap: 8px; max-width: min(420px, calc(100vw - 104px)); height: 44px; padding: 0 16px 0 12px;
  border: 1px solid var(--green-900, #1f4d3a); border-radius: 22px; background: var(--green-900, #1f4d3a); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.16); position: relative; overflow: hidden; }
.ndd-pill:hover { background: var(--green-800, #2b6b4f); border-color: var(--green-800, #2b6b4f); }
.ndd-pill-ic { font-size: 15px; line-height: 1; }
.ndd-pill-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndd.is-run .ndd-pill-ic { animation: ndd-bob 1.2s ease-in-out infinite; }
@keyframes ndd-bob { 50% { transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .ndd.is-run .ndd-pill-ic { animation: none; } }

.ndd-panel { width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 100px); display: flex; flex-direction: column;
  border: 1px solid #dee2e6; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.2); overflow: hidden; }
.ndd-panel[hidden] { display: none; }
.ndd-head { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid #eef1f4; }
.ndd-ttl { flex: 1; font-weight: 700; font-size: 14px; }
/* 단추 — 사이트 단추처럼 둥근 초록 테두리, 「재개」만 채운 초록 */
.ndd-ic, .ndd-btn, .ndd .ndl-stop, .ndd .ndl-skip { font: inherit; font-size: 12px; font-weight: 600; padding: 5px 14px; border: 1px solid #c9d6cf; border-radius: 999px;
  background: #fff; color: var(--green-900, #1f4d3a); cursor: pointer; white-space: nowrap; }
.ndd-ic:hover, .ndd-btn:hover, .ndd .ndl-stop:hover, .ndd .ndl-skip:hover { background: var(--green-100, #e8f1ec); border-color: var(--green-700, #357a5b); }
.ndd-ic[hidden] { display: none; }
.ndd-btn.primary, .ndd .ndl.is-warn .ndl-stop { border-color: var(--green-900, #1f4d3a); background: var(--green-900, #1f4d3a); color: #fff; }
.ndd-btn.primary:hover, .ndd .ndl.is-warn .ndl-stop:hover { background: var(--green-800, #2b6b4f); border-color: var(--green-800, #2b6b4f); }
.ndd-warn { margin: 0; padding: 10px 18px; background: #fff8e6; color: #7a5a12; font-size: 12px; line-height: 1.5; border-bottom: 1px solid #f3e3b5; }
.ndd-warn[hidden] { display: none; }
.ndd-confirm { padding: 12px 18px; background: #fdecea; border-bottom: 1px solid #f5c2bd; color: #842029; line-height: 1.5; }
.ndd-confirm[hidden] { display: none; }
.ndd-confirm p { margin: 0 0 8px; }
.ndd-confirm-btns { display: flex; gap: 8px; justify-content: flex-end; }
.ndd-list { min-height: 0; overflow: auto; }
/* 도크 안의 목록 — 머리는 「제목 · 단추」 한 줄 + 요약을 그 아래에 줄 단위로 */
.ndd .ndl { margin: 0; border: 0; border-radius: 0; }
.ndd .ndl-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 14px 18px; }
.ndd .ndl-sum { grid-column: 1 / -1; grid-row: 2; white-space: normal; line-height: 1.6; color: #3d4a44; }
.ndl-n { font-weight: 800; }
.ndl-n.is-ok { color: var(--green-700, #357a5b); }
.ndl-n.is-skip, .ndl-n.is-skipped { color: #6b7a72; }
.ndl-n.is-fail { color: #c0392b; }
.ndd .ndl-bar { height: 4px; }
.ndd .ndl-bar i, .ndd .ndl-prog i { background: var(--green-700, #357a5b); }
.ndd .ndl.is-done .ndl-bar, .ndd .ndl.is-warn .ndl-bar { display: none; }
.ndd .ndl-rows { max-height: min(50vh, 360px); }
.ndd .ndl-row { grid-template-columns: minmax(0, 1fr) 64px 80px 96px auto; gap: 10px; padding: 9px 18px; }
@media (max-width: 720px) {
  .ndd .ndl-row { grid-template-columns: minmax(0, 1fr) auto auto; }
}
/* 폰에서는 맨 위로 단추가 26px·right 10 으로 작아진다(99-renew.css) — 그 왼쪽으로 */
@media (max-width: 560px) {
  .ndd { right: 44px; bottom: 10px; }
  .ndd-pill { height: 38px; max-width: calc(100vw - 60px); }
  .ndd-panel { width: calc(100vw - 20px); margin-right: -34px; }
}
