/* These two are needed to avoid the indentation for H1 in the content */
h1 {
    padding: 0px;
    padding-bottom: 12px;
}
#contentMain .inside {
    padding-top: 0px;
}

/* Disable full-width input fields */
input[type="text"], input[type="search"], input[type="password"], input[type="tel"], input[type="email"], input[type="file"], select, textarea {
    width: inherit;
}

/* Remove nagetive margins for input fields */
td input[type="text"], td input[type="search"], td input[type="password"], td input[type="tel"], td input[type="email"], td input[type="file"], td select, td textarea {
    margin-top: inherit;
    margin-bottom: inherit;
}

/* Additionals level 4 to 7 for the content navigation */
#contentNavi ul li li li li a {
    padding-left: 48px;
}
#contentNavi ul li li li li li a {
    padding-left: 60px;
}
#contentNavi ul li li li li li li a {
    padding-left: 72px;
}
#contentNavi ul li li li li li li li a {
    padding-left: 84px;
}
 
/* Override fixed width for td */
/* Setting the weight on first-child breaks multi-level tables */
.twikiTable td:first-child {
    width: inherit;
    font-weight: inherit;
}

/* Plain table style for formating content without CSS */
table.plain {
    border: none;
    width: inherit;
    margin: inherit;
}
table.wide {
    width: 100%;
}
table.narrow {
    width: inherit;
}
table.plain td {
    border: none;
    width: inherit;
    font-weight: inherit;
    color: inherit;
    font-size: inherit;
}
table.nopadding td {
    padding: inherit;
}
table.dynamic td {
    width: inherit;
}
table.plain td input[type="button"],
table.plain td input[type="reset"],
table.plain td input[type="submit"],
table.plain td .submit {
    margin-top: inherit;
    margin-bottom: inherit;
}
table.plain td.left {
    text-align: left;
}
table.plain td.right {
    text-align: right;
}

/* No borders on the side of tables as in corporate design for web */
th:last-child {
    border-right: none;
}
th:first-child {
    border-left: none;
}

/* Table headers left-aligned not centered */
th {
    text-align: left;
}

/* Table content vertically centered and with consistent padding also with rowspan>1 */
th, td, td:first-child {
    vertical-align: middle;
    padding-left: 5px;
}

/* Fix aggressive assignment of link icons */
#content a[target="_blank"] {
    padding-right: inherit;
    background: inherit;
}
#content a[target="_blank"].linkIntern {
    padding-right: 15px;
    background: url('../images/arrow-link.png') no-repeat right center;
}
#content a[target="_blank"].linkExtern {
    background: url('../images/arrow-extern.png') no-repeat right center;
    padding-right: 15px;
}

/* User all right if no logout button */
#userStatusBar #user_nologout {
    position: absolute;
    top: 9px;
    right: 0px;    
}

#userStatusBar #user_nologout a {
    padding-left: 0;
    padding-right: 0px;
}

/* TWiki item lists */
dl {
    margin-left: 18px;
}
dl dd {
    margin-left: 18px;
    margin-bottom: 18px;
}
/* Content navigation with lock sign */
#contentNavi ul li a {
    overflow: hidden;
}
#contentNavi ul li a.secure {
    background: url('../images/lock.png') no-repeat right center;
}

body.twikiPreview #contentContainer, body.twikiPreview #contentContainerSide {
    background: url('/pub/TWiki/PreviewBackground/preview2bg.gif');
}

/* No green border for plain links */
a.plain:hover {
    border-bottom: none;
}

/* Tree view for sitemap */
.sitemap,
.sitemap ul {
  margin:0 0 0 1.0em; /* indentation */
  padding:0;
  list-style:none;
  color:#c8cacc;
  position:relative;
}

.sitemap ul {margin-left:1.0em} /* (indentation/2) */

.sitemap:before,
.sitemap ul:before {
  content:"";
  display:block;
  width:0;
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  border-left:1px solid;
}

.sitemap li {

  margin:0;
  padding:0 1.5em; /* indentation + .5em */
  line-height:2em; /* default list item's `line-height` */
  font-weight:bold;
  position:relative;
}

.sitemap li:before {
  content:"";
  display:block;
  width:10px; /* same with indentation */
  height:0;
  border-top:1px solid;
  margin-top:-1px; /* border top width */
  position:absolute;
  top:1em; /* (line-height/2) */
  left:0;
}

.sitemap li:last-child:before {
  background:white; /* same with body background */
  height:auto;
  top:1em; /* (line-height/2) */
  bottom:0;
}

/* Profile picture */
img.profile {
    width: 160px;
    padding-right: 12px;
    padding-bottom: 12px;
    float: left;
}
div.profile > h2 {
    padding-top: 0px;
    padding-bottom: 0px;
}
div.profile > p {
    margin-bottom: 0px;
}
div.profile {
    float: left;
}

/* Screenshots for illustrating a process */
div.screenshot {
}
img.screenshot {
    float: left;
    width: 200px;
    padding-right: 12px;
    padding-bottom: 12px;
}

/* Additional icon for links to websites */
.website {
        background: url('../images/icon-website.png') no-repeat left center;
        padding-left: 20px;
        display: inline-block;
        margin:0;
}

/* Make the textarea for editing topics a little more user-friendly */
textarea.twikiTextarea {
    font-family: monospace;
    font-size: 14px;
}

/* Lists */
.inside dt {
    font-weight: bold;
}

/* List styles for ETH layout */
div.ethlist ul {
    list-style-image: url('/pub/TWiki/ETHSkin/images/bulletrd-font14.png');
}
div.ethnobulletlist ul {
    list-style-type: none;
    margin-left: 0px;
}

/* Optimize print layout */
div#printFooter {
    display: none;
}
@media print {
    div#printFooter {
        display: block;
    }
    nav#contentNavi, footer#footer, nav#portalNavi, div#search, div#user_nologout, div#user {
        display: none;
    }

    .withContentNavi #contentNavi {
        width: 0px;
    }

    div#userStatusBar {
        width: inherit;
    }

    .withContentNavi #contentMain {
        width: inherit;
        float: left;
    }

    div#printFooter div.printFooterContent {
        margin-top: 20px;
        padding-top: 10px;
        border-top: 1px solid #000000;
        display: inline-block;
        width: 100%;
    }
}

/* Message boxes */
div.messagebox img {
   vertical-align: middle;
   float: left;
   padding: 0px 10px 0px 0px;
}
div.messagebox {
   display: block;
   vertical-align: top;
   margin: 10px 0px 10px 0px;
   padding: 10px 10px 10px 10px;
}

