.inventory-container {
  width: 100%;
  height: 100%;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
}

// Tabbar
.tab-row {
  display: flex;
  flex: 0 0 3rem;
  > * {
    flex: 1 1 0;
  }
  > :first-child {
    border-radius: 10px 0 0 0;
  }
  > :last-child {
    border-radius: 0 10px 0 0;
  }
}

.tab-button {
  height: 3rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: black;
  border: solid 1px var(--border-color);
  transition: all 0.25s ease-in-out;
  background-color: var(--tab);

  &.active {
    border-bottom: 3px solid var(--border-color);
    background-color: var(--tab-active);
  }
}

// Item container
.item-container {
  width: 60%;
  height: 100%;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  background-color: var(--field-background-color);
  box-shadow: var(--shadow);

  .heading-row {
    flex: 0 0 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
  }

  .table-content {
    overflow: auto;
    padding-top: 1rem;
    flex: 0 0 calc(100% - 11rem);
  }

  .button-margin {
    margin: 1rem 0rem;
  }

  .table-heading {
    font-size: 1.5rem;
    font-weight: 600;
    padding-left: 2rem;
  }

  .item {
    padding: 10px 10px;
    margin: 0 0.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: center;
    box-sizing: border-box;
    cursor: move;
    background-color: var(--items);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease-in-out;
    &:hover {
      background-color: var(--items-hover);
    }
  }

  .item-property {
    font-size: 1.25rem;
    font-weight: 600;
    padding-left: 2rem;
  }
}

.right-column {
  width: 35%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

// Food Container

.food-container {
  height: calc(100% - 16rem);
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  background-color: var(--field-background-color);
  box-shadow: var(--shadow);

  .heading-row {
    flex: 0 0 3rem;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
    padding: 10px 10px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
  }

  .table-heading {
    font-size: 1.375rem;
    font-weight: 600;
    padding-left: 1rem;
  }

  .table-content {
    overflow: auto;
    padding-top: 1rem;
    flex: 0 0 calc(100% - 11rem);
  }

  .item {
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
    padding: 10px 10px;
    margin: 0 0.5rem;
    display: grid;
    align-items: center;
    box-sizing: border-box;
    cursor: move;
    background-color: var(--items);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease-in-out;
    &:hover {
      background-color: var(--items-hover);
    }
  }

  .item-property {
    font-size: 1.25rem;
    font-weight: 600;
    padding-left: 1rem;
  }
}

//  MONEY CONTAINER

.money-container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 6rem;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--field-background-color);
  box-shadow: var(--shadow);

  .money-box {
    width: 6rem;
    height: 3rem;
  }

  .money-input-box {
    width: 6rem;
    height: 3rem;
    font-size: 1.5rem;
    position: relative;
    border-radius: 10px;
    background-color: white;
    box-shadow: var(--shadow);
  }

  .money-icon {
    position: absolute;
    width: 3rem;
    height: 3rem;
    left: 0.25rem;
  }

  .money-input {
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    text-align: right;
    padding-right: 1rem;
    background-color: transparent;

    &::-webkit-outer-spin-button,
    &::-webkit-inner-spin-button {
      -webkit-appearance: none;
      appearance: none;
      margin: 0;
    }
  }
}

// WEIGHT
.weight-container {
  height: 6rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--field-background-color);
  box-shadow: var(--shadow);

  .weight-box {
    width: 10rem;
    height: 3rem;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background-color: white;
    box-shadow: var(--shadow);
  }
}

// SHARED
.empty-list {
  text-align: center;
  margin: 5rem auto;
  font-size: 1.5rem;
  font-weight: 600;
}

.footer {
  button {
    padding: 1rem 0;
  }
}

// Drag and Drop
.item-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: auto;
}

.cdk-drag-preview {
  padding: 10px 10px;
  margin: 0 0.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
  box-sizing: border-box;
  cursor: move;
  background-color: var(--background-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 1.25rem;
  font-weight: 600;
  padding-left: 2.625rem;
}

.cdk-drag-placeholder {
  opacity: 0;
}

.cdk-drag-animating {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

.item-list.cdk-drop-list-dragging .item:not(.cdk-drag-placeholder) {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}
