/* Layout */
body {
  overflow-x: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  height: calc(100vh - 52px);
  overflow-y: auto;
  background: #f8f9fa;
}

.pdf-iframe {
  width: 100%;
  flex: 1;
  border: none;
  min-height: calc(100vh - 52px);
}

/* JSON output */
.json-output {
  background: #1e1e1e;
  color: #d4d4d4;
  font-size: 0.78rem;
  padding: 1rem;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

/* Unsaved changes indicator on textarea */
textarea.unsaved {
  border-color: #ffc107;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Header table key column */
#header-table td:first-child {
  font-weight: 500;
  color: #495057;
  white-space: nowrap;
  width: 40%;
}

/* Details table */
#details-table {
  font-size: 0.8rem;
}

/* Results panel scrollable area */
#tab-table {
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

/* ETA sub-table */
.eta-sub-table {
  font-size: 0.75rem;
  margin: 0;
}

.eta-sub-table td,
.eta-sub-table th {
  padding: 2px 6px;
}
