/**
 * Stylesheet for vulnerability scan reports
 **/

/**
 * Colours
 **/
.high       { background: #ff4f4f !important; }
.medium     { background: #ffff5b !important; }
.low        { background: #6fa5ff !important; }
.noserv     { background: #4040cc !important; }
.nohost     { background: #bbbbbb !important; }
.noscan     { background: #888888 !important; }

.improve    { background: #00cc00 !important; }
.nochange   { background: #ffa313 !important; }
.getworse   { background: #ff4f4f !important; }

.overdue    { background: #ff4f4f !important; }
.urgent     { background: #ffff5b !important; }
.sans20     { background: #18557b !important; }

/**
 * Common definitions
 **/
body
{
  font-family:    helvetica,sans-serif,arial;
  font-size:      9pt;
}
h1
{
  text-align:     center;
  font-size:      14pt;
}
h2
{
  text-align:     center;
  font-size:      12pt;
  font-weight:    bold;
}
h3
{
  text-align:     center;
  font-size:      9pt;
  font-weight:    normal;
}
td, th
{
  vertical-align: top;
  text-align:     left;
  font-size:      9pt;
  padding-left:   5px;
  padding-right:  5px;
}
.cell_alt
{
  background-color:     #c4deff !important;
}

/**
 * No word wrapping in keys
 **/
.key td,
.key td
{
  white-space:    nowrap;
}

/**
 * Various standard ways to communicate bits of information.
 * Marked as important as we always want them to override other settings.
 **/
.vulscanned
{
  background-image:     url(bright-green-medium-corner.gif) !important;
  background-repeat:    no-repeat !important;
  background-position:  100% 100% !important;
}

.notvulscanned
{
  background-image:     url(bright-yellow-medium-corner.gif) !important;
  background-repeat:    no-repeat !important;
  background-position:  100% 100% !important;
}

.notsubnetscanned
{
  background-image:     url(bright-orange-medium-corner.gif) !important;
  background-repeat:    no-repeat !important;
  background-position:  100% 100% !important;
}

.closedport
{
  background:     white !important;
}

/**
 * Class used for inline examples such as sample urls for CSS attacks.
 **/
.vuln_example
{
  font-family:    monospace;
  white-space:    pre;
  margin-left:    14px;
  margin-right:   14px;
  margin-top:     6px;
  margin-bottom:  6px;
}

/**
 * An outline table has no borders or padding
 **/
.outline table
{
  padding:        none;
}
.outline td,
.outline th
{
  padding:        none;
  padding-left:   0px;
  padding-right:  0px;
}

/**
 * Definitions for 'lined' tables, i.e. white table with black borders
 **/
.lined
{
  border-top:     1px black solid;
  border-left:    1px black solid;
}
.lined td
{
  background:     #ffffff;
  border-bottom:  1px black solid;
  border-right:   1px black solid;
}
.lined th
{
  background:     #c0c0c0;
  text-align:     center;
  vertical-align: middle;
  border-bottom:  1px black solid;
  border-right:   1px black solid;
}

.lined.thickborder
{
  border-top:     2px black solid;
  border-left:    2px black solid;
  border-right:   1px black solid;
  border-bottom:  1px black solid;
}
.tablediv th, .tablediv td
{
  border-bottom:  2px black solid;
}

/**
 * These reports have the title cells on the left, not the top
 **/
.glossary .lined th,
.vulns .lined th,
.detail .lined th,
.eplus .lined th
{
  text-align:     left;
  vertical-align: top;
}

/**
 * Report specific tweaks
 **/
.glossary table.lined     { width:      750px; }
.glossary .lined th       { width:      150px; }
.glossary table.outline   { width:      750px; }
.glossary th.iconth
{
  text-align:     center;
  vertical-align: middle;
  background:     white;
}

.regionsum .lined td      { text-align: center; white-space: nowrap; }
.regionsum .key .lined td { text-align: left; white-space: nowrap; }

.hosts .lined .shorttext  { text-align: center; }

.newdev .grid th          { padding:    1px 1px 1px 1px; }
.newdev .grid td          { padding:    2px 1px 2px 1px;
                            text-align: center; }

.diffgrid .lined th       { padding:    1px 1px 1px 1px; }
.diffgrid .lined td       { padding:    3px 1px 3px 1px; }

/**
 * Detail report
 * The portlist had the table borders only on cells, not the whole table,
 * because there are "invisible" columns at the left and right.
 **/
.detail .stoplist .lined th,
.detail .stoplist .high,
.detail .stoplist .medium,
.detail .stoplist .low
{
  background:     #FFFFFF !important;
}
.detail .portlist .lined
{
  border-top:     none;
  border-left:    none;
}
.detail .portlist th
{
  border-top:     1px black solid;
  text-align:     center;
}
.detail .portlist td
{
  text-align:     center;
}

/**
 * Subnet report
 **/
.subnet .newhost
{
  padding:        4px 4px 4px 4px;
  border-width:   1px 2px 2px 1px;
  border-style:   solid;
  border-color:   black;
}



@media print
{
  .subnet_table
  {
    width: 80%;

  }

}

@media screen
{
  .subnet_table
  {
    width: 60%;

  }
}

.grid
{
  border-top:     1px black solid;
  border-left:    1px black solid;
}
.grid td
{
  text-align:     center;
  padding:        5px 5px 5px 5px;
  border-bottom:  1px black solid;
  border-right:   1px black solid;
}

/**
 * Contact report
 **/
.contacts .lined th
{
  padding-top:    5px;
  padding-bottom: 5px;
}
.contacts .lined td
{
  text-align:     center;
}
.contacts .lined
{
  border-top:     none;
}
.contacts .heading .lined td
{
  border-right:   none;
  background:     #c4deff;
  text-align:     left;
  font-weight:    bold;
  padding-top:    5px;
  padding-bottom: 5px;
}

/**
 * Stats panel (used on server, contact and vulnerability reports)
 **/
.trendinfo
{
  text-align:     right;
  padding-right:  5px;
  white-space:    nowrap;
}
.trendlabel
{
  padding-left:   0px;
}


/**
 * Give the sortable tables a hand cursor for their columns headings.
 **/
.sortable
{
  cursor:     pointer;
  cursor:     hand;
}
