@media (max-width: 40em) {
  /* Remove spacing around content */
  .main {
    padding: 0px;
  }
  /* Add back spacing around title bar */
  .main .title-user {
    margin: 8px 8px 16px;
  }
  /* Remove Unlock Entries button and account dropdown */
  .lock-unlock-entries {
    display: none;
  }
  .account-dropdown {
    display: none ;
  }
  /* Make table full width */
  table.timesheet-day.timesheet-table {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
  }
  .timesheet-table thead tr th:last-child div {
    display: none; /* Remove Notes header */
  }
  /* Move delete buttons inside table and avoide horizontal scrolling */
  .timesheet-week .total .delete,
  .timesheet-day .total .delete {
    display: block;
    right: 16px;
    width: 24px;
    height: 24px;
    margin: auto 0;
  }
  .timesheet-week .total::after,
  .timesheet-day .total::after {
    content: none;
  }
  .timesheet-day tbody .project-selected-phase .notes-for-day-input {
    display: none; /* Remove notes field, use integrated notes like week view later */
  }
  /* Resize header */
  h1.h1 {
    font-size: 24px;
  }
}