.trading-instruments {
  display: flex;
  flex-direction: column;
  gap: 16px; }

.block__title_main {
  margin: 18px 18px 15px 18px; }

.trading-instruments-block {
  gap: 16px; }

.trading-instruments-accounts {
  border-bottom: 2px solid #DFDEDE;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start; }

.trading-instruments-accounts__list {
  display: flex;
  gap: 26px; }

.trading-instruments-accounts__item {
  font-size: 24px;
  font-weight: 400;
  line-height: 34px;
  padding: 0 15px 10px 15px;
  position: relative;
  opacity: 0.5; }

.trading-instruments-accounts__item_active {
  opacity: 1; }
  .trading-instruments-accounts__item_active:after {
    position: absolute;
    content: '';
    height: 4px;
    width: 100%;
    bottom: 0;
    left: 0;
    background-color: #4ECEA4; }

.trading-instruments-filters {
  display: flex;
  justify-content: space-between; }

.trading-instruments-filter__list {
  display: flex;
  gap: 8px;
  align-items: flex-end; }

.trading-instruments-filter__item {
  padding: 6px 16px;
  background-color: #F5F5F5;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  border-radius: 4px;
  cursor: pointer;
  max-height: 32px; }

.trading-instruments-filter__item_active {
  background-color: #DBB454; }

.general-info {
  display: flex;
  flex-direction: column;
  background-color: #FAFAFA;
  border-radius: 8px;
  flex-basis: 50%;
  max-width: 505px;
  padding: 8px 12px 8px 20px; }

.general-info__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px; }

.general-info__list {
  display: flex;
  flex-direction: row;
  gap: 32px; }

.general-info__item {
  display: flex;
  flex-direction: row;
  gap: 16px; }

.general-info__name {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px; }

.general-info__value {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px; }
  .general-info__value span {
    font-size: 12px;
    font-weight: 400;
    line-height: 17px; }

.trading-instruments-table__wrapper {
  border: 1px solid #F5F5F5;
  position: relative; }

.trading-instruments-table__unit {
  display: none; }

.trading-instruments-table__unit_active {
  display: block; }

.trading-instruments-table-item {
  margin: 0;
  border-collapse: collapse;
  border-radius: 8px;
  width: 100%;
  table-layout: fixed; }
  .trading-instruments-table-item th {
    background-color: #FAFAFA; }
  .trading-instruments-table-item td, .trading-instruments-table-item th {
    border: 1px solid #F5F5F5; }

.trading-instruments-table-item__column {
  padding: 10px 0 10px 20px;
  vertical-align: center; }

.trading-instruments-table__header {
  text-align: left;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  padding: 10px 0 10px 20px; }

.trading-instruments-table__header_align-right {
  text-align: right;
  padding-right: 48px; }

.trading-instruments-table__header_align-center {
  text-align: center;
  padding-right: 48px; }

.trading-instruments-table__subtitle {
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  color: #666666; }

.trading-instruments-table__type {
  font-size: 24px;
  font-weight: 500;
  line-height: 29px;
  padding: 10px 0 22px 20px;
  color: #B38344; }

.ti-info {
  display: flex;
  gap: 16px; }

.ti-table-item__label {
  padding: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 17px; }

.ti-table-item__label_theme-success {
  background-color: #CBECDF;
  border-radius: 4px; }

.trading-instruments-table-item__name {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px; }
  .trading-instruments-table-item__name .ti-table-item__title {
    display: flex;
    gap: 8px;
    align-items: center; }
    .trading-instruments-table-item__name .ti-table-item__title .ti-table-item__label {
      padding: 4px;
      font-size: 10px;
      font-weight: 400;
      line-height: 12px; }
    .trading-instruments-table-item__name .ti-table-item__title .ti-table-item__label_theme-success {
      background-color: #CBECDF;
      border-radius: 4px; }

.trading-instruments-table__subtitle {
  font-size: 12px;
  font-weight: 400;
  line-height: 17px; }

.trading-instruments-table-item__column {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px; }

.trading-instruments-table-item__column_align-right {
  padding-right: 48px;
  text-align: right; }

.trading-instruments-table-item__column_align-center {
  text-align: center; }

.trading-instruments-filter__search {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 4px;
  max-width: 275px;
  overflow: hidden;
  border: 1px solid #DFDEDE;
  flex-basis: 50%; }
  .trading-instruments-filter__search div {
    padding: 7px;
    width: 32px;
    height: 32px; }
  .trading-instruments-filter__search input {
    width: 100%;
    outline: none;
    border: none;
    border-radius: 0; }

.trading-instruments-table-item__header_sticky {
  position: sticky;
  top: 0; }

.trading-instruments-filter__button {
  display: none; }

.trading-instruments_mobile {
  display: none; }

@media only screen and (max-width: 1024px) {
  .trading-instruments-filters {
    flex-direction: column-reverse; } }

@media only screen and (max-width: 768px) {
  .block__title_main {
    font-size: 36px;
    font-weight: 500;
    line-height: 43px;
    margin: 0 0 32px 0; }
  .trading-instruments-accounts {
    margin-left: -12px;
    margin-right: -12px; }
  .trading-instruments_desktop {
    display: none; }
  .trading-instruments_mobile {
    display: flex; }
  .trading-instruments-table-item__name {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    display: flex;
    flex-direction: row;
    gap: 8px; }
  .trading-instruments-table__wrapper {
    border: none; }
  .trading-instruments-accounts__list {
    gap: 0;
    justify-content: space-between;
    width: 100%; }
  .trading-instruments-filter__search {
    flex-basis: auto; }
  .trading-instruments-filters {
    position: relative;
    gap: 16px; }
  .trading-instruments-accounts__item {
    font-size: 18px;
    font-weight: 400;
    line-height: 25px;
    flex: 0 1 calc(33.33% - 5px);
    text-align: center; }
  .trading-instruments-filter__list {
    display: none;
    position: absolute;
    overflow: auto;
    background-color: #F5F5F5;
    top: 40px; }
  .trading-instruments-table__unit {
    width: 100%; }
  .trading-instruments-filter__dropdown_active {
    display: flex;
    flex-direction: column;
    z-index: 100; }
  .trading-instruments-table-item__row {
    border: 1px solid #F5F5F5;
    border-left-width: 0;
    border-right-width: 0; }
  .trading-instruments-table__type {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    color: #B38344;
    padding: 8px 0; }
  .trading-instruments-table-item__title {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    padding: 8px; }
  .trading-instruments-table-item__column {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px; }
  .trading-instruments-table__header {
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    padding: 0; }
  .trading-instruments-table__content {
    font-size: 16px;
    font-weight: 500;
    line-height: 22px; }
  .trading-instruments-filter__list {
    filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.08)) drop-shadow(0px 8px 24px rgba(0, 0, 0, 0.08));
    width: 220px;
    padding: 16px;
    gap: 24px;
    background-color: #FFFFFF; }
  .trading-instruments-filter__item {
    background-color: #FFFFFF;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; }
  .trading-instruments-filter__item_active {
    background-color: #FFFFFF; }
  .trading-instruments-filter__button {
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px; }
  .trading-instruments-filter__counter {
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
    color: #FFFFFF;
    background-color: #DBB454;
    border-radius: 50%;
    width: 16px;
    height: 16px; }
  .trading-instruments-checkmark {
    display: block;
    height: 16px;
    width: 16px;
    border: 1px solid #B38344;
    border-radius: 4px; }
  /* On mouse-over, add a grey background color */
  .trading-instruments-filter__item:hover input ~ .trading-instruments-checkmark {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3 0C1.34315 0 0 1.34315 0 3V13C0 14.6569 1.34315 16 3 16H13C14.6569 16 16 14.6569 16 13V3C16 1.34315 14.6569 0 13 0H3ZM12.6355 5.98614C12.9872 5.63496 12.9877 5.06511 12.6365 4.71335C12.2854 4.36159 11.7155 4.36111 11.3637 4.71229L6.6908 9.37749L4.63548 7.32558C4.28371 6.9744 3.71386 6.97487 3.36268 7.32663C3.01151 7.6784 3.01198 8.24824 3.36374 8.59942L6.05493 11.2861C6.40628 11.6369 6.97531 11.6369 7.32666 11.2861L12.6355 5.98614Z' fill='%23B38344'/%3E%3C/svg%3E%0A");
    background-size: cover;
    opacity: 0.8; }
  /* When the checkbox is checked, add a blue background */
  .trading-instruments-filter__item_active .trading-instruments-checkmark {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3 0C1.34315 0 0 1.34315 0 3V13C0 14.6569 1.34315 16 3 16H13C14.6569 16 16 14.6569 16 13V3C16 1.34315 14.6569 0 13 0H3ZM12.6355 5.98614C12.9872 5.63496 12.9877 5.06511 12.6365 4.71335C12.2854 4.36159 11.7155 4.36111 11.3637 4.71229L6.6908 9.37749L4.63548 7.32558C4.28371 6.9744 3.71386 6.97487 3.36268 7.32663C3.01151 7.6784 3.01198 8.24824 3.36374 8.59942L6.05493 11.2861C6.40628 11.6369 6.97531 11.6369 7.32666 11.2861L12.6355 5.98614Z' fill='%23B38344'/%3E%3C/svg%3E%0A");
    background-size: cover;
    border: none; }
  .ti-table-item__label_theme-success {
    display: flex;
    gap: 8px; } }
