﻿/*** general element styles ***************************************************/
html { font-size: 12px; }

body { overflow-y: hidden; }

.popover .arrow { visibility: hidden; }

/*.row {
     width: 100%;
}*/

a, a:hover, a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.fa.pull-left {
    width: 20px;
    text-align: left;
}

.fa.pull-right {
    width: 20px;
    text-align: right;
}

.fas {
    width: 20px;
    text-align: left;
}

.fas.pull-right { text-align: right; }

.wrapper {
    display: flex;
    align-items: stretch;
}

.nowrap { white-space: nowrap; }

.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

.form-button { min-width: 138px; }

.form-button-small { min-width: 75px; }

.required:after { content: " *"; }

.not-required:after {
    content: " ";
    margin-left: 9px;
}

/*** general feature styles ***************************************************/

/* - flipping */

.flipContainer {
    -moz-perspective: 2500;
    -ms-perspective: 2500;
    -o-perspective: 2500;
    -webkit-perspective: 2500;
    perspective: 2500;
}

.flipContainer .flipable {
    -moz-transform-style: preserve-3d;
    -moz-transition: 0s;
    -moz-transform-origin: 0% 0%;
    -ms-transform-style: preserve-3d;
    -ms-transition: 0s;
    -ms-transform-origin: 0% 0%;
    -o-transform-style: preserve-3d;
    -o-transition: 0s;
    -o-transform-origin: 0% 0%;
    -webkit-transform-style: preserve-3d;
    -webkit-transition: 0s;
    -webkit-transform-origin: 0% 0%;
    transform-style: preserve-3d;
    transition: 0s;
    transform-origin: 0% 0%;
}

.flipContainer .unflipped {
    -ms-transform: rotatey(0);
    -moz-transform: rotatey(0);
    -o-transform: rotatey(0);
    -webkit-transform: rotatey(0);
    transform: rotatey(0);
}

.flipContainer .flipped45 {
    -ms-transform: rotatey(45deg);
    -moz-transform: rotatey(45deg);
    -o-transform: rotatey(45deg);
    -webkit-transform: rotatey(45deg);
    transform: rotatey(45deg);
}

/*** feature styles ***********************************************************/

/* - header area */

#header {
    position: fixed;
    top: 0;
    left: 0;
    height: 50px;
    width: 100%;
    background: url('../images/bg.png');
}

.headerLogoCircle {
    float: left;
    margin-left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 4px;
}

#headerSearch {
    position: absolute;
    left: 250px;
    top: 8px;
    right: 140px;
}

@media (max-width: 768px) {
    #headerSearch {
        left: 102px;
        right: 45px;
    }
}

#headerAccount {
    float: right;
    margin-top: 13px;
    margin-right: 15px;
}

/* - main content area */

#mainContent {
    overflow-y: auto;
    position: absolute;
    top: 50px;
    left: 250px;
    bottom: 0;
    right: 0;
    background-color: #f8f8f8;
    padding: 10px;
}

#mainContent.active { left: 50px; }

@media (max-width: 768px) {
    #mainContent { left: 0; }
}

.contentPanel {
    background: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    float: left;
    height: 100%;
    padding: 4px 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.contentPanel.flipped45 {
    width: 200px;
    margin-right: -150px;
}

.stretchPanel { width: 100%; }



/* - sidebar area */

#sidebar {
    min-width: 250px;
    max-width: 250px;
    color: #337ab7;
    border-right: 1px solid #e0e0e0;
    transition: all 0;
    background: url('../images/bg.png');
    height: 100vH;
}

#sidebar.active {
    min-width: 50px;
    max-width: 50px;
    text-align: center;
}

#sidebar ul li a {
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

#sidebar.active ul li a {
    padding: 10px 10px;
    text-align: left;
}

#sidebar.active ul li a span {
    padding: 10px 10px;
    text-align: center;
    display: none;
}

#sidebar.active ul li a i {
    margin-right: 0;
    display: block;
}

#sidebar.active ul ul a { padding: 10px !important; }

#sidebar.active a[aria-expanded="false"]::before, #sidebar.active a[aria-expanded="true"]::before {
    top: auto;
    bottom: 5px;
    right: 50%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}

#sidebar ul.components { padding: 50px 0; }

#sidebar ul li a {
    padding: 10px;
    display: block;
}

#sidebar ul li a:hover {
    color: #337ab7;
    background: #e0e0e0;
}

#sidebar ul li a i {
    width: 18px;
    margin: 5px;
}

#sidebar ul li.active > a, a[aria-expanded="true"] {
    color: #337ab7;
    background: #efefef;
}

#sidebarBackground {
    background: url(../images/imagebg.png);
    background-size: cover;
    opacity: .4;
    margin-left: -200px;
    height: 400px;
    width: 450px;
    float: none;
    position: absolute;
    bottom: 0;
    pointer-events: none;
}

#sidebar.active #sidebarBackground { max-width: 250px; }

a[data-toggle="collapse"] { position: relative; }

@media (max-width: 768px) {
    #sidebar {
        min-width: 250px;
        max-width: 250px;
        text-align: center;
        margin-left: -250px !important;
    }

    #sidebar.active { margin-left: 0 !important; }
}

/* - Katalogverwaltung */

.katalogTable { border: solid 1px lightgray; }

.importPopoverContainer .popover {
    max-width: 800px;
    width: auto;
}

/* - Artikel */

.artikelGroupPanel { width: 100%; }

.artikelGroupPanel .artikelGroupButtonLink {
    background: transparent;
    padding-left: 4px;
    color: #337ab7;
    display: inline-block;
    text-align: left;
    border-radius: 0;
}

.artikelGroupPanel .artikelGroupButtonLink.active { background: lightgray; }

.artikelGroupPanel .artikelGroupButtonLink .fa { margin-top: 3px; }

.artikelGroupPanel .artikelGroupButtonLink .artikelGroupButtonLinkText {
    margin-bottom: -5.5px;
    max-width: 125px;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.artikelGroupPanel .artikelGroupDevider {
    background-color: gray;
    height: 1px;
}

.artikelListPanel { width: 640px; }

.artikelPanel { width: 768px; }

.artikelFamilienPanel { width: 768px; }

.artikelGruppePanel {
    width: 768px;
}

.dokumentPanel { width: 768px; }

.bauteilWartungstypPanel,
.bauteilBauteilnamePanel,
.bauteilKalkulationsminutenKuerzelPanel { width: 768px; }

.artikelDokumentePanel,
.artikelBauteilnamenPanel,
.artikelKalkulationsminutenKuerzelPanel { width: 768px; }

.artikelWartungstypenPanel { width: 768px; }

.zugehörigeArtikelPanel { width: 768px; }

.searchArtikelPanel {
    width: 768px;
    background-color: #EFEFEF;
}

.artikelNummerListItem:hover { cursor: pointer; }

.artikelDetailsSearchDiv .artikelPreviewPanel {
    background: white;
    min-height: 100%;
    padding: 4px 14px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.artikelDetailsSearchDiv .artikelPreviewPanel span.inputLabel,
.artikelDetailsSearchDiv .artikelPreviewPanel span.valueText {
    font-weight: normal;
    display: inline-block;
    /*margin-top: 8px;*/
    white-space: nowrap;
    text-overflow: ellipsis;
}

.artikelDetailsSearchDiv .artikelPreviewPanel span.inputLabel {
    font-size: 75%;
    font-weight: bold;
}

/*.artikelDetailsSearchDiv .artikelPreviewPanel span.valueText {
    font-size: 13px;
}*/

/*Input boxes*/

* { box-sizing: border-box; }

form > div.labelinput {
    position: relative;
    margin-bottom: 8px;
}

div.labelinput input {
    /*width: 100%;
    border: 1px solid gray;
    border-radius: 4px;*/
    /*background: none;*/
    position: relative;
    top: -15px;
    left: 0;
    z-index: 1;
    /*padding: 8px;*/
    outline: 0;
    margin-top: 15px;
}

div.labelinput input:focus {
    /*border-color: darkgreen;
    background-color: #ddffdd;*/
}

div.labelinput label {
    font-size: 14px;
    font-weight: normal;
}

div.labelinput input:focus + label.cdlabel /*, div.labelinput input:valid + label.cdlabel*/ {
    font-size: 12px;
    padding: 8px 20px;
    z-index: 2;
}

/*div.labelinput input:valid + label.cdlabel {
    color: #999;
}*/

div.labelinput input:focus + label.cdlabel { color: darkgreen; }

div.labelinput label.cdlabel {
    transition: 0.2s;
    position: absolute;
    color: #999;
    padding: 20px 6px;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

div.labelinput label.helper {
    transition: 0.2s;
    position: absolute;
    color: #999;
    font-size: 12px;
    bottom: -10px;
    right: 0;
    width: 100%;
    text-align: right;
    visibility: hidden;
}

div.labelinput input { padding: 4px; }

div.labelinput input:focus + label.cdlabel /*, div.labelinput input:valid + label.cdlabel */ {
    top: -2px;
    bottom: 22px;
    margin-top: 0px;
}

div.labelinput input:focus + label.cdlabel + label.helper {
    visibility: visible;
    right: 0;
    bottom: -20px;
}

.smallArtikelNummer { }

.artikelSearchSmall {
    line-height: 1.2;
    font-size: 70%;
}

.colLabel {
    float: left;
    position: absolute;
    width: 60px;
    padding-left: 5px;
    top: 0;
    left: 0;
}

.colValue {
    /*float: left;*/
    /*position: absolute;*/
    margin-left: 60px;
    width: 100%;
    /*top: 0;
    left: 0;*/
}

.textlink { cursor: pointer; }

.textlink:hover { text-decoration: underline; }

.link { cursor: pointer; }

.selectedArtikel { font-weight: bold; }

.artikelHighlight { background-color: #b0c0ff !important; }

.rabattGruppeHighlight {
    color: #2830af;
    font-weight: bold;
}

.artikelHighlight2 { background-color: #e0f0ff !important; }

.selectedDocument { background-color: #b0ffc0 !important; }

.selectedBauteilname { background-color: #ffb0c0 !important; }

.insertAbove { border-top: black thick solid; }

.insertBelow { border-bottom: black thick solid; }

.doc-count {
    background-color: #b0ffc0;
    border: #b0ffc0 solid;
    border-radius: 50%;
    color: blue;
}

.items-count {
    background-color: #b080ff;
    border: #b080ff solid;
    border-radius: 50%;
    color: yellow;
}

.dok-curtarget,
.bauteilname-curtarget { border: black thick solid; }

/* Hersteller */

.importHerstellerPanel { width: 100%; }

.importHerstellerContainer input { width: 100%; }

.tooltip-inner {
    white-space: nowrap;
    max-width: none;
}

.searchArtikelDetailsPanel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: solid 2px #b0ffc0;
}

.artikelSearchListPanel {
    height: 400px;
    overflow: auto;
    border-bottom: solid 1px #ddd;
    margin-bottom: 40px;
    padding-bottom: 40px;
    overflow: auto;
}

.artikelSearchDetailsPanel {
    padding-bottom: 40px;
    border-bottom: solid 1px #ddd;
    max-height: 300px;
    min-height: 100px;
    height: auto;
    overflow: auto;
}


body .typeahead.dropdown-menu { z-index: 2000; }

body .typeahead.dropdown-menu .active { background-color: #b0c0ff; }

.pager-number {
    display: inline-block;
    margin-right: 3px;
    margin-left: 3px;
    /*min-width: 15px;*/
}

.rep-conrol {
    float: right;
    width: auto;
    height: 100%;
    display: table;
}

.rep-conrol div {
    display: table-cell;
    vertical-align: middle;
    margin-right: 2px;
}

/* Tree */

ul.cdttop, ul.cdttop ul {
     list-style-type: none;
}

ul.cdttop {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.cdttop ul {
    list-style-type: none;
    margin: 0;
    padding-left: 16px;
}

.cdttoggler {
    vertical-align: middle;
    cursor: pointer;
}

.cdttoggler.cdtcollapsed {
    width: 16px;
    height: 16px;
    content: "\25B6";
    color: black;
    display: inline-block;
    margin-right: 6px;
    width: 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><polyline points='5,4 12,8 5,12' /></svg>");
}

.cdttoggler.cdtexpanded {
    width: 16px;
    height: 16px;
    content: "\25B6";
    color: black;
    display: inline-block;
    margin-right: 6px;
    -ms-transform: rotate(90deg); /* IE 9 */
    -webkit-transform: rotate(90deg); /* Safari */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><polyline points='5,4 12,8 5,12' /></svg>");
    transform: rotate(90deg);
}

.cdtnotoggler {
    width: 16px;
    height: 16px;
    display: inline-block;
    /*background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><circle cx='8' cy='8' r='5' /></svg>");*/
}

.cdtwrapper {
    text-overflow: ellipsis;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

    .cdtwrapper:hover {
        background-color: #d8efff;
    }

.cdthighlight {
    background-color: #b0c0ff;
}

.clearfix-right::after {
    display: block;
    clear: right;
    content: "";
}

.cdticon {
    margin-right: 6px;
}

.cdt-btn {
    cursor: pointer;
    margin: 2px;
}

.cdt-imgnav-header {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.dropz {
    min-height: 50px;
    min-width: 100px;
    width: 100%;
    border: lightgrey 1px solid;
    color: lightgrey;
    border-radius: 10px;
}

.dropz-hint::before { content: "Bitte ziehen Sie die Dateien hier oder clicken zur Auswahl"; }
