.mcalc {
    float: right;
    padding-right:10px;
}

#paymentType {
    width: 150px !important;
    font-size: 16px;
}

.mint span, .mamount span {
    background: none repeat scroll 0 0 #EDEDED;
    border-bottom: 1px solid #DBDAD7;
    border-left: 0 none !important;
    border-right: 1px solid #DBDAD7;
    border-top: 1px solid #DBDAD7;
    display: inline-block;
    font-size: 14px;
    height: 32px;
    line-height: 32px;
    margin: 0;
    padding: 0;
    text-align: center;
    vertical-align: top;
    width: 35px;
}

.mamount label, .mint label, .mterm label, .mdate label, .mtype label, .mflag label, .missue label  {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 0;
    margin: 0 10px 0 0;
    text-align: right;
    width: 210px;
    white-space:nowrap;
}
.mamount {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    -ms-align-items: center;
    align-items: center;
}
#mainform div.sep {
    padding-top: 20px;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    -ms-align-items: center;
    align-items: center;
}

#mainform input[type="button"] {
	height: 34px;
	cursor: pointer;
	width: 110px;
	border: 1px solid #bbbbbb;
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	color: white;
	border-radius: 4px;
	padding: 4px 12px;
	font-weight: bold;
	background-color: #0099cc;
}
#mainform input[type="button"]:hover {
	color: white;
	text-decoration: none;
	-webkit-transition: background-position 0.1s linear;
	background-color: #0055cc;
}

#mainform input[type="text"], select {
    background: none repeat scroll 0 0 #FCFCFC;
    border: 1px solid #DBDAD7;
    box-shadow: 1px 1px 4px #F4F4F4 inset;
    font-size: 14px;
    height: 32px;
    line-height: 32px;
    margin: 0;
    padding: 0 10px;
    width:80px;
}

#mainform input:focus {
    border-color: rgba(82, 168, 236, 0.8);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(82, 168, 236, 0.6);
    outline: 0 none;
}


#totaladd, #profitadd, #monthlypayment, #totalinterest {
    margin: 0;
    padding-bottom: 15px;
    margin-top: 10px;
    text-align: center;
    height: 50px;
    border-bottom: 1px dotted #DBDAD7;
}

#summarydata {
    background: none repeat scroll 0 0 #FCFCFC;
    /* float: left; */
    /* height: 360px; */
    margin: 0;
    /* width: 250px; */
    width: 39.62848297213622%; /* 256px / 646px */
}

#summarydata .resultlabel {
    color: #888888;
    font-size: 14px;
    line-height: 18px;
    padding: 5px 0px;
    font-weight: normal;
}

#summarydata p {
    font-size: 18px;
    font-weight: bold;
    margin: 0 auto;
}
#mainform{
    margin: 0 0 20px 0;
    border: 1px solid #DBDAD7;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
}



#extrasform{
    float: left;    
    width: 242px;
    background: none repeat scroll 0 0 #FCFCFC;
    padding-left: 0px;
    padding-right: 10px;
    padding-bottom: 20px;
    border: 1px solid #DBDAD7;
    margin-bottom: 0;
}

#calculatorform {
    width: 60.37151702786378%; /* 390px / 646px */
    background: none repeat scroll 0 0 #FCFCFC;
    padding-left: 0px;
    padding-right: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    /* height: 320px; */
    border-right: 1px solid #DBDAD7;
    margin-bottom: 0;
}

#mychart {
    width: 100% !important;
}


@media (max-width: 600px) {
    #mainform {
        display: block;
    }
    #calculatorform {
        width: auto;
        border-right: none;
        overflow: hidden;
    }
    #summarydata {
        width: auto;
    }
}

@media (max-width: 450px) {
    #mainform {
        margin-left: -21px;
        margin-right: -21px;
    }
}