﻿form [class^="col-"], form [class*=" col-"] {
    margin-bottom: 0;
}
form {
    margin-top: 3em;
}

.nav-main.yamm .nav>li>a {
    max-width: none;
}

/* Validation summary bootstrap classes*/
.validation-summary-valid.help-block {
    display: none;
}
/* performance optimization on load*/
.js .hidden-until-init-complete {
    display: none;
}

.no-js .displayed-until-init-complete {
    display: none;
}
.js .displayed-until-init-complete {
    display: block;
}
.js .displayed-until-init-complete.completed {
    display: none;
}

/* Hide when JS is available*/
.only-no-js {
    display: none;
}
.no-js .only-no-js {
    display: block;
}
/* Fix datatables bootstrap margins and form-inline quirks*/
.dataTables_wrapper {
    border-bottom-style: none;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.dataTables_wrapper div.row div {
    margin-bottom: 0em;
}
.dataTables_paginate {
    padding-top: 8px;
}
.no-js .test {
    font-weight: bold;
}

/* Fix datatables filter label margin*/
.dataTables_filter label {
    margin-right: 0;
}

/* Faux links - disguise button as hyperlink*/
button.gewo-btn-link {
    border:0;
    background-color:transparent;
    color: #069;
    padding:0;
}
button.gewo-btn-link:hover {
    text-decoration: underline;
}

/* Faux buttons - disguise links as buttons */
a.btn.btn-default {
    text-decoration: none;
}
a.btn {
    color: #333;
}
a.btn-primary, a.btn-secondary {
    color: #fff;
}
/* App-title */
@media only screen and (min-width: 992px) {
    .brand { width: 580px; }
    .brand h1 { max-width: 320px; }
}
@media only screen and (max-width: 991px) {
    .brand { width: 500px; }
    .brand h1 { max-width: 240px; }
}
.brand h1 {
    white-space: nowrap;
}

/* Page title div */
.kubb-pagetitle {
    margin-bottom: 22px;
}

/* Contact box module as in main admin site */
@media all {
  .mod-contactbox h4 {
    margin-top: 22px;
  }
  .mod-contactbox .tab-pane h4:first-child,
  .mod-contactbox .tab-pane h3:first-child {
    margin-top: 0;
  }
  .mod-contactbox h4 + address {
    padding-top: 0;
  }
  .mod-contactbox h4 + dl {
    margin-top: 0;
  }
  .mod-contactbox address {
    padding: 0;
    font-size: 1.1em;
    line-height: 1.5;
  }
}

/* KUBB section list */
ul.list-section li {
    margin-left: 30px;
    list-style-type: none;
}
ul.list-section li a span {
    float: left;
    text-indent: -20px;
}
ul.list-section li a[data-toggle=collapse] {
    float: left;
    text-indent: -15px;
}

ul.list-section li a[data-toggle=collapse].icon--greater::before,
ul.list-section li a[data-toggle=collapse].collapsed::before,
ul.list-section li a[data-toggle=collapse]::before {
    padding-right: 0;
}

ul.list-section li div ul.kubb-tree {
    margin-left: -34px;
}

/* main content ul margins and disc style */
article ul, article ol {
    margin-top: 11px;
    margin-bottom: 11px;
}

article ul ul, article ol ol, article ul ol, article ol ul{
    margin-top: 0;
    margin-bottom: 0;
}
article ul ul li {
    list-style: disc;
}
article ul li p,article ol li p{
    font-size: 1em;
    margin-top: 0;
    margin-bottom: 0;
}

/* kubb code treeview */
ul.kubb-tree {
    padding: 0;
    margin: 0;
    list-style-type: none;
    position: relative;
}

ul.kubb-tree li {
    list-style-type: none;
    border-left: 2px solid #cccccc;
    margin-left: 1em;
}

ul.kubb-tree li div {
    padding-left: 1em;
    position: relative;
}

ul.kubb-tree li div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    /*bottom: 45%;*/
    height: 0.9em;
    width: 1em;
    border-bottom: 2px solid #cccccc;
    border-left: 2px solid transparent;
    /*border-top: 0 none transparent;
    border-right: 0px none transparent;*/
}

ul.kubb-tree > li:last-child {
    border-left: 2px solid transparent;
}
ul.kubb-tree.kubb-first > li:first-child > div::before {
    border-left: 2px solid transparent;
}
ul.kubb-tree > li:last-child > div::before {
    border-left: 2px solid #cccccc;
}

/* Fix margin between pagination and first search result */
nav.pagination-container{ margin-bottom: 14px;}

/* Search results on one line, text indent */
article.search-result h4 {
    margin-top: 0.1em;
    float: left;
    padding-right: 1em;
}

/*Highlight color*/
mark {
    background: #FFFAB2;
}

/* coding rule*/
div.coding-rule > div {
    border: solid 2px #333333;
    background-color: #D8E8EF;
}
div.coding-rule h3 {
    text-align: center;
    text-decoration: underline;
}
.print-preview div.coding-rule > div{ margin-left: 0;}

/* khb table */
.table.vmiddle td {
    vertical-align: middle;
}
.table th ul li {
    font-size: 1em;
}

/* Debug khb*/
font { background-color: lightcoral;}
span[lang] {background-color: lightsalmon}

/* typeahead styles */
.twitter-typeahead { width: 100%; }
.tt-suggestion p { margin-bottom: 1px;}
.tt-dropdown-menu {
    max-height: 160px;
    overflow-y: auto;
}
.tt-dataset-search {
    max-height: 160px;
    overflow-y: auto;
}