/* Route planner view, shared by admin.html and staff.html (assets/route-view.js) */
.rv { --rv-ink: #15294a; --rv-muted: #5f6f86; --rv-faint: #8b98ab; --rv-line: #e3e8ef; --rv-soft: #f4f6f9;
  --rv-navy: #033664; --rv-collect: #1c6fb8; --rv-collect-bg: #e4f0fb; --rv-deliver: #1f8a5b; --rv-deliver-bg: #e2f4ea;
  --rv-break: #6b778a; --rv-break-bg: #eef1f5; --rv-amber: #8a5a0c; --rv-amber-bg: #fdf1dc; --rv-red: #c0392b;
  color: var(--rv-ink); font-size: 14px; }
.rv * { box-sizing: border-box; }

.rv-map { display: block; position: relative; aspect-ratio: 640 / 340; border-radius: 14px; overflow: hidden; background: var(--rv-soft); border: 1px solid var(--rv-line); }
.rv-map img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rv-map span { position: absolute; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.94); color: var(--rv-ink); font-size: 12px; font-weight: 650; box-shadow: 0 1px 3px rgba(21,41,74,.18); }

.rv-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 16px 2px 12px; }
.rv-sum__times { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rv-sum__times span { color: var(--rv-faint); font-weight: 500; margin: 0 6px; }
.rv-sum__meta { color: var(--rv-muted); font-size: 13.5px; }

.rv-go { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; padding: 0 18px; border-radius: 12px;
  background: var(--rv-navy); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 15px; }
.rv-go + .rv-go { margin-top: 8px; }
.rv-go:hover { filter: brightness(1.12); }

.rv-alert { margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: #fbe6e3; color: var(--rv-red); font-size: 13px; line-height: 1.5; }
.rv-alert b { display: block; font-size: 13.5px; }
.rv-alert ul { margin: 4px 0 0; padding-left: 16px; }
.rv-check { margin-top: 12px; border-radius: 12px; background: var(--rv-amber-bg); color: var(--rv-amber); }
.rv-check summary { list-style: none; cursor: pointer; padding: 11px 14px; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.rv-check summary::-webkit-details-marker { display: none; }
.rv-check summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.rv-check[open] summary::after { transform: rotate(-135deg); }
.rv-check ul { margin: 0; padding: 0 14px 12px 30px; font-size: 13px; line-height: 1.5; }
.rv-check li + li { margin-top: 5px; }

.rv-h { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rv-faint); }
.rv-key { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.rv-key .rv-dot { width: 9px; height: 9px; margin-left: 8px; }
.rv-pill { padding: 2px 8px; border-radius: 999px; background: #fbe6e3; color: var(--rv-red); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.rv-line--quiet .rv-main b { font-weight: 500; color: var(--rv-muted); }
.rv-more p { margin: 0; }
.rv-list { list-style: none; margin: 0; padding: 0; }
.rv-list > li + li { border-top: 1px solid var(--rv-line); }
.rv-line { display: grid; grid-template-columns: 26px 46px minmax(0, 1fr) auto 10px; align-items: center; gap: 10px; padding: 12px 2px; }
.rv-row > summary { list-style: none; cursor: pointer; }
.rv-row > summary::-webkit-details-marker { display: none; }
.rv-row > summary::after { content: ''; display: none; }
.rv-chev { width: 7px; height: 7px; border-right: 2px solid var(--rv-faint); border-bottom: 2px solid var(--rv-faint); transform: rotate(-45deg); transition: transform .15s; }
.rv-row[open] .rv-chev { transform: rotate(45deg); }
.rv-dot { justify-self: center; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 11.5px; font-weight: 700; }
.rv-dot--collect, .rv-dot--hubPickup { background: var(--rv-collect); }
.rv-dot--deliver, .rv-dot--hubDrop { background: var(--rv-deliver); }
.rv-dot--home { background: var(--rv-navy); }
.rv-dot--break { width: 10px; height: 10px; background: var(--rv-break); }
.rv-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.rv-main { min-width: 0; }
.rv-main b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-main small { display: block; margin-top: 1px; color: var(--rv-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-tag { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; vertical-align: 1px; }
.rv-tag--collect, .rv-tag--hubPickup { background: var(--rv-collect-bg); color: var(--rv-collect); }
.rv-tag--deliver, .rv-tag--hubDrop { background: var(--rv-deliver-bg); color: var(--rv-deliver); }
.rv-flag { color: var(--rv-red) !important; font-weight: 650; }

.rv-more { margin: -2px 0 12px 82px; padding: 10px 12px; border-radius: 10px; background: var(--rv-soft); display: grid; gap: 6px; font-size: 13px; line-height: 1.45; }
.rv-more div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
.rv-more span { color: var(--rv-faint); }
.rv-more a { color: var(--rv-collect); text-decoration: none; overflow-wrap: anywhere; }
.rv-more a:hover { text-decoration: underline; }

.rv-foot { margin: 14px 2px 0; font-size: 12px; color: var(--rv-faint); line-height: 1.5; }
.rv-empty { margin: 0; padding: 18px 4px; color: var(--rv-muted); }

@media (max-width: 560px) {
  .rv-map { border-radius: 12px; }
  .rv-sum__times { font-size: 20px; }
  .rv-line { grid-template-columns: 24px 42px minmax(0, 1fr) auto 10px; gap: 8px; }
  .rv-more { margin-left: 0; }
  .rv-more div { grid-template-columns: 62px minmax(0, 1fr); }
}

.rv-pill--soft { background: var(--rv-soft); color: var(--rv-muted); border: 1px solid var(--rv-line); }
.rv-faint { color: var(--rv-faint); }
.rv-loading { display: grid; justify-items: center; gap: 10px; padding: 34px 16px 30px; color: var(--rv-muted); font-size: 14px; }
.rv-loading p { margin: 0; }
.rv-loading__road { fill: none; stroke: var(--rv-line); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 8; }
.rv-loading__run { fill: none; stroke: var(--rv-navy); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 22 100; animation: rv-run 1.4s cubic-bezier(.45, 0, .25, 1) infinite; }
.rv-loading__a { fill: var(--rv-collect); }
.rv-loading__b { fill: var(--rv-deliver); }
@keyframes rv-run { from { stroke-dashoffset: 22; } to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) { .rv-loading__run { animation-duration: 4s; } }
