@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/material-symbols-outlined.woff2") format("woff2");
}

html:not(.icons-ready) .material-symbols-outlined {
  color: transparent !important;
  /* An icon is exactly 1em wide, so the hidden icon holds the same space and nothing moves when the font arrives. */
  width: 1em;
  max-width: 1em;
  overflow: hidden;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.sidebar-item.active {
  color: #fff !important;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 4px 0 0 0 #39bfff;
}

.bg-municipal-navy { background-color: #01273A; }
.text-municipal-navy { color: #01273A; }
.bg-background { background-color: #f8f9fa; }
.text-on-surface { color: #191c1d; }
.text-on-surface-variant { color: #424750; }
.border-surface-border { border-color: #E5E7EB; }
.bg-surface-container { background-color: #edeeef; }
.bg-surface-container-low { background-color: #f3f4f5; }
.bg-surface-container-lowest { background-color: #ffffff; }
.bg-surface-container-high { background-color: #e7e8e9; }
.text-outline { color: #737781; }
.bg-primary { background-color: #002e59; }
.text-primary { color: #002e59; }
.hover\:bg-primary-container:hover { background-color: #0c447c; }
.bg-primary-container { background-color: #0c447c; }
.bg-secondary { background-color: #1960a6; }
.text-secondary { color: #1960a6; }
.hover\:bg-secondary\/90:hover { background-color: rgba(25, 96, 166, 0.9); }
.text-success-teal { color: #0D9488; }
.bg-success-teal { background-color: #0D9488; }
.bg-success-teal\/10 { background-color: rgba(13, 148, 136, 0.1); }
.text-danger-red { color: #DC2626; }
.bg-danger-red { background-color: #DC2626; }
.bg-danger-red\/5 { background-color: rgba(220, 38, 38, 0.05); }
.bg-danger-red\/10 { background-color: rgba(220, 38, 38, 0.1); }
.border-danger-red { border-color: #DC2626; }
.border-danger-red\/20 { border-color: rgba(220, 38, 38, 0.2); }
.border-danger-red\/30 { border-color: rgba(220, 38, 38, 0.3); }
.hover\:bg-danger-red:hover { background-color: #DC2626; }
.hover\:border-danger-red:hover { border-color: #DC2626; }
.bg-primary\/10 { background-color: rgba(0, 46, 89, 0.1); }
.bg-secondary\/10 { background-color: rgba(25, 96, 166, 0.1); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.hover\:text-white:hover { color: #fff; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }

.check-filter { position: relative; }
.check-filter.is-open { z-index: 40; }
/* The ward map's tiles sit in a high stacking context. Keep this menu above them. */
#tab-ward .check-filter.is-open { z-index: 800; }
.check-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 11.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  background: #fff;
  color: #191c1d;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.check-filter-btn .material-symbols-outlined { font-size: 1.05rem; color: #424750; }
.checkbox-dropdown-panel.hidden { display: none; }
.checkbox-dropdown-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  left: 0;
  min-width: 13.5rem;
  max-height: 16rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  box-shadow: 0 10px 24px rgba(1, 39, 58, 0.14);
  padding: 0.35rem;
}
.checkbox-dropdown-panel label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.35rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #191c1d;
  cursor: pointer;
}
.checkbox-dropdown-panel label:hover { background: #f3f4f5; }
.checkbox-dropdown-panel label:first-child {
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 0.2rem;
}
.checkbox-dropdown-panel input[type="checkbox"] {
  accent-color: #002e59;
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  flex: none;
}
.ann-ward-list {
  max-height: 13rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
}
.ann-ward-list label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #E5E7EB;
  font-size: 0.875rem;
  font-weight: 600;
  color: #191c1d;
  cursor: pointer;
}
.ann-ward-list label:last-child { border-bottom: 0; }
.ann-ward-list label:hover { background: #f3f4f5; }
.ann-ward-list input[type="checkbox"] {
  accent-color: #002e59;
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  flex: none;
}

/* Chart canvases report a large minimum width. Without this, a grid cell
   shrinks to one column and the chart draws outside its card. */
#tab-overview .grid > *,
#tab-voice .grid > *,
#tab-idp .grid > *,
#tab-ward .grid > * {
  min-width: 0;
}
#tab-overview .overview-card-note {
  min-height: 2rem;
}
#tab-overview canvas,
#tab-voice canvas,
#tab-idp canvas,
#tab-demo canvas,
#tab-ward canvas {
  max-width: 100%;
}
