/* Minimal compatibility while the legacy Bootstrap 3 markup is migrated. */
.col-xs-1 { flex: 0 0 auto; width: 8.33333333%; }
.col-xs-2 { flex: 0 0 auto; width: 16.66666667%; }
.col-xs-3 { flex: 0 0 auto; width: 25%; }
.col-xs-4 { flex: 0 0 auto; width: 33.33333333%; }
.col-xs-5 { flex: 0 0 auto; width: 41.66666667%; }
.col-xs-6 { flex: 0 0 auto; width: 50%; }
.col-xs-7 { flex: 0 0 auto; width: 58.33333333%; }
.col-xs-8 { flex: 0 0 auto; width: 66.66666667%; }
.col-xs-9 { flex: 0 0 auto; width: 75%; }
.col-xs-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-xs-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-xs-12 { flex: 0 0 auto; width: 100%; }
.pull-left { float: left !important; }
.pull-right { float: right !important; }
.img-responsive { display: block; max-width: 100%; height: auto; }
.img-circle { border-radius: 50%; }
.hidden { display: none !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.navbar-default {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0;
  background: #1c598d;
  border: 0;
}
.navbar-header { display: flex; flex: 0 0 auto; align-items: center; }
.navbar-brand { display: flex; align-items: center; height: 50px; }
.navbar-brand img { width: auto; }
.navbar-default .navbar-collapse.collapse {
  display: flex !important;
  flex: 1 1 auto;
  width: auto;
  align-items: stretch;
  padding: 0;
}
.navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.navbar-nav > li { display: flex; align-items: stretch; }
.navbar-default .navbar-nav > li > a {
  display: flex;
  align-items: center;
  padding: 15px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #fff;
  background: #3366cc;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #3366cc;
  background: #fff;
}
.navbar-right { margin-left: auto; }
.navbar-toggle { display: none; }
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 4px dashed;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}
.dropdown-menu > li > a {
  display: block;
  padding: 3px 20px;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-decoration: none;
  white-space: nowrap;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus { color: #262626; background: #f5f5f5; }
.list-group-item.active { color: #fff; background: #337ab7; border-color: #337ab7; }
.list-group-item-success { background: #d1e7dd; }
.list-group-item-warning { background: #fff3cd; }
.inline-form { display: inline-block; margin: 0; }
.btn-link.navbar-btn { text-decoration: none; }
.btn-default {
  color: #333;
  background: #fff;
  border: 1px solid #ccc;
}
.btn-default:hover,
.btn-default:focus,
.btn-default:active {
  color: #333;
  background: #e6e6e6;
  border-color: #adadad;
}
.btn-group { display: inline-flex; vertical-align: middle; }
.progress {
  height: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 10%);
}
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.progress-bar-success { background-color: #5cb85c; }
.progress-bar-danger { background-color: #d9534f; }

@media (min-width: 901px) {
  .navbar-default .navbar-nav > li.dropdown { position: relative; }
  .navbar-default .navbar-nav .dropdown-menu {
    position: absolute !important;
    inset: 100% auto auto 0 !important;
    z-index: 1050;
    min-width: 220px;
    max-height: calc(100vh - 55px);
    margin: 0;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgb(0 0 0 / 15%);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
    transform: none !important;
  }
}

.chartw {
  width: 100%;
  max-width: 1050px;
  height: auto;
  min-height: 430px;
  margin-bottom: 50px;
}
.result-pie-card > h3 { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 700; }
.result-pie-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  min-height: 350px;
}
.result-pie-svg { display: block; width: min(100%, 420px); height: auto; overflow: visible; }
.result-pie-slice { stroke: #fff; stroke-width: 1; }
.result-pie-label { fill: #fff; font-size: 18px; font-weight: 700; paint-order: stroke; stroke: rgb(0 0 0 / 25%); stroke-width: 2px; }
.result-pie-empty { fill: #555; font-size: 16px; }
.result-pie-legend { width: min(100%, 360px); margin: 0; padding: 0; list-style: none; }
.result-pie-legend li { display: flex; align-items: flex-start; gap: 0.65rem; margin-bottom: 0.9rem; font-size: 14px; }
.result-pie-swatch { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; border: 1px solid rgb(0 0 0 / 18%); border-radius: 50%; }

.panel { margin-bottom: 20px; background: #fff; border: 1px solid transparent; border-radius: 4px; }
.panel-primary { border-color: #337ab7; }
.panel-primary > .panel-heading { padding: 10px 15px; color: #fff; background: #337ab7; border-color: #337ab7; }
.panel-body { padding: 15px; }
.seat-map { position: relative; width: 100%; max-width: 900px; margin: 0 auto; }
.seat-map > svg { display: block; width: 100%; height: auto; }

@media (max-width: 900px) {
  .navbar-default { flex-wrap: wrap; }
  .navbar-header { justify-content: space-between; width: 100%; }
  .navbar-toggle {
    display: block;
    margin: 8px 12px 8px auto;
    padding: 9px 10px;
    background: transparent;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 4px;
  }
  .navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: #fff;
    border-radius: 1px;
  }
  .navbar-default .navbar-collapse.collapse { display: none !important; }
  .navbar-default .navbar-collapse.collapse.show {
    display: block !important;
    flex: 0 0 100%;
    width: 100%;
  }
  .navbar-nav,
  .navbar-nav > li { display: block; width: 100%; }
  .navbar-default .navbar-nav > li > a { padding: 12px 15px; }
  .navbar-right { margin-left: 0; }
  .dropdown-menu {
    position: static !important;
    width: 100%;
    margin: 0;
    border-radius: 0;
    transform: none !important;
  }
  .result-pie-layout { flex-direction: column; align-items: stretch; }
  .result-pie-svg,
  .result-pie-legend { margin-right: auto; margin-left: auto; }
  .table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .list-group-item h2,
  .list-group-item .font24px {
    font-size: 1rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .incumbent,
  .verified { display: inline-block; top: 0; }
}
