html {
    height: 100%;
    padding: 0;
    margin: 0;
    width: 100%;    
    background: #fff;
    font-family: "Raleway", sans-serif;
    overflow-y: scroll;
    color: #000;
}

button,
a.dt-button {
    text-transform: capitalize;
}

input, textarea, keygen, select, button {
    font-family: "Raleway", sans-serif;
    outline: none;
}

div, textarea {
    box-sizing: border-box;    
}

textarea {
    resize: none;
}

form.grid-form, table, .tablebox {
    background: #fff;
    margin: 20px 20px 60px 20px;
    border-collapse: collapse;
}

th {
    border: none;
    border-bottom: 4px solid #404040;
    color: #404040;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    text-align: left;    
}

th a {
    color: #404040;
    text-decoration: none;
}

td {
    padding: 10px;
}

tr:nth-child(even) td {
    background: #ddd;
}

ul {
    list-style-type: none;
    margin: 0 20px;
    padding: 0;
}

.list>li {
    margin-top:20px;
    margin-bottom:20px;
    -webkit-transition: margin-top 0.3s ease-in-out, margin-bottom 0.3s ease-in-out;
    transition: margin-top 0.3s ease-in-out, margin-bottom 0.3s ease-in-out;
}

li form {
    margin: 0 !important;
    overflow: hidden;
    max-height: 900px;
    -webkit-transition: max-height 0.3s ease-in-out;
    transition: max-height 0.3s ease-in-out;
    line-height: normal;
}

li.closed,
li.closed form {
    margin-top:0px;
    margin-bottom:0px;
}

li.closed form {
    max-height: 0;
}

.headerrow {
    /*text-shadow: 5px 5px 8px rgba(0,0,0,0.3);*/
    cursor: pointer;
}

.headerrow:hover {
    background: #eaffea;
}

/*parsley css*/
.grid-form [data-row-span] [data-field-span] {
    position: relative;
}
.grid-form [data-row-span] [data-field-span].parsley-error:hover,
.parsley-error.focus {
    background: #FFCFCC!important;
}
.parsley-error {
    border-bottom: 2px solid #FF4136;
    color: #FF4136!important;
    background: #FFF5F5;
}
.parsley-error label {
    color: #FF4136!important;

}
.parsley-errors-list {
    position: absolute;
    top: 8px; 
    right: 8px; 
    margin: 0;
    /*text-transform: uppercase;*/ 
    letter-spacing: 1px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 12px;
    display: block;
    top: 0;
    left: 0;
    color: #fff;
    background: #FF4136;
    width: 100%;
}

/*.parsley-errors-list {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    font-weight: bold;
    text-align: right;
    display: block;
}*/

.parsley-errors-list li {
    margin: 0;
}

/*select2 css*/
.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single,
.select2-dropdown {
    border-radius: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: transparent;
    border: 1px solid #aaa;
    padding: 5px;
    border-radius: 0;
    white-space: normal;
}

.select2-selection__choice:last-of-type {
    margin-right: 0;
}

.select2-selection__rendered {
    padding: 0;
    margin: 0;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--multiple{
    border: none;
    padding: 0;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0;
}
.select2-container .select2-selection--multiple .select2-selection__rendered {
    padding: 0;
}



.kompakt form {
    box-shadow: none;
}

li.kompakt:nth-child(even) form {
    background: #ddd;
}

.list>li.kompakt {
    margin:0;
}

.kompakt .grid-form [data-row-span] [data-field-span] {
    padding: 0 5px;
}

.kompakt .grid-form button, .grid-form input[type="text"], .grid-form input[type="email"], .grid-form input[type="number"], .grid-form input[type="password"], .grid-form input[type="search"], .grid-form input[type="tel"], .grid-form input[type="url"], .grid-form input[type="color"], .grid-form input[type="date"], .grid-form input[type="datetime"], .grid-form input[type="datetime-local"], .grid-form input[type="month"], .grid-form input[type="time"], .grid-form input[type="week"], .grid-form textarea, .grid-form select {
    font-size: 15px;
}

.kompakt .select2-container .select2-selection--single {
    height: auto;
}

.kompakt .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 20px;
    padding-left: 0;
}

.kompakt .grid-form [data-row-span] {
    outline: none;
    border-bottom: none;
}

.kompakt .grid-form [data-row-span] [data-field-span] label:first-child {
    margin-bottom: 0;
}

.kompakt .select2-container--default .select2-selection--single {
    border:none;
    outline: none;
    background: transparent;
}

.kompakt .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 20px;
}

.kompakt .select2-container--open .select2-selection--single {
    border-bottom: 1px solid #aaa;
    outline: none;
}

.kompakt:not(:first-of-type) [data-row-span] label {
    display: none !important;
}

.kompakt:first-of-type [data-row-span] {
    padding-bottom: 5px;
}
.kompakt button:hover:not(:active) {
    box-shadow: none!important;
    margin: 0;
}

.kompakt .parsley-errors-list {
    display: none;
}

.kompakt .select2-container .select2-selection--single .select2-selection__rendered {
    font-size: 15px;
}

/*.select2-container {
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    position: relative;
    vertical-align: middle;
    position: absolute;
    top: 21px;
    width: 100%;
    left: 0;
     height: 100%; 
}
.select2-container--default .select2-selection--single {
    border-radius: 0;
}
.select2-container--open .select2-dropdown--below {
    margin-top: 9px;
}*/

.tablebox h1:after,
.menu h1:after,
legend:after {
    content: '\f066';
    font: normal normal normal 14px/1 FontAwesome !important;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
            transform: translate(0, 0);
    display: block;
    height: 20px;
    width: 20px;
    /*font-size: 40px !important;*/
    line-height: 20px !important;
    text-align: center;
    float: right;
    cursor: pointer;
}

.menu h1 {
    box-sizing: border-box;
    margin: 0;
}

.tablebox.collapsed h1:after,
.menu h1.collapsed:after,
.collapsed legend:after {
    content:"\f065";
}

.collapsed [data-row-span],
.collapsed [data-row-span] [data-field-span]{
    border-bottom: 0px;
}

.tablebox.collapsed div,
.collapsed .noaccess,
.collapsed [data-field-span] {
    height: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    overflow: hidden;
    border: 0;
}

.tablebox.collapsed,
form.collapsed {
    margin-top: 0;
    margin-bottom: 0;
}

.content form.collapsed:first-of-type {
    margin-top: 20px;
}

.copntent form.collapsed:last-of-type {
    margin-bottom: 20px;
}

.menu h1.collapsed + ul li {
    height: 0;
    line-height: 0;
    padding: 0;
    margin: 0;
    min-height: 0;
    border: none;
    overflow: hidden;
}

.menu h1.collapsed + ul {
    margin: 0;
}

.dauer_label {
    cursor: pointer;
}

.dauer_label:before {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-right: 4px;
    content: "\f04b";
}

.dauer_label.blink:before {
    content:"\f04c";
}


.noaccess {
    display: block;
    width: 100%;
    border: 2px solid #404040;
    text-align: center;
    padding: 10px;
    color: #404040;
    font-weight: 700;
    height: 100%;
}

.noaccess:before {
    content: '\f05e';
    font: normal normal normal 14px/1 FontAwesome !important;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
            transform: translate(0, 0);
    padding-right: 5px;
}

.blink {
    animation: blink 1s steps(5, start) infinite;
    -webkit-animation: blink 1s steps(5, start) infinite;
}

#printlist {
    display: none;
}

@keyframes blink {
    to {
        font-weight: bold;
    }
}
@-webkit-keyframes blink {
    to {
        font-weight: bold;
    }
}

.popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 100%;
    overflow-y: scroll;
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
    z-index: 3;
}

.backdrop {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
    z-index: 2;
}

.backdrop.hidden,
.popup.hidden {
    -webkit-transform: translateY(100%);
    -ms-transform: translateY(100%);
    transform: translateY(100%);
}

.popup form {
    margin: 0;
    /*box-shadow: none;*/
}

body {
    margin: 0;
}

.menu form {
    margin: 0;
    background: transparent;
    /*box-shadow: none;*/
}

.printContent {
    display: none;
    font-size: 13px;
}

.menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%;
    padding: 10px 10px 60px;
    overflow-y: auto;
    /*background: #FF4136;*/
    background: #FFF;
    z-index: 2;
}

.menu li button {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;    
    text-align: left;
}

.menu li button .small {
    padding-bottom: 4px;
    border-bottom: 2px solid #fff;
    -webkit-transition: border-color 0.1s ease-in-out;
            transition: border-color 0.1s ease-in-out;
}

.menu li button:hover .small{
    /*text-decoration: underline;*/
    border-color: #404040;
}

.content {
    background: #eee;
    position: absolute;
    top: 0;
    left: 20%;
    width: 80%;
    min-height: 100%;
    padding-bottom: 50px;
}

.menu>ul {
    margin: 20px 0;
    text-transform: capitalize;
}

.menu>ul li {
    display: block;
    min-height: 40px;
    line-height: 40px;
    padding: 8px;
    margin: 4px 0;
    border: 1px solid;
    /*box-shadow: 2px 2px 3px rgba(0,0,0,0.2);*/
}

.menu>ul li.active {
    border-width: 4px;
    border-style: double;
    text-align: right;
}

.menu>ul li a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.menu>ul li .small {
    font-size: 13px;
    line-height: 15px;
}

.topbar {
    text-transform: capitalize;
    display: none;
    height: 40px;
    background-color: #404040;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
    z-index: 1;
    width: 100%;
    line-height: 40px;
    font-weight: 700;
}

td button {
    padding: 0 3px;
}

td form {
    text-align: center;
    display: inline-block;
}

button {
    cursor: pointer;
}

.messages ~ .content {
    padding-top: 30px;
}

.messagesList {
    font: normal normal normal 30px/1 FontAwesome !important;
    font-size: 20px;
    line-height: 26px;
    display: block;
    height: 30px;
    width: 30px;
    text-align: center;
    font-weight: bold;
    position: absolute;
    left: -35px;
    transition: border-color 0.3s ease-in-out, background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.messages .count {
    font-size: 15px;
    position: absolute;
    top: -5px;
    left: -15px;
    font-weight: bold;
    height: 20px;
    min-width: 20px;
    line-height: 20px;
    margin-right: -5px;
    border-radius: 20px;
    background: red;
    color: white;
}

.messages {
    z-index: 2;
    display: block;
    position: fixed;
    top: 10px;
    right: 0px;
    max-width: 0;
    transition: max-width 0.3s ease-in-out;
}

.messages li {
    color: #fff;
    line-height: 30px;
    padding: 0;
    /*font-weight: bold;*/
    overflow: hidden;
    white-space: nowrap;
    transition: padding 0.3s ease-in-out;
}

.messages li.error {
    background: rgba(255,65,54,0.8);    
}

.messages li.error:before {
    content: '\f06a';
    font: normal normal normal 20px FontAwesome !important;
    padding-right: 5px;
}

.messages li.success {
    background: rgba(46,204,64,0.8);    
}

.messages li.success:before {
    content: '\f058';
    font: normal normal normal 20px FontAwesome !important;
    padding-right: 5px;
}

.messages li.info {
    background: rgba(0,116,217,0.8);    
}

.messages li.info:before {
    content: '\f05a';
    font: normal normal normal 20px FontAwesome !important;
    padding-right: 5px;
}

.messages:hover {
    max-width: 999px;
}
.messages:hover li {
    padding: 5px 8px;
}

.inactive {
    text-decoration: line-through;
}


@page {
    size: A4;
    margin: 3cm;
}

@media only screen and (min-width: 700px) {

    .kompakt .grid-form [data-row-span] [data-field-span] {
        border-right: none;
        display: block;
    }
}

@media screen and (max-width:1550px) {
    .menu .grid-form [data-row-span] {
        border:none;
    }
    .menu .grid-form [data-row-span] [data-field-span] {
            width: 100%;
    border: none;
    border-bottom: 1px solid #404040;
    }
    
    .menu .grid-form.collapsed [data-row-span] [data-field-span] {
        border-bottom: none;
    }
}

@media screen and (max-width:1000px) {

    .topbar {
        display: block;
    }

    .menu {
        -webkit-transition: -webkit-transform 0.3s ease-in-out;
                transition: transform 0.3s ease-in-out;
        -webkit-transform: translate(-100%,0);
            -ms-transform: translate(-100%,0);
                transform: translate(-100%,0);
    }

    .menu.visible {
        -webkit-transform: translate(0,0);
            -ms-transform: translate(0,0);
                transform: translate(0,0);
    }

    .topbar:before {
        display: inline-block;
        font: normal normal normal 14px/1 FontAwesome;
        font-size: inherit;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        padding-right: 4px;
        content: "\f0c9";
        position: absolute;
        top: 0;
        left: 10px;
        line-height: 40px;
        font-size: 20px;
    }

    .menu, .content {
        width: 100%;
        left: 0;
        top: 40px;
    }
}

@media print {

    form {
        box-shadow: none;
        page-break-inside: avoid;
    }

    input, textarea, keygen, select, button {
        border: none;
    }

    div[data-field-span] {
        border-right: 1px solid #000;
    }

    div[data-field-span]:last-child {
        border-right: none;
    }

    .select2-container--default .select2-selection--single {
        background-color: transparent !important;
        border: none !important;
    }

    .select2-container .select2-selection--single .select2-selection__rendered {
        padding-left: 0 !important;
    }

    .select2-selection__arrow {
        display: none !important;
    }

    .grid-form button {
        vertical-align: bottom;
    }

    .grid-form button:before {
        content: ' ';
        display: inline-block;
        height: 20px;
        width: 20px;
        border: 1px solid #000;
        vertical-align: middle;
        margin-right: 5px;
    }

    .menu, .messages {
        display: none;
    }

    .content.uebersicht, .content form {
        left: 0;
        width: 100%;
        background: transparent;
        margin: 0;
        padding: 0;
    }

    table tr td, table tr th {
        font-size: 12px;
        page-break-inside: avoid;
    }

    .row {
        display: block;
        vertical-align: top;
        margin-bottom: 2mm;
    }

    .printContent > .row {}

    .block, .cnt, .label {
        display: inline-block;
        vertical-align: middle;
    }

    .vtop {
        vertical-align: top;
    }

    .vmid {
        vertical-align: middle;
    }

    .label {
        /*font-weight: 700;*/
        line-height: 0.6cm;
    }

    .division {
        font-weight: 700;
        text-align: center;
        background-color: #404040 !important;
        -webkit-print-color-adjust: exact;
        color: #fff;
    }

    .cnt {
        background: #ddd !important;
        -webkit-print-color-adjust: exact;
        padding: 0 2mm;
        min-height: 0.6cm;
        line-height: 0.6cm;
    }

    .logo img {
        width: 2.5cm;
        margin-right: 0.5cm;
    }

    .cnt.kontakt {
        height: 2.9cm;
    }

    .printContent {
        display: block;
    }

    .content {
        display: none;
    }

    .label.auftragsnummer,
    .label.titel {
        width: 1.5cm;
    }

    .label.eingang {
        width: 1.9cm;
    }

    .cnt.auftragsnummer {
        width: 3cm;
        font-weight: 700;
    }

    .cnt.eingang {
        width: 4.4cm;
    }

    .cnt.titel {
        width: 9.4cm;
        font-weight: 700;
    }

    .label.kontakt,
    .label.verant,
    .label.status,
    .label.notizen,
    .label.kunde {
        width: 2cm;
    }

    .cnt.kunde {
        font-weight: 700;
    }

    .cnt.kunde,
    .cnt.kontakt {
        width: 6cm;
    }

    .label.termine {
        width: 2cm;
    }

    .cnt.termine {
        width: 3.9cm;
        height: 3.7cm;
    }

    .cnt.verant,
    .cnt.status,
    .cnt.notizen {
        width: 12cm;
    }

    .cnt.status {
        height: 5cm;
    }

    .cnt.notizen {
        height: 6cm;
    }

    .printContent > .row:first-child {
        margin-bottom: 1.2cm;
    }
}