#med-wrapper {
   overflow: visible;
   display: grid;
   grid-template-columns: 1fr 2fr;
   grid-template-rows: 1fr 1fr;
   gap: 1em;

   border-radius: 2em;
   background-color: var(--lg);
   padding: 1em;
   box-shadow: 0 0 .5em var(--bl) inset, var(--shd);

   .outer-list,
   #med-slots {
      background-color: var(--bl);
      border: 0;
      border-radius: 1em;
      box-shadow: 0 0 .5em var(--bl), 0 0 .5em teal inset;
   }
}


#wait-list {
   display: grid;
   grid-template-columns: 1fr 1fr;
   height: fit-content;
   max-height: 100%;
}

#med-logs {
   display: flex;
   flex-direction: column-reverse;
   height: fit-content;
   max-height: 100%;
}


/* beds */
#med-slots {
   grid-column: span 2;
   display: grid;
   grid-template-columns: repeat(8, 1fr);
   place-items: center;
   padding-inline: 3em;

   &::before,
   &::after {
      content: '';
      position: absolute;
      border-radius: 2em;
   }

   &::before {
      height: 3em;
      width: calc(100% - 4em);
      background-color: var(--lg);
      box-shadow: 0 0 .5em var(--bl) inset;
   }

   &::after {
      height: 1em;
      width: calc(100% - 6em);
      border: 2px solid var(--bl);
      border-radius: 2em;
      box-shadow: 0 0 .5em var(--bl) inset, 0 0 .5em var(--bl);
      background: linear-gradient(to right, teal, black, teal);
      background-size: 12.5%;
   }
}

.med-wrapper {
   display: grid;
   place-items: center;
   height: fit-content;
   z-index: 1;
}

.med-wrapper::before,
.med-wrapper::after {
   content: '';
   position: absolute;
   outline: 2px solid var(--bl);
   border-radius: 1em;
   background-color: rgb(204, 204, 204);
   width: calc(100% + 2.5em);
   height: 5em;
   z-index: -1;

   box-shadow: 0 0 .5em var(--bl) inset;
}

.med-wrapper::before {
   top: -1.25em;
}

.med-wrapper::after {
   height: 6em;
   bottom: -2.5em;
}

.med-slot {
   display: grid;
   place-items: center;

   height: 12em;
   width: 6em;

   border: 1px solid;
   border-radius: .5em;
   box-shadow: var(--shd), 0 0 .5em .5em var(--tbl) inset;

   background-color: teal;
}

/* pillow! */
.med-slot::before {
   content: '';
   position: absolute;
   top: 1rem;
   width: 60%;
   height: 1em;
   background-color: var(--w);
   border-radius: .35em;
   box-shadow: 0 0 .2em .2em var(--tbl), 0 0 .3em .1em var(--tbl) inset;
}

.med-slot::after {
   content: attr(data-prg);

   position: absolute;
   bottom: -1.85rem;
   width: 40%;
   height: 1.25em;

   font-weight: bold;
   text-align: center;
   text-shadow: 0 0 .5rem var(--med), 0 0 .4rem var(--med);
   font-size: .9rem;

   background-color: var(--tbl);
   box-shadow: 0 0 .2em .2em var(--tbl);

   padding-inline: .5em;
   border-radius: .35em;
   border: 1px solid;

}

.med-slot>strong {
   width: 100%;
   text-align: center;
   color: rgba(0, 0, 0, 0.5);
   font-weight: bolder;
   text-shadow: 0 0 .5rem rgb(0, 187, 187), 0 0 .4rem rgb(0, 187, 187);
}

/* build menu */
#med-build-icon {
   font-size: 2rem;
}

#med-build-menu {

   place-items: center;

   .buy-structure {
      margin: 3em;
      margin-top: 2em;
   }

   [data-price]:hover::after {
      text-decoration: underline teal;
   }
}


/* progress of medward patients*/
.med-progress {
   position: absolute;
   top: calc(1em + 100%);

   display: block;
   padding: 1em 2em;
   text-align: center;

   border: var(--brd);
   border-radius: .75em;
   border-bottom-right-radius: 1.5em;
   box-shadow: inherit;

}