/* GeoSV - Panel compacto de etiquetas por capa */
.label-layer-panel {
  position: fixed;
  top: 72px;
  right: 82px;
  width: 228px;
  max-width: calc(100vw - 24px);
  background: rgba(23, 29, 34, 0.97);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.34);
  z-index: 10010;
  overflow: hidden;
  color: #e8edf2;
  font-size: 11px;
  backdrop-filter: blur(7px);
}

.label-layer-panel.hidden { display: none !important; }

.label-layer-header {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  cursor: move;
  user-select: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.label-layer-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 600;
  color: #f2f5f7;
}

.label-layer-title i { color: var(--primary, #18b8ff); font-size: 10px; }

.label-layer-close {
  width: 22px;
  height: 22px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #9aa6af;
  cursor: pointer;
  font-size: 10px;
}

.label-layer-close:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.label-layer-count {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #aeb8c1;
  font-size: 9px;
  font-weight: 600;
}

.label-layer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 6px 7px 5px;
}

.label-layer-actions button {
  height: 23px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 5px;
  background: rgba(255,255,255,0.055);
  color: #d9e0e6;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.label-layer-actions button:hover {
  background: rgba(24,184,255,0.12);
  border-color: rgba(24,184,255,0.35);
  color: #fff;
}

.label-layer-list {
  max-height: 270px;
  overflow-y: auto;
  padding: 0 5px 6px;
  scrollbar-width: thin;
}

.label-layer-row {
  height: 25px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  min-width: 0;
}

.label-layer-row:hover { background: rgba(255,255,255,0.05); }
.label-layer-row input { position: absolute; opacity: 0; pointer-events: none; }

.label-layer-checkmark {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.025);
  position: relative;
}

.label-layer-row input:checked + .label-layer-checkmark {
  background: var(--primary, #18b8ff);
  border-color: var(--primary, #18b8ff);
}

.label-layer-row input:checked + .label-layer-checkmark::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 4px;
  height: 7px;
  border: solid #071017;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.label-layer-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d7dde2;
}

.label-layer-empty {
  padding: 8px;
  text-align: center;
  color: #87939d;
  font-size: 10px;
}

@media (max-width: 620px) {
  .label-layer-panel { right: 12px; top: 64px; width: 210px; }
  .label-layer-list { max-height: 220px; }
}
