html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

.header {
  height: 40px;
  background-color: var(--main-bg-color);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.header-buttons {
  display: flex;
  gap: 1px;
}

.icon-button {
  background-color: white;
  font-size: 1.1em;
  cursor: pointer;
  padding: 5px 10px;
  margin: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 36px;
}

.icon-button:hover {
  background-color: lightgray;
}

.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.resizable-panel {
  padding: 0;
  border: 1px solid black;
  background-color: var(--panel-bg-color);
  overflow-y: auto;
  box-sizing: border-box;
}

#idTitle {
  text-align: center;
  min-width: 104px;
}

#table-container {
  flex-grow: 1;
  min-height: 50px;
  border-bottom: none;
}

#text-output-container {
  flex-grow: 0;
  min-height: 50px;
  display: flex;
  flex-direction: column;
}

#text-output-container h2 {
  margin-top: 0;
  color: var(--main-bg-color);
}

.output-textarea {
  flex-grow: 1;
  width: calc(100% - 20px);
  resize: none;
  border: 1px solid black;
  padding: 5px;
  font-family: monospace;
  white-space: pre;
  overflow-y: auto;
  background-color: #FFFFFF;
}

.resizer {
  height: 5px;
  background-color: var(--main-bg-color);
  cursor: ns-resize;
  flex-shrink: 0;
}

.footer {
  height: 40px;
  background-color: var(--main-bg-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 6px;
}

/* Overlay Styling */
.overlay {
  position: fixed;
  /* Fixiert auf dem Viewport */
  top: 0;
  left: 0;
  width: 100vw;
  /* Volle Viewport-Breite */
  height: 100vh;
  /* Volle Viewport-Höhe */
  background-color: rgba(0, 0, 0, 0.5);
  /* Schwarz mit 50% Transparenz */
  display: flex;
  /* Für zentrierte Inhalte */
  justify-content: center;
  /* Horizontal zentrieren */
  align-items: center;
  /* Vertikal zentrieren */
  z-index: 1000;
  /* Sicherstellen, dass es über allem anderen liegt */
  visibility: hidden;
  /* Standardmäßig ausgeblendet */
  opacity: 0;
  /* Für sanfte Einblendung */
  transition: opacity 0.3s ease;
  /* Übergang für Opazität */
}

.overlay.active {
  visibility: visible;
  opacity: 1;
}

.status-box {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 300px;
  /* Feste Breite des Status-Containers */
  box-sizing: border-box;
}

.status-box h2 {
  margin-top: 0;
  color: #333;
}

.progress-bar-container {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 5px;
  height: 25px;
  margin-top: 20px;
  overflow: hidden;
  /* Wichtig für den Balkenrand */
}

.progress-bar {
  height: 100%;
  width: 0%;
  /* Start bei 0% */
  background-color: #28a745;
  /* Grüne Farbe */
  border-radius: 5px;
  text-align: center;
  line-height: 25px;
  /* Text vertikal zentrieren */
  color: white;
  font-weight: bold;
  transition: width 0.1s linear;
  /* Für sanften Fortschritt */
}

.prevent-select {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

td {
  font-size: 12px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* height: 14px; */
}

.divTabHeader {
  height: var(--heightTabHeader);
  overflow-y: hidden;
  overflow-x: hidden;
}

.divTabData {
  height: calc(var(--heightTabData) - var(--heightHeader) - var(--heightTabHeader));
  overflow-y: scroll;
  overflow-x: auto;
}
x {
  /* X-Ref Level separator */
  color: red!important;
  font-weight: bold;
}
y {
  /* X-Ref header */
  color: rgb(43, 148, 16)!important;
}
z { 
  /* X-Ref item name */
  color: rgb(4, 78, 163)!important;
}