.spec-required-error {
  border-color: #d00 !important;
  background: #fee;
}

.spec-filter-bar {
  margin: 4px 0 8px;
}

.spec-filter-input {
  min-width: 220px;
  padding: 4px 6px;
}

.contextual.spec-sticky {
  position: sticky;
  top: 10px;
  z-index: 20;
}

.spec-sortable {
  position: relative;
}

.spec-sortable .spec-sort-indicator {
  margin-left: 4px;
  font-size: 11px;
  color: #888;
}

.spec-column-resize {
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 100%;
  cursor: col-resize;
}

.list th {
  position: relative;
  border-right: 1px solid #ccc;
}

.list td {
  border-right: 1px solid #eee;
}

.spec-tree-wrap {
  margin: 8px 0 12px;
  padding: 6px 8px;
  border: 1px solid #ddd;
  background: #fafafa;
  max-width: 1200px;
}

.spec-tree-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.spec-tree-ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.spec-tree-ul li {
  margin: 2px 0;
  line-height: 1.3em;
  position: relative;
  padding-left: 28px;
}

.spec-tree-toggle {
  cursor: pointer;
  display: inline-block;
  width: 14px;
  text-align: center;
  color: #555;
  margin-right: 4px;
}

.spec-tree-label {
  cursor: pointer;
}

/* Diagramm-Linien für Baum */
.spec-tree-ul li::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0.9em;
  width: 16px;
  height: 1px;
  border-top: 1px solid #c0c0c0;
}

.spec-tree-ul li::after {
  content: '';
  position: absolute;
  left: 10px;
  top: -0.4em;
  width: 1px;
  height: 1.6em;
  border-left: 1px solid #c0c0c0;
}

.spec-tree-ul > li::after {
  top: 0.4em;
}

.spec-tree-ul li:last-child::after {
  height: 0.8em;
}

.spec-tree-node {
  padding: 4px 6px;
  border-radius: 4px;
  background: #eef4fb;
  border: 1px solid #c7d8f1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.spec-tree-node .spec-tree-id {
  font-size: 11px;
  color: #666;
}

.spec-tree-node .spec-tree-key {
  font-size: 11px;
  color: #444;
}

.spec-tree-node .spec-tree-label {
  font-weight: 600;
}

.spec-tip-bubble {
  position: absolute;
  z-index: 9999;
  max-width: 320px;
  padding: 6px 8px;
  background: #1f1f1f;
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  line-height: 1.4;
}

/* Better contrast for tips/required markers */
.info-tip {
  color: #555;
}

.required {
  color: #b00000;
}

.spec-desc-block { width: 100%; }
.spec-desc-tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.spec-desc-tabs .tab-btn {
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
}
.spec-desc-tabs .tab-btn.active {
  background: #e6eef5;
  border-color: #9db7d6;
}
.spec-desc-panel { width: 100%; }
.spec-desc-preview { min-height: 160px; border: 1px solid #ddd; padding: 8px; background: #fafafa; }

.spec-tree-node-link {
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.spec-tree-node-link:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.spec-tree-highlight {
  background: #fff8d6 !important;
}
