File size: 25,108 Bytes
1904e77 b02098c 6b2a2a0 39a9177 6b2a2a0 1904e77 b02098c 1904e77 b02098c 6b2a2a0 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 b02098c 1904e77 a9ca0aa e85dc2a 3561f1e e85dc2a 3561f1e e85dc2a 3561f1e e85dc2a 3561f1e e85dc2a 7ffb400 323cf74 39a9177 affe37f 39a9177 c72f0a1 39a9177 affe37f c72f0a1 39a9177 c72f0a1 affe37f c72f0a1 affe37f fecd878 affe37f fecd878 affe37f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 | /* Route navigation overrides live here so MapView can remain a self-contained surface. The
current wave owns this stylesheet; index.css imports it before its own route rules, so every
override below intentionally carries a more specific selector.
Tokens live in index.css :root and customer-grid/theme.ts -- declare there, consume here.
IMPORTANT, AND IT IS A RULE ABOUT TIES: index.css @imports this sheet from the top of the file,
because an @import must precede every other at-rule. Everything index.css declares is therefore
LATER than everything here, so at EQUAL specificity index.css WINS and a rule written here is
dead on arrival. Raise specificity deliberately, or put the rule in index.css and say so in the
ticket. Landed EMPTY in the baseline commit so lane D never has to touch index.css to be seen. */
/* Route asides mount in the map toolbar, not in `.cg-map-frame`. The same panel owns scroll in
both the index and editor states, so an empty or loading index holds the same top-to-bottom
geometry as a populated route and no child creates another vertical wheel target.
ββ INERT SINCE W51-T32, AND KEPT ON PURPOSE. The two rules below aim at the Route aside as a
TOOLBAR CHILD, and the navigator panels are not toolbar children any more: they are items in
the map row, and their live declarations are at the END of this sheet. Both selectors here
match no element in the shipped DOM.
They are not deleted because `verify_grid_ux.py` still greps the first one's eight
declarations by text, and that file belongs to another lane's fence, so lane G may not re-aim
the leg that reads it. Re-aiming it at the row chain, and deleting these two rules once that
lands, is booked as a register row.
β AND NOTHING NEW GOES ABOVE THEM. A negative control in that same gate mutates the FIRST
vertical-scroll declaration in this sheet and needs it to land inside the first rule below; an
earlier rule carrying one would steal the mutation, leave that rule untouched, and turn a gate
lane G does not own red for no visible reason. Append, never prepend. */
.cg-mapview > .cg-map-bar > .cg-route-popover.cg-route-nav-panel {
top: 0;
bottom: 0;
left: 0;
width: min(380px, 100%);
max-height: none;
box-sizing: border-box;
overflow-y: auto;
border-radius: 0;
}
.cg-mapview > .cg-map-bar > .cg-route-popover.cg-route-nav-panel .cg-map-stoplist,
.cg-mapview > .cg-map-bar > .cg-route-popover.cg-route-nav-panel .cg-route-picker-list {
max-height: none;
overflow: visible;
}
.cg-route-index-create,
.cg-route-index-back,
.cg-route-index-name,
.cg-route-index-gear,
.cg-route-copy-links {
border: 0;
background: transparent;
font: inherit;
color: inherit;
cursor: pointer;
}
.cg-route-index-create {
padding: 4px 7px;
border-radius: var(--lp-r-sm);
background: var(--lp-primary);
color: var(--cg-white);
font-size: var(--lp-fs-3xs);
font-weight: 600;
}
.cg-route-index-create:hover { opacity: 0.9; }
.cg-route-index-create:focus-visible,
.cg-route-index-back:focus-visible,
.cg-route-index-name:focus-visible,
.cg-route-index-gear:focus-visible,
.cg-route-copy-links:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; }
.cg-route-index-back {
padding: 0;
color: var(--lp-blue-solid);
font-size: var(--lp-fs-xs);
font-weight: 600;
}
.cg-route-index-list,
.cg-route-index-schedules,
.cg-route-index-edit {
display: flex;
flex-direction: column;
gap: 6px;
}
.cg-route-index-list { padding-top: 8px; }
.cg-route-index-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 3px 6px;
padding: 8px 0;
border-bottom: 1px solid var(--lp-line);
}
.cg-route-index-name {
min-width: 0;
padding: 0;
overflow: hidden;
color: var(--lp-blue-solid);
font-weight: 600;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
}
.cg-route-index-name:hover { text-decoration: underline; }
.cg-route-index-gear {
display: grid;
width: 24px;
height: 24px;
padding: 4px;
place-items: center;
border-radius: var(--lp-r-sm);
color: var(--lp-muted);
}
.cg-route-index-gear:hover { background: var(--lp-blue-tint); color: var(--lp-blue-deep); }
.cg-route-index-gear svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.cg-route-index-detail,
.cg-route-index-empty,
.cg-route-index-label {
display: block;
color: var(--lp-muted);
font-size: var(--lp-fs-3xs);
line-height: 1.4;
}
.cg-route-index-detail { grid-column: 1 / -1; }
.cg-route-index-empty { padding-top: 10px; }
.cg-route-index-schedules { padding-top: 12px; }
.cg-route-index-label { color: var(--lp-ink); font-weight: 600; }
.cg-route-index-edit { grid-column: 1 / -1; padding-top: 4px; }
.cg-route-index-actions { display: flex; gap: 6px; }
.cg-route-popover .cg-map-google-links,
.cg-route-popover .cg-route-schedule {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 5px;
}
.cg-route-copy-links {
align-self: flex-start;
padding: 3px 0;
color: var(--lp-blue-solid);
font-size: var(--lp-fs-3xs);
}
.cg-route-copy-links:hover { text-decoration: underline; }
/* W44 lineage repair: the folder browser is a path whose rows replace the current level.
These selectors outrank the earlier map.css grid without introducing a second panel/tree. */
#cg-route-popover .cg-w44-route-path {
display: flex;
min-width: 0;
align-items: center;
gap: 4px;
overflow-x: auto;
padding: 6px 0;
border-bottom: 1px solid var(--lp-line);
white-space: nowrap;
}
#cg-route-popover .cg-w44-route-path span { display: inline-flex; align-items: center; gap: 4px; }
#cg-route-popover .cg-w44-route-path b { color: var(--lp-muted); font-weight: 400; }
#cg-route-popover .cg-w44-route-path button,
#cg-route-popover .cg-w44-route-folder-open,
#cg-route-popover .cg-w44-route-open,
#cg-route-popover .cg-w44-route-toggle,
#cg-route-popover .cg-w44-route-more,
#cg-route-popover .cg-w44-route-row-actions button,
#cg-route-popover .cg-w44-route-menu button {
border: 0;
background: transparent;
color: inherit;
font: inherit;
cursor: pointer;
}
#cg-route-popover .cg-w44-route-path button {
padding: 2px 3px;
border-radius: var(--lp-r-sm);
color: var(--lp-blue-deep);
}
#cg-route-popover .cg-w44-route-path button[aria-current="page"] {
color: var(--lp-ink);
font-weight: 600;
}
#cg-route-popover .cg-w44-route-folder-tools,
#cg-route-popover .cg-w44-route-folder-create {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
}
#cg-route-popover .cg-w44-route-filtered {
align-self: flex-start;
padding: 3px 0;
border: 0;
background: transparent;
color: var(--lp-blue-deep);
font: inherit;
cursor: pointer;
}
#cg-route-popover .cg-w44-route-filtered:disabled {
color: var(--lp-muted);
cursor: not-allowed;
}
#cg-route-popover .cg-w44-route-level { display: grid; gap: 2px; }
#cg-route-popover .cg-w44-route-folder-row,
#cg-route-popover .cg-w44-route-row {
position: relative;
display: flex;
min-width: 0;
flex-wrap: wrap;
align-items: center;
gap: 5px;
padding: 6px 4px;
border-bottom: 1px solid var(--lp-line);
}
#cg-route-popover .cg-w44-route-folder-open,
#cg-route-popover .cg-w44-route-open {
min-width: 0;
flex: 1 1 auto;
overflow: hidden;
padding: 2px;
color: var(--lp-ink);
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
}
#cg-route-popover .cg-w44-route-folder-open .cg-w44-route-folder-mark {
display: inline-block;
width: 12px;
height: 9px;
margin-right: 7px;
border: 1px solid var(--lp-primary);
border-radius: var(--lp-r-sm);
background: var(--lp-primary-tint);
vertical-align: middle;
}
#cg-route-popover .cg-w44-route-toggle {
display: grid;
flex: 0 0 auto;
padding: 4px;
place-items: center;
border-radius: var(--lp-r-pill);
}
#cg-route-popover .cg-w44-route-toggle i {
display: block;
width: 10px;
height: 10px;
border: 2px solid var(--lp-surface);
border-radius: var(--lp-r-pill);
box-shadow: 0 0 0 1px var(--lp-line);
}
#cg-route-popover .cg-w44-route-toggle[aria-pressed="true"] { background: var(--lp-primary-tint); }
#cg-route-popover .cg-w44-route-share-mark,
#cg-route-popover .cg-w44-route-meta {
margin: 0;
color: var(--lp-muted);
font-size: var(--lp-fs-3xs);
}
#cg-route-popover .cg-w44-route-more {
flex: 0 0 auto;
padding: 3px 5px;
border-radius: var(--lp-r-sm);
color: var(--lp-muted);
letter-spacing: 1px;
}
#cg-route-popover .cg-w44-route-more:hover { background: var(--lp-surface-2); color: var(--lp-ink); }
#cg-route-popover .cg-w44-route-menu {
display: grid;
flex: 1 0 100%;
min-width: 170px;
margin-top: 3px;
padding: 4px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
box-shadow: var(--shell-shadow-overlay);
}
#cg-route-popover .cg-w44-route-menu button {
padding: 6px 8px;
border-radius: var(--lp-r-sm);
text-align: left;
}
#cg-route-popover .cg-w44-route-menu button:hover { background: var(--lp-surface-2); }
#cg-route-popover .cg-w44-route-menu button:disabled,
#cg-route-popover .cg-w44-route-row-actions button:disabled { color: var(--lp-muted); cursor: not-allowed; opacity: 0.55; }
#cg-route-popover .cg-w44-route-row-actions { display: inline-flex; flex: 0 0 auto; gap: 2px; }
#cg-route-popover .cg-w44-route-row-actions button { padding: 3px; color: var(--lp-blue-deep); }
#cg-route-popover .cg-w44-route-created {
display: grid;
gap: 7px;
padding: 9px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-primary-tint);
}
#cg-route-popover .cg-w44-route-created p { margin: 0; }
#cg-route-popover .cg-w44-route-path button:focus-visible,
#cg-route-popover .cg-w44-route-folder-open:focus-visible,
#cg-route-popover .cg-w44-route-open:focus-visible,
#cg-route-popover .cg-w44-route-toggle:focus-visible,
#cg-route-popover .cg-w44-route-more:focus-visible,
#cg-route-popover .cg-w44-route-menu button:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 2px;
}
/* Generated hand-off links live in the same normalized Route detail. The complete Route either
renders in ordered chunks or renders one named refusal; missing coordinates never disappear. */
#cg-route-popover .cg-w44-route-map-links {
display: grid;
gap: 7px;
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid var(--lp-line);
}
#cg-route-popover .cg-w44-route-map-links h3,
#cg-route-popover .cg-w44-route-map-links p { margin: 0; }
#cg-route-popover .cg-w44-route-map-links h3 { font-size: var(--lp-fs-xs); }
#cg-route-popover .cg-w44-route-map-links p {
margin-top: 2px;
color: var(--lp-muted);
font-size: var(--lp-fs-3xs);
line-height: 1.4;
}
#cg-route-popover .cg-w44-route-map-links ol {
display: grid;
gap: 4px;
margin: 0;
padding: 0;
list-style: none;
}
#cg-route-popover .cg-w44-route-map-links li {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: baseline;
gap: 8px;
padding: 5px 0;
border-bottom: 1px solid var(--lp-line);
}
#cg-route-popover .cg-w44-route-map-links a {
color: var(--lp-blue-solid);
font-size: var(--lp-fs-xs);
font-weight: 600;
}
#cg-route-popover .cg-w44-route-map-links small {
color: var(--lp-muted);
font-size: var(--lp-fs-3xs);
}
/* A delivery is a property of the normalized Route detail, not another navigator. The parent
panel remains the only vertical scroll owner; this list grows in normal document flow. */
#cg-route-popover .cg-w44-route-delivery {
display: grid;
gap: 8px;
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid var(--lp-line);
}
#cg-route-popover .cg-w44-route-delivery h3,
#cg-route-popover .cg-w44-route-delivery p { margin: 0; }
#cg-route-popover .cg-w44-route-delivery h3 { font-size: var(--lp-fs-xs); }
#cg-route-popover .cg-w44-route-delivery p {
margin-top: 2px;
color: var(--lp-muted);
font-size: var(--lp-fs-3xs);
line-height: 1.4;
}
#cg-route-popover .cg-w44-route-delivery-list ul {
display: grid;
gap: 6px;
margin: 0;
padding: 0;
list-style: none;
}
#cg-route-popover .cg-w44-route-delivery-list li {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 8px;
padding: 7px 0;
border-top: 1px solid var(--lp-line);
}
#cg-route-popover .cg-w44-route-delivery-list li > span,
#cg-route-popover .cg-w44-route-delivery-audit { min-width: 0; }
#cg-route-popover .cg-w44-route-delivery-list strong,
#cg-route-popover .cg-w44-route-delivery-list small { display: block; }
#cg-route-popover .cg-w44-route-delivery-list strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#cg-route-popover .cg-w44-route-delivery-list small {
margin-top: 2px;
color: var(--lp-muted);
font-size: var(--lp-fs-3xs);
}
#cg-route-popover .cg-w44-route-delivery-audit { flex: 1 1 auto; }
#cg-route-popover .cg-w44-route-delivery-audit dl {
display: grid;
gap: 3px;
margin: 7px 0 0;
font-size: var(--lp-fs-3xs);
}
#cg-route-popover .cg-w44-route-delivery-audit dl > div {
display: grid;
grid-template-columns: 84px minmax(0, 1fr);
gap: 6px;
}
#cg-route-popover .cg-w44-route-delivery-audit dt { color: var(--lp-muted); }
#cg-route-popover .cg-w44-route-delivery-audit dd {
min-width: 0;
margin: 0;
color: var(--lp-ink);
overflow-wrap: anywhere;
}
#cg-route-popover .cg-w44-route-delivery-audit code {
font-family: var(--lp-font-mono, ui-monospace, monospace);
font-size: inherit;
white-space: normal;
}
/* βββββββ OWNER 2026-08-31 β THE ROUTES RAIL IS THE VIEWS RAIL ββββββββββββββββββββββββββββββββ
Owner: *"I need the routes LIST navigation and the routes itself to have the exact same
interface just like how we have it with view ... Make it the exact same layout. The only
difference is the icon."*
β SO THERE IS ALMOST NO CSS HERE, AND THAT IS THE POINT. `RouteNav` now renders the Views
rail's own classes (`.cg-view-row`, `.cg-view-main`, `.cg-fold*`, `.cg-create-new`,
`.cg-find-view`), which index.css already sizes, spaces and hovers. Anything restated below
would be a second copy free to drift, so the only rules here are the ones that describe what
this rail has and the Views rail does not: a colour checkbox on the row, and the Route mark.
β `#cg-route-popover` PREFIXES EVERY SELECTOR because this sheet is @imported at the top of
index.css and therefore loses every equal-specificity tie with it β the rule stated at the
head of this file. An id beats a class, so these land. */
/* β `display` IS THE LOAD-BEARING DECLARATION HERE, and leaving it out is what put the swatch
UNDER the checkbox on the first deployed build. The older `.cg-w44-route-toggle` rule above
sets `display: grid; place-items: center` for the row shape this rail used to have; that rule
still matches, and an override that names only `flex` and `padding` inherits the grid. */
#cg-route-popover .cg-view-row > .cg-w44-route-toggle {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
gap: 5px;
padding: 0 0 0 6px;
background: transparent;
}
/* The Route's colour rides the checkbox itself (`accentColor`, set inline from the record), so
the row carries ONE mark rather than a checkbox and a coloured dot beside it. */
#cg-route-popover .cg-view-row .cg-w44-route-toggle input { margin: 0; cursor: pointer; }
/* The Route mark takes the gutter a view's mode dot occupies, so the two rails' NAMES start at
the same x. That alignment is what makes "the exact same layout" true rather than approximate. */
#cg-route-popover .cg-view-main > .cg-view-route-mark {
flex: 0 0 16px;
color: var(--lp-primary);
}
/* A Route whose stops sit outside the current filter. The row still reads normally; the mark is
the `.cg-view-desc` line the row already carries, so nothing here paints. */
#cg-route-popover .cg-view-row.is-outside .cg-view-desc { color: var(--lp-yellow-deep); }
/* ββ OWNER 2026-08-31 item 2: the per-Route colour editor ββββββββββββββββββββββββββββββββββββ */
#cg-route-popover .cg-w44-route-colors {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
padding-top: 4px;
}
#cg-route-popover .cg-w44-route-swatch {
width: 22px;
height: 22px;
padding: 0;
border: 2px solid transparent;
border-radius: var(--lp-r-sm);
cursor: pointer;
}
/* The selected swatch is marked by a RING outside its own fill, never by a tick drawn on top:
half these colours are dark and half are not, so an inked mark would vanish on three of six. */
#cg-route-popover .cg-w44-route-swatch.is-on {
border-color: var(--lp-ink);
box-shadow: 0 0 0 2px var(--lp-surface);
}
#cg-route-popover .cg-w44-route-swatch:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 2px;
}
#cg-route-popover .cg-w44-route-colorpick {
width: 28px;
height: 22px;
padding: 0;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-sm);
background: transparent;
cursor: pointer;
}
/* ββ OWNER 2026-08-31: the stop list is the rail, with an x and an add door βββββββββββββββββ
Owner: *"Same as the rail, same formatting too i believe"* / *"The only difference with the
rail is that route you can have an x button to remove a record, and also an add record button
where it provides the dropdown."* The rows already wear `.cg-view-row` and `.cg-view-main`, so
index.css sizes and hovers them; only the two differences and the list reset live here. */
#cg-route-popover .cg-w44-route-stops.cg-view-list {
margin: 0;
padding: 0;
list-style: none;
}
#cg-route-popover .cg-w46-stop-row.is-viewdrag { opacity: 0.45; }
/* The x. It takes `.cg-view-more`'s box, so it appears on hover exactly as the rail's "..." does
and cannot widen the row. */
#cg-route-popover .cg-w46-stop-remove {
display: grid;
place-items: center;
color: var(--lp-muted);
}
#cg-route-popover .cg-w46-stop-remove:hover { color: var(--lp-red-deep, #b3261e); }
#cg-route-popover .cg-w46-stop-remove svg {
width: 12px;
height: 12px;
fill: none;
stroke: currentColor;
stroke-width: 1.6;
stroke-linecap: round;
}
/* The add-record door and its menu. `position: relative` is what keeps the popover tied to the
button rather than to the scrolling panel, which is where a menu goes wandering. */
#cg-route-popover .cg-w46-stop-add { position: relative; }
#cg-route-popover .cg-w46-stop-addmenu {
position: absolute;
z-index: var(--cg-z-menu);
left: 0;
right: 0;
max-height: 280px;
overflow-y: auto;
}
/* One row per candidate, ellipsised: a customer name is arbitrary length and a menu that grows
sideways pushes the panel off the map. */
#cg-route-popover .cg-w46-stop-addmenu button[role="menuitem"] {
display: block;
width: 100%;
overflow: hidden;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
}
/* One way / Round trip, inside the drive-time card it changes. */
#cg-route-popover .cg-w46-timer-trip { padding-top: 8px; }
/* β `.w46-recur-pill` IS A 28x28 SQUARE, sized for the seven single-letter weekday initials it
was built for, so borrowing it for "One way" / "Round trip" wrapped both words inside a circle.
Observed on the deployed build before this rule existed. The pill's paint, hover, selected
state and focus ring are all still the date editor's - only the box grows to fit a word, which
is the whole reason to reuse the class rather than mint a second kind of pill. */
#cg-route-popover .cg-w46-timer-trip .w46-recur-pill {
width: auto;
min-width: 0;
height: 26px;
padding: 0 10px;
white-space: nowrap;
}
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
W51-T32 β THE MAP AND THE ROUTE COLUMN SHARE ONE ROW, WHICH IS THE WHOLE FIX.
Wave 50's QA measured 427 px of live map lying under the floating Route column, and a
coordinate click on a pin inside that rectangle opened nothing at all. The mechanism is
document order inside an SVG, so no stacking value on either side could have repaired it; the
panel had to stop being painted over the canvas. `MapView.tsx` now wraps the canvas and the
three navigator asides in one row element, and the rules below are what make that row behave.
β MOVING THE PANEL OUT OF THE TOOLBAR ALSO RETIRES FOUR COMPETING DECLARATIONS AT NO COST.
Every one of them, in this sheet and in two others lane G may not edit, is keyed on the
toolbar-child path, so all four simply stop matching instead of needing an override. The PRD's
380 px right-panel anatomy governs by default and there is no specificity fight to win.
β These rules are APPENDED. Read the note beside the inert rules at the top of this sheet
before adding anything above them.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.cg-mapview > .cg-map-stage { display: flex; flex: 1; min-height: 0; align-items: stretch; }
/* index.css gives the frame `min-height: 0`, which is the right guard in a COLUMN and does
nothing in a ROW: without `min-width: 0` a flex item refuses to shrink below its content, and
the canvas would push the column off the edge instead of yielding the width it takes. */
.cg-mapview > .cg-map-stage > .cg-map-frame { flex: 1 1 0; min-width: 0; }
/* The panel as a COLUMN IN THE FLOW rather than a floating overlay. `position` and `z-index` are
the two declarations that carry the whole ticket: everything else preserves what the panel
already had. index.css declares the popover absolute at 0,1,0 and this chain is 0,4,0, so the
override needs no doubled class and no !important. */
.cg-mapview > .cg-map-stage > .cg-route-popover.cg-route-nav-panel {
position: static;
inset: auto;
flex: 0 0 min(300px, 100%);
width: auto;
max-height: none;
box-sizing: border-box;
display: flex;
flex-direction: column;
min-height: 0;
overflow: hidden;
border: 1px solid var(--lp-line);
border-radius: 0;
box-shadow: none;
z-index: auto;
margin-left: 8px;
}
/* Zones retain their panel scroll while Routes bound each navigation region below. */
.cg-mapview > .cg-map-stage > .cg-route-popover.cg-route-nav-panel > .cg-route-panel-scroll {
flex: 1 1 0;
min-height: 0;
min-width: 0;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior-y: contain;
scrollbar-gutter: stable;
}
.cg-mapview > .cg-map-stage > .cg-route-popover.cg-route-nav-panel .cg-map-stoplist,
.cg-mapview > .cg-map-stage > .cg-route-popover.cg-route-nav-panel .cg-route-picker-list {
max-height: none;
overflow: visible;
}
.cg-mapview.cg-app-route-surface > .cg-map-stage > #cg-route-popover .cg-route-stop-scroll,
.cg-mapview.cg-app-route-surface > .cg-map-stage > #cg-route-popover .cg-route-index-scroll {
min-height: 0;
max-height: none;
overflow: visible;
}
.cg-mapview.cg-app-route-surface > .cg-map-stage > #cg-route-popover > .cg-route-panel-scroll {
display: flex;
overflow: hidden;
}
.cg-mapview.cg-app-route-surface > .cg-map-stage > #cg-route-popover .cg-w44-route-nav {
border: 0;
border-radius: 0;
padding: 0;
}
/* The Routes list and its actions share the rail until a Route opens in their place. */
.cg-mapview.cg-app-route-surface > .cg-map-stage > #cg-route-popover > .cg-route-panel-scroll > .cg-w44-route-nav {
display: grid;
grid-template-rows: auto minmax(0, 1fr);
flex: 1 1 0;
min-width: 0;
min-height: 0;
overflow: hidden;
}
.cg-mapview.cg-app-route-surface > .cg-map-stage > #cg-route-popover > .cg-route-panel-scroll > .cg-w44-route-nav:has(> .cg-w44-route-nav) {
grid-template-rows: minmax(0, 1fr);
}
.cg-mapview.cg-app-route-surface > .cg-map-stage > #cg-route-popover .cg-route-index-scroll,
.cg-mapview.cg-app-route-surface > .cg-map-stage > #cg-route-popover .cg-w44-route-nav > .cg-w44-route-nav {
min-width: 0;
min-height: 0;
max-height: 100%;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior-y: contain;
scrollbar-gutter: stable;
}
/* Route rows clear the App footer during focus and scrolling. */
.cg-mapview.cg-app-route-surface > .cg-map-stage > #cg-route-popover .cg-w44-route-nav > .cg-w44-route-nav {
display: block;
padding-bottom: 16px;
scroll-padding-block: 16px;
}
.cg-mapview.cg-app-route-surface > .cg-map-stage > #cg-route-popover .cg-route-stop-scroll {
margin-top: 6px;
}
|