* {
    margin: 0;
    padding: 0;
    z-index: 1;
    box-sizing: border-box;
    font-family: Arial;
}

ul, ol, li {
	list-style-type: none;
}

a {
	text-decoration: none;
}

body {
    text-align: center;
	background: #fff;
}

#wrap {
	width: 1248px;
	margin: 0 auto;
}

header, footer, main, aside, #messages .message, #confirm {
	border: 1px solid black;
	padding: 1em;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, .5);
}
	
	header, footer {
		width: 100%;
		margin: 1em auto;
		clear: both;
	}
	
	aside, main {
		margin-bottom: 1em;
		text-align: left;
	}
	
	aside {
		width: 200px;
		float: left;
	}
		
		aside li:not(:last-child) {
			margin-bottom: .5em;
		}
		
			aside li a {
				display: block;
				border: 1px solid rgba(0, 0, 0, .3);
				padding: 1em;
			}
	
main {
	width: calc( ( 100% - 200px ) - 1em );
	float: right;
}
	
	main .bar {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 1em;
	}

#messages .error, #messages .warning, #messages .success {
	margin-bottom: 1em;
	padding: 1em;
	color: #ffffff;
}

#messages .error {
	background: rgb(97 0 8 / 75%);
}

#messages .warning {
    background: rgb(143 43 3 / 75%);
}

#messages .success {
	background: rgb(0 91 0 / 75%);
}

body.confirm *:not(#confirm):not(#confirm *) {
    display: none;
}

#confirm {
    position: fixed;
    top: 50vh;
    left: 50vw;
    background: #ffffff;
    padding: 1em;
    display: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

body.confirm #confirm {
    display: block;
}
    
#confirm span {
    display: block;
    width: 100%;
    margin-bottom: 1em;
}

#confirm a {
    display: inline-block;
    margin: 0 1em;
    border: 1px solid rgba(0, 0, 0, .5);
    padding: .5em;
    cursor: pointer;
}

table {
	width: 100%;
	border-collapse: collapse;
}
	table th, table td {
		padding: 10px;
		border: 1px solid #ddd;
		text-align: left;
	}
	table th {
		background-color: #f4f4f4;
	}
	table tr:nth-child(even) {
		background-color: #f9f9f9;
	}

        .status-paid {
            color: green;
            font-weight: bold;
        }
        .status-cancelled {
            color: red;
            font-weight: bold;
        }
        .status-expired {
            color: orange;
            font-weight: bold;
        }

form {
	padding: 1em;
	border: 1px solid rgba(0, 0, 0, .5);
}

.bar form {
    display: flex;
    padding: 0;
    border: 0;
}
	
	form > div {
		width: 100%;
		padding: .5em;
		border: 1px solid rgba(0, 0, 0, .25);
		margin-bottom: 1em;
		display: flex;
		flex-direction: row;
		align-items: center;
	}
            
        form span {
            display: block;
                width: 200px;
                float: left;
        }
	
		form label {
			display: block;
			width: 200px;
		}
		
		form input, form button, form select, textarea {
			width: 100%;
			max-width: 200px;
			padding: 1em;
			border: 1px solid rgba(0, 0, 0, .5);
			cursor: type;
		}
		
		form input.error, form textarea.error {
			border: 1px solid red;
			background: rgba(255, 0, 0, .1);
		}
		
		form input[type=submit], form input[type=button] {
			cursor: pointer;
		}
                
                form input[type=radio] {
                    width: 10px;
                }
                
                form textarea {
                    max-width: 300px;
                    height: 100px;
                    resize: none;
                }
		
		form input[type=checkbox] {
			width: 20px;
			position: relative;
			top: 1px;
		}

#form_login, #form_otp {
    margin: 20px auto;
    display: block;
    width: 400px;
    text-align: center;
}

#form_login input, #form_otp input {
    background: #ffffff;
    border: 1px solid black;
    padding: 5px;
}

#form_login input.error, #form_otp input.error {
    border: 1px solid red;
    background: rgba(255, 0, 0, .1);
}