
body {
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    height: 100%;
    max-height: 100%;
    color: black;
    font-size: 14px;
    font-family: Tahoma,Verdana,Geneva,sans-serif;
    /* font-family: Arial,Helvetica,sans-serif; */
    line-height: 1;
}

/* login page layout */
.loginbox {
    margin: 150px auto 0 auto;
    padding: 20px;
    width: 400px;
    border: 1px solid black;
    background: #F7F7F7;
    text-align: center;
}
.loginbox table {
    margin: 20px auto 20px auto;
}
.loginbox table td {
    text-align: right;
    padding: 5px;
}

/* text elements */
a {
    color: #369;
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}
h1, h2, h3 {
    margin: .8em 0 .4em 0;
    padding: 0;
    font-weight: bold;
}
h1 {
    font-size: 125%;
    margin-bottom: 1em;
}
h2 {
    font-size: 110%;
}
h3 {
    font-size: 100%;
}
select, input[type=text], input[type=password], textarea {
    background: white;
    border: 1px solid #999999;
    padding: 2px;
    _width: 120px;
    _overflow: hidden;
    _background: url(images/dropdown_arrow.png) no-repeat right white;
}
select:disabled, input[type=text]:disabled, input[type=password]:disabled, textarea:disabled {
    background: #E5E5E5;
}
button, input[type=submit], input[type=reset], input[type=button] {
    padding: .3em 1em;
    margin-right: .5em;
    border: 2px solid #cccccc;
    background: #cccccc;
    color: black;
}
button:hover, input[type=submit]:hover, input[type=reset]:hover, input[type=button]:hover {
    color: black;
    border: 2px solid #7a7a7a;
}

a.action {
    color: #369;
    text-decoration: none;
    padding: 1px 2px;
    margin: 0 3px;
    line-height: 100%;
}
a.action.delete {
    color: red;
}
a.action:hover {
    color: #fff;
    background: #369;
    text-decoration: none;
}

/* feedback */
.feedback {
    display: inline-block;
    border: 1px solid black;
    color: black;
    padding: .7em;
    font-size: 110%;
    margin-top: .5em;
    margin-bottom: .5em;
}
.feedback.error {
    border: 1px solid red;
    color: red;
}
.feedback.success {
    border: 1px solid green;
    color: green;
}

/* list tables */
table.list {
    border: 0px;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 680px;
    text-align: left;
}
table.list th,table.list td {
    border: 1px solid #d4d4d4;
    padding: 4px;
    margin: 0px;
    white-space: nowrap;
}
table.list th {
    background: #D4D4D4;
    line-height: 140%;
    text-align: center;
}
table.list td {
    white-space: pre-wrap;
    vertical-align: middle;
}
table.list tr:nth-child(even) {
    background: #F0F0F0;
}
table.list tr:nth-child(odd) {
    background: white;
}
table.list tr:nth-child(5n+0) td {
    border-bottom-color: #D0D0D0;
}
table.list tr:nth-child(5n+1) td {
    border-top-color: #D0D0D0;
}
table.list tr:hover td {
    background: #e1e1e1;
}
table.list td.actions {
    text-align: left;
    white-space: nowrap;
    width: 1px;        /* minimize the column */
}
table.list td.operations {
    text-align: center;
    white-space: nowrap;
    width: 1px;        /* minimize the column */
}
table.list td.message {
    color: red;
    font-size: 120%;
    text-align: center;
}
table.list tr.inactive {
    color: grey;
}

.list_pager_header {
    cursor: default;
    margin: 20px 0 5px 5px;
    white-space: nowrap;
}
.list_pager_footer {
    cursor: default;
    margin: 5px 0 20px 5px;
    white-space: nowrap;
}
.pagebutton {
    border: 2px solid #cccccc;
    background: #cccccc;
    color: black;
    font-size: 11px;
    padding: 2px 4px;
    margin: 0 3px;
}
.pagebutton.inactive, .pagebutton.pageinfo {
    background: white;
    border: 1px solid #cccccc;
    padding: 3px 5px;
}

a.pagebutton {
    text-decoration: none;
    cursor: pointer;
}
a:hover.pagebutton {
    color: black;
    border: 2px solid #7a7a7a;
}

.list_order_button {
    margin: 0 0 0 2px;
}
.list_order_button.inactive {
    cursor: pointer;
    color: #131389;
}
.list_order_button.primary {
    cursor: default;
    color: #FF0000;
}
.list_order_button.secondary {
    cursor: pointer;
    color: #800000;
}
#filter_form {
    padding-top: 10px;
    white-space: nowrap;
}
span.icon {
    padding: 1px 2px;
    margin: 0 3px;
    background: transparent;
    width: 14px;
    height: 14px;
    display: inline-block;
}
span.icon:hover {
    background-color: #B4B4B4;
}
span.history {
    background: transparent url("images/icon_history.png") no-repeat center;
}
span.read {
    background: transparent url("images/icon_read.png") no-repeat center;
}
span.edit {
    background: transparent url("images/icon_edit.png") no-repeat center;
}
span.delete {
    background: transparent url("images/icon_delete.png") no-repeat center;
}

/* data tables */
table.data {
    border: 0px;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 400px;
    max-width: 1000px;
    margin: 1em 0;
    text-align: left;
}
table.data th,table.data td {
    border: 1px solid #d4d4d4;
    padding: .4em .8em;
    margin: 0px;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.2;
}
table.data th {
    font-weight: bold;
    text-align: left;
}
table.data td.value {
    white-space: pre-wrap;
}
table.data tr:nth-child(even) {
    background: #F0F0F0;
}
table.data tr:nth-child(odd) {
    background: white;
}
table.data.edit tr:last-child {
    background: transparent;
}
table.data.edit tr:last-child td {
    border: none;
}
.button_row {
    padding: .5em 0 .6em 0;
    margin: 1em 0;
}
.button_row a {
    padding: .5em 1em;
    margin-right: .5em;
    border: 2px solid #cccccc;
    background: #cccccc;
    color: black;
}
.button_row a:hover {
    color: black;
    border: 2px solid #7a7a7a;
}
.button_row a.delete {
    color: red;
}

.warn_field {
    outline: 1px solid red;
}
.filter_active {
    _outline: 1px solid red;
    color: red;
}
.filter_highlight {
    background-color: #FFBDBD;
}
.formhelp {
    font-size: 90%;
    font-style: italic;
    color: #3D3D3D;
    margin: 0.5em 0 0 0;
}

/* scroll_to_top button */
.scroll_to_top {
    padding: 6px 10px 12px 10px;
    text-align: center;
    font-size: 200%;
    font-weight: bold;
    color: #444444;
    background: #F3F3F3;
    text-decoration: none;
    position: fixed;
    top: 10px;
    right: 24px;
    z-index: 1;
    display: none;
    border: 1px outset black;
}
.scroll_to_top:hover {
    text-decoration:none;
    color: #fff;
    background: #369;
}
select.column_filter_select {
    font-size: 80%;
    min-width: 100%;
}
option.column_filter_active, select.column_filter_active {
    color: red;
}
option.column_filter_inactive {
    color: black;
}

span.success_message {
    color:green;
}
span.error_message {
    color: red;
}

/* icons */
img.icon {
    max-width: 200px;
    max-height: 70px;
}

/* tabs */
.tab_button_row {
    overflow: hidden;
    margin-top: 20px;
    margin-right: 10px;
}
.tab_button_row button {
    background: none;
    border: 1px solid #ccc;
    border-bottom: none;
    outline: none;
    cursor: pointer;
    padding: 8px 12px;
    transition: 0.3s;
    font-size: 14px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.tab_button_row button:hover {
    background-color: rgb(245, 246, 248);
}
.tab_button_row button.active {
    background-color: white;
}
.tab_content {
    display: none;
    background-color: white;
    padding: 12px;
    border: 1px solid #ccc;
    border-top: none;
    margin-right: 10px;
}

/* modifications based on media */
@media print {
    #menucontent {
        display: none;
    }
    #maincontent {
        position: static;
    }
    .noprint {
        display: none;
    }
}

@media screen {
    .noscreen {
        display: none;
    }
}
