/* dbkit specific css */
/* Adjustment of sb admin theme 2 */

#page-wrapper {
    padding: 8px 0 0 0;
}

@media(min-width:768px) {
    .buttonrow{
        padding-left:250px;
    }
    .sidebar {
        margin-top: 0px;
    }
}
.navbar-top-links .dropdown-menu li a {
    white-space: normal;
}

.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
    width: 350px;
}

.sidebar .nav-second-level li a {
    padding-left: 47px;
}
/* End of Adjustments of sb admin theme 2 */




/**** Foldable Panels *********/
.clickable{
    cursor: pointer;
}
/***************************/
/* Enable smaller Tables (idea taken from Bootstrap v4) */
.table-sm th,
.table-sm td {
    padding: .3rem !important;
}
/* Enable smaller panels */
.panel-body{
    padding:5px !important;
}
.panel-body .row {
    /*padding-bottom: 0px;*/
}

.panel-title {
    font-weight: bold;
}

.panel-heading .fa-chevron-up {
    display: inline;
}
.panel-heading .fa-chevron-down {
    display: none;
}
.panel-heading.collapsed .fa-chevron-up {
    display: none;
}
.panel-heading.collapsed .fa-chevron-down {
    display: inline;
}
/* show accesskeys */
a[accesskey].showaccesskey::after,
input[accesskey].showaccesskey::after,
span[accesskey].showaccesskey::after {
    z-index: 10;
    font-size: 20px;
    margin-left: 0.3em;
    color: black;
    content:"[" attr(accesskey) "]";
    background-color: yellow;
}
/*Accesskeys on list naviagation buttons*/
button[accesskey].showaccesskey::after{
    position: relative;
    left: -3em;
    top: -25px;
    z-index: 10;
    font-size: 16px;
    color: black;
    content: "[" attr(accesskey) "]" attr(data-accesskey-additionldescription);
    background-color: yellow;

}

/* KIT Design on Bootstrap */
.panel-default .panel-heading{
    background-image: linear-gradient(to bottom,#f7f7f7 5%,#e7e7e7 100%);
    background-repeat: repeat-x;
    color: #337ab7 !important;
    border-color: #e8e8e8 !important;
}

.panel-default{
    border-color: #aaa !important;
}
label {
    font-weight: 700;
}
label .fa.fa-asterisk {
    font-size: 70%;
    position: relative;
    bottom: 4px;
}

.btn-primary{
    background-color:rgb(0, 150, 130);
    border-color: rgb(0, 150, 130);
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus
{
    background-color:rgb(0, 120, 100);
    border-color: rgb(0, 120, 100);

}
.btn-primary:active:hover,
.btn-primary:active:focus
{
    background-color:rgb(0, 90, 70);
    border-color: rgb(0, 90, 70);

}

.pagination > li > a,
.pagination > li > span,
.pagination > li > a:hover,
.pagination > li > span:hover {
    color: rgb(0, 150, 130);
}

.pagination > .active > a,
.pagination > .active > a:hover {
    background-color: rgb(0, 150, 130);
    border-color: rgb(0, 120, 100);
}

.navbar-text{
    margin-top:85px;
    margin-left:20px;

}

@media(min-width:798px) {
    .navbar-text {
        margin-top:15px;
    }
}

.modalBackground {
    position: fixed;
    font-family: Arial, Helvetica, sans-serif;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10000;
    opacity:1;
    pointer-events: none;
}


.modalBackground  .modal-content {
    width: 600px;
    position: relative;
    margin: 10% auto;
    padding: 5px 20px 13px 20px;

}

/* Side Menu */
#side-menu .fa.fa-lg.arrow {
    line-height: 18px;
}


/* spinner for rel 1n and nm selectors */
.selectize-control > .fa-spinner {
    display: block;
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 30px;
    transform-origin: 45% 45%;
    visibility: hidden; /* the spinner is hidden per default */
}

.selectize-control.loading > .fa-spinner {
    visibility: visible; /* the spinner is visible during loading */
}

/* clear button for rel 1n and nm selectors */
.selectize-control > .clear {
    display: none;
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 30px;
    cursor: pointer;
}

/* double carets for rel nm selectors */
.selectize-control.rel-nm > .relnm-caret {
    position: absolute;
    z-index: 2;
    right: 12px;
    cursor: pointer;
}
.selectize-control.rel-nm .relnm-caret.relnm-caret-1  {
    top: 7px;
}
.selectize-control.rel-nm .relnm-caret.relnm-caret-2  {
    top: 13px;
}

/* some formatting for selectize controls */
.selectize-control .title {
    display: block;
}

.selectize-control .meta {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 90%;
}
.selectize-control .meta li {
    margin: 0;
    padding: 0;
    display: inline;
    margin-right: 10px;
}
.selectize-control .meta li span {
    font-weight: bold;
}

.selectize-control.multi .selectize-input.has-items,
.selectize-control.single .selectize-input {
    padding-right: 50px;
}

/* increase height of selectize dropdown */
.selectize-dropdown-content {
    max-height: 530px;
}
/* darken selected dropdown item (default is too light) */
.selectize-dropdown .active {
    background-color: #bbb;
}
/* display special values in italics */
.selectize-control .special{
    font-style: italic;
}

/* highlight focused selectize controls in yellow */
.selectize-control.single .selectize-input.focus, .selectize-control .selectize-input.focus {
    background-color: #fffacd;
}
/* remove rounded corners for selectize controls with input group addons */
.input-group-addon ~ .selectize-control .selectize-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

fieldset {
    padding-top: 5px;
}

label {
    margin-bottom: 0;
}

/* hide state specific help texts per default so that they can be shown in state specific CSS */
.popover-content .state-search,
.popover-content .state-show,
.popover-content .state-insert,
.popover-content .state-change {
    display: none;
}
/* some padding between (definition) list items */
dt, .popover-content li {
    padding-top: 0.5rem;
}
/* indent definition lists */
dl > dt, dl > dd {
    margin-left: 1.5em;
}

/* Bootstrap callouts are used in help popovers */
.bs-callout {
    padding: 10px;
    margin: 20px 0;
    border: 1px solid #eee;
    border-left-width: 5px;
    border-radius: 3px;
}
.bs-callout h5 {
    margin-top: 0;
    margin-bottom: 5px;
}
.bs-callout p:last-child {
    margin-bottom: 0;
}
.bs-callout code {
    border-radius: 3px;
}
.bs-callout+.bs-callout {
    margin-top: -5px;
}
.bs-callout-default {
    border-left-color: #777;
}
.bs-callout-default h5 {
    color: #777;
}
.bs-callout-primary {
    border-left-color: #428bca;
}
.bs-callout-primary h5 {
    color: #428bca;
}
.bs-callout-success {
    border-left-color: #5cb85c;
}
.bs-callout-success h5 {
    color: #5cb85c;
}
.bs-callout-danger {
    border-left-color: #d9534f;
}
.bs-callout-danger h5 {
    color: #d9534f;
}
.bs-callout-warning {
    border-left-color: #f0ad4e;
}
.bs-callout-warning h5 {
    color: #f0ad4e;
}
.bs-callout-info {
    border-left-color: #5bc0de;
}
.bs-callout-info h5 {
    color: #5bc0de;
}

/* Bootstrap examples are used in help popovers */
.bs-example
{
    position: relative;
    margin: 15px 0;
    padding: 30px 19px 5px;
    background-color: white;
    border: 1px solid #DDD;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
.bs-example::after
{
    content: "Beispiel";
    position: absolute;
    top: -1px;
    left: -1px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: bold;
    background-color: whiteSmoke;
    border: 1px solid #DDD;
    color: #9DA0A4;
    -webkit-border-radius: 4px 0 4px 0;
    -moz-border-radius: 4px 0 4px 0;
    border-radius: 4px 0 4px 0;
}


/* For all Buttons in the buttonrow */

.buttonrow .btn{
    /* Add margin between rows in buttonbar */
    margin-left: 3px;
    /* minimum size of buttons */
    min-width:140px;


}


/* ListView controls*/
.list_navigation_button{
    min-width:30px !important;
    max-width:30px !important;
    width:30px !important;
    height: 34px !important;
}
.list_navigation_right_button{
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    margin-left:0px !important;

}
.list_navigation_left_button{
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    margin-right:0px !important;

}

/* Bigger tooltips on bigger screens */
.popover{
    max-width: 350px !important;
}
@media(min-width:768px) {
    .popover{
        max-width: 600px !important;
    }
}

/* Smaller alert margins */
.alert{
    margin-bottom:10px;
}

/* darker font in input fields and textareas */
.form-control{
    color:#333;
}

/* Non-editable single-line text input fields with LaTeX support */
div.form-control.latex.single-line {
    overflow: hidden;
    white-space: nowrap;
}
/* Non-editable multi-line text input fields with LaTeX support */
div.form-control.latex.multi-line {
    height: 54px;
    overflow: auto;
    resize: both;
}

/* Styling Placeholders */
::-webkit-input-placeholder {
    font-style: italic !important;
}
::-webkit-textarea-placeholder {
    font-style: italic !important;
}
:-moz-placeholder {
    font-style: italic !important;
}
::-moz-placeholder {
    font-style: italic !important;
}
:-ms-input-placeholder {
    font-style: italic !important;
}

/* This is needed to so that textareas respect the z-index css property */
.dbkit-texarea{
    position:relative;
}

/* Underline links in alerts */
.alert a{
    text-decoration: underline;
}