
.stepMainTitle() {
  border-radius: 2px;
  padding: 2px 10px;
  font-weight: 500;
}

.navButton() {
  background-color: #172422;
  color: #FFEBC8;
  .stepMainTitle();
}

.activeYellowButton() {
  background-color: #FF9200;
  color: #000;
  .stepMainTitle();
}

html {
  overflow: auto;
}

body {
  width: 100%;
  min-width: 985px; //max-width: 1440px;
  margin: 0 auto;
  font-size: 14px;
  color: #FFEBC8;
  background-color: #0A0F0E;
}

.ant-tooltip-inner {
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .5);
  word-break: break-all;
  max-width: 500px;
}

.ssTheme {
  .class-app {
    padding: 5px 8px;
  }
  .hidden {
    display: none !important;
  }
  .ant-table {
    border: 0 none;
    .ant-table-header > table,
    .ant-table-body > table {
      padding: 0;
    }
    .ant-table-header table {
      border-bottom: 0 none;
    }
    .ant-table-thead > tr > th:not(.ant-table-selection-column) {
      border-bottom: 0 none;
      color: #7B8280;
    }
    .ant-table-tbody > tr > td {
      border-bottom: 0 none;
      &.strong {
        color: #F9C152;
      }
      &.bid {
        color: #FF9200;
      }
      &.ofr {
        color: #11A1FF;
      }
      &.time {
        color: #7B8280;
      }
      &.direction {
        font-weight: bold;
      }
      &.center {
        text-align: center;
      }
      &.right {
        text-align: right;
      }
      &.trader {
        font-size: 0;
      }
      &.broker {
        background-color: #0a0f0e;
      }
    }
    &.ant-table-small {
      .ant-table-thead > tr > th:not(.ant-table-selection-column) {
        padding: 6px 8px;
      }
    }
    &.ant-table-large {
      .ant-table-thead > tr > th:not(.ant-table-selection-column) {
        background-color: #121a19;
        padding: 11px 8px;
        color: #7B8280;
        font-size: 14px;
      }
    }
  }
  .CHG {
    color: #9AB9B9;
  }
  .TRD {
    color: #7ed321;
  }
  .TKN {
    color: #11a1ff;
  }
  .GVN {
    color: #ff7d00;
  }
  .zebra-line, .zebra-line-market {
    .ant-table-thead > tr > th:not(.ant-table-selection-column) {
      background-color: transparent;
      color: #9ab9b9;
    }
    .ant-table-tbody > tr {
      &:nth-of-type(odd) {
        background-color: #172422;
      }
      &:nth-of-type(even) {
        background-color: #121A19;
      }
    }
  }
  .ant-table-placeholder {
    padding: 8px;
    border-left: 1px solid #0A0F0E;
    border-right: 1px solid #0A0F0E;
    color: #9AB9B9;
    .anticon {
      display: none;
    }
  }
  .border-space-scroll {
    .ant-table .ant-table-thead > tr > th:not(.ant-table-selection-column) {
      background-color: #16211f;
      &.broker {
        background-color: #0a0f0e;
      }
    }
    .ant-table-thead > tr > th:not(.ant-table-selection-column) {
      border-bottom: 1px solid #0a0f0e;
      border-right: 1px solid #0a0f0e;
    }
    .ant-table-tbody > tr > td {
      background-color: #121A18;
      border-bottom: 1px solid #0a0f0e;
      border-right: 1px solid #0a0f0e;
      &.bid {
        background-color: #1E1F17;
      }
      &.ofr {
        background-color: #122024;
      }
      &.relative {
        position: relative;
      }
    }
    .ant-table-tbody > tr:hover > td {
      background-color: #253936;
    }
    .ant-table-tbody > tr:last-child > td {
      border-bottom: 0 none;
    }
  }
  .ant-input[disabled] {
    opacity: 0.1 !important;
  }
  .ant-btn {
    &:hover,
    &:focus {
      color: #ffebc8;
      background-color: #136C5E;
    }
    &:active,
    &.active {
      color: #ffebc8;
      background-color: #136C5E;
    }
  }
  .ant-table-pagination {
    display: flex;
    justify-content: center;
    float: none;
    margin: 8px 0;
  }
  .ant-pagination.mini {
    .ant-pagination-prev,
    .ant-pagination-next {
      background-color: #136C5E;
    }
    .ant-pagination-prev {
      margin-right: 10px;
    }
    .ant-pagination-next {
      margin-left: 10px;
    }
    .ant-pagination-item + .ant-pagination-item {
      margin-left: 2px;
    }
  }
  .ant-pagination-item {
    background-color: transparent;
    &:hover a {
      color: #fff;
    }
  }
  .ant-pagination-item-active {
    background-color: #FF9200;
    a,
    &:hover a {
      color: #000
    }
  }
  .ant-pagination-prev,
  .ant-pagination-next,
  .ant-pagination-disabled {
    a,
    &:hover a {
      color: #fff;
      cursor: pointer;
    }
  }
  .ant-pagination-jump-prev,
  .ant-pagination-jump-next {
    &:after {
      color: #fff;
    }
    &:hover:after {
      content: '•••';
      font-family: Arial;
      color: #fff;
      letter-spacing: 2px;
      transform: none;
    }
  }
  .checkbox-yellow {
    .ant-checkbox-inner {
      background-color: #0E1A18;
      border-color: #253936;
    }
    .ant-checkbox-checked {
      .ant-checkbox-inner {
        background-color: #ff9200;
        border-color: #ff9200;
        &:after {
          border-color: #000;
        }
      }
      & + span {
        color: #f9c152;
      }
    }
  }
  .ant-radio-inner {
    background-color: #0e1a18;
    border-color: #253936;
    &:after {
      position: absolute;
      left: 4px;
      top: 1px;
      width: 5px;
      height: 8px;
      border: 2px solid #000000;
      border-top: 0;
      border-left: 0;
      background-color: transparent;
      transform: rotate(45deg) scale(0);
    }
  }
  .ant-radio-wrapper-checked span:nth-child(2) {
    color: #f9c152;
  }
  .ant-radio-checked {
    .ant-radio-inner {
      background-color: #ff9200;
      border-color: #ff9200 !important;
      &:after {
        transform: rotate(45deg) scale(1);
      }
    }
  }
  .ant-calendar-picker {
    height: 24px;
    width: 109px;
  }
  .ant-calendar {
    border: none;
  }
  .calendar-split {
    padding: 0 5px;
    text-align: center;
  }
  .ant-tooltip-inner {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .5);
    word-break: break-all;
    max-width: 500px;
  }
  .ant-popover-inner {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.50);
  }
  .ant-popover-inner-content {
    padding: 0;
  }
  .ant-message-notice-content {
    background: #efdfc4;
    color: #000;
  }
  .ant-message-warning .anticon,
  .ant-message-loading .anticon {
    color: #d98817;
  }
  .ant-dropdown-menu-item-selected,
  .ant-dropdown-menu-submenu-title-selected,
  .ant-dropdown-menu-item-selected > a,
  .ant-dropdown-menu-submenu-title-selected > a {
    color: #ffebc8;
  }
  .ant-notification-notice {
    background: #efdfc4;
    color: #000;
    .ant-notification-notice-message {
      font-weight: 800;
    }
    .ant-notification-notice-close {
      color: #0e0d0c;
    }
  }
  .filter-inline {
    display: inline-block;
  }
  .filter-item {
    & + .filter-item {
      margin-left: 5px;
    }
    & > label {
      opacity: 0.5;
      color: #ffffff;
    }
  }
  .bond-layout {
    display: flex;
    .bond-layout-left,
    .bond-layout-right {
      flex: 1;
      width: 0;
    }
  }
  // Steps
  .ant-steps {
    .ant-steps-head {
      background: transparent;
    }
    .ant-steps-item {
      &.ant-steps-status-finish,
      &.ant-steps-status-process,
      &.ant-steps-status-wait {
        .ant-steps-title {
          .stepMainTitle();
        }
        .ant-steps-description {
          background-color: transparent;
          color: #8f9598;
        }
      }
      &.ant-steps-status-finish {
        .ant-steps-title {
          .activeYellowButton();
        }
      }
      &.ant-steps-status-process {
        .ant-steps-title {
          .navButton();
        }
      }
      &.ant-steps-status-wait {
        .ant-steps-title {
          .navButton();
        }
      }
    }
  }
}

//.table-header-nobackground .ant-table-small .ant-table-header{
//  background: #0A0F0E;
//}
//.table-header-nobackground .ant-table-small .ant-table-header table{
//  background: #0A0F0E;
//}

@media screen and (max-width: 1200px) {
  .bond-layout {
    display: block;
  }

  .bond-detail-content {
    overflow-y: auto !important;
  }
}

@media screen and (max-height: 790px) {
  overflow-y: auto !important;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 1;
}

.flex-row-left {
  .flex-row;
  justify-content: flex-start;
}

.flex-row-right {
  .flex-row;
  justify-content: flex-end;
}

.ss-vt-table {
  font-size: 12px;
  .th, .td {
    padding: 0 6px !important;
  }
  .vt-body {
    .td {
      &.strong {
        color: #F9C152;
      }
      &.bid {
        color: #FF9200;
      }
      &.ofr {
        color: #11A1FF;
      }
      &.time {
        color: #7B8280;
      }
      &.direction {
        font-weight: bold;
      }
      &.center {
        text-align: center;
      }
      &.right {
        text-align: right;
      }
      &.trader {
        font-size: 0;
      }
      &.broker {
        background-color: #0a0f0e;
      }
    }
  }
}
