.bottomNav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 1px;
  padding: 7px max(10px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
  border-top: 1px solid rgba(20, 40, 45, .18);
  background: rgba(255,255,255,.96);
  box-shadow: 0 -8px 24px rgba(20, 40, 45, .14);
  backdrop-filter: blur(10px);
}
.bottomNav a, .bottomNav button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  color: #34454a;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.bottomNav a.active { background: #0b5f73; color: #fff; }
.bottomNav i { font-size: 20px; line-height: 1; }
.bottomNav .navIconBtn i { font-size: 21px; }
body { padding-bottom: 76px; }
.appPage { max-width: 1420px; margin: 0 auto; padding: 16px clamp(10px, 3vw, 28px) 36px; }
.appPanel { border: 1px solid #dee2e6; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15,37,43,.12); overflow: hidden; }
.filterStrip { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filterStrip label { display: grid; gap: 5px; color: #63747a; font-weight: 700; }
.filterStrip input { min-height: 38px; border: 1px solid #dee2e6; border-radius: 6px; padding: 7px 9px; }
.appBtn { min-height: 38px; border: 1px solid #0b5f73; border-radius: 6px; background: #0b5f73; color: #fff; padding: 8px 14px; font-weight: 800; cursor: pointer; }
.appBtnLight { background: #fff; color: #0b5f73; }
.inlineCheck {
  display: inline-flex !important;
  align-items: center;
  flex-direction: row;
  gap: 7px !important;
  min-height: 38px;
  margin-left: 2px;
  color: #17282e !important;
  white-space: nowrap;
}
.inlineCheck input {
  width: 18px;
  height: 18px;
  margin: 0;
}
.tableScroll { max-height: calc(100vh - 250px); overflow: auto; }
.reportTable { width: 100%; border-collapse: collapse; }
.reportTable th, .reportTable td { border-bottom: 1px solid #dee2e6; padding: 8px 10px; text-align: left; vertical-align: top; font-size: 13px; }
.reportTable th { position: sticky; top: 0; z-index: 1; background: #f8f9fa; color: #63747a; }
.mapFull { height: calc(100vh - 205px); min-height: 480px; position: relative; overflow: hidden; background: #dce8dc; border: 1px solid #dee2e6; border-radius: 8px; box-shadow: 0 10px 28px rgba(15,37,43,.12); touch-action: pan-y; cursor: grab; }
.mapFull.dragging { cursor: grabbing; }
.blastDot {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #14191b;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(0,0,0,.38);
  cursor: pointer;
}
.blastDot.none { background: #1f9d55; color: #fff; }
.blastDot.size1 { background: #ffd43b; }
.blastDot.size2 { background: #f08c00; color: #fff; }
.blastDot.size3 { background: #d00000; color: #fff; }
.blastDot.size4,
.blastDot.size5 { background: #65000b; color: #fff; }
.blastDot.unknown { background: #8b949e; color: #fff; }
.blastDot.blind { background: #d00000; color: #fff; border-color: #7a0000; font-size: 16px; font-weight: 950; }
.historyPopup {
  position: absolute;
  z-index: 9;
  transform: translate(-50%, -100%);
  width: min(292px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(20, 40, 45, .16);
  border-radius: 8px;
  background: rgba(255,255,255,.98);
  color: #17282e;
  box-shadow: 0 16px 38px rgba(0,0,0,.26);
}
.historyPopup::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid rgba(20, 40, 45, .16);
  border-bottom: 1px solid rgba(20, 40, 45, .16);
  background: rgba(255,255,255,.98);
}
.historyPopupClose {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #edf3f4;
  color: #18363d;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.historyPopupHead {
  display: grid;
  gap: 3px;
  margin-right: 34px;
  margin-bottom: 10px;
}
.historyPopupHead strong {
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.historyPopupHead span {
  color: #60747b;
  font-size: 12px;
  font-weight: 750;
}
.historyPopupGrid {
  display: grid;
  gap: 6px;
  margin: 0;
}
.historyPopupGrid div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 6px 7px;
  border: 1px solid #e4ebee;
  border-radius: 6px;
  background: #fbfcfc;
}
.historyPopupGrid dt {
  color: #60747b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.historyPopupGrid dd {
  margin: 0;
  color: #17282e;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.mapLegend { display: flex; gap: 8px 14px; flex-wrap: wrap; padding: 8px 0; color: #34454a; font-size: 13px; }
.legendDot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.legendDot.none { background: #1f9d55; }
.legendDot.size1 { background: #ffd43b; }
.legendDot.size2 { background: #f08c00; }
.legendDot.size3 { background: #d00000; }
.legendDot.size4 { background: #65000b; }
.legendDot.unknown { background: #8b949e; }
.iconBtn { min-width: 38px; min-height: 34px; border: 1px solid rgba(11,95,115,.25); border-radius: 8px; background: #fff; color: #0b5f73; font-size: 18px; font-weight: 900; cursor: pointer; box-shadow: 0 2px 8px rgba(15,37,43,.08); }
.iconBtn:disabled, .navIconBtn:disabled { opacity: .55; cursor: wait; }
.navIconBtn { font-size: 20px; line-height: 1; }


.compactReport th { display: none; }
.compactReport td { padding: 0; }
.reportItemRow { cursor: pointer; }
.reportItemRow:hover { background: #eef7f8; }
.reportLine { display: grid; gap: 3px; padding: 10px 12px; }
.reportItemRow.reportSize-none { background: #e8f7ee; }
.reportItemRow.reportSize-size1 { background: #fff6c7; }
.reportItemRow.reportSize-size2 { background: #ffe2b8; }
.reportItemRow.reportSize-size3 { background: #ffd2d2; }
.reportItemRow.reportSize-size4,
.reportItemRow.reportSize-size5 { background: #ead0d4; }
.reportItemRow.reportSize-unknown { background: #edf0f2; }
.reportItemRow.reportSize-none:hover { background: #d8f1e3; }
.reportItemRow.reportSize-size1:hover { background: #ffef9a; }
.reportItemRow.reportSize-size2:hover { background: #ffd39a; }
.reportItemRow.reportSize-size3:hover { background: #ffbaba; }
.reportItemRow.reportSize-size4:hover,
.reportItemRow.reportSize-size5:hover { background: #dfbdc3; }
.reportItemRow.reportSize-unknown:hover { background: #dde3e6; }
.reportMain { display: flex; align-items: center; gap: 9px; color: #182f35; font-size: 15px; font-weight: 850; }
.reportMeta { color: #65767b; font-size: 11px; line-height: 1.25; }
.reportBlindSize { color: #d00000; font-weight: 950; }
.detailFieldBlind strong { color: #d00000; font-weight: 950; }
.reportTriggerIcon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #111;
  font-size: 18px;
  line-height: 1;
}
.reportTrigger-heli {
  color: #111;
}
.reportTrigger-hand {
  color: #111;
}
.reportTrigger-orgel {
  color: #111;
}
.reportTrigger-gazex {
  color: #111;
}
.reportTrigger-unknown {
  color: #111;
}
.detailModal[hidden] { display: none; }
.detailModal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; background: rgba(13, 31, 36, .44); }
.detailDialog { width: min(680px, 96vw); max-height: 86vh; overflow: auto; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.28); padding: 18px; position: relative; }
.detailDialog h2 { margin: 0 44px 14px 0; font-size: 20px; color: #18363d; }
.detailClose { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #edf3f4; color: #18363d; font-size: 24px; line-height: 1; cursor: pointer; }
.detailBody { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.detailField { border: 1px solid #e1e8ea; border-radius: 6px; padding: 8px; background: #fbfcfc; }
.detailField span { display: block; color: #6a797e; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.detailField strong { display: block; margin-top: 3px; color: #1f3237; font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.compactCapture .appTopbar > div:first-child { display: none; }
.compactCapture .appTopbar { justify-content: flex-end; padding-top: 8px; padding-bottom: 8px; }
.toast {
  bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  z-index: 140 !important;
}
.bottomNav.navHidden + .toast,
.bottomNav.navHidden ~ .toast {
  bottom: calc(18px + env(safe-area-inset-bottom)) !important;
}

.tileLayer img.contourTile {
  opacity: .42;
  mix-blend-mode: multiply;
}
.tileLayer img.pistesTile {
  opacity: .9;
}
.historyLayerPanel {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 8;
  display: grid;
  gap: 7px;
  min-width: 210px;
  padding: 10px;
  border: 1px solid rgba(20, 40, 45, .16);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.historyLayerPanel label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #21363c;
  font-size: 13px;
  font-weight: 800;
}
.historyLayerPanel select {
  min-height: 32px;
  width: 100%;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  background: #fff;
  color: #17282e;
  padding: 4px 7px;
  font: inherit;
}
.historyLayerPanel input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.blastCalendarWrap[hidden] {
  display: none;
}
.blastCalendar {
  display: block;
  margin: 0 0 12px;
}
.calendarMonth {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15,37,43,.08);
  padding: 10px;
}
.calendarMonthHead {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
}
.calendarMonth h2 {
  margin: 0 0 8px;
  color: #17282e;
  font-size: 15px;
  text-align: center;
}
.calendarMonthHead h2 {
  margin: 0;
}
.calendarNavBtn {
  min-height: 30px;
  border: 1px solid #d7e1e5;
  border-radius: 6px;
  background: #f8fafb;
  color: #0b5f73;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.calendarWeekdays,
.calendarGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.calendarWeekdays span {
  color: #60747b;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}
.calendarDay {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  min-height: 30px;
  color: #273d43;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  padding: 0;
}
.calendarDay > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
}
.calendarDay.outside {
  color: #a6b2b7;
}
.calendarDay.today > span {
  outline: 2px solid #0b5f73;
  outline-offset: 1px;
}
.calendarDay.selected > span {
  background: #0b5f73;
  color: #fff;
}
.calendarDay.blastDay > span {
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 3px 9px rgba(13,110,253,.32);
}
.calendarDay.blastDay.selected > span {
  background: #083fbd;
}
button.calendarDay {
  cursor: pointer;
}
.calendarDay.empty {
  min-height: 30px;
}
.historyStats {
  margin-top: 14px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15,37,43,.12);
  padding: 14px;
}
.historyStats h2 {
  margin: 0 0 10px;
  color: #17282e;
  font-size: 18px;
}
.statsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}
.statCard {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid #e1e8ea;
  border-left: 6px solid #8b949e;
  border-radius: 8px;
  background: #fbfcfc;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
.statCard:hover,
.statCard:focus-visible {
  border-color: #0f6678;
  box-shadow: 0 0 0 3px rgba(15,102,120,.16);
  outline: none;
}
.statCard.active {
  background: #e8f7fb;
  border-color: #0f6678;
  box-shadow: 0 0 0 3px rgba(15,102,120,.2);
}
.statCard span {
  color: #60747b;
  font-size: 12px;
  font-weight: 850;
}
.statCard strong {
  color: #17282e;
  font-size: 26px;
  line-height: 1;
}
.statsGroupTitle {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: #17282e;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.triggerStatsTitle {
  margin-top: 8px;
}
.triggerStatCard {
  min-height: 68px;
}
.triggerStatCard:hover,
.triggerStatCard:focus-visible {
  border-color: #0f6678;
  box-shadow: 0 0 0 3px rgba(15,102,120,.16);
}
.triggerStatCard span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.triggerStatCard i {
  width: 20px;
  height: 20px;
  color: #0b5f73;
}
.statCard.hand { border-left-color: #1f9d55; }
.statCard.heli { border-left-color: #0b7285; }
.statCard.orgel { border-left-color: #364fc7; }
.statCard.other { border-left-color: #8b949e; }
.statCard.none { border-left-color: #1f9d55; }
.statCard.size1 { border-left-color: #ffd43b; }
.statCard.size2 { border-left-color: #f08c00; }
.statCard.size3 { border-left-color: #d00000; }
.statCard.size4,
.statCard.size5 { border-left-color: #65000b; }
.statCard.blind { border-left-color: #d00000; }
.statCard.blind span,
.statCard.blind strong { color: #d00000; }
.statCard.unknown { border-left-color: #8b949e; }
@media (max-width: 768px) {
  .filterStrip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
  }
  .filterStrip label {
    min-width: 0;
  }
  .filterStrip input[type="date"] {
    width: 100%;
    min-width: 0;
  }
  .filterStrip .inlineCheck {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 30px;
    margin: 0;
  }
  .filterStrip .appBtn {
    min-height: 36px;
  }
  .calendarMonth {
    padding: 8px;
  }
  .calendarMonthHead {
    grid-template-columns: 30px 1fr 30px;
  }
  .calendarNavBtn {
    min-height: 28px;
    font-size: 19px;
  }
  .calendarMonth h2 {
    margin-bottom: 6px;
    font-size: 13px;
  }
  .calendarWeekdays,
  .calendarGrid {
    gap: 2px;
  }
  .calendarWeekdays span {
    font-size: 10px;
  }
  .calendarDay {
    min-height: 22px;
    font-size: 10px;
  }
  .calendarDay > span {
    width: 21px;
    height: 21px;
  }
  .calendarDay.empty {
    min-height: 22px;
  }
  .historyLayerPanel {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 34px;
    grid-template-columns: 1fr;
  }
}

/* Bottom nav column fix v101 */
.bottomNav.nav3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bottomNav.nav4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bottomNav a,
.bottomNav button {
  min-width: 0;
  width: 100%;
}
.bottomNav i,
.bottomNav .fa-solid {
  display: inline-block;
  width: 1.35em;
  height: 1.35em;
  flex: 0 0 auto;
}
@media (max-width: 768px) {
  .bottomNav.nav3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bottomNav.nav4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .bottomNav {
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  }
  .bottomNav a,
  .bottomNav button {
    min-height: 48px;
  }
}

/* iPhone Chrome bottom nav fallback v102 */
.bottomNav a,
.bottomNav button {
  flex-direction: column;
  gap: 3px;
  border: 1px solid rgba(11, 95, 115, .18);
  background: #f8fbfc;
  color: #233f46;
}
.bottomNav a.active {
  border-color: #0b5f73;
  background: #0b5f73;
  color: #fff;
}
.bottomNav a::after,
.bottomNav button::after {
  content: attr(aria-label);
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}
.bottomNav .fa-solid::before {
  background: none;
  -webkit-mask: none;
  mask: none;
  color: currentColor;
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  width: auto;
  height: auto;
}
.bottomNav .fa-plus::before { content: "+"; }
.bottomNav .fa-file-lines::before { content: "B"; }
.bottomNav .fa-map-location-dot::before { content: "K"; }
.bottomNav .fa-arrows-rotate::before { content: "R"; }
@media (max-width: 420px) {
  .bottomNav a,
  .bottomNav button {
    min-height: 50px;
    padding: 5px 2px;
  }
  .bottomNav a::after,
  .bottomNav button::after {
    font-size: 9px;
  }
}

/* Einheitlicher dunkler AVADO-Look fuer Karte und Berichte v178 */
body.historyPage {
  --history-green: #034b2b;
  --history-green-dark: #023d22;
  --history-green-mid: #055a32;
  --history-green-soft: #edf6f0;
  background: linear-gradient(180deg, #eaf2ed 0, #f7f9f8 360px);
}

body.historyPage .appTopbar {
  color: #fff;
  border-bottom: 0;
  background: linear-gradient(135deg, #023d24 0%, #055a32 58%, #034b2b 100%);
  box-shadow: 0 8px 22px rgba(2, 52, 29, .28);
  backdrop-filter: none;
}
body.historyPage .appTopbar h1,
body.historyPage .appTopbar p { color: #fff; }
body.historyPage .appTopbar p { opacity: .76; }
body.historyPage .statusBar { gap: 6px 8px; }
body.historyPage .status {
  border: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  padding-inline: 2px;
}
body.historyPage #onlineState::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .14);
}
body.historyPage #onlineState.statusOffline::before { background: #ffb0b0; }
body.historyPage .loginLink {
  border: 1px solid rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .10);
  color: #fff;
}
body.historyPage .loginLink:hover { background: rgba(255, 255, 255, .20); }

body.historyPage .appPage { padding-top: 14px; }
body.historyPage .filterStrip {
  align-items: end;
  gap: 9px;
  padding: 12px;
  border: 1px solid #d8e4dc;
  border-radius: 11px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 19px rgba(3, 75, 43, .10);
}
body.historyPage .filterStrip label { color: #496057; }
body.historyPage .filterStrip input[type="date"] {
  min-height: 42px;
  border-color: #d3dfd7;
  border-radius: 8px;
  background: #fff;
  color: #17251e;
  font-weight: 700;
}
body.historyPage .inlineCheck {
  min-height: 42px;
  padding: 7px 11px;
  border: 1px solid #d3dfd7;
  border-radius: 8px;
  background: #f8fbf9;
  color: #173b29 !important;
}
body.historyPage .inlineCheck input { accent-color: var(--history-green); }
body.historyPage .appBtn {
  min-height: 42px;
  border-color: var(--history-green);
  border-radius: 8px;
  background: linear-gradient(135deg, #065f35, #034526);
  box-shadow: 0 4px 11px rgba(3, 75, 43, .18);
}
body.historyPage .appBtn:hover { background: var(--history-green-dark); }
body.historyPage .appBtnLight {
  border-color: #aac4b4;
  background: #fff;
  color: var(--history-green);
  box-shadow: none;
}
body.historyPage .appBtnLight:hover { background: var(--history-green-soft); }

body.historyPage .appPanel,
body.historyPage .mapFull,
body.historyPage .historyStats,
body.historyPage .calendarMonth {
  border-color: #d8e4dc;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(3, 75, 43, .11);
}
body.historyPage .reportTable th { background: #edf6f0; color: #365446; }
body.historyPage .reportItemRow:hover { background: #edf6f0; }
body.historyPage .calendarNavBtn {
  border-color: #c7d9cd;
  border-radius: 8px;
  background: #edf6f0;
  color: var(--history-green);
}
body.historyPage .calendarDay.today > span { outline-color: var(--history-green); }
body.historyPage .calendarDay.selected > span,
body.historyPage .calendarDay.blastDay > span {
  background: var(--history-green);
  box-shadow: 0 3px 9px rgba(3, 75, 43, .28);
}
body.historyPage .calendarDay.blastDay.selected > span { background: var(--history-green-dark); }
body.historyPage .mapControls button {
  border-color: #d3dfd7;
  border-radius: 8px;
  color: var(--history-green);
  box-shadow: 0 4px 12px rgba(3, 75, 43, .16);
}
body.historyPage .historyPopup,
body.historyPage .historyLayerPanel { border-color: #ceddd3; border-radius: 10px; }
body.historyPage .statCard { border-radius: 9px; }
body.historyPage .statCard:hover,
body.historyPage .statCard:focus-visible,
body.historyPage .statCard.active {
  border-color: var(--history-green);
  box-shadow: 0 0 0 3px rgba(3, 75, 43, .15);
}
body.historyPage .statCard.active { background: #e4f2e9; }
body.historyPage .triggerStatCard i { color: var(--history-green); }
body.historyPage .detailDialog { border-radius: 12px; }
body.historyPage .detailDialog h2 { color: var(--history-green-dark); }
body.historyPage .detailClose { background: #e7f1ea; color: var(--history-green); }
body.historyPage .toast { background: #123c28; }

body.historyPage .bottomNav {
  z-index: 1200;
  gap: 4px;
  border-top-color: #d8e4dc;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -8px 24px rgba(3, 75, 43, .13);
}
body.historyPage .bottomNav a,
body.historyPage .bottomNav button {
  border-color: transparent;
  border-radius: 9px;
  background: transparent;
  color: #17251e;
}
body.historyPage .bottomNav a.active {
  border-color: var(--history-green);
  background: linear-gradient(145deg, #065f35, #034526);
  color: #fff;
  box-shadow: 0 5px 13px rgba(3, 75, 43, .28);
}
body.historyPage .bottomNav .fa-solid::before {
  content: "";
  display: block;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--fa-mask) center / contain no-repeat;
  mask: var(--fa-mask) center / contain no-repeat;
  font-family: inherit;
}

@media (max-width: 768px) {
  body.historyPage .appTopbar {
    padding: 10px;
    align-items: flex-start;
  }
  body.historyPage .appTopbar h1 { font-size: 16px; }
  body.historyPage .appTopbar p { font-size: 11px; }
  body.historyPage .statusBar { max-width: 68%; }
  body.historyPage .status { min-height: 24px; font-size: 10px; }
  body.historyPage .loginLink { min-height: 27px; padding: 3px 9px; font-size: 10px; }
  body.historyPage .appPage { padding: 10px 8px 30px; }
  body.historyPage .filterStrip { gap: 8px; padding: 9px; }
  body.historyPage .filterStrip .inlineCheck { width: 100%; }
  body.historyPage .bottomNav { padding-inline: 6px; }
}

@supports not ((-webkit-mask: url("") center / contain no-repeat) or (mask: url("") center / contain no-repeat)) {
  body.historyPage .bottomNav .fa-solid::before {
    background: none;
    width: auto;
    height: auto;
    font-family: Arial, sans-serif;
    font-weight: 900;
  }
  body.historyPage .bottomNav .fa-plus::before { content: "+"; }
  body.historyPage .bottomNav .fa-table::before { content: "▦"; }
  body.historyPage .bottomNav .fa-map-location::before { content: "M"; }
}

/* Kompakte Berichte-Kopfzeile, Filter und Statuskarten v179 */
body.historyPage .reportsTopbar { min-height: 76px; }
body.historyPage .reportsTopbar .statusBar { flex-wrap: nowrap; }
body.historyPage .reportsUserMenu { position: relative; z-index: 30; }
body.historyPage .reportsUserMenu summary,
body.historyPage .reportsHeaderBtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, .11);
  color: #fff;
  list-style: none;
  cursor: pointer;
}
body.historyPage .reportsUserMenu summary::-webkit-details-marker { display: none; }
body.historyPage .reportsUserMenu summary::marker { content: ""; }
body.historyPage .reportsUserMenu summary:hover,
body.historyPage .reportsHeaderBtn:hover { background: rgba(255, 255, 255, .20); }
body.historyPage .reportsUserMenu summary:focus-visible,
body.historyPage .reportsHeaderBtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body.historyPage .reportsUserMenu summary i,
body.historyPage .reportsHeaderBtn i { font-size: 20px; }
body.historyPage .reportsUserMenuPanel,
body.historyPage .reportsUserMenu .userMenuPanel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 7px;
  width: max-content;
  min-width: 174px;
  padding: 9px;
  border: 1px solid #cddbd2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(2, 52, 29, .28);
}
body.historyPage .reportsUserMenu .userMenuPanel .loginLink {
  justify-content: center;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #034b2b;
  color: #fff;
}
body.historyPage .reportsUserMenu .sessionExpiry { color: #54685e; text-align: center; }

body.historyPage .reportsFilter {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) minmax(145px, 1fr) auto auto auto;
  align-items: end;
}
body.historyPage .reportsFilter .myBlastsToggle {
  position: relative;
  justify-content: center;
  gap: 7px !important;
  cursor: pointer;
  user-select: none;
}
body.historyPage .reportsFilter .myBlastsToggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
body.historyPage .reportsFilter .myBlastsToggle i { color: #607168; }
body.historyPage .reportsFilter .myBlastsToggle:has(input:checked) {
  border-color: #68a77d;
  background: #e4f2e9;
  color: #034b2b !important;
  box-shadow: inset 0 0 0 1px rgba(3, 75, 43, .08);
}
body.historyPage .reportsFilter .myBlastsToggle:has(input:checked) i { color: #034b2b; }
body.historyPage .reportsFilter .appBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

body.historyPage .reportStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 11px;
}
body.historyPage .reportStatCard {
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 0;
  min-height: 96px;
  padding: 9px 5px 8px;
  border: 1px solid #e1e8e3;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 37, 43, .09);
  text-align: center;
}
body.historyPage .reportStatCard i { margin-bottom: 4px; font-size: 22px; }
body.historyPage .reportStatCard strong { color: #17251e; font-size: 20px; line-height: 1.05; }
body.historyPage .reportStatCard span {
  margin-top: 5px;
  color: #31473c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}
body.historyPage .reportStatAll i { color: #1765a8; }
body.historyPage .reportStatSuccess i { color: #078247; }
body.historyPage .reportStatPending i { color: #ee9300; }
body.historyPage .reportStatCancelled i { color: #cc2d2d; }

@media (max-width: 768px) {
  body.historyPage .reportsTopbar { min-height: 88px; align-items: center; }
  body.historyPage .reportsTopbar .statusBar { max-width: none; }
  body.historyPage .reportsTopbar #loginStatus {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.historyPage .reportsFilter {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px;
  }
  body.historyPage .reportsFilter > label:not(.myBlastsToggle) { min-width: 0; }
  body.historyPage .reportsFilter .filterActionBtn { width: 46px; padding-inline: 0; }
  body.historyPage .reportsFilter .filterActionBtn span { display: none; }
  body.historyPage .reportsFilter .myBlastsToggle { grid-column: 1 / 2; width: 100%; }
  body.historyPage .reportsFilter .calendarToggleBtn { grid-column: 2 / 4; width: 100%; }
  body.historyPage .reportStatCard { min-height: 90px; }
  body.historyPage .reportStatCard span { font-size: 10px; }
}

@media (max-width: 390px) {
  body.historyPage .reportsTopbar #loginStatus { display: none; }
  body.historyPage .reportStats { gap: 4px; }
  body.historyPage .reportStatCard { min-height: 84px; padding-inline: 2px; }
  body.historyPage .reportStatCard i { font-size: 20px; }
  body.historyPage .reportStatCard strong { font-size: 18px; }
  body.historyPage .reportStatCard span { font-size: 9px; }
}

/* Tagesansicht ohne Datumsfelder und rechtsbuendige Kopfaktionen v180 */
body.historyPage .headerLoginStatus,
body.historyPage .visuallyHiddenSummary { display: none !important; }
body.historyPage .compactDateFilter {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}
body.historyPage .compactDateFilter .myBlastsToggle,
body.historyPage .compactDateFilter .calendarToggleBtn {
  grid-column: auto;
  width: 100%;
  margin: 0;
}

@media (max-width: 768px) {
  body.historyPage .reportsTopbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 9px 10px 10px;
  }
  body.historyPage .reportsTopbar > div:first-child {
    display: block;
    width: 100%;
    text-align: center;
  }
  body.historyPage .reportsTopbar .statusBar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 40px 40px;
    gap: 8px;
    width: 100%;
    max-width: none;
    align-items: center;
  }
  body.historyPage .reportsTopbar #onlineState {
    grid-column: 1;
    justify-self: start;
  }
  body.historyPage .reportsTopbar .reportsUserMenu {
    grid-column: 3;
    justify-self: end;
  }
  body.historyPage .reportsTopbar .reportsHeaderBtn {
    grid-column: 4;
    justify-self: end;
  }
  body.historyPage .reportsUserMenu .userMenuPanel { right: 0; }
  body.historyPage .compactDateFilter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body.historyPage .compactDateFilter .myBlastsToggle {
    grid-column: 1;
  }
  body.historyPage .compactDateFilter .calendarToggleBtn {
    grid-column: 2;
  }
}

/* My-Blasts-Warnfarbe und kompakter Kalendertext v181 */
body.historyPage .reportsFilter .myBlastsToggle:has(input:checked) {
  border-color: #d99a00;
  background: linear-gradient(135deg, #ffc107, #e5a900);
  color: #352600 !important;
  box-shadow: 0 4px 11px rgba(217, 154, 0, .28);
}
body.historyPage .reportsFilter .myBlastsToggle:has(input:checked) i {
  color: #352600;
}
body.historyPage .compactDateFilter .calendarToggleBtn span {
  white-space: nowrap;
}
