/* Suggested route: the card on the Collector map, "My route today" and the employee dashboard card. */

.app-shell .lr-route-card {
  overflow: hidden;
}

.app-shell .lr-route-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--lr-line);
}

.app-shell .lr-route-empty {
  margin: 0;
  padding: 24px 20px;
  color: var(--lr-muted);
  font-size: 0.875rem;
}

.app-shell .lr-route-stops {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-shell .lr-route-stop {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--lr-line);
}

.app-shell .lr-route-stop:first-child {
  border-top: 0;
}

.app-shell .lr-route-stop--skipped {
  background: #fffbf5;
}

.app-shell .lr-route-stop-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-shell .lr-route-stop-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.app-shell .lr-route-stop-name {
  font-weight: 600;
  color: var(--lr-ink);
}

/* Numbered stop: in lists and as the Leaflet marker (.lr-route-icon). */
.lr-route-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  border: 2px solid #6d28d9;
  border-radius: 50%;
  background: #ffffff;
  color: #6d28d9;
  font: 700 12px Inter, system-ui, sans-serif;
}

.lr-route-num.is-done {
  background: #6d28d9;
  color: #ffffff;
}

.lr-route-num.is-next {
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.22);
}

.lr-route-icon {
  background: none;
  border: 0;
}

.app-shell .lr-route-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.app-shell .lr-route-tag--paid { background: var(--lr-success-bg); color: var(--lr-success); }
.app-shell .lr-route-tag--skipped { background: var(--lr-warning-bg); color: var(--lr-warning-text); }
.app-shell .lr-route-tag--missed { background: #fdecea; color: var(--lr-danger); }
.app-shell .lr-route-tag--due { background: #eef1f5; color: var(--lr-muted); }

.app-shell .lr-route-unlocated {
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid var(--lr-line);
  background: var(--lr-warning-bg);
  color: var(--lr-warning-text);
  font-size: 0.8125rem;
}

.app-shell .lr-route-card-notes {
  padding: 16px 20px;
  border-top: 1px solid var(--lr-line);
}

.app-shell .lr-route-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-shell .lr-route-notes-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-shell .lr-route-notes ul {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
}

.app-shell .lr-route-sparkle {
  flex: none;
  color: #6d28d9;
}

.app-shell .lr-route-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: var(--lr-radius-control);
  background: #f1ecfc;
  font-size: 0.875rem;
}

.app-shell .lr-route-tip .lr-route-sparkle {
  margin-top: 2px;
}

.app-shell .lr-route-done {
  padding: 12px 16px;
  border-radius: var(--lr-radius-card);
  background: var(--lr-success-bg);
  color: var(--lr-success);
  font-weight: 600;
}

/* "My route today" */
.app-shell .lr-myroute {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

.app-shell .lr-myroute-map-card {
  overflow: hidden;
}

.app-shell .lr-myroute-map {
  height: 260px;
  background: #eef1f5;
  z-index: 0;
}

.app-shell .lr-myroute-next {
  border: 1.5px solid #6d28d9;
}

.app-shell .lr-myroute-next .card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-shell .lr-myroute-next-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.app-shell .lr-myroute-next-label {
  color: #6d28d9;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-shell .lr-myroute-next-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 700;
}

.app-shell .lr-myroute-next-main h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.app-shell .lr-myroute-actions {
  display: flex;
  gap: 8px;
}

/* Employee dashboard card */
.app-shell .lr-myroute-card {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
  padding: 14px 16px;
  border: 1.5px solid #6d28d9;
  color: var(--lr-ink);
  text-decoration: none;
}

.app-shell .lr-myroute-card:hover {
  color: var(--lr-ink);
  text-decoration: none;
  background: #faf8ff;
}

.app-shell .lr-myroute-card-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1ecfc;
  color: #6d28d9;
}

.app-shell .lr-myroute-card-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-shell .lr-myroute-card-title {
  font-weight: 600;
}

.app-shell .lr-myroute-card-chevron {
  flex: none;
  color: var(--lr-muted);
}

/* The Suggested / Actual / Both switch uses buttons; .lr-segment was made for links. */
.app-shell button.lr-segment {
  border: 0;
  background: transparent;
  font-family: inherit;
}

.app-shell button.lr-segment.is-active {
  background: var(--lr-navy-soft);
}
