body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

div.templates {
    display: none
}

/*===== Forms and controls ==================================================*/

form {
    margin: 0;
    padding: 0;
}

input, textarea, select, button {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

textarea {
    overflow-x: hidden;
    overflow-y: auto;
    resize: none;
    border: 1px solid #ccc;
    padding: 3px;
    display: block;
}

input::-ms-clear {
    display: none;
}

select {
    height: 26px;
    padding: 3px 3px 3px 1px;
    border: 1px solid #ccc;
}

input[type=text],
input[type=password] {
    border: 1px solid #ccc;
    padding: 3px;
    height: 26px;
}

input[type=button],
input[type=submit],
button {
    background-color: #999;
    border: none;
    border-radius: 3px;
    color: #fff;
    line-height: 26px;
    padding: 0 10px;
    margin: 0;
    height: 26px;
    cursor: pointer;
    outline: none;
}

button img {
    margin-bottom: -3px;
}

input[type=button]::-moz-focus-inner,
input[type=submit]::-moz-focus-inner,
button::-moz-focus-inner {
    padding: 0;
    border: 0
}

input[type=button]:hover,
input[type=submit]:hover,
button:hover {
    background-color: #666;
}

input[type=button].small,
input[type=submit].small,
button.small {
    font-size: 11px;
    height: 20px;
    line-height: 20px;
    padding: 0 10px;
}

input[type=button].primary,
input[type=submit].primary,
button.primary {
    background-color: #b32a3a;
    background-color: #2374de;
}

input[type=button].primary:hover,
input[type=submit].primary:hover,
button.primary:hover {
    background-color: #9a1121;
    background-color: #1b5abe;
}

input[type=button][disabled],
input[type=button][disabled=disabled],
input[type=submit][disabled],
input[type=submit][disabled=disabled],
button[disabled],
button[disabled=disabled] {
    opacity: 0.5;
    cursor: default;
}

input[type=button] + input[type=submit],
input[type=submit] + input[type=submit],
button + input[type=submit],
input[type=button] + input[type=button],
input[type=submit] + input[type=button],
button + input[type=button],
input[type=button] + button,
input[type=submit] + button,
button + button {
    margin-left: 5px;
}

div.buttons {
    text-align: right;
}

/*===== Autogrow textarea ===================================================*/

#autogrow {
    position: absolute;
    top: -10000px;
    left: -10000px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 3px;
}

/*===== Login ===============================================================*/

body.login {
    background-color: #ccc;
}

div.login {
    position: fixed;
    left: 50%;
    top: 30%;
    width: 400px;
    margin: 0 auto;
    margin: -57px 0 0 -200px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    -webkit-border-radius: 5px;
    -mozborder-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 0 10px #666;
    -moz-box-shadow: 0 0 10px #666;
    box-shadow: 0 0 10px #666;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

div.login h1 {
    margin: 0 0 20px 0;
    color: #000;
    line-height: normal;
}

div.login table {
    margin: 0;
    border-collapse: collapse;
    width: 100%;
}

div.login td {
    padding: 0 0 4px 0;
}

div.login td:first-child {
    width: 1%;
    padding-right: 10px;
}

div.login input[type=text],
div.login input[type=password] {
    width: 100%;
}

div.login input[type=submit] {
    margin-top: 10px;
}

div.error {
    color: #f00;
    margin: 0 0 20px 0;
}

/*===== Header ==============================================================*/

header {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 50px;
    background-color: #336699;
    padding: 0 10px;
}

h1 {
    line-height: 50px;
    color: #fff;
    margin: 0;
    font-size: 24px;
    font-weight: normal;
}

header div.user {
    position: absolute;
    top: 0;
    right: 10px;
    line-height: 50px;
    color: #fff;
}

header a {
    color: #fff;
}

/*===== Errors and information messages======================================*/

div.bubble {
    display: none;
    position: absolute;
    z-index: 1;
    max-width: 200px;
    border: 2px solid #b32a3a;
    padding: 10px;
    background-color: #fff;
    color: #b32a3a;
    left: 200px;
    top: 200px;
    -webkit-box-shadow: 0 0 7px #666;
    -moz-box-shadow: 0 0 7px #666;
    box-shadow: 0 0 7px #666;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

div.bubble div.handle {
    position: absolute;
    width: 16px;
    height: 9px;
    left: 100px;
    bottom: -9px;
    background-image: url(../images/error-handle-bottom.png);
}

div.bubble.underneath div.handle {
    bottom: auto;
    top: -9px;
    background-image: url(../images/error-handle-top.png);
}

div.bubble.info {
    border-color: #999;
    color: #666;
}

div.bubble.info div.handle {
    background-image: url(../images/info-handle-bottom.png);
}

div.bubble.info.underneath div.handle {
    background-image: url(../images/info-handle-top.png);
}

div.messages div {
    display: none;
}

/*===== Objects list ========================================================*/

section.list {
    position: absolute;
    left: 0;
    right: 500px;
    top: 50px;
    bottom: 0;
}

section.list header {
    height: 26px;
    padding: 7px 10px;
    background-color: #eee;
    border-bottom: 1px solid #ccc;
    z-index: 1;
}

section.list header input[name=add] {
    position: absolute;
    right: 0;
}

section.list header * {
    vertical-align: middle;
}

section.list div.content {
    position: absolute;
    left: 0;
    right: 0;
    top: 40px;
    bottom: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px;
}

section.list table {
    border-collapse: collapse;
    margin: 0 0 10px 0;
}

section.list td {
    padding: 5px 0 5px 10px;
    border-bottom: 1px solid #ccc;
}

section.list tr td:first-child {
    padding-left: 0;
}

section.list thead td {
    white-space: nowrap;
    font-weight: bold;
}

section.list tbody tr:hover td {
    background-color: #f6f6f6;
    cursor: pointer;
}

section.list tbody tr.selected td {
    background-color: #ddeeff;
    cursor: default;
}

section.list tbody tr.flash td {
    background-color: #2374de;
}

/*===== Edit panel ==========================================================*/

/*----- Navigation ----------------------------------------------------------*/

section.edit {
    position: absolute;
    right: 0;
    top: 50px;
    bottom: 0;
    width: 500px;
}

section.edit nav.top {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 40px;
    background-color: #eee;
    border-bottom: 1px solid #ccc;
    z-index: 1;
}

section.edit nav.top ul {
    list-style-type: none;
    padding: 0;
    margin: 7px 0 0 10px;
}

section.edit nav.top li a {
    float: left;
    background-color: #ddd;
    line-height: 25px;
    padding: 1px 10px 7px 10px;
    margin: 0 0 0 10px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    color: #000;
}

section.edit nav.top li a:hover {
    background-color: #ccc;
    text-decoration: none;
}

section.edit nav.top li.selected a {
    background-color: #fff;
    border: 1px solid #ccc;
    border-bottom: none;
    padding-top: 0;
    height: 26px;
    cursor: default;
    -background: moz-linear-gradient(top, #ffffff 0%, #ffffff 75%, #eeeeee 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(75%,#ffffff), color-stop(100%,#eeeeee));
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 75%, #eeeeee 100%);
}

section.edit nav.bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26px;
    padding: 7px 10px 7px 20px;
    background-color: #eee;
    z-index: 1;
    text-align: right;
}

section.edit nav.bottom input[name=delete] {
    float: left;
}

/*----- Content -------------------------------------------------------------*/

section.edit div.content {
    position: absolute;
    left: 0;
    right: 0;
    top: 40px;
    bottom: 40px;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #eee;
}

section.edit div.content > div {
    padding: 20px 10px 20px 20px;
    display: none;
}

section.edit div.content table {
    border-collapse: collapse;
    margin: 0 0 20px 0;
    padding: 0;
    width: 100%;
}

section.edit div.content th {
    padding: 0 10px 4px 0;
    font-weight: normal;
    text-align: left;
    vertical-align: top;
    line-height: 26px;
    white-space: nowrap;
}

section.edit div.content td {
    padding: 0 0 4px 0;
}

section.edit tr.newgroup th,
section.edit tr.newgroup td {
    padding-top: 10px;
}

section.edit tr.ui-sortable-placeholder {
    height: 70px;
}

section.edit tr a.preview {
    display: none;
    font-size: 12px;
    color: #999;
    padding: 1px 3px 0 3px;
}

section.edit #object-description a.preview {
    padding: 1px 0 0 0;
}

section.edit img.move {
    cursor: move;
}

section.edit div.upload {
    position: relative;
    width: 64px;
    height: 64px;
    background-color: #fff;
    border: 1px solid #ccc;
    overflow: hidden;
}

section.edit div.upload img.progress {
    display: none;
    position: absolute;
    top: 8px;
    left: 8px;
}

section.edit iframe {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border: none;
    opacity: 0;
    filter: alpha(opacity=0);
}

section.edit input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 100px;
    opacity: 0;
    filter: alpha(opacity=0);
    cursor: pointer;
}

section.edit input[name=number] {
    width: 50px;
}

section.edit input[name=suffix] {
    width: 30px;
    margin-left: 4px;
}

section.edit input[name=inventoryNumber] {
    width: 84px;
}

section.edit textarea,
input[name=title],
input[name=year],
input[name=location],
input[name=sponsorName],
input[name=sponsorLocation] {
    width: 100%;
}

section.edit.hidden {
    background-color: #eee;
}

section.edit.hidden div.content,
section.edit.hidden nav.top ul,
section.edit.hidden nav.bottom {
    display: none;
}

/*----- Images --------------------------------------------------------------*/

section.edit table.files thead td {
    height: 0;
    padding: 0;
}

section.edit table.files img,
section.edit table.files input[type=image] {
    display: block;
}

section.edit table.files td {
    padding: 0 0 4px 10px;
    width: 1%;
    vertical-align: middle;
}

section.edit table.files td:first-child {
    padding-left: 0;
}

section.edit table.files td.text {
    width: 100%;
}

section.edit table.files td.text input {
    width: 100%;
}

/*===== Popup ===============================================================*/

div.canvas {
    display: none;
    position: fixed;
    background-color: #ccc;
    opacity: 0.5;
    filter: alpha(opacity=50);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

div.dialog {
    display: none;
    position: fixed;
    background-color: #fff;
    padding: 20px;
    width: 400px;
    left: 50%;
    top: 50%;
    -webit-box-shadow: 0px 0px 10px 0px #666;
    -moz-box-shadow: 0px 0px 10px 0px #666;
    box-shadow: 0px 0px 10px 0px #666;
    z-index: 101;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    margin: -75px 0 0 -220px;
}

div.dialog div.buttons {
    margin: 20px 0 0 0;
    text-align: right;
}

div.dialog h2 {
    margin: 0 0 10px 0;
}

div.dialog p {
    margin: 10px 0 0 0;
}
