* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}


#loading
{
	display: none;
	position: fixed;
	top:0;
	left:0;
	height: 100vh;
	width: 100%;
	background-color: rgba(255,255,255,0.9);
	color: rgb(34, 152, 220);
	font-size: 100px;
	text-align: center;
	padding-top: 100px;
}

body
{
	background-color: #f4f4f4;
	color: #222;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	line-height: 1.6em;
}


.header
{
	padding: 120px 0 40px 0;
	background-image: url(../img/form-header-bkd.png);
	background-repeat:no-repeat;
	background-size:100% auto;
}

.header .logo
{
	float:left;
	height: 200px;
	margin-right:60px;
	margin-left:100px
}

.footer
{
	background-color: #dadada;
	padding: 40px 0;
	margin-top: 40px;
	text-align: center;
}

h1
{
	color:#1d3784;
	text-transform:uppercase;
	margin:80px 0 0 0;
	font-weight:bold;
	font-size:3em;
}
h1 span.green
{
	color:#89bf2d;
	display: block;
}

h2
{
	background-color:#1d3784;
	color:white;
	padding:10px;
	font-size:1.3em;
	margin:20px 0;
	border-radius:5px;
}


h3
{
	margin: 0.2em 0;
}

h4
{
	line-height:1.5em
}

.welcome
{
	text-align: center;
	font-size: 1.5em;
}

.key
{
	display: inline-block;
}
.inputField
{
	width: 100%;
	border: 1px solid #d6d6d6;
	font-size: 1.3em;
	padding: 0.5em;
	border-radius: 5px;
}
.inputField.form-required
{
	border: 1px solid #d43c3c;
	background-color: #ffecec;
}

.required-asterisk
{
	color: #da0000;
}

.unitField
{

	border:none;
	font-size: 1em;
	padding: 0.5em 0 0.5em 0.5em;
	border-right: 2px solid #00588B;
	border-bottom: 2px solid #00588B;
	vertical-align: top;
	 -webkit-appearance: none;
	-webkit-border-radius:0; 
    border-radius:0;
	margin: 0;
}

.bg-danger .unitField
{
	background-color: #ccc;
	text-decoration: line-through;
}

input[type="text"]:focus,
input[type="number"]:focus
{

}


.no_units
{
	width:  25%;
}
.description
{
	width: 75%;
}
.unit_cost
{
	width: 25%;
}
.unitTotal
{
	width: 50%;
}
.button.delLine
{
	font-size: 1em;
	width: 24%;
	display: inline-block;
	height: 30px;
	vertical-align: top;
	margin-left: 1%;
}
.unitLine
{
    margin: 0 0 15px 0;
}

@media (min-width:768px)
{
    .no_units
    {
        width:  10%;
    }
    .description
    {
        width: 60%;
    }
    .unit_cost
    {
        width: 10%;
    }
    .unitTotal
    {
        width: 10%;
    }
    .button.delLine
    {
        width: 9%;
        margin-left: 1%;
    }
    
    .unitLine
    {
        margin: 0 0 3px 0;
    }
}


.unitLine
{
	margin: 0 0 5px 0;
}

.total-spacer,
.total-label,
.total-number
{
	display: inline-block;
}

.total-label
{
	width: 50%;
	text-align: right;
	padding-right: 10px;
}
.total-number
{
	width: 50%;
	padding-left: 10px;
}

.total-sales,
.total-gst
{
	font-size: 1.5em;
	line-height: 1.5em;
}
.total-total
{
	border: 2px solid white;
	font-size: 1.5em;
	line-height: 2em;
	margin-top: 20px;
}

@media (min-width:360px)
{
    .total-total
    {
        font-size: 2em;
    }
}


@media (min-width:768px)
{
    .total-total
    {
        font-size: 3em;
    }
}

#sales,
#gst,
#total
{
	
}

#sales:before,
#gst:before,
#total:before
{
	content: "$";
}

.listItem
{
	width:50%;
	float: left;
	padding:5px;
}

@media (min-width:768px)
{
    .listItem
    {
        width:25%;
    }
}


.listItem .inner
{

	height: 200px;
	overflow: hidden;
	background-color: rgba(0,0,0,0.3);
	padding:10px;
	border-radius: 5px;
}

.listItem:hover .inner
{
	background-color: rgba(0,0,0,0.2);
	cursor: pointer;
}

.listItem.newItem .inner
{
	border: 3px dashed rgba(255,255,255,0.5);
	background-color: rgba(255,255,255,0.1);
	font-size: 5em;
	display: flex;
	justify-content: center;
	align-items: center;
	color: rgba(255,255,255,1);
	
}
.listItem.newItem:hover .inner
{
	background-color: rgba(255,255,255,0.3);
}


.listItem .address
{
	font-size: 12px;
	line-height: 1.6em;
}



label
{
	display: block;
	margin: 16px 0;
}
.clear
{
	width: 0;
	height: 0;
	clear: both;
}

.button,
.button:hover
.button:visited
{
	color: white;
	display: inline-block;
	padding: 0.5em 1em;
	background-color: rgb(34, 152, 220);
	text-decoration: none;
	border-radius: 5px;
	font-size: 1.5em;
	cursor: pointer;
		width: 100%;
	text-align: center;
}
.button:hover
{
	background-color: rgb(72, 188, 255);
}

.button.logout
{
	float: right;
	width: auto;
}
.button.back
{
	display: block;
	text-align: center;
	font-size: 2em;

}
.button.newLine
{
	margin: 20px 0;
}

.signPad
{
	margin-top: 20px;
}
.signPad canvas
{
	margin: 10px auto;
	display: block;
	cursor: crosshair;
	border: 1px solid #c9c9c9;
	background: repeating-linear-gradient( 135deg, rgba(238,238,238,0.5), rgba(238,238,238,0.5) 134px, transparent 134px, transparent 203px ), 
				repeating-linear-gradient( 0deg, #b5b5b5, #b5b5b5 1px, #ffffff 1px, #ffffff 100px );
}
.signPad canvas.form-required
{

	cursor: crosshair;
	background: repeating-linear-gradient( 45deg, #FFDFBD, #FFDFBD 20px, #ffede0 20px, #FFEDE0 40px );
}

.canvasContainer
{
	padding: 5px;
	background-color: #eee;
	border: 1px solid #ddd;
	border-radius: 6px;
	text-align: center;
}

#diagramCanvas
{
	background-color:white;
	margin:15px 0;
}

.footerActions
{
	text-align: center;
	margin: 50px 0;
}
.footerActions .button
{
	margin: 5px 0;
	padding: 1em 0;
}

.unit-table
{

	padding: 40px 0;
}

.icons
{
	font-size: 2em;
	margin-top: 15px;
}


.radio-label
{
	font-size: 21px;
	display: inline-block;
	padding: 0.5em 1em;
	background-color: #fff;
	color: #5a6971;
	border-radius: 5px;
	margin-right: 10px;
	cursor: pointer;
	border: 1px solid #d6d6d6;
	font-weight: lighter;
	margin: 0 10px 5px 0;
}

.radio-list .radio-label
{
	display: block;
}

.radio-button:checked + label
{
	background-color: rgb(34, 152, 220);
	color: #fff;
	border-color: rgb(34, 152, 220);
}

.radio-label:before
{
	content: "\f10c";
	font-family: FontAwesome;
	margin-right: 0.5em;
	color: #2298dc;
}

.radio-button:checked + label:before
{
	content: "\f058";
	color: #fff;
}


.radio-button
{
	display: none;
}

.radio-spacer
{
	height: 36px;
}

hr
{
	border-top: 1px solid #c9c9c9;
}