/* ========================================================================== 
   SlimNOC2 — Monitoramento / Mapa de Rede
   ========================================================================== */

.network-map-page {
  min-width: 0;
  padding-bottom: 4px;
}

.netmap-sync {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 11.5px;
}

.netmap-sync i,
.netmap-footer p > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

.netmap-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.netmap-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 78px;
  padding: 13px 15px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.netmap-stat__icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  flex: none;
  border-radius: 10px;
}

.netmap-stat__icon--blue { color: #75aaff; background: var(--primary-soft); }
.netmap-stat__icon--purple { color: #ad8aff; background: var(--purple-soft); }
.netmap-stat__icon--cyan { color: var(--cyan); background: var(--cyan-soft); }
.netmap-stat__icon--green { color: var(--success); background: var(--success-soft); }

.netmap-stat > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 7px;
  min-width: 0;
}

.netmap-stat small {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .75px;
}

.netmap-stat strong {
  color: var(--text);
  font-size: 23px;
  line-height: 1.2;
}

.netmap-stat > div > span {
  overflow: hidden;
  color: var(--text-dim);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.netmap-panel {
  min-height: 600px;
}

.netmap-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.netmap-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(500px, 100%);
  height: 34px;
  padding-left: 11px;
  overflow: hidden;
  color: var(--text-dim);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.netmap-search:focus-within {
  border-color: color-mix(in srgb, var(--primary) 68%, var(--border));
  box-shadow: var(--ring);
}

.netmap-search input {
  min-width: 0;
  height: 100%;
  flex: 1;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 12px;
}

.netmap-search input::placeholder { color: var(--text-dim); }

.netmap-search button {
  align-self: stretch;
  padding: 0 12px;
  color: #91baff;
  background: var(--primary-soft);
  border: 0;
  border-left: 1px solid var(--border);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.netmap-search button:hover { color: #fff; background: var(--primary); }

.netmap-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.netmap-toolbar__actions .btn--viability {
  color: #bbf7d0;
  background: rgba(34, 197, 94, .14);
  border-color: rgba(34, 197, 94, .38);
}

.netmap-toolbar__actions .btn--viability:hover {
  color: #fff;
  background: rgba(34, 197, 94, .28);
  border-color: rgba(74, 222, 128, .62);
}

.netmap-toolbar__actions .btn--bulk-link {
  color: #fde68a;
  background: rgba(161, 98, 7, .18);
  border-color: rgba(234, 179, 8, .42);
}

.netmap-toolbar__actions .btn--bulk-link:hover {
  color: #fff;
  background: rgba(202, 138, 4, .34);
  border-color: rgba(250, 204, 21, .68);
}

.netmap-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  min-height: 510px;
}

.netmap-stage {
  position: relative;
  min-width: 0;
  min-height: 510px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 40%, rgba(47, 124, 246, .07), transparent 36%),
    linear-gradient(145deg, #0c1724, #101d2b);
}

.netmap-google,
.netmap-iframe {
  width: 100%;
  height: 100%;
  min-height: 510px;
  border: 0;
}

.netmap-iframe { display: block; background: #172232; }

.netmap-connect {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 510px;
  padding: 40px;
  text-align: center;
}

.netmap-connect::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(rgba(120, 148, 180, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 148, 180, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle, #000, transparent 70%);
  pointer-events: none;
}

.netmap-connect > * { position: relative; }

.netmap-connect > span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin-bottom: 18px;
  color: #73a8ff;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 42%, var(--border));
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
}

.netmap-connect h2 { font-size: 18px; }

.netmap-connect p {
  max-width: 470px;
  margin: 8px 0 20px;
  color: var(--text-muted);
  font-size: 12px;
}

.netmap-filters {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  display: grid;
  gap: 8px;
  width: 164px;
  padding: 11px 12px;
  color: #cbd6e5;
  background: rgba(10, 18, 30, .92);
  border: 1px solid rgba(94, 119, 151, .35);
  border-radius: 9px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .32);
  backdrop-filter: blur(10px);
}

.netmap-connect + .netmap-filters { display: none; }

.netmap-filters > small {
  color: #76869b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .85px;
}

.netmap-filters label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  cursor: pointer;
}

.netmap-filters input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--primary);
}

.netmap-legend {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
}

.netmap-legend--green { background: var(--success); }
.netmap-legend--orange { background: var(--warning); }
.netmap-legend--red { background: var(--danger); }
.netmap-legend--purple { background: var(--purple); }
.netmap-legend--blue { background: var(--primary); }
.netmap-legend--gray { background: #76869b; }

.netmap-inventory {
  min-width: 0;
  background: var(--bg-inset);
  border-left: 1px solid var(--border);
}

.netmap-inventory__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.netmap-inventory__head > div { display: grid; gap: 2px; }
.netmap-inventory__head small { color: var(--text-dim); font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.netmap-inventory__head strong { font-size: 12px; }

.netmap-inventory__head > span {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  color: #82b2ff;
  background: var(--primary-soft);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.netmap-inventory__section { padding: 12px 9px 3px; }

.netmap-inventory__section h3 {
  margin: 0 5px 7px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 600;
}

.netmap-inventory__item {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-bottom: 3px;
  padding: 8px 7px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.netmap-inventory__item:hover {
  color: var(--text);
  background: var(--bg-surface-2);
  border-color: var(--border);
}

.netmap-inventory__item > span:nth-child(2) { display: grid; min-width: 0; gap: 1px; }
.netmap-inventory__item b { overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.netmap-inventory__item small { overflow: hidden; color: var(--text-dim); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.netmap-inventory__item > .icon { color: var(--text-dim); }

.netmap-inventory__marker,
.netmap-details__title > span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: -.2px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .22);
}

.netmap-status--available { background: var(--success); }
.netmap-status--warning { background: var(--warning); }
.netmap-status--full { background: var(--danger); }
.netmap-status--online { background: var(--purple); }

.netmap-inventory__empty {
  margin: 6px 3px 12px;
  padding: 12px;
  color: var(--text-dim);
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.netmap-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 38px;
  padding: 8px 14px;
  overflow: visible;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  font-size: 9px;
}

.netmap-footer > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.netmap-footer > div .netmap-legend { margin-left: 7px; }
.netmap-footer > div .netmap-legend:first-child { margin-left: 0; }

.netmap-footer p { display: flex; align-items: center; gap: 7px; }
.netmap-footer p > i { background: var(--text-dim); box-shadow: none; }
.netmap-footer p > i.is-connected { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }

.netmap-footer p button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: #81b2ff;
  background: transparent;
  border: 0;
  font-size: inherit;
  cursor: pointer;
}

.netmap-details {
  position: absolute;
  z-index: 7;
  right: 13px;
  bottom: 13px;
  width: min(304px, calc(100% - 26px));
  padding: 14px;
  color: #e7edf7;
  background: rgba(10, 18, 30, .95);
  border: 1px solid rgba(105, 134, 168, .38);
  border-radius: 11px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  backdrop-filter: blur(12px);
}

.netmap-details[hidden] { display: none; }

.netmap-details__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #7f90a8;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.netmap-details__close:hover { color: #fff; background: rgba(255, 255, 255, .07); }

.netmap-details__title {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding-right: 25px;
}

.netmap-details__title > span { width: 39px; height: 39px; }
.netmap-details__title > div { display: grid; }
.netmap-details__title small { color: #73839a; font-size: 8px; text-transform: uppercase; }
.netmap-details__title strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.netmap-details__title em { color: #56d584; font-size: 8px; font-style: normal; }

.netmap-occupancy {
  margin: 13px 0 11px;
  padding: 10px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 8px;
}

.netmap-occupancy > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; }
.netmap-occupancy > div:first-child span { color: #8c9bb0; }
.netmap-occupancy > div:first-child b { color: #d7e0ed; }
.netmap-progress { height: 5px; margin: 7px 0 5px; overflow: hidden; background: #263449; border-radius: 5px; }
.netmap-progress i { display: block; height: 100%; background: linear-gradient(90deg, #2f7cf6, #22c55e); border-radius: inherit; }
.netmap-occupancy small { color: #73839a; font-size: 8px; }

.netmap-details dl {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  font-size: 9px;
}

.netmap-details dt { color: #728198; }
.netmap-details dd { margin: 0; overflow: hidden; color: #cbd6e5; text-overflow: ellipsis; white-space: nowrap; }
.netmap-details dd.is-good { color: #57d685; font-weight: 600; }
.netmap-details__actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .08); }
.netmap-details__actions .btn { flex: 1 1 auto; }

.netmap-edit-banner {
  position: absolute;
  z-index: 700;
  top: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 390px);
  padding: 7px 9px 7px 12px;
  color: #dbe7f7;
  background: rgba(10, 18, 30, .96);
  border: 1px solid rgba(91, 133, 190, .45);
  border-radius: 9px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .35);
  transform: translateX(-50%);
}

.netmap-edit-banner[hidden] { display: none; }
.netmap-edit-banner span { font-size: 10px; white-space: nowrap; }
.netmap-edit-banner b { color: #8db9ff; font-size: 9px; white-space: nowrap; }

.netmap-google.is-drawing { cursor: crosshair; }
.netmap-google.is-drawing .leaflet-interactive,
.netmap-google.is-drawing .leaflet-marker-icon { pointer-events: none !important; }

.netmap-form-error {
  margin: 12px 0 0;
  padding: 9px 11px;
  color: #fecaca;
  font-size: 10px;
  line-height: 1.45;
  background: rgba(127, 29, 29, .28);
  border: 1px solid rgba(248, 113, 113, .35);
  border-radius: 7px;
}

.netmap-form-error[hidden] { display: none; }
.netmap-modal [type="submit"].is-loading { cursor: wait; opacity: .68; }

.netmap-modal-backdrop {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 7, 14, .76);
  backdrop-filter: blur(4px);
}

.netmap-modal-backdrop[hidden] { display: none; }

.netmap-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  color: var(--text);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.netmap-modal--asset { width: min(780px, 100%); }

.netmap-modal--password { width: min(460px, 100%); }

.netmap-modal--viab { width: min(680px, 100%); }

.netmap-modal--backups { width: min(640px, 100%); }

.netmap-backups__head {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.netmap-backups__head .netmap-field { flex: 1; }

.netmap-backups__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.netmap-backups__loading,
.netmap-backups__empty {
  color: var(--text-muted);
  font-size: 12px;
  padding: 12px 0;
}

.netmap-backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-surface);
}

.netmap-backup-row__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.netmap-backup-row__info strong { font-size: 12px; }

.netmap-backup-row__info small {
  color: var(--text-muted);
  font-size: 10px;
  margin-top: 2px;
}

.netmap-backup-row__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.netmap-modal > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.netmap-modal > header > span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: none;
  color: #7badff;
  background: var(--primary-soft);
  border-radius: 10px;
}

.netmap-modal > header small { color: var(--primary); font-size: 8px; font-weight: 700; letter-spacing: .9px; }
.netmap-modal > header h2 { font-size: 17px; }
.netmap-modal > header p { margin-top: 2px; color: var(--text-muted); font-size: 10px; }

.netmap-modal__close {
  position: absolute;
  z-index: 2;
  top: 11px;
  right: 11px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.netmap-modal__close:hover { color: var(--text); background: var(--bg-surface-2); }
.netmap-modal__body { padding: 18px 20px; }

.netmap-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 13px 20px;
  background: var(--bg-inset);
  border-top: 1px solid var(--border);
}

.netmap-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 13px;
}

.netmap-field { display: grid; gap: 6px; min-width: 0; }
.netmap-field--wide { grid-column: 1 / -1; }
.netmap-field > span { color: var(--text-soft); font-size: 10px; font-weight: 500; }
.netmap-field > span b { color: var(--danger); }
.netmap-field > span em { color: var(--text-dim); font-style: normal; font-weight: 400; }

.netmap-field input,
.netmap-field select {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  color: var(--text);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
  font: inherit;
  font-size: 11px;
}

.netmap-field input:focus,
.netmap-field select:focus { border-color: var(--primary); box-shadow: var(--ring); }
.netmap-field input::placeholder { color: var(--text-dim); }

.netmap-help {
  margin-top: 12px;
  padding: 9px 11px;
  color: var(--text-muted);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  border-radius: 8px;
  font-size: 9px;
  line-height: 1.5;
}

.netmap-import-defaults {
  margin-top: 14px;
  padding: 12px;
  background: rgba(59, 130, 246, .07);
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: 9px;
}

.netmap-import-defaults h3 { margin: 0 0 9px; color: #a9c9ff; font-size: 10px; }
.netmap-import-toggle { display: flex; align-items: center; gap: 7px; color: var(--text-soft); font-size: 9px; cursor: pointer; }
.netmap-import-toggle input { accent-color: var(--primary); }

.netmap-import {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding: 11px;
  background: var(--bg-inset);
  border: 1px dashed var(--border-strong);
  border-radius: 9px;
}

.netmap-import > div { display: grid; gap: 2px; }
.netmap-import b { font-size: 10px; }
.netmap-import small { color: var(--text-muted); font-size: 8.5px; }

.netmap-google-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--purple);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .42);
  font: 800 8px/1 var(--font);
  cursor: pointer;
}
.netmap-google-marker--available { background: var(--success); }
.netmap-google-marker--warning { background: var(--warning); }
.netmap-google-marker--full { background: var(--danger); }

@media (max-width: 1180px) {
  .netmap-stat > div > span { display: none; }
  .netmap-workspace { grid-template-columns: minmax(0, 1fr) 235px; }
  .netmap-toolbar { align-items: stretch; flex-direction: column; }
  .netmap-search { width: 100%; }
  .netmap-toolbar__actions { margin-left: 0; }
}

@media (max-width: 860px) {
  .netmap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .netmap-workspace { grid-template-columns: 1fr; }
  .netmap-inventory { border-top: 1px solid var(--border); border-left: 0; }
  .netmap-inventory__section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
  .netmap-inventory__section h3 { grid-column: 1 / -1; }
  .netmap-stage, .netmap-google, .netmap-iframe, .netmap-connect { min-height: 460px; }
}

@media (max-width: 620px) {
  .netmap-stats { gap: 8px; }
  .netmap-stat { min-height: 66px; padding: 10px; }
  .netmap-stat__icon { width: 35px; height: 35px; }
  .netmap-stat strong { font-size: 19px; }
  .netmap-toolbar__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .netmap-toolbar__actions .btn { width: 100%; }
  .netmap-toolbar__actions .btn--icon { display: none; }
  .netmap-search button { display: none; }
  .netmap-inventory__section { grid-template-columns: 1fr; }
  .netmap-stage, .netmap-google, .netmap-iframe, .netmap-connect { min-height: 420px; }
  .netmap-filters { top: 8px; left: 8px; width: 148px; }
  .netmap-footer { align-items: flex-start; flex-direction: column; }
  .netmap-edit-banner { top: auto; right: 8px; bottom: 8px; left: 8px; max-width: none; flex-wrap: wrap; transform: none; }
  .netmap-form-grid { grid-template-columns: 1fr; }
  .netmap-field--wide { grid-column: auto; }
  .netmap-import { align-items: stretch; flex-direction: column; }
  .netmap-modal footer { flex-direction: column-reverse; }
  .netmap-modal footer .btn { width: 100%; }
}

[data-theme="light"] .netmap-stage {
  background:
    radial-gradient(circle at 30% 40%, rgba(47, 124, 246, .1), transparent 36%),
    linear-gradient(145deg, #eaf0f8, #f7f9fc);
}

[data-theme="light"] .netmap-filters,
[data-theme="light"] .netmap-details,
[data-theme="light"] .netmap-edit-banner {
  color: #1a2940;
  background: rgba(255, 255, 255, .94);
  border-color: rgba(91, 118, 151, .32);
  box-shadow: 0 10px 30px rgba(20, 35, 60, .18);
}

[data-theme="light"] .netmap-filters { color: #33445c; }
[data-theme="light"] .netmap-details__title strong,
[data-theme="light"] .netmap-details dd { color: #26364e; }
[data-theme="light"] .netmap-details__close { color: #6b7a91; }
[data-theme="light"] .netmap-occupancy { background: #f5f8fc; border-color: #dfe7f1; }
[data-theme="light"] .netmap-occupancy > div:first-child b { color: #2a3a52; }
[data-theme="light"] .netmap-details__actions { border-top-color: #e4eaf2; }

/* ========================================================================== 
   Mapa operacional v2 — tela ampla, Leaflet, áreas e vínculos CTO/ONU
   ========================================================================== */

.network-map-page .netmap-page-head {
  align-items: center;
  margin-bottom: 12px;
}

.network-map-page .netmap-page-head .page-title { font-size: 22px; }

.network-map-page .netmap-page-head .breadcrumb {
  margin-top: 3px;
  font-size: 10px;
}

.network-map-page .netmap-panel {
  min-height: calc(100vh - 170px);
}

.network-map-page .netmap-workspace {
  grid-template-columns: minmax(0, 1fr) 292px;
  min-height: calc(100vh - 273px);
}

.network-map-page .netmap-stage,
.network-map-page .netmap-google {
  min-height: calc(100vh - 273px);
}

.netmap-loading {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: calc(100vh - 175px);
  color: var(--text-muted);
}

.netmap-loading span {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: netmap-spin .8s linear infinite;
}

.netmap-loading b { color: var(--text-soft); font-size: 12px; }
.netmap-loading small { margin-top: 3px; font-size: 9px; }

@keyframes netmap-spin { to { transform: rotate(360deg); } }

.netmap-sync--saving i { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-soft); animation: netmap-pulse 1s ease infinite; }
.netmap-sync--saved i { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.netmap-sync--error i { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }

@keyframes netmap-pulse { 50% { opacity: .38; } }

.netmap-summary {
  position: absolute;
  z-index: 510;
  top: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  color: #dbe5f1;
  background: rgba(8, 15, 26, .9);
  border: 1px solid rgba(104, 127, 157, .35);
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.netmap-summary span { display: inline-flex; align-items: baseline; gap: 4px; font-size: 8.5px; white-space: nowrap; }
.netmap-summary b { color: #fff; font-size: 12px; }
.netmap-summary i { width: 1px; height: 15px; background: rgba(255, 255, 255, .13); }

.network-map-page .netmap-filters {
  z-index: 510;
  top: 12px;
  left: 12px;
  width: 148px;
  gap: 7px;
}

.network-map-page .netmap-filters label {
  justify-content: flex-start;
}

.netmap-basemap {
  margin: 2px -3px -3px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.netmap-basemap select {
  width: 100%;
  height: 27px;
  padding: 0 7px;
  color: #d6e0ec;
  background: #172436;
  border: 1px solid #314159;
  border-radius: 6px;
  outline: none;
  font: 9px var(--font);
}

.netmap-search-results {
  position: absolute;
  z-index: 650;
  top: 12px;
  left: 176px;
  width: min(430px, calc(100% - 360px));
  max-height: 420px;
  overflow-y: auto;
  background: rgba(8, 15, 26, .97);
  border: 1px solid rgba(104, 127, 157, .4);
  border-radius: 10px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .5);
  backdrop-filter: blur(12px);
}

.netmap-search-results[hidden] { display: none; }

.netmap-search-results > button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  color: #cbd6e5;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  text-align: left;
  cursor: pointer;
}

.netmap-search-results > button:hover { background: rgba(90, 140, 210, .13); }
.netmap-search-results > button:last-child { border-bottom: 0; }

.netmap-search-results > button > span,
.netmap-details__title > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--marker-color, #f97316);
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 7px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

.netmap-search-results svg,
.netmap-details__title > span svg,
.netmap-inventory__marker svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.netmap-search-results > button > div { display: grid; min-width: 0; }
.netmap-search-results b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.netmap-search-results small { overflow: hidden; color: #74849a; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.netmap-search-address { color: #89b7ff !important; }

.netmap-inventory__list {
  max-height: calc(100vh - 355px);
  overflow-y: auto;
  padding: 6px 7px 10px;
}

.netmap-area-legend {
  display: flex;
  gap: 5px;
  padding: 8px 9px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-soft);
}

.netmap-area-legend:empty { display: none; }

.netmap-area-legend button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 7px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  font-size: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.netmap-area-legend button:hover { color: var(--text); border-color: var(--border-strong); }
.netmap-area-legend i { width: 7px; height: 7px; border-radius: 50%; }

.network-map-page .netmap-inventory__item { padding: 7px 6px; }
.network-map-page .netmap-inventory__item.is-active { color: var(--text); background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }

.network-map-page .netmap-inventory__marker {
  position: relative;
  color: #fff;
  background: var(--marker-color, #f97316);
  border-radius: 7px;
}

.netmap-capacity-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  background: #64748b;
  border: 2px solid #fff;
  border-radius: 50%;
}

.netmap-capacity-dot--available { background: var(--success); }
.netmap-capacity-dot--warning { background: var(--warning); }
.netmap-capacity-dot--full { background: var(--danger); }
.netmap-capacity-dot--online { background: var(--primary); }

.netmap-inventory__marker .netmap-capacity-dot,
.netmap-map-marker .netmap-capacity-dot {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 11px;
  height: 11px;
}

.netmap-leaflet-icon-wrap {
  background: transparent;
  border: 0;
}

.netmap-map-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fff;
  background: var(--marker-color, #f97316);
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .55), 0 0 0 2px color-mix(in srgb, var(--marker-color) 55%, transparent);
  cursor: pointer;
  transition: transform 120ms ease;
}

.netmap-map-marker:hover { transform: translateY(-2px) scale(1.08); }
.netmap-map-marker::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--marker-color, #f97316);
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateX(-50%) rotate(45deg);
}

.netmap-map-marker--viab {
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.netmap-map-marker--viab::after { display: none; }

.netmap-map-marker--viab svg { width: 17px; height: 17px; }

.netmap-viab-popup h3 { margin: 4px 0 6px; font-size: 14px; }

.netmap-viab-popup p {
  margin: 2px 0;
  font-size: 12px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 5px;
}

.netmap-viab-popup__status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.netmap-viab-popup__actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.netmap-map-marker > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.netmap-map-marker--olt { border-radius: 50%; }
.netmap-map-marker--pop { border-radius: 50% 50% 8px 8px; }
.netmap-map-marker--tower { border-radius: 50%; }
.netmap-map-marker--client { width: 28px; height: 28px; border-radius: 50%; }

.netmap-search-pin { background: transparent; border: 0; }
.netmap-search-pin span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: #2563eb;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
  transform: rotate(-45deg);
}

.netmap-search-pin span svg { transform: rotate(45deg); }

.netmap-route-handle { background: transparent; border: 0; }
.netmap-route-handle span {
  display: block;
  width: 14px;
  height: 14px;
  cursor: move;
  background: #60a5fa;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
}

.network-map-page .leaflet-container {
  background: #132030;
  font-family: var(--font);
}

.network-map-page .leaflet-control-zoom a {
  color: #dce6f3;
  background: rgba(10, 18, 30, .94);
  border-bottom-color: #34445a;
}

.network-map-page .leaflet-control-zoom a:hover { background: #1d2b3f; }
.network-map-page .leaflet-control-attribution { color: #8291a5; background: rgba(7, 12, 21, .72); font-size: 7px; }
.network-map-page .leaflet-control-attribution a { color: #9bc0ff; }

.network-map-page .leaflet-tooltip.netmap-cto-tooltip {
  width: 270px;
  padding: 0;
  color: #dce7f5;
  background: rgba(8, 16, 28, .98);
  border: 1px solid rgba(91, 133, 190, .5);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .48);
}

.network-map-page .leaflet-tooltip-top.netmap-cto-tooltip::before { border-top-color: rgba(8, 16, 28, .98); }
.netmap-hover-card { padding: 10px; }
.netmap-hover-card header { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 8px; }
.netmap-hover-card header > span { display: grid; width: 32px; height: 32px; place-items: center; color: #fff; background: var(--marker-color); border: 2px solid #fff; border-radius: 8px; }
.netmap-hover-card header > span svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.netmap-hover-card header > div { display: grid; min-width: 0; }
.netmap-hover-card header b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.netmap-hover-card header small { overflow: hidden; color: #8c9bb0; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.netmap-hover-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 9px; }
.netmap-hover-card__stats span { display: grid; gap: 1px; padding: 6px; color: #8c9bb0; font-size: 7px; text-align: center; background: rgba(255, 255, 255, .055); border-radius: 6px; }
.netmap-hover-card__stats b { color: #f0f6ff; font-size: 11px; }
.netmap-hover-card__clients { margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .09); }
.netmap-hover-card__clients > strong { display: block; margin-bottom: 5px; color: #93c5fd; font-size: 8px; }
.netmap-hover-card__clients ul { display: grid; gap: 3px; max-height: 184px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.netmap-hover-card__clients li { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; align-items: center; gap: 6px; font-size: 8px; }
.netmap-hover-card__clients li i { width: 6px; height: 6px; background: #64748b; border-radius: 50%; }
.netmap-hover-card__clients li i.is-online { background: var(--success); }
.netmap-hover-card__clients li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.netmap-hover-card__clients li em { color: #8db9ff; font-style: normal; }
.netmap-hover-card__clients p,
.netmap-hover-card__description { margin: 5px 0 0; color: #8c9bb0; font-size: 8px; }
.netmap-hover-card__clients > small { display: block; margin-top: 5px; color: #8c9bb0; font-size: 7px; }

.network-map-page .netmap-details {
  z-index: 620;
  width: min(355px, calc(100% - 26px));
  max-height: calc(100% - 96px);
  overflow-y: auto;
}

.network-map-page .netmap-details__title {
  grid-template-columns: 42px minmax(0, 1fr);
}

.network-map-page .netmap-details__title > span {
  width: 42px;
  height: 42px;
}

.netmap-capacity-text--available { color: #57d685 !important; }
.netmap-capacity-text--warning { color: #fbbf24 !important; }
.netmap-capacity-text--full { color: #fb7185 !important; }

.netmap-nearest {
  display: grid;
  gap: 1px;
  margin: 12px 0;
  padding: 9px 10px;
  color: #93c5fd;
  background: rgba(37, 99, 235, .15);
  border: 1px solid rgba(96, 165, 250, .32);
  border-radius: 8px;
}

.netmap-nearest b { font-size: 9px; }
.netmap-nearest span { color: #9cacc0; font-size: 8.5px; }

.netmap-linked-onus {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.netmap-linked-onus > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.netmap-linked-onus > div:first-child > b { font-size: 9px; }
.netmap-linked-onus > div:first-child > span { display: flex; gap: 8px; }
.netmap-linked-onus > div:first-child > span > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: #85b5ff;
  background: transparent;
  border: 0;
  font-size: 8px;
  cursor: pointer;
}

.netmap-linked-onu > em.is-online,
.netmap-asset-onus__list > div > em.is-online { color: var(--success); }
.netmap-linked-onu > em.is-offline,
.netmap-asset-onus__list > div > em.is-offline { color: var(--danger); }

.netmap-linked-onus > p { padding: 8px; color: #6f8096; background: rgba(255, 255, 255, .035); border-radius: 6px; font-size: 8px; text-align: center; }

.netmap-linked-onu {
  display: grid !important;
  grid-template-columns: 7px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 7px !important;
  margin-top: 4px;
  padding: 6px 5px 6px 7px;
  background: rgba(255, 255, 255, .035);
  border-radius: 6px;
}

.netmap-linked-onu > i,
.netmap-onu-result > i {
  width: 7px;
  height: 7px;
  background: #64748b;
  border-radius: 50%;
}

.netmap-linked-onu > i.is-online,
.netmap-onu-result > i.is-online { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.netmap-linked-onu > i.is-critical,
.netmap-onu-result > i.is-critical { background: var(--warning); }
.netmap-linked-onu > i.is-rompimento,
.netmap-onu-result > i.is-rompimento { background: var(--danger); }

.netmap-linked-onu > span { display: grid; min-width: 0; }
.netmap-linked-onu b { overflow: hidden; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.netmap-linked-onu small { overflow: hidden; color: #708098; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.netmap-linked-onu em { color: #9db0c8; font-size: 7.5px; font-style: normal; }
.netmap-linked-onu button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; color: #72839a; background: transparent; border: 0; border-radius: 5px; cursor: pointer; }
.netmap-linked-onu button:hover { color: #fff; background: var(--danger-soft); }

.netmap-onu-results {
  max-height: 55vh;
  margin-top: 10px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.netmap-onu-result {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) 66px auto;
  align-items: center;
  gap: 9px;
  min-height: 49px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--border-soft);
}

.netmap-onu-result:last-child { border-bottom: 0; }
.netmap-onu-result.is-linked { background: var(--success-soft); }
.netmap-onu-result > span { display: grid; min-width: 0; }
.netmap-onu-result b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.netmap-onu-result small { overflow: hidden; color: var(--text-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.netmap-onu-result em { color: var(--success); font-size: 8px; font-style: normal; text-align: right; }
.netmap-onu-result input { width: 66px; height: 29px; padding: 0 7px; color: var(--text); background: var(--bg-inset); border: 1px solid var(--border); border-radius: 6px; font: 8px var(--font); }
.netmap-onu-result button { height: 29px; padding: 0 9px; color: #fff; background: var(--primary); border: 0; border-radius: 6px; font-size: 8px; cursor: pointer; }

.netmap-asset-onus {
  padding: 11px;
  background: rgba(8, 18, 31, .55);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.netmap-asset-onus[hidden] { display: none; }
.netmap-asset-onus__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.netmap-asset-onus__head > span { display: grid; gap: 2px; }
.netmap-asset-onus__head b { font-size: 10px; }
.netmap-asset-onus__head small { color: var(--text-muted); font-size: 8px; }
.netmap-asset-onus__head > div { display: flex; gap: 6px; }
.netmap-asset-onus__head > div > button { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px; color: #fff; cursor: pointer; background: var(--primary); border: 0; border-radius: 7px; font-size: 8px; font-weight: 600; }
.netmap-asset-onus__head > div > button:first-child { color: #fde68a; background: rgba(161, 98, 7, .35); border: 1px solid rgba(234, 179, 8, .35); }
.netmap-asset-onus > p { margin: 10px 0 0; color: var(--text-muted); font-size: 8px; }
.netmap-asset-onus__list { display: grid; gap: 5px; margin-top: 9px; }
.netmap-asset-onus__list > div { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto 24px; align-items: center; gap: 7px; padding: 6px 7px; background: var(--bg-inset); border-radius: 7px; }
.netmap-asset-onus__list > div > i { width: 7px; height: 7px; background: var(--text-muted); border-radius: 50%; }
.netmap-asset-onus__list > div > i.is-online { background: var(--success); }
.netmap-asset-onus__list > div > span { display: grid; min-width: 0; }
.netmap-asset-onus__list > div > span b,
.netmap-asset-onus__list > div > span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.netmap-asset-onus__list > div > span b { font-size: 9px; }
.netmap-asset-onus__list > div > span small { color: var(--text-muted); font-size: 8px; }
.netmap-asset-onus__list > div > em { color: #8db9ff; font-size: 8px; font-style: normal; }
.netmap-asset-onus__list > div > button { display: grid; width: 24px; height: 24px; padding: 0; place-items: center; color: var(--text-muted); cursor: pointer; background: transparent; border: 0; border-radius: 5px; }
.netmap-asset-onus__list > div > button:hover { color: var(--danger); background: var(--danger-soft); }

.netmap-icon-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  gap: 7px;
}

.netmap-icon-gallery button {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 67px;
  padding: 7px 5px;
  color: var(--text-muted);
  cursor: pointer;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: border-color .15s, background .15s, transform .15s;
}

.netmap-icon-gallery button:hover {
  color: var(--text);
  border-color: rgba(96, 165, 250, .55);
  transform: translateY(-1px);
}

.netmap-icon-gallery button.is-selected {
  color: var(--text);
  background: var(--primary-soft);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .2);
}

.netmap-icon-gallery button > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #fff;
  background: var(--asset-preview-color, #f97316);
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .28);
}

.netmap-icon-gallery button > span svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.netmap-icon-gallery button small { overflow: hidden; width: 100%; font-size: 8px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.netmap-color-field {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 7px;
}

.netmap-color-field input[type="color"] { padding: 4px; cursor: pointer; }

.netmap-color-palette {
  display: flex;
  gap: 5px;
  margin-top: 7px;
}

.netmap-color-palette button {
  width: 20px;
  height: 20px;
  padding: 0;
  cursor: pointer;
  background: var(--swatch);
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3);
}

.netmap-color-palette button:hover,
.netmap-color-palette button:focus-visible {
  border-color: #fff;
  transform: scale(1.08);
}

.netmap-color-palette button.is-selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--bg-panel), 0 0 0 3px var(--primary);
}

.netmap-field textarea {
  width: 100%;
  min-height: 70px;
  padding: 9px 11px;
  resize: vertical;
  color: var(--text);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
  font: 11px var(--font);
}

.netmap-field textarea:focus { border-color: var(--primary); box-shadow: var(--ring); }
.netmap-modal__spacer { flex: 1; }
.netmap-delete-map { margin-right: auto; }

.network-map-page.is-fullscreen {
  position: fixed;
  z-index: 900;
  inset: 0;
  padding: 10px;
  background: var(--bg-body);
}

.network-map-page.is-fullscreen .netmap-page-head { display: none; }
.network-map-page.is-fullscreen .netmap-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: calc(100vh - 20px);
  min-height: 0;
}
.network-map-page.is-fullscreen .netmap-workspace,
.network-map-page.is-fullscreen .netmap-stage,
.network-map-page.is-fullscreen .netmap-google { height: 100%; min-height: 0; }
.network-map-page.is-fullscreen .netmap-inventory__list { max-height: calc(100vh - 185px); }
.netmap-body-fullscreen { overflow: hidden !important; }

@media (max-width: 1180px) {
  .network-map-page .netmap-workspace { grid-template-columns: minmax(0, 1fr) 245px; }
  .netmap-summary { top: auto; bottom: 12px; }
  .netmap-search-results { left: 12px; width: min(430px, calc(100% - 24px)); }
}

@media (max-width: 860px) {
  .network-map-page .netmap-workspace { grid-template-columns: 1fr; }
  .network-map-page .netmap-stage,
  .network-map-page .netmap-google { min-height: 68vh; }
  .network-map-page .netmap-inventory__list { max-height: 320px; }
  .netmap-summary { max-width: calc(100% - 20px); overflow-x: auto; }
}

@media (max-width: 620px) {
  .network-map-page .netmap-panel { min-height: calc(100vh - 145px); }
  .network-map-page .netmap-toolbar__actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .network-map-page .netmap-toolbar__actions .btn--icon { display: inline-flex; }
  .network-map-page .netmap-toolbar__actions .btn { overflow: hidden; font-size: 9px; text-overflow: ellipsis; }
  .network-map-page .netmap-stage,
  .network-map-page .netmap-google { min-height: 70vh; }
  .network-map-page .netmap-filters { width: 132px; }
  .netmap-summary { display: none; }
  .network-map-page .netmap-details { bottom: 8px; right: 8px; width: calc(100% - 16px); }
  .netmap-onu-result { grid-template-columns: 8px minmax(0, 1fr) auto; }
  .netmap-onu-result input { grid-column: 2; }
  .netmap-onu-result button { grid-column: 3; grid-row: 2; }
  .netmap-modal__spacer { display: none; }
  .netmap-delete-map { margin-right: 0; }
  .netmap-icon-gallery { grid-template-columns: repeat(3, minmax(72px, 1fr)); }
}

[data-theme="light"] .netmap-summary,
[data-theme="light"] .netmap-search-results {
  color: #26364e;
  background: rgba(255, 255, 255, .96);
  border-color: rgba(91, 118, 151, .3);
}

[data-theme="light"] .netmap-summary b { color: #10203a; }
[data-theme="light"] .netmap-search-results > button { color: #34445c; border-bottom-color: #e5ebf3; }
[data-theme="light"] .netmap-search-results small { color: #78869a; }
