/* Inputs */
/* Colors:
    blue: #4C8FAA
    gray: #A7A9AC
    orange: #F68C1F
*/
#calculator .form-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    width: 75%;
}
#calculator .form-group label {
    flex-grow: 1;
}
#calculator .form-group .desc {
    margin-left: 1rem;
    flex-basis: 25%;
}
#calculator .form-group.toggleRate .desc {
    flex-basis: auto;
}
#calculator input[type=number] {
    border: 1px solid #ddd;
    display: inline-block;
    /* margin-left: 20px; */
    margin-bottom: 5px;
    width: 75px;
    text-align: right;
}
#calculator .form-group.averageProposal {
    margin-bottom: 30px;
}

/* Revenue Shift Table */
#calculator table.revenue {
    /* border: 1px solid #F68C1F; */
    width: 100%;
    color: #000;
    padding: 20px;
}
#calculator table thead th {
    background: #4C8FAA;
    
    color:#fff;
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}
#calculator table tr.sum10 {
    background: #A7A9AC;
    color:#fff;
}
#calculator table tr {
    position: relative;
    border-top: 1px solid rgb(14, 10, 6);
    /* border-bottom: 1px solid #F68C1F; */
}
#calculator table.revenue .label {
    color: #000;
}
#calculator #revenue-shift thead .wins10 {
    width: 200px;    
    text-align: center;
}

#calculator table.revenue .tip {
    border: 1px solid #fff;
    border-left: 1px solid #eee;
    color: #4C8FAA;
    font-size: 12px;
    line-height: normal;
    width: 100px;
}
#calculator table.revenue .typical .wins10 {
    border-right: 1px solid #eee;
}
#calculator table.revenue tbody .good,
#calculator table.revenue tbody .better,
#calculator table.revenue tbody .best,
#calculator table.revenue tbody .hybrid {
    width: 85px;
    text-align: center;
}
#calculator table.revenue tbody .avg-hd .wins10 {
    width: 75px;
    text-align: left;
}
#calculator table.revenue tbody td {
    position: relative;
    vertical-align: middle;
}


/* Current Way Row */
#calculator table.revenue .current .good,
#calculator table.revenue .current .wins10,
table.revenue .sum10 .wins10,
table.revenue .increase .wins10 {
    padding: 0;
    text-align: center;
}
#calculator #revenue-shift .current .good {
    width: auto;
}
table.revenue .current .good,
table.revenue .current .wins10 {

}
table.revenue tr.sum10 {
    border-right: 1px solid;
}
table.revenue th.tip,
table.revenue td.tip {
    background: #fff !important;
    border: 1px solid #fff;
    margin: -1px;
}
table.revenue .current .good:before,
table.revenue .current .wins10:before,
table.revenue .sum10 .wins10:before,
table.revenue .increase .wins10:before {
    /* border: 1px solid #4C8FAA; */
    
    content: '';
    display: block;
    height: 30px;
    display: inline-block;
    position: absolute;
    left: 0;
    width: 100%;
}
table.revenue .current .good:before,
table.revenue .current .wins10:before {
    border: 1px solid #4C8FAA;
}
table.revenue .sum10 .wins10,
table.revenue .increase .wins10 {
    background: #F68C1F;
    color: #fff;
}
table.revenue .sum10 .wins10:before,
table.revenue .increase .wins10:before,
.bg-orange {
    /* background: #F68C1F; */
}

table.revenue .current .wins10:before,
table.revenue .sum10 .wins10:before,
table.revenue .increase .wins10:before {
    margin-left: 25%;
    width: 50%;
}
/*Typical Selection Rate row */
#calculator #revenue-shift tbody .typical .label,
#calculator #compounded-projections tbody .avg .label,
#winrate-current {
    color: #F68C1F;
    text-align: left;
    width: 300px;
}

/* Revenue per 10 wins */
#calculator table.revenue tbody tr:nth-child(5) .label {
    font-weight: bold;
    /* text-align: right; */
}
#revenue-shift tr.typical td {
    padding-bottom: 20px;
}
#revenue-shift tr.sum10 td {
    padding-bottom: 20px;
}
table.revenue tr.typical td {
    border-bottom: 1px solid #F4CF91;
}


/* Win rate table */
#winrate .form-group {
    display: flex;
    margin-bottom: 50px;
    width: 100%;
    flex-wrap: wrap;
}
#calculator #winrate .form-group label {
    flex-grow: 0;
    margin-right: 30px;
    
}
#calculator #winrate .form-group .label {
    color: rgb(52, 98, 116);
    font-size: 16px;
    
}
#calculator #winrate .form-group .desc {
    order: -1;
    flex-grow: 1;
    margin-right: 20px;
    /* text-align: right; */
}
#calculator #winrate .form-group .slider-container {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    justify-content: space-between;
    min-height: 20px;
    line-height: 20px;
    width: 100%;
}
#winrate-current {
    margin-top: 20px;
    padding-right: 30px;
}

/* Compounded Projects Table */
#calculator #compounded-projections {
    margin-bottom: 50px;
}
#calculator #compounded-projections thead .wins10 {
    text-align: center;
    width: 160px;
}
#calculator #compounded-projections tbody .avg-hd .wins10 {
    text-align: center;
}
#compounded-projections tr.projection {
    height: 75px;
}
#compounded-projections tr.projection .label {
    font-size: 14px;
    line-height: 1.2;
    /* position: absolute; */
    /* width: 300px; */
}
table.revenue td.small {
    font-size: 14px;
    line-height: 1.2;
}
#compounded-projections .projection-hd td {
    font-size: 10px;
}
#compounded-projections tr.avg .good,
#compounded-projections tr.avg .better,
#compounded-projections tr.avg .best,
#compounded-projections tr.avg .hybrid {
    border: 1px solid #F4CF91;
}
/* Helpers */
#calculator .note {
    color: #7BA43F;
    display: block;
    font-size: 12px;
}
#compounded-projection tr.projection .label {
    width: 600px;
    position: absolute;
}


@media screen and ( min-width: 1024px ) {
    #calculator .form-group.number {
        width: 50%;
    }
}
#calculator .download-pdf {
    margin: 0 auto 50px;
    width: 30%;
}



/* Charts */
.calculator-chart {
    float: left;
    margin-bottom: 100px;
    width: 50%;
}

/* Toggle */

  /* Hide default HTML checkbox */
  /* line 225, ../scss/screen.scss */
  .form-group.toggle input {
    display: none;
  }
  
  /* The slider */
  /* line 228, ../scss/screen.scss */
.form-group.toggle .slider {
    display: block;
    position: relative;
    cursor: pointer;
    top: 0;

    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    width: 40px;
    height: 20px;
  }
  
  /* line 242, ../scss/screen.scss */
  .form-group.toggle .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  /* line 254, ../scss/screen.scss */
  .form-group.toggle input:checked + .slider {
    background-color: #2196F3;
  }
  
  /* line 258, ../scss/screen.scss */
  .form-group.toggle input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  /* line 262, ../scss/screen.scss */
  .form-group.toggle input:checked + .slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
  }
  
  /* Rounded sliders */
  /* line 269, ../scss/screen.scss */
  .form-group.toggle.round .slider {
    border-radius: 10px;
  }
  
  /* line 273, ../scss/screen.scss */
  .form-group.toggle.round .slider:before {
    border-radius: 50%;
  }


  /* Colors */
  .bg-orange {
    background: #F68C1F;
    color: #fff;
  }

  #winrate-current .new-winrate {
      display: inline-block;
      width: 75px;
      text-align: center;
  }



@media screen and (max-width: 567px) {
    #calculator .form-group {
        display: block;
    }
    .table-container {
        margin: 0 -25px;
        
        overflow-x: auto;
        width: auto;
    }
    
    table.revenue td,
    table.revenue th {
        font-size: 14px;
        line-height: normal;
        padding: 8px 0 !important;
        width: auto !important;
    }
    table.revenue th.tip,
    table.revenue td.tip {
        display: none;
    }
    table.revenue td.sum10 .tip {
        /* display: block;
        position: absolute;
        right: 0; */
    }
    .mobile-full,
    .mobile-full .et_pb_row {
        margin: 0;
        width: auto;
    }
    #main-content .mobile-padded {
        margin: 0 30px;
        width: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .mobile-padded.et_pb_text_1 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .mobile-padded .et_pb_row {
        margin: 0;
        width: auto;
    }
    .mobile-full .et_pb_cta_2.et_pb_promo {
        padding-right: 40px!important;
        padding-bottom: 22px!important;
        padding-left: 40px!important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    table.revenue .current .good,
    table.revenue .current .wins10 {
        border: 1px solid #4C8FAA;
    }
    table.revenue .current .good:before,
    table.revenue .current .wins10:before {
        border: 0 none;
    }
    .calculator-chart {
        float: none;
        margin-bottom: 50px;
        width: 100%;
    }
    #calculator #winrate .form-group label {
        margin-right: 0 !important;
    }
    #calculator #winrate .form-group .slider-container {
        justify-content: flex-end;
    }
    #winrate-current {
        padding-right: 0 !important;
    }
}