.position-item {
  display: flex;
  align-items: center;
  width: 706px;
  gap: 8px;
  padding: 8px 0px;
  border-bottom: 1px solid #eee;

  >span,
  >a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
  }

  .check-box {
    flex: 0 0 24px;
  }

  .sec-code-and-name {
    flex: 0 0 120px;
    justify-content: flex-start;
  }

  .earnings-report {
    flex: 0 0 88px;
    border-right: 1px solid #ddd;
    padding-right: 8px;
    border-left: 1px solid #ddd;
    padding-left: 8px;
  }

  .number-of-stock {
    flex: 0 0 50px;
    justify-content: flex-end;

  }

  .current-price {
    flex: 0 0 70px;
    justify-content: flex-end;
  }

  .total-value {
    flex: 0 0 75px;
  }

  .portion-percentage {
    display: flex;
    align-items: center;
    gap: 8px;

    .portion-bar {
      flex: 1 1 auto;
      height: 8px;
      background: #eee;
      border-radius: 4px;
      position: relative;
      width: 50px;
      overflow: hidden;

      .portion-fill {
        background: #4caf50;
        height: 100%;
        width: var(--portion);
        transition: width 0.3s ease;
      }
    }
  }

  .portion-percentage-value {
    flex: 0 0 40px;
    justify-content: flex-end;
  }

  .fas.fa-handshake,
  .fas.fa-coins {
    flex: 0 0 24px;
    font-size: 16px;
  }

  .admin-tools {
    height: 24px;
    flex: 0 0 24px;
    justify-content: flex-start;
    cursor: pointer;
    color: var(--color-link);
  }

  .admin-buttons {
    flex-wrap: wrap;
    padding-left: 10px;
    gap: 8px;
  }

  .stock-shares {
    flex: 0 0 24px;
  }

  .total-value-sum {
    flex: 0 0 494px;
    font-size: 13px;
    justify-content: flex-end;
  }

}

table.position-ratio {
  width: 700px;
}

@media (max-width: 768px) {
  .positions div.section>div {
    width: 400px;
  }

  .position-item {
    width: 100%;
  }

  .position-item {

    .current-price,
    .operator,
    .portion-percentage,
    .portion-percentage-value,
    .icon-item {
      display: none;
    }

    .total-value-sum {
      flex: 0 0 383px;
      font-size: 13px;
      justify-content: flex-end;
    }
  }

  table.position-ratio {
    width: 400px;
  }

}