.header_wrapper {
    position: fixed;
    width: 100%;
    z-index: 1;
    top: 0;
}
.aui-page-panel {
    margin: 79px 0 0;
}

/* Box / Grid styles */

.grid {
    width: 100%;
    padding-top: 20px;
}

.griditem {
    float: left;
    border: 1px solid #aaa;
    width: 600px;
    height: 285px;
    overflow-y: auto;
    margin-right: 20px;
    margin-bottom: 20px;
    padding: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 5px 5px 2px 2px #AAAAAA;
    box-shadow: 5px 5px 2px 2px #AAAAAA;

}

.griditem-small {
    width: 300px;
    height: 200px;
}



p.aui-buttons.pagination {
    text-align: right;
    width: 100%;
}

table.center-all td, table.center-all th {
    margin-top: 0;
    text-align: center;
    white-space: normal;
}

/*
.griditem p, .griditem h2, .griditem table, .griditem h3 {
    zoom: 0.9;
    -ms-zoom: 0.9;
    -webkit-zoom: 0.9;
    -moz-transform:  scale(0.9,0.9);
    -moz-transform-origin: left center;
}
*/


.griditem ul {
    margin-left: 20px;
}

.griditem h2 {
    padding: 0 0 0 5px;
}

.griditem h2.withbutton {
    display: inline;
    width: 510px; /* 600px - x */

}

.griditem h3 {
    padding: 0 0 0 5px;
}

.griditem td > p {
    padding: 0;
}

.griditem td > p.aui-lozenge {
    padding: 0;
}

.griditem p {
    padding: 0 0 0 5px;
}

.griditem table {
    margin-top: 5px;
}

hr.clear {
    clear: both;
    border: 1px solid #CCCCCC;
    height: 1px;
}


.djangoform {
    border: 1px solid #aaa;
    background: #eee;
    padding: 15px;
    margin: 15px 0;
    /*width: 100%;*/
    border-radius: 4px 4px 4px 4px;
}

.djangoform ul.fielderror {
    margin-left: 20px;
}

.djangoform ul.fielderror p.error {
    font-size: 90%;
    color: red;
}

.djangoform select, .djangoform input {
    width: 384px;
}

.djangoform select option::selection {
    font-style: italic;
}

.djangoform input {
    padding: 5px;
}

.djangoform input[type=checkbox] {
    width: auto;
}

.djangoform p.help_text {
    font-size: 90%;
    color: #d48013;
}

.djangoform .chosen-container a, .djangoform .chosen-container a:hover, .djangoform .chosen-container a:active {
    color: #000000 !important;
    text-decoration: none !important;
}

.djangoform th {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    text-align: right;
    vertical-align: top;
}

.djangoform th.required label {
    font-weight: 600;
}

.djangoform td{
    border-bottom: 1px dashed #eee;
    vertical-align: top;
    padding-left: 15px;
}

.djangoform td .chosen-container {
    padding-top: 0px;
}

.djangoform select option {
    padding-left: 5px;
}

.djangoform tr.last td {
    border-bottom: 3px double #eee;
    border-top: 3px double #eee;
    text-align: right;
}


.aui-tabs.horizontal-tabs > .tabs-menu ~ .tabs-pane {
  border-top: 1px solid #cccccc;
  padding-top: 10px;
}

table.aui.aui-table-icons > tbody > tr > td {
    vertical-align: baseline;
}

.aui-page-header-dark {
    /*background: none repeat scroll 0 0 rgba(236, 236, 236, 0.07);*/
    /*border-bottom: 1px solid #CCCCCC;*/
    /*margin: 0 -20px 20px;
    padding: 25px 20px 0;*/
    margin-top: -5px;
}

.aui-page-header-dark h1 {
    /*font-variant: small-caps;*/
}

header.aui-page-header-dark + ol.aui-nav-breadcrumbs {
    margin: 10px 0;
}



.subtext {
    text-transform: uppercase;
    color: #aaa;
    font-size: 8pt;
}

.smalltext {
    font-size: 7pt;
    color: #aaa;
}

.small-description {
    font-size: 10pt;
    white-space: normal;
    padding-top: 5px;
}

.center_notop {
    text-align: center;
    margin-top: 0;
}

table.aui td.center {
    text-align: center;
}

.subtext2 {
    font-size: 8pt;
}

.formula {
    font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
}

.help_text {
    width: auto;
    font-size: 10pt;
    color: #14892c;
    margin-left: 5px;
}

#leftnav li.aui-nav-selected a {
    background-color: #F6F6F6;
}

.ccm-icon {
    margin-left: inherit;
    width: inherit;
}

.align-right {
    text-align: right !important;
}

.aui-button-subtle-flat {
    padding: 4px 2px 4px 4px !important;
}

.mpttactioncolumn {
    width: 210px;
}

/* Inlines */

.aui-inline-dialog .contents {
    padding: 0;
}

.aui-inline-dialog .form .row:first-child {
    border-bottom: 1px solid #CCCCCC;
}

.aui-inline-dialog .form {
    background-color: #F5F5F5;
}

.aui-inline-dialog .form .content {
    background-color: #FFFFFF;
    border-left: 1px solid #CCCCCC;
    margin-left: 50px;
    padding: 20px;
    overflow-y: auto;
}

.aui-inline-dialog .form .content h2 {
    padding-top: 0;
    margin-top: 0;
}

.aui-inline-dialog .content .img-icon {
    color: #CCCCCC;
    height: 32px;
    left: 9px;
    position: absolute;
    width: 32px;
}

.aui-inline-dialog {
    /*width: 400px;*/
}

/* Contract Elements visibility */

table.aui > tbody > tr.contract-element-group  {
    /*border-top: 3px dotted #aaa;*/
}

table.aui > body > tr > .contract-has-description {

}

.contract_list .pmeta {
    display: none;
    width: 300px;
}

.pricecol {
    display: none;
}

table.aui td.alignright, table.aui th.alignright {
    text-align: right;
}

table.aui th.vertical_text {
    transform: rotate(270deg);
	transform-origin: left top 0;
}


.pricesumcol td, .pricesumcol th {
    border-top: 1px double #000;
    border-bottom: 3px double #000;
}

table.aui {
    overflow-x: scroll;
}

form.aui ul.fielderror {
    padding-left: 0;
}

form.aui ul.fielderror li {
    /*list-style: none;*/
    color: red;
}

ul.fielderror p.error {
    /*list-style: none;*/
    color: red;
}


form.aui th.required label:after {
    content: "*";
    color: red;
}

ul.default {
    padding-left: 25px;
}

table.aui .item-image img {
    vertical-align: middle;
}

.item-image-500 img {
    max-height: 500px;
    max-width: 500px;
}


.item-image-200 img {
    max-height: 200px;
    max-width: 200px;
}

.item-image-150 img {
    max-height: 150px;
    max-width: 150px;
}

.item-image-max-height-150 {
    margin: 0 10px 0 0;
}

.item-image-max-height-150 img {
    max-height: 150px;
}

.item-image-100 img {
    max-height: 100px;
    max-width: 100px;
}

.item-image-50 img {
    max-height: 50px;
    max-width: 50px;
}

.item-image-30 img {
    max-height: 30px;
    max-width: 30px;
}

.item-image-20 img {
    max-height: 20px;
    max-width: 20px;
}

.horizontal-tabs .active-pane .bordered-pane {
    /*margin: 20px;*/
    margin: 0 0 0 0;
    padding: 20px;
    border-right: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    border-left: 1px solid #ccc;
}

table.aui.aui-table-icons tr th {
    vertical-align: baseline;
}

table.aui.aui-table-icons tr td.withbutton {
    padding: 2px 10px;
}

.aui-page-panel-content input[type="text"] {
    width: 400px;
}

.aui-page-panel-content table input[type="text"] {
    /*width: 100px; */
}

form.aui ul {
    list-style-type: none;
}

.hover {
    background-color: #ffe2cf;
}

tr.hover td {
    background-color: #ffe2cf;
}

table.tablesorter thead tr .header {
    background-image: url(../img/bg.gif);
    background-repeat: no-repeat;
    background-position: left 13px;
    cursor: pointer;
    padding-left: 20px;
}

table.tablesorter thead tr .headerSortUp {
    background-image: url(../img/asc.gif);
}
table.tablesorter thead tr .headerSortDown {
    background-image: url(../img/desc.gif);
}

table.tablesorter thead tr .sorter-false {
    background-image: none;
    padding-left: 0;
}

table.tablesorter tbody td {
    padding-left: 20px;
}

.djangoform input[type="text"].ccm-splitdaterangewidget {
    width: auto;
}

p.tip {
    padding: 5px;
    color: #aaa;
    font-size: 8pt;
    font-family: "Lucida Grande", "DejaVu Sans", "Bitstream Vera Sans", Verdana, Arial, sans-serif;
}

form.horizontal .errorlist {
    margin: 0;
    padding: 0;
    color: red;
    font-size: 9pt;
}

.errorlist {
    padding-left: 5px;
}

.errorlist li {
    color: red;
}

.formerror {
    border: 1px solid red;
}

.contract-element-device .aui-message.hint {
    overflow-y: auto;
    max-height: 300px;
}

.zoom2 {
    zoom: 2;
    -moz-transform: scale(2);
    -moz-transform-origin: 0 0;
    -o-transform: scale(2);
    -o-transform-origin: 0 0;
    -webkit-transform: scale(2);
    -webkit-transform-origin: 0 0;
    transform: scale(2); /* Standard Property */
    transform-origin: 0 0;  /* Standard Property */
}

.zoom08 {
    zoom: 0.8;
    -moz-transform: scale(0.8);
    -moz-transform-origin: 0 0;
    -o-transform: scale(0.8);
    -o-transform-origin: 0 0;
    -webkit-transform: scale(0.8);
    -webkit-transform-origin: 0 0;
    transform: scale(0.8); /* Standard Property */
    transform-origin: 0 0;  /* Standard Property */
}

.mycompany {
    background: #AEDF8C;
}

.nowrap {
    white-space: nowrap;
}

/* Chosen */

li.active-result {
    white-space: nowrap;
}

a.quickedit:link, a.quickedit:hover, a.quickedit:visited {
    border-bottom: 1px dotted red;
}

a.quickedit:hover {
    text-decoration: none;
    border-bottom: 1px solid red;
}

.hibw {
    display: none;
}

table.aui > thead > tr > th,
table.aui > tbody > tr > th,
table.aui > thead > tr > td,
table.aui > tbody > tr > td,
table.aui > tfoot > tr > td {
    white-space: nowrap;
}

footer .footer-body {
    color: #aaa;
    font-size: 12pt;
    margin: 20pt;
}

li.more {
    font-style: italic;
    font-size: x-small;
}

table.aui tr.even td {
    background-color: #EBEBEB !important;
}

.float-right {
    float: right;
}

.hijacked-warning-default {
    top: auto !important;
    bottom: 0;
}

/* repeat headers */
thead {display: table-header-group;}
tfoot {display: table-header-group;}

ul.flatlist {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

.aui-button[disabled] {
    cursor: not-allowed;
}

/* AVinfo */
table.avinfo tr.avinfo-not-at-project {
    display: none;
    background-color: #f0d4d0;
}

table.avinfo tr.device td:first-of-type {
    border-left: 10px solid #aaa;
}
table.avinfo tr.item td:first-of-type {
    border-left: 10px solid #fff;
}

table.avinfo tr.device {
    display: none;
}

table.avinfo tr.item {
    border-top: 1px solid #000;
}

table.avinfo td.alignright, table.avinfo th.alignright {
    text-align: right;
}

input[type="text"].big, input[type="number"].big, .big  {
    font-size: 17pt;
    text-align: center;
    width: auto;
    font-weight: 600;
    padding: 5px;
}

.big-code {
    color: blue;
}

.big-amount {
    color: green;
}


.selected-input {
    border: 2px solid green;
}

i.red {
    color: red;
}

i.green {
    color: green;
}

table.aui ul.errors {
    white-space: normal;
    margin-left: 0;
}

.round-border {
    border: 1px solid #ccc;
    border-radius: 3px;
    margin: 10px 0 20px 0;
    padding: 20px;
}

aui-inline-dialog#myprojects .aui-inline-dialog-contents {
    padding: 0;
}

aui-inline-dialog#myprojects table.aui>tbody>tr:first-child>td {
    border-top: none;
}

.error {
    color: red;
}

.item-attachments {
    background-color: #ddd;
    border-radius: 10px;
    border: 1px dotted #ccc;
    margin: 10px 0;
    display: inline-block;
}

.item-attachments h3 {
    border-bottom: 1px solid #ccc;
    border-right: 1px solid #ccc;
    /* margin-top: 3px; */
    padding: 4px 10px 4px 10px;
    font-size: 9pt;
    font-weight: bolder;
    border-radius: 10px;
    display: inline;
    background-color: #f5f5f5;
}

.item-attachments .item-attachments-images {
    margin: 10px;
}

.button-width-1 {
    min-width: 115px;
    text-align: right;
}

.button-width-2 {
    min-width: 50px;
    text-align: right;
}

.aui-lozenge-normal {
    text-transform: none;
    font-style: normal;
}

#clipboard.aui-dropdown2.aui-style-default.aui-layer {
    overflow-y: auto;
    max-height: 600px;
}
