#header{
    /*overflow: hidden;*/
    background-color: #222222;
    color: #fff;
}
#logo{
    float: left;
    padding: 5px 0;
    margin: 0 20px 0 10px;
}
#mainmenu{
    width: 180px;
    float: left;
    font-size: 90%;
    padding-top: 39px;
    height: 100%;
    box-sizing: border-box;
    /*overflow: auto;
    overflow-x: hidden;*/
}
#mainmenu.closed{
    width: 40px;
}
#mainmenu ul{
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #fff;
}
#mainmenu li{
}
#mainmenu a{
    display: block;
    height: 40px;
    line-height: 40px;
    color: #A3A3A3;
    text-decoration: none;
    border-bottom: 1px solid #fff;
    overflow: hidden;
}
#mainmenu a:before{
    font-size: 16px;
}
#mainmenu a:hover,
#mainmenu a:focus{
    color: #262626;
}
#mainmenu a:focus:before,
#mainmenu a:hover:before{
    /*background-color: #A3A3A3;*/
}
#mainmenu li{
    position: relative;
}
#mainmenu .active a{
    background-color: #262626;
    color: #fff;
    font-weight: bold;
}
#mainmenu .active a:before{
    color: #FFD800;
    background-color: #000;
}
#mainmenu a:before{
    font-weight: normal;
    margin-right: 10px;
    display: block;
    float: left;
    height: 40px;
    width: 40px;
    line-height: 40px;
    text-align: center;
}
#mainmenu .active:after{
    position: absolute;
    content: "";
    display: block;
    border-left: 6px solid #262626;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    right: -6px;
    top: 12px;
    z-index: 10;
}
#keys_help{
    display: inline-block;
    position: relative;
}
.help-keys-list{
    min-width: 150px;
    list-style: none;
    padding: 10px;
    margin: 0;
    position: absolute;
    /*border: 1px solid red;*/
    border: 1px solid #666;
    background-color: #222222;
    box-shadow: 1px 1px 10px rgba(0,0,0,0.5);
}
.help-keys-list table{
    margin: 0;
}
.help-keys-list th,
.help-keys-list td{
    padding: 1px 3px;
    border-bottom: 1px solid #555;
}
.help-keys-list tr:last-child th,
.help-keys-list tr:last-child td{
    border-bottom: none;
}
.empty #content{
    background-color: #ddd;
}
.empty .content,
.columns{
    overflow: hidden;
    padding-top: 39px;
    box-sizing: border-box;
    height: 100%;
}
.columns-2 #content{
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}
.header-controls{
    margin: 5px 10px 0 10px;
    float: right;
}
.header-controls a,
.header-controls button{
    color: #aaa;
    text-decoration: none;
}
.header-controls a:hover,
.header-controls a:focus,
.header-controls button:hover,
.header-controls button:focus{
    color: #fff;
}
.header-controls-menu{
    margin: 0;
    float: right;
}
.header-controls-menu-button{
    padding: 5px 8px !important;
}
.header-controls-menu-container{
    background-color: #222;
    position: absolute;
    right: 0;
    padding: 10px;
    z-index: 900;
}
.header-controls-menu-container>a,
.header-controls-menu-container>div{
    display: block;
    width: 100%;
}
.header-controls-menu-container .button{
    display: block;
    width: 100%;
    border: none;
}
#keys_help{
    float: left;
}
.crumbs{
    padding: 5px 0;
    line-height: 28px;
    float: left;
    margin-right: 20px;
}
.breadcrumbs{
    float: left;
    color: #A3A3A3;
}
.breadcrumbs a{
    color: #A3A3A3;
    text-decoration: none;
}
.breadcrumbs a:hover,
.breadcrumbs a:focus{
    color: #fff;
}
.breadcrumbs a:first-child{
    color: #fff;
    font-weight: bold;
}
h1{
    font-weight: bold;
}
.empty .content h1{
    padding: 0;
    color: #aaa;
    font-size: 36px;
    text-shadow: 1px 1px 1px #fff;
}
#content{
    position: relative;
    height: 100%;
    background-color: #fff;
}
.main-controls{
    float: right;
    margin-top: 25px;
}
input, textarea, select{
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    padding: 5px;
    background-color: #fff;
    color: #000;
    border: 1px solid #aaa;
}
/* BUTTON STYLES */
.button{
    color: #444;
    padding: 5px 8px;
    border-radius: 2px;
    text-decoration: none;
    outline: none;
    border: none;
    background: none;
    cursor: pointer;
    margin: 0 5px 0 0;
    display: inline-block;
    border: 1px solid #ddd;
    box-sizing: border-box;
}
.button:before{
    margin-right: 5px;
    font-size: 12px;
    color: #666;
}
.button.secondary{
    background-color: #ddd;
    border: 1px solid #bbb;
}
.button.secondary:before{
    color: #444;
}
.button.primary{
    background-color: #FFD800;
    border: 1px solid #aaa;
}
.button.primary:before{
    color: #222;
}
.button.small{
    font-size: 12px;
    margin: 0;
    margin-right: 5px;
    padding: 2px 5px;
    line-height: 1;
}
.button.small:before{
    font-size: 10px;
}
.button:focus,
.button:hover,
.button.active{
    color: #000;
    border-color: #666;
    text-decoration: none;
}
#header .button{
    border-color: #444;
}
#header select{
    background-color: #222;
    color: #aaa;
    border-color: #444;
    margin: 0;
}
.standard-header{
    border-bottom: 1px solid #F4F4F4;
    padding: 0 20px;
    min-height: 82px;
    overflow: hidden;
}
.standard-header-element,
.standard-header-info{
    border: none;
    border-radius: 0;
    margin: 0;
    height: 42px;
    line-height: 42px;
    padding: 20px;
    font-weight: bold;
    box-sizing: content-box;
}
.standard-header-element{
    float: left;
    border-right: 1px solid #f4f4f4;
    text-decoration: none;
    color: #111;
}
input.standard-header-element[type=text],
input.standard-header-element[type=search]{
    border: 1px solid #aaa;
    padding: 5px;
    line-height: 22px;
    height: 22px;
    margin: 25px 0;
    font-weight: normal;
}
.standard-header-right{
    padding-right: 0;
}
.standard-header-right .standard-header-element{
    float: right;
    border-left: 1px solid #f4f4f4;
}
.standard-header-info{
    overflow: hidden;
}
.standard-header-element.button:before{
    display: block;
    text-align :center;
    margin: 0;
    font-size: 16px;
    line-height: 18px;
    color: #FFD600;
}
.standard-header-element.button:hover,
.standard-header-element.button:focus{
    background-color: #f4f4f4;
    border-color: #f4f4f4;
}
.standard-header-element input[type=checkbox],
.standard-header-element.dropdown select{
    display: block;
    margin: 0 auto;
    height: 18px;
}
.standard-header-element.dropdown{
    text-align: center;
    padding-top: 15px;
    padding-bottom: 25px;
    line-height: 32px;
}
.standard-header-element.dropdown select{
    height: 28px;
    margin: 0 auto;
}
.standard-header-element h1,
.standard-header-element h2,
.standard-header-element h3,
.standard-header-element h4{
    margin: 0;
}
.standard-header-element h1:before,
.standard-header-element h2:before,
.standard-header-element h3:before,
.standard-header-element h4:before{
    margin-right: 5px;
}
.standard-header-element:before,
.standard-header-element:before,
.standard-header-element:before,
.standard-header-element:before{
    font-size: 28px;
    margin-right: 10px;
}
.standard-content{
    padding: 21px 40px;
    overflow: auto;
}
.unselectable{
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: moz-none;
    -ms-user-select: none;
    user-select: none;
}

.quicksearch-icon{
    margin-left: 5px;
    margin-right: 10px;
    line-height: 27px;
    display: inline-block;
}
.quicksearch-result{
    background-color: #eee;
    padding: 5px 10px;
    position: relative;
}
.quicksearch-result:before{
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: -10px;
    margin-top: -10px;
    height: 0;
    width: 0;
    border-right: 10px solid #eee;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}
.empty{
    text-align: center;
    color: #aaa;
    font-weight: bold;
    font-size: 18px;
    padding: 30px 0;
}
.empty input{
    width: 100%;
}
.empty label{
    text-align: left;
}
/* https://gist.github.com/jfsiii/5380802 */
.vbox {
    /* previous syntax */
    display: -webkit-box;
    display:    -moz-box;
    display:         box;

    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -ms-box-orient: vertical;
    box-orient: vertical;

    /* current syntax */
    display: -webkit-flex;
    display:    -moz-flex;
    display:     -ms-flex;
    display:         flex;

    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* items flex/expand horizontally */
.hbox {
    /* previous syntax */
    display: -webkit-box;
    display:    -moz-box;
    display:     -ms-box;
    display:         box;

    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    -ms-box-orient: horizontal;
    box-orient: horizontal;

    /* current syntax */
    display: -webkit-flex;
    display:    -moz-flex;
    display:     -ms-flex;
    display:         flex;

    -webkit-flex-direction: row;
    -moz-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
}
.flex {
    /* previous syntax */
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -ms-box-flex: 1;
    box-flex: 1;

    /* current syntax */
    -webkit-flex: 1;
    -moz-flex: 1;
    -ms-flex: 1;
    flex: 1;
}
.info-table{
    width: auto;
    border-collapse: collapse;
}
.info-table tbody td,
.info-table tbody th{
    padding: 5px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
.portlet-content .history{
    padding: 5px;
    margin: 0;
    list-style: none;
}
.history li{
    margin: 0 0 5px 0;
    border-bottom: 1px solid #ddd;
}
.history a{
    display: block;
}
@media (max-width:1200px) {
    .button{
        padding: 10px 15px;
    }
    .form input{
        padding: 10px;
        font-size: 14px;
    }
    #sidebar{
        display: none;
    }
    .grid-view table.items th{
        font-size: 12px !important;
    }
    h1{
        font-size: 16px;
    }
    .order-state{
        padding: 7px !important;
        font-size: 12px !important;
    }
    .order-state:before{
        display: none;
    }
    .order-data-sidebars{
        width: 350px !important;
    }
    .order-data-sidebar{
        width: auto !important;
        float: none !important;
    }
    .order-main{
        right: 350px !important;
    }
    .customer-editor>div{
        display: block !important;
    }
    .customer-orders{
        padding-left: 0 !important;
    }
    .help-keys-button{
        display: none;
    }
}
@media print {
    body{
        background: none;
        font-size: 8pt;
    }
    *{
        color: #000;
    }
    .noprint,
    .button,
    .grid-view>.summary{
        display: none !important;
    }
    .button{
        display: none !important;
    }
    #content{
        border: none !important;
        margin: 0.5cm !important;
        padding: 0 !important;
    }
    .columns-2{
        margin: 0 !important;
        padding: 0 !important;
    }
    .filters{
        display: none;
    }
    th{
        font-size: 8pt !important;
        padding: 5px !important;
        height: auto !important;
        line-height: 1 !important;
    }
    td, td a{
        font-weight: normal;
    }
    .grid-view td{
        border-bottom: 1px solid #bbb !important;
    }
    .standard-header{
        border: none !important;
        padding: 0 !important;
    }
    .standard-header-element{
        border: none !important;
    }
}
/* Default Eeryaal styles*/
.align-left{
    text-align: left;
}
.align-right{
    text-align: right;
}
.align-center{
    text-align: center;
}
.align-justify{
    text-align: justify;
}
figure.image{
    display: inline-block;
    text-align: center;
}
a.align-left,
img.align-left,
figure.align-left{
    float: left;
}
a.align-right,
img.align-right,
figure.align-right{
    float: right;
}
a.align-center,
img.align-center{
    display: block;
    margin: 0 auto;
}
figure.image.align-center{
    display: block;
    width: max-content;
    width: -moz-max-content;
    width: intrinsic;
    margin: 0 auto;
}
.italic,
i{
    font-style: italic;
}
b{
    font-variant:small-caps;
    font-weight: normal;
}
em{
    text-decoration: underline;
    font-style: inherit;
}
strong{
    font-weight: bold;
}
ins{
    text-decoration:none;
    border-bottom: 1px dashed #000;
}
abbr{
    border-bottom: 1px dotted #000;
}
q::before{
    content: '“';
}
q::after{
    content: '”';
}

code{
    white-space: pre;
}
pre>code{
    display: block;
    overflow: auto;
}
pre>code.code-numbered{
    counter-reset:line;
}
pre>code.code-block span{
    counter-increment: line;
    display: inline-block;
    width: 100%;
}
pre>code.code-numbered span:before{
    content: counter(line);
    display: inline-block;
    width: 30px;
    margin-right: 5px;
    padding-right: 5px;
    border-right: 1px solid #000;
    text-align: right;
}
pre>code.code-block span:nth-child(2n){
    background-color: #f8f8f8;
}
figure{
    border: 1px solid #ccc;
    display: inline-block;
}
figure img{
    margin: 5px;
}
figcaption{
    padding: 5px;
    border-top: 1px solid #ccc;
    background-color: #eee;
}