:root {
  --kmvi-primary: #0d6efd;
  --kmvi-primary-hover: #0b5ed7;
  --kmvi-primary-soft: #e8f1fd;
  --kmvi-primary-border: #b6d4fe;
}

.dashboard-switcher {
  text-align: center;
  margin: 0 0 28px;
}

.dashboard-switcher:has(+ .telecom-subnav) {
  margin-bottom: 12px;
}

.dashboard-switcher-kicker {
  display: none;
}

.dashboard-switcher-toggle {
  background: none;
  border: none;
  padding: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dashboard-switcher-toggle i {
  font-size: 14px;
  transition: transform 0.15s ease;
}

.dashboard-switcher-toggle[aria-expanded='false'] i {
  transform: rotate(180deg);
}

.dashboard-switcher-menu {
  min-width: 180px;
  text-align: left;
}

.dashboard-switcher-menu .dropdown-item.active {
  background: var(--kmvi-primary-soft);
  color: var(--kmvi-primary);
  font-weight: 600;
}

.telecom-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.telecom-subnav a {
  border: 1px solid #e6eaf0;
  background: #fff;
  color: #44515c;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.telecom-subnav a.active,
.telecom-subnav a:hover {
  background: var(--kmvi-primary-soft);
  border-color: var(--kmvi-primary-border);
  color: var(--kmvi-primary);
}

.dashboard-switcher + .telecom-subnav {
  justify-content: center;
  margin-top: -4px;
  margin-bottom: 14px;
}

.telecom-dash-context {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
}

.telecom-dash-context-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a8b99;
}

.telecom-dash-context-name {
  font-size: 16px;
  font-weight: 600;
  color: #2c3a47;
}

.telecom-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  align-items: stretch;
}

.telecom-kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 118px;
  height: 100%;
  border-radius: 12px;
  padding: 18px 20px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.telecom-kpi-label {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 8px;
  line-height: 1.3;
}

.telecom-kpi-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.telecom-kpi-value span {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-left: 4px;
}

.telecom-kpi-delta,
.telecom-kpi-sub {
  font-size: 13px;
  margin-top: 8px;
  color: #64748b;
}

.telecom-kpi-delta.warn {
  color: #64748b;
}

.telecom-grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.telecom-grid-2 > .telecom-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.telecom-grid-2 > .telecom-panel .telecom-map {
  flex: 1;
  min-height: 360px;
}

.telecom-grid-2.map-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: stretch;
}

.telecom-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.telecom-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f6;
}

.telecom-panel-head h3 {
  font-size: 14px;
  margin: 0;
}

.telecom-panel-head .tag {
  font-size: 11px;
  color: #7a8b99;
}

.telecom-map {
  height: 360px;
  background: #e9eef3;
  position: relative;
  z-index: 1;
  touch-action: none;
}

.telecom-map .leaflet-container {
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.telecom-map .leaflet-container.leaflet-dragging {
  cursor: grabbing;
}

.telecom-map.tall {
  flex: 0 0 auto;
  min-height: 360px;
  height: 380px;
}

.telecom-map-panel,
.telecom-captures-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.telecom-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.telecom-status-pill .sdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.telecom-status-pill.compliant,
.telecom-status-pill.conforme {
  background: #e6f6ef;
  color: #2d8a62;
}

.telecom-status-pill.non-compliant,
.telecom-status-pill.nao-conforme {
  background: #fdf0df;
  color: #b5751f;
}

.telecom-status-pill.pending,
.telecom-status-pill.pendente {
  background: #e8f1fd;
  color: #2d6bc4;
}

.telecom-status-pill.completed,
.telecom-status-pill.concluida {
  background: #e6f6ef;
  color: #2d8a62;
}

.telecom-status-pill.in-analysis,
.telecom-status-pill.em-analise {
  background: var(--kmvi-primary-soft);
  color: var(--kmvi-primary);
}

.telecom-status-pill.reviewed,
.telecom-status-pill.revisado {
  background: #f3e8ff;
  color: #660099;
}

.telecom-bar-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.15fr) 1fr 36px;
  gap: 10px;
  align-items: center;
  padding: 7px 16px;
  font-size: 13px;
}

.telecom-bar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.telecom-bar-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telecom-bar-scope {
  flex-shrink: 0;
  font-size: 9px;
  line-height: 1;
  font-weight: 400;
  color: #c5ced6;
  background: none;
  padding: 0;
  margin-left: 2px;
}

.telecom-bar-label i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.telecom-bar-track {
  height: 8px;
  background: #eef2f6;
  border-radius: 99px;
  overflow: hidden;
}

.telecom-bar-fill {
  height: 100%;
  background: #64748b;
  border-radius: 99px;
}

#telecom-dash-bars {
  flex: 1;
  min-height: 0;
  max-height: 420px;
  overflow-y: auto;
  padding: 6px 16px 16px;
}

#telecom-dash-bars.is-empty {
  display: flex;
  min-height: 360px;
  padding: 0;
}

.telecom-chart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 32px 28px;
  color: #7a8b99;
}

.telecom-chart-empty i {
  font-size: 28px;
  color: var(--kmvi-primary, #660099);
  opacity: 0.35;
  margin-bottom: 4px;
}

.telecom-chart-empty strong {
  font-size: 14px;
  font-weight: 700;
  color: #2c3a47;
}

.telecom-chart-empty p {
  margin: 0;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.45;
}

.telecom-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px 14px;
  font-size: 12px;
  color: #5c6c79;
}

.telecom-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
}

.telecom-legend i.telecom-legend-irr {
  background: #fff;
  border: 2.5px solid #64748b;
  box-sizing: border-box;
  width: 11px;
  height: 11px;
}

.telecom-legend a {
  color: inherit;
  text-decoration: none;
}

.telecom-legend a:hover {
  color: var(--kmvi-primary);
}

.telecom-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px 0;
}

.telecom-assets-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.telecom-assets-toolbar label,
.telecom-filter-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.telecom-capture-table {
  flex: 1;
  max-height: none;
  min-width: 0;
  overflow: visible;
  padding: 0 12px 12px;
}

.telecom-captures-panel .dataTables_wrapper {
  padding: 4px 4px 8px;
  min-width: 0;
}

.telecom-captures-panel .telecom-dt-top {
  margin-bottom: 8px;
}

.telecom-captures-panel .telecom-dt-left .dt-buttons {
  display: inline-flex;
  align-items: center;
}

.telecom-captures-panel .dt-buttons .btn,
.telecom-captures-panel .dt-buttons .dt-button {
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.3;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.telecom-captures-panel .dt-buttons .btn:hover,
.telecom-captures-panel .dt-buttons .dt-button:hover {
  background: #f8fafc;
  border-color: var(--kmvi-primary, #0d6efd);
  color: #1e293b;
}

.telecom-captures-panel div.dt-button-collection {
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  max-height: 280px;
  overflow-y: auto;
}

.telecom-captures-panel div.dt-button-collection .dt-button {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 2px;
  border: 0;
  background: transparent;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
}

.telecom-captures-panel div.dt-button-collection .dt-button:hover,
.telecom-captures-panel div.dt-button-collection .dt-button.active {
  background: var(--kmvi-primary-soft, #f3e8ff);
}

.telecom-captures-panel .dataTables_wrapper .dataTables_length,
.telecom-captures-panel .dataTables_wrapper .dataTables_filter {
  margin-bottom: 0;
}

.telecom-captures-panel .dataTables_wrapper .dataTables_length select,
.telecom-captures-panel .dataTables_wrapper .dataTables_filter input {
  max-width: 100%;
}

.telecom-captures-panel .dataTables_wrapper .dataTables_info,
.telecom-captures-panel .dataTables_wrapper .dataTables_paginate {
  margin-top: 8px;
  font-size: 13px;
}

/* Paginação estilo alarms/inspections: barra Bootstrap conectada (sem gaps) */
.telecom-captures-panel .dataTables_wrapper .dataTables_paginate,
.telecom-routes-wrap .dataTables_wrapper .dataTables_paginate {
  display: flex;
  justify-content: flex-end;
}

.telecom-captures-panel .dataTables_paginate .pagination,
.telecom-routes-wrap .dataTables_paginate .pagination,
.telecom-cluster-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.telecom-captures-panel .dataTables_paginate .page-item,
.telecom-routes-wrap .dataTables_paginate .page-item,
.telecom-cluster-pagination .page-item {
  margin: 0;
}

.telecom-captures-panel .dataTables_paginate .page-link,
.telecom-routes-wrap .dataTables_paginate .page-link,
.telecom-cluster-pagination .page-link {
  position: relative;
  z-index: 1;
  margin-left: -1px;
  border-radius: 0;
  box-shadow: none;
  color: var(--kmvi-primary, #660099);
  border-color: #dee2e6;
  background-color: #fff;
}

.telecom-captures-panel .dataTables_paginate .page-item:first-child .page-link,
.telecom-routes-wrap .dataTables_paginate .page-item:first-child .page-link,
.telecom-cluster-pagination .page-item:first-child .page-link {
  margin-left: 0;
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.telecom-captures-panel .dataTables_paginate .page-item:last-child .page-link,
.telecom-routes-wrap .dataTables_paginate .page-item:last-child .page-link,
.telecom-cluster-pagination .page-item:last-child .page-link {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

.telecom-captures-panel .dataTables_paginate .page-item.active .page-link,
.telecom-routes-wrap .dataTables_paginate .page-item.active .page-link,
.telecom-cluster-pagination .page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: var(--kmvi-primary, #660099);
  border-color: var(--kmvi-primary, #660099);
}

.telecom-captures-panel .dataTables_paginate .page-item.disabled .page-link,
.telecom-routes-wrap .dataTables_paginate .page-item.disabled .page-link,
.telecom-cluster-pagination .page-item.disabled .page-link {
  z-index: 0;
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
}

.telecom-captures-panel .dataTables_paginate .page-link:hover,
.telecom-routes-wrap .dataTables_paginate .page-link:hover,
.telecom-cluster-pagination .page-link:hover {
  z-index: 2;
  color: var(--kmvi-primary, #660099);
  background-color: #f8f5fc;
  border-color: #dee2e6;
}

.telecom-captures-panel table.dataTable {
  margin-top: 0 !important;
  font-size: 13px;
  width: 100% !important;
}

.telecom-captures-panel table.dataTable thead th,
.telecom-captures-panel table.dataTable tbody td {
  padding: 8px 10px;
  vertical-align: middle;
}

.telecom-captures-panel table.dataTable > tbody > tr.child ul.dtr-details {
  width: 100%;
}

.telecom-captures-panel table.dataTable > tbody > tr.child span.dtr-title {
  min-width: 110px;
}

.telecom-captures-panel .telecom-status-pill {
  font-size: 10px;
  padding: 2px 8px;
}

.telecom-captures-panel .telecom-filter-row {
  flex-wrap: wrap;
  padding: 8px 12px 4px;
  gap: 8px;
}

.telecom-captures-panel .telecom-filter-row label {
  min-width: 0;
  flex: 1 1 140px;
}

.telecom-captures-panel .telecom-filter-row .form-select {
  width: 100%;
  min-width: 0;
}

.telecom-captures-panel .telecom-filter-row .select2-container {
  width: 100% !important;
  min-width: 0;
}

.telecom-captures-panel .telecom-filter-row .select2-container .select2-selection--multiple {
  min-height: 31px;
  border-color: #ced4da;
  border-radius: 0.25rem;
}

.telecom-captures-panel .telecom-filter-row .select2-container--focus .select2-selection--multiple {
  border-color: var(--kmvi-primary, #660099);
  box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--kmvi-primary, #660099) 20%, transparent);
}

.telecom-filter-row .telecom-select2-skel {
  display: none;
  height: 31px;
  width: 100%;
  border-radius: 0.25rem;
  background: linear-gradient(
    90deg,
    var(--skeleton-base, #e8edf2) 20%,
    var(--skeleton-shimmer, #f4f7fb) 50%,
    var(--skeleton-base, #e8edf2) 80%
  );
  background-size: 200% 100%;
  animation: telecom-skel-shimmer 1.6s ease-in-out infinite;
}

.telecom-filter-row.is-skel .telecom-select2-skel {
  display: block;
}

.telecom-filter-row.is-skel select,
.telecom-filter-row.is-skel .select2-container {
  display: none !important;
}

.telecom-viewer-stage {
  position: relative;
  min-height: 210px;
  padding: 0;
  overflow: hidden;
  cursor: default;
}

.telecom-viewer-stage.is-marking,
.telecom-viewer-stage.is-measuring {
  cursor: crosshair;
}

.telecom-viewer-photo {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a8b99;
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

.telecom-viewer-photo.thermal {
  background: radial-gradient(circle at 50% 40%, #fde8e0 0%, #f4f7fa 70%);
}

.telecom-viewer-photo.rgb {
  background: radial-gradient(circle at 50% 40%, #e8eef6 0%, #f4f7fa 70%);
}

.telecom-viewer-photo.insta {
  background: radial-gradient(circle at 50% 50%, #ece7f6 0%, #f4f7fa 75%);
}

#telecom-streetview {
  position: relative;
  min-height: 210px;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: #1a1a1a;
}

#telecom-streetview iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  border: 0;
}

#telecom-streetview .telecom-streetview-ref {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.telecom-streetview-caption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  background: rgba(255, 255, 255, 0.92);
  color: #44515c;
  border: 1px solid #e6eaf0;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
}

#telecom-streetview.telecom-streetview-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
  text-align: center;
}

.telecom-mark-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.telecom-viewer-stage.is-marking .telecom-mark-layer,
.telecom-viewer-stage.is-measuring .telecom-mark-layer {
  pointer-events: auto;
}

/* Pano 360: cliques na esfera (marcar + régua) — layer 2D não bloqueia o canvas */
#telecom-stage-insta.is-marking > .telecom-mark-layer,
#telecom-stage-insta.is-measuring > .telecom-mark-layer {
  pointer-events: none;
}

.telecom-ruler-item {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.telecom-ruler-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.telecom-ruler-line {
  fill: none;
  stroke: #ef4444;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.telecom-ruler-handle {
  fill: #ef4444;
  stroke: #fff;
  stroke-width: 2;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.telecom-ruler-knob {
  position: absolute;
  z-index: 7;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.35);
  border: 2.5px solid #ef4444;
  box-shadow: none;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.telecom-ruler-knob:active {
  cursor: grabbing;
}

.telecom-ruler-label {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.82);
  border: 2px solid #ef4444;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: none;
}

.telecom-ruler-trash {
  position: absolute;
  z-index: 6;
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  font-size: 8px;
  line-height: 1;
  padding: 0;
}

.telecom-ruler-trash i {
  font-size: 8px;
  line-height: 1;
}

.telecom-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #8e3fb0;
  z-index: 5;
  pointer-events: none;
}

.telecom-num-pin {
  position: absolute;
  z-index: 6;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  pointer-events: none;
  overflow: visible;
}

.telecom-num-pin.is-interactive {
  pointer-events: auto;
  cursor: grab;
}

.telecom-num-pin.is-dragging {
  cursor: grabbing;
  z-index: 8;
}

.telecom-num-pin.is-zed-adjust .telecom-num-ball {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 4px rgba(142, 63, 176, 0.55);
}

.telecom-num-pin-trash {
  position: absolute;
  top: -10px;
  right: -12px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #c0392b;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  font-size: 9px;
  line-height: 1;
}

.telecom-num-pin.is-interactive:hover .telecom-num-pin-trash,
.telecom-num-pin.is-dragging .telecom-num-pin-trash {
  display: inline-flex;
}

.telecom-measure-pill.telecom-measure-toggle-compliance {
  border: 0;
  cursor: pointer;
}

.telecom-measure-pill.telecom-measure-toggle-compliance:hover {
  filter: brightness(0.96);
}

.telecom-ruler-item {
  --ruler-color: #ef4444;
}

.telecom-ruler-item.is-warn {
  --ruler-color: #e24b4a;
}

.telecom-ruler-item.is-ok {
  --ruler-color: #2f9e6f;
}

.telecom-ruler-item .telecom-ruler-line {
  stroke: var(--ruler-color, #ef4444);
}

.telecom-ruler-item .telecom-ruler-knob {
  background: color-mix(in srgb, var(--ruler-color, #ef4444) 35%, transparent);
  border-color: var(--ruler-color, #ef4444);
}

.telecom-ruler-item .telecom-ruler-label {
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  border-color: var(--ruler-color, #ef4444);
}

.telecom-ruler-item .telecom-ruler-trash {
  background: var(--ruler-color, #ef4444);
}

.telecom-mark-layer .telecom-num-pin.is-interactive,
.telecom-mark-layer .telecom-num-pin-trash,
.telecom-mark-layer .telecom-ruler-knob,
.telecom-mark-layer .telecom-ruler-trash {
  pointer-events: auto;
}

.telecom-num-ball {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.telecom-capture-photo,
.telecom-viewer img,
.telecom-rgb-thumb img,
#telecom-stage-rgb,
#telecom-stage-thermal,
#telecom-stage-zed,
#telecom-pano-mount,
.telecom-thermal-heat-wrap {
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.telecom-zed-label {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5c6c79;
  pointer-events: none;
  text-transform: uppercase;
}

.telecom-tool-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #eef2f6;
  background: #f7f9fb;
}

.telecom-tool-dock button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #e6eaf0;
  color: #44515c;
  font-size: 12px;
  cursor: pointer;
  transition: opacity 0.12s ease;
}

.telecom-tool-dock button:hover,
.telecom-tool-dock button:focus {
  opacity: 0.82;
  color: #44515c;
  background: #fff;
  border-color: #e6eaf0;
}

.telecom-tool-dock button.active,
.telecom-zed-tool.active {
  background: var(--kmvi-primary);
  color: #fff;
  border-color: var(--kmvi-primary);
  opacity: 1;
}

.telecom-tool-dock button.active:hover,
.telecom-tool-dock button.active:focus,
.telecom-zed-tool.active:hover,
.telecom-zed-tool.active:focus {
  color: #fff;
  background: var(--kmvi-primary);
  border-color: var(--kmvi-primary);
  opacity: 0.9;
}

.mode-toggle {
  display: flex;
  gap: 0;
  border: 1px solid #e6eaf0;
  border-radius: 7px;
  overflow: hidden;
}

.mode-toggle button {
  background: #fff;
  border: none;
  color: #5c6c79;
  font-size: 11px;
  padding: 4px 10px;
}

.mode-toggle button.active {
  background: var(--kmvi-primary);
  color: #fff;
}

.telecom-zed-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.telecom-report-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 12px;
  align-items: start;
}

.telecom-report-panel {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  overflow: hidden;
  height: fit-content;
}

.telecom-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef2f6;
}

.telecom-report-head h3 {
  margin: 0;
  font-size: 15px;
}

.telecom-report-tag {
  font-size: 11px;
  color: #7a8b99;
  text-transform: uppercase;
}

.telecom-irr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid #eef2f6;
}

.telecom-irr-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #161006;
  flex-shrink: 0;
}

.telecom-irr-info {
  flex: 1;
  min-width: 0;
}

.telecom-irr-type {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.telecom-irr-meta {
  font-size: 11px;
  color: #7a8b99;
  margin-top: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.telecom-irr-thumb {
  width: 28px;
  height: 22px;
  border-radius: 4px;
  background: #eef2f6;
  border: 1px solid #e6eaf0;
  flex-shrink: 0;
}

.telecom-irr-remove {
  width: 28px;
  height: 28px;
  border: 1px solid #e6eaf0;
  border-radius: 6px;
  background: #fff;
  color: #7a8b99;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.telecom-irr-remove:hover {
  color: #dc3545;
  border-color: #f1c0c5;
}

.telecom-measure-hint {
  margin: 0 18px 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #7a8b99;
}

.telecom-measure-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(76, 141, 240, 0.1);
}

.telecom-measure-card.warn {
  background: rgba(232, 163, 61, 0.14);
}

.telecom-measure-main {
  flex: 1;
  min-width: 0;
}

.telecom-measure-remove {
  width: 28px;
  height: 28px;
  border: 1px solid #e6eaf0;
  border-radius: 6px;
  background: #fff;
  color: #7a8b99;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.telecom-measure-remove:hover {
  color: #dc3545;
  border-color: #f1c0c5;
}

.telecom-measure-card .m-label {
  font-size: 11px;
  color: #7a8b99;
  text-transform: uppercase;
}

.telecom-measure-card .m-val {
  font-size: 18px;
  font-weight: 700;
  color: #4c8df0;
}

.telecom-measure-card.warn .m-val {
  color: #c9892c;
}

.telecom-measure-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: #eef8f3;
  color: #2e7d57;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.telecom-measure-pill.conforme {
  background: #eef8f3;
  color: #2e7d57;
}

.telecom-measure-pill.nao-conforme {
  background: #fbf3e6;
  color: #c9892c;
}

.telecom-measure-card.warn .telecom-measure-pill.conforme {
  background: #eef8f3;
  color: #2e7d57;
}

.telecom-measure-card.warn .telecom-measure-pill.nao-conforme {
  background: #fbf3e6;
  color: #c9892c;
}

.telecom-measure-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.telecom-measure-empty {
  margin: 8px 18px 4px;
}

.telecom-notes {
  padding: 14px 18px 18px;
}

.telecom-notes label {
  font-size: 11px;
  color: #7a8b99;
  text-transform: uppercase;
}

.telecom-notes textarea {
  width: 100%;
  margin-top: 8px;
  min-height: 78px;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
}

.telecom-empty {
  padding: 18px;
  color: #7a8b99;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .telecom-report-grid {
    grid-template-columns: 1fr;
  }
}

/* Inside Fullscreen API root so the modal is visible while marking */
.swal2-container.telecom-irr-swal-container {
  z-index: 2147483000;
}

.telecom-viewer:fullscreen .swal2-container.telecom-irr-swal-container {
  position: fixed;
  inset: 0;
}

.swal2-popup.telecom-irr-popup {
  background: #fff;
  color: #2c3a47;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  padding: 22px 22px 18px;
  width: 420px;
}

.swal2-popup.telecom-irr-popup .swal2-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7a8b99;
  margin: 0 0 12px;
}

.telecom-irr-select {
  width: 100%;
}

.swal2-popup.telecom-irr-popup .select2-container {
  width: 100% !important;
  text-align: left;
}

.swal2-popup.telecom-irr-popup .select2-selection--single {
  height: 42px;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  padding: 6px 8px;
}

.swal2-popup.telecom-irr-popup .select2-dropdown {
  border: 1px solid #e6eaf0;
  z-index: 20000;
}

.telecom-select2-swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.swal2-popup.telecom-irr-popup .swal2-actions {
  width: 100%;
  margin: 16px 0 0;
  gap: 10px;
}

.swal2-popup.telecom-irr-popup .swal2-cancel {
  background: #eef2f6;
  color: #44515c;
  flex: 1;
}

.swal2-popup.telecom-irr-popup .swal2-confirm {
  background: var(--kmvi-primary);
  flex: 1;
}

@media (max-width: 1200px) {
  .telecom-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .telecom-grid-2,
  .telecom-grid-2.map-layout {
    grid-template-columns: 1fr;
  }

  .telecom-grid-2.map-layout .telecom-map.tall {
    height: 320px;
    min-height: 280px;
  }
}

@media (min-width: 1400px) {
  .telecom-grid-2.map-layout .telecom-map.tall {
    height: 420px;
  }
}

@media (max-width: 700px) {
  .telecom-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dashboard-filter-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.dashboard-filter-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-filter-card__header i {
  color: #64748b;
  font-size: 12px;
}

.dashboard-filter-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) repeat(3, minmax(160px, 1fr));
  gap: 12px 14px;
  align-items: start;
}

.dashboard-filter-grid .filter-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-filter-grid .filter-field label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  display: block;
  margin: 0;
  min-height: 18px;
  line-height: 18px;
}

.dashboard-filter-grid .form-control {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  color: #334155;
  background: #fff;
  height: 42px;
  min-height: 42px;
  box-sizing: border-box;
}

.dashboard-filter-grid .form-control:focus {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.dashboard-filter-grid .telecom-select2-skel {
  display: none;
  height: 42px;
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    var(--skeleton-base, #e8edf2) 20%,
    var(--skeleton-shimmer, #f4f7fb) 50%,
    var(--skeleton-base, #e8edf2) 80%
  );
  background-size: 200% 100%;
  animation: telecom-skel-shimmer 1.6s ease-in-out infinite;
}

.dashboard-filter-grid .filter-field.is-skel .telecom-select2-skel {
  display: block;
}

.dashboard-filter-grid .filter-field.is-skel select,
.dashboard-filter-grid .filter-field.is-skel .select2-container {
  display: none !important;
}

.dashboard-filter-grid .select2-container {
  width: 100% !important;
}

.dashboard-filter-grid .select2-container .select2-selection--multiple {
  min-height: 42px;
  max-height: 72px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 5px 28px 5px 6px;
}

.dashboard-filter-grid .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
}

.dashboard-filter-grid .select2-container--default .select2-selection--multiple .select2-selection__choice {
  float: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: min(100%, 12.5rem);
  margin: 0;
  padding: 2px 8px 2px 4px;
  font-size: 12px;
  line-height: 1.25;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.dashboard-filter-grid .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  margin-right: 0;
  color: #94a3b8;
  font-weight: 600;
}

.dashboard-filter-grid .select2-choice-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-filter-grid .select2-container--default .select2-selection--multiple .select2-selection__clear {
  margin-top: 2px;
  margin-right: 2px;
}

.dashboard-filter-grid .select2-container--default .select2-selection--multiple .select2-search--inline {
  float: none;
  flex: 1 1 4rem;
  min-width: 4rem;
}

.dashboard-filter-grid .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  margin-top: 0;
  width: 100% !important;
}

.dashboard-filter-grid .select2-container--focus .select2-selection--multiple,
.dashboard-filter-grid .select2-container--open .select2-selection--multiple {
  border-color: var(--kmvi-primary, #660099);
  box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--kmvi-primary, #660099) 18%, transparent);
}

.dashboard-filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.telecom-dash-filter-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.dashboard-filter-actions .btn {
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.dashboard-filter-actions .btn-limpar {
  background: none;
  border: none;
  color: #ef4444;
  padding: 9px 12px;
}

.dashboard-filter-actions .btn-limpar:hover {
  color: #dc2626;
  background: #fef2f2;
  border-radius: 8px;
}

.telecom-routes-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.telecom-routes-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}

.telecom-routes-header-text {
  flex: 1 1 280px;
  min-width: 0;
}

.telecom-routes-header-text h4 {
  margin: 0;
}

.telecom-routes-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.telecom-loaded-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--kmvi-primary-border, #d8b4fe);
  background: var(--kmvi-primary-soft, #f5e9fb);
}

.telecom-loaded-bar.is-empty {
  border-color: #e6eaf0;
  background: #f8fafc;
}

.telecom-loaded-bar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
}

.telecom-loaded-bar-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #7a8b99;
}

.telecom-loaded-bar strong {
  font-size: 15px;
  color: var(--kmvi-primary, #660099);
}

.telecom-loaded-bar.is-empty strong {
  color: #94a3b8;
  font-weight: 500;
}

.telecom-cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  align-items: stretch;
}

.telecom-cluster-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 280px;
  padding: 40px 24px;
  border: 1px dashed #d5dde6;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
}

.telecom-cluster-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  background: var(--kmvi-primary-soft, #f5e9fb);
  color: var(--kmvi-primary, #660099);
  font-size: 22px;
}

.telecom-cluster-empty h5 {
  margin: 0;
  font-size: 17px;
  color: #2c3a47;
}

.telecom-cluster-empty p {
  margin: 0 0 8px;
  max-width: 360px;
  font-size: 13px;
  color: #7a8b99;
  line-height: 1.45;
}

.telecom-cluster-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  padding: 16px 16px 14px;
  min-height: 100%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.telecom-cluster-card-skel {
  pointer-events: none;
  min-height: 220px;
  gap: 12px;
}

.telecom-skel-line,
.telecom-skel-pill,
.telecom-skel-btn {
  --skeleton-base: #e8ecf1;
  --skeleton-shimmer: #f7f8fa;
  display: block;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    var(--skeleton-base) 20%,
    var(--skeleton-shimmer) 50%,
    var(--skeleton-base) 80%
  );
  background-size: 200% 100%;
  animation: telecom-skel-shimmer 1.6s ease-in-out infinite;
}

.telecom-skel-line {
  height: 12px;
  width: 100%;
}

.telecom-skel-title {
  height: 18px;
  width: 62%;
  border-radius: 9px;
}

.telecom-skel-sub {
  height: 10px;
  width: 44%;
  opacity: 0.9;
}

.telecom-skel-short {
  width: 55%;
}

.telecom-skel-stats {
  display: flex;
  gap: 8px;
  margin: 2px 0 4px;
}

.telecom-skel-pill {
  height: 22px;
  width: 64px;
  border-radius: 999px;
}

.telecom-skel-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.telecom-skel-btn {
  height: 34px;
  width: 128px;
  border-radius: 8px;
}

.telecom-skel-btn-sm {
  width: 88px;
  opacity: 0.85;
}

.telecom-skel-kpi-value {
  height: 28px;
  width: 42%;
  border-radius: 10px;
  margin: 10px 0 8px;
}

.telecom-skel-dot {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px;
  border-radius: 50% !important;
  display: inline-block;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    var(--skeleton-base, #e8ecf1) 20%,
    var(--skeleton-shimmer, #f7f8fa) 50%,
    var(--skeleton-base, #e8ecf1) 80%
  );
  background-size: 200% 100%;
  animation: telecom-skel-shimmer 1.6s ease-in-out infinite;
}

.telecom-skel-bar {
  height: 10px;
  width: 72%;
  border-radius: 999px;
}

.telecom-skel-num {
  height: 12px;
  width: 28px;
  border-radius: 6px;
}

.telecom-kpi-card-skel {
  pointer-events: none;
}

.telecom-bar-row-skel {
  pointer-events: none;
  align-items: center;
}

.telecom-bar-row-skel .telecom-bar-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.telecom-bar-row-skel .telecom-skel-short {
  width: 70%;
}

.telecom-map.is-skel {
  position: relative;
  overflow: hidden;
  background: #eef1f5;
}

.telecom-map-skel {
  position: absolute;
  inset: 0;
  --skeleton-base: #e4e8ee;
  --skeleton-shimmer: #f4f6f8;
  background: linear-gradient(
    110deg,
    var(--skeleton-base) 20%,
    var(--skeleton-shimmer) 45%,
    var(--skeleton-base) 70%
  );
  background-size: 200% 100%;
  animation: telecom-skel-shimmer 1.6s ease-in-out infinite;
}

/* Vivo-only: skeleton always visible; enter anim only when ready */
html[data-client-theme='vivo'] .telecom-dash-vivo.is-ready .telecom-dash-body {
  animation: telecom-dash-enter 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

html[data-client-theme='vivo'] .telecom-dash-vivo.is-ready .telecom-grid-2.telecom-dash-body {
  animation-delay: 0.07s;
}

html[data-client-theme='vivo'] .telecom-dash-vivo.is-loading .telecom-dash-body {
  animation: none;
  opacity: 1;
  transform: none;
}

html[data-client-theme='vivo'] .telecom-dash-vivo .telecom-skel-line,
html[data-client-theme='vivo'] .telecom-dash-vivo .telecom-skel-dot,
html[data-client-theme='vivo'] .telecom-dash-vivo .telecom-map-skel,
html[data-client-theme='vivo'] .telecom-dash-vivo .telecom-select2-skel {
  --skeleton-base: #ebe0f3;
  --skeleton-shimmer: #f7f1fb;
}

html[data-client-theme='vivo'] .telecom-routes-vivo.is-ready .telecom-routes-body {
  animation: telecom-dash-enter 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

html[data-client-theme='vivo'] .telecom-routes-vivo.is-loading .telecom-routes-body {
  animation: none;
  opacity: 1;
  transform: none;
}

html[data-client-theme='vivo'] .telecom-routes-vivo .telecom-skel-line,
html[data-client-theme='vivo'] .telecom-routes-vivo .telecom-skel-pill,
html[data-client-theme='vivo'] .telecom-routes-vivo .telecom-skel-btn {
  --skeleton-base: #ebe0f3;
  --skeleton-shimmer: #f7f1fb;
}

.telecom-table-skel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 4px 12px;
}

.telecom-table-skel-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.6fr 0.8fr;
  gap: 10px;
  align-items: center;
}

html[data-client-theme='vivo'] .telecom-map-vivo.is-ready .telecom-map-body {
  animation: telecom-dash-enter 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

html[data-client-theme='vivo'] .telecom-map-vivo.is-loading .telecom-map-body {
  animation: none;
  opacity: 1;
  transform: none;
}

html[data-client-theme='vivo'] .telecom-map-vivo .telecom-skel-line,
html[data-client-theme='vivo'] .telecom-map-vivo .telecom-skel-pill,
html[data-client-theme='vivo'] .telecom-map-vivo .telecom-map-skel,
html[data-client-theme='vivo'] .telecom-map-vivo .telecom-select2-skel {
  --skeleton-base: #ebe0f3;
  --skeleton-shimmer: #f7f1fb;
}

/* Measure / pole analysis — Vivo loading polish */
html[data-client-theme='vivo'] .telecom-measure-vivo .telecom-pole-skel-line,
html[data-client-theme='vivo'] .telecom-measure-vivo .telecom-pole-skel-pill,
html[data-client-theme='vivo'] .telecom-measure-vivo .telecom-btn-skel-item,
html[data-client-theme='vivo'] .telecom-measure-vivo .telecom-media-skeleton {
  --skeleton-base: #ebe0f3;
  --skeleton-shimmer: #f7f1fb;
}

html[data-client-theme='vivo'] .telecom-measure-vivo .telecom-media-skeleton-label {
  color: #8e3fb0;
  background: rgba(247, 241, 251, 0.88);
}

html[data-client-theme='vivo'] .telecom-measure-vivo.is-ready .telecom-measure-body {
  animation: telecom-dash-enter 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

html[data-client-theme='vivo'] .telecom-measure-vivo.is-ready .ui.telecom-measure-body {
  animation-delay: 0.06s;
}

html[data-client-theme='vivo'] .telecom-measure-vivo.is-loading .telecom-measure-body {
  animation: none;
  opacity: 1;
  transform: none;
}

html[data-client-theme='vivo'] .telecom-measure-vivo.is-pano-ready #telecom-analise-actions,
html[data-client-theme='vivo'] .telecom-measure-vivo.is-pano-ready #telecom-tool-dock {
  animation: telecom-dash-enter 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes telecom-dash-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-client-theme='vivo'] .telecom-dash-vivo.is-ready .telecom-dash-body,
  html[data-client-theme='vivo'] .telecom-routes-vivo.is-ready .telecom-routes-body,
  html[data-client-theme='vivo'] .telecom-map-vivo.is-ready .telecom-map-body,
  html[data-client-theme='vivo'] .telecom-measure-vivo.is-ready .telecom-measure-body,
  html[data-client-theme='vivo'] .telecom-measure-vivo.is-pano-ready #telecom-analise-actions,
  html[data-client-theme='vivo'] .telecom-measure-vivo.is-pano-ready #telecom-tool-dock {
    animation: none;
  }
}

.telecom-cluster-card.is-active {
  border-color: var(--kmvi-primary);
  box-shadow: 0 0 0 1px var(--kmvi-primary-border), 0 8px 20px rgba(102, 0, 153, 0.08);
}

.telecom-cluster-card.is-disabled {
  opacity: 0.72;
  background: #f8fafc;
}

.telecom-cluster-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 46%;
}

.telecom-cluster-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.telecom-cluster-card-title {
  min-width: 0;
}

.telecom-cluster-card-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: #2c3a47;
  word-break: break-word;
}

.telecom-cluster-file {
  margin-top: 4px;
  font-size: 12px;
  color: #7a8b99;
}

.telecom-cluster-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--kmvi-primary-soft);
  color: var(--kmvi-primary);
}

.telecom-cluster-badge.on {
  background: #e7f6ee;
  color: #1f7a46;
}

.telecom-cluster-badge.default {
  background: #fff4d6;
  color: #9a6700;
}

.telecom-cluster-badge.off {
  background: #f1f5f9;
  color: #64748b;
}

.telecom-cluster-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.telecom-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #f4f7fb;
  font-size: 11px;
  color: #64748b;
  text-transform: lowercase;
}

.telecom-stat strong {
  font-size: 13px;
  color: #2c3a47;
  font-weight: 700;
}

.telecom-cluster-routes {
  list-style: none;
  margin: 0;
  padding: 10px 4px 0 0;
  border-top: 1px solid #eef2f6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #2c3a47;
  flex: 1;
  min-height: 48px;
  max-height: calc((2.75rem + 12px + 6px) * 4);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.telecom-cluster-routes li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
}

.telecom-route-line-label {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.telecom-route-line-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.35;
  color: #2c3a47;
}

.telecom-route-line-meta,
.telecom-route-former {
  font-size: 11px;
  line-height: 1.3;
  color: #94a3b8;
}

.telecom-route-line-actions {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}

.telecom-route-line-actions .btn-link {
  color: #94a3b8;
  line-height: 1;
  padding: 2px 4px !important;
}

.telecom-route-line-actions .btn-link:hover {
  color: var(--kmvi-primary, #660099);
  opacity: 1;
}

.telecom-route-line-actions .text-danger:hover {
  color: #dc2626 !important;
}

.telecom-cluster-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  background: #fff;
}

.telecom-cluster-pagination .page-link {
  min-width: 2rem;
  text-align: center;
}

.telecom-cluster-pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(102, 0, 153, 0.2);
}

.telecom-cluster-actions {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.telecom-cluster-actions > .btn,
.telecom-cluster-actions > a.btn {
  flex: 1 1 auto;
  text-align: center;
}

.telecom-route-former {
  font-size: 11px;
  font-weight: 400;
}

.telecom-routes-table tbody tr {
  cursor: default;
}

.telecom-routes-table tbody tr.telecom-route-loaded {
  background: var(--kmvi-primary-soft, #f4e8fb);
}

.telecom-routes-wrap .dataTables_wrapper {
  padding: 12px 16px 16px;
}

.telecom-routes-wrap .dataTables_wrapper .dataTables_length,
.telecom-routes-wrap .dataTables_wrapper .dataTables_filter {
  margin-bottom: 8px;
}

.telecom-routes-wrap .dataTables_wrapper .dataTables_info,
.telecom-routes-wrap .dataTables_wrapper .dataTables_paginate {
  margin-top: 8px;
}

.telecom-routes-wrap table.dataTable {
  margin-top: 0 !important;
}

.telecom-route-actions {
  white-space: nowrap;
  cursor: default;
}

.telecom-route-actions .btn {
  margin-left: 4px;
}

.telecom-routes-table .telecom-cluster-badge {
  display: inline-block;
  margin-top: 4px;
}

.telecom-route-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.telecom-cluster-routes i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.telecom-capture-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: contain;
  background: #0f1720;
}

#telecom-stage-rgb .telecom-capture-photo {
  background: #f7f9fb;
}

.telecom-color-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.telecom-color-option {
  margin: 0;
  cursor: pointer;
}

.telecom-color-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.telecom-color-option span {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d5dde5;
}

.telecom-color-option input:checked + span {
  box-shadow: 0 0 0 2px var(--kmvi-primary);
}

#telecomDropzone {
  width: 100%;
  min-height: 180px;
  border: 3px dashed var(--kmvi-primary-border, #c4a3d8);
  border-radius: 10px;
  background: var(--kmvi-primary-soft, #f4eef8);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #44515c;
  padding: 24px;
  cursor: pointer;
}

#telecomDropzone.dz-drag-hover {
  border-color: var(--kmvi-primary, #660099);
  background: #efe6f5;
}

#telecomDropzone .dz-message {
  margin: 0;
}

.telecom-upload-files {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.telecom-upload-files .dz-preview {
  position: relative;
  display: block;
  min-height: 0;
  margin: 0;
  width: min(100%, 280px);
  flex: 1 1 220px;
  max-width: 320px;
}

.telecom-upload-file {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  height: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
}

.telecom-upload-file-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.telecom-upload-file-name {
  font-size: 13px;
  font-weight: 600;
  color: #2c3a47;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telecom-upload-file-size {
  font-size: 12px;
  color: #5c6c79;
}

.telecom-upload-file-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
}

.telecom-upload-file .dz-success-mark,
.telecom-upload-file .dz-error-mark {
  display: none;
  position: static;
  opacity: 1;
  margin: 0;
  width: auto;
  height: auto;
  font-size: 14px;
  animation: none;
}

.telecom-upload-file.dz-success .dz-success-mark {
  display: inline;
  color: #49b48a;
  animation: none;
  position: static;
  opacity: 1;
}

.telecom-upload-file.dz-error .dz-error-mark {
  display: inline;
  color: #e1543d;
  animation: none;
  position: static;
  opacity: 1;
}

.telecom-upload-file-remove {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}

.telecom-upload-file.dz-processing .telecom-upload-file-remove,
.telecom-upload-file.dz-success .telecom-upload-file-remove {
  display: none;
}

.telecom-upload-file-bar {
  grid-column: 1 / -1;
  height: 6px;
  background: #eef2f6;
  border-radius: 99px;
  overflow: hidden;
}

.telecom-upload-file-bar .dz-upload {
  display: block;
  height: 100%;
  width: 0;
  background: var(--kmvi-primary, #660099);
  transition: width 0.16s ease-out;
}

.telecom-upload-file .dz-error-message {
  grid-column: 1 / -1;
  display: none;
  font-size: 12px;
  color: #e1543d;
}

.telecom-upload-file.dz-error .dz-error-message {
  display: block;
}

.telecom-upload-progress {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
}

.telecom-upload-progress[hidden] {
  display: none;
}

.telecom-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.telecom-progress-label {
  font-size: 13px;
  font-weight: 600;
  color: #2c3a47;
}

.telecom-progress-pct {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #5c6c79;
}

.telecom-progress-track {
  height: 10px;
  background: #eef2f6;
  border-radius: 99px;
  overflow: hidden;
}

.telecom-progress-fill {
  height: 100%;
  width: 0;
  background: var(--kmvi-primary, #660099);
  border-radius: 99px;
  transition: width 0.2s ease-out;
}

.telecom-progress-fill.is-wait {
  width: 42%;
  transition: none;
  animation: telecom-progress-indeterminate 1.2s ease-in-out infinite;
}

@keyframes telecom-progress-indeterminate {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(280%);
  }
}

.telecom-upload-done {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: #f3fbf7;
  border: 1px solid #c6ead9;
  border-radius: 10px;
}

.telecom-upload-done-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #49b48a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.telecom-upload-done h5 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #1f3d32;
}

.telecom-upload-done p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #44515c;
}

.telecom-upload-done-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.telecom-viewer:fullscreen {
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.telecom-viewer:fullscreen .telecom-viewer-head {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 16px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.telecom-viewer:fullscreen .telecom-tool-dock {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  z-index: 5;
}

.telecom-viewer:fullscreen .telecom-capture-split {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  max-height: none !important;
  resize: none;
  /* ZED costuma ser portrait — coluna mais estreita reduz letterbox preto */
  grid-template-columns: minmax(260px, 38vw) minmax(0, 1fr);
  gap: 0;
  background: #cbd5e1;
}

.telecom-viewer:fullscreen .telecom-capture-pane {
  min-height: 0;
  background: #0f172a;
}

.telecom-viewer:fullscreen .telecom-capture-pane + .telecom-capture-pane {
  border-left: 1px solid #94a3b8;
}

.telecom-viewer:fullscreen .telecom-viewer-body,
.telecom-viewer:fullscreen #telecom-zed-mount {
  flex: 1;
  min-height: 0;
  height: auto !important;
  background: #0f172a;
}

.telecom-viewer:fullscreen #telecom-stage-insta,
.telecom-viewer:fullscreen #telecom-pano-mount,
.telecom-viewer:fullscreen #telecom-stage-zed {
  height: 100%;
  width: 100%;
}

.telecom-viewer:fullscreen #telecom-stage-zed {
  /* evita “faixas” laterais grandes: centraliza o fit do canvas */
  background: #0b1220;
}

.telecom-viewer:fullscreen .telecom-zed-hint {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
}

@media (max-width: 1100px) {
  .telecom-viewer:fullscreen .telecom-capture-split {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }

  .telecom-viewer:fullscreen .telecom-capture-pane + .telecom-capture-pane {
    border-left: 0;
    border-top: 1px solid #94a3b8;
  }
}

.telecom-zed-capture-canvas {
  position: absolute;
  display: block;
  background: #101820;
}

#telecom-pano-mount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #f4f7fa;
}

#telecom-pano-mount canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#telecom-pano-mount .telecom-pano-marks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

#telecom-pano-mount .telecom-pano-marks .telecom-num-pin,
#telecom-pano-mount .telecom-pano-marks .telecom-ruler-knob,
#telecom-pano-mount .telecom-pano-marks .telecom-ruler-trash,
#telecom-pano-mount .telecom-pano-marks .telecom-pin {
  pointer-events: auto;
}

#telecom-pano-mount .telecom-pano-marks .telecom-ruler-item {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.telecom-viewer-measure-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.telecom-viewer-measure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 10px;
  border-radius: 999px;
  background: rgba(76, 141, 240, 0.95);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.telecom-viewer-measure-badge.warn {
  background: rgba(201, 137, 44, 0.95);
}

.telecom-viewer-measure-badge .telecom-measure-remove {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.telecom-viewer-measure-badge .telecom-measure-remove:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
  border-color: transparent;
}

.telecom-probe-hover {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  max-width: min(420px, calc(100% - 16px));
  background: rgba(15, 23, 32, 0.82);
  color: #e8eef5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  line-height: 1.4;
  padding: 7px 10px;
  border-radius: 8px;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.28);
}

.telecom-probe-hover[hidden] {
  display: none !important;
}

.telecom-probe-hover b {
  color: #fff;
  font-weight: 700;
}

.telecom-probe-hover b.is-poor {
  color: #ff8b7b;
}

.telecom-probe-hover em {
  font-style: normal;
  opacity: 0.7;
}

.telecom-probe-hover i {
  display: block;
  margin-top: 2px;
  font-style: normal;
  opacity: 0.72;
  font-size: 10px;
}

.telecom-pano-hint,
.telecom-zed-hint,
.telecom-viewer-hint {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  max-width: min(320px, calc(100% - 16px));
  background: rgba(255, 255, 255, 0.94);
  color: #44515c;
  border: 1px solid #e6eaf0;
  font-size: 10px;
  line-height: 1.35;
  padding: 0;
  border-radius: 999px;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.telecom-viewer-hint.is-open {
  border-radius: 8px;
  padding-right: 2px;
}

.telecom-hint-toggle,
.telecom-hint-close {
  border: none;
  background: transparent;
  color: #44515c;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 9px;
}

.telecom-hint-toggle:hover,
.telecom-hint-close:hover {
  color: var(--kmvi-primary, #4c8df0);
}

.telecom-hint-body {
  padding: 4px 2px 4px 8px;
  max-width: 260px;
}

.telecom-hint-close {
  padding: 2px 7px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
}

.telecom-media-skeleton {
  --skeleton-base: #e2e5e7;
  --skeleton-shimmer: #f6f7f8;
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--skeleton-base);
}

.telecom-media-skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--skeleton-base) 20%,
    var(--skeleton-shimmer) 50%,
    var(--skeleton-base) 80%
  );
  background-size: 200% 100%;
  animation: telecom-skel-shimmer 1.6s ease-in-out infinite;
}

/* Faixa panorâmica deslizando (360) */
.telecom-media-skeleton[data-skel='pano']::after,
.telecom-media-skeleton.is-pano::after {
  content: '';
  position: absolute;
  left: -40%;
  top: 18%;
  width: 180%;
  height: 64%;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 18%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.35) 82%,
    transparent 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  animation: telecom-skel-pano 2.4s linear infinite;
  pointer-events: none;
}

/* Pulso de zoom (óptica / ZED / térmica) */
.telecom-media-skeleton-frame {
  width: min(72%, 280px);
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: telecom-skel-zoom 1.8s ease-in-out infinite;
}

.telecom-media-skeleton[data-skel='pano'] .telecom-media-skeleton-frame,
.telecom-media-skeleton.is-pano .telecom-media-skeleton-frame {
  width: min(88%, 420px);
  aspect-ratio: 2.2 / 1;
  animation: telecom-skel-zoom-pano 2.2s ease-in-out infinite;
}

.telecom-media-skeleton-frame::after {
  content: '';
  position: absolute;
  inset: 18% 14%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
}

.telecom-media-skeleton-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #64748b;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.telecom-media-skeleton-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  animation: telecom-skel-dot-pulse 1s ease-in-out infinite;
}

@keyframes telecom-skel-dot-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes telecom-skel-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes telecom-skel-pano {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(22%);
  }
}

@keyframes telecom-skel-zoom {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes telecom-skel-zoom-pano {
  0%,
  100% {
    transform: scale(0.98) translateX(-1%);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.03) translateX(1%);
    opacity: 1;
  }
}

@keyframes telecom-skel-shine {
  100% {
    transform: translateX(120%);
  }
}

#telecom-zed-mount,
#telecom-stage-insta {
  position: relative;
  background: #f4f7fa;
}

#telecom-stage-rgb {
  position: relative;
  background: #f7f9fb;
}

#telecom-stage-rgb .telecom-capture-photo.is-loading {
  opacity: 0;
}

#telecom-stage-rgb .telecom-capture-photo {
  transition: opacity 0.2s ease;
}

/* --- Responsive (shared telecom pages) --- */
@media (max-width: 1100px) {
  .telecom-routes-header {
    flex-direction: column;
    align-items: stretch;
  }

  .telecom-routes-header-actions {
    width: 100%;
  }

  .telecom-routes-header-actions .btn {
    flex: 1 1 auto;
  }

  .telecom-loaded-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .telecom-loaded-bar #telecom-loaded-cluster-dash {
    width: 100%;
    text-align: center;
  }

  .telecom-cluster-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  }

  .telecom-cluster-pager {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .telecom-cluster-pagination {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .telecom-tool-dock {
    gap: 6px;
  }

  .telecom-tool-dock button {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }

  .telecom-upload-done-actions {
    flex-direction: column;
  }

  .telecom-upload-done-actions .btn {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .telecom-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .telecom-cluster-empty {
    min-height: 220px;
    padding: 28px 16px;
  }

  .telecom-cluster-actions > .btn,
  .telecom-cluster-actions > a.btn {
    flex: 1 1 100%;
  }

  .telecom-tool-dock button {
    flex: 1 1 100%;
  }

  .telecom-pano-hint,
  .telecom-zed-hint {
    font-size: 10px;
    max-width: calc(100% - 12px);
  }

  .dashboard-filter-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-filter-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .telecom-kpi-grid {
    grid-template-columns: 1fr;
  }

  .telecom-routes-header-actions {
    flex-direction: column;
  }

  .telecom-routes-header-actions .btn {
    width: 100%;
  }

  .telecom-stat {
    flex: 1 1 auto;
  }
}

.telecom-pole-moved-from {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
