* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.boxed {
    border: 1px solid black;
    padding: .5em;
    background: #fff;
	border-radius: .5em;
}

.clear {
	clear: both;
}

html {
    background: rgba(0, 0, 0, .1);
}

body {
    font-family: Arial;
}

a {
	text-decoration: none;
	color: blue;
}

header {
    border: 1px solid black;
    width: calc(100% - 1em);
    max-width: 1248px;
    margin: 1em auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#wrap {
    width: calc(100% - 1em);
    max-width: 1248px;
    display: flex;
    justify-content: center;
    flex-direction: row;
    margin: 0 auto 1em auto;
	gap: 1em;
}

nav {
    width: 200px;
}
    
nav a {
    font-size: 1.5em;
    text-transform: uppercase;
}

nav a.active {
    color: red;
}

main {
    width: calc(100% - 200px);
	text-align: center;
}

.message {
    padding: 5px;
    font-size: 1.2em;
    background: #ffffff;
    margin: 1em auto;
    max-width: 400px;
    text-align: center;
}

.message.warning {
    color: brown;
    border: 1px solid brown;
}

.message.error {
    color: red;
    border: 1px solid red;
}

.message.success {
    color: green;
    border: 1px solid green;
}

table {
    border: 1px solid black;
    width: 100%;
    border-radius: 5px;
}

table tr {
}

table tr td, table tr th {
	padding: .2em;
	text-align: center;
        vertical-align: top;
}

table tr:not(:last-child) td, table tr th {
	border-bottom: 1px solid black;
}

table tr > *:not(:last-child) {
    border-right: 1px solid black;
}

table tr td .date {
    border: 1px solid rgba(255, 0, 0, .8);
    background: rgba(255, 0, 0, .1);
    padding: .2em;
}

table tr td .reservations {}

table tr td .reservations .row {
    font-size: .8em;
    padding: .5em 0;
    border: 1px solid rgba(0, 0, 255, .3);
    border-top: 0;
    background: rgba(0, 0, 255, .1);
    cursor: pointer;
}

table tr.status-accepted td {
    background: rgba(0, 255, 0, .3);
}

table tr.status-refused td {
    background: rgba(255, 0, 0, .3);
}

/*
table tr td .row1 { background: red; }
table tr td .row2 { background: blue; }
table tr td .row3 { background: yellow; }
table tr td .row4 { background: green; }
*/

form {}

form label {
	font-size: .9em;
	font-weight: 400;
	display: inline-block;
	margin-bottom: .3em;
}

form input, form textarea, form select {
	border: 1px solid rgba(0, 0, 0, .5);
	padding: .3em;
	width: 100%;
	max-width: 400px;
	cursor: pointer;
	text-align: center;
        background: rgba(0, 0, 0, .05);
        border-radius: .25em;
}

form.shortinputs input {
	width: 150px;
}

form input[type=submit], form input[type=button] {
	width: auto;
	padding: .5em;
}

form.search {
	display: flex;
	align-items: center;
}

	form.search input, form.search select {
		width: 200px;
		margin-right: 15px;
	}
		
		form.search select option:first-child {
			color: rgba(0, 0, 0, .2);
		}
		
		form.search a:last-child {
			margin-left: auto;
		}

.pagination {
	text-align: center;
	margin: 20px;
}
	
	.pagination a {
		display: inline-block;
		margin: 0 5px;
		font-size: 1.2em;
	}
	
	.pagination a.active {
		color: red;
	}

#login {
    margin: 10vh auto;
    width: 200px;
    text-align: center;
}

#vehicle_pictures {}
    
#vehicle_pictures div {
    float: left;
    margin: 1em;
}

#vehicle_pictures div img {
    height: 200px;
}

#vehicle_pictures label {
    display: block;
    width: 100%;
    clear: both;
}

#map {
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 0 auto;
}

body .overlay {
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    opacity: .9;
    z-index: 8888;
}

body.confirm .overlay, body.info .overlay {
    width: 100%;
    height: 100vh;
}

#confirm, #info {
    z-index: 9999;
    position: fixed;
    background: #dfdfdf;
    top: 50px;
    border: 1px solid black;
    padding: 10px;
    left: 50vw;
    transform: translateX(-50%);
    text-align: center;
    border-radius: 7px;
}

    #confirm a {
        display: inline-block;
        padding: 5px;
        border: 1px solid black;
        margin: 10px 5px 5px 5px;
        border-radius: 5px;
    }

    #info {
        cursor: crosshair;
    }

#calendar {}
	
	#calendar .navigation {
		margin: 20px 0;
	}
		
		#calendar .navigation a {}
	
	#calendar .vehicles {
		width: 160px;
	}
		
		#calendar .vehicles .vehicle {
			width: 100%;
			text-align: left;
			padding: 5px;
			height: 26px;
		}
	
	#calendar .rows {
		width: calc(100% - 160px);
		float: right;
	}
		
		#calendar .rows .row {}
			
			#calendar .rows .row .cube {
				float: left;
				width: 26px;
				height: 26px;
				border: 1px solid lightgrey;
				cursor: pointer;
				display: flex;
				align-items: center;
				justify-content: center;
				opacity: .75;
			}
			
			#calendar .rows .row.dates .cube {
				background: red;
				color: white;
			}
				
			#calendar .rows .row.vehicle .cube.accepted { background: #890707; }
			#calendar .rows .row.vehicle .cube.pending { background: #00f1ff; }

#reserve_now {
	display: none;
}

#reserve_now.show {
	display: block;
	border: 1px solid black;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 1em;
	background: #ffffff;
}
	
	#reserve_now input, #reserve_now button {
		display: inline-block;
		margin: 5px;
		border: 1px solid black;
		background: grey;
		padding: 10px;
	}