/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/montserrat-v26-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/montserrat-v26-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/montserrat-v26-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 600;
  src: url('../fonts/montserrat-v26-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/montserrat-v26-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-800italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 800;
  src: url('../fonts/montserrat-v26-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* material-icons-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/material-icons-v142-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", sans-serif;
  background: #2b3a44;
}

.app-container {
  border-top: 5px solid #c1c1c1;
  min-height: 500px;
  overflow: hidden;
  color: #fff;
}

.btn-logout {
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0 0 0 10px;
  border: none;
  background: transparent url("../images/icons/icon-logout.svg") no-repeat left top;
  background-size: 100% auto;
}

.toggle-left-hand {
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0 0 0 10px;
  border: none;
  background: transparent url("../images/icons/icon-lefthand.svg") no-repeat left top;
  background-size: 100% auto;

  &.is-left {
    background: transparent url("../images/icons/icon-lefthand-active.svg") no-repeat left top;
    background-size: 100% auto;
  }
}

.toggle-dark-mode {
  width: 46px;
  height: 23px;
  padding: 0;
  border: none;
  margin: 0 0 0 10px;
  background: transparent;

  &.toggle-dark {
    background: transparent url("../images/icons/light-mode-toggle-icon.svg") no-repeat left top;
    background-size: 100% auto;
  }

  &.toggle-light {
    background: transparent url("../images/icons/dark-mode-toggle-icon.svg") no-repeat left top;
    background-size: 100% auto;
  }
}

.btn-back {
  width: 30px;
  height: 30px;
  background: transparent url("../images/icons/icon-back.svg") no-repeat left top;
  background-size: 100% auto;
  cursor: pointer;
  @media only screen and (min-width: 1200px) {
    position: relative;
    z-index: 100;
  }
}

.spt-headline:not(.modal-content .spt-headline) {
  @media only screen and (min-width: 1200px) {
    margin: -32px 0 0 50px;
  }
}

label,
.form-label {
  display: block;
  font-size: 13px;
  margin-bottom: 5px !important;

  a {
    color: rgba(33, 37, 41);
  }
}

h1 {
  .icons {
    align-self: center;
    display: flex;
    padding-left: 20px;

    a {
      padding-left: 10px;
      display: block;
    }

    img {
      width: 24px;
      height: auto;
    }
  }
}

img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
}

.logo {
  img {
    max-height: 60px;
    width: auto;
  }
}

textarea#pasteCodes {
  min-height: 200px;
}

.error {
  background: #f00;
  color: #fff;
  padding: 5px 10px;
  margin: 0 0 10px 0;
}

.alert-box {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 9998;

  .alert {
    position: relative;
    max-width: 450px;
    padding-left: 40px;

    &:after {
      content: "";
      position: absolute;
      left: 10px;
      top: 16px;
      width: 20px;
      height: 20px;
      background-size: 20px auto;
    }

    &.alert-success:after {
      background: transparent url("../images/icons/icon-round-success.svg") no-repeat left top;
    }

    &.alert-danger:after {
      background: transparent url("../images/icons/icon-round-danger.svg") no-repeat left top;
    }

    &.alert-info:after {
      background: transparent url("../images/icons/icon-round-info.svg") no-repeat left top;
    }

    &.alert-warning:after {
      background: transparent url("../images/icons/icon-round-warning.svg") no-repeat left top;
    }
  }

  .alerts-remove {
    padding-left: 16px;
    cursor: pointer;
    background: #6d757c;
    @include transition();

    &:hover {
      background: #2b3b44;
    }
  }
}

.navbar-primary {
  background: #f6f6f6;
}

.card {
  border-radius: 0;
  border: none;

  .card-header:first-child {
    border-radius: 0;
  }
}

.icon-mini {
  height: 15px;
  display: inline;
  margin-right: 6px;
  margin-top: -2px;
}

.spt-main {
  min-height: calc(100vh - 126px);
  background: #fff;
  color: rgba(33, 37, 41);
  width: 85.5%;
  min-width: calc(100% - 200px);
  @media only screen and (max-width: 1199px) {
    width: 100%;
    //width: calc(100% - calc(var(--bs-gutter-x) * 0.5) - calc(var(--bs-gutter-x) * 0.5));
  }
}

.spt-container {
  position: relative;
  min-height: 1px;
  margin-bottom: 3rem;

  .top-btn {
    display: flex;
    justify-content: flex-end;
  }

  .card:not(.contacts .card, .tasks .card, .post .card) {
    border: none;
    border-radius: 0;
    border-top: 1px solid #2B3A44;
    border-bottom: 1px solid #2B3A44;

    .card-body {
      padding: 5px 0;

      .spt-col {
        padding-top: 20px;
      }

      .has-image {
        border-left: 1px solid #c1c1c1;
        display: flex;
        align-items: center;
        justify-content: center;

        &.image-left {
          border-left: none;
          border-right: 1px solid #c1c1c1;
        }
      }

      img {
        //margin: 0 auto;
        //max-width: 80%;
      }
    }

    .mat-h1,
    .mat-headline-5,
    .mat-h2,
    .mat-headline-6,
    .mat-typography & {
      .mat-h1,
      .mat-headline-5,
      h1,
      .mat-h2,
      .mat-headline-6,
      h2 {
        text-transform: none;
        font-weight: 600;
      }
    }
  }
}

.toggle-component {
  .spt-container {
    background: #fafafa;
    margin-bottom: 20px;
  }

  .top-btn {
    position: absolute;
    //right: 0;
    //top: -63px;
    right: 10px;
    top: -53px;
    margin: 0;

    .btn {
      //padding-top: 17px;
      //padding-bottom: 17px;
    }
  }

  app-paging > .mat-mdc-paginator:first-child {
    border: none;
  }

  .mat-mdc-cell {
    background: #fafafa;
  }
}

.toggle {
  background: #dee2e3;
  color: #2a3a43;
  padding: 14px 10px 14px 83px;
  margin-bottom: 3px;
  position: relative;
  cursor: pointer;

  &.small {
    padding: 6px 10px 6px 83px;

    &:before,
    &:after {
      top: 14px;
    }
  }

  h2 {
    text-transform: uppercase;
  }

  p {
    text-transform: uppercase;
  }

  * {
    margin: 0 !important;
  }

  &:before,
  &:after {
    content: "";
    position: absolute;
    top: 28px;
    width: 15px;
    height: 4px;
    background: #2a3a43;
    @include transition();
  }

  &:before {
    transform: rotate(45deg);
    left: 26px;
  }

  &:after {
    transform: rotate(-45deg);
    left: 34px;
  }

  &.collapsed {
    &:before {
      transform: rotate(-45deg);
    }

    &:after {
      transform: rotate(45deg);
    }
  }
}

.dropdown-menu {
  border-radius: 0;
}

.info-box {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  @media only screen and (max-width: 767px) {
    display: block;
  }
}

.spt-loader-box {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 9999;
  //background: #9eb3c1;
  width: 90px;
  height: 90px;
  //border: 3px solid #2b3a44;
  //border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  border-radius: 50%;
}

.spt-loader {
  position: absolute;
  left: 50%;
  top: 50%;

  transform: translate(-50%,-50%) rotateZ(45deg);
  perspective: 1000px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #fff;

  &:before,
  &:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: 1s spin linear infinite;
  }
  &:after {
    color: #FF3D00;
    transform: rotateY(70deg);
    animation-delay: .4s;
  }
}

@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotateZ(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}

@keyframes rotateccw {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes spin {
  0%,
  100% {
    box-shadow: .2em 0px 0 0px currentcolor;
  }
  12% {
    box-shadow: .2em .2em 0 0 currentcolor;
  }
  25% {
    box-shadow: 0 .2em 0 0px currentcolor;
  }
  37% {
    box-shadow: -.2em .2em 0 0 currentcolor;
  }
  50% {
    box-shadow: -.2em 0 0 0 currentcolor;
  }
  62% {
    box-shadow: -.2em -.2em 0 0 currentcolor;
  }
  75% {
    box-shadow: 0px -.2em 0 0 currentcolor;
  }
  87% {
    box-shadow: .2em -.2em 0 0 currentcolor;
  }
}

.table-responsive {
  .mat-mdc-row {
    height: auto;
  }

  .mat-mdc-table .mdc-data-table__cell,
  .mat-mdc-table .mdc-data-table__header-cell {
    padding: 2px 8px;
  }
}

.search-select {
  .hide-header {
    table {
      thead {
        display: block;
      }
    }
  }

  .mat-mdc-header-row {
    height: auto;
  }

  img {
    width: 30px;
  }

  .mat-mdc-paginator-range-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-right: -15px;
  }

  .mat-mdc-paginator-range-label {
    text-align: right;
    flex-basis: 100%;
    flex-grow: 0;
    margin: 0 7px 0 0;
  }

  .mat-mdc-icon-button.mat-mdc-button-base {
    width: 30px;
    height: 30px;
    padding: 0;
  }

  .mat-mdc-table .mdc-data-table__cell,
  .mat-mdc-table .mdc-data-table__header-cell {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .spt-tools.single {
    display: none;
  }

  .show-name {
    position: relative;

    p {
      border: 1px solid #dee2e6;
      padding: 6px 12px;
      font-size: 16px;
      line-height: 24px;
      min-height: 38px;
      cursor: text;
      background-color: #fff;

      &.search-empty {
        &:before {
          content: "Please choose";
          font-style: italic;
          color: #999;
        }
      }
    }
  }

  .search-toggle {
    display: none;

    td {
      cursor: pointer;
    }
  }

  .search-box-open {
    display: block;
  }
}

/* Traffic lights */
.traffic-light {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: relative;
  overflow: visible;

  &.has-function {
    cursor: pointer;
  }
}

.traffic-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 33%,
          rgba(255, 255, 255, 0.3) 0%,
          rgba(255, 255, 255, 0.1) 15%,
          rgba(255, 255, 255, 0) 60%);
}

.traffic-light.red {
  background-color: #e74c3c;
}

.traffic-light.green {
  background-color: #2ecc71;
}

.traffic-light::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(2px);
  animation: glow 2s infinite ease-in-out;
}

.traffic-light.red::after {
  background-color: #e74c3c;
}

.traffic-light.green::after {
  background-color: #2ecc71;
}

@keyframes glow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.switch-widget {
  .switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
    margin: 0 !important;

    input {
      opacity: 0;
      width: 0;
      height: 0;
    }
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;

    &:before {
      position: absolute;
      content: "";
      height: 20px;
      width: 20px;
      left: 4px;
      bottom: 4px;
      background-color: white;
      transition: .4s;
    }
  }

  input:checked + .slider {
    background-color: #2ecc71;
  }

  input:checked + .slider:before {
    transform: translateX(26px);
  }

  .slider.round {
    border-radius: 34px;
  }

  .slider.round:before {
    border-radius: 50%;
  }
}

input[readonly], input:disabled {
  background: #ffeaea !important;
}

.mat-mdc-option {
  .mdc-list-item__primary-text {
    position: relative;
    z-index: 100;
  }
}

.combined-images {
  position: relative;
  width: 300px;
  height: 355px;

  .mat-mdc-cell & {
    width: 60px;
    height: 71px;

    .rating {
      font-size: 10px;
      line-height: 13px;
    }

    .lastname {
      top: 75%;
      font-size: 8px;
      line-height: 10px;
      letter-spacing: -0.03em;
    }
  }

  img {
    width: 100%;
    height: auto;
  }

  .imgBg {

  }

  .imgFront {
    position: absolute;
    //left: 50%;
    //top: 50%;
    //transform: translate(-50%, -50%);
    right: 0;
    bottom: 0;
    transform: translate(-10%, -46.3%);
    width: 65%;
  }

  .rating {
    position: absolute;
    left: 15%;
    top: 27%;
    color: #000;
    font-weight: 600;
    font-size: 30px;
    line-height: 39px;
  }

  .lastname {
    position: absolute;
    left: 10%;
    top: 76%;
    width: 80%;
    max-height: 30%;
    overflow: hidden;
    text-align: center;
    color: #000;
    font-weight: 600;
    font-size: 22px;
    line-height: 26px;
  }
}

.spt-dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  dt {
    width: 50%;
    padding: 7px 0;
    border-top: 1px solid #2b3a44;

    &:first-of-type {
      border: none;
    }
  }

  dd {
    width: 50%;
    margin: 0;
    padding: 7px 0;
    text-align: right;
    border-top: 1px solid #2b3a44;

    &:first-of-type {
      border: none;
    }
  }
}

.spt-mini-list {
  li {
    padding: 7px 0;
    border-top: 1px solid #2b3a44;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;

    &:first-child {
      border: none;
    }

    > div {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      padding-left: 20px;

      div {
        &:first-child {
          min-width: 300px;
        }
      }
    }
  }
}

.sniping-accounts {
  border-bottom: 1px solid #2B3A44;
}

.sniping-accounts-selected {
  li {
    list-style: none;
    display: flex;
    align-items: center;
    border-top: 1px solid #2B3A44;
    padding: 5px 0;

    &:first-child {
      border: none;
    }

    .first {
      width: 37px;
      margin-right: 10px;
    }

    .btn {
      padding-top: 0;
      padding-bottom: 0;
    }

    div {
      display: flex;
      justify-content: space-between;
      width: 100%;

      span {

      }
    }
  }
}

.log-area {
  overflow: auto;
  border: 1px solid #2b3b44;
  padding: 10px 0;
  max-height: 600px;

  ul {
    margin-right: 20px;

    li {
      border-bottom: 1px solid #eee;
      padding: 3px 0;
    }
  }

  p {
    margin-bottom: 0;
  }
}

.overlayed {
  .search-toggle {
    width: calc(400% + 72px);
    @media only screen and (max-width: 991px) {
      width: calc(300% + 48px);
    }
    @media only screen and (max-width: 767px) {
      width: calc(200% + 24px);
    }
    @media only screen and (max-width: 575px) {
      width: 100%;
    }
  }
}

.top-button-row {
  margin-top: -50px;
  @media only screen and (max-width: 575px) {
    margin-top: 0;
  }
}

.active-filter-count {
  font-size: 16px;
  color: $color-imaq;
}

#c-btn {
  @media only screen and (max-width: 1199px) {
    display: none;
  }
}

#go-back {
  .left-handed & {
    @media only screen and (max-width: 1199px) {
      margin-left: 70px;
    }
  }
}