@media (min-width: 600px) {
  .center {
    text-align: center;
  }

  .button {
    font-size: 14px;
    display: inline-block;
    background: #fff;
    position: relative;
    height: 42px;
    font-weight: 200;
    width: 140px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.16);
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    line-height: 42px;
    padding-left: 8px; 
    padding-right: 10px;
    background-position: center right;
    background-repeat: no-repeat;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    background-color: #fafafa;
    background-image: linear-gradient(#FFF, #F6F6F6);
    background: #FFF;
    background: linear-gradient(#FFF, #F6F6F6);
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: #292920;
  }

  .button.disabled {
    background: #bfbfb8;
    border-bottom: 3px solid #bfbfb8;
    pointer-events: none;
  }

  #container {
    min-height: 582px;
    width: 922px;
    height: 582px;
    background: rgb(255, 255, 255);
    padding-left: 0px;
    margin-top: 0px;
  }
  .radio {
    position: relative;
    height: 44px;
    display: table-cell;
    vertical-align: middle;
    font-size: 12px;
    padding: 6px 11px;
    background-position: center right;
    background-repeat: no-repeat;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    background-color: #fafafa;
    background-image: linear-gradient(#FFF, #F6F6F6);
    background: linear-gradient(#FFF, #F6F6F6);
    border: 1px solid #cecece;
    color: #7d7d74;
    width: 90px;
    box-sizing: border-box;
    line-height: 1.3;
    z-index: 2;
  }

  .radio::before {
    position: absolute;
    top: 50%;
    right: calc(100% - 18px);
    background: #fff;
    width: 18px;
    height: 18px;
    transform: translate(0, -50%);
    border-radius: 10px;
    box-sizing: border-box;
    border: 1px solid grey;
    cursor: pointer;
  }

  .radio:not(:last-child) {
    border-right: 0px;
  }

  .radio.selected {
    background: linear-gradient(#b8bcbd, #cccccc);
    color: #40464b;
    pointer-events: none;
    border: 1px solid #abafb0;
    z-index: 1;
    box-shadow: 0px 0px 25px rgba(255, 255, 255, 1), 0px 0px 25px rgba(255, 255, 255, 1), 0px 0px 25px rgba(255, 255, 255, 1), 0px 0px 25px rgba(255, 255, 255, 1);
  }

  .button.reset {
    width: 33px;
    height: 33px;
    position: absolute;
    top: 10px;
    right: 13px;
    background: none;
    box-shadow: none;
    border: none;
  }

  .button.reset::after {
    background: url(../assets/reset.svg);
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 17px;
  }


  .title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .sub-title {
    font-size: 14px;
  }

  .header-title {
    margin-left: 32px;
    margin-top: 24px;
  }

  .header-radio-container > div {
    display: inline-block;
    vertical-align: middle;
  }

  .header-radio-container {
    position: absolute;
    top: 10px;
    left: 406px;
  }

  .radio-button-container {
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
  }

  .ratio-title {
    padding-right: 14px;
    font-weight: 700;
  }

  .table {
    display: table;
    position: absolute;
    left: calc((100% - 825px) / 2);
    margin-top: 32px;
  }

  .row {
    display: table-row;
    height: 54px;
    position: relative;
  }

  .row-title {
    display: table-cell;
    text-align: right;
    vertical-align: middle;
    padding-right: 10px;
    font-size: 14px;
    position: relative;
    background: #fff;
  }

  .bar-slot {
    display: table-cell;
    width: 690px;
    background: #f5f5f5;
    box-sizing: border-box;
    height: 54px;
    position: relative;
  }

  .row:not(:last-child) > .row-title {
    border-right: 2px #c3c3c3 solid;
    z-index: 2;
  }

  .row:not(:first-child) > .bar-slot {
    border-top: 1px #eaebea solid;
  }

  .bar {
    position: relative;
    background: #45aa03;
    height: 100%;
  }

  .bar::after {
    content: '$' attr(bar-val);
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    left: 100%;
    margin-left: 12px;
    font-size: 16px;
    z-index: 3;
  }
  #container[selected-ratio] .row[val="revenue"] .bar::after {
    margin-left:22px
  }
  #container[selected-ratio] .row[val="revenue"] .bar::after, #container[selected-ratio="net-profit-margin"] .row[val="net-income"] .bar::after {
    margin-left: 22px;
    background: url('../assets/number-encircler.svg');
    height: 68px;
    width: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    line-height: 68px;
    text-align: center;
    z-index: 3;
  }
  #container[selected-ratio="net-profit-margin"] .row[val="net-income"] .bar::after {
    margin-left:6px;
  }

  .row:not([val='net-income']) .bar.negative {
    background: #b10021;
  }

  .tick-row {
    border-top: 2px solid #c3c3c3;
    position: relative;
    width: 692px;
    height: 54px;
    margin-left: -2px;
  }

  .tick {
    position: relative;
    background: #c3c3c3;
    width: 2px;
    height: 4px;
    display: inline-block;
    vertical-align: top;
  }

  .tick:not(:last-child) {
    margin-right: calc(25% - 2px);
  }

  .tick:nth-last-child(2) {
    margin-right: calc(25% - 4px);
  }

  .tick::after {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    width: 50px;
    content: '$' attr(val);
    transform: translate(-50%, 0);
    text-align: center;
    color: #abafb0;
  }

  .row[val="revenue"] .slider {
    left: 62.5%;
    width: 25%;
  }

  .row[val="cost-of-goods-sold"] .slider {
    right: calc(690px * 0.15);
    width: calc(690px * 0.1625);
  }

  .row[val="operating-expense"] .slider {
    right: calc(690px * 0.15);
    width: calc(690px * 0.075);
  }

  .bar-slider {
    width: calc(690px * 0.175);
    position: absolute;
    height: 100%;
    right: 35px;
  }

  .row[val="operating-expense"] {
    z-index: 3;
  }

  .bar-slider a.slider-handle {
    background: url('../assets/slider-arrow-nobble.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 0px;
    border: none;
    box-shadow: none;
    width: 33px;
    height: 37px;
    margin-top: -23px;
    margin-left: -17px;
  }

  .radio.selected + .radio {
    border-left: 0px;
  }

  #container[selected-ratio="sga-margin"] .row[val="cost-of-goods-sold"] .slider-handle {
    margin-top: -22px;
  }

  #container:not([selected-ratio="gross-profit-margin"]) .gross-profit-show,
  #container:not([selected-ratio="operating-profit-margin"]) .operating-profit-show,
  #container:not([selected-ratio="net-profit-margin"]) .net-profit-show,
  #container:not([selected-ratio="sga-margin"]) .sga-margin-show {
    opacity: 0;
    pointer-events:none;
  }
  #container[selected-ratio="gross-profit-margin"] .gross-profit-show,
  #container[selected-ratio="operating-profit-margin"] .operating-profit-show,
  #container[selected-ratio="net-profit-margin"] .net-profit-show,
  #container[selected-ratio="sga-margin"] .sga-margin-show {
    opacity: 1;
    pointer-events: auto;
  }

  .bar-gap-fill {
    position: absolute;
    height: 100%;
    background: yellow;
    text-align: center;
  }
/*
  .bar-gap-fill::after {
    content: attr(val) '%';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 700;
  }
*/
  .bar-line {
    content: '';
    background: #c5c8c9;
    position:absolute;
    right:0px;
    top: 0%;
    width:2px;
    height: 276px;
    z-index: 3;
    padding-top: 53px;
  }

  #container[selected-ratio="gross-profit-margin"] .row[val="cost-of-goods-sold"] {
  }

  .bar-line-footer {
    position: absolute;
    bottom: 0px;
    text-align: left;
    font-size: 18px;
    padding-left: 8px;
    white-space: nowrap;
    padding-right: 8px;
  }

  .row[val="operating-expense"] .bar-gap-fill {
    opacity: 0;
    pointer-events: none;
  }

  .bar-line-footer::after {
    content: '$' attr(val);
    padding: 25px;
    margin-top: -25px;
    position: absolute;
    left: 100%;
    background: url(../assets/number-encircler.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100px;
    top: 0px;
    text-align: center;
    box-sizing: border-box;
  }

  .footer {
    position: absolute;
    bottom: 0px;
    left: 35px;
    height: 77px;
    right: 35px;
    box-sizing: border-box;
    /* border-top: 2px solid #cbcbcb; */
  }

  .formula {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    height: 50px;
    font-weight: 500;
    vertical-align: middle;
    white-space: nowrap;
  }

  .fraction {
    display: inline-block;
    vertical-align: middle;
  }

  .fraction .numerator {
    border-bottom: 1px solid black;
    padding-bottom: 2px;
    margin-bottom: -2px;
    padding-top: 0px;
    text-align: center;
  }

  .fraction > div {
    padding-right: 6px;
    padding-left: 6px;
    margin: 3px 0px;
    padding-top: 3px;
    text-align: center;
  }
  .denominator.revenue-value::before, .numerator.gross-profit-value::before, .numerator.net-profit-value::before {
    content: '$' attr(val);
  }

  .formula-important-value::before {
    content: attr(val) '%';
  }

  .formula-important-value {
    display: inline-block;
    text-align: center;
    background: yellow;
    padding: 8px;
  }

  .formula-space {
    padding: 5px;
    position: relative;
  }

  .operating-expense-gap .bar-line {
    height: 222px;
  }

  .numerator.operating-profit-value::before {
    content: '$' attr(val);
  }

  #container[selected-ratio="net-profit-margin"] .row[val="net-income"] .bar {
    background: yellow;
  }

  /*
  #container[selected-ratio="net-profit-margin"] .row[val="net-income"] .bar::before {
    content: attr(val) '%';
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    margin: auto;
    font-size: 16px;
    font-weight: 700;
    min-width: 28px;
    width: 100%;
    text-align: center;
  }
*/
  .bar-slider .slider-right-fill {
    background: red;
    position: relative;
    border-left: 1px solid rgba(255,255,255,0.55);
    padding-left: 35px;
  }

  #container[selected-ratio="sga-margin"] .row[val="operating-expense"] .bar::before {
    content: "";
    position: absolute;
    left: 100%;
    height: 100%;
    background: whitesmoke;
    width: 90px;
    z-index: 2;
  }

  #template {
    display: none;
  }

  .slider-right-fill .bar-line {
    left: 0px;
    right: auto;
    top: 50%;
    height: 194px;
    margin-left: -2px;
    background: rgba(0, 0, 0, 0.5);
  }
  .slider-right-fill .bar-line::after {
    content:'';
    position:absolute;
    top: -2px;
    left:-2px;
    width:6px;
    height: 6px;
    background:yellow;
  }

  .numerator.sga-value::before {content: '$' attr(val);}

  .row[val="revenue"] .bar::before {
    content: '';
    width: 2px;
    height: 100%;
    background: yellow;
    position: absolute;
    left: -10000000000000000px;
    margin-left: -2px;
  }
  #container[selected-ratio="sga-margin"] .row[val="revenue"] .bar::before {
    display:none;
  }
  #container[revenue-marker-value="0"] .row[val="revenue"] .bar::before {left: 0%;}
  #container[revenue-marker-value="1"] .row[val="revenue"] .bar::before {left: 1%;}
  #container[revenue-marker-value="2"] .row[val="revenue"] .bar::before {left: 2%;}
  #container[revenue-marker-value="3"] .row[val="revenue"] .bar::before {left: 3%;}
  #container[revenue-marker-value="4"] .row[val="revenue"] .bar::before {left: 4%;}#container[revenue-marker-value="5"] .row[val="revenue"] .bar::before {left: 5%;}#container[revenue-marker-value="6"] .row[val="revenue"] .bar::before {left: 6%;}#container[revenue-marker-value="7"] .row[val="revenue"] .bar::before {left: 7%;}#container[revenue-marker-value="8"] .row[val="revenue"] .bar::before {left: 8%;}#container[revenue-marker-value="9"] .row[val="revenue"] .bar::before {left: 9%;}#container[revenue-marker-value="10"] .row[val="revenue"] .bar::before {left: 10%;}#container[revenue-marker-value="11"] .row[val="revenue"] .bar::before {left: 11%;}#container[revenue-marker-value="12"] .row[val="revenue"] .bar::before {left: 12%;}#container[revenue-marker-value="13"] .row[val="revenue"] .bar::before {left: 13%;}#container[revenue-marker-value="14"] .row[val="revenue"] .bar::before {left: 14%;}#container[revenue-marker-value="15"] .row[val="revenue"] .bar::before {left: 15%;}#container[revenue-marker-value="16"] .row[val="revenue"] .bar::before {left: 16%;}#container[revenue-marker-value="17"] .row[val="revenue"] .bar::before {left: 17%;}#container[revenue-marker-value="18"] .row[val="revenue"] .bar::before {left: 18%;}#container[revenue-marker-value="19"] .row[val="revenue"] .bar::before {left: 19%;}#container[revenue-marker-value="20"] .row[val="revenue"] .bar::before {left: 20%;}#container[revenue-marker-value="21"] .row[val="revenue"] .bar::before {left: 21%;}#container[revenue-marker-value="22"] .row[val="revenue"] .bar::before {left: 22%;}#container[revenue-marker-value="23"] .row[val="revenue"] .bar::before {left: 23%;}#container[revenue-marker-value="24"] .row[val="revenue"] .bar::before {left: 24%;}#container[revenue-marker-value="25"] .row[val="revenue"] .bar::before {left: 25%;}#container[revenue-marker-value="26"] .row[val="revenue"] .bar::before {left: 26%;}#container[revenue-marker-value="27"] .row[val="revenue"] .bar::before {left: 27%;}#container[revenue-marker-value="28"] .row[val="revenue"] .bar::before {left: 28%;}#container[revenue-marker-value="29"] .row[val="revenue"] .bar::before {left: 29%;}#container[revenue-marker-value="30"] .row[val="revenue"] .bar::before {left: 30%;}#container[revenue-marker-value="31"] .row[val="revenue"] .bar::before {left: 31%;}#container[revenue-marker-value="32"] .row[val="revenue"] .bar::before {left: 32%;}#container[revenue-marker-value="33"] .row[val="revenue"] .bar::before {left: 33%;}#container[revenue-marker-value="34"] .row[val="revenue"] .bar::before {left: 34%;}#container[revenue-marker-value="35"] .row[val="revenue"] .bar::before {left: 35%;}#container[revenue-marker-value="36"] .row[val="revenue"] .bar::before {left: 36%;}#container[revenue-marker-value="37"] .row[val="revenue"] .bar::before {left: 37%;}#container[revenue-marker-value="38"] .row[val="revenue"] .bar::before {left: 38%;}#container[revenue-marker-value="39"] .row[val="revenue"] .bar::before {left: 39%;}#container[revenue-marker-value="40"] .row[val="revenue"] .bar::before {left: 40%;}#container[revenue-marker-value="41"] .row[val="revenue"] .bar::before {left: 41%;}#container[revenue-marker-value="42"] .row[val="revenue"] .bar::before {left: 42%;}#container[revenue-marker-value="43"] .row[val="revenue"] .bar::before {left: 43%;}#container[revenue-marker-value="44"] .row[val="revenue"] .bar::before {left: 44%;}#container[revenue-marker-value="45"] .row[val="revenue"] .bar::before {left: 45%;}#container[revenue-marker-value="46"] .row[val="revenue"] .bar::before {left: 46%;}#container[revenue-marker-value="47"] .row[val="revenue"] .bar::before {left: 47%;}#container[revenue-marker-value="48"] .row[val="revenue"] .bar::before {left: 48%;}#container[revenue-marker-value="49"] .row[val="revenue"] .bar::before {left: 49%;}#container[revenue-marker-value="50"] .row[val="revenue"] .bar::before {left: 50%;}#container[revenue-marker-value="51"] .row[val="revenue"] .bar::before {left: 51%;}#container[revenue-marker-value="52"] .row[val="revenue"] .bar::before {left: 52%;}#container[revenue-marker-value="53"] .row[val="revenue"] .bar::before {left: 53%;}#container[revenue-marker-value="54"] .row[val="revenue"] .bar::before {left: 54%;}#container[revenue-marker-value="55"] .row[val="revenue"] .bar::before {left: 55%;}#container[revenue-marker-value="56"] .row[val="revenue"] .bar::before {left: 56%;}#container[revenue-marker-value="57"] .row[val="revenue"] .bar::before {left: 57%;}#container[revenue-marker-value="58"] .row[val="revenue"] .bar::before {left: 58%;}#container[revenue-marker-value="59"] .row[val="revenue"] .bar::before {left: 59%;}#container[revenue-marker-value="60"] .row[val="revenue"] .bar::before {left: 60%;}#container[revenue-marker-value="61"] .row[val="revenue"] .bar::before {left: 61%;}#container[revenue-marker-value="62"] .row[val="revenue"] .bar::before {left: 62%;}#container[revenue-marker-value="63"] .row[val="revenue"] .bar::before {left: 63%;}#container[revenue-marker-value="64"] .row[val="revenue"] .bar::before {left: 64%;}#container[revenue-marker-value="65"] .row[val="revenue"] .bar::before {left: 65%;}#container[revenue-marker-value="66"] .row[val="revenue"] .bar::before {left: 66%;}#container[revenue-marker-value="67"] .row[val="revenue"] .bar::before {left: 67%;}#container[revenue-marker-value="68"] .row[val="revenue"] .bar::before {left: 68%;}#container[revenue-marker-value="69"] .row[val="revenue"] .bar::before {left: 69%;}#container[revenue-marker-value="70"] .row[val="revenue"] .bar::before {left: 70%;}#container[revenue-marker-value="71"] .row[val="revenue"] .bar::before {left: 71%;}#container[revenue-marker-value="72"] .row[val="revenue"] .bar::before {left: 72%;}#container[revenue-marker-value="73"] .row[val="revenue"] .bar::before {left: 73%;}#container[revenue-marker-value="74"] .row[val="revenue"] .bar::before {left: 74%;}#container[revenue-marker-value="75"] .row[val="revenue"] .bar::before {left: 75%;}#container[revenue-marker-value="76"] .row[val="revenue"] .bar::before {left: 76%;}#container[revenue-marker-value="77"] .row[val="revenue"] .bar::before {left: 77%;}#container[revenue-marker-value="78"] .row[val="revenue"] .bar::before {left: 78%;}#container[revenue-marker-value="79"] .row[val="revenue"] .bar::before {left: 79%;}#container[revenue-marker-value="80"] .row[val="revenue"] .bar::before {left: 80%;}#container[revenue-marker-value="81"] .row[val="revenue"] .bar::before {left: 81%;}#container[revenue-marker-value="82"] .row[val="revenue"] .bar::before {left: 82%;}#container[revenue-marker-value="83"] .row[val="revenue"] .bar::before {left: 83%;}#container[revenue-marker-value="84"] .row[val="revenue"] .bar::before {left: 84%;}#container[revenue-marker-value="85"] .row[val="revenue"] .bar::before {left: 85%;}#container[revenue-marker-value="86"] .row[val="revenue"] .bar::before {left: 86%;}#container[revenue-marker-value="87"] .row[val="revenue"] .bar::before {left: 87%;}#container[revenue-marker-value="88"] .row[val="revenue"] .bar::before {left: 88%;}#container[revenue-marker-value="89"] .row[val="revenue"] .bar::before {left: 89%;}#container[revenue-marker-value="90"] .row[val="revenue"] .bar::before {left: 90%;}#container[revenue-marker-value="91"] .row[val="revenue"] .bar::before {left: 91%;}#container[revenue-marker-value="92"] .row[val="revenue"] .bar::before {left: 92%;}#container[revenue-marker-value="93"] .row[val="revenue"] .bar::before {left: 93%;}#container[revenue-marker-value="94"] .row[val="revenue"] .bar::before {left: 94%;}#container[revenue-marker-value="95"] .row[val="revenue"] .bar::before {left: 95%;}#container[revenue-marker-value="96"] .row[val="revenue"] .bar::before {left: 96%;}#container[revenue-marker-value="97"] .row[val="revenue"] .bar::before {left: 97%;}#container[revenue-marker-value="98"] .row[val="revenue"] .bar::before {left: 98%;}#container[revenue-marker-value="99"] .row[val="revenue"] .bar::before {left: 99%;}#container[revenue-marker-value="100"] .row[val="revenue"] .bar::before {left: 100%;}
  
  .radio.unselectable {
    display: none;
  }


  .formula-title {
    display: inline-block;
  }
}