#bulk-upload-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.65);
  backdrop-filter: blur(12px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s var(--ease, ease);
}

#bulk-upload-modal.active {
  display: flex;
  opacity: 1;
  animation: bulkFadeIn 0.3s ease forwards;
}

@keyframes bulkFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Modal Container ── */
.bulk-modal-wrapper {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 20px 60px rgba(10, 22, 40, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: bulkSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow: hidden;
}

@keyframes bulkSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Header ── */
.bulk-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  flex-shrink: 0;
}

.bulk-modal-header .bmh-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bulk-modal-header .bmh-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0a1628;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bulk-modal-header .bmh-title .bmh-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1B5E20, #2E7D32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.bulk-modal-header .bmh-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-left: 46px;
}

/* ── Step Progress (reuse similar pattern to guide modal) ── */
.bulk-step-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  min-width: 280px;
}

.bulk-step-dots {
  display: flex;
  gap: 32px;
  position: relative;
}

.bulk-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.3s ease;
  position: relative;
}

.bulk-step-dot::after {
  content: attr(data-label);
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: #94a3b8;
  white-space: nowrap;
  font-weight: 500;
  transition: color 0.3s ease;
}

.bulk-step-dot.active {
  background: #2E7D32;
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.2), 0 0 12px rgba(46, 125, 50, 0.3);
  transform: scale(1.2);
}

.bulk-step-dot.active::after {
  color: #2E7D32;
  font-weight: 600;
}

.bulk-step-dot.done {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.bulk-step-dot.done::after {
  color: #16a34a;
}

.bulk-step-track {
  width: 100%;
  height: 3px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.bulk-step-track-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #2E7D32);
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}

/* ── Close Button ── */
.btn-bulk-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-bulk-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg);
}

.btn-bulk-close svg {
  width: 18px;
  height: 18px;
}

/* ── Body ── */
.bulk-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  position: relative;
}

/* ── Step Views ── */
.bulk-step-view {
  display: none;
  padding: 28px;
  animation: bulkStepIn 0.35s ease forwards;
}

.bulk-step-view.active {
  display: block;
}

@keyframes bulkStepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ═══════════════════════════════════════════
   STEP 1: FILE UPLOAD
   ═══════════════════════════════════════════ */
.bulk-upload-intro {
  text-align: center;
  margin-bottom: 24px;
}

.bulk-upload-intro h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a1628;
  margin: 0 0 6px;
}

.bulk-upload-intro p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Dropzone */
.bulk-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.bulk-dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(46, 125, 50, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bulk-dropzone:hover,
.bulk-dropzone.dragover {
  border-color: #2E7D32;
  background: #f0fdf4;
}

.bulk-dropzone:hover::before,
.bulk-dropzone.dragover::before {
  opacity: 1;
}

.bulk-dropzone.loading {
  pointer-events: none;
  opacity: 0.7;
}

.bulk-dropzone-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
  filter: grayscale(0.3);
  transition: filter 0.3s ease;
}

.bulk-dropzone:hover .bulk-dropzone-icon {
  filter: none;
}

.bulk-dropzone-text {
  font-size: 0.95rem;
  color: #334155;
  font-weight: 600;
  margin-bottom: 4px;
}

.bulk-dropzone-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}

.bulk-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Upload status */
.bulk-upload-status {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.85rem;
}

.bulk-status-ok {
  color: #16a34a;
  font-weight: 600;
}

.bulk-status-error {
  color: #dc2626;
  font-weight: 600;
}

/* Template download card */
.bulk-template-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-top: 20px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.bulk-template-card:hover {
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.12);
}

.bulk-template-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.bulk-template-info {
  flex: 1;
}

.bulk-template-info strong {
  display: block;
  font-size: 0.9rem;
  color: #0a1628;
  margin-bottom: 2px;
}

.bulk-template-info span {
  font-size: 0.78rem;
  color: #64748b;
}

.btn-bulk-template {
  padding: 8px 18px;
  background: #2E7D32;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-bulk-template:hover {
  background: #1B5E20;
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   STEP 2: GLOBAL REMITENTE
   ═══════════════════════════════════════════ */
.bulk-rem-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0a1628;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bulk-rem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bulk-rem-grid .input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bulk-rem-grid .sf-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.bulk-rem-grid .sf-input,
.bulk-rem-grid .sf-select {
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
  background: #fff;
}

.bulk-rem-grid .sf-input:focus,
.bulk-rem-grid .sf-select:focus {
  border-color: #2E7D32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
  transform: translateY(-1px);
}

.bulk-rem-grid .sf-readonly {
  background: #f1f5f9;
  color: #64748b;
}

.bulk-rem-grid .full-width {
  grid-column: 1 / -1;
}

.bulk-rem-dir-selector {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bulk-rem-dir-selector label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0369a1;
  white-space: nowrap;
}

.bulk-rem-dir-selector select {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid #7dd3fc;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  background: #fff;
  outline: none;
}

/* ═══════════════════════════════════════════
   STEP 3: PREVIEW TABLE
   ═══════════════════════════════════════════ */
.bulk-preview-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.bps-total,
.bps-valid,
.bps-invalid {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bps-total {
  background: #f1f5f9;
  color: #334155;
}

.bps-valid {
  background: #dcfce7;
  color: #166534;
}

.bps-invalid {
  background: #fee2e2;
  color: #991b1b;
}

.bulk-preview-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  max-height: 400px;
  overflow-y: auto;
}

.bulk-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.bulk-preview-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.bulk-preview-table th {
  padding: 10px 12px;
  background: linear-gradient(135deg, #0a1628, #1e293b);
  color: #e2e8f0;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bulk-preview-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bulk-row-valid {
  background: #fff;
  transition: background 0.15s ease;
}

.bulk-row-valid:hover {
  background: #f0fdf4;
}

.bulk-row-invalid {
  background: #fef2f2;
  transition: background 0.15s ease;
}

.bulk-row-invalid:hover {
  background: #fee2e2;
}

.bulk-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.bulk-status-badge.ok {
  background: #dcfce7;
}

.bulk-status-badge.err {
  background: #fee2e2;
  cursor: help;
}

.bulk-err-text {
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 500;
}

.bulk-td-num {
  font-weight: 700;
  color: #64748b;
  font-size: 0.75rem;
  width: 40px;
}

/* ═══════════════════════════════════════════
   STEP 4: PROCESSING
   ═══════════════════════════════════════════ */
.bulk-processing-header {
  text-align: center;
  margin-bottom: 20px;
}

.bulk-processing-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a1628;
  margin: 0 0 8px;
}

/* Progress bar */
.bulk-progress-wrap {
  margin-bottom: 20px;
}

.bulk-progress-bar {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.bulk-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e, #16a34a);
  background-size: 200% 100%;
  animation: bulkProgressShine 2s linear infinite;
  border-radius: 12px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}

@keyframes bulkProgressShine {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.bulk-progress-info {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #64748b;
}

.bulk-progress-info strong {
  color: #0a1628;
}

/* Processing table */
.bulk-process-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  max-height: 350px;
  overflow-y: auto;
}

.bulk-process-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.bulk-process-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.bulk-process-table th {
  padding: 10px 12px;
  background: linear-gradient(135deg, #0a1628, #1e293b);
  color: #e2e8f0;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bulk-process-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.bulk-proc-pending {
  background: #fff;
}

.bulk-proc-processing {
  background: #fffbeb;
  animation: bulkRowPulse 1.5s ease-in-out infinite;
}

@keyframes bulkRowPulse {
  0%, 100% { background: #fffbeb; }
  50% { background: #fef3c7; }
}

.bulk-proc-success {
  background: #f0fdf4;
}

.bulk-proc-error {
  background: #fef2f2;
}

.proc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.proc-badge.pending {
  background: #f1f5f9;
  color: #64748b;
}

.proc-badge.processing {
  background: #fef3c7;
  color: #92400e;
}

.proc-badge.success {
  background: #dcfce7;
  color: #166534;
}

.proc-badge.error {
  background: #fee2e2;
  color: #991b1b;
}

.proc-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #2E7D32;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.proc-download-btn:hover {
  background: #1B5E20;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(27, 94, 32, 0.3);
}

.proc-err-msg {
  color: #dc2626;
  font-size: 0.75rem;
  cursor: help;
}

.proc-no-pdf {
  color: #94a3b8;
  font-size: 0.75rem;
  font-style: italic;
}

/* Mini spinner */
.bulk-mini-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #f59e0b;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.bulk-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid #cbd5e1;
  border-top-color: #2E7D32;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════
   STEP 5: RESULTS
   ═══════════════════════════════════════════ */
.bulk-results-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.brs-card {
  padding: 20px 28px;
  border-radius: 14px;
  text-align: center;
  min-width: 120px;
  transition: transform 0.2s ease;
}

.brs-card:hover {
  transform: translateY(-2px);
}

.brs-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.brs-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brs-total {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #334155;
}

.brs-total .brs-num { color: #0a1628; }

.brs-success {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
}

.brs-success .brs-num { color: #15803d; }

.brs-error {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
}

.brs-error .brs-num { color: #dc2626; }

.bulk-results-actions {
  text-align: center;
  margin-bottom: 24px;
}

.btn-bulk-download-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #2E7D32, #1B5E20);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-bulk-download-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 94, 32, 0.35);
}

.btn-bulk-download-all svg {
  width: 20px;
  height: 20px;
}

.bulk-results-section {
  margin-bottom: 20px;
}

.bulk-results-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a1628;
  margin: 0 0 10px;
}

.bulk-results-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.bulk-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.bulk-results-table th {
  padding: 8px 12px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.bulk-results-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.bulk-results-note {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

.bulk-results-skipped h4 {
  color: #92400e;
}

/* ═══════════════════════════════════════════
   ACTION BUTTONS (shared)
   ═══════════════════════════════════════════ */
.bulk-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
  gap: 12px;
}

.bulk-actions-left,
.bulk-actions-right {
  display: flex;
  gap: 10px;
}

.btn-bulk-secondary {
  padding: 10px 20px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-bulk-secondary:hover {
  background: #e2e8f0;
  color: #334155;
}

.btn-bulk-primary {
  padding: 10px 24px;
  background: linear-gradient(135deg, #2E7D32, #1B5E20);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-bulk-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 94, 32, 0.3);
}

.btn-bulk-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-bulk-primary svg {
  width: 18px;
  height: 18px;
}

/* ── Topbar "Carga Masiva" Button ── */
.btn-bulk-topbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #1B5E20, #2E7D32);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-bulk-topbar:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27, 94, 32, 0.35);
}

.btn-bulk-topbar svg {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .bulk-modal-wrapper {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
  }

  .bulk-modal-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
  }

  .bulk-step-bar {
    min-width: 100%;
    order: 3;
  }

  .bulk-step-view {
    padding: 20px;
  }

  .bulk-rem-grid {
    grid-template-columns: 1fr;
  }

  .bulk-results-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .brs-card {
    padding: 14px 20px;
  }

  .bulk-actions {
    flex-direction: column;
    padding: 14px 20px;
  }

  .bulk-actions-left,
  .bulk-actions-right {
    width: 100%;
    justify-content: stretch;
  }

  .bulk-actions-left button,
  .bulk-actions-right button {
    flex: 1;
    justify-content: center;
  }
}

/* ═══ REMITENTE CARDS ═══ */
.bulk-rem-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}

.bulk-rem-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid var(--g200, #e2e8f0);
  background: var(--white, #fff);
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.bulk-rem-card:hover {
  border-color: var(--navy-300, #60a5fa);
  background: var(--navy-50, #eff6ff);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.08);
}
.bulk-rem-card.active {
  border-color: var(--navy-400, #2563eb);
  background: var(--navy-50, #eff6ff);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.bulk-rem-card.active .bulk-rem-card-check {
  opacity: 1;
  transform: scale(1);
}

.bulk-rem-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy-50, #eff6ff);
  color: var(--navy-400, #2563eb);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bulk-rem-card-icon-new {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.bulk-rem-card-info { flex: 1; min-width: 0; }
.bulk-rem-card-name {
  display: block;
  font-size: .88rem; font-weight: 700;
  color: var(--navy-800, #1e293b);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bulk-rem-card-detail {
  display: block;
  font-size: .74rem; color: var(--g400, #94a3b8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.bulk-rem-card-tel {
  display: block;
  font-size: .72rem; color: var(--g300, #cbd5e1);
  font-family: var(--mono, monospace);
}

.bulk-rem-card-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--navy-400, #2563eb);
  color: white;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  flex-shrink: 0;
}

.bulk-rem-fav {
  color: #f59e0b;
  margin-right: 4px;
}

.bulk-rem-card-new { border-style: dashed; }
.bulk-rem-card-new:hover { border-color: #059669; background: #f0fdf4; }
.bulk-rem-card-new.active { border-color: #059669; background: #ecfdf5; box-shadow: 0 0 0 3px rgba(5,150,105,.12); }

.bulk-rem-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 20px;
  color: var(--g400, #94a3b8); font-size: .85rem;
}

.bulk-rem-loading {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 30px; color: var(--g400, #94a3b8); font-size: .85rem;
}

/* New Remitente Panel */
.bulk-rem-new-panel {
  margin-top: 16px;
  border: 1.5px solid var(--navy-400, #2563eb);
  border-radius: 14px;
  background: var(--navy-50, #eff6ff);
  padding: 0;
  animation: slideDown .3s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.bulk-rem-new-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(37,99,235,.1);
}
.bulk-rem-new-header h5 {
  margin: 0; font-size: .92rem; font-weight: 800;
  color: var(--navy-800, #1e293b);
}
.bulk-rem-new-close {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--g400, #94a3b8);
  transition: all .2s;
}
.bulk-rem-new-close:hover { background: rgba(0,0,0,.05); color: var(--red-500, #e11d48); }

.bulk-rem-new-panel .bulk-rem-grid { padding: 16px 20px 8px; }

.bulk-rem-save-check {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px 16px;
  font-size: .82rem; color: var(--navy-800, #1e293b);
  cursor: pointer;
}
.bulk-rem-save-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--navy-400, #2563eb);
}

/* Dark mode */
:root.dark-mode .bulk-rem-card { background: #1f2937; border-color: #374151; }
:root.dark-mode .bulk-rem-card:hover { border-color: #60a5fa; background: rgba(37,99,235,.08); }
:root.dark-mode .bulk-rem-card.active { border-color: #2563eb; background: rgba(37,99,235,.1); }
:root.dark-mode .bulk-rem-card-name { color: #f3f4f6; }
:root.dark-mode .bulk-rem-card-icon { background: rgba(37,99,235,.1); }
:root.dark-mode .bulk-rem-new-panel { background: rgba(37,99,235,.05); border-color: rgba(37,99,235,.3); }
:root.dark-mode .bulk-rem-new-header { border-color: rgba(37,99,235,.15); }
:root.dark-mode .bulk-rem-save-check { color: #e5e7eb; }