
html, body, #a {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

body {
    background: #F0F0F3;
    margin-top: -40px;
    font-family: 'Open Sans';
}

a#back-link {
	color: #0576c1 !important;
}

p.title {
	font-size: 1.9375rem;
}

.text-center {
    text-align: center;
}

.button,
.button:hover, 
.button:focus {
    background-color: #D11241;
}


.full-width{
    width:100%;
}

select.error,
input.error {
    background-color: rgba(236, 88, 64, 0.1);
    border-color: #ec5840;
}

.text-error {
	color: #ec5840;
}

.d-block {
	display: block;
}

.d-none {
	display: none !important;
}

/* Modal
------------------------------------------------------------- */
#confirm-order{
    display:none;
}
.reveal-modal.tiny {
	border-radius: 5px;
}

.reveal-modal {
	background: #d11241;
	height: 100%;
	text-align: center;
	padding: 70px 0;
}

.modal-container {
    background: #fff;
}

.modal-container {
	padding: 5% 20px 0;
}

.reveal-modal .close-reveal-modal {
	font-size: 18px;
}

/* Forms
------------------------------------------------------------- */
label.error{
    margin-top:-10px;
    font-size:80%;
    color: #ec5840;
}

.muted{
 
}

#prescription-list{
    font-size:80%;
}

.prescription-header{
	background:#f1f1f1;
}

.line {
    border-bottom: 1px dotted #eaeaea;
    padding: 0 0 10px;
    margin: 0 0 30px;
}

#rx-loading{
    z-index:2000;
    position:fixed;
    top:0;   
    bottom:0;
    left: 0px; 
    top: 0px;    
    width:100%;    
    background:#D11241;    
    text-align:center;
    color:#fff;
    padding-top:5%;
    opacity:0.9;
    font-size:120%;
    display:none;/**/
}

#rx-loading-text{
    opacity:1;
    position: absolute;
    width: 300px;
    height: 50px;
    top: 50%;
    left: 50%;    
    margin-left: -150px; /* margin is -0.5 * dimension */
    margin-top: -25px;    
}

.loading-text-almost{
    display:none;
}


.container-primary {
    background: #fff;
    border: 1px solid #ddd; 
    margin: 50px 0;
    padding: 10px 10px 20px;
}

#rx-header{    
    margin: 0px 0 20px;
    padding:5px 15px;
    text-align:center;
    color:#fff;
    background:#FFF;    
}
#rx-header h3{    
    width:100%;
    text-align:center;
    line-height:110%;
}

#rx-header h3 small{    
    color:#fff;
    font-size:60%;
    line-height:80%;
}

#label-rx-contact-dr{
    font-size:100%;
	 line-height:1.5;
}

#label-rx-contact-dr [type='checkbox']{
    margin: 0 0.5rem 0 0;
}

.rx-label{
    width:100%;
}

#rx-header img{
    max-width:100%;    
    max-height:100px;
	 color: #000
}

.table-success{
    color: #1b7a3e;
}

.table-error{
    color: #f04124;    
}

.input-group-button{
    vertical-align:top;
}


@media only screen and (max-width: 700px),
(min-device-width: 414px) and (max-device-width: 1024px)  {

    table.prescriptions {
        display: block;
        width: 100%;
        margin: 0;
    }

    table.prescriptions thead {
        display: block;
        width: 100%;
        margin: 0;
    }

    table.prescriptions tbody {
        display: block;
        width: 100%;
        margin: 0;
    }

    table.prescriptions th {
        display: block;
        width: 100%;
        margin: 0;
    }

    table.prescriptions td {
        display: flex;
        flex-direction:row;
        flex: 1;
    }

    table.prescriptions tr {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    table.prescriptions thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table.prescriptions td {
        border: none;
        /*border-bottom: 1px solid #eee;*/
        position: relative;
    }

    /**/

    /***** RX Name *****/
    table.prescriptions td:nth-of-type(2):before { content: ""; }
    table.prescriptions td:nth-of-type(2) { 
        font-size:20px;
        padding-top:-5px;
        margin-top:0px;
        -webkit-order: 1;
        order: 1;
        font-weight: bold;
    }

    /***** RX Number *****/
    table.prescriptions td:nth-of-type(1):before { 
        font-weight: bold;
        content: "Rx: "; 
        margin-right: 5px;
    }
    table.prescriptions td:nth-of-type(1) { 
        margin-top:-40px;
        -webkit-order: 2;
        order: 2;
        font-weight: bold
    }

    /***** RX Status *****/
    table.prescriptions td:nth-of-type(7):before { content: ""; }
    table.prescriptions td:nth-of-type(7) { 
        margin-top:-5px;
        font-size:18px;
        -webkit-order: 3;
        order: 3;
    }

    /***** RX Last Filled *****/
    table.prescriptions td:nth-of-type(4):before { 
        font-weight: bold;
        content: "Last Filled: ";
        margin-right: 5px;
    }
    table.prescriptions td:nth-of-type(4):after { 
        position: absolute;
        top: 10px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
    table.prescriptions td:nth-of-type(4) { 
        margin-top:-15px;
        -webkit-order: 4;
        order: 4; 
    }

    /***** RX Quantity Remaining *****/
    table.prescriptions td:nth-of-type(3):before { 
        font-weight: bold;
        content: "Quantity Remaining: ";
        margin-right: 5px;
    }
    table.prescriptions td:nth-of-type(3):after { 
        position: absolute;
        top: 10px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
    table.prescriptions td:nth-of-type(3) { 
        margin-top:-15px;
        -webkit-order: 5;
        order: 5; 
    }

    /***** RX Refills Remaining *****/
    table.prescriptions td:nth-of-type(6):before { 
        font-weight: bold;
        content: "Refills Remaining: ";
        margin-right: 5px;
    }
    table.prescriptions td:nth-of-type(6):after { 
        position: absolute;
        top: 10px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
    table.prescriptions td:nth-of-type(6) { 
        margin-top:-15px;
        -webkit-order: 6;
        order: 6; 
    }

    /***** RX Last Fill Quantity *****/
    table.prescriptions td:nth-of-type(5):before { 
        font-weight: bold;
        content: "Last Fill Quantity: "; 
        margin-right: 5px;
    }
    table.prescriptions td:nth-of-type(5):after { 
        position: absolute;
        top: 10px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
    table.prescriptions td:nth-of-type(5) { 
        margin-top:-15px;
        -webkit-order: 7;
        order: 7; 
    }

    /***** Submit Button / Checkbox *****/
    table.prescriptions td:nth-of-type(8) { 
        -webkit-order: 1;
        order: 1;
        border: none;
        position: relative;
        align-content: right;
        padding: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
    table.prescriptions td:nth-of-type(8)>div {
        position:absolute;
        right:40px;
        top: 60px;
        float:right;
        border-left: 1px solid gray;
        padding-left: 25px;
    }
    table.prescriptions td:nth-of-type(8) em {
        display: none;
    }
}



/* Dropdown Button */
.dropbtn {
    background-color: #D11241;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
    background-color: #D11241;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 10px;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #f1f1f1}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

.profile_disclaimer {
    font-size: 10pt; 
    text-align: center
}

.padding-0 {
    padding: 0!important;
}

.blue-text {
    color: #0D5AB5;
    font-weight: bolder
}

.red-text {
    color: rgb(181, 13, 41);
    font-weight: bolder
}


/* Prescription View - New mobile layout following inline with the Mobile Apps design */
.script-chechbox-color {
    border-color: #D11241;
}

.script-chechbox-border {
    margin:auto; 
    width: 30px; 
    height:30px; 
    border-style: groove; 
    border-width: 3px;
}

#submit_quick_refill {
	position: relative;
	left: calc(50% - 70px);
}

::placeholder {
	color: #80888e !important;
	opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
	color: #80888e !important;
}

::-ms-input-placeholder { /* Microsoft Edge */
	color: #80888e !important;
}

@media print {

	.container-primary{
		border:none!important;
		margin: 30px 0 0 0;
	}

	.print-hide{
	display:none !important;
	}

	.page-header{
	max-width:100%; !important;
	max-height:90px !important;
	}

}
