I have this html, a simple skeleton for admin panel:
body {margin: 0}
.adminpanel {
  display: flex;
  height: 100vh;
}
.leftpane {
  width: 250px;
  background-color: #0038a8;
}    
.rightpane {
  width: 87%;
  background-color: #ce1126;
}
<div class="adminpanel">
  <div class="leftpane">
    left
  </div>
  <div class="rightpane">
    right
  </div>
</div>
From the code above, I set .leftpane to have a width of 250px. How do I set the .rightpane to occupy the remaining width? 
Using width: 87%; works on my laptop width with a 1900px resolution.
Any ideas?
I work on admin panel before but with css framework, which is not in this case.