/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */

code {
  background-color: #eee;
  border: 1px solid #ddd;
  padding: 1em;
  display: block;
}

p code {
  display: inline;
  padding: 0.3em;
}

pre.log-output {
  padding: 0.5em;
  margin-top: 0;
  margin-bottom: 2em;
  max-height: 12em;
  overflow: auto;
  border: 1px solid #ddd;
}

//a {
//  color: #39a;
//}

img.icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  border: none;
}

/* TODO: Remove once there is no more module container */
.container > div > pre {
  margin: 1em;
}

.pull-right {
  float: right;
}

table.avp {
  color: @colorTextDarkDefault;
  table-layout: auto;
  width: 100%;
}

table.avp a {
  color: black;
  text-decoration: underline;
}

table.avp > tbody > tr > th {
  text-align: left;
  margin: 0;
  width: 14em;
  vertical-align: top;
  line-height: 1.8em;
}

table.avp > tbody > tr > td {
  line-height: 2em;
  margin: 0;

  word-break: break-all;
  vertical-align: top;
  padding: 0em 0em 0em 0em;
}

table.avp.newsection, table.avp tr.newsection {
  margin-top: 1em;
}

.content table.avp dd, .content table.avp dd {
  margin: 0;
  padding: 0;
}

table.avp a {
  color: @colorLinkDefault;
  text-decoration: none;
}

table.avp a:hover {
  text-decoration: underline;
}

table.benchmark {
  margin: 1em 1% 1em 1%;
  font-family: monospace;
  width: 96%;
}

.dashboard table.benchmark {
  font-size: 0.9em;
}

.left {
  text-align: left !important;
}

.controls a {
  color: inherit;
}

[class^="icon-"]:before, [class*=" icon-"]:before {
    text-decoration: none;
    margin-left: 0;
}

.info-box {
  padding: 0.5em;
  border: 1px solid lightgrey;
  background-color: #f2f4fd;
}

/* Action table */
table.action {
  border-collapse: separate;
  border-spacing: 1px;
  width: 100%;
  table-layout: fixed !important;
  margin: 0;
  color: @colorTextDefault;
}

table.action th {
  text-align: left;
  overflow: hidden;
}

table.action.wide td {
  line-height: 2.5em;
}

table.action td {
  padding: 0.3em 0.5em 0.3em 0.5em;
  line-height: 1.5em;
  overflow: hidden;
}

.dashboard table.action td {
  line-height: 1.2em;
  padding: 0.2 0.4em 0.2em 0.5em;
}

table.action td a {
  color: inherit;
  text-decoration: none;
}

table.action td a:hover {
  text-decoration: underline;
}

/* END of Action table */

/* Table behaviour */

tr[href] {
  cursor: pointer;
}

tr[href].active {
  background-color: #eee;
  color: black;
}

table.alternating {
  tr[href].active:nth-child(even), tr[href].active:nth-child(odd) {
    background-color: #E5E5E5;
    color: black;
  }
  tr[href]:nth-child(even) {
    background-color: #FDFDFD;
  }
  tr[href]:nth-child(odd) {
    background-color: #f5f5f5;
  }
  tr[href]:hover {
    color: black;
    background-color: #DDDDDD;
  }
}
/* End of table behaviour */


/* HOVER colors */

tr[href]:hover {
  color: black;
  background-color: #DDDDDD;
}
/* END of HOVER colors */

div.controls table.user-header {
  th {
    width: 9em;
    line-height: 1.5em;
    font-size: 0.9em;
  }

  td {
    line-height: 1.5em;
    font-size: 0.9em;
  }
}

/* TODO: get rid of most if not all styles below this line,
         by ensuring to not to make everything look ugly... */
div.content.users {
  table.user-list {
    th.user-remove {
      width: 8em;
      padding-right: 0.5em;
      text-align: right;
    }

    td.user-remove {
      text-align: right;
    }
  }

  p {
    margin-top: 0;
  }

  a.user-add {
    display: block;
    margin-top: 1em;
  }
}

form.backend-selection {
  float: right;

  div.element {
    margin: 0;

    label {
      width: auto;
      margin-right: 0.5em;
    }

    select {
      width: 11.5em;
      margin-left: 0;
    }
  }
}

table.usergroupbackend-list {
  th.backend-remove {
    width: 8em;
    text-align: right;
  }

  td.backend-remove {
    text-align: right;
  }
}
