/*
 MailWatch for MailScanner
 Copyright (C) 2003-2011  Steve Freegard (steve@freegard.name)
 Copyright (C) 2011  Garrod Alwood (garrod.alwood@lorodoes.com)
 Copyright (C) 2014-2017  MailWatch Team (https://github.com/mailwatch/1.2.0/graphs/contributors)

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 In addition, as a special exception, the copyright holder gives permission to link the code of this program
 with those files in the PEAR library that are licensed under the PHP License (or with modified versions of those
 files that use the same license as those files), and distribute linked combinations including the two.
 You must obey the GNU General Public License in all respects for all of the code used other than those files in the
 PEAR library that are licensed under the PHP License. If you modify this program, you may extend this exception to
 your version of the program, but you are not obligated to do so.
 If you do not wish to do so, delete this exception statement from your version.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
body {
    margin: 0;
    font-family: verdana, sans-serif;
}

.inner-container {
    border: solid 2px #000;
    border-top: 0;
    -webkit-border-radius: 0 0 15px 15px;
    -moz-border-radius: 0 0 15px 15px;
    border-radius: 0 0 15px 15px;
}

/*login*/

.loginbody {
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5em;
}

.login {
    margin: 50px auto;
    width: 350px;
}

.login h1 {
    background-color: #197262;
    -webkit-border-radius: 15px 15px 0 0;
    -moz-border-radius: 15px 15px 0 0;
    border-radius: 15px 15px 0 0;
    color: #222;
    font-size: 28px;
    padding: 15px 15px;
    margin: 0;
    text-align: center;
    border: 2px solid #000000;
    border-bottom: 0;
}

.login form {
    border-top: 0;
}

.login fieldset {
    border: 0;
    margin: 0;
    padding: 20px 20px;
}

.login fieldset p {
    color: #222;
    margin: 0 0 8px;
}

.login fieldset p:last-child {
    margin-bottom: 0;
}

.login p.loginerror {
    background-color: #F2DEDE;
    border-color: #EBCCD1;
    color: #A94442;
    padding: 10px;
    text-align: center;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.login input {
    border: 0;
    border-bottom: 1px solid #222;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    -webkit-appearance: none;
}

.login fieldset input[type="text"], .login fieldset input[type="password"] {
    background-color: #E9E9E9;
    color: #222;
    padding: 4px;
    width: 298px;
    margin-bottom: 16px;
}

.login fieldset button[type="submit"],
.pwdresetform fieldset button[type="submit"] {
    font-size: 16px;
    background-color: #328273;
    color: #222;
    display: block;
    margin: 0 auto;
    padding: 4px 0;
    width: 100px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 0;
}

.pwdresetform fieldset button[type="submit"] {
    width: auto;
    min-width: 100px;
}

.login fieldset button[type="submit"]:hover,
.pwdresetform fieldset button[type="submit"]:hover {
    background-color: #006351;
}

.pwdresetButton {
    text-align: center;
    margin-bottom: 10px;
    min-height: 40px;
}

.pwdresetButton a.loginButton {
    padding: 10px;
    background-color: #197262;
    color: #222222;
    margin: 0 auto;
    min-width: 100px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 0;
    font-size: 16px;
}

.pwdresetButton a.loginButton:hover {
    background-color: #006351;
}

.pwdresetButton a {
    color: #000;
    font-size: 14px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}

.loginbody .pwdresetButton a:hover {
    background-color: blue;
    color: #FFF;
    padding: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

/* mail table */
table.mail TH, table.boxtable TH, table.maildetail TH {
    font-size: 10pt;
    font-weight: 700;
    text-align: center;
    background-color: #197262;
}

table.blackwhitelist {
    width: 100%;
    border: 0;
}

td.blackwhitelist {
    width: 50%;
    vertical-align: text-top;
}

table.sa_rule_report {
    padding: 0;
    width: 100%;
}

table.mail tr, table.sophos tr, table.sa_rules_report tr {
    font-size: 8pt;
    background-color: #EBEBEB;
}

table.colorcodes tr {
    background-color: inherit;
}

table.sa_rules_report TH {
    text-align: left;
}

table.mail tr.infected {
    background-color: #B22222;
    color: #FFF;
}

table.mail td.infected {
    background-color: #B22222;
    border: 1px solid #000;
    width: 15px;
}

table.mail tr.spam {
    background-color: #F5BBBB;
    color: #000;
}

table.mail td.spam {
    background-color: #F5BBBB;
    border: 1px solid #000;
    width: 15px;
}

table.mail tr.highspam {
    background-color: #EE6262;
    color: #000;
}

table.mail td.highspam {
    background-color: #EE6262;
    border: 1px solid #000;
    width: 15px;
}

table.mail tr.mcp {
    background-color: #ADD8E6;
    color: #000;
}

table.mail tr.notscanned {
    background-color: #800080;
    color: #FFF;
}

table.mail td.notscanned {
    background-color: #800080;
    border: 1px solid #000;
    width: 15px;
}

table.mail tr.clean {
    background-color: #EBEBEB;
    color: #FFF;
}

table.mail td.clean {
    background-color: #EBEBEB;
    border: 1px solid #000;
    width: 15px;
}

table.mail td.mcp {
    background-color: #ADD8E6;
    border: 1px solid #000;
    width: 15px;
}

table.mail tr.highmcp {
    background-color: #00008B;
    color: #FFF;
}

table.mail td.highmcp {
    background-color: #00008B;
    border: 1px solid #000;
    width: 15px;
}

table.mail tr.whitelisted {
    background-color: #90EE90;
    color: #000;
}

table.mail td.whitelisted {
    background-color: #90EE90;
    border: 1px solid #000;
    width: 15px;
}

table.mail tr.blacklisted {
    color: #FFF;
    background-color: #000;
}

table.mail td.blacklisted {
    background-color: #000;
    border: 1px solid #000;
    width: 15px;
}

table.mail, table.maildetail, table.navigation, table.boxtable {
    border: 1px solid #000;
    padding: 0;
}

table.rowhover tr:hover {
    -webkit-filter: invert(0.1);
    filter: invert(0.1);

}

tr.nohover {
    -webkit-filter:none !important;
    filter:none !important;
}
table.colorcodes tr:hover {
    -webkit-filter: none;
    filter: none;
}

table.boxtable {
    margin-left: auto;
    margin-right: auto;
}
table.boxtable td.textdata {
    padding-left: 10px;
}

#menu {
    font-family: Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin: 10px 0;
    padding: 0 0 0 10px;
    list-style-type: none;
    font-size: 13px;
    background: #eee;
    height: 40px;
    min-width: 960px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    border: 2px solid #eee;
    border-right-color: #ccc;
    border-bottom-color: #ccc;
}

#menu li {
    float: left;
    margin: 0;
}

#menu li a {
    text-decoration: none;
    display: block;
    padding: 0 20px;
    line-height: 40px;
    color: #666;
}

#menu li a:hover, #menu li.active a {
    background-color: #F5F5F5;
    border-bottom: 2px solid #DDD;
    color: #999;
}

/* Yellow Menu */
#menu.yellow {
    border: 2px solid #000;
    background: #197262;
}

#menu.yellow a, #menu.yellow select.lang {
    color: #000;
}

#menu.yellow li a:hover, #menu.yellow li.active a {
    color: #fff;
    background: #4973f7;
    border-bottom: 2px solid #000;
}

td.heading {
    background-color: #197262;
    font-weight: 700;
    font-size: 10pt;
}

td.heading-w175 {
    background-color: #197262;
    font-weight: 700;
    font-size: 10pt;
    width: 175px;
    text-align: right;
    vertical-align: top;
}

table.maildetail td.detail {
    background-color: #EBEBEB;
    font-size: 8pt;
}

span.yes {
    background-color: red;
    color: #FFF;
    font-weight: 700;
}

span.no {
    background-color: green;
    color: #FFF;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: blue;
}

a:visited {
    text-decoration: none;
    color: blue;
}

a:hover {
    background-color: blue;
    color: #FFF;
}

a.logo {
    color: transparent;
    background-color: transparent;
}

table.boxtable tr {
    /*border-collapse: collapse;*/
    border-bottom: 1px solid #000;
}

/* Lint */
td.lint_1 {
    background-color: green;
    color: #FFF;
    text-align: right;
}

td.lint_2 {
    background-color: #FF0;
    color: #000;
    text-align: right;
}

td.lint_3 {
    background-color: orange;
    color: #000;
    text-align: right;
}

td.lint_4 {
    background-color: #FF4500;
    color: #000;
    text-align: right;
}

td.lint_5 {
    background-color: red;
    color: #000;
    text-align: right;
}

p.center {
    text-align: center;
}

/* MSRE */
table.mailwatch TH {
    font-size: 10pt;
    font-weight: bold;
    text-align: center;
    background-color: #197262;
}

table.mailwatch tr {
    font-size: 8pt;
    background-color: #EBEBEB;
}

table.mailwatch tr.alt {
    font-size: 8pt;
    background-color: #CFCCDF;
}

table.mailwatch td.footer {
    font-size: 9pt;
    background-color: white;
}

table.mailwatch tr.footer {
    font-size: 9pt;
    background-color: white;
}

table.mailwatch td.header {
    font-size: 9pt;
}

table.mailwatch tr.header {
    font-size: 9pt;
}

span.status {
    font-size: 8pt;
    color: blue;
}

span.debug {
    font-size: 8pt;
    color: green;
}

.error {
    font-size: 10pt;
    color: red;
}
.success {
    font-size: 10pt;
    color: green;
}

td.dashblackbox {
    border: 2px dashed black;
    background-color: white;
    padding: 5px;
}

td.dashgreybox {
    border: 2px dashed #CCCCCC;
    background-color: white;
    padding: 5px;
}

.hidden {
    display: none;
}

/*adjustments for printing a page e.g. hide elements*/
@media print {
    .noprint {
        display: none;
    }

    .TD.heading-w175 {
        background: transparent;
    }

    table.maildetail {
        border: none;
    }
    table.reportTable {
        border: none;
        border-collapse: collapse;
    }
    table.reportTable>tbody>tr>td {
        border: 1px solid black;
    }
}

div.table input {
    width: 100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

div.table {
    display: table;
    font-size: 10pt;
    font-weight: 700;
    background-color: #EBEBEB;
    border: 0;
}

div.table > .row {
    display: table-row;
}

div.table .cell {
    display: table-cell;
}

div.table .cell:not(:last-child) {
    border-right: 0.3em solid transparent;
}

div.table .cell:first-child {
    border-left: 0.3em solid transparent;
}

div.table .head {
    background-color: #197262;
}

div.table .data {
    background-color: #EBEBEB;
}

div.table > .caption {
    display: table-caption;
    text-align: center;
}

div.table > .caption > input {
    width: auto !important;
}

.center {
    text-align: center;
}

.floatleft {
    float: left;
}

.tableWithLineBreaksWrapper > table {
    table-layout: fixed;
}

.tableWithLineBreaksWrapper > table > tr > th,
.tableWithLineBreaksWrapper > table > tr > td {
    word-wrap: break-word;
}

/*auto-release*/
.autorelease body {
    background-color: #FFFFFF;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5em;
}

.autorelease {
    margin: 50px auto;
    width: 350px;
}

.autorelease h1 {
    background-color: #197262;
    color: #222;
    font-size: 28px;
    margin: 0;
    text-align: center;
    -webkit-border-top-left-radius: 15px;
    -moz-border-radius-topleft: 15px;
    border-top-left-radius: 15px;
    -webkit-border-top-right-radius: 15px;
    -moz-border-radius-topright: 15px;
    border-top-right-radius: 15px;
    padding: 20px
}

.autorelease .border-rounded {
    border: solid 2px #000;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
}

.autorelease p {
    padding: 0 10px;
    text-align: center;
}

.reportGraph {
    text-align: center;
    height: 600px;
    width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.lineGraph {
    text-align: center;
    height: auto;
    width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.reportTable {
   padding: 10px;
   margin-left: auto;
   margin-right: auto;
}

.reportTable>tbody>tr>th {
   background-color: #197262;
}

.reportTable>tbody>tr>td {
   background-color: #EBEBEB;
}

.reportTable>tbody>tr>th,
.reportTable>tbody>tr>td {
    text-align: center;
    padding: 5px;
}

.reportTable>tbody>tr>th.white,
.reportTable>tbody>tr>td.white{
    background-color: #FFFFFFF;
}

.reportTable>tbody>tr>td:first-child {
    text-align: left;
}

.reportTable>tbody>tr>td:last-child {
    text-align: right;
}

td.titleReport {
    font-size: 12pt;
    font-weight: bold;
    text-align: center;
}
.reportTable > tbody > tr > td:last-child {
    text-align: right;
}

td.message {
    background-color: #197262;
    font-size: 10pt;
}

/*Password-reset*/
.pwdreset body {
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5em;
}

.pwdreset {
    margin: 50px auto;
    width: 500px;
}

.pwdreset h1 {
    background-color: #197262;
    color: #222;
    font-size: 28px;
    margin: 0;
    text-align: center;
    -webkit-border-top-left-radius: 15px;
    -moz-border-radius-topleft: 15px;
    border-top-left-radius: 15px;
    -webkit-border-top-right-radius: 15px;
    -moz-border-radius-topright: 15px;
    border-top-right-radius: 15px;
    padding: 20px
}

.pwdreset form {
    border-top: 0;
    background-color: #FFF;
    -webkit-border-radius: 0 0 15px 15px;
    -moz-border-radius: 0 0 15px 15px;
    border-radius: 0 0 15px 15px;
}

.pwdreset fieldset {
    border: 0;
    margin: 0;
    padding: 20px 20px;
}

.pwdreset fieldset p {
    color: #222;
    margin: 0;
}

.pwdreset fieldset p:last-child {
    margin-bottom: 0;
}

.pwdreset p.pwdreseterror {
    background-color: #F2DEDE;
    border-color: #EBCCD1;
    color: #A94442;
    padding: 10px;
    text-align: center;
    margin: 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.pwdreset input {
    border: 0;
    border-bottom: 1px solid #222;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    -webkit-appearance: none;
}

.pwdreset fieldset input[type="text"], .pwdreset fieldset input[type="password"] {
    background-color: #E9E9E9;
    color: #222;
    padding: 4px;
    width: 256px;
    margin-bottom: 16px;
}

.pwdreset fieldset input[type="submit"] {
    background-color: #197262;
    color: #222;
    display: block;
    margin: 0 auto;
    padding: 5px 15px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 0;
}

.pwdreset fieldset input[type="submit"]:hover {
    background-color: #006351;
}

.pwdreset .border-rounded {
    border: solid 2px #000;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
}

.pwdreset p {
    padding: 0 10px;
    text-align: center;
}

/* user_manager.php */
.inputerror {
    background: rgba(255, 0, 0, 0.57);
}

#formerror {
    background-color: #F2DEDE;
    border-color: #EBCCD1;
    color: #A94442;
    padding: 10px;
    text-align: center;
    margin: 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    max-width: 560px;
}

/*general styles*/

.font-1em {
    font-size: 1em;
}

.mw-logo {
    text-align: center;
}

/* dbtable */

.table-background:nth-child(even),
.blackwhitelist>tbody>tr:nth-child(even) {
    background-color: #EBEBEB;
}

.table-background:nth-child(odd),
.blackwhitelist>tbody>tr:nth-child(odd) {
    background-color: #D8D8D8;
}

.table-background:hover {
    background-color: #197262 !important;
}

.mw-icon {
    display: inline-block;
}

.mw-info-circle {
    background: url(images/info-circle.png);
    -webkit-background-size: contain;
    background-size: contain;
    height: 16px;
    width: 16px;
}

.mw-info-circle:hover {
    background: url(images/info-circle-hover.png);
    -webkit-background-size: contain;
    background-size: contain;
    height: 16px;
    width: 16px;
}

.link-transparent > a:hover {
    background-color: transparent;
}

li.lang {
    height: 100%;
}

select.lang {
    font-family: Arial, sans-serif;
    font-weight: 700;
    height: 100%!important;
    background-color:#197262;
}

#menu.yellow li select.lang:hover {
    color: #fff;
    background: #4973f7;
}

select.lang > option {
    background:#197262;
    border-top:1px solid #444;
    color: #000;
}

/* Colors for quarantine actions */

.released {
    background-color:#008000;
    color:#fff;
}

.salearn-1 { /* HAM */
    background-color:#008000;
    color:#fff
}

.salearn-2 { /* SPAM */
    background-color: #F51111;
    color:#fff;
}

#trafficgraph {
    width: auto;
    height: 180px;
    margin-top: -4px;
    margin-bottom: 0px;
    margin-right: -2px;
    margin-left: 4px;
}

.filterbuttons {
    white-space: nowrap; 
    text-align:right;
}

.todaystatistics>tbody>tr>td {
    white-space: nowrap;
}

.todaystatistics>tbody>tr>td:not(:first-child) {
    text-align: right;
}

p.footer {
    font-size: 13px;
}

table.sa_rules_report>tbody>tr>td {
    text-align: left;
}

table.sa_rules_report>tbody>tr>td:nth-child(2) {
    width: 200px;
}

table.mail>tbody>tr>th.alignleft {
    text-align: left;
}

.nowrap {
    white-space: nowrap;
}
