﻿:root {
  --bg: #f6f8fa;
  --panel: #ffffff;
  --line: #dfe8ee;
  --ink: #172026;
  --muted: #697984;
  --blue: #006fb8;
  --blue-2: #0a8bd6;
  --green: #13b84a;
  --red: #d94141;
  --shadow: 0 16px 40px rgba(21, 38, 50, 0.18);
  --soft-shadow: 0 10px 28px rgba(24, 44, 58, 0.08);
  --sidebar-bg: #f7fafb;
}

/* --------------------------------------------------------------------------
   FIBY Nexo · Identidad visual compartida (Hub / Planner / FIGIS)
   Capa de presentación: no modifica la lógica del mapa ni sus herramientas.
   -------------------------------------------------------------------------- */
:root {
  --hub-navy: #153a64;
  --hub-navy-deep: #102e53;
  --hub-teal: #0c91a2;
  --hub-teal-soft: #1c587b;
  --hub-lime: #a7dc4f;
  --hub-surface: #f4f8f9;
  --hub-line: #dfe8ee;
  --hub-text: #13213a;
  --hub-muted: #718096;
}

.app-shell {
  grid-template-columns: 238px minmax(0, 1fr);
  background: var(--hub-surface);
}

.sidebar {
  background: linear-gradient(180deg, var(--hub-navy), var(--hub-navy-deep));
  border-right: 0;
  color: #fff;
  gap: 8px;
  padding: 0 13px 16px;
}

.sidebar::-webkit-scrollbar { width: 7px; }
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.brand {
  min-height: 78px;
  padding: 0 7px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  border-radius: 0;
  box-shadow: none;
}

.brand > div {
  display: grid;
  grid-template-columns: 126px auto;
  align-items: center;
  column-gap: 7px;
  min-width: 0;
}

.brand-logo {
  width: 126px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.brand-module {
  color: var(--hub-lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.brand p {
  grid-column: 1 / -1;
  width: 190px;
  margin: -8px 0 6px 1px;
  color: #91a6bd;
  font-size: 8px;
  font-weight: 600;
}

.brand .icon-button {
  flex: 0 0 auto;
  width: 30px;
  min-height: 30px;
  padding: 0;
  color: #d9e6f3;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
}

.workspace-label {
  margin: 18px 10px 3px;
  color: #7088a4;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.35px;
}

.current-workspace,
.nexo-back-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  min-height: 39px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.current-workspace {
  background: rgba(12, 145, 162, .22);
  box-shadow: inset 2px 0 var(--hub-lime);
}

.current-workspace svg,
.nexo-back-button svg { width: 15px; height: 15px; }

.nexo-back-button {
  margin: 0 0 6px;
  color: #a9bbcf;
  background: transparent;
  border: 0;
}

.nexo-back-button:hover {
  color: #fff;
  background: rgba(12, 145, 162, .18);
}

.sidebar .panel {
  padding: 10px;
  color: #dce7f2;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 7px;
  box-shadow: none;
}

.sidebar .panel-heading span,
.sidebar .members-title span,
.sidebar summary,
.sidebar .members-open-button span,
.sidebar .session-panel strong {
  color: #fff;
}

.sidebar .panel-heading span,
.sidebar .members-title span {
  font-size: 9px;
  letter-spacing: .55px;
}

.sidebar .panel-heading span::before,
.sidebar .members-title span::before {
  background: linear-gradient(180deg, var(--hub-lime), var(--hub-teal));
}

.sidebar .stats-panel > div:not(.panel-heading) {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .1);
}

.sidebar .stats-panel span,
.sidebar .members-open-button small,
.sidebar .session-panel span,
.sidebar .save-state,
.sidebar .compact-file-name {
  color: #91a6bd;
}

.sidebar input,
.sidebar select,
.sidebar button:not(.icon-button),
.sidebar .mini-file {
  border-color: rgba(255, 255, 255, .14);
}

.sidebar input,
.sidebar select {
  color: #eef5fb;
  background: rgba(4, 24, 46, .38);
}

.sidebar input::placeholder { color: #8fa4ba; }
.sidebar select option { color: #172026; background: #fff; }

.sidebar .segmented button,
.sidebar .tool-row button,
.sidebar .session-actions button,
.sidebar .save-row button,
.sidebar .mini-actions button,
.sidebar .mini-file,
.sidebar .member-actions button {
  color: #dbe7f3;
  background: rgba(255, 255, 255, .055);
}

.sidebar button:hover,
.sidebar .mini-file:hover,
.sidebar .segmented button.active {
  color: #fff;
  background: rgba(12, 145, 162, .22);
}

.map-wrap {
  display: grid;
  grid-template-rows: 61px minmax(0, 1fr);
  background: var(--hub-surface);
}

.module-header {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0 29px;
  color: #8995a6;
  background: #fff;
  border-bottom: 1px solid #e3e9ee;
  z-index: 610;
}

.module-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
}

.module-breadcrumb strong { color: #174473; }
.module-breadcrumb span:first-of-type { color: #d3dae2; }

.module-header-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
}

.module-header-copy a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  color: #174473;
  background: #fff;
  border: 1px solid #e1e7ec;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
}

.module-header-copy a:hover { border-color: #a8d9dd; color: var(--hub-teal); }
.module-header-copy svg { width: 14px; height: 14px; }

#map {
  grid-row: 2;
  min-height: 0;
  height: 100%;
}

.topbar { top: 75px; }
.sidebar-toggle { left: 250px; top: 73px; }
.sidebar-collapsed .sidebar-toggle { left: 14px; }

.status-pill,
.coord-pill,
.map-select,
.locate-button {
  border-color: var(--hub-line);
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(21, 58, 100, .1);
}

.locate-button { color: var(--hub-teal); }

.detail-panel,
.conduit-panel,
.network-diagram-panel,
.members-panel {
  top: 78px;
  max-height: calc(100vh - 96px);
  border-color: var(--hub-line);
  border-radius: 9px;
}

@media (max-width: 860px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { padding-top: 0; }
  .module-header { padding: 0 13px; }
  .module-header-copy > span { display: none; }
  .topbar { top: 72px; left: 10px; right: 10px; }
  .sidebar-toggle { top: 71px; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
}

.login-screen {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(246, 250, 252, 0.96), rgba(235, 243, 247, 0.96)),
    radial-gradient(circle at 20% 15%, rgba(19, 184, 74, 0.18), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(0, 111, 184, 0.18), transparent 34%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 2000;
}

.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(24, 44, 58, 0.16);
  display: grid;
  gap: 16px;
  max-width: 390px;
  padding: 34px 30px 30px;
  width: 100%;
}

.login-card img {
  display: block;
  height: 78px;
  justify-self: center;
  margin-bottom: 8px;
  object-fit: contain;
  object-position: center;
  width: min(260px, 100%);
}

.login-card label {
  color: #52636d;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
}

.login-card input {
  background: #fbfdfe;
  border: 1px solid #d5e2e9;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 12px;
}

.login-card input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 111, 184, 0.12);
}

.login-card button {
  background: linear-gradient(180deg, #0886d6 0%, #006fb8 100%);
  border-color: var(--blue);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 111, 184, 0.22);
  color: #fff;
  margin-top: 2px;
  min-height: 46px;
}

.sso-login-button,
.nexo-back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.sso-login-button {
  margin-top: 12px;
  color: #fff;
  background: linear-gradient(100deg, #087f94, #39ae88);
  box-shadow: 0 8px 18px rgba(12, 145, 162, .2);
}

.legacy-login { margin-top: 14px; color: #6e7c8f; font-size: 12px; }
.legacy-login summary { cursor: pointer; text-align: center; }
.legacy-login button { margin-top: 10px; width: 100%; }

.nexo-back-button {
  margin: 10px 0 14px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
}
.nexo-back-button:hover { background: rgba(12,145,162,.22); }

.login-error {
  color: var(--red);
  font-size: 13px;
  min-height: 18px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  align-items: center;
  border: 1px solid #d9e4eb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  padding: 8px 11px;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

button:hover:not(:disabled) {
  border-color: #b8cbd7;
  background: #f8fbfd;
  box-shadow: 0 6px 16px rgba(24, 44, 58, 0.08);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button.active {
  border-color: var(--blue);
  background: linear-gradient(180deg, #087ec9 0%, #006fb8 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 111, 184, 0.22);
}

button svg,
.file-drop svg {
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.app-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.app-shell.auth-locked {
  display: none;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  overflow-y: auto;
  padding: 16px;
  transition: transform 180ms ease, opacity 180ms ease;
  z-index: 650;
}

.sidebar::-webkit-scrollbar {
  width: 10px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #c7d4dc;
  border: 3px solid var(--sidebar-bg);
  border-radius: 999px;
}

.sidebar-collapsed .sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}

.sidebar-toggle {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  gap: 7px;
  left: 374px;
  min-height: 38px;
  padding: 8px 10px;
  position: absolute;
  top: 14px;
  transition: left 180ms ease;
  z-index: 760;
}

.sidebar-collapsed .sidebar-toggle {
  left: 14px;
}

.brand {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 12px;
}

.brand-logo {
  display: block;
  height: 46px;
  object-fit: contain;
  object-position: left center;
  width: 150px;
}

.brand p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin: 6px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 260px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  padding: 12px;
}

.panel-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.panel-heading span {
  color: #24556f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel-heading span::before,
.members-title span::before {
  background: linear-gradient(180deg, #39c56f, #0086c8);
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 13px;
  margin-right: 7px;
  vertical-align: -2px;
  width: 4px;
}

.file-drop {
  align-items: center;
  border: 1px dashed #9fb6c5;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 4px 10px;
  grid-template-columns: 32px 1fr;
  padding: 12px;
}

.file-drop svg {
  grid-row: span 2;
  height: 26px;
  width: 26px;
  color: var(--blue);
}

.file-drop span {
  color: var(--muted);
  font-size: 12px;
}

.file-drop strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#fileInput,
#loadProjectInput,
#excelImportInput {
  display: none;
}

.actions-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.stats-panel {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-panel .panel-heading {
  background: transparent;
  border: 0;
  grid-column: 1 / -1;
  margin-bottom: 0;
  padding: 0;
}

.stats-panel div {
  background: linear-gradient(180deg, #f9fbfc 0%, #f2f6f8 100%);
  border: 1px solid #e2ebf0;
  border-radius: 8px;
  padding: 10px;
}

.stats-panel .panel-heading {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.stats-panel span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.stats-panel strong {
  display: block;
  font-size: 17px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tools-panel,
.project-io-panel {
  padding: 0;
}

.tools-disclosure summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 13px 14px;
}

.tools-disclosure summary::-webkit-details-marker {
  display: none;
}

.tools-disclosure summary span {
  align-items: center;
  color: #24556f;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}

.tools-disclosure summary > svg {
  color: var(--muted);
  height: 17px;
  transition: transform 160ms ease;
  width: 17px;
}

.tools-disclosure[open] summary > svg {
  transform: rotate(180deg);
}

.tools-content {
  border-top: 1px solid #e4edf2;
  padding: 12px;
}

.segmented button {
  min-width: 0;
}

.tool-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.tools-panel #drawLineMode,
.tools-panel #drawPointMode {
  background: #f8fbfd;
}

.tools-panel #deleteButton:not(:disabled) {
  color: #b3261e;
}

.search-panel {
  padding: 10px;
}

.search-panel input,
.filter-panel select,
#propertyForm input,
#propertyForm select,
#propertyForm textarea {
  background: #fbfdfe;
  border: 1px solid #d8e4eb;
  border-radius: 8px;
  min-height: 38px;
  padding: 9px 10px;
  width: 100%;
}

.search-panel input:focus,
.filter-panel select:focus,
#propertyForm input:focus,
#propertyForm select:focus,
#propertyForm textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(0, 111, 184, 0.12);
}

.hidden-search-results {
  display: none;
}

.project-io-panel {
  margin-top: 0;
  order: 80;
}

.filter-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.filter-panel .panel-heading {
  margin-bottom: 0;
}

.filter-panel select {
  min-height: 36px;
  padding: 7px 9px;
}

.tools-panel button,
.project-io-panel button,
.mini-file {
  border-radius: 8px;
}

.save-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.save-row button:first-child {
  background: linear-gradient(180deg, #18a55b, #0f7a43);
  border-color: #0f7a43;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 122, 67, 0.2);
}

#backupProjectButton {
  background: #fff7ed;
  border-color: #f3c98b;
  color: #8a4b00;
  font-weight: 800;
}

.mini-actions {
  display: grid;
  gap: 6px;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.mini-actions.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.excel-import-actions {
  display: grid;
  margin-top: 8px;
}

.excel-import-actions button {
  background: #f0f8f3;
  border-color: #b9dfc9;
  color: #0f7a43;
  font-weight: 800;
}

.mini-actions button,
.mini-file {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  gap: 5px;
  justify-content: center;
  min-height: 34px;
  padding: 6px 7px;
  text-align: center;
}

.mini-file svg,
.mini-actions svg {
  height: 15px;
  width: 15px;
}

.save-state {
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
}

.compact-file-name {
  display: block;
  font-size: 12px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  max-height: 172px;
  overflow-y: auto;
}

.feature-item {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe8ee;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 4px 8px;
  grid-template-columns: 12px 1fr;
  min-height: 42px;
  padding: 7px 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.feature-item:hover {
  border-color: #b8cbd7;
  background: #f8fbfd;
  box-shadow: 0 8px 18px rgba(24, 44, 58, 0.08);
  transform: translateY(-1px);
}

.feature-dot {
  border-radius: 99px;
  height: 10px;
  width: 10px;
}

.feature-name {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-meta {
  color: var(--muted);
  font-size: 10px;
  grid-column: 2;
}

.session-panel {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(234, 247, 241, 0.75), rgba(255, 255, 255, 0.96)),
    #fff;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: auto;
  order: 100;
}

.session-panel span,
.members-title small {
  color: var(--muted);
  display: block;
  font-size: 11px;
}

.session-panel strong {
  display: block;
  font-size: 14px;
  margin-top: 3px;
}

.session-actions {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.session-panel button {
  min-height: 34px;
}

.session-actions button:first-child {
  color: #0b4f91;
}

.members-launch-panel {
  padding: 0;
}

.admin-diagram-panel {
  padding: 0;
}

.members-open-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: 30px 1fr;
  justify-items: start;
  min-height: 56px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.members-open-button svg {
  color: var(--blue);
  grid-row: span 2;
}

.members-open-button span {
  font-weight: 800;
}

.members-open-button small {
  color: var(--muted);
  font-size: 11px;
}

.members-panel {
  display: none;
  gap: 12px;
  left: 50%;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 18px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px));
  z-index: 980;
}

.members-panel.open {
  display: grid;
}

.network-diagram-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: none;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 18px;
  position: absolute;
  right: 50%;
  top: 22px;
  transform: translateX(50%);
  width: min(1240px, calc(100vw - 48px));
  z-index: 730;
}

.network-diagram-panel.open {
  display: block;
}

.network-diagram-panel header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.network-diagram-panel header span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.network-diagram-panel h2 {
  font-size: 24px;
  margin: 2px 0 0;
}

.diagram-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.diagram-toolbar button {
  border-radius: 8px;
  min-height: 34px;
}

.diagram-summary {
  align-items: center;
  background: #f7fafb;
  border: 1px solid #dfe8ee;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.diagram-summary strong {
  color: var(--ink);
}

.network-diagram-layout {
  display: grid;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 12px;
}

.network-root-card {
  align-items: center;
  background: linear-gradient(135deg, #e7f8ef, #eef7ff);
  border: 1px solid #b9dfc9;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 13px 16px;
}

.network-root-card span {
  color: #0f7a43;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.network-root-card strong {
  font-size: 18px;
}

.torpedo-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  min-width: 760px;
}

.torpedo-card {
  background: #fff;
  border: 1px solid #dce8ef;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(24, 44, 58, 0.06);
  overflow: hidden;
}

.torpedo-card header {
  background: linear-gradient(180deg, #fff8ed, #fff1db);
  border-bottom: 1px solid #eed2a7;
  display: grid;
  gap: 2px;
  min-height: 86px;
  padding: 12px;
}

.torpedo-card header[data-id],
.cd-card[data-id] {
  cursor: pointer;
}

.torpedo-card header[data-id]:hover,
.cd-card[data-id]:hover {
  outline: 2px solid rgba(0, 111, 184, 0.16);
}

.torpedo-card header span {
  color: #a15a00;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.torpedo-card header strong {
  color: #172532;
  font-size: 34px;
  line-height: 1;
}

.torpedo-card header small {
  color: #6a4a1d;
  font-size: 11px;
}

.cd-grid {
  display: grid;
  gap: 7px;
  padding: 9px;
}

.cd-card {
  background: linear-gradient(180deg, #ffffff, #f7fafb);
  border: 1px solid #dfe8ee;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 8px;
}

.cd-card strong {
  color: #0f4fa8;
  font-size: 13px;
}

.cd-card span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.cd-card em {
  color: #a15a00;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.cto-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.cto-chip {
  background: #eaf3ff;
  border: 1px solid #c8dff5;
  border-radius: 999px;
  color: #0f4fa8;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  min-height: 22px;
  padding: 3px 7px;
}

.cto-chip:hover {
  background: #dcecff;
}

.members-close {
  position: absolute;
  right: 14px;
  top: 14px;
}

.members-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-right: 42px;
}

.members-title span {
  color: #24556f;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.member-form {
  display: grid;
  gap: 7px;
}

.member-form input,
.member-form select {
  background: #fbfdfe;
  border: 1px solid #d8e4eb;
  border-radius: 8px;
  min-height: 38px;
  padding: 9px 10px;
  width: 100%;
}

.member-actions {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-actions button[type="submit"] {
  background: linear-gradient(180deg, #087ec9 0%, #006fb8 100%);
  border-color: var(--blue);
  color: #fff;
}

.members-list {
  display: grid;
  gap: 6px;
  max-height: 170px;
  overflow-y: auto;
}

.member-item {
  align-items: center;
  background: #fbfdfe;
  border: 1px solid #dfe8ee;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 32px 32px;
  padding: 7px;
}

.member-item strong,
.member-item span {
  display: block;
}

.member-item strong {
  font-size: 13px;
}

.member-item span {
  color: var(--muted);
  font-size: 11px;
}

.member-item button {
  min-height: 30px;
  padding: 5px;
}

.map-wrap {
  min-width: 0;
  position: relative;
}

#map {
  height: 100%;
  width: 100%;
}

.topbar {
  display: flex;
  gap: 10px;
  left: 14px;
  position: absolute;
  top: 14px;
  z-index: 500;
}

.status-pill,
.coord-pill,
.map-select,
.locate-button {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(21, 38, 50, 0.12);
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
}

.map-select {
  color: var(--ink);
  min-height: 34px;
  min-width: 170px;
}

.locate-button {
  color: var(--blue);
  font-weight: 700;
  min-height: 34px;
  white-space: nowrap;
}

.locate-button svg {
  height: 16px;
  width: 16px;
}

.detail-panel,
.conduit-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: none;
  max-height: calc(100vh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px;
  position: absolute;
  right: 50%;
  top: 20px;
  transform: translateX(50%);
  width: min(980px, calc(100vw - 40px));
  z-index: 700;
}

.conduit-panel {
  left: 16px;
  right: auto;
  top: 64px;
  transform: none;
  width: min(430px, calc(100vw - 32px));
}

.detail-panel.open,
.conduit-panel.open {
  display: block;
}

.detail-panel header,
.conduit-panel header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-panel header {
  cursor: grab;
  user-select: none;
}

.detail-panel.dragging header {
  cursor: grabbing;
}

.detail-panel header span,
.conduit-panel header span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-panel h2,
.conduit-panel h2 {
  font-size: 27px;
  line-height: 1.2;
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.modal-title {
  align-items: center;
  display: flex;
  gap: 14px;
}

.element-icon {
  background: #276db7;
  border: 1px solid #0c4d95;
  border-radius: 5px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
  display: inline-block;
  height: 34px;
  width: 34px;
}

.element-icon.torpedo {
  background: #f28c16;
  border-color: #b76300;
  border-radius: 50%;
}

.element-icon.caja {
  background: #55a630;
  border-color: #2f7d14;
}

.element-icon.arqueta {
  background: #6b7280;
  border-color: #4b5563;
}

.icon-button {
  border-radius: 6px;
  min-height: 34px;
  padding: 7px;
  width: 36px;
}

#propertyForm {
  display: grid;
  gap: 14px;
}

.modal-tabs {
  background: #f3f7fb;
  border: 1px solid #d7e2ec;
  border-radius: 9px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
}

.modal-tabs button {
  border: 0;
  border-radius: 7px;
  color: #415466;
  font-size: 15px;
  font-weight: 700;
  min-height: 42px;
}

.modal-tabs button.active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(21, 38, 50, 0.12);
  color: #0f4fa8;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  gap: 14px;
}

#propertyForm label {
  color: var(--ink);
  display: grid;
  font-size: 15px;
  gap: 0;
}

#propertyForm textarea {
  min-height: 82px;
  resize: vertical;
}

.modal-section {
  border: 1px solid #83aef0;
  border-radius: 8px;
  padding: 12px 16px;
}

.section-heading {
  background: transparent;
  border: 0;
  color: #0f4fa8;
  font-size: 16px;
  font-weight: 800;
  justify-content: space-between;
  min-height: 30px;
  padding: 0 0 8px;
  text-transform: uppercase;
  width: 100%;
}

.section-heading:hover:not(:disabled) {
  background: transparent;
  border-color: transparent;
}

.info-table {
  display: grid;
}

.info-table label {
  align-items: center;
  border-top: 1px solid #dce5ec;
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 43px;
}

.info-table label span {
  color: #102033;
  font-weight: 700;
}

.info-table input,
.info-table select {
  background: transparent;
  border: 0 !important;
  min-height: 38px;
  padding: 7px 0 !important;
}

#propOwner[readonly] {
  background: #f7fafb;
  color: #1f3340;
  font-weight: 700;
}

.admin-report-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.admin-report-actions button {
  background: #0f4fa8;
  border-color: #0f4fa8;
  border-radius: 8px;
  color: #fff;
  min-height: 36px;
}

.connections-box {
  border: 1px solid #76c888;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px 16px;
}

.connections-box > header {
  color: #0f4fa8;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.connections-box > header span,
.connection-title span {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.passthrough-toolbar {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 0;
}

.passthrough-toggle-button {
  border-radius: 6px;
  color: #0f4fa8;
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 5px 8px;
}

.passthrough-toggle-button.active {
  background: #edf7ff;
  border-color: #8fc4ef;
}

.connection-group {
  display: grid;
  gap: 7px;
}

.connection-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.connection-title.incoming {
  color: #0f5aa8;
}

.connection-title.outgoing {
  color: #0f7a43;
}

.connection-title.fusion {
  color: #7c3aed;
}

.connection-title button {
  border-radius: 6px;
  color: #0f4fa8;
  font-size: 12px;
  min-height: 30px;
  padding: 5px 8px;
  text-transform: none;
}

.fiber-count-control {
  align-items: center;
  color: #475866 !important;
  display: inline-flex !important;
  flex-direction: row;
  font-size: 12px !important;
  font-weight: 700;
  gap: 8px !important;
  text-transform: none;
}

.fiber-count-control select {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 32px;
  padding: 5px 8px;
  width: 92px;
}

.connection-table-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: hidden;
}

.connection-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.connection-table th,
.connection-table td {
  border-bottom: 1px solid #e7edf1;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.connection-table th {
  background: #f7fafb;
  color: #475866;
  font-size: 13px;
  font-weight: 700;
}

.connection-table th:nth-child(1),
.connection-table td:nth-child(1) {
  width: 24%;
}

.connection-table th:nth-child(2),
.connection-table td:nth-child(2) {
  width: 16%;
}

.connection-table th:nth-child(3),
.connection-table td:nth-child(3) {
  width: 24%;
}

.connection-table th:nth-child(4),
.connection-table td:nth-child(4) {
  width: 28%;
}

.connection-table th:nth-child(5),
.connection-table td:nth-child(5) {
  text-align: center;
  width: 42px;
}

.connection-table tr:last-child td {
  border-bottom: 0;
}

.connection-table input,
.connection-table select {
  border: 0 !important;
  border-radius: 4px !important;
  font-size: 14px;
  min-height: 32px !important;
  padding: 5px 0 !important;
  width: 100%;
}

.connection-table input:focus,
.connection-table select:focus {
  outline: 2px solid rgba(0, 111, 184, 0.12);
}

.connection-table .delete-row {
  border: 0;
  color: var(--red);
  min-height: 30px;
  padding: 4px;
  width: 30px;
}

.fusion-board {
  border: 1px solid #b9c6d1;
  border-radius: 6px;
  max-height: 430px;
  overflow: auto;
}

.fusion-head,
.fusion-row {
  display: grid;
  grid-template-columns: 48px 34px 48px minmax(190px, 1.4fr) 110px 110px 112px 112px 112px;
  min-width: 980px;
}

.fusion-head {
  background: #f7d6d6;
  border-bottom: 2px solid #2d2d2d;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 1;
}

.fusion-head span,
.fusion-row > div {
  border-right: 1px solid #2d2d2d;
  min-height: 27px;
  padding: 4px 6px;
}

.fusion-head span:last-child,
.fusion-row > div:last-child {
  border-right: 0;
}

.fusion-row {
  border-bottom: 1px solid #2d2d2d;
  font-size: 12px;
}

.fusion-row:nth-child(12n) {
  border-bottom-width: 3px;
}

.fusion-number {
  align-items: center;
  display: flex;
  justify-content: center;
}

.tube-color,
.fiber-color {
  color: transparent;
}

.fiber-cell {
  align-items: center;
  display: flex;
  font-weight: 800;
  justify-content: center;
}

.fusion-row input,
.fusion-row select {
  background: transparent;
  border: 0;
  min-height: 22px;
  padding: 2px 3px;
  width: 100%;
}

.fusion-row input:focus,
.fusion-row select:focus {
  background: #fff;
  outline: 2px solid rgba(0, 111, 184, 0.16);
}

.distribution-board {
  border: 1px solid #d7e2ec;
  border-radius: 6px;
  overflow-x: auto;
}

.splitter-feed {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.splitter-feed label {
  background: #f8fbfd;
  border: 1px solid #d7e2ec;
  border-radius: 6px;
  color: #0f4fa8 !important;
  display: grid !important;
  font-size: 13px !important;
  font-weight: 800;
  gap: 6px !important;
  padding: 9px;
}

.splitter-feed select {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 34px;
  padding: 6px 8px;
}

.connection-title.distribution {
  color: #0f7a43;
}

.distribution-head,
.distribution-row {
  display: grid;
  grid-template-columns: 62px minmax(150px, 1.25fr) 118px 118px minmax(130px, 1fr);
  min-width: 620px;
}

.distribution-head {
  align-items: center;
  background: #eaf8ef;
  border-bottom: 1px solid #d7e2ec;
  color: #0f5f34;
  font-size: 13px;
  font-weight: 800;
}

.distribution-head span,
.distribution-row > div {
  border-right: 1px solid #e2e8ef;
  min-height: 34px;
  padding: 5px 7px;
}

.distribution-head span:last-child,
.distribution-row > div:last-child {
  border-right: 0;
}

.distribution-row {
  border-bottom: 1px solid #e7edf1;
  font-size: 13px;
}

.distribution-splitter-title {
  background: #dff4e8;
  border-bottom: 1px solid #badfca;
  color: #0f5f34;
  font-size: 13px;
  font-weight: 900;
  min-width: 620px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.distribution-board input,
.distribution-board select {
  border: 1px solid #d7e2ec !important;
  border-radius: 5px;
  background: #fff;
}

.tab-hidden {
  display: none !important;
}

.passthrough-table {
  min-width: 0;
}

.passthrough-table th:nth-child(1),
.passthrough-table td:nth-child(1),
.passthrough-table th:nth-child(3),
.passthrough-table td:nth-child(3) {
  width: 25%;
}

.passthrough-table th:nth-child(2),
.passthrough-table td:nth-child(2),
.passthrough-table th:nth-child(4),
.passthrough-table td:nth-child(4) {
  width: 16%;
}

.passthrough-table th:nth-child(5),
.passthrough-table td:nth-child(5) {
  width: 18%;
}

.passthrough-table th:nth-child(6),
.passthrough-table td:nth-child(6) {
  width: 42px;
}

.distribution-row input,
.distribution-row select {
  border: 0;
  min-height: 28px;
  padding: 3px;
  width: 100%;
}

.photo-field input {
  min-height: auto;
  padding: 7px;
}

.photo-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.photo-card img {
  aspect-ratio: 1;
  cursor: zoom-in;
  display: block;
  object-fit: cover;
  width: 100%;
}

.photo-card span {
  background: rgba(23, 32, 38, 0.78);
  bottom: 0;
  color: #fff;
  font-size: 10px;
  left: 0;
  padding: 2px 4px;
  position: absolute;
}

.photo-card button {
  background: rgba(23, 32, 38, 0.82);
  border: 0;
  border-radius: 0;
  color: #fff;
  min-height: 26px;
  padding: 3px;
  position: absolute;
  right: 0;
  top: 0;
  width: 28px;
}

.photo-lightbox {
  align-items: center;
  background: rgba(8, 18, 28, 0.92);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 44px;
  position: fixed;
  z-index: 1200;
}

.photo-lightbox img {
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  max-height: calc(100vh - 140px);
  max-width: calc(100vw - 120px);
  object-fit: contain;
}

.photo-lightbox .icon-button {
  background: #fff;
  position: fixed;
  right: 28px;
  top: 28px;
}

#photoLightboxCaption {
  color: #fff;
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
}

.hidden-field {
  display: none !important;
}

#savePropsButton {
  background: var(--blue);
  border-color: var(--blue);
  border-radius: 6px;
  color: white;
  margin-top: 2px;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.modal-footer button {
  border-radius: 6px;
  min-width: 126px;
}

#savePropsButton.saved {
  background: #0f7a43;
  border-color: #0f7a43;
}

.telecom-line {
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.9));
}

.conduit-line {
  filter: drop-shadow(0 2px 3px rgba(23, 32, 38, 0.28));
}

.conduit-summary {
  background: #f7fafb;
  border: 1px solid #e4eaee;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
  padding: 10px;
}

.conduit-filter {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 5px;
  margin-bottom: 10px;
}

.conduit-filter select {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 36px;
  padding: 8px 9px;
}

.conduit-list {
  display: grid;
  gap: 8px;
}

.conduit-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  gap: 4px 8px;
  grid-template-columns: 12px 1fr auto;
  padding: 9px;
}

.conduit-item:hover {
  background: #f8fbfd;
  border-color: #9fb6c5;
}

.conduit-item strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conduit-item span:last-child {
  color: var(--muted);
  font-size: 11px;
  grid-column: 2 / 4;
}

.point-marker {
  align-items: center;
  border: 3px solid #fff;
  border-radius: 7px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.34);
  display: flex;
  height: 28px;
  justify-content: center;
  position: relative;
  width: 28px;
}

.point-marker::after {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 99px;
  content: "";
  height: 7px;
  width: 7px;
}

.point-marker.cto {
  background: var(--blue);
}

.point-marker.torpedo {
  background: #7c3aed;
  border-radius: 50%;
}

.point-marker.caja {
  background: #e07a16;
}

.point-marker.default {
  background: #5b6b75;
}

.point-marker.instalada {
  outline: 5px solid rgba(19, 184, 74, 0.28);
}

.point-marker.construccion {
  outline: 5px solid rgba(224, 122, 22, 0.28);
}

.map-label {
  color: #005a92;
  font-size: 13px;
  font-weight: 700;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
  white-space: nowrap;
}

.leaflet-popup-content {
  margin: 10px 12px;
}

.popup-title {
  font-weight: 700;
  margin-bottom: 5px;
}

.popup-row {
  color: #34444e;
  font-size: 12px;
  margin-top: 3px;
}

@media (max-width: 860px) {
  .desktop-admin-only {
    display: none !important;
  }

  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: 100dvh;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .sidebar {
    border-bottom: 0;
    border-radius: 0 18px 18px 0;
    border-right: 1px solid var(--line);
    box-shadow: 18px 0 45px rgba(24, 44, 58, 0.22);
    height: 100dvh;
    left: 0;
    max-height: none;
    padding: 104px 12px 14px;
    position: fixed;
    top: 0;
    transform: translateX(0);
    width: min(340px, 88vw);
    z-index: 740;
  }

  .sidebar-toggle,
  .sidebar-collapsed .sidebar-toggle {
    border-radius: 999px;
    left: 12px;
    position: fixed;
    top: 52px;
    z-index: 900;
  }

  .sidebar-collapsed .sidebar {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-104%);
  }

  .brand {
    min-height: 52px;
    padding: 10px;
  }

  .brand-logo {
    height: 38px;
    width: 128px;
  }

  .stats-panel,
  .actions-grid,
  .tool-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: block;
    left: auto;
    right: 12px;
    top: 106px;
    width: auto;
  }

  .status-pill,
  .coord-pill,
  .map-select {
    display: none;
  }

  .locate-button {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0;
    height: 42px;
    justify-content: center;
    min-height: 42px;
    padding: 0;
    width: 42px;
  }

  .locate-button span {
    display: none;
  }

  .locate-button svg {
    height: 19px;
    width: 19px;
  }

  .map-wrap {
    height: 100dvh;
  }

  #map {
    height: 100dvh;
  }

  .detail-panel,
  .conduit-panel {
    border-radius: 16px;
    bottom: 12px;
    box-sizing: border-box;
    left: 8px;
    max-height: calc(100dvh - 76px);
    max-width: calc(100vw - 16px);
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 12px;
    right: 8px;
    top: 64px;
    transform: none;
    width: auto;
  }

  .detail-panel *,
  .conduit-panel * {
    min-width: 0;
  }

  .detail-panel header,
  .conduit-panel header {
    align-items: center;
    background: #fff;
    cursor: default;
    margin-bottom: 10px;
    position: sticky;
    top: -12px;
    z-index: 3;
  }

  .modal-title {
    gap: 9px;
    min-width: 0;
  }

  .element-icon {
    height: 28px;
    width: 28px;
  }

  .detail-panel h2,
  .conduit-panel h2 {
    font-size: 20px;
    line-height: 1.15;
  }

  .detail-panel header span,
  .conduit-panel header span {
    font-size: 10px;
  }

  #propertyForm {
    gap: 10px;
    overflow-x: hidden;
    width: 100%;
  }

  .modal-tabs {
    gap: 3px;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
  }

  .modal-tabs button {
    font-size: 12px;
    gap: 5px;
    min-height: 36px;
    padding: 7px 6px;
  }

  .modal-tabs button svg {
    height: 14px;
    width: 14px;
  }

  .tab-panel.active {
    gap: 10px;
    overflow-x: hidden;
  }

  .modal-section,
  .connections-box {
    box-sizing: border-box;
    overflow: hidden;
    padding: 10px;
    width: 100%;
  }

  .section-heading,
  .connections-box > header {
    font-size: 13px;
  }

  .info-table label {
    align-items: start;
    gap: 4px;
    grid-template-columns: 1fr;
    padding: 8px 0;
  }

  .info-table label span {
    font-size: 12px;
  }

  .connection-title {
    align-items: stretch;
    flex-direction: column;
    font-size: 12px;
    gap: 6px;
  }

  .connection-title button {
    width: 100%;
  }

  .fiber-count-control {
    justify-content: space-between;
    width: 100%;
  }

  .fiber-count-control select {
    min-width: 86px;
    width: auto;
  }

  .connection-table-wrap,
  .fusion-board,
  .distribution-board {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .connection-table {
    min-width: 0;
  }

  .fusion-head,
  .fusion-row {
    grid-template-columns: 36px 26px 38px 150px 86px 86px 94px 94px 94px;
    min-width: 805px;
  }

  .fusion-head {
    font-size: 10px;
  }

  .fusion-row > div {
    font-size: 11px;
    min-height: 34px;
  }

  .fusion-row input,
  .fusion-row select {
    font-size: 11px;
    min-height: 30px;
  }

  .splitter-feed {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .splitter-feed label {
    padding: 8px;
  }

  .distribution-head,
  .distribution-row {
    grid-template-columns: 46px 120px 100px 100px 120px;
    min-width: 520px;
  }

  .distribution-splitter-title {
    min-width: 520px;
  }

  .distribution-row input,
  .distribution-row select {
    font-size: 11px;
    min-height: 30px;
  }

  .passthrough-table {
    min-width: 0;
  }

  .modal-footer {
    background: #fff;
    bottom: -12px;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    padding-top: 10px;
    position: sticky;
  }

  .modal-footer button {
    width: 100%;
  }

  .members-panel {
    max-height: 88dvh;
    width: calc(100vw - 24px);
  }

  .network-diagram-panel {
    border-radius: 16px;
    bottom: 12px;
    left: 8px;
    max-height: calc(100dvh - 76px);
    max-width: calc(100vw - 16px);
    padding: 12px;
    right: 8px;
    top: 64px;
    transform: none;
    width: auto;
  }

  .network-diagram-panel h2 {
    font-size: 20px;
  }

  .diagram-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .network-root-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .torpedo-grid {
    grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
    min-width: 680px;
  }

  .save-row,
  .mini-actions,
  .mini-actions.two,
  .segmented {
    grid-template-columns: 1fr;
  }
}



