/* ----------------------------------------------------------------
   Time-based section headers for the dokumenter page.
   Groups documents under labels: I dag, I går, Denne uge, etc.
   ---------------------------------------------------------------- */

/* ── 2.2 Sticky Group Headers ── */
.dok-time-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg, #f5f5f9);
}

/* Remove top margin on the very first header */
.dok-time-header:first-child {
  margin-top: 0;
}

.dok-time-header__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgb(115, 113, 108);
  white-space: nowrap;
  line-height: 1;
}

.dok-time-header__count {
  font-size: 11px;
  font-weight: 400;
  color: rgb(143, 142, 138);
  white-space: nowrap;
  line-height: 1;
}

.dok-time-header__count::before {
  content: "(";
}

.dok-time-header__count::after {
  content: ")";
}

/* Thin line extending to the right edge */
.dok-time-header__line {
  flex: 1;
  height: 0.5px;
  background: rgba(0, 0, 0, 0.08);
  min-width: 2rem;
}
