/* --------- Global layout ----------- */

html, body {
    height: 99%;
}

body {
    background: #ffffff;
    color: #000000;
}

#js-message {
    position: fixed;
    z-index:900;
    text-align: center;
    width: 100%;
    top: 0;
    display: none;
}

#js-message div {
    min-width: 60px;
    max-width:400px;
    max-height:24px;
    overflow:hidden;
    display: inline-block;
    padding: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

#js-message.info div {
    background-color: #27a827;
}

#js-message.warning div {
    background-color: yellow;
}

#js-message.error div {
    background-color: #f93c3c;
}


a:visited {
    color: blue;
}

a.imglink {
    background-position: 4px 0;
    margin-top: 2px;
    display: inline-block;
    width: 16px;
    height: 10px;
}

button.imglink {
    border:0;
    width:16px;
    height:16px;
    cursor:pointer;
    z-index:900;
    background-position:0 4px;
}

a.uiLink {
    /*margin-top: 2px;*/
    display: inline-block;
    position:relative;
    float:right;
    top: 2px;
}

a.black {
    color: black;
    text-decoration: none;
}

a.tex {
    background: url("../img/tex.png") no-repeat 0 -3px;
    height:12px;
    width: 18px;

}

a.tag {
    /*background: url("../img/tag.png") no-repeat;*/
}

.quote {
    background: url("../img/quote.png") no-repeat;
}

a.edit {
    background: url("../img/edit.png") no-repeat;
}

a.delete {
    background: url("../img/delete.png") no-repeat;
}

a.deny {
    background: url("../img/deny.png") no-repeat;
}

a.allow {
    background: url("../img/allow.png") no-repeat;
}

a.download {
    background: url("../img/download.png") no-repeat;
}

a.read {
    background: url("../img/eye.png") no-repeat 0 -4px;
    width:17px;
    height:17px;
    margin-bottom:-3px;
    margin-left:-1px;
}

a.unread {
    background: url("../img/unread.png") no-repeat 0 -4px;
    width:17px;
    height:17px;
    margin-bottom:-3px;
    margin-left:-1px;
}

#header {
    top: 10px;
    padding: 1px; /*margin: 0 auto;*/
    text-align: center
}

#header a {
    text-decoration: none;
    color: black;
}

.wrapper {
    min-height: 76%;
}

.footer, .push {
/*height: 2em;*/
    text-align: center;
    padding: 5px;
    clear: both;
}

#msg {
    position: absolute;
    padding: 5px 5px 5px 5px;
    top: 30%;
    left: 45%;
    min-width: 10%;
    min-height: 5%;
    border-radius: 4px 4px;
    display: none;
}

/*.error {
    border: 2px solid red;
    background-color: #EEEEEE;
    opacity: 0.9;
}*/

div.leftColumn {
    float: left;
    width: 30%;
    position: relative;
    top: 10px;
    display: inline-block;
}

div.rightColumn {
    width: 60%;
    float: left;
}

div.path {
    display: inline-block;
    padding: 8px 0 8px 0;
}

.a-next-unread {
    display:inline-block;
    float:right;
    padding:0;
    color:#339900;
}

p.pages {
    margin: 2px 0 2px 0;
}

.date {
    color: #666666;
}

.editedMark{
    display:block;
    font: 12px italic;

}

div.unreadLinksBox {
    border-bottom:1px dashed gray;
}

div.unreadLinksBox a{
    display:inline-block;
    padding-bottom:5px;
}

/* --------- Table design ----------- */

table.border {
    border-collapse: collapse;
    width: 100%;
}

table.padded td {
    padding: 0.5em;
}

table.border tr.theader {
    background: #666699;
    color: #FFFFFF;
    font-weight: bolder;
    text-decoration: none;
}

table.border tr:not(.unread) td, table.border th {
    border: 1px solid black;
}

.tcat {
    background: #C0C0C0;
}

.trow {
    background: #ffffff;
    height: 34px;
}

.trow td{
    padding-left:0.5em;
}

.unread td {
    border: 2px solid #339900; /*background-color: white;*/
}

tr.focus {
    border: 2px solid #0000ff; /*border-width: 2px 0 2px 2px;*/
}

td.authorTD {
    min-width: 140px;
    max-width: 140px;
}

td.threadTitle {
    width: 60%;
}

.trow a {
    text-decoration: underline;
    color: blue;
    cursor: pointer;
}

.trow a.lastMessageLink {
    color: black;
    text-decoration:none;
}

div.message {
    white-space: pre-wrap;
    white-space: -moz-pre-wrap !important;
}

div.messageManage {
    position: relative;
    right: 5px;
    float: right;
    min-height: 16px;
    padding-bottom: 4px;
    padding-left:4px;
}

div.threadBox {
    display:inline-block;
    /*padding-top:0.5em;*/
    /*padding:4px 0 4px 0;*/
}

cite {
    background: #efefef;
    clear: both;
    display: block;
    font-style: normal;
    -moz-box-shadow: inset 0 0 1px 1px #888;
    -webkit-box-shadow: inset 0 0 1px 1px #888;
    box-shadow: inset 0 0 1px 1px #888;
    padding: 8px;
    margin: 8px 0 8px 0;
}

cite a.citedMessage {
    background: url("../img/up.png") no-repeat 0 0; /*margin-top: 2px;*/
    display: inline-block;
    width: 12px;
    height: 12px;
    float: right;
    padding: 0 2px 2px 0;
    margin-top: 2px;

}

cite cite {
    background: #dfdfdf;
}

cite cite cite {
    background: #cfcfcf;
}

cite cite cite cite {
    background: #bfbfbf;
}

cite cite cite cite cite {
    background: #afafaf;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

code.texCode {
    color: #006600;
    padding-left:4px;
    padding-right:4px;
}

/* -------------- Something--------------*/

.thumbnailList{
    list-style:none;
}

.thumbnailList li{
    float:left;
    padding:3px;
}

.imageDimension{
    font-size:14px;
}


.qq-upload-file:focus{
    padding:3px;
}

.fileList {
    clear:both;
    list-style:none;
    margin-bottom:0;
}

.fileSize {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #333333;
    padding-left: 4px;
}

.fileName{
    font-size:14px;
}

.messageList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.messageList li {
    padding: 3px 0 2px 10px;
}

.messageList li:hover {
    background-color: #cfdee6;
}



a.NEWlink {
    text-decoration:none;
    display:inline-block;
    margin-right:8px;
}

.threadLink{
    /*padding-right:8px;*/
}

.link-page{
    font-size:smaller;
    color: #707070 !important;
    margin-left:-1px;
}
.link-page:hover{
    background-color:#ccc;
    border-radius:3px;
    padding:0 2px;
}

/* --------- search page's lists --------------*/

#ul-search-forum{
    list-style:none;
    padding:0;
}

#table-advanced-search td{
    vertical-align:top;
}

#link-advanced-search{
    font-size:smaller;
    text-decoration:none;
    padding-right:5px;
}

#foundFiles{
    padding-left:62px;
    list-style-image:url("../img/file.png");
}

.datepicker{
    border:0;
    background-color: #e0dfdf;
    border-radius:5px;
    padding:3px;
    cursor:pointer;
    width:115px;
    text-align:center;
}

#link-advanced-search:hover{
    text-decoration:underline;
}

.span-search-box{
    display:inline-block;
    float:right;
}

#foundMessages{
    list-style:none;
}

.toggle-thread{
    cursor:pointer;
    display:inline-block;
    margin-bottom:-2px;
}

.li-found-thread{
    padding-bottom:12px;
}

.ul-found-messages{
    list-style:none;
    padding-left:18px;
}

.li-found-message{
    max-width:650px;
    margin-top:10px;
}

.li-found-message:nth-child(odd){
    background-color:#f2f2f2;
}

.div-found-message-info *{
    font-size: smaller;
    padding:2px;
}



/*span indicating new message*/
.NEW {
    background: #75bb07;
    /*background: #ccc;*/
    /*color: #ffefff;*/
    color:white;
    display:none;
    /*height:14px;*/
    border-radius:6px;
    padding:1px 4px 1px 4px;
    font-weight: bold;
    font-size:13px;
}

/*tr .NEW{*/
    /*margin-right:8px;*/
/*}*/

#notifications .NEW, .listUnread .NEW{
    background: #ccc;
    color:black;
    cursor:pointer;
}

/* -------- Login page: openid --------- */

#loginReturn {
    clear: left;
    width: inherit;
    text-align: center;
    padding-top: 30px;
}

#ontoforum-login {
    display: inline-block;
    padding-right: 20px; /*width:320px;*/

}

#openid-login {
    display: inline-block;
}

.openIdProvider {
    float: left; /*text-indent: -999px;*/
    width: 89px;
    height: 42px;
    margin-right: 0.5em;
    background: transparent url(../img/openid.png) no-repeat 0 0;
}

#openIdGoogle {
    background-position: 0 0;
}

#openIdYahoo {
    background-position: 0 -45px;
}

/* -------- OrderBy List ------- */

.spanButtons span {
    color: blue;
    cursor: pointer;
}

.spanButtons span:hover {
    color: red;
}

#orderByList {
    list-style: none;
    margin: 0;
    padding: 0;
}

#orderByList span {
    padding-right: 10px;
    padding-left: 5px;
}