/* ======================================================
   WEB JYD - IMPORTADOR MASIVO DESDE EXCEL
   Archivo: excel-import/excel-import.css
   ====================================================== */

#excelImportPanel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #ffffff;
}

#excelImportPanel h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.excel-import-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

#excelFileInput {
  max-width: 100%;
}

#excelPreviewBtn,
#excelImportBtn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

#excelPreviewBtn {
  background: #ececec;
  color: #111111;
}

#excelImportBtn {
  background: #111111;
  color: #ffffff;
}

#excelImportStatus {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f3f3;
  font-size: 14px;
}

#excelImportStatus.excel-error {
  background: #ffe5e5;
  color: #a10000;
}

@media (max-width: 700px) {
  .excel-import-row {
    flex-direction: column;
    align-items: stretch;
  }

  #excelPreviewBtn,
  #excelImportBtn {
    width: 100%;
  }
}

/* AJUSTE VISUAL PANEL EXCEL JYD */

#excelImportPanel {
  background: #161616;
  color: #ffffff;
  border: 1px solid #d4a84f;
}

#excelImportPanel h3 {
  color: #d4a84f;
}

#excelImportStatus {
  background: #242424;
  color: #ffffff;
  border: 1px solid #444444;
  font-weight: 600;
}

#excelImportStatus.excel-error {
  background: #3b1717;
  color: #ffb6b6;
  border-color: #8b3333;
}

#excelPreviewBtn {
  background: #d4a84f;
  color: #111111;
}

#excelImportBtn {
  background: #d4a84f;
  color: #111111;
}

#excelFileInput {
  color: #ffffff;
}

/* ======================================================
   WEB JYD - VISTA PREVIA PROFESIONAL IMPORTADOR EXCEL
   ====================================================== */

#excelImportPreview {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* RESUMEN GENERAL */

.excel-preview-summary {
  padding: 14px 16px;
  background: #202020;
  border: 1px solid #d4a84f;
  border-radius: 10px;
  color: #ffffff;
  line-height: 1.6;
}

.excel-preview-summary strong {
  color: #d4a84f;
  font-size: 16px;
}

/* BLOQUES ACTUALIZAR / CREAR */

.excel-preview-section {
  padding: 14px;
  border-radius: 10px;
  background: #1d1d1d;
  border: 1px solid #3a3a3a;
}

.excel-preview-section h4 {
  margin: 0 0 12px 0;
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* PRODUCTOS EXISTENTES */

.excel-preview-update-section {
  border-left: 4px solid #d4a84f;
}

.excel-preview-update-section h4 {
  color: #d4a84f;
}

/* PRODUCTOS NUEVOS */

.excel-preview-create-section {
  border-left: 4px solid #5fbf73;
}

.excel-preview-create-section h4 {
  color: #7ed991;
}

/* FILAS DE PRODUCTOS */

.excel-preview-row {
  padding: 9px 10px;
  margin-bottom: 6px;
  background: #272727;
  border-radius: 7px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.excel-preview-row:last-child {
  margin-bottom: 0;
}

/* CUANDO NO HAY PRODUCTOS EN UN GRUPO */

.excel-preview-empty {
  padding: 10px;
  background: #222222;
  border-radius: 7px;
  color: #aaaaaa;
  font-size: 14px;
  font-style: italic;
}

/* LISTAS GRANDES */

.excel-preview-section {
  max-height: 320px;
  overflow-y: auto;
}

.excel-preview-section::-webkit-scrollbar {
  width: 8px;
}

.excel-preview-section::-webkit-scrollbar-track {
  background: #181818;
}

.excel-preview-section::-webkit-scrollbar-thumb {
  background: #555555;
  border-radius: 10px;
}

.excel-preview-section::-webkit-scrollbar-thumb:hover {
  background: #d4a84f;
}

/* BOTONES */

#excelPreviewBtn,
#excelImportBtn {
  transition: transform 0.15s ease, opacity 0.15s ease;
}

#excelPreviewBtn:hover,
#excelImportBtn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

#excelPreviewBtn:active,
#excelImportBtn:active {
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 700px) {
  #excelImportPreview {
    gap: 10px;
  }

  .excel-preview-summary,
  .excel-preview-section {
    padding: 12px;
  }

  .excel-preview-row {
    font-size: 13px;
  }

  .excel-preview-section {
    max-height: 260px;
  }
}