/* Fresh CSS */

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-kerning: auto;
}
::-moz-selection {
	color: #fff;
	text-shadow: indigo 1px 1px 1px;
	background-color: darkviolet !important;
}
::-webkit-selection {
	color: #fff;
	text-shadow: indigo 1px 1px 1px;
	background-color: darkviolet !important;
}
::selection {
	color: #fff;
	text-shadow: indigo 1px 1px 1px;
	background-color: darkviolet !important;
}
::-webkit-input-placeholder {
	color: rgba(0,0,0,.5);
}
::-moz-placeholder {
	color: rgba(0,0,0,.5);
}
:-ms-input-placeholder {
	color: rgba(0,0,0,.5);
}
:placeholder-shown {
	color: rgba(0,0,0,.5);
}
html {
	font-size: 16px;
	line-height: 1;
	font-weight: 400;
	font-family: 'Source Sans Pro', sans-serif;
	-webkit-text-size-adjust: 100%;
	overflow: hidden;
	overflow-x: hidden;
	overflow-y: auto;
}
input, select {
	font-size: 16px;
	line-height: 1;
	font-weight: 400;
	font-family: 'Source Sans Pro', sans-serif;
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	color: white;
	font-size: 14pt;
	text-shadow: rgba(0,0,0,.05) 1px 2px 2px;
	overflow: hidden;
	overflow-x: hidden;
	overflow-y: auto;
}
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em 0;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.02em;
	font-family: 'Fira Sans', sans-serif;
}
h1 {
	font-size: 48pt;
	font-weight: 900;
}
h2 {
	font-size: 34pt;
	font-weight: 600;
}
h3 {
	font-size: 24pt;
}
h4 {
	font-size: 22pt;
}
h5 {
	font-size: 18pt;
}
h6 {
	font-size: 14pt;
}
a {
	outline: none;
	transition: color .2s ease-in-out;
}
p {
	margin: 0;
}
p + p {
	margin-top: .75em;
}
hr {
	margin: 2em 0;
	border: none;
	height: 2px;
	background: rgba(255,255,255,.7);
}
pre,
code {
	font-family: 'Source Code Pro', monospace;
}
pre {
	padding: 1em;
	border: 1px solid currentColor;
	word-break: break-word;
	white-space: pre-wrap;
	font-kerning: auto;
}
[data-theme] [data-button],
[data-theme] [data-select] {
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
	border: 1px solid currentColor;
}
[data-theme] [data-select] {
	background-color: transparent;
	outline: none;
	cursor: pointer;
}
[data-theme] [data-button=blue],
[data-theme] [data-select=blue] {
	color: aqua;
}
[data-theme] [data-button=green],
[data-theme] [data-select=green] {
	color: lime;
}
[data-theme] [data-button=red],
[data-theme] [data-select=red] {
	color: #f00;
}
[data-theme] [data-button=grey],
[data-theme] [data-select=grey] {
	color: lightgrey;
}
[data-theme] [data-button=outline],
[data-theme] [data-select=outline] {
	color: currentColor;
}
.disabled,
[hidden],
[disabled] {
	pointer-events: none;
	opacity: .8;
}
[class^=float-] {
	display: block;
	width: auto;
	margin: 1em auto;
}
@media (min-width: 600px) {
	.float-left {
		float: left;
		margin: 0 1em .5em 0;
	}
	.float-right {
		float: right;
		margin: 0 0 .5em 1em;
	}
}

/* Roundedness */
pre,
[data-button] {
		border-radius: 3px;
}

/* Orange theme */
[data-theme*=orange] {
	background: hsl(236, 90%, 55%);
	background: -webkit-linear-gradient(top,
		hsl(20, 85%, 43%) 0,
		hsl(20, 91%, 50%) 50vh,
		hsl(20, 91%, 50%) 100%
	);
}
[data-theme*=orange] a,
[data-theme*=orange] pre,
[data-theme*=orange] [data-select] {
	color: yellow;
}
[data-theme*=orange] [data-button]:hover,
[data-theme*=orange] [data-button]:focus,
[data-theme*=orange] [data-select]:hover,
[data-theme*=orange] [data-select]:focus {
	color: violet;
}

/* Green theme */
[data-theme*=green] {
	background: hsl(236, 90%, 55%);
	background: -webkit-linear-gradient(top,
		hsl(100, 85%, 33%) 0,
		hsl(100, 91%, 40%) 50vh,
		hsl(100, 91%, 40%) 100%
	);
}
[data-theme*=green] a,
[data-theme*=green] pre {
	color: yellow;
}
[data-theme*=green] a:hover,
[data-theme*=green] a:focus {
	color: orange;
}

/* Blue theme */
[data-theme*=blue] {
	background: hsl(236, 90%, 55%);
	background: -webkit-linear-gradient(top,
		hsl(236, 85%, 43%) 0,
		hsl(236, 91%, 50%) 50vh,
		hsl(236, 91%, 50%) 100%
	);
}
[data-theme*=blue] a,
[data-theme*=blue] pre {
	color: turquoise;
}
[data-theme*=blue] a:hover,
[data-theme*=blue] a:focus {
	color: magenta;
}



/* Removes the clear button from date inputs */
input[type="date"]::-webkit-clear-button {
	display: none;
}

/* Removes the spin button */
input[type="date"]::-webkit-inner-spin-button { 
	display: none;
}

/* Always display the drop down caret */
input[type="date"]::-webkit-calendar-picker-indicator {
	color: #2c3e50;
	color: #fff;
}

/* A few custom styles for date inputs */
input[type="date"] {
	appearance: none;
	-webkit-appearance: none;
	/*font-family: "Helvetica", arial, sans-serif;*/
	font-size: 18px;
	/*color: #95a5a6;
	border:1px solid #ecf0f1;
	background:#ecf0f1;*/
	background: transparent;
	border-color: transparent;
	color: #fff;
	padding: 5px;
	display: inline-block !important;
	visibility: visible !important;
	cursor: pointer;
	width: 100%;
}

input[type="date"], focus {
	color: #95a5a6;
	color: #fff;
	box-shadow: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
}



.main {
	min-height: 100vh;
	text-align: center;
	padding-top: 100px;
	padding-bottom: 80px;
}
.content {
	width: 90%;
	max-width: 800px;
	display: inline-block;
}
.main h1 {
	font-size: 32px;
}
.table {
	flex-direction: column;
	display: inline-flex;
	text-align: left;
	border: 1px solid #fff;
	width: 100%;
}
.row {
	display: flex;
}
.row.past {
	opacity: .5;
}
.row.countin {
	background-color: rgba(255, 255, 255, 0.2);
}
.row.wtf {
	background-color: rgba(255, 0, 0, 0.5);
}
.row.wtf2 {
	background-color: rgba(255, 255, 0, 0.5);
}
.cell {
	border: 1px solid #fff;
	padding: 9px 10px;
}
.cell:nth-child(1) {
	width: 5%;
}
.cell:nth-child(2) {
	width: 35%;
}
.cell:nth-child(3) {
	width: 35%;
}
.middle .cell:nth-child(2),
.middle .cell:nth-child(3),
.final .cell:nth-child(2) {
	padding-left: 2px;
	padding-top: 2px;
	padding-bottom: 2px;
}
.cell:nth-child(4) {
	width: 18%;
}
.cell:nth-child(5) {
	width: 7%;
}
.cell.full {
	width: 100%;
}
.top .cell {
	font-weight: bold;
}
.ref {
	display: none;
}
.total {
	font-weight: bold;
}
#btnMore, .delete {
	cursor: pointer;
}
.head {
	font-weight: bold;
	margin-bottom: 8px;
}

@media (max-width: 640px) {
	.main {
		padding-left: 20px;
		padding-right: 20px;
	}
	.content {
		width: 100%;
	}
}
@media (max-width: 480px) {
	.main {
		padding-left: 10px;
		padding-right: 10px;
	}
	.main, input[type="date"] {
		font-size: 14px;
	}
	.main h1 {
		font-size: 28px;
	}
	.head {
		font-size: 16px;
	}
	.cell:nth-child(1) {
		padding-left: 5px;
		padding-right: 5px;
	}
	.cell:nth-child(2),
	.cell:nth-child(3) {
		width: 33%;
	}
	.cell:nth-child(4) {
		width: 19%;
	}
	.cell:nth-child(5) {
		width: 10%;
	}
}
@media (max-width: 414px) {
	.main, input[type="date"] {
		font-size: 13px;
	}
}