/* =========================================
   ROUTE ASSIGNMENT CARD
========================================= */

.route-card {
  margin-top: 18px;
  border: 2px dashed #4c84ff;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

/* =========================================
   HEADER
========================================= */

.route-card-header {
  padding: 18px 18px 12px;
  background: #fff;
}

.route-card-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.route-card-header p {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: #9ca3af;
}

/* =========================================
   LIST
========================================= */

.route-card-list {
  width: 100%;
  background: #fff;
}

/* =========================================
   ITEM
========================================= */

.route-card-item {
  width: 100%;
  min-height: 58px;

  border: none;
  border-top: 1px solid #eef2f7;

  background: #fff;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  cursor: pointer;

  transition: background 0.15s ease;
}

.route-card-item:first-child {
  border-top: 1px solid #eef2f7;
}

.route-card-item:active {
  background: #f8fafc;
}

/* =========================================
   LEFT
========================================= */

.route-card-item-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* =========================================
   LABEL
========================================= */

.route-card-label {
  font-size: 16px;
  font-weight: 600;
  color: #2563eb;
  line-height: 1.2;
}

/* =========================================
   VALUE
========================================= */

.route-card-value {
  margin-top: 2px;

  font-size: 13px;
  font-weight: 400;

  color: #9ca3af;

  line-height: 1.2;
}

/* =========================================
   ICON
========================================= */

.route-card-item i {
  font-size: 16px;
  color: #9ca3af;
}

/* ========================================================================================================================== */

/* =========================================
   ROUTE TECH DRAWER
========================================= */

.route-tech-overlay {
  position: fixed;
  inset: 0;

  background: rgba(15, 23, 42, 0.4);

  display: none;
  align-items: flex-end;
  justify-content: center;

  z-index: 9999;
}

.route-tech-overlay.active {
  display: flex;
}

.route-tech-drawer {
  width: 100%;
  max-width: 500px;

  background: #fff;

  border-radius: 24px 24px 0 0;

  max-height: 80vh;

  overflow: hidden;

  animation: routeDrawerUp 0.2s ease;
}

@keyframes routeDrawerUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* =========================================
   HEADER
========================================= */

.route-tech-header {
  height: 64px;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid #eef2f7;
}

.route-tech-header h3 {
  margin: 0;

  font-size: 18px;
  font-weight: 700;

  color: #111827;
}

.route-tech-close {
  width: 38px;
  height: 38px;

  border: none;
  border-radius: 10px;

  background: #f3f4f6;

  cursor: pointer;
}

/* =========================================
   LIST
========================================= */

.route-tech-list {
  max-height: calc(80vh - 64px);

  overflow-y: auto;
}

/* =========================================
   ITEM
========================================= */

.route-tech-item {
  width: 100%;

  min-height: 62px;

  border: none;
  border-bottom: 1px solid #eef2f7;

  background: #fff;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  cursor: pointer;
}

.route-tech-item-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.route-tech-name {
  font-size: 15px;
  font-weight: 600;

  color: #111827;
}

.route-tech-role {
  margin-top: 2px;

  font-size: 12px;

  color: #9ca3af;
}

.route-tech-check {
  font-size: 18px;

  color: #2563eb;
}

/* ========================================================================================================================== */

/* =========================================
   ROUTE DAYS DRAWER
========================================= */

.route-days-overlay {
  position: fixed;
  inset: 0;

  background: rgba(15, 23, 42, 0.4);

  display: none;
  align-items: flex-end;
  justify-content: center;

  z-index: 9999;
}

.route-days-overlay.active {
  display: flex;
}

.route-days-drawer {
  width: 100%;
  max-width: 500px;

  background: #fff;

  border-radius: 24px 24px 0 0;

  max-height: 85vh;

  overflow: hidden;

  animation: routeDrawerUp 0.2s ease;
}

/* =========================================
   HEADER
========================================= */

.route-days-header {
  height: 64px;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid #eef2f7;
}

.route-days-header h3 {
  margin: 0;

  font-size: 18px;
  font-weight: 700;

  color: #111827;
}

.route-days-close {
  width: 38px;
  height: 38px;

  border: none;
  border-radius: 10px;

  background: #f3f4f6;

  cursor: pointer;
}

/* =========================================
   LIST
========================================= */

.route-days-list {
  padding: 10px 0;
}

/* =========================================
   ITEM
========================================= */

.route-day-item {
  width: 100%;

  min-height: 56px;

  border: none;
  background: #fff;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  cursor: pointer;
}

.route-day-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.route-day-checkbox {
  width: 22px;
  height: 22px;

  border-radius: 6px;

  border: 2px solid #cbd5e1;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;

  color: #fff;
}

.route-day-checkbox.active {
  background: #2563eb;
  border-color: #2563eb;
}

.route-day-name {
  font-size: 15px;
  font-weight: 600;

  color: #111827;
}

/* =========================================
   FOOTER
========================================= */

.route-days-footer {
  padding: 18px;

  border-top: 1px solid #eef2f7;
}

/* ========================================================================================================================== */

/* =========================================
   ROUTE FREQUENCY DRAWER
========================================= */

.route-frequency-overlay {
  position: fixed;
  inset: 0;

  background: rgba(15, 23, 42, 0.4);

  display: none;
  align-items: flex-end;
  justify-content: center;

  z-index: 9999;
}

.route-frequency-overlay.active {
  display: flex;
}

.route-frequency-drawer {
  width: 100%;
  max-width: 500px;

  background: #fff;

  border-radius: 24px 24px 0 0;

  overflow: hidden;

  animation: routeDrawerUp 0.2s ease;
}

/* =========================================
   HEADER
========================================= */

.route-frequency-header {
  height: 64px;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid #eef2f7;
}

.route-frequency-header h3 {
  margin: 0;

  font-size: 18px;
  font-weight: 700;

  color: #111827;
}

.route-frequency-close {
  width: 38px;
  height: 38px;

  border: none;
  border-radius: 10px;

  background: #f3f4f6;

  cursor: pointer;
}

/* =========================================
   LIST
========================================= */

.route-frequency-list {
  padding: 10px 0;
}

/* =========================================
   ITEM
========================================= */

.route-frequency-item {
  width: 100%;

  min-height: 58px;

  border: none;
  background: #fff;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  cursor: pointer;
}

.route-frequency-name {
  font-size: 15px;
  font-weight: 600;

  color: #111827;
}

.route-frequency-check {
  color: #2563eb;
}

/* ========================================================================================================================== */

/* =========================================
   ROUTE START DRAWER
========================================= */

.route-start-overlay {
  position: fixed;
  inset: 0;

  background: rgba(15, 23, 42, 0.4);

  display: none;
  align-items: flex-end;
  justify-content: center;

  z-index: 9999;
}

.route-start-overlay.active {
  display: flex;
}

.route-start-drawer {
  width: 100%;
  max-width: 500px;

  background: #fff;

  border-radius: 24px 24px 0 0;

  overflow: hidden;

  animation: routeDrawerUp 0.2s ease;
}

/* =========================================
   HEADER
========================================= */

.route-start-header {
  height: 64px;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid #eef2f7;
}

.route-start-header h3 {
  margin: 0;

  font-size: 18px;
  font-weight: 700;

  color: #111827;
}

.route-start-close {
  width: 38px;
  height: 38px;

  border: none;
  border-radius: 10px;

  background: #f3f4f6;

  cursor: pointer;
}

/* =========================================
   BODY
========================================= */

.route-start-body {
  padding: 24px 18px;
}

.route-start-date-input {
  width: 100%;
  height: 52px;

  border: 1px solid #dbe3ef;
  border-radius: 14px;

  padding: 0 14px;

  font-size: 16px;

  background: #fff;
}

/* =========================================
   FOOTER
========================================= */

.route-start-footer {
  padding: 18px;

  border-top: 1px solid #eef2f7;
}

/* ========================================================================================================================== */

/* =========================================
   ROUTE STOP DRAWER
========================================= */

.route-stop-overlay {
  position: fixed;
  inset: 0;

  background: rgba(15, 23, 42, 0.4);

  display: none;
  align-items: flex-end;
  justify-content: center;

  z-index: 9999;
}

.route-stop-overlay.active {
  display: flex;
}

.route-stop-drawer {
  width: 100%;
  max-width: 500px;

  background: #fff;

  border-radius: 24px 24px 0 0;

  overflow: hidden;

  animation: routeDrawerUp 0.2s ease;
}

/* =========================================
   HEADER
========================================= */

.route-stop-header {
  height: 64px;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid #eef2f7;
}

.route-stop-header h3 {
  margin: 0;

  font-size: 18px;
  font-weight: 700;

  color: #111827;
}

.route-stop-close {
  width: 38px;
  height: 38px;

  border: none;
  border-radius: 10px;

  background: #f3f4f6;

  cursor: pointer;
}

/* =========================================
   BODY
========================================= */

.route-stop-body {
  padding: 24px 18px;
}

.route-stop-date-input {
  width: 100%;
  height: 52px;

  border: 1px solid #dbe3ef;
  border-radius: 14px;

  padding: 0 14px;

  font-size: 16px;

  background: #fff;
}

/* =========================================
   FOOTER
========================================= */

.route-stop-footer {
  padding: 18px;

  border-top: 1px solid #eef2f7;
}

/* ========================================================================================================================== */
/* =========================================
   ROUTE ASSIGNMENT CARD
========================================= */

.route-assignment-card {
  background: #fff;
  border-radius: 18px;
  margin-top: 18px;

  border: 1px solid #e5e7eb;

  overflow: hidden;
}

.route-assignment-header {
  padding: 18px 18px 10px;
}

.route-assignment-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.route-assignment-header p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #9ca3af;
}

.route-assignment-list {
  width: 100%;
}

.route-assignment-item {
  width: 100%;
  height: 58px;

  border: none;
  border-top: 1px solid #f1f5f9;

  background: #fff;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  cursor: pointer;

  transition: background 0.2s ease;
}

.route-assignment-item:active {
  background: #f8fafc;
}

.route-assignment-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.route-assignment-label strong {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.route-assignment-label small {
  margin-top: 2px;

  font-size: 12px;
  color: #9ca3af;
}

.route-assignment-arrow {
  font-size: 18px;
  color: #cbd5e1;
}

/* =========================================
   GENERATE ROUTE BUTTON
========================================= */

.route-assignment-footer {
  padding: 16px;
  border-top: 1px solid #eef2f7;
  background: #fff;
}

.route-generate-btn {
  width: 100%;
  height: 48px;

  border: none;
  border-radius: 14px;

  background: #2563eb;
  color: #fff;

  font-size: 15px;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  cursor: pointer;

  transition: all 0.2s ease;
}

.route-generate-btn:hover {
  background: #1d4ed8;
}

.route-generate-btn:active {
  transform: scale(0.98);
}

.route-generate-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.route-generate-btn i {
  font-size: 16px;
}

/* =========================================
   SPINNER
========================================= */

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ========================================================================================================================== */

/* =========================================
   OVERLAY
========================================= */

.route-service-overlay {
  position: fixed;
  inset: 0;

  background: rgba(15, 23, 42, 0.45);

  z-index: 4000;

  display: flex;
  justify-content: flex-end;

  opacity: 0;
  pointer-events: none;

  transition: 0.2s ease;
}

.route-service-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================
   DRAWER
========================================= */

.route-service-drawer {
  width: 100%;
  max-width: 420px;
  height: 100%;

  background: #fff;

  transform: translateX(100%);
  transition: 0.25s ease;

  display: flex;
  flex-direction: column;
}

.route-service-overlay.active .route-service-drawer {
  transform: translateX(0);
}

/* =========================================
   HEADER
========================================= */

.route-service-header {
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 18px;

  border-bottom: 1px solid #e5e7eb;
}

.route-service-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.route-service-close {
  width: 38px;
  height: 38px;

  border: none;
  background: #f3f4f6;

  border-radius: 10px;

  cursor: pointer;
}

/* =========================================
   BODY
========================================= */

.route-service-body {
  flex: 1;

  overflow-y: auto;

  padding: 16px;
}

/* =========================================
   ITEM
========================================= */

.route-service-item {
  width: 100%;

  border: 1px solid #e5e7eb;
  border-radius: 16px;

  background: #fff;

  padding: 14px;

  margin-bottom: 12px;

  text-align: left;

  cursor: pointer;

  transition: 0.15s ease;
}

.route-service-item:active {
  transform: scale(0.98);
}

.route-service-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.route-service-item-description {
  margin-top: 4px;

  font-size: 13px;
  color: #6b7280;
}
