/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an 'AS IS'
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2010-2011 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/


.OBGridToolStrip {
  padding: 0px 0px 1px 3px;
}

.OBGridToolStripIcon {
}

.OBGridBody {
  outline: none;
  background-color: #FFFFFF;
}

.OBGridCell,
.OBGridCellOver,
.OBGridCellDark,
.OBGridCellOverDark,
.OBGridCellSelected,
.OBGridCellSelectedDark,
.OBGridCellSelectedOver,
.OBGridCellSelectedOverDark,
.OBGridCellDisabled,
.OBGridCellDisabledDark,

.OBGridCellSelectedViewInactive,
.OBGridCellSelectedViewInactiveDark,

.OBGridCellEdit,
.OBGridCellEditOver,
.OBGridCellEditDark,
.OBGridCellEditOverDark,
.OBGridCellEditSelected,
.OBGridCellEditSelectedDark,
.OBGridCellEditSelectedOver,
.OBGridCellEditSelectedOverDark,
.OBGridCellEditDisabled,
.OBGridCellEditDisabledDark,

.OBGridCellError,
.OBGridCellErrorOver,
.OBGridCellErrorDark,
.OBGridCellErrorOverDark,
.OBGridCellErrorSelected,
.OBGridCellErrorSelectedDark,
.OBGridCellErrorSelectedOver,
.OBGridCellErrorSelectedOverDark,
.OBGridCellErrorDisabled,
.OBGridCellErrorDisabledDark,

.OBGridCellErrorEdit,
.OBGridCellErrorEditOver,
.OBGridCellErrorEditDark,
.OBGridCellErrorEditOverDark,
.OBGridCellErrorEditSelected,
.OBGridCellErrorEditSelectedDark,
.OBGridCellErrorEditSelectedOver,
.OBGridCellErrorEditSelectedOverDark,
.OBGridCellErrorEditDisabled,
.OBGridCellErrorEditDisabledDark {
  font-family: arial, sans-serif;
  font-size: 12px;
  vertical-align: middle;
  border-right: 1px solid #cdd7bb;
  border-bottom: 1px solid #cdd7bb;
  
/*  margin: 0px; */
  padding: 0px 4px 0px 4px;
}

.OBGridCellEdit,
.OBGridCellEditOver,
.OBGridCellEditDark,
.OBGridCellEditOverDark,

.OBGridCellEditSelected,
.OBGridCellEditSelectedDark,
.OBGridCellEditSelectedOver,
.OBGridCellEditSelectedOverDark,

.OBGridCellErrorEditSelected,
.OBGridCellErrorEditSelectedDark,
.OBGridCellErrorEditSelectedOver,
.OBGridCellErrorEditSelectedOverDark {
  padding: 0px 0px 0px 0px;
}

.OBGridCell {
  background-color: #ffffff;
}

.OBGridCellDark,
.OBGridCellEditDark {
  background-color: #f5f5f5;
}

.OBGridCellOver,
.OBGridCellOverDark,
.OBGridCellEditOver,
.OBGridCellEditOverDark {
  background-color: #e1e1e1;  /* Orange for active grid, for non active grid: #dbe6c7 */
}

.OBGridCellErrorSelected,
.OBGridCellErrorSelectedDark,
.OBGridCellErrorSelectedOver,
.OBGridCellErrorSelectedOverDark,

.OBGridCellSelected,
.OBGridCellSelectedDark {
  background-color: #ffe1c0; /* Orange for active grid, for non active grid: #b8d587 */
}

.OBGridCellSelectedViewInactive,
.OBGridCellSelectedViewInactiveDark {
  background-color: #e1e1e1;
}

.OBGridCellEditSelected,
.OBGridCellEditSelectedDark {
  background-color: #ffe1c0;
}

.OBGridCellSelectedOver,
.OBGridCellSelectedOverDark {
  background-color: #ffe1c0;
}

.OBGridCellEditSelectedOver,
.OBGridCellEditSelectedOverDark {
  background-color: #ffe1c0;
}

.OBGridCellError,
.OBGridCellErrorDark,
.OBGridCellErrorOver,
.OBGridCellErrorOverDark,

.OBGridCellErrorEdit,
.OBGridCellErrorEditDark,
.OBGridCellErrorEditOver,
.OBGridCellErrorEditOverDark,

.OBGridCellErrorEditSelected,
.OBGridCellErrorEditSelectedDark,
.OBGridCellErrorEditSelectedOver,
.OBGridCellErrorEditSelectedOverDark {
  background-color: #ffd7d7;
}

.OBGridFilterCell {
 /* border-top: 1px solid #b2b5b0 */
  border-left: 1px solid #b2b5b0; /*#BBBFB6*/;
  background-repeat: repeat-x;
  background-position: left top;
  background-color: #CDD7BB;
  vertical-align: middle;
}

.OBGridFilterBase {
  border-top: 1px solid #b2b5b0;
}

.OBGridFilterStaticText,
.OBGridFilterStaticTextLink {
  font-family: 'lucida sans', sans-serif;
  font-size: 11px;
  font-weight: normal;
  color: #333333;
  padding: 2px 0px 0px 0px;
}

.OBGridFilterStaticTextLink:hover {
  background-color: #ffe1c0;
  cursor: pointer;
}

.OBGridFilterStaticTextLink:active {
  background-color: #ffe1c0;
  cursor: pointer;
}

.OBGridFilterFunnelBackground {
  background-color: #CDD7BB;
}

.OBGridFilterFunnelIconDown,
.OBGridFilterFunnelIconSelected,
.OBGridFilterFunnelIconFocused,
.OBGridFilterFunnelIcon {
  background-color: #CDD7BB;
  cursor: pointer;
}

.OBGridHeaderCellTitle,
.OBGridHeaderCellTitleOver,
.OBGridHeaderCellTitleDown,
.OBGridHeaderCellTitleSelected,
.OBGridHeaderCellTitleSelectedOver,
.OBGridHeaderCellTitleSelectedDown,
.OBGridHeaderCellTitleDisabled,
.OBGridHeaderCellTitleSelectedDisabled {
  font-size: 11px;
  font-family: 'lucida sans', sans-serif;
  font-weight: bold;
 /* border-top: 1px solid #BBBFB6;*/
  border-right: 1px solid #BBBFB6;
  text-align: center;
  background: none;
}

.OBGridHeaderBar {
  background-repeat: repeat-x;
  background-position: left -22px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #BBBFB6;
}

.OBGridHeaderCell {
  background-image: none;
  background: none;
  background-color: #ECEEE9;
}

.OBGridSummaryCell div,
.OBGridSummaryCell_sum div,
.OBGridSummaryCell_avg div,
.OBGridSummaryCell_count div {
  width: auto !important;
}

.OBGridSummaryCell,
.OBGridSummaryCell_sum,
.OBGridSummaryCell_avg,
.OBGridSummaryCell_count {
  font-family: arial, sans-serif;
  vertical-align: middle;
  border-right: 1px solid #cdd7bb;
  border-bottom: 1px solid #cdd7bb;
  background-color: #ffffff;
}

.OBGridSummaryCell {
  padding: 0px 4px 0px 4px;
}

.OBGridSummaryCell_sum {
  padding: 0px 4px 0px 14px;
  background-image: url(./images/grid/gridSummary_bg_sum.png);
  background-position: 4px center;
  background-repeat: no-repeat;
}

.OBGridSummaryCell_avg {
  padding: 0px 4px 0px 14px;
  background-image: url(./images/grid/gridSummary_bg_avg.png);
  background-position: 4px center;
  background-repeat: no-repeat;
}

.OBGridSummaryCell_count {
  padding: 0px 4px 0px 14px;
  background-image: url(./images/grid/gridSummary_bg_count.png);
  background-position: 4px center;
  background-repeat: no-repeat;
}

.OBGridLinkButton,
.OBGridLinkButtonOver,
.OBGridLinkButtonDown,
.OBGridLinkButtonFocused,
.OBGridLinkButtonFocusedOver,
.OBGridLinkButtonFocusedDown {
  font-family: arial, sans-serif;
  vertical-align: middle;
  background: transparent;
  padding: 0px 4px 2px 4px;
}

.OBGridLinkButton,
.OBGridLinkButtonOver {
  color: #58A618;
}

.OBGridLinkButtonDown {
  color: #004E27;
}

.OBGridLinkButtonFocused,
.OBGridLinkButtonFocusedOver,
.OBGridLinkButtonFocusedDown {
  color: #fa962f;
}

.OBGridLinkButtonOver,
.OBGridLinkButtonFocusedOver {
  text-decoration: underline;
}

.OBGridNotificationText {
  font-family: 'lucida sans', sans-serif;
  font-size: 12px;
  vertical-align: middle;
  background: transparent;
  padding: 5px 0px 5px 0px;
}

/*=======================================================================
 * Defines the style of a OBGrid with records representing links 
 * (used in LinkedItems components)
=======================================================================*/
.OBGridLinkCell,
.OBGridLinkCellOver,
.OBGridLinkCellSelected,
.OBGridLinkCellSelectedOver,
.OBGridLinkCellDark,
.OBGridLinkCellOverDark,
.OBGridLinkCellSelectedDark,
.OBGridLinkCellSelectedOverDark {
  font-family:Arial;
  font-size:12px;
  text-overflow: ellipsis;
  color: #58A618;
  border-right: 1px solid #cdd7bb;
  border-bottom: 1px solid #cdd7bb;
  cursor: pointer;
  padding: 0px 0px 1px 3px;
}

.OBGridLinkCellDark {
  background-color: #F5F5F5;
}

.OBGridLinkCellOver,
.OBGridLinkCellOverDark,
.OBGridLinkCellSelectedOverDark {
  text-decoration: underline;
  background-color: #e1e1e1;
}

/******************************/

.OBViewGridBody {
  outline: none;
  background-color: #FFFFFF;
}

/******************************/

.OBAlertGridBody {
  background-color: #FFFFFF;
}

/******************************/

.OBGridFormButton,
.OBGridFormButtonOver,
.OBGridFormButtonFocused,
.OBGridFormButtonFocusedOver,
.OBGridFormButtonDown,
.OBGridFormButtonFocusedDown,
.OBGridFormButtonSelected,
.OBGridFormButtonSelectedFocused,
.OBGridFormButtonSelectedDown,
.OBGridFormButtonSelectedFocusedDown,
.OBGridFormButtonSelectedOver,
.OBGridFormButtonSelectedFocusedOver,
.OBGridFormButtonDisabled,
.OBGridFormButtonSelectedDisabled {
  padding: 2px 5px 2px 5px;
  font-family:'lucida sans',sans-serif; 
  font-size:12px;
  background-image:url(./images/form/textButton-bg-normal.png);
  color:#000000;
  background-position:right top;
  background-repeat: no-repeat;
  cursor: pointer;
  border: 2px solid #efefef;
}

.OBGridFormButtonDisabled,
.OBGridFormButtonSelectedDisabled {
  border:2px solid #d0d1cd;
  background-image: url(./images/form/textButton-bg-disabled.png);
  font-weight:normal;
  color:#777;
}

.OBGridFormButtonFocused,
.OBGridFormButtonFocusedOver,
.OBGridFormButtonSelectedFocused,
.OBGridFormButtonSelectedFocusedOver,
.OBGridFormButtonSelectedFocusedDown {
  border:2px solid #fa962f;
}

.OBGridFormButtonOver,
.OBGridFormButtonFocusedOver,
.OBGridFormButtonSelectedFocused,
.OBGridFormButtonSelectedFocusedOver {
  background-image: url(./images/form/textButton-bg-hover.png);
}

.OBGridFormButtonDown,
.OBGridFormButtonFocusedDown,
.OBGridFormButtonSelectedDown,
.OBGridFormButtonSelectedFocusedDown {
  background-image: url(./images/form/textButton-bg-down.png);
}
