/* PFS Styles - https://www.profinance.ru/ */

/* -------------- something -------------- */

.sticky-top {
  top: max(4rem, 0.1%);
}

/* -------------- navbar -------------- */

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

/* navbar small transparency */
.navbar {
  opacity: 0.975;
  /* making height smaller */
  padding-top: 3px !important;
  padding-bottom: 3px !important;
  /* border: 1px solid red !important; */
}

.navbar-brand img {
  height: 25px;
  margin-bottom: 2px;
}

.offcanvas {
  width: 300px;
}

.offcanvas-header img {
  height: 25px;
}

.offcanvas-header button {
  font-size: 20px;
}

h5 {
  font-size: 18px;
}

@media screen and (max-width: 1429px) {
  .nav-link {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

.navbar li {
  padding-left: 6px !important;
  padding-right: 6px !important;
}

@media screen and (min-width: 1430px) {
  .navbar li {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}


/* -------------- top -------------- */

#pfs-ad-top {
  margin-top: 50px !important;
  x-border: 1px solid red !important;
  x-height: 250px !important;
}

.article blockquote {
  font-size: 16px;
  font-style: italic;
  border-left: 4px solid #5E9BD4;
  padding-left: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

hr {
  display: none;
}

.x--red {
  border: 1px solid red !important;
}

.telegram-images img {
  max-width: 320px !important;
  min-width: 320px !important;
  width: 320px !important;
}


@media only screen and (min-width: 1448px) {

  .x-navbar,
  #x-yandex_rtb_R-A-9524-96,
  #x-yandex_rtb_R-A-9524-92 {
    margin-left: 4px !important;
    margin-right: 4px !important;
  }
}


/* -------------- news -------------- */

#news {
  min-width: 0px;
  max-width: 728px;
}

#news a:link,
#news a:visited,
#news a:active {
  text-decoration: none !important;
  font-weight: bold !important;
}

#news a:hover {
  text-decoration: underline !important;
}

#news .article .content strong {
  font-weight: bold !important;
}

.article .content a,
.article .content strong,
.latest-news a,
.latest-news strong {
  text-decoration: none !important;
  font-weight: bold !important;
}

.article .content a:hover,
.latest-news a:hover {
  text-decoration: underline !important;
  font-weight: bold !important;
}

/*
.article .content a:hover, .article .content strong:hover,
.latest-news a:hover, .latest-news strong:hover {
    text-decoration: underline !important;
    font-weight: bold !important;
}
*/

.article h3 {
  margin-top: 0 !important;
}


/* -------------- telegram widget -------------- */
#telegram-mobile {
  max-width: 439px !important;
  margin: 0 auto;
}


/* -------------- ads-right -------------- */
#pfs-ad-right {
  width: 320px;
  text-align: right;
}

/* -------------- ads-bottom -------------- */
#pfs-ad-bottom {
  text-align: center;
  border: 1px solid #ddd !important;
}

#yandex_rtb_R-A-9524-96 {
  position: relative;
  z-index: 0;
  x-height: 250px;
  x-border: 1px solid red !important;
}

/* -------------- footer -------------- */
footer .li {
  line-height: 0.8rem !important;
}

footer {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#footer-logo {
  height: 25px;
}

.footer-icon {
  height: 28px;
}

footer a .footer-icon {
  text-decoration: none !important;
  margin-right: 4px;
}

/* паддинг от меню */
.main {
  padding-top: 5rem !important;
}

.redx {
  border: 1px solid red;
}


/* light/dark mode */
#lightSwitch {
  display: none;
  cursor: pointer;
}

#sun {
  display: block;
  cursor: pointer;
}

#moon {
  display: none;
  cursor: pointer;
}

#lightSwitch:checked~#sun {
  display: none;
}

#lightSwitch:checked~#moon {
  display: block;
}

/* верхнее меню */
.navbar .bg-light {
  // background-color: #ececec !important;
  //    opacity(0.7);
}

.bg-light.bg-dark,
footer {
  //    background-color: #6e6e6e !important;
  //    opacity(0.7);
}

.navbar li {
  font-size: 18px;
  font-weight: 600;
  padding-left: 8px;
  padding-right: 8px;
}

.navbar li a {
  //  color: #212529;
}

.navbar-light .navbar-toggler {
  border-color: transparent !important;
}

.dropdown-menu {
  max-height: 70vh;
  overflow-y: scroll;
}

/* убираем полосы по бокам у блока с графиком до ширины 540 пикселей */
@media (max-width: 540px) {
  .container-chart {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* фикс для меню */
.scroll_fix {
  margin-top: 50px;
}

.table-wrapper #quote-table0 th:nth-of-type(1),
.table-wrapper #quote-table0 td:nth-of-type(1),
.table-wrapper #quote-table1 th:nth-of-type(1),
.table-wrapper #quote-table1 td:nth-of-type(1) {
  width: 25%;
}

.table-wrapper #quote-table0 th:nth-of-type(2),
.table-wrapper #quote-table0 td:nth-of-type(2),
.table-wrapper #quote-table1 th:nth-of-type(2),
.table-wrapper #quote-table1 td:nth-of-type(2) {
  width: 20%;
}

.table-wrapper #quote-table0 th:nth-of-type(3),
.table-wrapper #quote-table0 td:nth-of-type(3),
.table-wrapper #quote-table1 th:nth-of-type(3),
.table-wrapper #quote-table1 td:nth-of-type(3) {
  width: 16%;
}

.table-wrapper #quote-table0 th:nth-of-type(4),
.table-wrapper #quote-table0 td:nth-of-type(4),
.table-wrapper #quote-table1 th:nth-of-type(4),
.table-wrapper #quote-table1 td:nth-of-type(4) {
  width: 16%;
}

.table-wrapper #quote-table0 th:nth-of-type(5),
.table-wrapper #quote-table0 td:nth-of-type(5),
.table-wrapper #quote-table1 th:nth-of-type(5),
.table-wrapper #quote-table1 td:nth-of-type(5) {
  width: 23%;
}


@media (max-width: 767px) {
  .table-wrapper {
    padding-right: 0px !important;
  }
}

@media (max-width: 991px) {
  .table-wrapper #quote-table0 tbody tr:last-child {
    border-bottom-width: var(--bs-border-width);
    border-bottom-color: inherit;
    /*var(--bs-border-color);*/
  }
}

h2.sub-title {
  font-size: 22px;
  text-align: center;
  margin-top: 6px;
}

h4.last-news {
  font-size: 22px;
}

.mini-quote-table {
  margin: 0 !important;
  padding: 0 !important;
  /*  border-radius: 11px;
  border-left: 1px solid #F1F3F5;
  border-right: 1px solid #F1F3F5;
  border-top: 1px solid #F1F3F5;
  border-bottom: 1px solid #F1F3F5;
border-collapse: inherit;
box-shadow: 4px 4px 5px 0px #DDD4D7;
*/
}

/* experiments values */
table.mini-quote-table tr:last-child td {
  border-bottom: none;
}

/*
.table.table-sm.mini-quote-table a {
  text-align: left;
  font-weight: bold !important;
}
*/
.table.table-sm.mini-quote-table td {
  text-align: right;
  font-weight: bold !important;
}

.table.table-sm.mini-quote-table th {
  text-align: right;
  font-weight: bold !important;
}

/*
.table.table-sm.mini-quote-table td,
.table.table-sm.mini-quote-table a {
  text-align: left;
  font-weight: bold !important;
}
*/



.mini-quote-table .red {
  color: red !important;
}

.mini-quote-table .green {
  color: green !important;
}

a.title-pop-up {
  text-decoration: none !important;
  font-size: 24px !important;
  font-weight: 500 !important;
}

@media screen and (max-width: 575.98px) {

  table,
  thead,
  td,
  tr {
    font-size: 13.75px !important;
  }
}

@media screen and (min-width: 576px) and (max-width: 767.98px) {

  .table,
  tr,
  td,
  thead {
    font-size: 14.5px !important;
  }
}

#chart_container {
  width: 100% !important;
  /* temporary values */
  border-left: 1px solid #F1F3F5;
  border-right: 1px solid #F1F3F5;
  border-top: 1px solid #F1F3F5;
  border-bottom: 1px solid #F1F3F5;
  border-collapse: inherit;
  box-shadow: 3px 3px 3px 0px #DDD4D7;
}

/*
.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container-sm, .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container-md, .container-sm, .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container-lg, .container-md, .container-sm, .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 1320px;
  }
}

:root {
  --bs-breakpoint-xs: 0;
  --bs-breakpoint-sm: 576px;
  --bs-breakpoint-md: 768px;
  --bs-breakpoint-lg: 992px;
  --bs-breakpoint-xl: 1200px;
  --bs-breakpoint-xxl: 1400px;
}
*/


@media (max-width: 575.98px) {

  #chart_container {
    x-max-height: 400px !important;
    x-height: 300px !important;
  }
}

@media (min-width: 576px) {
  #chart_container {
    max-height: 540px !important;
  }
}

@media (min-width: 768px) {
  #chart_container {
    max-height: 560px !important;
  }
}

@media screen and (max-width: 1199px) {
  .telegram-widget-last-news {
    width: 100% !important;
    float: left;
    width: 50%;
    display: none;
  }
}

@media screen and (min-width: 992px) {
  .telegram-feed {
    max-width: 326px !important;
    padding-left: 6px !important;
  }
}

@media screen and (min-width: 760px) and (max-width: 1199.99px) {
  .telegram-widget-post {
    float: left;
    width: 50%;
  }
}

@media screen and (max-width: 759px) {
  .telegram-widget-post {
    width: 100% !important;
  }
}

@media (min-width: 979px) {
  .container {
    min-width: 947px !important;
  }
}
