/***************************** jquery-ui some icons *********************************/
.ui-resizable-handle {
  background-image: url("./img/ui-icons_444444_256x240.png");
}
.ui-icon-gripsmall-diagonal-se {
  background-position: -64px -224px;
}
.ui-dialog .ui-resizable-se,
.ui-dialog .ui-resizable-sw,
.ui-dialog .ui-resizable-ne,
.ui-dialog .ui-resizable-nw {
  width: 7px;
  height: 7px;
}
.ui-dialog .ui-resizable-se {
  right: 0;
  bottom: 0;
}
.ui-resizable {
  position: relative;
}
.ui-resizable-handle {
  position: absolute;
  font-size: 0.1px;
  display: block;
  -ms-touch-action: none;
  touch-action: none;
}
.ui-resizable-disabled .ui-resizable-handle,
.ui-resizable-autohide .ui-resizable-handle {
  display: none;
}
.ui-resizable-se {
  cursor: se-resize;
  width: 12px;
  height: 12px;
  right: 1px;
  bottom: 1px;
}
.ui-datepicker .ui-datepicker-header .ui-datepicker-prev:before {
  content: '<';
}
.ui-datepicker .ui-datepicker-header .ui-datepicker-next:before {
  content: '>';
}
/*************************** Windows & Modules ***********************************/
.dashboard {
  font-size: 12px;
  position: relative;
  background: #eeeeee;
  height: calc(100vh - 100px);
}
.dashboard .big-btn {
  width: 100%;
  color: #fff;
  background: dodgerblue;
}
.dashboard .big-btn_green {
  background: #10b759;
}
.dashboard .big-btn_red {
  background: #dc3545;
}
.dashboard input[type=text] {
  height: 22px;
  border: 1px solid #9e9e9e;
  border-radius: 4px;
}
.dashboard .btn {
  vertical-align: bottom;
  display: block;
  height: 30px;
  border-radius: 4px;
  border: 1px solid #9e9e9e;
  cursor: pointer;
  background: #eee;
  outline: none;
}
.dashboard .btn_small {
  height: 22px;
  padding: 0 4px;
}
.dashboard .btn:hover {
  background: #f5f5f5;
}
.window {
  position: absolute;
  min-width: 120px;
  min-height: 100px;
  overflow: hidden;
}
.window .ui-resizable-se {
  right: 2px;
  bottom: 2px;
}
.module {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(72, 94, 144, 0.16);
  border-radius: 0.25rem;
  height: 100%;
  box-sizing: border-box;
}
.module-header {
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(72, 94, 144, 0.16);
  cursor: move;
  padding: 9px 15px;
  font-size: 13px;
}
.module-body {
  flex: 1 1 auto;
  height: calc(100% - 52px);
  padding: 8px;
}
.custom-checkbox {
  display: inline-block !important;
}
.table th,
.table td {
  padding: 3px 8px;
  line-height: 1.3;
}
.ui-datepicker {
  z-index: 100000 !important;
}
.form-control {
  padding: 0.3rem 0.55rem;
  height: calc(1.5em + 0.9375rem - 4px);
}
.select2-container--default .select2-selection--single {
  height: 30px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 30px;
}
.btn-sm,
.btn-group-sm > .btn,
.ui-datepicker-buttonpane .btn-group-sm > button,
.sp-container .btn-group-sm > button,
.ui-datepicker-buttonpane button {
  padding: 0.28rem 0.5rem;
}
/************************** Misc *************************/
#window-reset {
  z-index: 99999 !important;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  margin: -2px;
  overflow: visible;
}
#window-reset .module {
  box-shadow: black 0 0 5px;
  padding: 3px;
}
#window-reset i {
  cursor: pointer;
}
#window-reset i:hover {
  color: #00a7e6 !important;
}
body.web-socket-on #window-params i {
  color: #28a745;
}
.table-stripped {
  border-spacing: 0;
}
.table-stripped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}
.table-stripped_cells-splitted th,
.table-stripped_cells-splitted td {
  padding: 0 6px;
}
/************************** Dashboards Popover *************************/
.d-popover-wrapper {
  position: relative;
  cursor: default;
}
.d-popover-wrapper:hover .d-popover-content {
  z-index: 10;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -20px);
  transition: all 0.5s cubic-bezier(0.75, -0.02, 0.2, 0.97);
}
.d-popover-wrapper:not(:hover) .qrcode {
  background-image: none !important;
}
.d-popover-content {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: calc(100% + 35px);
  left: 50%;
  transform: translate(-50%, 10px);
  padding: 0.5rem;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  width: auto;
  color: #333;
  white-space: nowrap;
  background: #f5f5f5;
}
.d-popover-content:before {
  position: absolute;
  z-index: -1;
  content: "";
  right: calc(50% - 10px);
  top: -8px;
  border-style: solid;
  border-width: 0 10px 10px 10px;
  border-color: transparent transparent #f5f5f5 transparent;
  transition-duration: 0.3s;
  transition-property: transform;
}
.d-popover-content_grey {
  background-color: #999;
  color: white;
}
.d-popover-content_grey:before {
  border-color: transparent transparent #999 transparent;
}
/************************** SimpleTable *************************/
.data-row {
  padding: 3px 0.4rem;
}
.data-row:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}
.data-row span:last-child {
  float: right;
}
/************************** Balances *************************/
.mod-balances {
  height: 100%;
  overflow-y: hidden;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  align-content: flex-start;
  flex-wrap: wrap;
}
.mod-balances .balance-market {
  min-width: 110px;
  margin: 0 8px 8px 0;
  background: #f7f7f7;
}
.mod-balances .market-btn {
  width: 100%;
  text-align: left;
}
.mod-balances .market-btn.regular {
  background: #ffffff;
  color: #333;
}
.mod-balances .market-btn.inactive {
  background: #aaaaaa;
  color: white;
}
.mod-balances .market-btn.new {
  background: #c0eec1;
}
.mod-balances .market-btn.collapsed > .icon-collapse {
  display: none;
}
.mod-balances .market-btn:not(.collapsed) > .icon-uncollapse {
  display: none;
}
.mod-balances .balance-row {
  padding: 3px 0.4rem;
  border-bottom: 1px solid rgba(72, 94, 144, 0.16);
}
.mod-balances .balance-row:nth-of-type(odd) {
  background-color: #eeeeee;
}
/************************** Transfer / Binance Form *************************/
#window-transferForm,
#window-binanceForm {
  overflow: visible;
}
.mod-transfer-form,
.mod-binance-form {
  display: flex;
  flex-direction: row;
  align-content: flex-start;
  flex-wrap: wrap;
}
.mod-transfer-form > div,
.mod-binance-form > div {
  width: 130px;
  min-height: 30px;
  position: relative;
  margin: 0 10px 8px 0;
}
/************************** Manual Orders *************************/
.mod-manual-orders table {
  border-spacing: 0;
}
.mod-manual-orders table td {
  border-top: 1px solid #ccc;
}
.mod-manual-orders table td,
.mod-manual-orders table th {
  padding: 2px 5px;
  text-align: center;
}
/************************** Logged *************************/
.mod-logged .block {
  margin-bottom: 5px;
}
.mod-logged .title {
  font-weight: bold;
}
.mod-logged .logged-user {
  padding: 3px 0;
}
.mod-logged .logged-user:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}
.mod-logged .logged-user span:first-child {
  display: inline-block;
  width: 35px;
  color: #333366;
}
.mod-logged .action-btn {
  margin-left: 5px;
  color: #5f8fdf;
  cursor: pointer;
}
.mod-logged .action-btn:hover {
  opacity: 0.8;
}
.screen-share-alert {
  padding: 10px 20px;
  position: fixed;
  z-index: 999;
  bottom: -55px;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid #666;
  border-radius: 5px;
  transition: 0.3s;
  background: white;
}
.screen-share-alert_visible {
  bottom: -5px;
}
.screen-share-alert span {
  vertical-align: 5px;
}
.screen-share-alert .btn-action {
  display: inline-block;
  background: #3f51b5;
  padding: 2px 12px;
  height: 20px;
  font-size: 14px;
  line-height: 18px;
  color: #F3F5F7;
  border-radius: 3px;
  margin-left: 1rem;
  cursor: pointer;
}
.screen-share-alert .btn-action:hover {
  opacity: 0.8;
}
.screen-share-alert .btn-action_danger {
  background: #ff6666;
}
.screen-share-alert .btn-action svg {
  font-size: 20px;
}
#stream-dialog {
  z-index: 9999999 !important;
}
#stream-dialog > div:nth-child(2) {
  width: 100%;
  height: 100%;
  max-width: initial;
  margin: 10px;
}
#stream-dialog > div:nth-child(2) .btn-minimize {
  min-width: initial;
  min-height: initial;
  padding: 0;
  float: right;
}
#stream-dialog > div:nth-child(2) #stream-video-container {
  height: 100%;
  text-align: center;
}
#stream-dialog > div:nth-child(2) #stream-video-container video {
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  -webkit-transition: all 1s ease;
  transition: all 1s ease;
  width: 100%;
  height: 100%;
}
/************************** Prices Comparison *************************/
.mod-prices-comparison {
  height: calc(100% - 20px);
  margin-top: 20px;
  position: relative;
  white-space: nowrap;
}
.mod-prices-comparison .center-line {
  position: absolute;
  width: 100%;
  top: 50%;
  border-top: 1px dashed #999999;
}
.mod-prices-comparison .market {
  width: 60px;
  position: relative;
  height: 100%;
  display: inline-block;
}
.mod-prices-comparison .market .market-title {
  position: absolute;
  width: 100%;
  top: -20px;
  text-align: center;
}
.mod-prices-comparison .market .spread {
  position: absolute;
  width: 100%;
  top: calc(50% - 7px);
  text-align: center;
}
.mod-prices-comparison .market .spread span {
  background: white;
  padding: 0 4px;
}
.mod-prices-comparison .market .bar-info {
  position: absolute;
  width: 100%;
  text-align: center;
  color: #333;
}
.mod-prices-comparison .market .bar {
  position: absolute;
  left: 5px;
  width: calc(60px - 10px);
}
.mod-prices-comparison .market .bar-bid {
  bottom: 0;
  border: 1px solid #cc6666;
  background: rgba(204, 102, 102, 0.6);
}
.mod-prices-comparison .market .bar-bid .bar-info {
  bottom: 0;
}
.mod-prices-comparison .market .bar-ask {
  top: 0;
  border: 1px solid #66cc66;
  background: rgba(102, 204, 102, 0.6);
}
.mod-prices-comparison .market .bar-ask .bar-info {
  top: 0;
}
/************************** Last TX *************************/
#window-lastTx {
  overflow: visible;
}
.mod-last-tx {
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  padding-right: 5px;
}
.mod-last-tx table {
  border-spacing: 0;
}
.mod-last-tx table td {
  border-top: 1px solid #ccc;
}
.mod-last-tx table td,
.mod-last-tx table th {
  padding: 2px 5px;
  text-align: center;
}
.mod-last-tx .qrcode {
  width: 150px;
  height: 150px;
  background-size: contain;
}
.mod-last-tx .tx-action-btn {
  vertical-align: bottom;
  display: block;
  padding: 1px 5px;
  color: #333;
  border-radius: 4px;
  border: 1px solid #9e9e9e;
  cursor: pointer;
  background: #eee;
  outline: none;
}
.mod-last-tx .tx-action-btn:hover {
  background: #f5f5f5;
}
.mod-last-tx .transaction-sum {
  margin-top: 0.7rem;
  text-align: right;
  font-weight: bold;
  font-size: 1.1rem;
}
/************************** Distortion Setup *************************/
#window-distortionSetup {
  overflow: visible;
}
.mod-distortion-setup .table-stripped td:not(:first-child) {
  text-align: center;
  min-width: 100px;
  padding: 2px 5px;
}
.mod-distortion-setup .table-stripped td:not(:first-child) input {
  width: 95%;
}
.mod-distortion-setup td.field-changed {
  background: rgba(255, 152, 0, 0.3);
}
.mod-distortion-setup td.field-error * {
  color: red !important;
}
.mod-distortion-setup .fields-footer {
  position: relative;
}
.mod-distortion-setup .fields-footer > span {
  display: inline-block;
  margin: 7px;
  color: red;
}
.mod-distortion-setup .fields-footer button {
  position: absolute;
  right: 0;
  top: 7px;
}
/************************** Trade interface *************************/
.mod-trade-interface {
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  padding-right: 5px;
}
.mod-trade-interface table {
  border-spacing: 0;
}
.mod-trade-interface table td {
  border-top: 1px solid #ccc;
}
.mod-trade-interface table td,
.mod-trade-interface table th {
  padding: 2px 5px;
  text-align: center;
}
.mod-trade-interface .trade-interface-btn {
  display: block;
  margin-bottom: 2px;
  padding: 1px 5px;
  color: #333;
  border-radius: 4px;
  border: 1px solid #9e9e9e;
  cursor: pointer;
  background: #eee;
  outline: none;
}
.mod-trade-interface .trade-interface-btn:hover {
  background: #f5f5f5;
}
.trade-interface-dialog > div {
  overflow: visible;
}
.trade-interface-dialog-content {
  overflow: visible !important;
  width: 250px;
  padding-bottom: 0 !important;
}
.trade-interface-dialog-content > div {
  margin-bottom: 10px;
}
.trade-interface-dialog-content > div .label {
  width: 95px;
  display: inline-block;
  vertical-align: middle;
}
.trade-interface-dialog-content > div > *:last-child {
  display: inline-block;
  width: calc(100% - 95px);
}
.trade-interface-dialog-content input[type=number],
.trade-interface-dialog-content input[type=text] {
  box-sizing: border-box;
  height: 26px;
  border: 1px solid #9e9e9e;
  border-radius: 4px;
}
.trade-interface-dialog-content .errors {
  height: 25px;
  font-size: 13px;
  color: red;
}
/*************************************** Dashboard Rates ******************************************/
.dashboard-rates {
  font-size: 14px;
  padding: 15px;
  height: auto;
}
.dashboard-rates .rates-table,
.dashboard-rates .percent-form {
  display: inline-block;
  width: 50%;
  box-sizing: border-box;
  padding: 0 15px;
  vertical-align: top;
}
.dashboard-rates .rates-table th {
  padding: 0 5px 5px;
}
.dashboard-rates .rates-table td {
  padding: 2px 5px;
}
.dashboard-rates .big-btn {
  margin-left: 10px;
  width: 60px;
}
/*************************************** Dashboard Charts ******************************************/
.dashboard-charts {
  font-size: 14px;
  padding: 15px;
  height: auto;
}
.dashboard-charts .controls {
  text-align: center;
  margin-bottom: 15px;
}
.dashboard-charts .controls > * {
  display: inline-block;
  width: 150px;
}
.dashboard-charts .controls > span {
  color: #444;
  margin-right: 0.5rem;
  width: auto;
}
/*************************************** Dashboard VM ******************************************/
.dashboard-vm {
  background: #f3f3f3;
  padding: 5px;
  height: auto;
}
.vm-table {
  display: inline-block;
  background: white;
}
.vm-table table {
  border-spacing: 0;
  border-collapse: collapse;
}
.vm-table th,
.vm-table td {
  border: 1px solid #999;
}
.vm-table td table td,
.vm-table td table th {
  border: none;
}
.vm-table th {
  padding: 4px 8px;
  text-align: left;
  font-weight: bold;
}
.vm-table td {
  padding: 4px 8px;
}
.vm-table .btn {
  height: 18px;
  line-height: 18px;
  padding: 0 4px;
  background: #bbb;
  font-weight: bold;
}
.vm-table .btn:hover {
  filter: brightness(1.1);
}
.vm-table td.editable-text {
  display: block;
  cursor: text;
}
.vm-table td.editable-text:hover {
  background: rgba(60, 60, 255, 0.3);
}
.vm-table td.editable-text textarea {
  border-radius: 3px;
  border: 1px solid #333;
  outline: none;
}
.vm-form {
  width: 200px;
  background: white;
  border: 1px solid #999;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
}

/*************************************** Dashboard Outputs ******************************************/
.wallet-row {
    cursor: pointer;
    padding: 1px 5px;
}

.wallet-row_selected {
    background: lightskyblue;
}

.wallet-row:hover {
    opacity: 0.8;
}
