@import url('./network-lab.css');

/* Telecom Lab Specific Styles */

.nl-canvas-viewport.has-telecom-background .nl-canvas-world { background-image: none; }
.tl-custom-background {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: var(--nl-world-width);
    height: var(--nl-world-height);
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}
.tl-custom-background.is-screen-fixed { position: absolute; width: 100%; height: 100%; }
.tl-custom-background img {
    width: 100%;
    height: 100%;
    transform-origin: center;
    pointer-events: none;
    user-select: none;
}
.nl-canvas-viewport.is-background-measuring { cursor: crosshair; }
.tl-background-measure-line {
    position: absolute;
    z-index: 8;
    height: 2px;
    transform-origin: 0 50%;
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .8);
    pointer-events: none;
}
.tl-background-dialog { width: min(50rem, calc(100vw - 2rem)); }
.tl-background-dialog form { max-height: min(88vh, 50rem); overflow: auto; }
.tl-background-layout { display: grid; grid-template-columns: minmax(13rem, .85fr) minmax(17rem, 1.15fr); gap: 1rem; }
.tl-background-preview {
    position: relative;
    display: grid;
    min-height: 13rem;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--labs-border);
    border-radius: .8rem;
    color: var(--labs-muted);
    background-color: var(--nl-canvas-bg);
    background-image: linear-gradient(var(--nl-grid) 1px, transparent 1px), linear-gradient(90deg, var(--nl-grid) 1px, transparent 1px);
    background-size: 20px 20px;
}
.tl-background-preview img { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: center; }
.tl-background-fields { min-width: 0; }
.tl-background-size-note { margin: -.25rem 0 .75rem; color: var(--labs-muted); font-size: .68rem; }
.tl-background-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: .7rem; }
.tl-background-grid label { display: grid; min-width: 0; gap: .25rem; color: var(--labs-muted); font-size: .7rem; }
.tl-background-lock { display: flex !important; align-items: center; padding-bottom: .45rem; gap: .45rem !important; }
.tl-calibration-fields { padding-top: .8rem; border-top: 1px solid var(--labs-border); }
.tl-calibration-fields output { align-self: center; color: var(--labs-ink); font-size: .75rem; font-weight: 700; }
@media (max-width: 650px) {
    .tl-background-layout { grid-template-columns: 1fr; }
    .tl-background-preview { min-height: 9rem; }
    .tl-background-grid { grid-template-columns: 1fr; }
}

:root {
    --nl-packet-speedtest: #10b981; /* green for speed test */
    --nl-packet-http: #f59e0b; /* orange for http */
}

.tl-connection-pipeline {
    border-top: 1px solid var(--bs-border-color);
    padding-top: .75rem;
}

.tl-pipeline-section,
.tl-pipeline-stage {
    background: color-mix(in srgb, var(--bs-body-bg) 92%, var(--bs-primary) 8%);
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    margin-bottom: .5rem;
    padding: .55rem .65rem;
}

.tl-pipeline-section-title {
    color: var(--bs-secondary-color);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin: 0 0 .4rem;
    text-transform: uppercase;
}

.tl-pipeline-stage-trigger {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: flex;
    font-size: .78rem;
    font-weight: 650;
    justify-content: space-between;
    padding: 0 0 .35rem;
    text-align: left;
    width: 100%;
}

.tl-pipeline-stage-trigger:hover .tl-pipeline-stage-name,
.tl-pipeline-stage-trigger:focus-visible .tl-pipeline-stage-name {
    color: var(--bs-primary);
    text-decoration: underline;
}

.tl-pipeline-detail-grid {
    display: grid;
    font-size: .7rem;
    gap: .15rem .5rem;
    grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr);
}

.tl-pipeline-detail-grid dt {
    color: var(--bs-secondary-color);
    font-weight: 500;
}

.tl-pipeline-detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.tl-pipeline-stage.is-failed {
    border-color: color-mix(in srgb, var(--bs-danger) 48%, var(--bs-border-color));
}

.tl-pipeline-stage.is-running {
    border-color: color-mix(in srgb, var(--bs-primary) 48%, var(--bs-border-color));
}

/* Runtime-only Telecom Developer Console */
.tl-console {
    --tl-console-height: 200px;
    --tl-row-height: 34px;
    position: fixed;
    right: .75rem;
    bottom: 2.25rem;
    left: .75rem;
    z-index: 1060;
    height: min(var(--tl-console-height), 60vh);
    min-height: 40px;
    max-height: 60vh;
    display: grid;
    grid-template-rows: 4px auto auto auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--labs-border) 82%, transparent);
    border-radius: 10px 10px 0 0;
    background: color-mix(in srgb, var(--labs-panel) 97%, transparent);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, .16);
    backdrop-filter: blur(10px);
    animation: tl-console-in 130ms ease-out;
}
.tl-console[hidden] { display: none; }
.tl-console-resizer { cursor: ns-resize; background: transparent; touch-action: none; }
.tl-console-resizer::after { content: ''; display: block; width: 46px; height: 2px; margin: 1px auto; border-radius: 99px; background: color-mix(in srgb, var(--labs-muted) 45%, transparent); }
.tl-console.is-resizing { user-select: none; transition: none; }
.tl-console.is-collapsed { height: 40px; grid-template-rows: 0 40px; animation: none; }
.tl-console.is-collapsed .tl-console-resizer,
.tl-console.is-collapsed .tl-console-actions,
.tl-console.is-collapsed .tl-console-search,
.tl-console.is-collapsed .tl-console-mode,
.tl-console.is-collapsed .tl-console-auto,
.tl-console.is-collapsed .tl-console-count,
.tl-console.is-collapsed [data-telecom-event-collapse],
.tl-console.is-collapsed [data-telecom-event-close],
.tl-console.is-collapsed .tl-console-filters,
.tl-console.is-collapsed .tl-console-stats,
.tl-console.is-collapsed .tl-console-body { display: none; }
.tl-console.is-collapsed .tl-console-toolbar { min-height: 40px; border: 0; cursor: pointer; }
.tl-console-toolbar { display: flex; align-items: center; gap: .4rem; min-width: 0; padding: .28rem .5rem; border-bottom: 1px solid var(--labs-border); }
.tl-console-title { display: inline-flex; align-items: center; gap: .4rem; flex: 0 0 auto; padding: .2rem .3rem; border: 0; color: var(--labs-ink); background: transparent; font-size: .74rem; }
.tl-console-title i { color: #6366f1; }
.tl-console-title span { color: var(--labs-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .65rem; }
.tl-console-actions { display: flex; gap: .25rem; }
.tl-console-actions .btn, .tl-console-toolbar > .btn { height: 27px; padding: .16rem .38rem; font-size: .65rem; }
.tl-console-actions .btn span { margin-left: .2rem; }
.tl-console-search { display: flex; align-items: center; flex: 1 1 12rem; min-width: 7rem; height: 27px; padding: 0 .45rem; border: 1px solid var(--labs-border); border-radius: 6px; color: var(--labs-muted); background: color-mix(in srgb, var(--labs-bg) 72%, transparent); }
.tl-console-search input { width: 100%; min-width: 0; padding: 0 .35rem; border: 0; outline: 0; color: var(--labs-ink); background: transparent; font-size: .68rem; }
.tl-console-mode { display: inline-flex; flex: 0 0 auto; padding: 2px; border: 1px solid var(--labs-border); border-radius: 7px; background: color-mix(in srgb, var(--labs-bg) 76%, transparent); }
.tl-console-mode button { padding: .12rem .45rem; border: 0; border-radius: 5px; color: var(--labs-muted); background: transparent; font-size: .62rem; font-weight: 700; }
.tl-console-mode button[aria-pressed="true"] { color: #4338ca; background: color-mix(in srgb, #818cf8 17%, var(--labs-panel)); }
.tl-console-auto { display: inline-flex; align-items: center; gap: .25rem; flex: 0 0 auto; color: var(--labs-muted); font-size: .62rem; white-space: nowrap; }
.tl-console-count { min-width: 2.2rem; padding: .12rem .4rem; border-radius: 999px; color: var(--labs-muted); background: color-mix(in srgb, var(--labs-bg) 82%, transparent); font: 600 .62rem ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.tl-console-filters { display: flex; gap: .35rem; padding: .3rem .55rem; border-bottom: 1px solid var(--labs-border); background: color-mix(in srgb, var(--labs-bg) 58%, transparent); }
.tl-console-filters[hidden] { display: none; }
.tl-console-filters .form-select, .tl-console-filters .form-control { width: auto; min-width: 8rem; height: 27px; padding-block: .12rem; font-size: .65rem; }
.tl-console-stats { display: flex; align-items: center; gap: .85rem; min-height: 24px; padding: .2rem .7rem; border-bottom: 1px solid color-mix(in srgb, var(--labs-border) 75%, transparent); color: var(--labs-muted); font-size: .61rem; }
.tl-console-stats strong { color: var(--labs-ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tl-console-notice { margin-left: auto; color: #4f46e5; }
.tl-console-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; overflow: hidden; }
.tl-console-body.has-detail { grid-template-columns: minmax(0, 1fr) minmax(250px, 30%); }
.tl-console-list { min-height: 0; overflow: auto; outline: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; scrollbar-width: thin; }
.tl-console-row { position: relative; width: 100%; height: var(--tl-row-height); display: grid; grid-template-columns: 86px 24px 58px 76px minmax(86px, 130px) minmax(0, 1fr) minmax(60px, 110px); align-items: center; gap: .35rem; padding: 0 .65rem 0 1.15rem; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--labs-border) 45%, transparent); color: var(--labs-ink); background: transparent; text-align: left; font-size: .65rem; }
.tl-console-row::before { content: ''; position: absolute; top: 0; bottom: 0; left: .58rem; width: 1px; background: color-mix(in srgb, var(--labs-muted) 27%, transparent); }
.tl-console-row::after { content: ''; position: absolute; left: .43rem; width: 5px; height: 5px; border: 1px solid color-mix(in srgb, var(--labs-muted) 55%, transparent); border-radius: 50%; background: var(--labs-panel); }
.tl-console-row:hover, .tl-console-row.is-selected { background: color-mix(in srgb, #6366f1 7%, transparent); }
.tl-console-time { color: var(--labs-muted); }
.tl-console-icon { font-size: .72rem; text-align: center; }
.tl-console-level, .tl-console-category, .tl-console-device { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-console-level, .tl-console-category { justify-self: start; padding: .08rem .32rem; border-radius: 4px; font-size: .54rem; font-weight: 800; letter-spacing: .025em; }
.tl-console-level { color: #1d4ed8; background: #dbeafe; }
.tl-console-row.is-debug .tl-console-level { color: #4b5563; background: #e5e7eb; }
.tl-console-row.is-success .tl-console-level { color: #047857; background: #d1fae5; }
.tl-console-row.is-warning .tl-console-level { color: #a16207; background: #fef3c7; }
.tl-console-row.is-error .tl-console-level { color: #b91c1c; background: #fee2e2; }
.tl-console-category { color: #6d28d9; background: color-mix(in srgb, #8b5cf6 13%, var(--labs-panel)); }
.tl-console-device { padding: .08rem .36rem; border-radius: 4px; color: hsl(var(--tl-device-hue) 54% 34%); background: hsl(var(--tl-device-hue) 72% 91%); font-weight: 700; }
.tl-console-message, .tl-console-bts { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-console-bts { color: var(--labs-muted); }
.tl-console-repeat { color: #7c3aed; font-weight: 800; }
.tl-console-spacer { width: 1px; pointer-events: none; }
.tl-console-empty { display: grid; place-items: center; height: 100%; min-height: 80px; color: var(--labs-muted); font: .7rem var(--bs-font-sans-serif); text-align: center; }
.tl-console-latest { position: absolute; right: 1rem; bottom: .65rem; z-index: 2; padding: .3rem .6rem; border: 1px solid color-mix(in srgb, #6366f1 35%, var(--labs-border)); border-radius: 999px; color: #4338ca; background: color-mix(in srgb, var(--labs-panel) 92%, transparent); box-shadow: 0 4px 14px rgba(15, 23, 42, .12); font-size: .62rem; }
.tl-console-detail { min-width: 0; overflow: auto; border-left: 1px solid var(--labs-border); background: color-mix(in srgb, var(--labs-bg) 58%, var(--labs-panel)); animation: tl-console-fade 120ms ease-out; }
.tl-console-detail[hidden] { display: none; }
.tl-console-detail header { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: .38rem .55rem; border-bottom: 1px solid var(--labs-border); background: inherit; font-size: .68rem; }
.tl-console-detail header button { border: 0; color: var(--labs-muted); background: transparent; }
.tl-console-detail [data-telecom-event-detail-content] { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .3rem .5rem; padding: .55rem; font-size: .62rem; }
.tl-console-detail dt { color: var(--labs-muted); font-weight: 600; }
.tl-console-detail dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.tl-console .is-paused { color: #a16207; border-color: #eab308; }
@keyframes tl-console-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tl-console-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1100px) {
    .tl-console { --tl-console-height: 160px; }
    .tl-console-toolbar { flex-wrap: wrap; }
    .tl-console-search { order: 3; flex-basis: 100%; }
    .tl-console-stats { gap: .55rem; overflow-x: auto; white-space: nowrap; }
    .tl-console-row { grid-template-columns: 78px 20px 54px 70px minmax(80px, 110px) minmax(180px, 1fr) 90px; }
}
@media (max-width: 700px) {
    .tl-console { right: .35rem; bottom: 2.15rem; left: .35rem; height: min(var(--tl-console-height), 48vh); max-height: 48vh; border-radius: 12px 12px 0 0; }
    .tl-console-toolbar { flex-wrap: nowrap; overflow-x: auto; }
    .tl-console-actions .btn span, .tl-console-auto, .tl-console-count { display: none; }
    .tl-console-search { order: initial; flex: 0 0 8rem; }
    .tl-console-title strong { display: none; }
    .tl-console-filters { overflow-x: auto; }
    .tl-console-body.has-detail { grid-template-columns: 1fr; }
    .tl-console-detail { position: absolute; inset: 0; z-index: 3; border-left: 0; }
    .tl-console-row { min-width: 620px; }
}
@media (prefers-reduced-motion: reduce) {
    .tl-console, .tl-console-detail { animation: none; }
}

/* Brand overrides */
.nl-brand-icon {
    background: linear-gradient(135deg, #7c3aed, #ec4899) !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2) !important;
}

/* Coverage circles in the SVG link layer */
.nl-coverage-circle {
    fill: rgba(14, 165, 233, 0.04);
    stroke: rgba(14, 165, 233, 0.25);
    stroke-width: 1.5;
    stroke-dasharray: 4 6;
    pointer-events: none;
    transition: all 0.3s ease-out;
}

/* Provider-specific coverage colors */
.nl-coverage-circle.provider-telkomsel {
    fill: rgba(239, 68, 68, 0.03);
    stroke: rgba(239, 68, 68, 0.3);
}
.nl-coverage-circle.provider-indosat {
    fill: rgba(249, 115, 22, 0.03);
    stroke: rgba(249, 115, 22, 0.3);
}
.nl-coverage-circle.provider-xl {
    fill: rgba(37, 99, 235, 0.03);
    stroke: rgba(37, 99, 235, 0.3);
}
.nl-coverage-circle.provider-three {
    fill: rgba(168, 85, 247, 0.03);
    stroke: rgba(168, 85, 247, 0.3);
}
.nl-coverage-circle.provider-smartfren {
    fill: rgba(236, 72, 153, 0.03);
    stroke: rgba(236, 72, 153, 0.3);
}

/* Coverage boundary pulses on change */
@keyframes coveragePulse {
    0% { stroke-width: 1.5; opacity: 1; }
    50% { stroke-width: 3; opacity: 0.7; }
    100% { stroke-width: 1.5; opacity: 1; }
}
.nl-coverage-circle.is-updating {
    animation: coveragePulse 0.5s ease-in-out;
}

/* Device badge overlays */
.nl-device-signal-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 10;
    white-space: nowrap;
}

.nl-device-signal-badge.signal-green {
    background-color: #10b981;
}
.nl-device-signal-badge.signal-yellow {
    background-color: #f59e0b;
    color: #1f2937;
}
.nl-device-signal-badge.signal-red {
    background-color: #ef4444;
}
.nl-device-signal-badge.signal-none {
    background-color: #6b7280;
}

/* Speed Test Gauge Styling */
.speedtest-container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.speedtest-gauge {
    position: relative;
    width: 180px;
    height: 180px;
}
.speedtest-gauge svg {
    width: 100%;
    height: 100%;
}
.speedtest-gauge-track {
    fill: none;
    stroke: var(--labs-border);
    stroke-width: 10;
}
.speedtest-gauge-fill {
    fill: none;
    stroke: #10b981;
    stroke-width: 10;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.5s ease-out;
}
.speedtest-gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.speedtest-gauge-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--labs-ink);
}
.speedtest-gauge-unit {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--labs-muted);
    text-transform: uppercase;
}
.speedtest-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    margin-top: 0.5rem;
}
.speedtest-result-box {
    background: color-mix(in srgb, var(--labs-panel) 90%, var(--labs-bg));
    border: 1px solid var(--labs-border);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}
.speedtest-result-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--labs-muted);
    margin-bottom: 0.25rem;
}
.speedtest-result-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--labs-ink);
}

/* Custom packet classes for animation */
.nl-packet.is-speedtest {
    background-color: var(--nl-packet-speedtest) !important;
}
.nl-packet.is-http {
    background-color: var(--nl-packet-http) !important;
}

/* Hide CLI frame in telecom mode */
.nl-cli-layer {
    display: none !important;
}

/* Properties panel styling consistency for light & dark themes */
.nl-inspector-content .bg-light {
    background-color: color-mix(in srgb, var(--labs-panel) 60%, var(--labs-bg)) !important;
    border-color: var(--labs-border) !important;
}

.nl-inspector-content .bg-white {
    background-color: var(--labs-panel) !important;
    border-color: var(--labs-border) !important;
}

.nl-inspector-content canvas {
    background-color: var(--labs-panel) !important;
    border-color: var(--labs-border) !important;
}

.nl-inspector-content .list-group-item.bg-light {
    background-color: color-mix(in srgb, var(--labs-panel) 40%, var(--labs-bg)) !important;
    color: var(--labs-ink) !important;
    border-color: var(--labs-border) !important;
}

.nl-inspector-content .border {
    border-color: var(--labs-border) !important;
}

.nl-inspector-content .text-secondary {
    color: var(--labs-muted) !important;
}

/* Ensure active subscriber tabs look great in dark theme */
[data-bs-theme="dark"] .nl-inspector-content .nav-link {
    color: var(--labs-muted);
}
[data-bs-theme="dark"] .nl-inspector-content .nav-link.active {
    background-color: var(--labs-blue);
    color: #fff;
}

/* ==========================================================================
   Toolora Telecom Lab Responsive Top Toolbar (Figma/VS Code Style)
   ========================================================================== */

/* Main Header Flex Layout */
.nl-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 16px !important;
    background: color-mix(in srgb, var(--labs-panel) 96%, var(--labs-bg)) !important;
    border-bottom: 1px solid var(--labs-border) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    min-width: 0;
    gap: 12px;
}

/* LEFT: Brand Area */
.nl-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
}
.nl-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--labs-ink);
    min-width: 0;
}
.nl-brand-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #7c3aed, #ec4899) !important;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2) !important;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}
.nl-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}
.nl-brand-title {
    font-size: 13.5px;
    font-weight: 750;
    color: var(--labs-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nl-brand-subtitle {
    font-size: 10px;
    color: var(--labs-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nl-workspace-selector {
    flex-shrink: 0;
}
.nl-workspace-selector .btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--labs-border) !important;
    border-radius: 6px;
    color: var(--labs-ink) !important;
    background: transparent !important;
}
.nl-workspace-selector .btn:hover {
    background: color-mix(in srgb, var(--labs-panel) 80%, var(--labs-bg)) !important;
}

/* CENTER: Main Toolbar Container */
.nl-header-center {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

/* Sleek Figma-like Main Toolbar Frame */
.nl-main-toolbar {
    display: flex;
    align-items: center;
    background: color-mix(in srgb, var(--labs-panel) 90%, var(--labs-bg));
    border: 1px solid var(--labs-border);
    border-radius: 8px;
    padding: 3px 6px;
    gap: 4px;
    min-width: 0;
}

/* Separators and Groups */
.nl-toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nl-toolbar-separator {
    width: 1px;
    height: 18px;
    background-color: var(--labs-border);
    margin: 0 6px;
    flex-shrink: 0;
}

/* Main Toolbar Buttons */
.nl-main-toolbar .nl-toolbar-button {
    height: 36px !important;
    padding: 0 10px !important;
    border: none !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: var(--labs-ink) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.15s ease;
    white-space: nowrap !important;
}
.nl-main-toolbar .nl-toolbar-button i {
    font-size: 16px !important;
}
.nl-main-toolbar .nl-toolbar-button:hover {
    background: color-mix(in srgb, var(--labs-panel) 50%, var(--labs-bg)) !important;
}

/* Dropdown More button in toolbar */
.nl-main-toolbar .nl-toolbar-more {
    position: static !important;
}
.nl-main-toolbar .nl-toolbar-more .dropdown-toggle {
    height: 36px !important;
    padding: 0 10px !important;
    border: none !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: var(--labs-ink) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
}
.nl-main-toolbar .nl-toolbar-more .dropdown-toggle i {
    font-size: 16px !important;
}
.nl-main-toolbar .nl-toolbar-more .dropdown-toggle::after {
    display: none !important;
}
.nl-main-toolbar .nl-toolbar-more .dropdown-toggle:hover {
    background: color-mix(in srgb, var(--labs-panel) 50%, var(--labs-bg)) !important;
}

/* RIGHT: Options & Account Area */
.nl-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-right: 14px;
}
.nl-header-icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--labs-border) !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--labs-ink) !important;
}
.nl-header-icon-btn i {
    font-size: 16px !important;
}
.nl-header-icon-btn:hover {
    background: color-mix(in srgb, var(--labs-panel) 80%, var(--labs-bg)) !important;
}
.nl-role-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}
.nl-account-action {
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.nl-account-action i {
    font-size: 16px !important;
}
.nl-account-trigger {
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--labs-border) !important;
    background: transparent !important;
    color: var(--labs-ink) !important;
}
.nl-account-trigger i {
    font-size: 16px !important;
}
.nl-account-trigger:hover {
    background: color-mix(in srgb, var(--labs-panel) 80%, var(--labs-bg)) !important;
}

/* Button label helper classes */
.btn-label-long {
    display: inline;
}
.btn-label-short {
    display: none;
}

/* Hide dynamic priority items in dropdown menu by default on large screens */
.nl-toolbar-more .dropdown-menu li[class*="item-"] {
    display: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* 1. Large Desktop (min-width: 1440px) */
@media (min-width: 1440px) {
    .nl-main-toolbar .nl-toolbar-button {
        display: inline-flex !important;
    }
    .nl-main-toolbar .nl-toolbar-separator {
        display: block !important;
    }
}

/* 2. Desktop Compact (1366px - 1439px) */
@media (max-width: 1439px) {
    .nl-header {
        padding: 0 12px !important;
        gap: 8px;
    }
    
    /* Shorten labels for HTTP Request and Speed Test */
    .btn-label-long {
        display: none !important;
    }
    .btn-label-short {
        display: inline !important;
    }
    
    /* Hide text labels of main buttons to avoid overlaps */
    .nl-main-toolbar .nl-toolbar-button[data-action="new"] span,
    .nl-main-toolbar .nl-toolbar-button[data-action="open"] span,
    .nl-main-toolbar .nl-toolbar-button[data-action="save"] span,
    .nl-main-toolbar .nl-toolbar-button[data-action="undo"] span,
    .nl-main-toolbar .nl-toolbar-button[data-action="redo"] span {
        display: none !important;
    }
    
    /* Move Speed Test to dropdown */
    .nl-main-toolbar .nl-toolbar-button[data-action="speedTest"] {
        display: none !important;
    }
    .nl-toolbar-more .dropdown-menu li.item-speedTest {
        display: block;
    }
}

/* 3. Desktop Small (1200px - 1365px) */
@media (max-width: 1365px) {
    .nl-brand-subtitle {
        display: none !important;
    }
    
    /* Move Speed Test and Traceroute to dropdown */
    .nl-main-toolbar .nl-toolbar-button[data-action="speedTest"],
    .nl-main-toolbar .nl-toolbar-button[data-action="traceroute"] {
        display: none !important;
    }
    .nl-toolbar-more .dropdown-menu li.item-speedTest,
    .nl-toolbar-more .dropdown-menu li.item-traceroute {
        display: block;
    }
}

/* 4. Tablet Landscape (1024px - 1199px) */
@media (max-width: 1199px) {
    /* Move Speed Test, Traceroute, and HTTP to dropdown */
    .nl-main-toolbar .nl-toolbar-button[data-action="speedTest"],
    .nl-main-toolbar .nl-toolbar-button[data-action="traceroute"],
    .nl-main-toolbar .nl-toolbar-button[data-action="http"] {
        display: none !important;
    }
    .nl-toolbar-more .dropdown-menu li.item-speedTest,
    .nl-toolbar-more .dropdown-menu li.item-traceroute,
    .nl-toolbar-more .dropdown-menu li.item-http {
        display: block;
    }
    
    /* Move New and Open to dropdown */
    .nl-main-toolbar .nl-toolbar-button[data-action="new"],
    .nl-main-toolbar .nl-toolbar-button[data-action="open"] {
        display: none !important;
    }
    .nl-toolbar-more .dropdown-menu li.item-new,
    .nl-toolbar-more .dropdown-menu li.item-open {
        display: block;
    }
    
    /* Hide priority separators */
    .nl-main-toolbar .sep-priority-med {
        display: none !important;
    }
}

/* 5. Tablet Portrait & Mobile (< 1024px) */
@media (max-width: 1023px) {
    /* Hide all main toolbar buttons (including High priority) */
    .nl-main-toolbar .nl-toolbar-button {
        display: none !important;
    }
    .nl-main-toolbar .nl-toolbar-separator {
        display: none !important;
    }
    
    /* Show all items in More dropdown */
    .nl-toolbar-more .dropdown-menu li[class*="item-"] {
        display: block;
    }
    
    /* Adjust header layout space */
    .nl-header-center {
        flex: 0;
    }
    .nl-brand-title {
        font-size: 13px;
    }
}

/* 6. Mobile Extra (< 768px) */
@media (max-width: 767px) {
    .nl-brand-subtitle {
        display: none !important;
    }
    .nl-workspace-selector {
        margin-left: 2px !important;
    }
    .nl-workspace-selector .btn {
        width: 28px;
        height: 28px;
    }
    .nl-header {
        padding: 0 8px !important;
    }
}

/* Guest Device Limit Badge Styles overrides */
.nl-device-limit-badge.limit-neutral {
    border-color: #64748b !important;
    color: #64748b !important;
    background: rgba(100, 116, 139, 0.1) !important;
}
.nl-device-limit-badge.limit-blue {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.1) !important;
}
.nl-device-limit-badge.limit-reached-red {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

/* Telecom V1 Drive Test route overlay (radio mobility, never a physical link). */
.tl-mobility-route-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}

/* Drive Test post-run report; scoped to Telecom Lab V1. */
.tl-drive-report-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, .58);
}

.tl-drive-report {
    display: flex;
    flex-direction: column;
    width: min(1180px, 100%);
    max-height: min(900px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: var(--bs-body-bg);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .32);
}

.tl-drive-report-header,
.tl-drive-report-toolbar,
.tl-drive-report-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tl-drive-report-header { padding: 18px 20px 12px; }
.tl-drive-report-header h2,
.tl-drive-report-title-row h3 { margin: 0; font-size: 1.15rem; }
.tl-drive-report-header p,
.tl-drive-report-title-row p { margin: 3px 0 0; color: var(--bs-secondary-color); font-size: .78rem; }

.tl-drive-report-toolbar {
    align-items: flex-end;
    padding: 0 20px;
    border-bottom: 1px solid var(--bs-border-color);
}

.tl-drive-report-tabs,
.tl-drive-report-actions { display: flex; gap: 6px; overflow-x: auto; }
.tl-drive-report-tabs button {
    padding: 9px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--bs-secondary-color);
    font-size: .82rem;
    white-space: nowrap;
}
.tl-drive-report-tabs button.is-active { border-bottom-color: var(--bs-primary); color: var(--bs-primary); font-weight: 700; }
.tl-drive-report-actions { padding-bottom: 7px; flex: 0 0 auto; }
.tl-drive-report-actions .btn { white-space: nowrap; }
.tl-drive-report-body { min-height: 0; overflow: auto; padding: 20px; }
.tl-drive-report-section > h3 { margin: 22px 0 10px; font-size: 1rem; }
.tl-drive-report-section > h3:first-child { margin-top: 0; }

.tl-drive-report-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 20px;
}
.tl-drive-report-card { min-width: 0; padding: 10px 12px; border: 1px solid var(--bs-border-color); border-radius: 8px; }
.tl-drive-report-card span { display: block; color: var(--bs-secondary-color); font-size: .72rem; }
.tl-drive-report-card strong { display: block; overflow: hidden; margin-top: 3px; text-overflow: ellipsis; font-size: .86rem; white-space: nowrap; }
.tl-drive-report-chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tl-drive-report-chart-grid figure { margin: 0; padding: 10px; border: 1px solid var(--bs-border-color); border-radius: 8px; }
.tl-drive-report-chart-grid figcaption { margin-bottom: 6px; font-size: .78rem; font-weight: 700; }
.tl-drive-report-chart-grid canvas { width: 100%; height: 180px; background: var(--bs-body-bg); }
.tl-drive-report-status { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: var(--bs-secondary-bg); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.tl-drive-report-status.is-pass { color: #15803d; background: rgba(34, 197, 94, .13); }
.tl-drive-report-status.is-pass-with-warning,
.tl-drive-report-status.is-warn { color: #b45309; background: rgba(245, 158, 11, .14); }
.tl-drive-report-status.is-fail { color: #b91c1c; background: rgba(239, 68, 68, .13); }
.tl-drive-report-status.is-info,
.tl-drive-report-status.is-n-a { color: #1d4ed8; background: rgba(59, 130, 246, .12); }
.tl-drive-report-table { min-width: 720px; font-size: .76rem; }
.tl-drive-report-table th { white-space: nowrap; }
.tl-drive-report-table .is-group th { background: var(--bs-secondary-bg); }
.tl-drive-report-empty { padding: 28px; color: var(--bs-secondary-color); text-align: center; }
.tl-drive-report-findings li { margin-bottom: 8px; }
.tl-drive-report-timeline { margin-top: 20px; }
.tl-drive-report-timeline h4 { font-size: .86rem; }
.tl-drive-report-timeline-track { display: flex; min-height: 32px; overflow: hidden; border-radius: 6px; background: var(--bs-secondary-bg); }
.tl-drive-report-timeline-track span { display: grid; min-width: 18px; place-items: center; overflow: hidden; border-right: 1px solid rgba(255,255,255,.65); background: color-mix(in srgb, var(--bs-primary) 75%, white); color: #fff; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.tl-drive-report-timeline-track span:nth-child(even) { background: color-mix(in srgb, var(--bs-info) 75%, #172033); }
.tl-drive-report-timeline-axis { display: flex; justify-content: space-between; margin-top: 3px; color: var(--bs-secondary-color); font-size: .68rem; }

@media (max-width: 900px) {
    .tl-drive-report-overlay { padding: 10px; }
    .tl-drive-report { max-height: calc(100vh - 20px); }
    .tl-drive-report-toolbar { align-items: stretch; flex-direction: column; padding-top: 0; }
    .tl-drive-report-actions { padding-bottom: 8px; }
    .tl-drive-report-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tl-drive-report-chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .tl-drive-report-summary-grid { grid-template-columns: 1fr; }
    .tl-drive-report-actions { width: 100%; }
}

.tl-mobility-route-line {
    fill: none;
    stroke: #f59e0b;
    stroke-width: 4;
    stroke-dasharray: 12 8;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, .45));
}

.tl-mobility-waypoint circle {
    fill: #111827;
    stroke: #fbbf24;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.tl-mobility-waypoint text {
    fill: #fff;
    font: 700 12px/1 Inter, system-ui, sans-serif;
    user-select: none;
}

.nl-canvas-viewport.is-waypoint-tool,
.nl-canvas-viewport.is-waypoint-tool .nl-device {
    cursor: crosshair !important;
}

.telecom-live-map-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--nl-canvas-bg, #f3f4f6);
}

.leaflet-container {
    font-family: inherit !important;
}

.tl-map-custom-marker {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto !important;
}

.tl-map-marker-icon {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-size: 18px;
    border: 2px solid #ffffff;
    transition: transform 0.1s ease;
}

.tl-map-marker-icon:hover {
    transform: scale(1.1);
}

.tl-map-marker-icon.enodeb, .tl-map-marker-icon.gnodeb {
    background-color: #9333ea;
}

.tl-map-marker-icon.smartphone, .tl-map-marker-icon.laptop {
    background-color: #10b981;
}

.tl-map-marker-icon.access-point {
    background-color: #f59e0b;
}

.tl-map-marker-icon.logical {
    background-color: #6b7280;
}

.tl-telecom-device-svg {
    display: block;
    width: 1.8em;
    height: 1.15em;
    overflow: visible;
    color: inherit;
    pointer-events: none;
}

.nl-palette-item [data-telecom-icon="leo-satellite"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: inherit;
}

.nl-device-icon[data-telecom-icon="leo-satellite"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 1.7rem;
}

.tl-map-marker-icon.leo-satellite .tl-telecom-device-svg {
    width: 26px;
    height: 18px;
}

.tl-map-marker-label {
    background-color: rgba(17, 24, 39, 0.85);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    margin-top: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-weight: 600;
}

/* Live Map Ports */
.tl-map-port {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto !important;
    cursor: pointer;
}

.tl-map-port-dot {
    width: 12px;
    height: 12px;
    background-color: #3b82f6; /* blue default */
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.tl-map-port:hover .tl-map-port-dot {
    transform: scale(1.35);
    background-color: #1d4ed8;
}

.tl-map-port-label {
    font-size: 8px;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(17, 24, 39, 0.95);
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    margin-top: 3px;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.tl-map-port.is-top {
    flex-direction: column-reverse;
}

.tl-map-port.is-top .tl-map-port-label {
    margin-top: 0;
    margin-bottom: 3px;
}

.tl-map-port.is-pending .tl-map-port-dot {
    background-color: #eab308; /* pending yellow */
    animation: tl-pulse-pending 0.8s infinite alternate;
}

.tl-map-port.is-compatible .tl-map-port-dot {
    background-color: #22c55e; /* compatible green */
    animation: tl-pulse-compatible 0.8s infinite alternate;
}

@keyframes tl-pulse-pending {
    from {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7);
    }
    to {
        transform: scale(1.25);
        box-shadow: 0 0 0 6px rgba(234, 179, 8, 0);
    }
}

@keyframes tl-pulse-compatible {
    from {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    to {
        transform: scale(1.25);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

/* Live Map — Move Devices Toggle Button */
.tl-map-move-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    background: rgba(17, 24, 39, 0.88);
    color: #d1d5db;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    backdrop-filter: blur(4px);
}

.tl-map-move-toggle:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

.tl-map-move-toggle.is-active {
    background: rgba(120, 78, 0, 0.9);
    border-color: #fbbf24;
    color: #fbbf24;
    box-shadow: 0 2px 12px rgba(251, 191, 36, 0.35);
    animation: tl-pulse-move-on 1.5s ease-in-out infinite;
}

@keyframes tl-pulse-move-on {
    0%, 100% { box-shadow: 0 2px 12px rgba(251, 191, 36, 0.35); }
    50%       { box-shadow: 0 2px 20px rgba(251, 191, 36, 0.6); }
}
.tl-inspector-section-title {
    margin: 1rem 0 .75rem;
    color: var(--bs-secondary-color);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tl-operational-state {
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: .65rem;
    background: var(--bs-tertiary-bg);
}

.tl-operational-state__summary {
    display: flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .6rem .75rem;
    cursor: pointer;
    list-style-position: inside;
}

.tl-operational-state__title {
    margin-right: auto;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tl-operational-state__badge {
    flex: 0 0 auto;
    padding: .18rem .45rem;
    border-radius: 999px;
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    font-size: .64rem;
    font-weight: 700;
}

.tl-operational-state__badge.is-healthy {
    background: rgba(34, 197, 94, .14);
    color: #15803d;
}

.tl-operational-state__badge.is-degraded {
    background: rgba(245, 158, 11, .16);
    color: #b45309;
}

.tl-operational-state__badge.is-disconnected,
.tl-operational-state__badge.is-fault {
    background: rgba(239, 68, 68, .14);
    color: #dc2626;
}

.tl-operational-state__content {
    padding: 0 .75rem .7rem;
    border-top: 1px solid var(--bs-border-color);
}

.tl-operational-state__group-title {
    margin: .7rem 0 .3rem;
    color: var(--bs-secondary-color);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tl-operational-state__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: .5rem;
    padding: .18rem 0;
    font-size: .72rem;
}

.tl-operational-state__label {
    color: var(--bs-secondary-color);
}

.tl-operational-state__value {
    overflow-wrap: anywhere;
    text-align: right;
    font-weight: 600;
}

.tl-fault-panel {
    margin-bottom: 1rem;
    padding: .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .65rem;
    background: var(--bs-body-bg);
}

.tl-fault-panel__header,
.tl-fault-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
}

.tl-fault-item {
    margin-bottom: .4rem;
    padding: .5rem;
    border: 1px solid rgba(239, 68, 68, .25);
    border-radius: .5rem;
    background: rgba(239, 68, 68, .06);
}

.tl-fault-item__name,
.tl-fault-item__meta {
    display: block;
    overflow-wrap: anywhere;
    font-size: .72rem;
}

.tl-fault-item__meta {
    color: var(--bs-secondary-color);
    font-size: .64rem;
}

.tl-fault-alarm {
    margin-top: .35rem;
    padding: .38rem .5rem;
    border-left: 3px solid #f59e0b;
    border-radius: .3rem;
    background: rgba(245, 158, 11, .08);
    font-size: .68rem;
}

.tl-fault-alarm.is-critical,
.tl-fault-alarm.is-major {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, .08);
}

.tl-device-fault-indicator {
    position: absolute;
    z-index: 15;
    top: -.42rem;
    right: -.42rem;
    display: grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    border: 2px solid var(--bs-body-bg);
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .65rem;
    line-height: 1;
    pointer-events: none;
}

.tl-map-marker-icon .tl-device-fault-indicator {
    top: -.5rem;
    right: -.5rem;
}

/* Custom cursors for draggable Leaflet markers */
.tl-leaflet-custom-icon {
    cursor: pointer;
}
.tl-map-move-active .tl-leaflet-custom-icon {
    cursor: grab;
}
.tl-leaflet-custom-icon:active {
    cursor: grabbing;
}
