/* =========================================
   WRAPPER
========================================= */

.route-reassign-wrapper {
  padding: 16px;

  padding-top: 92px;
  padding-bottom: 120px;

  background: #f5f7fb;

  min-height: 100vh;
}

/* =========================================
   HEADER
========================================= */

.route-reassign-header {
  position: fixed;

  top: 56px;
  left: 0;
  right: 0;

  z-index: 200;

  display: flex;
  align-items: center;
  gap: 14px;

  height: 64px;

  padding: 0 16px;

  background: #2563eb;

  border-bottom: 1px solid #e5e7eb;
}

.route-reassign-back-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: none;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  font-size: 18px;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.route-reassign-header-text {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

/* =========================================
   CARDS
========================================= */

.route-reassign-card,
.route-reassign-context-card,
.route-reassign-summary-card,
.route-reassign-warning-card {
  background: white;
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

/* =========================================
   CONTEXT
========================================= */

.route-reassign-context-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.route-reassign-tech-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.route-reassign-context-info {
  flex: 1;
}

.route-reassign-tech-name {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}

.route-reassign-date {
  font-size: 14px;
  color: #6b7280;
}

/* =========================================
   SECTION TITLES
========================================= */

.route-reassign-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 18px;
}

/* =========================================
   FORM
========================================= */

.route-reassign-field {
  margin-bottom: 18px;
}

.route-reassign-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

.route-reassign-input,
.route-reassign-select,
.route-reassign-textarea {
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 16px;
  background: #f9fafb;
  padding: 14px 16px;
  font-size: 15px;
  color: #111827;
  outline: none;
  transition: all 0.2s ease;
}

.route-reassign-input:focus,
.route-reassign-select:focus,
.route-reassign-textarea:focus {
  border-color: #2563eb;
  background: white;
}

.route-reassign-select {
  appearance: none;
}

.route-reassign-textarea {
  min-height: 110px;
  resize: none;
}

.route-reassign-help {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

/* =========================================
   VISITS HEADER
========================================= */

.route-reassign-visits-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.route-reassign-selected-counter {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 6px 12px;
  border-radius: 999px;
}

/* =========================================
   ACTIONS ROW
========================================= */

.route-reassign-actions-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.route-reassign-mini-btn {
  border: none;
  background: #f3f4f6;
  color: #374151;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}

/* =========================================
   VISITS LIST
========================================= */

.route-reassign-visits-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =========================================
   VISIT ITEM
========================================= */

.route-reassign-visit-item {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px;
  background: #fafafa;
  transition: all 0.2s ease;
}

.route-reassign-visit-item.selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.route-reassign-visit-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.route-reassign-checkbox {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.route-reassign-visit-content {
  flex: 1;
}

.route-reassign-visit-time {
  font-size: 13px;
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 4px;
}

.route-reassign-visit-client {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 5px;
}

.route-reassign-visit-address {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

/* =========================================
   SUMMARY
========================================= */

.route-reassign-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: #374151;
}

.route-reassign-summary-row strong {
  color: #111827;
  font-size: 15px;
}

/* =========================================
   WARNINGS
========================================= */

.route-reassign-warning-card {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.route-reassign-warning-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.4;
}

.route-reassign-warning-item + .route-reassign-warning-item {
  margin-top: 10px;
}

.route-reassign-warning-item i {
  margin-top: 2px;
}

/* =========================================
   BOTTOM ACTION
========================================= */

.route-reassign-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 70px;
  padding: 16px;
  background: linear-gradient(
    to top,
    rgba(245, 247, 251, 1),
    rgba(245, 247, 251, 0.92),
    rgba(245, 247, 251, 0)
  );
}

.route-reassign-apply-btn {
  width: 100%;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-size: 16px;
  font-weight: 800;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

/* =========================================
   EMPTY
========================================= */

.route-reassign-empty {
  text-align: center;
  padding: 30px 20px;
  color: #6b7280;
  font-size: 14px;
}
