/*
 *contextMenu.js v 1.4.0
 *Author: Sudhanshu Yadav
 *s-yadav.github.com
 *Copyright (c) 2013 Sudhanshu Yadav.
 *Dual licensed under the MIT and GPL licenses
 */
/*Context menu css */
.iw-contextMenu {
  -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  border: 1px solid #E6E6E6;
  display: none;
  z-index: 1000;
}
.iw-cm-menu {
  background: #F4F4F4;
  color: #333;
  margin: 0px;
  padding: 0px;
}
.iw-cm-menu li {
  list-style: none;
  padding: 3px;
  padding-left: 30px;
  padding-right: 20px;
  border-bottom: 1px solid #CCC;
  cursor: pointer;
  position: relative;
}
.iw-mOverlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  background: #FFF;
  opacity: .5;
}
.iw-contextMenu li.iw-mDisable {
  opacity: .3;
}
.iw-mSelected {
  background-color: #003366;
  color: #F2F2F2;
}
.iw-cm-arrow-right {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid #333333;
  position: absolute;
  right: 3px;
  top: 50%;
  margin-top: -3px;
}
.iw-mSelected > .iw-cm-arrow-right {
  border-left: 5px solid #FFF;
}
.iw-mIcon {
  width: 20px;
  height: 20px;
  left: 0px;
  top: 3px;
  position: absolute;
}
/*context menu css end */


/*our styles*/
.narrow .toolbar-first .button {
  float: none;
}

.narrow  .toolbar .toolbar-first{
  display: flex;
}
.narrow .listBlock .toolbar-first {
  display: block;
}

.portal .modal-toolbar, .bgerp_Notifications .modal-toolbar {
  min-height: 40px !important;
}

.modal-toolbar{
  display: none;
}

.modal-toolbar.iw-contextMenu{
  background: #f9f9f9;
  max-width: 142px;
  padding: 4px 4px 4px 6px;
  height: auto;
  border-radius: 5px;
  moz-border-radius: 5px;
  border: 1px solid #C6C6C6;
  margin-bottom: 2px;
}

.modal-toolbar.iw-contextMenu .button{
  width: 100% !important;
  max-width: 160px;
  white-space: nowrap;
  float: none !important;
  margin: 2px 0 !important;
  text-align: left !important;
  line-height: normal;

}

.modal-toolbar.iw-contextMenu .button:hover {
  background-color: #ddd !important;
}

.narrow .modal-toolbar.iw-contextMenu .button{
  background-image: none !important;
}

input.button.more-btn.arrowDown {
  background-position: center !important;
  background-image: url(../../img/16/arrow_down3.png) !important;
}
input.button.more-btn.textBtn {
    padding:0.3em 0.3em 0.3em 26px !important;
    width: auto;
}

input.button.more-btn.textBtn.arrowDown {
     background-position: 4px center !important;
}
input.button.more-btn.warningContextMenu {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  background-image: url(../../img/16/warning-gray.png) !important;
  padding: 0px !important;
  width: 20px !important;
  height: 16px !important;
}
.separator {
  margin: 2px 3px 1px 1px;
  opacity: 0.4;
}

.context-column {
  display: table-cell;
  max-width:150px;
}
.sideBorder {
  padding-left: 1px;
}
.twoColsContext.modal-toolbar.iw-contextMenu .button{
  max-width: 150px;
}

.modal-toolbar.twoColsContext.iw-contextMenu {
  background: #dddddd !important;
  height: auto;
  width: auto;
  border-radius: 5px;
  moz-border-radius: 5px;
  border: 1px solid #C6C6C6;
  margin-bottom: 2px;
  padding: 0 1px;
  max-width: 280px;
  min-width: 150px;
}

.modal-toolbar.twoColsContext.iw-contextMenu .button {
  margin: 1px 0 !important;
  background-color: #dddddd;
  border: none !important;
  box-shadow: none;
  text-shadow: none;
  width: 100%;
  color: #333;
}

.modal-toolbar.twoColsContext.iw-contextMenu .button:hover {
   background-color: #e5e5e5 !important;
}

.narrow .modal-toolbar.twoColsContext.iw-contextMenu {
  max-width: 250px;
}