.tableHeaderDefault {
    position: static;
}

.tableHeaderFixed {
    position: fixed;
    top: 0px;
    z-index: 999;
}

/* LOGIN FORM */
.loginPanel {
    width: 600px;
    margin: 80px auto 0px auto;
    text-align: center;
}

.loginForm {
    width: 350px;
    margin: 0px auto;
}

.loginField {
    width: 130px;
}

.loginEnvironment {
    font-size: large;
    margin: 20px;
    text-align: center
}

.logo {
    margin-bottom: 40px;
}

.mainButton {
    margin-top: 20px;
}

.errorMessage {
    color: red;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

/* TOPBAR */
#topbar {
    width: 100%;
    height: 44px;
    margin-bottom: 30px;
    padding: 5px 0px 0px 0px;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

#topbarcontent {
    padding: 7px 10px 5px 10px;
}

#topbarlogo {
    float: left;
    margin-right: 30px;
    font-size: x-large;
    font-weight: bold;
    font-style: italic;
    color: white;
    font-size: x-large;
}

#topbarlogo a, #topbarlogo a:hover {
    color: white;
    text-decoration: none;
}

#topbarmainmenu {
    float: left;
    padding-top: 6px;
}

#topbar #topbarmainmenu a {
    margin-left: 12px;
    padding: 4px 6px;
    border-radius: 4px;
}

#topbar #topbarmainmenu a:nth-of-type(1) {
    margin-left: 3px;
}

#topbarright {
    float: right;
    text-align: right;
}

#topbartext {
    font-style: italic;
    font-size: smaller;
}

#topbarmenu {
    font-weight: bold;
    margin-top: 2px;
}

#topbar a {
    margin-left: 15px;
}

.dropdownLink {
    border-radius: 4px;
    margin-left: 10px;
    padding: 4px 6px;
    color: #85b2cb;
    cursor: pointer;
}

.dropdown-menu .backward a::before, .dropdown-menu .forward a::before {
    color: #333;
    margin-left: -12px;
    margin-right: 8px;
    content: '‹';
}

.dropdown-menu .forward a::before {
    content: '›';
}

.dropdownLink::after {
    content: '↓';
    margin-left: 6px;
    margin-right: 0px;
    color: #fff;
}

#topbarmainmenu a:hover, .dropdownLink:hover, .dropdownLink.dark:hover {
    color: #fff;
    text-decoration: none;
    background-color: rgba(125, 125, 125, 0.5);
}

.dropdownLink:hover:after, .dropdownLink.dark:hover:after {
    color: #333;
}

.dropdownLink.dropdown-open, .dropdownLink.dark.dropdown-open {
    background: #888;
    color: #FFF;
}

.dropdownLink.dropdown-open:after, .dropdownLink.dark.dropdown-open:after {
    color: #FFF;
}

.dropdownLink.dark {
    color: #4D7B94;
    background: #F2F2F2;
}

.dropdownLink.dark::after {
    color: #333;
}

#topbarmainmenu .businessUnitGroup {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 7px 0px 7px 0px;
    border: 1px solid #666;
    border-radius: 6px;
}

#topbarmainmenu .businessUnitGroup .businessUnitPicker {
    margin-left: 0px;
    margin-right: 6px;
    padding: 7px;
    text-align: right;
    color: #fff;
    background-color: rgba(20, 20, 20, 0.2);
    border-radius: 6px 0px 0px 6px;
}

/* TITLE BAR */
#titlebar {
    min-height: 29px;
    background-color: rgba(255, 255, 255, 0.2);
}

#titlebarLeft, .floatLeft {
    float: left;
}

#titlebarRight, .floatRight {
    float: right;
}

#titlebar a {
    margin: 12px 8px 0px 8px;
}

.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

/* GENERAL */
html, body, table {
    font-family: Arial, Verdana, sans-serif;
    font-size: 10pt;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll;
}

body {
    background: url("/javax.faces.resource/dark_circles.png.xhtml?ln=img");
}

h1 {
    margin: 3px 0px 0px 0px;
    color: #85b2cb;
    font-size: 150%;
}

h2 {
    margin: 3px 0px 0px 0px;
    color: #7096ab;
    font-size: 120%;
}

a, a:active, a:visited {
    text-decoration: none;
    color: #85b2cb;
}

a:hover {
    text-decoration: underline;
    color: #99cde9;
}

a .blackLink, a:active .blackLink, a:visited .blackLink {
    text-decoration: none;
    color: #4F4F4F;
}

label {
    margin-right: 20px;
}

hr {
    position: relative;
    margin: 10px 0 10px;
    padding: 0;
    height: 1px;
    border: 0;
    border-top: 1px solid #ddd;
}

/* Remove border on tree */
.ui-tree {
    border: none;
}

.conversionFactor, .descriptionLabel {
    margin: 0 15px 0 5px;
    color: #999;
    font-style: italic;
    width: 50px;
}

.conversionFactor, .descriptionLabel, .description {
    margin-top: 3px;
}

.marker {
    display: inline-block;
    padding: 0px 4px;
    font-weight: bold;
    font-size: 90%;
    color: white;
    border-radius: 7px;
    margin-left: 5px;
    background-color: #aaa;
}

.pointerCursor {
    cursor: pointer;
}

#contextBubble hr {
    border-top: 1px solid #666;
}

#contextBubble h2 {
    font-weight: bold;
    font-size: 100%;
    color: white;
    margin-top: 13px;
}

#main {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

#singleColumnMain, #sidebarMain {
    margin: 10px;
}

#singleColumnMain .bubble {
    margin-bottom: 10px;
}

#sidebarMain {
    position: relative;
}

#sidebarMain #sidebar {
    float: left;
    width: 230px;
}

#sidebarMain #content {
    margin-left: 240px;
}

#sidebarMain #sidebar .bubble {
    margin-bottom: 10px;
}

/* menu should be a div inside a bubble */
#sidebarMain #sidebar .menu {
    margin: -10px;
}

#sidebarMain #sidebar .menu a {
    display: block;
    padding: 10px 10px 10px 10px;
    border-bottom: 1px solid #5d5d5d;
    background-image: url("/javax.faces.resource/linkarrow.png.xhtml?ln=img");
    background-repeat: no-repeat;
    background-position: 95% 50%;
}

#sidebarMain #sidebar .menu a:hover {
    background-image: url("/javax.faces.resource/linkarrow_over.png.xhtml?ln=img");
}

#sidebarMain #sidebar .menu a.activeMenuItem {
    background-color: rgba(255, 255, 255, 0.1);
    color: #99cde9;
    background-image: url("/javax.faces.resource/linkarrow_over.png.xhtml?ln=img");
}

#sidebarMain #sidebar .menu a.activeMenuItem:hover {
    text-decoration: none;
}

#sidebarMain #sidebar .menu a.lastMenuItem {
    border-bottom: none;
}

#sidebarMain #sidebar .menu a.backButton {
    background-image: url("/javax.faces.resource/linkarrow_back.png.xhtml?ln=img");
    background-position: 5% 50%;
    text-indent: 35px;
    border-bottom: none;
}

#sidebarMain #sidebar .menu a.backButton:hover {
    background-image: url("/javax.faces.resource/linkarrow_back_over.png.xhtml?ln=img");
}

.required {
    background-image: url("/javax.faces.resource/required.gif.xhtml?ln=img");
    background-position: top right;
    background-repeat: no-repeat;
    padding-right: 10px;
}

.invalid, .negative {
    color: red;
}

/* TODO: IntelliJ claims that background-clip settings should be padding-box instead of padding */
.bubble {
    padding: 10px 10px 10px 10px;
    -moz-background-clip: padding; /* Firefox 3.6 */
    -webkit-background-clip: padding; /* Safari 4? Chrome 6? */
    background-color: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    color: white;
    background-clip: padding-box;
    /* Firefox 4, Safari 5, Opera 10, IE 9 */
}

.bubble a, .bubble a:visited, .bubble a:active {
    color: #85b2cb;
}

.bubble a:hover {
    color: #99cde9;
}

.active-bubble {
    background-color: white;
    border: 3px solid rgba(255, 255, 255, 0.4);
    color: black;
    color: -webkit-text;
}

.active-bubble a, .active-bubble a:visited, .active-bubble a:active {
    color: #7096ab;
}

.bubbleHeader {
    background-color: rgba(255, 255, 255, 0.1);
    margin-left: -10px;
    margin-right: -10px;
    margin-top: -10px;
    margin-bottom: 10px;
    padding-top: 10px;
    border-bottom: 1px solid #5d5d5d;
    padding-top: 10px;
    position: relative;
}

.bubbleHeaderRight a, .bubbleHeaderRight a:visited, .bubbleHeaderRight a:active, .bubbleHeaderRight .ui-commandlink {
    margin-left: 10px;
    text-decoration: none;
}

/** disabled h:link in bubble should look disabled and have same padding as others */
.bubbleHeaderRight > form > span {
    padding-left: 10px;
    opacity: .35;
}

.active-bubble .bubbleHeader {
    background-color: #F6F6F6;
    border-bottom: 1px solid #a8a8a8;
}

.bubbleHeader h1 {
    display: inline-block;
    margin: 3px 10px 10px 10px;
}

.bubbleHeader .bubbleHeaderRight {
    position: absolute;
    bottom: 5px;
    right: 12px;
}

.bubbleHeaderRight .ui-selectonemenu {
    vertical-align: bottom;
    margin: -12px 0px 0px 10px;
}

.bubbleHeaderRight .ui-selectonebutton {
    display: inline-block;
    vertical-align: bottom;
    margin: -12px 0px 0px 10px;
}

.bubbleHeader .bubbleHeaderRight a:hover {
    text-decoration: underline;
}

.footerTable {
    margin-top: 0px;
}

/* PRIMEFACES */

#main th .ui-dt-c span:first-child + span {
    margin-left: 4px;
}

#main .ui-widget-header .ui-inputfield, #main .ui-widget-content .ui-inputfield {
    font-weight: bold;
}

#main .ui-chkbox .ui-chkbox-label {
    margin-top: 3px;
}

#main .ui-datatable-subtable-header {
    background: #eee;
}

#main .ui-messages-error, #main .ui-message-error {
    color: #D8000C;
    background-color: #FFBABA;
    border-color: #B94A48;
}

#main .ui-messages-warn, #main .ui-message-warn {
    color: #9F6000;
    background-color: #FEEFB3;
    border-color: #9F6000;
}

#main .ui-messages-info, #main .ui-message-info {
    color: #00529B;
    background-color: #BDE5F8;
    border-color: #00529B;
}

/* Change font size of widgets, as per the PrimeFaces documentation */
.ui-widget, .ui-widget .ui-widget, label, .ui-datatable td, .ui-datatable th {
    font-size: 90%;
}

#sidebar .ui-widget {
    font-size: 1em;
}

.ui-panel, .ui-datatable {
    margin-top: 10px;
}

.ui-inputfield {
    background: #ffffff;
}

.ui-corner-all {
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.ui-button-error .ui-icon {
    background-image: url("/javax.faces.resource/ui-icons_cc0000_256x240_red.png.xhtml?ln=img");
}

#ui-datepicker-div button.ui-datepicker-current {
    opacity: 1;
    filter: none;
}

.animated .ui-progressbar-value {
    background-image: url("/javax.faces.resource/pbar-ani.gif.xhtml?ln=img");
}

/* remove formatting for p:dataList */
.ui-datalist-data {
    padding-left: 0px;
    margin-bottom: 0px;
}

.ui-datalist-content {
    border: none;
}

.ui-datalist-item {
    list-style-type: none;
}

/** Primefaces fileupload */
.fileupload-content {
    padding: 0px !important;
}

.files {
    margin: 0px !important;
}

.fileupload-buttonbar label .ui-button-text {
    font-size: 116%;
}

.palletisationColumn {
    width: 80px;
    margin: 0px;
    padding: 0px;
}

.palletisationContainer {
    display: block;
    width: 92px;
    margin: 0px -5px 0px -5px;
}

.palletisationContainer .left {
    display: block;
    float: left;
    width: 25px;
    text-align: right;
}

.palletisationContainer .center {
    display: block;
    float: left;
    width: 23px;
    text-align: center;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    margin: 0px 5px 0px 5px;
}

.palletisationContainer .right {
    display: block;
    float: left;
    width: 32px;
    text-align: left;
}

.block {
    display: block;
}

#main .numberColumn {
    text-align: right;
    white-space: nowrap !important;
    width: 80px;
}

/* Don't enforce numberColumn styling on headers */
#main th.numberColumn {
    text-align: center;
    white-space: normal !important;
}

.numberField {
    width: 65px;
}

.abbrFilter {
    width: 50px !important;
}

.countColumn {
    text-align: right;
    white-space: nowrap;
    width: 45px;
}

.countField {
    width: 55px;
}

.inputCountColumn {
    width: 65px;
}

.discountColumn {
    text-align: right;
    width: 56px;
}

.discountField {
    width: 45px;
}

.dateColumn {
    width: 70px;
}

.dateTimeColumn {
    width: 115px;
}

.codeColumn {
    width: 95px;
}

.iconColumn {
    width: 10px;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

.smallColumn, .buttonsColumn1 {
    width: 28px;
}

.buttonsColumn2 {
    width: 55px;
}

.buttonsColumn3 {
    width: 82px;
}

.buttonsColumn4 {
    width: 109px;
}

.stockRemovalCountColumn {
    text-align: right;
    width: 53px;
}

/* PRODUCT DETAIL */
.endOfLife {
    color: red;
}

.smallTextColumn {
    width: 40px;
}

.mediumTextColumn {
    width: 100px;
}

.noWrapText {
    white-space: nowrap;
}

.labelColumn {
    width: 200px;
    vertical-align: top;
}

.dialogLabelColumnn, .ui-dialog .labelColumn {
    width: 100px;
    vertical-align: top;
}

.topAlign {
    vertical-align: top;
}

.middleAlign {
    vertical-align: middle;
}

.bottomAlign {
    vertical-align: bottom;
}

.leftAlign {
    text-align: left;
}

.rightAlign {
    text-align: right;
}

.centerAlign {
    text-align: center;
}

.fullWidth {
    width: 100%;
}

.halfWidth {
    width: 50%;
}

.paddingBottom10 {
    padding-bottom: 10px;
}

.paddingRight10 {
    padding-right: 10px;
}

.paddingLeft10 {
    padding-left: 10px;
}

.unpadded {
    padding: 0;
}

.noborderspacing {
    border-spacing: 0;
}

.unpadded td {
    padding: 0;
}

.lineThrough {
    text-decoration: line-through;
}

.strong {
    font-weight: 900;
}

.tableDataList {
    margin: 2px 0px;
}

.tableDataList span {
    font-size: 110%;
}

.tableDataList .ui-datalist-content {
    background: none;
}

.tableDataList ul {
    margin: 0px;
    padding: 0px;
}

.ui-state-highlight .tableDataList span {
    text-shadow: 0px 1px 10px #cccccc;
}

.inputFieldHeight {
    height: 27px;
    vertical-align: middle;
}

.descriptionLineTable {
    border-spacing: 0;
}

.languageColumn {
    width: 70px;
    vertical-align: middle;
    padding: 0;
    margin: 0;
}

#productDetailForm tbody, .alignTop {
    vertical-align: top;
}

.subtleText {
    color: #999;
    font-style: italic;
}

.text90Percent {
    font-size: 90%;
}

.confirmationMessage {
    font-weight: bold;
    font-size: 110%;
}

.subtleLabel {
    color: #666;
    font-size: small;
    font-style: italic;
    padding-bottom: 5px;
    display: block;
    width: 100px;
}

.iconLink {
    background: #ffffff;
    border: 0px;
}

#main .footerCell {
    border-top: 0px;
}

#productTabs ul.ui-tabs-nav {
    background-color: white;
    width: 150px;
}

#productTabs .ui-tabs-nav li {
    height: 60px;
    background-color: white;
}

#proposalFooterTable .numberColumn, #proposalFooterTable .countColumn {
    text-align: right;
}

.nonFinalized, .disabled, .promoPast {
    color: #aaa;
}

.nonDelivered, .promoFuture {
    color: #7096AB;
}

.retour, .creditNote {
    color: red;
}

.retourDeliveryLinkText {
    font-size: 10pt;
    margin-right: 10px;
    color: #7096AB;
    font-weight: bold;
}

.outgoingStockGroup {
    color: red;
}

.batchColumn {
    width: 200px;
}

.batchInputColumn {
    width: 161px;
}

.batchInputColumn input {
    width: 150px;
}

/* Delivery lines */
#deliveryLines {
    margin-top: 0px;
}

#deliveryLinesFooterTable .numberColumn {
    text-align: right;
}

/* Product selection for incoming and outgoing delivery */
.productAutocomplete input {
    width: 85%
}

.hideDataEmpty .ui-datatable-empty-message, .hidden {
    display: none;
}

/* Stock details */
#stockDetail {
    margin-top: 5px;
    height: 30px;
    white-space: nowrap;
}

#stockDetail:hover {
    cursor: default;
}

#stockDetail div {
    float: left;
}

#stockDetail div .subtleText {
    display: block;
    font-size: 85%;
}

#stockDetail #totalStock {
    padding: 0px 10px 0px 0px;
}

#stockDetail #finalizedStock {
    padding: 0px 10px 0px 10px;
    border-left: 1px solid #666;
}

#stockDetail #notFinalizedStock {
    padding: 0px 0px 0px 10px;
    border-left: 1px solid #666;
}

#stockDetail #notFinalizedStock #notFinalizedIncomingStockCount {
    padding: 0px 7px 0px 0px;
    border-right: 1px solid #666;
}

#stockDetail #notFinalizedStock #notFinalizedOutgoingStockCount {
    padding: 0px 0px 0px 7px;
}

/* OutgoingAction group title */
.outgoingActionGroup {
    height: 30px;
    margin: 20px 0px 5px 0px;
}

/* Discount details */
.discountDetail {
    margin-bottom: 5px;
    height: 30px;
    white-space: nowrap;
    font-size: 120%
}

.discountDetail a {
    display: block;
    color: #4F4F4F;
}

.discountDetail div .subtleText {
    display: block;
    font-size: 85%;
}

.discountDetail div {
    float: left;
}

.discountDetail .quantityDiscount {
    padding: 0px 10px 0px 0px;
}

.discountDetail .cashDiscount {
    padding: 0px 10px 0px 10px;
    border-left: 1px solid #ddd;
}

.discountDetail .fixedDiscount {
    padding: 0px 0px 0px 10px;
    border-left: 1px solid #ddd;
}

/* Client addresses */
.addressLabel {
    display: block;
    width: 120px;
    margin-bottom: 5px;
}

/* Favorite button and icon */
.sf-favorite-icon {
    height: 15px;
    width: 16px;
    display: block;
    background: url("/javax.faces.resource/rating.png.xhtml?ln=img");
    background-position: 0 -32px;
}

.sf-favorite-icon-on {
    background-position: 0 -48px;
}

/* InputPeriod */
ul.inputPeriod {
    display: inline-block;
    list-style: none;
    padding: 0 0 0 10px;
    margin: 0;
}

.inputPeriod li {
    float: left;
    margin: 0;
    padding: 0;
}

.inputPeriod li a {
    display: block;
    height: 20px;
    line-height: 20px;
    color: #4D7B94;
    background: #F2F2F2;
    text-align: center;
    padding: 0px 8px 0px 8px;
}

.inputPeriod li a:hover {
    color: #fff;
    background: #ccc;
    text-decoration: none;
}

.inputPeriod li a.backward {
    margin-left: 10px;
}

/** ExportStatus */
.exportStatus, .promotionStatus {
    display: inline-block;
    padding: 2px 4px;
    font-weight: bold;
    line-height: 14px;
    color: white;
    text-shadow: 0 1px 1 rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 3px;
}

.exportStatus-NOTSTARTED {
    background-color: #3A87AD;
}

.exportStatus-STARTED {
    background-color: #F89406;
}

.exportStatus-FAILED {
    background-color: #BD362F;
}

.exportStatus-FINISHED {
    background: #5BB75B;
}

/** EmailStatus */
.emailStatus {
    display: inline-block;
    padding: 2px 4px;
    font-weight: bold;
    line-height: 14px;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 3px;
}

a.emailStatus, a.emailStatus:hover {
    color: white;
    text-shadow: 0 1px 1 rgba(0, 0, 0, 0.25);
}

.emailStatus-READY {
    background-color: #5BB75B;
}

/** promotionStatus **/
.promotionStatus-ACTIVE {
    background: #5BB75B;
}

.promotionStatus-FUTURE {
    background-color: #F89406;
}

.promotionStatus-PAST {
    background-color: #999;
}

.promotionStatus-TAG {
    background-color: #BD362F;
}

/** Comments */
.commentsAvailable {
    display: inline-block;
    padding: 2px 4px;
    font-weight: bold;
    line-height: 14px;
    white-space: nowrap;
    border-radius: 3px;
    background-color: #F89406;
}

.commentsAvailable-inline {
    margin: 2px 2px;
    vertical-align: middle;
    cursor: help;
}

/** dialogs **/
.ui-dialog .ui-selectmanycheckbox label, .ui-dialog .ui-chkbox .ui-chkbox-label {
    font-size: 110%;
}

.ui-dialog .ui-selectonemenu label {
    font-size: 100%;
}

.dialog h3 {
    margin: 15px 0px 5px 0px;
    font-size: 100%;
}

.dialog #stockDetail {
    margin: 0px 40px 0px 0px;
}

.dialog #stockDetail #finalizedStock {
    border-left: 1px solid #ddd;
}

.dialog #stockDetail #notFinalizedStock {
    border-left: 1px solid #ddd;
}

.dialog #stockDetail #notFinalizedStock #notFinalizedIncomingStockCount {
    border-right: 1px solid #ddd;
}

/**
Primefaces 3.5 introduces an emptyMessage for p:dataList. It is impossible to remove this completely in code
except by using the rendered attrib on the entire list (empty or null emptyMessage causes empty div, 
which causes alignment issues in tables.
*/
.ui-datalist-empty-message {
    display: none;
}

/** After Primefaces 3.5, scrollbars appeared on openOrderDialog in outgoing delivery form. This removes them again */
.disableScroll .ui-dialog-content {
    overflow: hidden !important;
}

/** PrimeFaces 3.5 sets table cells to never word wrap by default. Resetting this behaviour */
.ui-datatable thead th, .ui-datatable tbody td, .ui-datatable tfoot td {
    white-space: normal !important;
}

.ui-datatable thead th.noWrapText, .ui-datatable tbody td.noWrapText, .ui-datatable tfoot td.noWrapText {
    white-space: nowrap !important;
}

.button-link {
    margin-left: 10px;
}

/** Dashboard */
#dashboardform .row {

}

#dashboardform .column {
    display: block;
    width: 50%;
}

.ui-tabs.subtleTabs.ui-widget-content {
    border: 0px;
}

.ui-tabs.subtleTabs .ui-tabs-panel {
    padding: 0px;
}

.ui-tabs .ui-tabs-nav a, .ui-tabs .ui-tabs-nav a:hover {
    color: #2f556a;
}

.ui-tree.fullWidthTree {
    width: 100%;
    background-color: transparent;
}

.ui-tree .ui-treenode-label {
    font-size: 116%;
}

.pricelist-past {
    color: #aaa;
}

.pricelist-future {
    /*standard style*/
}

.pricelist-active, .pricelist-difference {
    font-weight: bold;
}

.pricelist-client {
    color: red;
}