/* ── Shell ────────────────────────────────────────────────── */
.nectimg-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* ── Dropzone ─────────────────────────────────────────────── */
.nectimg-dropzone {
  border: 2px dashed #dee2e6;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
}
.nectimg-dropzone:hover,
.nectimg-dropzone--hover {
  border-color: #10b981;
  background: #f0fdf9;
}
.nectimg-dropzone-inner {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
}
.nectimg-shell .nectimg-dropzone,
.nectimg-shell .nectimg-loading {
  flex: 1 1 0%;
  min-height: 150px;
}

/* ── Free banner ──────────────────────────────────────────── */
.nectimg-free-banner {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: #6c757d;
  margin-top: 0.75rem;
  flex: 0 0 auto;
}
.nectimg-free-banner a {
  color: #10b981;
  text-decoration: none;
}
.nectimg-free-banner a:hover {
  text-decoration: underline;
}

/* ── List wrapper (scrollable) ────────────────────────────── */
.nectimg-list-wrapper {
  flex: 1 1 0%;
  min-height: 150px;
  overflow: auto;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

/* ── Table ────────────────────────────────────────────────── */
.nectimg-table {
  font-size: 0.85rem;
  margin-bottom: 0;
}
.nectimg-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #dee2e6;
  background: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* ── Checkbox column ──────────────────────────────────────── */
.nectimg-col-chk {
  width: 2rem;
  text-align: center;
  vertical-align: middle;
}
.nectimg-col-chk .form-check-input {
  cursor: pointer;
  accent-color: #10b981;
  width: 1rem;
  height: 1rem;
}

/* ── Filename cell ────────────────────────────────────────── */
.nectimg-col-name {
  max-width: 220px;
}
.nectimg-filename {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: #343a40;
}

/* ── Format badge ─────────────────────────────────────────── */
.nectimg-fmt-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  background: #e9ecef;
  color: #495057;
  border-radius: 3px;
  padding: 0.15rem 0.4rem;
  letter-spacing: 0.5px;
}

/* ── Status ───────────────────────────────────────────────── */
.nectimg-status {
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nectimg-status--pending    { color: #6c757d; }
.nectimg-status--converting { color: #0d6efd; }
.nectimg-status--done       { color: #10b981; }
.nectimg-status--error      { color: #dc3545; }

/* ── Select ───────────────────────────────────────────────── */
.nectimg-select {
  font-size: 0.8rem;
  padding: 0.2rem 1.6rem 0.2rem 0.5rem;
}

/* ── Action bar ───────────────────────────────────────────── */
.nectimg-action-bar {
  position: relative;
  background: #fff;
  border-top: 1px solid #dee2e6;
  padding: 0.65rem 1rem;
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  z-index: 10;
  flex: 0 0 auto;
}

/* ── Alert ────────────────────────────────────────────────── */
.nectimg-alert {
  font-size: 0.85rem;
  flex: 0 0 auto;
}

/* ── Mobile: stack layout hints ──────────────────────────── */
@media (max-width: 575px) {
  .nectimg-col-name { max-width: 140px; }
  .nectimg-action-bar { padding: 0.5rem 0.75rem; }
}
