/* Nexvo Demo Kit — dışa aktarma, evrak yükleme ve demo yönetimi */
.nq-menu-wrap { position: relative; }
.nq-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 290px; padding: 6px; display: none;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}
.nq-menu.open { display: block; }
.nq-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 6px; background: none;
  color: var(--ink); text-align: left; font-weight: 600;
}
.nq-menu button:hover { background: var(--surface-2); }
.nq-menu button small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.nq-menu .nq-ico { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; font-size: 11px; font-weight: 800; color: #fff; }
.nq-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.nq-menu .nq-danger { color: var(--danger); }
.nq-menu .nq-label { margin: 8px 10px 2px; color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.nq-menu .nq-label:first-child { margin-top: 4px; }
.nq-sec:not(:has(button)) { display: none; }
.nq-sec + .nq-sec { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 2px; }
.nq-menu-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.nq-menu-head strong { display: block; color: var(--ink); }
.nq-menu-head small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.nq-menu-head .avatar { flex: 0 0 auto; }
.nq-profile-menu { min-width: 300px; }
.nq-profile-toggle::after { content: "▾"; margin-left: 2px; font-size: 11px; color: var(--muted); }
.nq-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; }

.nq-ico.pdf { background: #b42318; } .nq-ico.xls { background: #1d7a46; } .nq-ico.doc { background: #2b579a; }
.nq-ico.zip { background: #7c3aed; } .nq-ico.img { background: #0e7490; } .nq-ico.vid { background: #9333ea; }
.nq-ico.json { background: #334155; } .nq-ico.file { background: #64748b; } .nq-ico.rep { background: #0f172a; }

/* Sürükle-bırak alanı */
.nq-hidden-input { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }
.nq-drop {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 4px;
  padding: 14px 16px; border: 1.5px dashed rgba(37, 99, 235, 0.35); border-radius: 8px;
  background: rgba(37, 99, 235, 0.03); cursor: pointer; transition: background .15s, border-color .15s;
  font-weight: 500; text-transform: none; letter-spacing: 0;
}
.nq-drop[hidden] { display: none; }
.nq-drop:hover, .nq-drop.drag { border-color: var(--brand); background: rgba(37, 99, 235, 0.08); }
.nq-drop-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: rgba(37, 99, 235, 0.12); color: var(--brand); font-size: 18px; font-weight: 800; }
.nq-drop strong { display: block; color: var(--ink); font-size: 13px; }
.nq-drop span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.embedded-doc-row .nq-drop { flex: 1 1 260px; }
.nq-file-chip { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 500; text-transform: none; letter-spacing: 0; }
.nq-file-chip .nq-ico { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; color: #fff; font-size: 10px; font-weight: 800; }
.nq-file-chip .nq-meta { flex: 1; min-width: 0; }
.nq-file-chip .nq-meta strong { display: block; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-file-chip .nq-meta span { font-size: 11.5px; color: var(--muted); }
.nq-progress { height: 4px; margin-top: 6px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.nq-progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .12s linear; }
.nq-file-chip.done .nq-progress { display: none; }
.nq-file-chip .nq-ok { color: var(--ok); font-weight: 800; font-size: 12px; }
.nq-file-chip button { padding: 5px 10px; font-size: 12px; }

.nq-file-link { color: var(--brand); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; cursor: pointer; }

/* Katman ve pencereler */
dialog.nq-overlay { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; background: transparent; place-items: center; overflow: auto; }
dialog.nq-overlay[open] { display: grid; }
dialog.nq-overlay::backdrop { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(2px); }
.nq-card { width: min(460px, 100%); padding: 24px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px rgba(15, 23, 42, 0.3); }
.nq-card h3 { margin: 0 0 4px; font-size: 17px; }
.nq-card p { margin: 0; color: var(--muted); }
.nq-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.nq-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.nq-steps li::before { content: ""; flex: 0 0 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.nq-steps li.active { color: var(--ink); }
.nq-steps li.active::before { border-color: var(--brand); border-right-color: transparent; animation: nq-spin .7s linear infinite; }
.nq-steps li.done { color: var(--ink); }
.nq-steps li.done::before { content: "✓"; display: grid; place-items: center; border: 0; background: var(--ok); color: #fff; font-size: 11px; font-weight: 800; }
.nq-bar { height: 6px; margin-top: 18px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.nq-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s ease; }
@keyframes nq-spin { to { transform: rotate(360deg); } }

.nq-viewer { width: min(1100px, 100%); height: min(88vh, 900px); display: flex; flex-direction: column; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 30px 70px rgba(15, 23, 42, 0.3); }
.nq-viewer-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.nq-viewer-head .nq-ico { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; color: #fff; font-size: 10px; font-weight: 800; }
.nq-viewer-head div { flex: 1; min-width: 0; }
.nq-viewer-head strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-viewer-head span { color: var(--muted); font-size: 12px; }
.nq-viewer-body { flex: 1; min-height: 0; background: #eef1f5; display: grid; place-items: center; overflow: auto; }
.nq-viewer-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.nq-viewer-body img, .nq-viewer-body video { max-width: 100%; max-height: 100%; }
.nq-viewer-body pre { align-self: stretch; justify-self: stretch; margin: 0; padding: 20px; background: #fff; white-space: pre-wrap; font-size: 13px; overflow: auto; }
.nq-noprev { text-align: center; padding: 30px; color: var(--muted); }
.nq-noprev .nq-ico { width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 12px; color: #fff; font-size: 16px; font-weight: 800; }
.nq-sheet { align-self: stretch; justify-self: stretch; overflow: auto; background: #fff; }
.nq-sheet table { border-collapse: collapse; font-size: 12.5px; }
.nq-sheet td, .nq-sheet th { border: 1px solid #e2e8f0; padding: 6px 10px; white-space: nowrap; }
.nq-sheet th { background: #f1f5f9; position: sticky; top: 0; }

.nq-library { width: min(980px, 100%); max-height: 88vh; display: flex; flex-direction: column; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 30px 70px rgba(15, 23, 42, 0.3); }
.nq-library-body { padding: 18px; overflow: auto; }
.nq-library table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.nq-library th { text-align: left; font-size: 11.5px; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.nq-library td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.nq-library td .nq-ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: #fff; font-size: 10px; font-weight: 800; }
.nq-library td button { padding: 5px 10px; font-size: 12px; margin-left: 4px; }
.nq-library .nq-empty { padding: 30px; text-align: center; color: var(--muted); }
.nq-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nq-stats div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
.nq-stats span { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; }
.nq-stats strong { font-size: 20px; }
.nq-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.nq-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.nq-choice button { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; }
.nq-choice button:hover { border-color: var(--brand); background: rgba(37, 99, 235, 0.05); }
.nq-choice .nq-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: #fff; font-size: 11px; font-weight: 800; }

@media (max-width: 720px) {
  .nq-stats { grid-template-columns: 1fr; }
  .nq-library td:nth-child(4), .nq-library th:nth-child(4), .nq-library td:nth-child(5), .nq-library th:nth-child(5) { display: none; }
  .nq-menu { position: fixed; left: 16px; right: 16px; top: 64px; min-width: 0; overflow: auto; }
}
