
.right_col_2024_election_widget.mobile #election_dash {
  margin-top: 20px;
}

#election_dash {
    border: 1px solid #000;
    margin-bottom: 20px;
}
.election_dash {
  margin-bottom: 0px;
  overflow: hidden;
}
.election_dash * {
  box-sizing: border-box;
}
.election_dash > .header {
  color: #fff;
  background: #cd0000;
  padding: 12px 15px 8px;
  font-weight: bold;
  font-size: 14.4px;
  text-align: left;
}
.election_dash > .header.sub_header {
  padding: 3px 15px 3px;
}
/*.election_dash > .header.center_header {
  text-align: center;
}*/
  .election_dash > .header .small {
    font-size: 11.6667px;
    /*font-size: 10.5px;
    font-size: 11.08px;*/
    padding-bottom: 3px;
    padding-top: 3px;
  }
  .election_dash > .header a {
    color: inherit;
  }
.election_dash table.main {
  width: 100%;
  font-size: 11.5px;
  border-spacing: 0;
  border-collapse: separate;
  font-size: 10.5px;
}
.election_dash table.main.top {
  
}
  .election_dash table.main th {
    color: white;
    background: black;
    padding: 3px 0;
    border-left: 1px solid #666;
    width: calc(100% / 3);
    text-align: center;
  }
  .election_dash table.main th:first-child {
    border-left: none;
  }
    .election_dash table.main th a {
      color: inherit;
    }
  .election_dash table.main td {
    word-break: break-all;
    width: auto;
    padding: 2px 0 1px;
    text-align: center;
    position: relative;
    border-left: 1px solid #000;
  }

      .election_dash table.main td span.left {
        position: absolute;
        left:4px;
        top:2px;
      }
      .election_dash table.main td span.right {
        position: absolute;
        right:4px;
        top:2px;
      }
  .election_dash table.main tr:nth-child(2n) td {
    background: #f5f5f5;
  }
  .election_dash table.main tr td:first-child {
    border-left: none;
  }
.election_dash .sections {
  overflow: hidden;
  font-size: 10.5px;
  width: calc(100% + 1px);
}
  .election_dash .sections > .section {
    float: left;
    width: calc(100% / 3);
  }
  .election_dash.election_dash_bo > .sections > .section:nth-child(1) {
    width:50%;
  }
  .election_dash.election_dash_bo > .sections > .section:nth-child(2) {
    width:50%;
  }
   .election_dash .sections > .section:last-child:not(.two-col) {
      
    }
  .election_dash .sections > .two-col {
    width: calc(100% / 2);
  }
    .election_dash .sections > .section > table {
      width: 100%;
      font-size: 10.5px;
      border-spacing: 0;
      border-collapse: separate;
    }
      .election_dash .sections > .section > table th {
        color: white;
        background: black;
        padding: 3px 0;
        border-left: 1px solid #666;
      }
        .election_dash .sections > .section > table th a {
          color: inherit;
        }
      .election_dash .sections > .section:first-child > table th {
        border-left: none;
      }
      .election_dash .sections > .section > table td {
        word-break: break-all;
        width: auto;
        padding: 2px 0 1px;
      }
      .election_dash .sections > .section > table tr:nth-child(2n) td {
        background: #f5f5f5;
      }
      .election_dash .sections > .section > table td:first-child {
        border-left: 1px solid #000;
      }
      .election_dash .sections > .section:first-child > table td:first-child {
        border-left: 1px solid #f1f1f1;
      }
      
      .election_dash .sections > .section:last-child > table td:last-child {
        border-right: 1px solid #f1f1f1;
      }
      .election_dash .sections > .section > table td.name {
        width: calc(100% - 44px);
        padding-left: 4px;
      }
      .election_dash .sections > .section > table td.score {
        width: 32px;
        text-align: right;
        padding-right: 4px;
      }
      .election_dash .sections > .section > table td.arrow {
        width: 11px;
      }
      .election_dash .sections > .section > table tr.spread td {
        border-top: 1px dotted #666;
        font-weight: bold;
      }
      .election_dash .sections > .section > table tr.spread td.full_spread {
        text-align: right;
        padding-right: 4px;
      }
      .election_dash .section_two_col {
        border-left: 1px solid #f1f1f1;
        border-right: 1px solid #f1f1f1;
    }
.election_dash > .footer {
  padding: 3px 0 3px;
  font-size: 10.5px;
  line-height: 1.2;
  text-align: center;
  background: #f1f1f1;
}
.election_dash tr.no_data a:visited, 
.election_dash tr.no_data a {
  color: lightgrey;
}
.election_dash table.main.top tr.bo_title_section th,
.election_dash .sections .section table tr.bo_title_section th {
    background-color: darkgrey;
}
.election_dash table.main.top .bo_title_section a,
.election_dash .sections .section table tr.bo_title_section th a {
  color: #000;
}
.election_dash.election_dash_bo {
    border-bottom: 1px solid #f1f1f1;
}
.election_dash .no_left_border tr td {
  border-left: none !important;
}
/* .election_dash td.name.long_name {
  font-size: 10px;
} */
.election_dash .sections > .section > table td.score {
  width: 27px; /* Fix long name Ramaswamy from wrapping */
}
/************New RC Polls Styles**********/
.election_dash > .header {
  background: rgb(255, 222, 137);
  color: rgb(30, 3, 58);
}
.election_dash .sections > .section > table th {
  background: rgb(30, 3, 58);
}
.election_dash table.main th {
  background: rgb(30, 3, 58);
}
.election_dash .section a {
    color: #d30015;
}
.election_dash .sections > .section .empty_space td a{
  display: inline-block;
}
.election_dash .sections > .section.double_col {
  width: calc(100%/1.5); /* 2/3 thirds */
}
/************New RC Polls Styles - End **********/

/************New Post Primary design -  Start ***********/ 
.election_dash .sections > .section.row_style {
  width: 100%;
}
.election_dash .sections > .section.row_style > table th {
  height: 27px;
  height: 23px;
  
}

.election_dash .sections > .section.row_style > table th,
.election_dash .sections > .section.row_style > table td {
text-align: center;
}
.election_dash .sections > .section.row_style > table th:first-child,
.election_dash .sections > .section.row_style > table td:first-child {
text-align: left;
padding-left: 5px;
}
.election_dash .sections > .section.row_style > table td:first-child {
padding-left: 6px;
}

.election_dash .sections > .section.row_style > table th:first-child {
  /* width: 113px; */
  width: 130px;
}
@media screen and (min-width: 375px) and (max-width: 650px) {
  .election_dash .sections > .section.row_style > table th:first-child {
    width: 145px;
  }
  
}
.election_dash .sections > .section.row_style > table th:last-child {
  width: 64px;
}
/************New Post Primary design -  End   ***********/

/************New Post Primary design #2 and Footer - Start   ***********/

.election_dash .sections > .section.row_style > table th:last-child {
  width: 73px;
}
/* .election_dash .sections > .section:last-child > table td:last-child {
  display: flex;
} */
.election_dash .sections .arrow_wrap {
  float: right;
  /* padding-left: 2px; */
  padding-right: 4px;
}
.right_col_2024_election_widget .footer {
  font-size: 11.5px;
  font-size: 11px;
  text-align: center;
  background: #e5e5e5;
  padding: 2px 0 4px;
}

 /*=======================================*/
 .right_col_2024_election_widget table ul.battlegrounds_switcher {
  display: inline-block;
  margin: 0;
  padding: 0 0 0 3px;
}
.right_col_2024_election_widget table ul.battlegrounds_switcher li:not(.active) {
  cursor: pointer;
}

.right_col_2024_election_widget table ul.battlegrounds_switcher li {
  display: inline-block;
}
/*=======================================*/
.right_col_2024_election_widget .header ul.nav {
  display: flex;
  justify-content: space-evenly;
  padding: 0 0 3px;
  margin: 0;
  margin-top: 3px;
}
.right_col_2024_election_widget .header ul.nav > li.active {
  color: #fff;
  /* background: rgba(68, 68, 68, 1);
  background: -moz-linear-gradient(top, rgba(68, 68, 68, 1) 0%, rgba(102, 102, 102, 1) 53%, rgba(102, 102, 102, 1) 100%);
  background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(68, 68, 68, 1)), color-stop(53%, rgba(102, 102, 102, 1)), color-stop(100%, rgba(102, 102, 102, 1)));
  background: -webkit-linear-gradient(top, rgba(68, 68, 68, 1) 0%, rgba(102, 102, 102, 1) 53%, rgba(102, 102, 102, 1) 100%);
  background: -o-linear-gradient(top, rgba(68, 68, 68, 1) 0%, rgba(102, 102, 102, 1) 53%, rgba(102, 102, 102, 1) 100%);
  background: -ms-linear-gradient(top, rgba(68, 68, 68, 1) 0%, rgba(102, 102, 102, 1) 53%, rgba(102, 102, 102, 1) 100%);
  background: linear-gradient(to bottom, rgba(68, 68, 68, 1) 0%, rgba(102, 102, 102, 1) 53%, rgba(102, 102, 102, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#444444", endColorstr="#666666", GradientType=0 ); */
  /* background: rgb(30, 3, 58); */
  background-image: linear-gradient(rgb(30, 3, 58), #310561);

  /* 
  background: hsla(269, 90%, 12%, 1);
  background: linear-gradient(180deg, hsla(269, 90%, 12%, 1) 81%, rgb(82, 35, 100));
  background: -moz-linear-gradient(180deg, hsla(269, 90%, 12%, 1) 81%, hsla(283, 33%, 46%, 1) 100%);
  background: -webkit-linear-gradient(180deg, hsla(269, 90%, 12%, 1) 81%, hsla(283, 33%, 46%, 1) 100%);
  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#1E033A", endColorstr="#874F9E", GradientType=1 ); */
}
.right_col_2024_election_widget .header ul.nav > li {
  width: calc((100% / 3) - 4px);
  text-align: center;
  padding: 4px 0;
  cursor: pointer;
  font-size: 14px;
  background: #e5e5e5;
  list-style: none;
  border-radius: 2px;
}
.election_dash > .header {
  padding-bottom: 1px;
}
/*======================================*/

/************New Post Primary design #2 and Footer - End   ***********/

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .election_dash .sections > .section > table td.arrow {
    width: 10px;
  }
  
}

/*****************************************************************************************/
/*****************************************************************************************/
/*******************************Tabs******************************************************/
/*****************************************************************************************/
/*****************************************************************************************/

.election_dash .sections > .section.row_style > table th:last-child {
    width: 70px;
}
.election_dash .sections > .section.row_style > table th:nth-child(2) {
  width: 60px;
}

/* .election_dash .sections > .section:last-child > table td:last-child {
    display: flex;
} */
.election_dash .sections .arrow_wrap {
    float: right;
    /* padding-left: 2px; */
    padding-right: 4px;
}

/*
Duplicate
.right_col_2024_election_widget .footer {
    font-size: 11.5px;
    text-align: center;
    background: #e5e5e5;
    padding: 2px 0 4px;
}
*/
/*=======================================*/
.right_col_2024_election_widget table ul.battlegrounds_switcher {
    display: inline-block;
    margin: 0;
    padding: 0 0 0 3px;
}

.right_col_2024_election_widget table ul.battlegrounds_switcher li:not(.active) {
    cursor: pointer;
}

.right_col_2024_election_widget table ul.battlegrounds_switcher li {
    display: inline-block;
}

/*=======================================*/
.right_col_2024_election_widget .header ul.nav {
    display: flex;
    justify-content: space-evenly;
    padding: 0 0 3px;
    margin: 0;
    margin-top: 3px;
}

.right_col_2024_election_widget .header ul.nav>li.active {
    color: #fff;
    /* background: rgba(68, 68, 68, 1);
    background: -moz-linear-gradient(top, rgba(68, 68, 68, 1) 0%, rgba(102, 102, 102, 1) 53%, rgba(102, 102, 102, 1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(68, 68, 68, 1)), color-stop(53%, rgba(102, 102, 102, 1)), color-stop(100%, rgba(102, 102, 102, 1)));
    background: -webkit-linear-gradient(top, rgba(68, 68, 68, 1) 0%, rgba(102, 102, 102, 1) 53%, rgba(102, 102, 102, 1) 100%);
    background: -o-linear-gradient(top, rgba(68, 68, 68, 1) 0%, rgba(102, 102, 102, 1) 53%, rgba(102, 102, 102, 1) 100%);
    background: -ms-linear-gradient(top, rgba(68, 68, 68, 1) 0%, rgba(102, 102, 102, 1) 53%, rgba(102, 102, 102, 1) 100%);
    background: linear-gradient(to bottom, rgba(68, 68, 68, 1) 0%, rgba(102, 102, 102, 1) 53%, rgba(102, 102, 102, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#444444", endColorstr="#666666", GradientType=0 ); */
    /* background: rgb(30, 3, 58); */
    background-image: linear-gradient(rgb(30, 3, 58), #310561);

    /* 
    background: hsla(269, 90%, 12%, 1);
    background: linear-gradient(180deg, hsla(269, 90%, 12%, 1) 81%, rgb(82, 35, 100));
    background: -moz-linear-gradient(180deg, hsla(269, 90%, 12%, 1) 81%, hsla(283, 33%, 46%, 1) 100%);
    background: -webkit-linear-gradient(180deg, hsla(269, 90%, 12%, 1) 81%, hsla(283, 33%, 46%, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#1E033A", endColorstr="#874F9E", GradientType=1 ); */
}

.right_col_2024_election_widget .header ul.nav>li {
    width: calc((100% / 3) - 4px);
    text-align: center;
    padding: 4px 0;
    cursor: pointer;
    font-size: 14px;
    background: #e5e5e5;
    list-style: none;
    border-radius: 2px;
}

.election_dash > .header {
    padding-bottom: 1px;
}
/* ===========Rowland Styles=========== */
.right_col_2024_election_widget .header ul.nav > li.active {
    padding-top: 8px;
}
.right_col_2024_election_widget .header ul.nav > li {
    width: calc(100% / 3);
    display: block;
    border-radius:0;
}
.right_col_2024_election_widget .header ul.nav {
    width: calc(100% + 30px);
    margin-left: -15px;
    padding:0;
    align-items:flex-end;
}
.right_col_2024_election_widget .header {
    padding: 12px 15px 0;
    /*background: linear-gradient(#ffde89 0%, #ffde89 52%, #ffde89 52%, #d4b870 100%);*/
    background: linear-gradient(#ffde89 0%, #ffde89 52%, #ffde89 52%, #b89f61 100%);
}

.right_col_2024_election_widget .header ul.nav > li:not(.active) {
    border-left:1px solid #ccc;
}
.right_col_2024_election_widget .header ul.nav > li:hover {
    background-image: linear-gradient(rgb(30, 3, 58), #310561);
    color: white;
}
/* =========Rowland End========= */
.election_dash .sections .arrow_wrap {
    display: none;
}
/* #right_col_2024_election_widget .election_dash .main_page.hide {display: none;}
#right_col_2024_election_widget .election_dash .senate_page.hide {display: none;}
#right_col_2024_election_widget .election_dash .house_page.hide {display: none;} */

.main_page.hide {display: none;}
.senate_page.hide {display: none;}
.house_page.hide {display: none;}

/* ===========R. Padding Senate and House=======*/
.election_dash .section.left_header > table,
.election_dash .section.right_header > table {
    padding: 4px;
}
.election_dash .section.left_header > table tr td,
.election_dash .section.right_header > table tr td {
    border-bottom: 1px solid #666;
}
.election_dash .section.left_header > table tr td:first-child,
.election_dash .section.right_header > table tr td:first-child {
    border-left: 1px solid #666;
}
.election_dash .sections > .section:first-child.left_header > table td:first-child,
.election_dash .sections > .section:first-child.right_header > table td:first-child {
    border-left: 1px solid #666;
}
.election_dash .section.left_header > table tr td:last-child,
.election_dash .section.right_header > table tr td:last-child {
    border-right: 1px solid #666;
}
.election_dash .sections > .section:last-child.left_header > table td:last-child,
.election_dash .sections > .section:last-child.right_header > table td:last-child {
    border-right: 1px solid #666;
}

.right_col_2024_election_widget .sections.tab_header table tr th,
.right_col_2024_election_widget .sections.tab_header table tr td  {
  text-align: center;
}
.right_col_2024_election_widget .sections table.house_rows tr th  {
  text-align: center !important;
}
.right_col_2024_election_widget .sections table.house_rows tr td.can_names  {
  text-align: right !important;
  padding-right: 6px;
}
.right_col_2024_election_widget .sections.tab_header a {
  font-weight: bold;
}
.right_col_2024_election_widget .sections.tab_header a.dem {
  color: #3333cc;
}
.right_col_2024_election_widget .sections.tab_header a.gop {
  color: #d30015;
}
.right_col_2024_election_widget .sections.tab_header a.toss_up {
  color: #000;
}
.right_col_2024_election_widget .sections .section > table td.spread.gop a {
  color: #d30015;
}
.right_col_2024_election_widget .sections .section > table td.spread.dem a {
  color: #3333cc;
}

.right_col_2024_election_widget .sections .section .map.house {
  display: inline-block;
  width: 299px;
  padding-top: 6px;
  padding-right: 3px;
}
.right_col_2024_election_widget .sections .section .map.house img {
  width: 100%;
}
/* .right_col_2024_election_widget .sections.tab_header a.toss_up {
  
} */
.election_dash .senate_page .sections > .section.row_style > table td {
  text-align: left;
  padding-left: 13px;
  min-width: 77px;
  min-width: 88px;
}
.election_dash .senate_page .sections > .section.row_style > table td:last-child {
  text-align: right;
  padding-right: 13px;
}
.election_dash .senate_page .sections > .section.row_style > table th.state {
  text-align: left;
  padding-left: 13px;
}

.tdih_dash > .header.sub_header {
  padding-top: 8px !important;
  padding-bottom: 7px !important;
}
.tdih_dash > .header.sub_header span.small {
  padding-right: 32px !important;
  font-size: 0.9em !important;
}
.tdih_dash > .header.sub_header img {
  right: 2px !important;
  top: 1px !important;
}

@media screen and (min-width: 350px) and (max-width: 375px) {
  .right_col_2024_election_widget .sections .section .map.house {
    width: 335px;
  }
  
}

@media screen and (min-width: 370px) and (max-width: 390px) {
  .right_col_2024_election_widget .sections .section .map.house {
    width: 344px;
  }
  
}
@media screen and (min-width: 390px) and (max-width: 415px) {
  .right_col_2024_election_widget .sections .section .map.house {
    width: 371px;
  }
  
}
@media screen and (min-width: 415px) and (max-width: 430px) {
  .right_col_2024_election_widget .sections .section .map.house {
    width: 397px;
  }
  
}
@media screen and (min-width: 430px) and (max-width: 500px) {
  .right_col_2024_election_widget .sections .section .map.house {
    width: 419px;
  }
  
}
