/* Home and management icons stay visible; other tab icons follow selection. */
.nav-inner button[data-tab] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-inner button[data-tab="dashboard"] > .nav-home-icon,
.nav-inner #nav-management-toggle > .bi-grid {
  display: inline-block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  font-size: 17px;
  line-height: 1;
}
.nav-inner button[data-tab]::before {
  content: none;
}
.nav-inner button[data-tab].active:not(.nav-home-button)::before {
  content: "";
  display: inline-block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  background-color: currentColor;
  -webkit-mask: var(--nav-tab-icon) center / contain no-repeat;
  mask: var(--nav-tab-icon) center / contain no-repeat;
}
.nav-inner button[data-tab="journal"] {
  --nav-tab-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%204H5a2%202%200%200%200-2%202v14h14V6a2%202%200%200%200-2-2h-3%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%222%22%20width%3D%224%22%20height%3D%224%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22M7%2010h6M7%2014h6M19%209h3v11h-5%22%2F%3E%3C%2Fsvg%3E");
}
.nav-inner button[data-tab="subjects"] {
  --nav-tab-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3%2021v-3a6%206%200%200%201%2012%200v3M16%204a3%203%200%200%201%200%206M18%2013a5%205%200%200%201%203%205v3%22%2F%3E%3C%2Fsvg%3E");
}
.nav-inner button[data-tab="emergency"] {
  --nav-tab-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%205h18v14H3zM9%203h6v2M12%208v8M8%2012h8%22%2F%3E%3C%2Fsvg%3E");
}
.nav-inner button[data-tab="infection"] {
  --nav-tab-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%226%22%2F%3E%3Cpath%20d%3D%22M12%202v4M12%2018v4M2%2012h4M18%2012h4M5%205l3%203M16%2016l3%203M5%2019l3-3M16%208l3-3M10%2010h.01M14%2013h.01%22%2F%3E%3C%2Fsvg%3E");
}
.nav-inner button[data-tab="medicine"] {
  --nav-tab-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m9%204-5%205a6%206%200%200%200%208%208l5-5a6%206%200%200%200-8-8ZM7%207l8%208%22%2F%3E%3C%2Fsvg%3E");
}
.nav-inner button[data-tab="stats"] {
  --nav-tab-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203v18h18M7%2016v-5M12%2016V7M17%2016V4%22%2F%3E%3C%2Fsvg%3E");
}
.nav-inner button[data-tab="trash"] {
  --nav-tab-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18M9%206V3h6v3M5%206l1%2015h12l1-15M10%2010v7M14%2010v7%22%2F%3E%3C%2Fsvg%3E");
}
