/* Couriers in the admin: the Routes page, the assign dialog, the Driver section. Prefix fpc-. */
.fpc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.fpc-day { display: flex; align-items: center; gap: 10px; }
.fpc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fpc-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.fpc-totals div { background: var(--fp-soft, #f6f2ec); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.fpc-totals span { font-size: 12px; color: var(--fp-muted, #616a63); }
.fpc-totals strong { font-size: 20px; letter-spacing: -.01em; font-weight: 650; }

.fpc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; margin: 14px 0; }
.fpc-map-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); }
.fpc-map { height: 440px; background: #e9eee9; }
.fpc-map-error { display: grid; place-items: center; height: 100%; color: var(--fp-muted, #616a63); font-size: 14px; padding: 20px; text-align: center; }
.fpc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px; font-size: 12px; color: var(--fp-muted, #616a63); border-top: 1px solid var(--fp-line, rgba(0, 0, 0, .08)); }
.fpc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fpc-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--s); display: inline-block; }
.fpc-side { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); display: flex; flex-direction: column; gap: 10px; align-self: start; }
.fpc-h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--fp-muted, #616a63); }
.fpc-note { margin: 4px 0 0; font-size: 12px; }
.fpc-find { margin-top: 4px; padding: 0; border: 0; background: none; color: #2f6fdf; font: 600 12px/1.4 inherit; cursor: pointer; }
.fpc-find:hover { text-decoration: underline; }
.fpc-driver { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--fp-line, rgba(0, 0, 0, .08)); }
.fpc-driver:first-of-type { border-top: 0; }
.fpc-driver-main { font-size: 13px; line-height: 1.4; min-width: 0; }
.fpc-driver-meta { color: var(--fp-muted, #616a63); font-size: 12px; }
.fpc-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--d, #c9ccd1); color: #fff; display: inline-grid; place-items: center; font-weight: 650; font-size: 14px; flex: 0 0 32px; }
.fpc-dot.is-empty { background: transparent; border: 1.5px dashed #b7bcb8; color: #8a8f98; }
.fpc-live { display: inline-flex; align-items: center; gap: 6px; color: #1f7a52; font-size: 12px; font-weight: 600; }
.fpc-live i { width: 8px; height: 8px; border-radius: 50%; background: #22a66e; box-shadow: 0 0 0 0 rgba(34, 166, 110, .5); animation: fpc-pulse 1.8s infinite; }
@keyframes fpc-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 166, 110, .55); } 70% { box-shadow: 0 0 0 8px rgba(34, 166, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 166, 110, 0); } }

/* Pins (on the map and in the list) */
.fpc-icon { background: none; border: 0; }
.fpc-pin { width: 28px; height: 28px; border-radius: 50%; background: var(--s); color: #fff; display: grid; place-items: center; font: 700 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border: 3px solid var(--d); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); box-sizing: border-box; }
.fpc-pin.is-done { opacity: .75; }
.fpc-pin-inline { cursor: pointer; padding: 0; flex: 0 0 28px; }
.fpc-pin-inline:focus-visible { outline: 2px solid #1f3d2b; outline-offset: 2px; }
.fpc-shop { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 18px; border: 3px solid #1f3d2b; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); box-sizing: border-box; }
.fpc-car { position: relative; width: 36px; height: 36px; display: grid; place-items: center; }
.fpc-car::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--d); opacity: .25; animation: fpc-ring 2s infinite; }
.fpc-car b { position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--d); color: #fff; border: 2.5px solid #fff; display: grid; place-items: center; font: 700 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
@keyframes fpc-ring { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(1.5); opacity: 0; } }

/* The stop list */
.fpc-group + .fpc-group { margin-top: 18px; }
.fpc-group-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.fpc-group-head .fpc-dot { width: 26px; height: 26px; flex-basis: 26px; font-size: 12px; }
.fpc-stops { list-style: none; margin: 0; padding: 0; }
.fpc-stop { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--fp-line, rgba(0, 0, 0, .08)); }
.fpc-stop.is-done .fpc-stop-main { opacity: .6; }
.fpc-stop-main { font-size: 13px; line-height: 1.45; min-width: 0; }
.fpc-stop-title strong { font-size: 14px; }
.fpc-items { margin-top: 2px; font-weight: 550; }
.fpc-stop-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; }
.fpc-window { color: var(--fp-muted, #616a63); }
.fpc-eta { font-weight: 600; color: #1f3d2b; }
.fpc-eta.is-late { color: #b42318; }
.fpc-select { font: inherit; font-size: 13px; padding: 6px 28px 6px 10px; border-radius: 8px; border: 1px solid #c9ccd1; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23616a63' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; -webkit-appearance: none; min-width: 140px; cursor: pointer; }
.fpc-select:focus-visible { outline: 2px solid #1f3d2b; outline-offset: 1px; }
.fpc-select:disabled { opacity: .5; cursor: default; }
.fpc-empty { text-align: center; padding: 28px 12px; display: grid; gap: 4px; justify-items: center; }
.fpc-empty div[aria-hidden] { font-size: 34px; }

/* The assign dialog on the board */
.fpc-dialog { border: 0; border-radius: 18px; padding: 0; width: min(420px, calc(100vw - 32px)); box-shadow: 0 24px 80px rgba(0, 0, 0, .25); font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; color: #1c1f1d; }
.fpc-dialog::backdrop { background: rgba(20, 30, 24, .35); }
.fpc-dialog-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.fpc-dialog h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.fpc-dialog p { margin: 0; }
.fpc-choices { display: flex; flex-direction: column; gap: 6px; }
.fpc-choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #e3e5e3; cursor: pointer; }
.fpc-choice:has(input:checked) { border-color: #1f3d2b; background: #f1f6f2; }
.fpc-choice input { accent-color: #1f3d2b; }
.fpc-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.fpc-btn { font: 600 14px/1 inherit; padding: 10px 16px; border-radius: 10px; border: 1px solid #c9ccd1; background: #fff; cursor: pointer; }
.fpc-btn.is-primary { background: #1f3d2b; border-color: #1f3d2b; color: #fff; }

/* The Driver section on the order page */
.fpc-order { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fpc-order-who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.fpc-order-who strong { font-size: 14px; }
.fpc-order-live { margin-top: 12px; }
.fpc-mini { height: 220px; border-radius: 12px; overflow: hidden; margin-top: 8px; background: #e9eee9; }
.fpc-order-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; }

@media (max-width: 820px) {
  .fpc-layout { grid-template-columns: 1fr; }
  .fpc-map { height: 340px; }
  .fpc-totals { grid-template-columns: repeat(2, 1fr); }
  .fpc-stop { grid-template-columns: 28px minmax(0, 1fr); }
  .fpc-stop-side { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; align-items: center; }
}
