/* Map cable lines. Colours: UP #22A06B, WEAK #E8A317, DEGRADED #F97316, CUT #D92D20, POWER #F79009, AFFECTED grey, NO DATA light grey. */
.cab { stroke-linecap: round; stroke-linejoin: round; fill: none; cursor: pointer; }
.cab-nodraw { stroke-dasharray: 2 6; opacity: .75; }                                   /* straight line: the route has not been drawn yet */
.cab-up { stroke-dasharray: 3 9; }                                                    /* thin dotted line (still: no "flow", less lag) */
.cab-nodraw.cab-cut, .cab-nodraw.cab-degraded, .cab-nodraw.cab-power { opacity: 1; }
.cab-up.cab-feeder, .cab-up.cab-distribution { stroke-dasharray: 4 10; }
.cab-weak { stroke-dasharray: 3 9; }
.cab-degraded { stroke-dasharray: 10 5; }
.cab-power { stroke-dasharray: 9 7; }                                                  /* dashed amber, never blinking */
.cab-affected { stroke-dasharray: 5 7; }
.cab-nodata { stroke-opacity: .8; }
.cab-cut { stroke-dasharray: none; }                                                  /* solid red, never blinking */
.cab-cut.cab-feeder:not(.cab-ack) { stroke-width: 6px; } .cab-cut.cab-distribution:not(.cab-ack) { stroke-width: 4px; } .cab-cut.cab-drop:not(.cab-ack) { stroke-width: 2.5px; }   /* 1 px thicker than the other lines */
.cab-cut.cab-nodraw.cab-feeder:not(.cab-ack), .cab-cut.cab-nodraw.cab-distribution:not(.cab-ack) { stroke-width: 3px; }
.cab-glow { pointer-events: none; }                                                   /* still, light red line under a cut */
.cab-x-wrap { background: none; border: 0; }
.cab-x { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #D92D20; color: #fff; font: 700 13px/1 Inter, system-ui, sans-serif; border: 2px solid var(--imat-surface); }
.cab-x-sm { width: 16px; height: 16px; font-size: 10px; border-width: 1.5px; }
.cab-x.cab-ack { box-shadow: 0 0 0 3px rgba(217, 45, 32, .25); }
.cab-pop { font-size: 12.5px; line-height: 1.5; } .cab-pop strong { font-size: 13.5px; }
.cab-badge { color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; margin-left: 4px; }

/* Active link alerts panel */
.cab-alert { border-bottom: 1px solid var(--imat-divider); padding: 9px 12px; font-size: 12.5px; }
.cab-alert.is-ack { background: var(--imat-warn-bg); }
.cab-alert h4 { margin: 0 0 2px; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cab-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.cab-alert .m-muted { margin-top: 2px; }
.cab-alert .mp-btns { margin-top: 7px; }
.cab-ticket { margin: 8px 12px; padding: 8px; background: var(--imat-row-hover); border: 1px solid var(--imat-control-line); border-radius: 8px; font-size: 12px; white-space: pre-wrap; max-height: 220px; overflow: auto; }
.cab-chip-cut .mp-dot { background: var(--imat-down); } .cab-chip-pw .mp-dot { background: var(--imat-warn); } .cab-chip-up .mp-dot { background: var(--imat-up); } .cab-chip-wk .mp-dot { background: var(--imat-warn); }   /* the chip dots (the word says the state) */
.cab-chip-dg { color: var(--imat-warn); }
.cab-chip-blink { border-color: var(--imat-down) !important; }                                 /* cuts open: red border, no blinking */
.cab-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 7px 12px; font-size: 11.5px; color: var(--imat-muted); border-top: 1px solid var(--imat-divider); }
.cab-legend i { display: inline-block; width: 18px; height: 0; border-top: 3px solid; vertical-align: middle; margin-right: 4px; }
