/* Import Secondary Sales Styles */
.import-container {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  padding-top: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.import-steps {
  display: flex;
  margin-bottom: 25px;
  position: relative;
}

.import-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0e0e0;
  z-index: 1;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-weight: bold;
  border: 3px solid #fff;
}

.step.active .step-number {
  background: #007bff;
  color: white;
}

.step.completed .step-number {
  background: #28a745;
  color: white;
}

.step-text {
  font-size: 14px;
  color: #888;
}

.step.active .step-text {
  color: #007bff;
  font-weight: 500;
}

.step.completed .step-text {
  color: #28a745;
}

.import-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background: #f9f9f9;
}

.upload-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #fafafa;
}

.upload-area:hover {
  border-color: #007bff;
  background: #f0f7ff;
}

.upload-area i {
  font-size: 48px;
  color: #6c757d;
  margin-bottom: 15px;
}

.upload-area.drag-over {
  border-color: #007bff;
  background: #e6f2ff;
}

.file-input {
  display: none;
}

.validation-summary {
  margin-top: 20px;
  display: none;
}

.validation-item {
  padding: 10px 15px;
  margin-bottom: 5px;
  border-radius: 4px;
}

.validation-error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.validation-warning {
  background: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

.validation-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.progress-container {
  margin: 20px 0;
  display: none;
}

.custom-progress {
  height: 25px;
  border-radius: 5px;
  overflow: hidden;
  background: #e9ecef;
}

.custom-progress-bar {
  height: 100%;
  background: #007bff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  transition: width 0.3s;
}

.import-results {
  margin-top: 20px;
  display: none;
}

.result-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

/* Custom Modal Styles */
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s;
}

.custom-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.custom-modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s;
  max-height: 80vh;
  overflow-y: auto;
}

.custom-modal.show .custom-modal-content {
  transform: scale(1);
}

.custom-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.custom-modal-title {
  margin: 0;
  font-size: 1.25rem;
}

.custom-modal-body {
  padding: 20px;
}

.custom-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.mapping-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.mapping-row label {
  width: 150px;
  font-weight: bold;
}
.mapping-row select {
  flex: 1;
}

/* Table Styles for Modals */
.table-responsive {
  max-height: 50vh;
  overflow-y: auto;
}

.table {
  margin-bottom: 0;
}

.table th,
.table td {
  vertical-align: middle;
  font-size: 0.9rem;
}

.table th {
  background: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .import-steps {
    flex-direction: column;
    gap: 15px;
  }

  .import-steps::before {
    display: none;
  }

  .step {
    display: flex;
    align-items: center;
    text-align: left;
  }

  .step-number {
    margin: 0 15px 0 0;
  }

  .custom-modal-content {
    width: 95%;
    max-width: none;
  }

  .table-responsive {
    font-size: 0.8rem;
  }
}
