/* Header */

.report-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease, left 0.3s ease, width 0.3s ease;
  left: 0;
  width: 100%;
}

.report-header.scrolled {
  box-shadow: 0 2px 8px rgba(22, 46, 89, 0.1);
}

.header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  top: 6px;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  /*pointer-events: none;*/
}

.header-title-database[title], .header-title-name[title] {
  pointer-events: auto;
  cursor: help;
}

.report-header.show-title .header-title {
  opacity: 1;
}

.header-title-database {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--colorSundK-primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-title-separator {
  color: #ccc;
  font-weight: 300;
}

.header-title-name {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--colorSundK-primary-blue);
  opacity: 0.85;
}

.header-title-date {
  font-size: 0.75rem;
  color: #888;
  padding-left: 0.5rem;
  border-left: 1px solid #ddd;
  margin-left: 0.25rem;
}

/* Skjul dato på små skærme */

@media (max-width: 768px) {
  .header-title-date {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-title-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.header-container {
  position: relative;
  display: flex;
}

.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  height: 40px;
  width: auto;
}

.header-actions {
  display: flex;
  position: fixed;
  gap: 0.5rem;
  right: 1.5rem;
  top: 0.75rem;
  z-index: 1001;
}

.header-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 20%;
  background: white;
  color: var(--colorSundK-primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(22, 46, 89, 0.3);
}

.header-btn:hover {
  background: var(--colorSundK-light-blue-60);
  color: var(--colorSundK-primary-blue);
  box-shadow: 0 4px 12px rgba(22, 46, 89, 0.4);
  transform: translateY(-2px);
}

.header-btn i {
  font-size: 1.25rem;
}

