.table-wrapper {
  margin: 20px;
  position: relative;
}

table {
  width: 100%;
  margin-right: 10px;
}

::ng-deep html[dir=rtl]  table {
  margin-right: unset !important;
  margin-left: 10px;
}

.table-cell {
  position: relative;
}

.table-cell-image {
  width: 48px;
}

.padding-right {
  padding-right: 5px !important;
}

::ng-deep html[dir=rtl] .padding-right {
  padding-right: 0 !important;
  padding-left: 5px !important;
}

.text-cell {
  width: 100%;
  z-index: 1;
  position: relative;
  line-height: 1;
  max-height: 49px;
  overflow-y: auto;
  overflow-x: hidden;
}

th, td span {
  font-size: 14px;
}

.no-objects-message-container {
  text-align: center;
}

.no-objects-message {
  font-size: 22px;
  color: #6F6F6F;
  position: fixed;
  width: 100%;
  background-color: #F1F1F1;
  left: 0;
}

tr.detail-row {
  display: flex;
  height: unset !important;
  border: 0;
  min-height: 0 !important;
}

tr.detail-row td {
  border: 0 !important;
}

.detail-cell {
  padding-left: 0 !important;
  display: flex;
  width: 100%;
  padding-right: 0 !important;
}

.detail-container {
  display: flex;
  width: 100%;
}

.currency-col {
  flex-direction: row-reverse !important;
}

.sub-text {
  color: gray;
  font-weight: lighter !important;
  font-size: smaller !important;
  margin-top: 1px;
}

.sub-text-with-link {
  position: relative;
  z-index: 2;
}

.sub-text-with-link:hover {
  text-decoration: underline;
  color: #1E88E5;
}

tr.mat-mdc-row.main-row {
  height: auto;
  border: 0;
  min-height: 48px;
  background: initial;
}

tr.mat-mdc-row.main-row:hover {
  background-color: initial !important;
  -webkit-box-shadow: 3px 3px 8px -2px rgb(0 0 0 / 50%);
  box-shadow: 3px 3px 8px -2px rgb(0 0 0 / 50%);
}

tr.mat-mdc-row.detail-row:hover {
  background-color: inherit !important;
}

.fl-header-row {
  border: 0;
}

.status-arrow {
  font-size: 22px !important;
  margin-left: -13px;
}

.status-arrow-down {
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
}

.hide-box-shadow {
  box-shadow: none !important;
}

.table-header-cell {
    display: flex;
}

@media screen and (max-width: 768px) {
  .table-wrapper-extra {
    margin: 0 !important;
  }
  .table-wrapper th.mat-mdc-header-cell:last-of-type, .table-wrapper td.mat-mdc-cell:last-of-type,
  .table-wrapper td.mat-mdc-footer-cell:last-of-type {
    padding-right: 10px;
  }
  ::ng-deep html[dir=rtl] .table-wrapper th.mat-mdc-header-cell:last-of-type,
  ::ng-deep html[dir=rtl] .table-wrapper td.mat-mdc-cell:last-of-type,
  ::ng-deep html[dir=rtl] .table-wrapper td.mat-mdc-footer-cell:last-of-type {
    padding-right: unset !important;
    padding-left: 10px;
  }
  .table-wrapper th.mat-mdc-header-cell:first-of-type, .table-wrapper td.mat-mdc-cell:first-of-type,
  .table-wrapper td.mat-mdc-footer-cell:first-of-type {
    padding-left: 14px;
  }
  ::ng-deep html[dir=rtl] .table-wrapper th.mat-mdc-header-cell:first-of-type,
  ::ng-deep html[dir=rtl] .table-wrapper td.mat-mdc-cell:first-of-type,
  ::ng-deep html[dir=rtl] .table-wrapper td.mat-mdc-footer-cell:first-of-type {
    padding-left: unset !important;
    padding-right: 14px;
  }
}

@media screen and (max-width: 768px) {
  .status-arrow {
    margin-left: -8px;
  }
}

@media screen and (max-width: 599px) {
  .arrow-container {
    margin-left: -15px;
    margin-right: -8px;
  }
}

@media screen and (min-width: 599px) and (max-width: 768px) {
  .arrow-container {
    margin-left: -15px;
    margin-right: -8px;
  }
}

@media screen and (min-width: 768px) {
  .arrow-container {
    margin-left: -18px;
    margin-right: -5px;
  }
}

@media screen and (min-width: 599px) {
  /* require hover for actions only on screens larger than xs */
  ::ng-deep .table-cell-actions-selector .actions-container {
    opacity: 0;
    transition: 0.2s;
    -webkit-transition: 0.2s;
  }

  ::ng-deep tr:hover .actions-container {
    opacity: 1;
  }
}

::ng-deep tr.always-show-actions .actions-container {
  opacity: 1 !important;
}
