/* Delivery navigation follows the existing J&J owner badge and button system. */
.cycle-route-maps{margin:26px 0;color:var(--green)}
.cycle-route-maps .route-maps-heading{display:flex;align-items:center;gap:15px;margin-bottom:13px}
.cycle-route-maps .route-map-badge{display:grid;place-items:center;flex:0 0 62px;width:62px;height:62px;border:1px solid #a8c4c3;border-radius:50%;background:#e1eded;box-shadow:inset 0 0 0 4px #ffffff99,0 3px 0 #dfe4d5}
.cycle-route-maps svg{width:22px;height:22px;flex:none}
.cycle-route-maps .route-map-badge svg{width:31px;height:31px}
.cycle-route-maps .route-map-eyebrow{margin:0 0 3px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--copper)}
.cycle-route-maps h3{margin:0;font-size:24px;color:var(--green)}
.cycle-route-maps .route-maps-intro{margin:0 0 18px;max-width:790px;font-size:15px;color:var(--muted);line-height:1.6}
.cycle-route-maps .route-map-card{padding:20px;border:1px solid #c7cfbd;border-radius:20px;background:var(--white,#fffdf6);box-shadow:0 4px 0 #e3e7d9}
.cycle-route-maps .route-map-card+.route-map-card{margin-top:18px}
.cycle-route-maps .route-map-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 0 12px}
.cycle-route-maps h4{margin:0 0 3px;font-size:21px;line-height:1.35;color:var(--green)}
.cycle-route-maps .route-map-card-heading p{margin:0;font-size:14px;color:var(--muted)}
.cycle-route-maps .route-run-counts{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 10px}
.cycle-route-maps .route-load-count{font-size:14px;font-weight:750}
.cycle-route-maps .route-stop-count{display:inline-flex;align-items:center;gap:6px;flex:none;padding:6px 11px;border:1px solid #d4d9c6;border-radius:999px;background:#f1f4e8;font-size:13px;font-weight:750;white-space:nowrap}
.cycle-route-maps .route-stop-count svg{width:17px;height:17px}
.cycle-route-maps .route-receiving-stops{margin:8px 0 14px}
.cycle-route-maps .route-receiving-stops summary{display:inline-flex;align-items:center;justify-content:space-between;gap:6px;max-width:100%;min-height:44px;box-sizing:border-box;padding:10px 14px;border:1px solid #b7c8ad;border-radius:12px;background:#e5eedf;color:var(--green);font-size:14px;font-weight:750;cursor:pointer;list-style:none}
.cycle-route-maps .route-receiving-stops summary::-webkit-details-marker{display:none}
.cycle-route-maps .route-receiving-stops .expand-indicator{width:8px;height:8px}
.cycle-route-maps .route-receiving-stops summary:focus-visible{outline:3px solid var(--copper);outline-offset:2px}
.cycle-route-maps .route-receiving-stops ol{list-style:none;margin:10px 0 14px;padding:0 12px;border:1px solid #d4dbc9;border-radius:12px;background:#fafbf5}
.cycle-route-maps .route-receiving-stops li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 10px;align-items:start;padding:11px 0}
.cycle-route-maps .route-receiving-stops li+li{border-top:1px solid #d9dece}
.cycle-route-maps .route-receiver-number{display:grid;place-items:center;min-width:26px;min-height:26px;padding:0 4px;border-radius:50%;background:var(--green);color:white;font-size:13px;font-weight:750}
.cycle-route-maps .route-receiver{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere;font-size:15px;line-height:1.4}
.cycle-route-maps .route-receiver-load{justify-self:start;max-width:100%;padding:4px 8px;border-radius:8px;background:#eee5c8;color:#39412b;font-size:13px;font-weight:750;line-height:1.35;overflow-wrap:anywhere}
.cycle-route-maps .route-receiver-address{color:var(--muted);font-size:14px}
.cycle-route-maps a.route-receiver-address{justify-self:start;color:var(--green);padding:3px 0;text-decoration:underline;text-underline-offset:3px}
.cycle-route-maps a.route-receiver-address:focus-visible{outline:3px solid var(--copper);outline-offset:2px}
@media(max-width:540px){
 .cycle-route-maps .route-receiving-stops li{grid-template-columns:auto minmax(0,1fr)}
 .cycle-route-maps .route-receiver-load{grid-column:2}
 .cycle-route-maps a.route-receiver-address{padding:8px 0}
}
.cycle-route-maps .route-map-status{margin:0 0 12px;font-size:14px;color:var(--muted);line-height:1.55}
.cycle-route-maps .route-map-status.is-optimized{color:var(--green)}
.cycle-route-maps .route-map-status.is-optimized>span{display:inline-grid;place-items:center;width:20px;height:20px;margin-right:3px;border-radius:50%;background:#e8eee0;font-weight:800;font-size:12px}
.cycle-route-maps .route-drive-time{display:flex;align-items:center;gap:9px;margin:0 0 16px;font-size:14px;color:var(--muted)}
.cycle-route-maps .route-drive-time svg{width:19px;height:19px;color:var(--green)}
.cycle-route-maps .route-drive-time strong{color:var(--green)}
.cycle-route-maps .route-map-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.cycle-route-maps .route-map-sections{display:contents}
.cycle-route-maps .route-map-phone{display:none}
.cycle-route-maps .button.route-map-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;min-height:44px;padding:8px 14px;margin:0;border-radius:999px;font-size:14px;text-decoration:none;line-height:1.5;white-space:nowrap;box-shadow:0 4px 0 #193b29}
.cycle-route-maps .route-map-address-alert{margin:12px 0 0;padding:10px 12px;border-left:3px solid var(--copper);border-radius:0 8px 8px 0;background:#fcf0df;color:var(--ink);font-size:14px}
.cycle-route-maps .route-map-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-bottom:5px}
.cycle-route-maps .route-map-title h4{margin:0}
.cycle-route-maps .route-map-arrange{margin:0;min-height:44px;padding:8px 14px;font-size:14px}
.cycle-route-maps .route-order-editor[hidden]{display:none!important}
.cycle-route-maps .route-order-editor{margin:12px 0 18px;padding:12px;border:1px solid #c7cfbd;border-radius:12px;background:var(--white,#fffdf6);color:var(--green)}
.cycle-route-maps .route-order-help,.cycle-route-maps .route-order-feedback{margin:9px 0 12px;font-size:13px;line-height:1.55;color:var(--muted)}
.cycle-route-maps .route-order-list{position:relative;display:grid;gap:7px;list-style:none;padding:0;margin:12px 0 15px}
.cycle-route-maps .route-order-stop{display:flex;align-items:center;gap:9px;min-width:0;min-height:57px;padding:7px 9px 7px 5px;border:1px solid #d4dbc9;border-radius:12px;background:#f6f7ee}
.cycle-route-maps .route-order-stop.is-dragging{pointer-events:none;z-index:1000;will-change:transform;border-color:var(--copper);background:#f9edd6;box-shadow:0 3px 10px #31462d20}
.cycle-route-maps .route-drag-handle,.cycle-route-maps .route-order-moves button{display:grid;place-items:center;flex:none;width:38px;min-width:38px;height:40px;min-height:40px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--green);padding:0;font-size:22px;line-height:1;box-shadow:none}
.cycle-route-maps .route-drag-handle{touch-action:none;cursor:grab;font-size:29px;user-select:none;-webkit-user-select:none}
.cycle-route-maps .route-drag-handle:active{cursor:grabbing}
.cycle-route-maps .route-order-number{display:grid;place-items:center;flex:none;width:25px;height:25px;background:#e4ebd9;border-radius:50%;font-size:12px;font-weight:800}
.cycle-route-maps .route-order-name{flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:1.4;font-weight:700}
.cycle-route-maps .route-order-moves{display:flex;flex:none;gap:2px}
.cycle-route-maps .route-order-moves button{border-color:#c6d0bc;background:#fffdf6;font-size:19px}
.cycle-route-maps .route-order-moves button:disabled{opacity:.3}
.cycle-route-maps .route-order-actions{display:flex;flex-wrap:wrap;gap:9px}
.cycle-route-maps .route-order-actions .button{min-height:44px;padding:10px 14px;font-size:13px}
.cycle-route-maps .route-order-unsaved .route-map-open{opacity:.45}
.cycle-route-maps .route-order-unsaved a[aria-disabled=true]{pointer-events:none}
.cycle-route-maps .route-drag-handle:focus-visible,.cycle-route-maps .route-order-moves button:focus-visible{outline:3px solid var(--copper);outline-offset:2px}
@media(any-hover:hover) and (any-pointer:fine){
 .cycle-route-maps .route-order-stop{cursor:grab;user-select:none;-webkit-user-select:none}
 .cycle-route-maps .route-order-stop.is-dragging{cursor:grabbing}
 .cycle-route-maps .route-order-moves button{cursor:pointer}
}
@media(max-width:640px){
 .cycle-route-maps .route-maps-heading{gap:12px}
 .cycle-route-maps .route-map-badge{flex-basis:54px;width:54px;height:54px}
 .cycle-route-maps .route-map-badge svg{width:27px;height:27px}
 .cycle-route-maps h3{font-size:21px}
 .cycle-route-maps .route-map-eyebrow{font-size:10px}
 .cycle-route-maps .route-maps-intro{font-size:14px}
 .cycle-route-maps .route-map-card{padding:16px 13px;border-radius:17px}
 .cycle-route-maps .route-map-card-heading{position:relative;display:block}
 .cycle-route-maps h4{font-size:19px}
 .cycle-route-maps .route-run-counts{justify-content:flex-start;margin-top:8px}
 .cycle-route-maps .route-stop-count{padding:5px 8px;font-size:12px}
 .cycle-route-maps .route-map-title h4{flex-basis:100%}
 .cycle-route-maps .route-map-title{gap:12px}
 .cycle-route-maps .route-map-actions{flex-basis:100%}
 .cycle-route-maps .route-map-card-heading p{font-size:13px}
 .cycle-route-maps .route-map-desktop{display:none}
 .cycle-route-maps .route-map-phone{display:contents}
 .cycle-route-maps .route-drive-time{align-items:flex-start;font-size:13px}
 .cycle-route-maps .route-drive-time svg{margin-top:1px}
 .cycle-route-maps .route-order-stop{gap:5px;padding-right:5px}
 .cycle-route-maps .route-drag-handle{width:32px;min-width:32px}
 .cycle-route-maps .route-order-number{width:22px;height:22px;font-size:11px}
 .cycle-route-maps .route-order-name{font-size:13px}
 .cycle-route-maps .route-order-moves button{width:31px;min-width:31px;min-height:42px;height:42px}
}
@media(forced-colors:active){
 .cycle-route-maps .route-map-badge{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}
 .cycle-route-maps .route-map-card{border-color:CanvasText;box-shadow:none}
}

/* Owner route rosters stay inside the existing route cards. */
.cycle-route-maps .route-roster{margin-top:16px}
.cycle-route-maps .button.route-roster-toggle{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:48px;padding:11px 15px;border:1px solid #cfb86e;border-radius:14px;background:#ffedb3;color:var(--green);box-shadow:0 3px 0 #e4d49a;text-align:left;font-size:14px;line-height:1.4}
.cycle-route-maps .route-roster-toggle svg{width:22px;height:22px;flex:none}
.cycle-route-maps .route-roster-toggle>span:first-of-type{font-weight:800}
.cycle-route-maps .route-roster-count{margin-left:auto;font-size:12px;font-weight:650;white-space:nowrap}
.cycle-route-maps .route-roster-toggle[aria-expanded=true]{border-color:var(--green)}
.cycle-route-maps .route-roster-body{margin-top:14px;padding:14px;border:1px solid #d4dbc9;border-radius:14px;background:#fffdf7}
.cycle-route-maps .route-roster-body[hidden]{display:none!important}
.cycle-route-maps .route-roster-summary{margin:0 0 12px;font-size:14px;line-height:1.5}
.cycle-route-maps .route-roster-summary strong,.cycle-route-maps .route-roster-summary span{display:block}
.cycle-route-maps .route-roster-summary span{margin-top:4px;font-size:12px;color:var(--muted)}
.cycle-route-maps .route-roster-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}
.cycle-route-maps .route-roster-table th{padding:8px 6px;text-align:left;color:var(--muted);font-size:12px;font-weight:650}
.cycle-route-maps .route-roster-table th:last-child{width:125px}
.cycle-route-maps .route-roster-table td{padding:11px 6px;border-top:1px solid #e1e3d5;vertical-align:middle;overflow-wrap:anywhere}
.cycle-route-maps .route-roster-table small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4}
.cycle-route-maps .route-store-status{display:inline-block;padding:5px 9px;border:1px solid #c4d2b8;border-radius:999px;background:#e6efdf;color:var(--green);font-size:12px;font-weight:750;white-space:nowrap}
.cycle-route-maps .route-store-status.is-missing{border-color:#d6be75;background:#fff1c5}
.cycle-route-maps .route-roster-toggle:focus-visible{outline:3px solid var(--copper);outline-offset:3px}
@media(max-width:480px){
 .cycle-route-maps .button.route-roster-toggle{gap:7px;padding:10px;font-size:13px}
 .cycle-route-maps .route-roster-count{font-size:11px}
 .cycle-route-maps .route-roster-body{padding:9px}
 .cycle-route-maps .route-roster-table{font-size:13px}
 .cycle-route-maps .route-roster-table th:last-child{width:106px}
 .cycle-route-maps .route-store-status{padding:5px 7px;font-size:11px}
}

.cycle-route-maps .route-order-placeholder{list-style:none;border:1px dashed var(--soft);border-radius:12px;background:var(--paper)}
@media(prefers-reduced-motion:reduce){.cycle-route-maps .route-order-stop{scroll-behavior:auto}}

/* One independently saved delivery date for each route and production week. */
.route-date-editor{display:flex;align-items:end;flex-wrap:wrap;gap:10px 14px;margin:16px 0;padding:14px 16px;background:#f6f7ee;border:1px solid #d9deca;border-radius:10px}
.route-date-editor label{display:grid;gap:6px;color:var(--green);font-size:14px;font-weight:600}
.route-date-editor input{min-width:170px;min-height:44px;box-sizing:border-box;padding:8px 10px;border:1px solid #b6c2a7;border-radius:7px;background:#fffdf7;font:inherit;color:var(--green)}
.route-date-editor .button{min-height:44px;font-size:14px;margin:0}
.route-date-editor .route-date-feedback{flex-basis:100%;margin:0;color:var(--muted);font-size:13px;line-height:1.4}
@media(max-width:480px){.route-date-editor{padding:12px;gap:10px}.route-date-editor label{flex:1;min-width:0}.route-date-editor input{width:100%;min-width:0}}


