/**
 * Axelor Business Solutions
 *
 * Copyright (C) 2005-2019 Axelor (<http://axelor.com>).
 *
 * This program is free software: you can redistribute it and/or  modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
/* FORM VIEW */

::-ms-clear {
  display: none;
}

input[disabled],
select[disabled],
textarea[disabled],
input[readonly],
select[readonly],
textarea[readonly] {
  cursor: default;
}

.view-container .form-view > div:last-child {
  position: absolute;
  top: 41px;
  bottom: 0; left: 0; right: 0;
  overflow: auto;
}

.view-container .form-view > div.no-toolbar {
  top: 0;
}

.view-container .form-view > div[ui-view-form].has-width {
  padding: 8px 16px;
  background-color: #f7f7f9;
}

.view-container .form-view > div[ui-view-form].has-width > form {
  padding: 8px;
  background-color: #fff;

  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);

  width: 90%;
  min-width: 600px;
  overflow: auto;
}

@media screen and (max-width: 979px) {
  .view-container .form-view > div[ui-view-form].has-width {
    padding: 4px;
    background-color: #fff !important;
  }
  .view-container .form-view > div[ui-view-form].has-width > form {
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: auto;
  }
}

.view-container .form-view .nested-editor form {
  width: inherit !important;
}

table.form-layout {
  width: 100%;
  border-collapse: collapse;
}

table.form-layout * {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
      -ms-box-sizing: border-box;
          box-sizing: border-box;
}

table.form-debug,
table.form-debug td.form-label,
table.form-debug td.form-item {
  border: 1px solid #D14;
}

table.form-layout td.form-label,
table.form-layout td.form-item {
  padding: 2px;
  vertical-align: top;
}

table.form-layout td.form-label {
  text-align: left;
  padding-left: 8px;
  padding-right: 4px;
  width: 15%;
  min-width: 100px;
}

table.form-layout td.form-item.boolean-item {
  vertical-align: inherit;
}

table.form-layout td.form-label > label {
  padding-top: 3px;
  margin-bottom: 0px;
  font-weight: 600;
  cursor: inherit;
}

table.form-layout td.form-label > label > span {
  cursor: pointer;
}

table.form-layout td.form-label label.required {
  color: #B94A48;
}

table.form-layout td.form-label label.readonly {
  color: inherit;
}

table.form-layout td.form-item > *,
.form-item-container > * {
  width: 100%;
  margin: 0 !important;
}

.form-item-container > * {
  width: 100%;
}

.form-item-container > .translate-icon {
  position: absolute;
  right: 0;
  width: auto;
  line-height: 28px;
  padding: 0 4px;
  cursor: pointer;
}

.form-item-container.html-item > .translate-icon {
  z-index: 1;
}
.form-item-container.html-item.readonly > .translate-icon {
  display: none !important;
}

table.form-layout td.form-item.v-align-top {
  vertical-align: top;
}

.form-item-container,
.form-item-container > span.display-text {
  min-height: 26px;
  display: flex;
}

.form-item-container {
  min-width: 26px;
  position: relative;
}

.form-item-container > span.display-text {
  padding-top: 5px;
  padding-bottom: 2px;
}

.form-item-container input {
  height: 28px;
  padding: 2px 6px;
  min-width: 170px;
}

.form-item-container[style *= width] input {
  min-width: inherit;
}

.form-item-container.datetime-item .picker-input {
  min-width: 120px;
  width: 140px;
}

.form-item-container.time-item input {
  width: 60px;
  min-width: 40px;
}

.slick-cell .form-item-container {
  width: 100% !important;
  min-height: 100% !important;
}

.form-item-container input,
.form-item-container input:focus,
.form-item-container textarea,
.form-item-container textarea:focus {
  outline-style: none;
}

.form-item-container .small-input input,
.form-item-container input.small-input {
  min-width: 50px;
  height: 26px;
}

.form-item-container input[type="radio"],
.form-item-container input[type="checkbox"] {
  width: auto;
  min-width: inherit;
  height: inherit;
  margin-top: 6px !important;
}

.form-item-container label.checkbox {
  padding-right: 6px;
}

.form-item-container.readonly label.checkbox {
  cursor: default;
}

.form-item-container label.radio input[type="radio"],
.form-item-container label.checkbox input[type="checkbox"] {
  margin-top: 3px !important;
}

.form-item > a.btn,
.form-item-container button {
  padding: 2px 10px 2px;
  min-width: 26px;
  height: 26px;
  overflow: hidden;
  white-space: nowrap;
}

.form-item-container textarea {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  resize: vertical;
}

.form-item fieldset {
  min-width: inherit;
}

table.form-layout fieldset {
  padding: 4px 0;
}

.form-item-container.readonly > a,
.form-item-container.readonly > input,
.form-item-container.readonly > span.display-text {
  padding-left: 2px;
}

.form-item-container.readonly > a {
  line-height: 22px;
  color: #0088cc;
}

.form-item-container.datetime input {
  min-width: 100px;
}

.form-item-container.datetime-item input {
  min-width: 134px;
}

.form-item-container > input.display-text {
  min-width: 100px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding-left: 0;
}

.form-item-container > a.display-text {
  display: inline-block;
  white-space: nowrap;
  height: 24px;
  padding-top: 3px;
}

.form-item-container > .display-text {
  text-overflow: ellipsis;
  overflow: hidden;
  color: #555555;
}

.picker-input,
.form-item .ui-spinner {
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
}

.picker-input > input {
  margin: 0;
  width: 100%;
}

.picker-input > .picker-icons {
  position: absolute;
  display: flex;
  align-items: center;
  white-space: nowrap;

  top: 0;
  right: 3px;
  height: 100%;
}

.picker-input > .picker-icons > i.fa {
  cursor: pointer;
  margin-right: 1px;
  padding: 2px;
  display: flex;
  align-items: center;
  line-height: 20px;
  height: 100%;
}

.picker-input > input,
.picker-icons-1 > input {
  padding-right: 18px !important;
}

.picker-icons-2 > input {
  padding-right: 36px !important;
}

.picker-icons-3 > input {
  padding-right: 54px !important;
}

.picker-icons-4 > input {
  padding-right: 72px !important;
}

table.form-layout .tabbable-tabs .nav-tabs {
  margin-bottom: 0px;
}

table.form-layout .tabbable-tabs .tab-content {
  position: relative;
  padding: 4px;
  border: 1px solid #DDD;
  border-top: 0;
  background-color: #fff;
}

.form-item .stackbar {
  position: relative;
}

.form-item .stackbar.inline-editable {
  min-height: 200px;
}

.form-item .stackbar.noEdit .edit-icon i:before,
.form-item .stackbar.readonly .edit-icon i:before {
  content: "\f0f6";
}

.form-item .stackbar .slickgrid {
  position: absolute;
  left: 0px; right: 0px;
  top: 26px; bottom: 0px;
  border-top: none;
}

.icons-bar {
  display: inline-block;
  padding-top: 4px;
}

.icons-bar a {
  color: #333;
}

.icons-bar i {
  margin: 2px;
  padding: 2px;
  cursor: pointer;
}

td.form-item > * {
  position: relative;
}

.border-box,
.bordered-box {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
      -ms-box-sizing: border-box;
          box-sizing: border-box;
}

.bordered,
.bordered-box {
  border: 1px solid #DDD;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
      -ms-border-radius: 4px;
          border-radius: 4px;
}

.form-item .disabled-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10;
}

.form-item .form-item-group > .disabled-overlay {
  top: 12px;
}

.form-item .form-item-group[x-show-title="false"] > .disabled-overlay {
  top: 0;
}

.ui-state-disabled .ui-state-disabled {
  opacity: 1;
}

.form-item .form-item-group {
  padding: 0;
}

.form-item .form-item-group.bordered-box {
  padding: 4px;
}

.form-item .form-item-group.bordered-box.has-title {
  padding-top: 0;
}

.form-item .form-item-group > legend i.fa {
  color: #ccc;
  height: 15px;
  margin-right: 4px;
  vertical-align: middle;
  display: inline-block;
  cursor: pointer;
}

.form-item .form-item-group > legend i.fa:hover {
   text-decoration: none;
   color: inherit;
}

.form-item .form-item-group > legend {

  width: auto;
  margin: 0;
  margin-left: 10px;
  padding: 0 4px;

  font-size: inherit;
  font-weight: 600;
  line-height: 1.4em;

  border: none;
}

.form-item .form-item-portlet,
.form-item .form-item-portlet .portlet {
  min-height: 250px;
}

.form-item .image-item .image-wrapper {
  position: relative;
}

.form-item .image-item div.btn-group {
  position: absolute;
  left: calc(50% - 32px);
  bottom: 12px;
}
.form-item .image-item div.btn-group .btn {
  padding: 2px 6px 2px;
}

.form-item .nested-editor > legend > .legend-toolbar a {
  outline: none;
}

.form-item .nested-editor > legend > .legend-toolbar a:hover {
  text-decoration: none;
}
.form-item .nested-editor > legend > .legend-toolbar a:first-of-type {
  padding-left: 4px;
}

.form-item .nested-editor {
  margin-top: -3px !important;
}

.form-item .nested-editor.inline-form {
  position: relative;
  border: 0;
  padding-top: 30px;
}

.form-item .nested-editor.detail-form {
  border-top: 0;
  padding-top: 8px;
}

.form-item .not-readonly {
  background: inherit !important;
}

.ng-invalid > input,
.ng-invalid > textarea,
.ng-invalid > .picker-input input,
.ng-invalid > .ui-spinner input,
.ng-invalid > .tag-select,
.ng-invalid > .form-item-container > .wysiwyg-container {
  border-color: #B94A48;
}

.ng-invalid:focus,
.ng-invalid > input:focus,
.ng-invalid > textarea:focus,
.ng-invalid > .picker-input input:focus,
.ng-invalid > .ui-spinner input:focus {
  border-color: #953B39;
}

.nested-not-required .form-item .ng-invalid > input,
.nested-not-required .form-item .ng-invalid > textarea,
.nested-not-required .form-item .ng-invalid > .picker-input input,
.nested-not-required .form-item .ng-invalid > .ui-spinner input,
.nested-not-required .form-item .ng-invalid > .tag-select
.nested-not-required .form-item .ng-invalid > .form-item-container > .wysiwyg-container {
  border-color: #ccc;
}

.nested-not-required .form-item .ng-invalid:focus,
.nested-not-required .form-item .ng-invalid > input:focus,
.nested-not-required .form-item .ng-invalid > textarea:focus,
.nested-not-required .form-item .ng-invalid > .picker-input input:focus,
.nested-not-required .form-item .ng-invalid > .ui-spinner input:focus {
  border-color: #953B39;
}

.form-item form {
  margin: 0;
}

.form-item div.code-editor {
  min-height: 50px;
  height: 280px;
}

.form-item div.code-editor .CodeMirror {
  border: 1px solid #DDD;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height: inherit;
}

.ng-invalid > .CodeMirror {
  border-color: #B94A48 !important;
}

.form-item div.code-editor .CodeMirror-scroll {
  height: calc(100% + 30px);
  width: 100%;
}

.form-item div.code-editor.readonly .CodeMirror-focused .CodeMirror-cursor {
  visibility: hidden;
}

.form-item span.error {
  color: #953B39;
}

.form-item .span-item {
  display: inline-block;
  padding: 2px;
  padding-left: 6px;
}

.form-item .spacer-item {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.form-item .separator-item {
    font-weight: 700;
  border-bottom: 1px solid #c9c9c9;
    margin: 1rem 0;
    width: 100%;
}

.form-item .separator-item.divider {
    display: table;
    border: none;
}

.form-item .separator-item.divider::after,
.form-item .separator-item.divider::before {
    content: '';
    display: table-cell;
    position: relative;
    top: 50%;
    width: 50%;
    background-repeat: no-repeat;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAE4gAAAABCAQAAACYGIwDAAAAJElEQVR42u3BAQ0AAAgDIN8/mak0xzcgewMAAAAAAAAAAAD1HuWuAcq7kIiIAAAAAElFTkSuQmCC);
}

.form-item .separator-item.divider::before {
  background-position: right 1em top 50%;
}

.form-item .separator-item.divider::after {
  background-position: left 1em top 50%;
}

.form-item .ui-spinner {
  padding-right: 0;
  border: 0;
  overflow: inherit;
}

.form-item .ui-spinner .ui-spinner-up {
  margin-top: 1px;
}

.form-item .ui-spinner .ui-spinner-down {
  margin-bottom: 1px;
}
.form-item-container .ui-spinner .ui-spinner-button {
  cursor: pointer;
}

.form-item-container .ui-spinner input {
  width: 100%;
  text-align: right;
  padding-right: 18px;
  margin: 0;
}

.form-item ul.radio-select,
.form-item ul.checkbox-select,
.form-item-container ul.boolean-radio {
  list-style-type: none;
  overflow: hidden;
  padding-top: 3px;
  margin: 0;
}

.form-item ul.radio-select > li,
.form-item ul.checkbox-select > li,
.form-item-container ul.boolean-radio > li {
  float: left;
  margin: 0 4px;
}

.form-item ul.radio-select-vertical > li,
.form-item ul.checkbox-select-vertical > li,
.form-item-container ul.boolean-radio-vertical > li {
  float: none;
}

.form-item ul.radio-select > li input[type="radio"],
.form-item ul.checkbox-select > li input[type="checkbox"] {
  margin-top: -2px;
}

.form-item ul.radio-select.readonly > li label,
.form-item ul.checkbox-select.readonly > li label {
  cursor: default;
}

.form-item-container .hot-edit-icon {
  width: 18px;
  position: absolute;
  left: -16px;
  top: 7px;
  cursor: pointer;
  display: none;
}

form.readonly .form-item-container:hover .hot-edit-icon {
  display: inline;
}

.no-edit .hot-edit-icon,
[x-readonly="true"] .hot-edit-icon {
  display: none !important;
}

table.field-details {
  margin-bottom: 0;
  max-width: 480px;
}

table.field-details th {
  width: 1px;
  text-align: right;
  font-weight: 600;
}

table.field-details th,
table.field-details td {
  white-space: nowrap;
  border-top: none;
  padding: 4px;
}

table.field-details .help-text {
  white-space: normal;
}

table.field-details .help-text hr {
  margin: 9px 0;
}

.popover {
  width: auto;
  max-width: inherit;
  min-width: 220px;
  z-index: 2147483647;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.popover,
.popover-title {
  border-radius: 0;
}

.popover-title {
  font-weight: 600;
}

.popover-content {
  display: flex;
}

.popover-inner {
  width: inherit;
  min-width: 280px;
  max-width: inherit;
  display: table;
  overflow: hidden;
}

.popover .field-details th {
  vertical-align: top;
  padding-right: 10px;
}

.popover .field-details code {
  display: block;
  white-space: pre-wrap;
  max-width: 450px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  border-radius: 0;
}

.popover.bottom {
  background-color: #f7f7f7;
}

.popover.bottom .arrow:after {
  border-bottom-color: #f7f7f7;
}

.popover.bottom .popover-content {
  background-color: white;
}

label.has-help > span:after,
[ui-help-popover].has-help:after,
.button-item.has-help > span:after,
.nav-tree a.has-help:after {
  font: normal normal normal 14px/1 FontAwesome;
  content: "\f06a";
  font-size: 10px;
  margin-left: 3px;
    position: absolute;
}

.record-toolbar .button-item.has-help > span:after {
  content: ''
}

label.has-help > span,
[ui-help-popover].has-help {
  padding-right: 13px;
}

label.has-help > span:after,
[ui-help-popover].has-help:after {
  color: #107a4a;
}

.ws-nowrap {
  white-space: nowrap;
}

.subtotal {
  float: right;
}

.subtotal,
.subtotal input {
  white-space: nowrap;
  text-align: right;
}

.subtotal label {
  text-align: right;
  font-weight: normal !important;
}

.subtotal,
.subtotal * {
  min-width: auto !important;
  width: auto !important;
  white-space: nowrap !important;
}

.subtotal .form-label,
.subtotal .form-item {
  padding: 2px 0 !important;
}

.subtotal .display-text {
  width: 100% !important;
  padding-left: 22px !important;
}

.subtotal-total {
  border-top: 1px solid #c1c1c1;
  font-size: 18px;
  padding-top: 6px !important;
}

.subtotal-total .display-text {
  font-weight: 600;
  padding-top: 0 !important;
}

.nav-select {

}

.nav-select *,
.nav-select *:after,
.nav-select *:before {
  box-sizing: border-box;
}

.nav-select a {
  outline: none;
  text-decoration: none;
  color: #333;
}

.nav-select ul.nav-steps {
  margin: 0;
}

.nav-select ul.nav-steps,
.nav-select li.nav-step {
  list-style: none;
}

.nav-select li.nav-step {
  float: left;
}

.nav-select a.nav-label {
  display: block;
  position: relative;
  line-height: 32px;
  padding: 0 16px 0 32px;
  white-space: nowrap;
  background: #e2e2e2;
}

.nav-select li.nav-step:first-child a.nav-label {
  padding-left: 18px;
}

.nav-select a.nav-label:after {
  content: '';
  width: 32px;
  height: 32px;
    transform: scale(0.72) rotate(45deg);

  position: absolute;
  right: -16px;
  z-index: 1;

  background: #e2e2e2;
  box-shadow: 2px -2px 0 1px rgba(255, 255, 255, 1);
}

.nav-select li.dropdown {
  max-width: 120px;
}
.nav-select li.dropdown a.nav-label {
  padding-right: 6px;
  padding: 0;
  height: 32px;
}

.nav-select li.dropdown a.nav-label > span {
  display: inline-block;
  float: left;
  max-width: 96px;
  margin-left: 24px;
  margin-right: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-select li.dropdown a.nav-label > span:empty {
  margin-right: 0;
}

.nav-select li.dropdown a.nav-label:after {
  font-family: FontAwesome;
  content: '\f0d7';
  width: 16px;
  box-shadow: none;
  -webkit-transform: scale(1) rotate(0);
     -moz-transform: scale(1) rotate(0);
      -ms-transform: scale(1) rotate(0);
          transform: scale(1) rotate(0);
}

.nav-select:not(.readonly) a.nav-label:hover,
.nav-select:not(.readonly) a.nav-label:hover:after {
  background: #d0d0d0;
  transition: background-color 0.3s;
}

.nav-select li.active a.nav-label,
.nav-select li.active a.nav-label:after {
  background: #0275d8;
  transition: background-color 0.3s;
  color: #f0f0f0;
}

.nav-select .nav-step > .dropdown-menu {
  right: -16px;
  margin-top: -2px;
}

.nav-select.readonly .nav-label {
  cursor: inherit;
}

.tag-select {
  border: 1px solid #c1c1c1;
  border-radius: 4px;
  transition: border linear .2s, box-shadow linear .2s;
  min-height: 26px;
  display: flex;
  flex-wrap: wrap;
  height: 100%;
}

.tag-select.picker-input {
  background-color: #fff;
}

.readonly .tag-select {
  border: none;
  box-shadow: none;
}

.tag-select:focus,
.tag-select.focus {
  border-color: #0275d8;
  outline: 0;
}

.tag-select-placeholder {
  position: absolute;
  top: 3px;
  left: 0;
  right: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #999999;
}

.ng-invalid > .tag-select:focus,
.ng-invalid > .tag-select.focus {
  border-color: #953B39;
}

.tag-select ul {
  list-style: none;
  overflow: hidden;
  margin: 0;
  margin-right: 16px;
  padding-bottom: 2px;
}

.tag-select li,
.tag-select .label {
  float: left;
  display: inline-block;
  margin: 2px 2px 0 0;
}

.tag-select .label,
.tag-select .tag-selector {
  height: 21px;
}

.tag-select ul,
.readonly > .tag-select {
  padding-top: 2px;
}

.tag-select li.tag-item i,
.tag-select-single .tag-item i {
  font-size: 10px;
  cursor: pointer;
}

.tag-select .tag-text,
.tag-select .tag-link,
.tag-select-single .tag-link {
  display: inline-block;
  height: 15px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.tag-select .tag-link,
.tag-select-single .tag-link {
  cursor: pointer;
}

.tag-select .tag-link:hover,
.tag-select-single .tag-link:hover {
  text-decoration: underline;
}

.tag-select li.tag-selector input {
  border: none;
  border-radius: 0 !important;
  box-shadow: none;
  width: 50px;
  min-width: 50px !important;
  margin: 0;
  padding: 0 !important;
  margin-left: 0;
  margin-top: -3px;
  line-height: 16px;
  height: auto !important;
}

.tag-select-single .tag-item {
  position: absolute;
  left: 4px;
  top: 4px;
}

.tag-select .tag-editor,
.tag-select-single .tag-editor {
  position: absolute !important;
  padding: 1px 4px !important;
  padding-right: 4px !important;
  box-shadow: none !important;
  min-width: 10px !important;
  height: auto !important;
  border: 0 !important;

  color: white;
  background-color: #3a87ad;
  font-weight: 600;
  font-size: 11px;
}

.tag-select-action-menu .tag-select-action a {
  font-style: oblique;
  padding-left: 12px;
}

.slick-cell .tag-select {
  height: 25px !important;
}

.slick-cell .tag-select .label {
  margin: 0 2px 0 0;
  display: flex;
  align-items: center;
}

.slick-cell .tag-select .tag-text {
  line-height: 15px;
}

.slick-cell .tag-select .label .fa {
  margin-left: 2px;
}

.slick-cell .tag-select.picker-input {
  background-color: inherit;
}

.slick-cell .tag-select.picker-input .tag-item {
  margin-top: 1px;
}
.slick-cell .tag-select.picker-input ul {
  margin-left: 3px;
}
.slick-cell .tag-select .label, .slick-cell .tag-select .tag-selector {
  height: 20px;
}

.slick-cell .tag-select li.tag-selector input {
  height: 20px !important;
  min-height: inherit;
}

.image-select {
  display: flex;
  align-items: center;
}

.image-select > img,
.image-select > i.fa {
  position: absolute;
  max-height: 18px;
}

.image-select.readonly > img,
.image-select.readonly > i.fa {
  position: initial;
}

.empty > .image-select input {
  padding-left: 8px;
}

.image-select-item img,
.image-select-item i.fa {
  margin-right: 6px;
  max-height: 18px;
}

.image-select-item > a {
  display: flex;
  align-items: center;
}

.multi-object-select fieldset,
.multi-object-select td {
  padding: 0 !important;
}

.multi-object-select td.select-item {
  padding-right: 4px !important;
}

.multi-object-link.readonly .form-layout td[style*='150'] {
    display: none;
}

.select-item .picker-input > .picker-icons > .fa.fa-pencil {
  font-size: 12px;
}

.form-item-container textarea {
  box-sizing: border-box;
}

.form-item-container pre {
  color: inherit;
}

.button-item.img-button {
  width: auto !important;
  height: inherit !important;
}

.button-item.img-button:not([class*=btn-]) {
  background: inherit !important;
  border: none  !important;
  padding: 2px !important;
}

.button-item.img-button img {
  margin: 0;
}

.button-item.img-button span {
  display: block;
}

.button-item.button-icon {
  text-decoration: none;
}

.record-toolbar .button-item.button-icon img {
  margin-top: -2px;
}

/* filter menu */

.filter-box,
.filter-box * {
  box-sizing: border-box;
}

.filter-box {
  position: relative;
  display: inline-block;
  margin: 6px 4px 0;
  box-sizing: border-box;
  width: 200px;
  vertical-align: middle;
  z-index: 1;
}

.filter-box .search-query {
  width: 100%;
  min-height: 28px;
}

.filter-box .tag-select ul {
  padding-bottom: 0;
    margin-left: 2px;
}

.filter-box .tag-select li {
  margin-right: 0;
  margin-bottom: 0;
  max-width: 150px !important;
  text-overflow: ellipsis;
}

.filter-box .tag-select li.tag-item {
  line-height: 17px;
}

.filter-box .tag-select .tag-text {
  height: 16px;
}

.filter-box .tag-select li.tag-selector {
  width: 100%;
  max-width: 100% !important;
}

.filter-box .tag-select li.tag-selector input {
  width: 100%;
}

.filter-box .tag-select input.not-readonly {
  background-color: #fff;
}

.filter-box .search-icons {
  position: absolute;
  display: inline-block;
  top: 0;
  right: 0;
  padding-top: 8px;
  padding-right: 4px;
}

.filter-box .search-icons i {
  margin: 3px;
  cursor: pointer;
  color: silver;
}

.filter-box .search-icons i:hover {
  color: black;
}

@media (max-width: 767px) {
  .filter-box {
    width: 172px;
  }
}

.update-menu,
.filter-menu {

  display: none;
  position: absolute;

  padding: 12px;

  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  background: #fff;

  border-radius: 0;
  border: 1px solid #e7e7e7;

  z-index: 11;
}

.filter-menu hr {
  margin: 8px 0;
}

.filter-menu .filter-list {
  display: table;
  width: 100%;
}

.filter-menu .filter-list > dl {
  display: table-cell;
  width: 50%;
  padding-right: 8px;
}

.filter-menu .filter-list > dl dt {
  padding-bottom: 4px;
}

.filter-menu .filter-list > dl dt i {
  margin-right: 2px;
}

.filter-menu .filter-list > dl dd {
  cursor: pointer;
}

.filter-menu .filter-list > dl dd a[disabled] {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
  color: #333333;
  opacity: 0.5;
}

.filter-form .filter-operator .show-archived > span[disabled] {
  color: #333333;
  opacity: 0.5;
  cursor: default;
}

.filter-menu .filter-form {
    margin-top: -6px;
}

.filter-menu .filter-form .links {
  line-height: 20px;
}

.filter-menu .filter-form .links .divider {
  color: #c1c1c1;
  padding: 0 5px;
}

.filter-menu form {
  margin-bottom: 8px;
}

.filter-menu .filter-inputs form {
  margin: 0;
  padding: 0;
}

.filter-menu .filter-inputs .panel,
.filter-menu .filter-inputs .panel .panel-body {
  border: 0;
  margin: 0;
  padding: 0;
}

.filter-menu .filter-inputs .tag-select {
  border: 1px solid #ccc !important;
  display: block;
}

.filter-menu .filter-inputs .multi-select-item {
  margin-bottom: 0 !important;
}

.filter-menu .filter-inputs .tag-select > .picker-icons {
  right: 2px;
}

.filter-menu .filter-inputs .tag-select ul {
  margin-left: 2px;
}

.filter-menu input[type=radio],
.filter-menu input[type=checkbox] {
  margin-top: 3px;
  min-width: initial;
}

.filter-menu .show-archived {
  margin-left: 26px;
}

.filter-form .filter-context {
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 0;
    padding: 6px 0 8px 0;
}

.record-toolbar button.update-menu-button {
  padding: 4px;
}

.filter-form.update-form .form-item {
  min-width: 170px;
}

.filter-menu.update-menu .checkbox.update-all {
  margin-left: 8px;
}

.filter-form .links {
  margin: 4px;
  padding-left: 14px;
}

.filter-menu .btn-small {
  font-size: 12px;
}

.filter-form .flex-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.filter-form .flex-layout,
.filter-form .flex-layout * {
    box-sizing: border-box;
}

.filter-form .flex-layout .flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-grow: 1;
}

.filter-form .flex-layout .flex-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 2px;
}

.filter-form .flex-layout .flex-item > span {
    width: 170px;
    margin: 2px;
}

.filter-form .flex-layout .flex-item > span > input,
.filter-form .flex-layout .flex-item > span > select {
    width: 100%;
    margin: 0;
    height: 28px;
    line-height: 28px;
}

.filter-form .flex-layout .flex-item.filter-inputs {
    flex: 1;
}

@media all and (max-width: 640px) {
    .filter-form .flex-layout .flex-item {
        flex-direction: column;
    }
    .filter-form .flex-layout .flex-item > span {
        width: 100%;
    }
    .filter-menu .filter-list > dl {
        float: left;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    .filter-menu .filter-list > dl:last-child {
        margin-top: 8px;
    }
    .filter-menu {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        box-shadow: none;
        overflow-y: auto;
        z-index: 10000 !important;
    }
}

/* end filter/update menu */

.btn-group > .btn-fix-left {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.btn-group > .btn-fix-right {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.notify-stack {
  width: 340px;
}

.tag-select-placeholder {
    color: #777;
    font-size: 12px;
}

::-webkit-input-placeholder {
  font-size: 12px;
}

:-moz-placeholder { /* older Firefox*/
  font-size: 12px;
}

::-moz-placeholder { /* Firefox 19+ */
  font-size: 12px;
}

:-ms-input-placeholder {
  font-size: 12px;
  color: #777 !important;
}
