@use "../../common/color.module.scss";

.country-counter {
  width: 78px;
  text-align: center;
  display: inline-block;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 8px;

  &:hover {
    background: rgba(#000, 0.1);
  }

  &.selected {
    border: 2px solid color.$color-red;
    background: white !important;
    cursor: default;
  }

  img {
    margin-top: -12px;
    margin-bottom: -12px;
  }
}

#myusers-tree {
  li {
    list-style-type: none;
    min-height: 72px;
  }

  button.expand-children {
    border: 0;
    background: none;
    height: 100%;
    border-radius: 4px;

    &:hover {
      background: #efefef;
    }

    i {
      transition: transform 0.2s;
      transform: rotate(-90deg);
    }

    &.opened {
      i {
        transform: rotate(0deg);
      }
    }
  }

  ul {
    height: 0;
    overflow: hidden;
    // transition: height 0.2s; // nem működik, mert az auto és 0 között nem tud lineáris animációt csinálni
    &.opened {
      height: auto;
    }
  }

  &.force-open {
    ul {
      height: auto;
    }
  }
}

.weboffice-user {
  flex-direction: column;
  border-bottom: 2px solid #e2e2e2;
  opacity: 1;

  &.semi-transparent {
    opacity: 0.25;
  }

  & > div {
    margin-right: 20px;
    display: flex;
    flex-direction: row;

    & > div {
      display: flex;
      margin: 10px 0;
    }
  }

  .children-indicator {
    text-align: center;
    width: 30px;
    line-height: 50px;
  }

  .avatar-wrapper {
    margin-right: 20px;
    align-self: center;
  }

  .details {
    color: #818181;
    font-size: 15px;

    .info {
      font-weight: 600;

      .username {
        color: #3e4049;
      }

      .badge {
        padding: 1px 10px;
        color: white;

        &.green {
          background-color: color.$color-green;
        }

        &.gold {
          background-color: color.$color-gold;
        }

        &.red {
          background-color: color.$color-red;
        }
      }

      .badge-suffix {
        display: block;
      }
    }
  }
}
