.journal-content {
  height: 100%;
  justify-content: space-between;
}

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

.tab-button {
  height: 4rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: black;
  border: none;
  transition: filter 0.25s ease-in-out;
  background-color: var(--tab);
  filter: brightness(0.85);
  &:hover {
    background-color: var(--tab-hover);
  }
  &.active {
    background-color: var(--tab-active);
  }
}

// Item container
.item-container {
  width: 800px;
  height: 100%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  background-image: url("/assets/images/texture-0.jpg");
  box-shadow: var(--shadow);
  border: var(--gold-2);

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

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

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

  .table-heading {
    font-size: 1.25rem;
    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;
  }

  .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-radius: 10px;
  border: var(--gold-2);
  display: flex;
  flex-direction: column;
  background-image: url("/assets/images/texture-0.jpg");
  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: var(--border);
    box-shadow: var(--shadow);
  }

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

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

  .item {
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
    padding: 10px 10px;
    margin: 0 0.5rem;
    display: grid;
    align-items: center;
  }

  .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: var(--border);;
  border-radius: 10px;
  // background-color: var(--field-background-color);
  background-image: url("/assets/images/texture-0.jpg");
  box-shadow: var(--shadow);
  border: var(--gold-2);

  .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);
    border: var(--gold-2);
  }

  .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;
  position: relative;
  border: var(--gold-2);
  border-radius: 10px;
  background-image: url("/assets/images/texture-0.jpg");
  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;
    border: var(--gold-2);
    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);
}
