body {
  background-color: #e6e6e6;
}

/* Calculator
** ========================================================================== */
/* Calculator block
 --------------------------------------------------------------------------- */
  .calc-header {
    margin: 0 0 15px;
    font-size: 17px;
  }
 
  .calc {
    max-width: 901px;
    margin: 0 auto 15px;
  }
 
	.calc-block,
	.compensations-block {
		float: left;
		display: inline-block;
		font-size:14px;
	}

	.calc-input-block,
	.calc-compensation-block {
		padding: 15px;
		border:2px solid #000;
		background-color:#e6e6e6;
	}

	.calc-block {
		margin-right: 15px;
    max-width: 560px;
    width: 100%;
	}

	.calc-input-block {
		margin-bottom: 15px;
	}

	.calc-output-block {
		margin-top: 15px;
		padding: 15px 0 0;
		border-top: 1px solid #000;
	}

	@media screen and (max-width: 960px) {
		.calc-block,
		.compensations-block {
	    display: block;
			float: none;
  		margin: 15px auto;
		}

		.calc-block {
	    max-width: 560px;
		}
	}

	@media screen and (max-width: 600px) {
		.calc-input-block,
		.calc-compensation-block {
		  margin-right: 15px;
		  margin-left: 15px;
		}
		
	}

/* Calculator label & input
 --------------------------------------------------------------------------- */
	.head-block {
    margin-left: 295px;
	}

	.input-label {
    display: inline-block;
		width: 180px;
		text-align: right;
	}

	.calc-input {
		max-width: 100px;
    padding: 8px 8px 5px;
    margin: 2px;
    font-size: 13px;
    color: #FFF;
    border: none;
    background-color: #1b2124;
    box-shadow: 4px 4px 0 rgba(0,0,0,.2);
	}

	.calc-input.days.new-input {
    margin: 0 6px;
	}

	.calc-input.price.new-input {
    margin-right: 4px;
	}

	.days, .price {
    width: 60px;
	}

	.head {
    display: inline-block;
    width: 75px;
    margin: 0 5px 0 0;
    font-style: italic;
    font-size: 12px;
	}

	.calc-input-shift {
    display: inline-block;
    margin-left: 109px;
	}
	
	div[data-name="employerTax"],
	div[data-name="ourPercent"],
	div[data-name="employeeTax"],
	div[data-name="holidayCompensation"] {
	  display:inline-block;
	  min-width: 10px;
	}

	@media screen and (max-width: 600px) {
		.calc-compensation-block .input-label {
	    display: block;
	    width: auto;
	    text-align: left;
		}

		.head-block {
		    margin-left: 110px;
		}

	}

/* Calculator Output
 --------------------------------------------------------------------------- */
  .compensation {
    position: relative;
  }
 
  .total-bill-block {
    position: relative;
  }
 
	.output-label {
	  display:inline-block;
		width: 180px;
		text-align: right;
	}

	.output,
	.price-total {
		display: inline-block;
	}

	.total-compensation-block {
    text-align: right;
    font-weight: bold;
	}

	.holiday-compensation-block {
	  position: relative;
		padding-top: 5px;
  	border-top: 1px solid #000;
	}

	.holiday-compensation, .holiday-compensation-value {
    display: inline-block;
    width: 60px;
    margin: 0 4px;
	}

	.holiday-compensation-value,
	.total-bill {
    position: absolute;
    right: 0;
    margin: 0;
    width: auto;
  }
  
  .total-bill {
    font-weight: bold;
  }

	@media screen and (max-width: 600px) {
		.total-compensation-block {
  		margin-left: 0;
  		text-align: right;
		}

		.holiday-compensation,
		.holiday-compensation-value {
      margin: 0;
		}
		
		.holiday-compensation-value {
      position: absolute;
      right: 0;
      text-align: right;
    }

		.holiday-compensation-value {
	    text-align: right;
		}

		.input-label.bill-label {
	    display: inline-block;
		}

		.total-bill {
	    position: absolute;
      right: 0;
      display: inline-block;
      margin-left: 0;
      text-align: right;
		}
	}

	@media screen and (max-width: 400px) {
		.input-label,
		.output-label {
	    display: block;
	    width: auto;
	    text-align: left;
		}
	}

/* Calculator custom distance dropdown
 --------------------------------------------------------------------------- */
	.distance-block {
		position: relative;
		display: inline-block;
	}

	.distance-value {
    display: inline-block;
    width: 86px;
    border: 1px solid #000;
    padding: 6px 7px 1px;
    margin: 0 1px 0 2px;
    font-size: 13px;
    text-align: left;
    color: #FFF;
    background-color: #1b2124;
    box-shadow: 4px 4px 0 rgba(0,0,0,.2);
    cursor: pointer;
	}

	.distance-value:after {
    content: "";
    float: right;
    margin: 7px 0;
    display: inline-block;
    width: 0;
    height: 0;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-top: 5px solid #FFF;
	}

	.distance-dropdown-list {
		position: absolute;
    top: 27px;
    left: 2px;
		display: inline-block;
		width: 100px;
		height: 0;
		padding: 0;
		margin: 0;
		list-style: none;
    text-align: left;
		overflow: hidden;
		overflow-y: scroll;
		color: #FFF;
		background-color: #1b2124;
		z-index: 1;
		
		-webkit-transition: height .4s ease-in-out;
		-moz-transition: height .4s ease-in-out;
		-ms-transition: height .4s ease-in-out;
		-o-transition: height .4s ease-in-out;
		transition: height .4s ease-in-out;
	}

	.distance-dropdown-list.active {
		height: 120px;
		border: 1px solid #000;
		box-shadow: 4px 4px 0 rgba(0,0,0,.2);
	}

	.distance-dropdown-item {
		padding: 1px 8px;
		font-size: 12px;
		color:#FFF;
		background-color: #1b2124;
		cursor: pointer;

		-webkit-transition: background-color .4s ease-in-out, color .4s ease-in-out;
    -moz-transition: background-color .4s ease-in-out, color .4s ease-in-out;
    -ms-transition: background-color .4s ease-in-out, color .4s ease-in-out;
    -o-transition: background-color .4s ease-in-out, color .4s ease-in-out;
    transition: background-color .4s ease-in-out, color .4s ease-in-out;
	}

	.distance-dropdown-item:hover {
		color:#000;
		background-color: #e6e6e6;
	}

	.add-compensation {
		margin-top: 15px;
    margin-left: 100px;
    padding: 1px 7px;
		color:#000;
    text-transform: uppercase;
    background-color: #e6e6e6;
    border: 2px solid #1b2124;

    -webkit-transition: background-color .4s ease-in-out, color .4s ease-in-out;
    -moz-transition: background-color .4s ease-in-out, color .4s ease-in-out;
    -ms-transition: background-color .4s ease-in-out, color .4s ease-in-out;
    -o-transition: background-color .4s ease-in-out, color .4s ease-in-out;
    transition: background-color .4s ease-in-out, color .4s ease-in-out;
	}

	.add-compensation:hover {
		color:#FFF;
		background-color: #000;
    border: 2px solid #1b2124;
	}
	
	@media screen and (max-width: 600px) {
    .add-compensation {
      margin-left: 0;
    }
	}

/* Calculator compensations dropdown
 --------------------------------------------------------------------------- */
	.compensations-block {
		max-width: 320px;
  	width: 100%;
		border:2px solid #000;
		background-color:#e6e6e6;
		text-align: center;
	}

	.compensations-header {
		padding: 5px 15px 2px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    border-bottom: 1px solid #000;
	}

	.compensations-list {
		padding: 0 15px 5px;
		margin: 0;
		list-style: none;
		text-align: left;
	}

	.ride-compensations.compensations-list {
    margin-bottom: 10px;
	}

	.compensation-price, 
	.compensation-name {
		display: inline-block;
	}

	.compensation-price {
		float: right;
	}

	@media screen and (max-width: 600px) {
		.compensations-block {
      max-width: none;
      width: auto;
      margin: 0 15px;
    }
	}
	
	.clearfix {
	  clear:both;
	}