.button-bar, .button-bar li {
    display: inline-block;
    margin: 0;
    list-style: none;
    padding: 0;
    overflow: hidden;
}

.button-bar {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 0 10px 0 0;
}

.button-bar li {
    float: left;
}

.button-bar li a {
    float: left;
    background-color: #eee;
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    border-right: 1px solid #ccc;
}

.button-bar li:last-child a {
    border: none;
}

.button-bar li.selected a {
    background-color: #ccc;
    font-weight: bold;
}

.message {
	background-color: #eee;
	color: #333;
	padding: 20px;
	font-weight: bold;
    clear: both;
}

.message-error {
	color: #a94442;
	background-color: #f2dede;
}

.message-info {
	color: #31708f;
	background-color: #d9edf7;
}

.message-warning {
	color: #8a6d3b;
	background-color: #fcf8e3;
}

.message-success {
	color: #3c763d;
	background-color: #dff0d8;
}

.form-submit {
	overflow: hidden;
}

.form-submit.right {
	text-align: right;
}

.form-submit input, .button {
	display: inline-block;
	border: none;
	background-color: #6649a2;
	color: #fff;
	outline: none;
	padding: 10px 20px;
	font: inherit;
	border-radius: 2px;
	font-size: 14px;
	text-decoration: none;
	font-weight: normal;
}

table .button {
    padding: 6px 20px 5px 20px;
    margin: 0 10px 0 0;
    background-color: #999;
}

table .right .button {
    margin: 0 0 0 10px;
}

h1, h2 {
	overflow: hidden;
}

h1 .button, h2 .button, h1 .image-upload, h2 .image-upload {
	float: right;
	margin-left: 10px;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
}

.calendar th, .calendar td {
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fff;
    width: 14.285714285714285714285714285714%;
    vertical-align: top;
}

.calendar td {
    height: 150px;
}

.calendar th {
    background-color: #eee;
}

.calendar .date {
    font-weight: bold;
}

.calendar .job {
    display: block;
    padding: 5px;
    margin: 5px 0 0 0;
    text-decoration: none;
    background-color: #eee;
    color: #333;
}

.popup {
    z-index: 99999999;
    display: none;
}

.popup-bg {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-outer, .popup-inner {
    position: absolute;
    width: 800px;
    height: 600px;
}

.popup-outer {
    right: 50%;
    bottom: 50%;
}

.popup-inner {
    top: 50%;
    left: 50%;
}

.popup-title {
    padding: 10px;
    line-height: 18px;
    font-size: 18px;
    font-weight: bold;
    background-color: #ccc;
    border-radius: 3px 3px 0 0 ;
}

.popup-close {
    font-size: 14px;
    line-height: 14px;
    padding: 5px;
    background-color: #333;
    color: #fff;
    border-radius: 3px;
    float: right;
    margin-top: -3px;
    margin-right: -3px;
    text-decoration: none;
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    text-align: center;
}

.popup-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 38px;
    background-color: #fff;
    border-radius: 0 0 3px 3px;
}