html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Powiadomienia i historia powiadomień (globalnie, bo historia to QuickGrid — komórki renderuje komponent siatki).
   Kolory paska rodzaju jak w PSWproj: oferta niebieski, pomiary pomarańczowy, raport końcowy zielony. */
.notif-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
}

.notif-row.notif-selected {
  background-color: #e7f1ff;
}

.notif-check {
  flex: 0 0 auto;
  margin-top: 0.25rem;
}

.notif-bar {
  display: inline-block;
  flex: 0 0 auto;
  align-self: stretch;
  width: 4px;
  min-height: 1.2em;
  border-radius: 2px;
  background-color: gray;
}

.notif-kind-offer {
  background-color: #1565c0;
}

.notif-kind-measurements {
  background-color: #ef6c00;
}

.notif-kind-final {
  background-color: #2e7d32;
}

.notif-body {
  flex: 1 1 auto;
  min-width: 0;
}

.notif-title,
.notif-details,
.notif-reason {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-details,
.notif-reason,
.notif-time {
  font-size: 0.85em;
  color: #696969;
}

.notif-time {
  flex: 0 0 auto;
  white-space: nowrap;
}

.notif-extra {
  margin-left: 0.5rem;
  font-size: 0.85em;
  font-weight: normal;
}

.notif-message {
  white-space: pre-line;
}

.notif-history-grid {
  height: 65vh;
  overflow: auto;
}

.notif-history th,
.notif-history td {
  white-space: nowrap;
}

/* nagłówki kolumn zostają widoczne przy przewijaniu historii (dwie kolumny dat w tym samym formacie) */
.notif-history thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #fff;
}

.notif-history td {
  max-width: 28rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-history .notif-col-bar {
  width: 12px;
  padding-left: 2px;
  padding-right: 2px;
}

.notif-history .notif-bar {
  height: 1.2em;
  vertical-align: middle;
}

@media (max-width: 575.98px) {
  .notif-title,
  .notif-details,
  .notif-reason {
    white-space: normal;
  }
}