.c-salesdb__modal {
  top: 50%;
  left: 50%;
  z-index: 15;
  width: 100%;
  position: fixed;
  border-radius: 3px;
  transform: translate(-50%, -50%);
}
.c-salesdb__modal--hidden {
  display: none;
}
.c-salesdb__modal--ops,
.c-salesdb__modal--mass {
  height: 75%;
  max-height: 450px;
  max-width: 600px;
  background: #eee;
}
.c-salesdb__modal--cfg {
  height: 90%;
  max-width: 85%;
  background: #aaa;
}
.c-salesdb__modal--cfg .o-viewconfig {
  height: 100%;
  overflow: visible;
}
.c-salesdb__modal--cfg .o-viewconfig__icon--addnew,
.c-salesdb__modal--cfg .o-viewconfig__icon--saveall {
  left: -30px;
}
.c-salesdb__modal--cfg .o-viewconfig__pane {
  margin: 5px;
}
.c-salesdb__modaltabs {
  width: 100%;
  height: 48px;
  display: flex;
}
.c-salesdb__modaltab {
  flex: 1;
  height: 40px;
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  position: relative;
  line-height: 18px;
  font-size: 18px;
}
.c-salesdb__modaltab:not(.c-salesdb__modaltab--active) {
  border-bottom: 1px solid black;
}
.c-salesdb__modaltab:not(.c-salesdb__modaltab--active):hover {
  background: #ccc;
}
.c-salesdb__modaltab:not(.c-salesdb__modaltab--active):not(:hover) {
  background: #bbb;
}
.c-salesdb__modaltab:not(:first-child) {
  border-left: 1px solid black;
}
.c-salesdb__modaltab-icon {
  width: 25px;
  height: 25px;
  left: 15px;
  margin: 0 10px;
  position: absolute;
  font-size: 24px;
}
.c-salesdb__modalct {
  overflow: auto;
  height: calc(100% - 48px);
}
.c-salesdb__modalct--hidden {
  display: none;
}

.o-search {
  margin: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.o-search > .o-dropdown {
  flex: 0 0 40%;
}
.o-search--hidden {
  display: none;
}
.o-search__panel {
  flex: 1 0 40%;
  margin: 0 10px;
  max-height: 350px;
  border-radius: 3px;
  display: flex;
  position: relative;
  max-height: 29.6px;
}
.o-search__panel > .o-dropdown {
  flex: 0 0 130px;
}
.o-search__panel > .o-dropdown > .o-dropdown__fieldset {
  /* padding: ; */
}
.o-search__panel > .o-dropdown .o-dropdown__search,
.o-search__panel > .o-dropdown .o-dropdown__list {
  max-width: 80px;
}
.o-search__panel > .o-dropdown .o-dropdown__value,
.o-search__panel > .o-dropdown .o-dropdown__item {
  justify-content: center;
}
.o-search__panel > .o-dropdown .o-dropdown__value {
  flex-grow: 0;
  max-width: 74px;
}
.o-search__searchinput {
  height: 23px;
  margin: 4px 4px;
  outline: 0 none;
  font-size: 10px;
  padding: 2px 4px;
  width: 85%;
}
.o-search__apply {
  border-radius: 3px;
  cursor: pointer;
  margin: 2px 0 0 0;
  background-color: white;
  border: 1px solid black;
}
.o-search__recordremove {
  align-self: flex-end;
  cursor: pointer;
  font-size: 16px;
  border: 1px solid black;
  border-radius: 3px;
  padding: 4px;
  color: #777;
  margin: 0 0 0 5px;
}
.o-search__panel--hidden {
  display: none;
}
.o-search__panel--hidden + .o-search__apply {
  display: none;
}
.o-search__record {
  padding: 10px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  border-radius: 3px;
  background: white;
  flex: 1 0 calc(100% - 20px);
  max-width: calc(100% - 20px);
}
.o-search__recordlabel {
  margin: 0 10px;
  white-space: nowrap;
}
.o-search__recorddetails {
  flex: 1 1 auto;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.o-dropdown {
  display: flex;
  min-height: 24px;
  border-radius: 3px;
  border: 1px solid black;
  background-color: white;
}
.o-dropdown__label {
  padding: 5px;
  display: flex;
  flex: 0 1 auto;
  cursor: default;
  user-select: none;
  text-align: center;
  align-items: center;
  font-size: 12px;
  background-color: black;
}
.o-dropdown__fieldset {
  position: relative;
  flex: 1;
  width: calc(100% - 10px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  justify-content: start;
  padding: 3px 5px 3px 3px;
}
.o-dropdown__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 3px;
  border: 1px solid black;
  margin: 0 0 0 5px;
  box-sizing: border-box;
  font-size: 16px;
  color: #555;
}
.o-dropdown__icon::after {
  z-index: 1;
  padding: 4px;
}
.o-dropdown__icon--hidden {
  display: none;
}
.o-dropdown__icon:not(.o-dropdown__icon--hidden) {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.o-dropdown__icon:not(.o-dropdown__icon--disabled) {
  cursor: pointer;
}
.o-dropdown__icon:not(.o-dropdown__icon--disabled):not(.o-dropdown__icon--active) {
  background-color: #bbb;
}
.o-dropdown__icon:not(.o-dropdown__icon--disabled):not(.o-dropdown__icon--active)::after {
  font-size: 12px;
}
.o-dropdown__icon--active {
  background-color: #a9a9a9;
}
.o-dropdown__icon--active::after {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  font-family: "Font Awesome 5 Free";
}
.o-dropdown__icon--disabled {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
}
.o-dropdown__icon:hover:not(.o-dropdown__icon--disabled):not(.o-dropdown__icon--active) {
  background-color: #a9a9a9;
}
.o-dropdown__icon:hover:not(.o-dropdown__icon--disabled):not(.o-dropdown__icon--active)::after {
  font-size: 12px;
}

.o-dropdown__search {
  width: 100%;
  flex-grow: 1;
  outline: 0 none;
  color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  font-family: Play;
  border: 1px solid black;
  background-color: white;
  min-height: 22px;
}
.o-dropdown__value {
  display: flex;
  cursor: pointer;
  padding: 0 6px;
  min-height: 22px;
  overflow: hidden;
  user-select: none;
  border-radius: 3px;
  align-items: center;
  box-sizing: border-box;
  border: 1px solid;
  font-size: 12px;
  font-family: Play;
}
.o-dropdown__value img {
  padding: 2px;
  margin: 0 3px;
  max-height: 18px;
}
.o-dropdown__empty {
  width: 100%;
  height: 100%;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.o-dropdown__list {
  width: calc(100% - 12px);
  z-index: 100;
  overflow: auto;
  position: absolute;
  left: 3px;
  border-radius: 0 0 5px 5px;
  border: 1px solid;
  box-sizing: border-box;
  transition: opacity 0.25s, max-height 0.25s;
}
.o-dropdown__item {
  display: flex;
  cursor: pointer;
  overflow: hidden;
  align-items: center;
  background-color: white;
  transition: opacity 0.2s, height 0.25s;
}
.o-dropdown__item .o-dropdown__text {
  margin-left: 10px;
  margin-right: 10px;
  height: 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.o-dropdown__item .o-dropdown__img {
  max-width: 20px;
  max-height: 20px;
  margin: 0 0 0 10px;
}
.o-dropdown__item:not(:last-child) {
  border-bottom: 1px solid;
}
.o-dropdown__item:hover,
.o-dropdown__item.o-dropdown__item--hover {
  color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  font-family: Play;
  background-color: #d5d5d5;
}
.o-dropdown__item:not(:hover) {
  font-size: 12px;
  font-family: Play;
}
.o-dropdown__item.o-dropdown__item--disabled {
  height: 0;
  opacity: 0;
  padding: 0;
}
.o-dropdown__item.o-dropdown__item--disabled:not(:last-child) {
  border-width: 0;
}
.o-dropdown__item:not(.o-dropdown__item--disabled) {
  opacity: 1;
  height: 20px;
  padding: 1px 0;
}
.o-dropdown.o-dropdown__open .o-dropdown__value {
  display: none;
}
.o-dropdown.o-dropdown__open .o-dropdown__search {
  display: block;
  border-radius: 3px 3px 0 0;
}
.o-dropdown.o-dropdown__open .o-dropdown__list {
  opacity: 1;
  max-height: 350px;
}
.o-dropdown:not(.o-dropdown__open) .o-dropdown__search {
  display: none;
  border-radius: 3px;
}
.o-dropdown:not(.o-dropdown__open) .o-dropdown__value {
  z-index: 1;
  width: 100%;
}
.o-dropdown:not(.o-dropdown__open) .o-dropdown__list {
  max-height: 0px;
  opacity: 0;
}

.o-filter {
  margin: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.o-filter .o-dropdown {
  flex: 0 0 40%;
}
.o-filter--hidden {
  display: none;
}
.o-filter__panel {
  flex: 1 0 40%;
  margin: 0 10px;
  max-height: 350px;
  border-radius: 3px;
  position: relative;
  background: white;
  border: 1px solid #333;
}
.o-filter__selectall,
.o-filter__selectnone {
  padding: 5px;
  cursor: pointer;
  text-align: center;
  border-bottom: 1px solid;
}
.o-filter__search {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid;
}
.o-filter__searchinput {
  margin: 2px;
  outline: 0 none;
  font-size: 10px;
  padding: 2px 4px;
  width: 85%;
}
.o-filter__list {
  left: -1px;
  padding: 5px;
  background: white;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 265px;
  position: absolute;
  border-left: 1px solid;
  border-right: 1px solid;
  border-bottom: 1px solid;
  width: calc(100% - 10px);
}
.o-filter__item {
  height: 20px;
  font-size: 12px;
  padding: 0 20px 0 0;
  font-weight: normal;
  align-items: center;
}
.o-filter__item input {
  cursor: pointer;
}
.o-filter__item.o-filter__item--hidden {
  display: none;
}
.o-filter__item:not(.o-filter__item--hidden) {
  display: flex;
}
.o-filter__itemtext {
  flex: 1;
  user-select: none;
  text-align: left;
  padding: 0 0 0 2px;
  white-space: nowrap;
}
.o-filter__recordremove {
  align-self: flex-end;
  cursor: pointer;
  font-size: 16px;
  border: 1px solid black;
  border-radius: 3px;
  padding: 4px;
  color: #777;
  margin: 0 0 0 5px;
}
.o-filter__panel--hidden {
  display: none;
}

.o-filter__apply {
  border-radius: 3px;
  cursor: pointer;
  background-color: white;
  border: 1px solid black;
}

.o-filter__panel--hidden + .o-filter__apply {
  display: none;
}
.o-filter__record {
  padding: 10px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  border-radius: 3px;
  background: white;
  flex: 1 0 calc(100% - 20px);
  max-width: calc(100% - 20px);
}
.o-filter__recordlabel {
  margin: 0 10px;
  white-space: nowrap;
  font-weight: 600;
}
.o-filter__recorddetails {
  flex: 1 1 auto;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.o-sort {
  margin: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.o-sort > .o-dropdown {
  flex: 0 0 40%;
}
.o-sort--hidden {
  display: none;
}
.o-sort__panel {
  flex: 1 0 40%;
  margin: 0 10px;
  max-height: 350px;
  border-radius: 3px;
  display: flex;
  position: relative;
}
.o-sort__panel > .o-dropdown {
  flex: 0 0 100%;
}
.o-sort__sortinput {
  height: 23px;
  margin: 6px 4px;
  outline: 0 none;
  font-size: 10px;
  padding: 2px 4px;
  width: 85%;
}
.o-sort__apply {
  margin: 6px 0 0 5px;
}
.o-sort__recordremove {
  align-self: flex-end;
  cursor: pointer;
  font-size: 16px;
  border: 1px solid black;
  border-radius: 3px;
  padding: 4px;
  color: #777;
  margin: 0 0 0 5px;
}
.o-sort__panel--hidden {
  display: none;
}
.o-sort__panel--hidden + .o-sort__apply {
  display: none;
}
.o-sort__record {
  padding: 10px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  border-radius: 3px;
  background: white;
  flex: 1 0 calc(100% - 20px);
  max-width: calc(100% - 20px);
}
.o-sort__recordlabel {
  margin: 0 10px;
  white-space: nowrap;
}
.o-sort__recorddetails {
  flex: 1 1 auto;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.c-salesdb__icon {
  cursor: pointer;
  width: 12px;
  margin: 0px 3px;
  transform: translateY(2px);
  font-size: 14px;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.5);
}
.c-salesdb__icon::after {
  z-index: 1;
  padding: 4px;
}
.c-salesdb__icon--hidden {
  display: none;
}
.c-salesdb__icon:not(.c-salesdb__icon--hidden) {
  display: inline-block;
}
.c-salesdb__icon:not(.c-salesdb__icon--disabled) {
  cursor: pointer;
}
.c-salesdb__icon:not(.c-salesdb__icon--disabled):not(.c-salesdb__icon--active) {
  background-color: white;
}
.c-salesdb__icon:not(.c-salesdb__icon--disabled):not(.c-salesdb__icon--active)::after {
  font-size: 12px;
  color: black;
}
.c-salesdb__icon--active {
  color: white;
  background-color: #878787;
}
.c-salesdb__icon--active::after {
  font-size: 12px;
  color: black;
}
.c-salesdb__icon--disabled {
  background-color: white;
  font-size: 12px;
  color: #444;
}
.c-salesdb__icon:hover:not(.c-salesdb__icon--disabled):not(.c-salesdb__icon--active) {
  background-color: #ededed;
}
.c-salesdb__icon:hover:not(.c-salesdb__icon--disabled):not(.c-salesdb__icon--active)::after {
  font-size: 12px;
  color: black;
}

.c-salesdb__icon--modalclose {
  position: absolute;
  left: -45px;
  height: 20px;
  width: 20px;
  padding: 6px;
  font-size: 20px;
  transform: translateY(0);
  box-shadow: 1px 1px 6px 4px rgba(0, 0, 0, 0.1);
}

.c-salesdb__overlay {
  position: fixed;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  top: 0;
  left: 0;
}
.c-salesdb__overlay--hidden {
  display: none;
}

.c-salesdb__row--hide {
  display: none;
}

.c-salesdb__counter {
  position: absolute;
  right: 0;
  bottom: -42px;
  background: white;
  padding: 10px;
  border-radius: 3px;
  font-weight: bold;
}

.c-salesdb__modaltab--sort,
.c-salesdb__icon--sort {
  display: none !important;
}

.c-salesdb__modal .material-icons {
  user-select: none;
}
