* {
	margin:0;
	padding:0;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}

div.hr {
	border-color:#2A3A82;
	background-color:#2A3A82;
	width:98%;
	height:3px;
}

body {
	background-color:#F2F3F8;
}

body#login {
	background-image: url('https://crm.willcrossseed.com/assets/Background.jpg');
	background-repeat:no-repeat;
	background-attachment:fixed;
	background-position:center;
}

/* Text Styling */

h1, h2, h3, h4, h5 {
	font-family:'Montserrat', sans-serif;
	text-transform: uppercase;
}

h1 {
	font-size:30px;
	margin:15px 0px;
}

h2 {
	font-size:26px;
	margin:15px 0px;
}

h3 {
	font-size:24px;
}

h4 {
	font-size:20px;
}

h5 {
	font-size:18px;
}

p {
	font-family: 'Open Sans', sans-serif;
	font-size:16px;
	margin:10px 0px;
}

p.table-link {
	color:blue;
}

p.table-link:hover {
	text-decoration:underline;
	cursor:pointer;
}

p.extraMarginTop {
    margin-top:30px;
}

a {
	color:#2A3A82;
}

a:hover {
	color:#2A3A82;
	text-decoration:underline;
}

div.separator {
    width:100%;
    height:1px;
    background-color:#c7c7c7;
}

/* Login Page Styling */

#login-content {
	background-color:white;
	margin:0 auto;
	margin-top:100px;
	width:400px;
	max-width:400px;
	box-shadow: 0px 0px 3px 0px black;
	border-radius:15px;
}

#login-header {
	min-height:50px;
	color:white;
	background-color:#2A3A82;
	padding-top:20px;
	text-align:center;
	border-top-left-radius:15px;
	border-top-right-radius:15px;
	padding-bottom:15px;
}

#login-form {
	padding:25px;
	margin:0 auto;
}

div.login-error {
	width:100%;
	max-width:100%;
	background-color:red;
	color:white;
	padding:4px 15px;
	margin:20px auto;
	font-weight: bold;
	text-align:center;
	box-sizing:border-box;
	border-radius:15px;
}

/* Input and form styling */

input.login::-webkit-input-placeholder { /* Edge */
	color: black;
	font-weight:bold;
}

input.login:-ms-input-placeholder { /* Internet Explorer */
	color: black;
	font-weight:bold;
}

input.login::placeholder {
	color: black;
	font-weight:bold;
	opacity:1;
}

input, select, textarea {
	border-radius:0;
	-webkit-appearance:none;
	-webkit-border-radius:0;
	box-sizing:border-box;
	-moz-box-sizing: border-box;
	color: black;
	width:100%;
	max-width:100%;
	padding:12px;
	font-size:18px;
	margin:10px 0px;
}

select {
	/*appearance:menulist;*/
}

textarea {
	font-family: 'Open Sans', sans-serif;
	font-size:16px;
	margin:10px 0px;
}

input.login {
	max-width:100%;
	width:100%;
	font-size:18px;
	margin-top:10px;
	padding:14px;
	-webkit-appearance: none;
	border-radius: 15px;
	-webkit-border-radius: 15px;
	background-color:#EEEEEE;
	border:2px solid #DDDDDD;
	font-weight:bold;
}

input.special {
	display:none;
}

input[type=submit] {
	max-width:100%;
	width:100%;
	background-color:#2A3A82;
	border:none;
	color:white;
	padding:14px;
	margin-top:20px;
	text-decoration:none;
	cursor:pointer;
	font-size:19px;
	font-weight:700;
	text-transform:uppercase;
	font-family:'Montserrat', sans-serif;
}

input.login[type=submit] {
	-webkit-appearance: none;
	border-radius: 15px;
	-webkit-border-radius: 15px;
}

.dollar-sign {
    width:100%;
	display:inline-block;
	position:relative;
}

.dollar-sign input {
	padding-left:25px;
}

.dollar-sign:before {
	position: absolute;
	content: "$";
	left: 10px;
	top: 20px;
	font-size: 16pt;
	color: gray;
}

input[type=file] {
	width: 0.1px;
	height:0.1px;
	opacity:0;
	overflow:hidden;
	position:absolute;
	z-index:-1;
}

label {
	color:white;
	display:inline-block;
	background-color:#2A3A82;
	border:none;
	padding:14px;
	margin-top:20px;
	text-decoration:none;
	cursor:pointer;
	font-size:19px;
	font-weight:700;
	text-transform:uppercase;
	font-family:'Montserrat', sans-serif;
	cursor:pointer;
	padding-left:55px;
}

label:hover {
	outline:1px dotted #000;
	outline:-webkit-focus-ring-color auto 5px;
}

input[type=file]:focus + label {
	outline:1px dotted #000;
	outline:-webkit-focus-ring-color auto 5px;
}

.outside-icon {
    position:relative;
}
	 
.outside-icon i {
    position:absolute;
    top:-50px;
    font-size:24px;
    padding:12px 15px;
    color:white;
}

/* CSS Grid Layout Styling */

.main-grid-container {
	display:grid;
	grid-template-columns: 15% auto;
	/*grid-gap:10px;*/
	background-color:#F2F3F8;
	height:100vw;
	/*width:100vw;*/
	width:100%;
	box-sizing:border-box;
}

.grid-menu {
	background-color: #2A3A82;
	box-sizing:border-box;
	overflow:hidden;
}

.mobile-grid-menu {
	background-color: #2A3A82;
	box-sizing:border-box;
	display:none;
	overflow:hidden;
}

.main-grid-content {
	padding:30px;
	box-sizing:border-box;
}

.secondary-grid-container {
	display:grid;
	grid-template-columns: 1fr 1fr;
	box-sizing:border-box;
	grid-column-gap:20px;
	max-width:100%;
	align-items: flex-start;
}

/* Other Styling */

ul.nav {
	list-style:none;
}

ul.nav > li {
	color:white;
	font-size:18px;
	font-weight:bold;
	text-transform:uppercase;
	font-family: 'Montserrat', sans-serif;
	margin-bottom:10px;
	width:100%;
	padding:10px 35px;
	box-sizing:border-box;
}

ul.nav > li.active {
	border-right:5px solid #A5CD39;
}

ul.nav > li > a {
	color:white;
	text-decoration:none;
}

ul.nav > li:hover {
	background-color:#2a89b5;
}

ul.nav > li.nonlink:hover {
	background-color: #216787;
}

ul.nav > li.nonlink {
	font-size:24px;
	text-decoration:underline;
}

ul.nav > li#ipad {
	display:none;
}

ul.nav > li#desktop {
	display:block;
}

button {
	padding:10px;
	background-color: #2A3A82;
	color:white;
	border-radius:5px;
	font-size:16px;
	font-weight:bold;
	margin-right:15px;
	border:none;
	cursor:pointer;
}

button.deletebutton {
    width:100%;
    background-color:red;
    padding:14px;
    font-size:19px;
    font-weight:700;
    text-transform:uppercase;
    font-family:'Montserrat', sans-serif;
    border-radius:0px;
}

/* Table styling */

table {
	width:100%;
	font-size:16px;
	font-family:'Open sans', sans-serif;
	text-align:left;
	border-collapse:collapse;
	margin:20px 0px;
}

tr.header {
	background-color: #2A3A82;
}

tr.header > th {
	color:white;
	font-weight:bold;
}

tr:hover {
	background-color:#EEE;
}

tr.header:hover {
	background-color:#2A3A82;
}

th, td {
	padding:15px;
	border-bottom:1px solid #DDD;
}

th a {
	color:white;
	text-decoration:none;
}

th a:hover {
	color:white;
	text-decoration:underline;
}

/* User data table styling */

table.userdata > tbody > tr > td {
    border:1px solid #ddd;
}

table.userdata > tbody > tr > td.userdata:hover {
    background-color:white;
}

table.userdata > tbody > tr {
    background-color:white;
}

table.userdata > tbody > tr:hover {
    background-color:white;
}

table.userdata > tbody > tr > td:nth-child(1) {
    width:25%;
}

table.userdata > tbody > tr > td:nth-child(2) {
    width:75%;
}

table.userdata.quarter > tbody > tr > td:nth-child(1) {
    width:25%;
}

table.userdata.quarter > tbody > tr > td:nth-child(2) {
    width:25%;
}

/* Content block styling */

div.content-block {
	background-color:white;
	box-shadow: 0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);
	padding:15px;
	border-radius:8px;
	box-sizing:border-box;
	width:100%;
	margin-bottom: 15px;
}

a.basic {
	text-decoration:none;
}

span.closemessage {
	position:relative;
	top:-25px;
	left:93%;
	font-size:16px;
	font-weight:bold;
	cursor:pointer;
	text-transform:uppercase;
	font-family:'Montserrat', sans-serif;
}

/* Log styling */

div.log {
	margin:10px 0px;
	border-top:1px solid gray;
	border-bottom:1px solid gray;
}

/* Success and error divs */

div.success {
    background-color:#94fb94c4;
    padding:15px;
    border-radius:15px;
    margin:15px 0px;
}

div.failure {
    background-color:#ff1a1ab3;
    padding:15px;
    border-radius:15px;
    margin:15px 0px;
}

div.notice {
    background-color:#ff9141c4;
    padding:15px;
    border-radius:15px;
    margin:15px 0px;
}

/* Order action dropdown styling */

.menubtn {
	background-color:#c7c7c7;
	color:black;
	padding:10px;
	font-size:16px;
	border:none;
	cursor:pointer;
	font-weight:normal;
	border-radius:0px;
}

.menubtn:hover, .menubtn:focus {
	background-color: #c8c8c8;
}

.dropdown {
	position:relative;
	display:inline-block;
}

.dropdown-content {
	display:none;
	position:absolute;
	background-color: #f1f1f1;
	min-width:160px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index:1;
}

.dropdown-content a {
	color:black;
	padding:12px 16px;
	text-decoration:none;
	display:block;
}

.dropdown-content a:hover {
	background-color:#ddd;
}

.show {
	display:block;
}

/* Dashboard styling */

.dashboard-grid {
	display:grid;
	grid-template-columns: 50% 50%;
	/*grid-gap:10px;*/
	/*width:100vw;*/
	width:100%;
	box-sizing:border-box;
	margin-bottom:20px;
}

.dashboard-grid-half {
    display:grid;
    grid-template-columns: 50% 50%;
    width:100%;
    box-sizing:border-box;
    margin-bottom:20px;
    margin-top:20px;
}

.dashboard {
    display:inline-block;
    background-color: #2A3A82;
    color:white;
    text-align:center;
    padding:20px;
    border-radius:15px;
    margin:15px 15px 15px 0px;
    box-sizing:border-box;
}

.dashboard p {
    font-size:22px;
}

.chart-container {
    position:relative;
    width:100%;
    height:40vw;
    margin-top:15px;
}

.bar-chart-container {
    position:relative;
    width:100%;
    height:40vw;
    margin-top:15px;
}

/* Mobile styling */

span.mobile-menu-icon {
	display:none;
}

.closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
  color:white;
  text-decoration:none;
}

.closebtn:hover {
	color:white;
	text-decoration:none;
}

/* Pagination styling */

ul.pagination {
    list-style-type: none;
    padding-left:0px;
    margin: 20px 0px 80px 0px;
    border-radius: 4px;
}

ul.pagination > li {
    display: inline;
}

ul.pagination > li:first-child > a {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

ul.pagination > li:last-child > a {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

ul.pagination > li > a {
    margin-left:0;
    border: 1px solid #ddd;
    background-color: #fff;
    line-height: 1.428;
    padding:6px 12px;
    position:relative;
    float:left;
    text-decoration: none;
    color:#337ab7;
}

/* iPad landscape */ 
@media only screen and (max-width: 1200px) {
	.main-grid-container {
		grid-template-columns: 25% auto;
	}
	
	tr:nth-child(even) {
		background-color:#f2f2f2;
	}
	
	#lineitemstable > tbody > tr > td > select, input {
		font-size:14px;
	}
	
	ul.nav > li#ipad {
		display:block;
	}
	
	ul.nav > li#desktop {
		display:none;
	}
	
	span.closemessage {
		left:88%;
	}
}

/* iPad portrait */
@media only screen and (max-width:770px) {
	span.closemessage {
		left:83%;
	}
}

/* iPhone portrait */ 
@media only screen and (max-width:600px) {

	span.mobile-menu-icon {
		display:initial;
		font-size:20px;
		font-family:'Montserrat', sans-serif;
		text-transform: uppercase;
	}

	.main-grid-container {
		display:grid;
		grid-template-columns: 0% auto;
		/*grid-gap:10px;*/
		background-color:#F2F3F8;
		height:100vw;
		/*width:100vw;*/
		width:100%;
		box-sizing:border-box;
	}
	
	/*.grid-menu {
		display:none;
		overflow:hidden;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}*/
	
	.mobile-grid-menu {
		display:none;
		overflow:hidden;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index:1;
	}
	
	ul.nav {
		margin-left:15%;
	}
	
	ul.nav > li {
		font-size:26px;
	}
	
	ul.nav > li.nonlink {
		font-size:32px;
		text-decoration:underline;
	}
	
	span.closemessage {
		top:5px;
		left:0px;
	}
	
	.dashboard-grid {
	    grid-template-columns: 100%;
	}
	
	.dashboard-grid-half {
	    grid-template-columns: 100%;
	}
	
	.chart-container {
	    margin-bottom:250px;
	}
	
	.bar-chart-container {
        width:325px;
        height:400px;
    }
}